-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: adding support for defining the backend file content
- Loading branch information
1 parent
b21417f
commit ce5621d
Showing
7 changed files
with
125 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
apiVersion: tf.upbound.io/v1beta1 | ||
kind: ProviderConfig | ||
metadata: | ||
name: default | ||
spec: | ||
# Note that unlike most provider configs this one supports an array of | ||
# credentials. This is because each Terraform workspace uses a single | ||
# Crossplane provider config, but could use multiple Terraform providers each | ||
# with their own credentials. | ||
credentials: | ||
- filename: gcp-credentials.json | ||
source: Secret | ||
secretRef: | ||
namespace: upbound-system | ||
name: gcp-creds | ||
key: credentials | ||
# This optional configuration block can be used to inject HCL into any | ||
# workspace that uses this provider config, for example to setup Terraform | ||
# providers. | ||
configuration: | | ||
provider "google" { | ||
credentials = "gcp-credentials.json" | ||
project = "official-provider-testing" | ||
} | ||
// Defining partial backend configuration as documented at | ||
// https://developer.hashicorp.com/terraform/language/settings/backends/configuration#partial-configuration | ||
terraform { | ||
backend "kubernetes" {} | ||
} | ||
# Using backend configuration file as documented at | ||
# https://developer.hashicorp.com/terraform/language/settings/backends/configuration#file | ||
backendFile: | | ||
secret_suffix = "providerconfig-default" | ||
namespace = "upbound-system" | ||
in_cluster_config = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters