-
Notifications
You must be signed in to change notification settings - Fork 0
/
terraform-config.yaml
48 lines (48 loc) · 1.49 KB
/
terraform-config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
---
apiVersion: pkg.crossplane.io/v1
kind: Provider
metadata:
name: provider-terraform
spec:
package: xpkg.upbound.io/upbound/provider-terraform:v0.17.0
runtimeConfigRef:
name: terraform
---
apiVersion: pkg.crossplane.io/v1beta1
kind: DeploymentRuntimeConfig
metadata:
name: terraform
spec:
deploymentTemplate:
spec:
selector: {}
template:
spec:
containers:
- name: package-runtime
# TF_VAR here is important
# It defines a Terraform variable
# https://developer.hashicorp.com/terraform/cli/config/environment-variables
#
# Pull details from dt-details secret and set and env vars
# on the terraform-provider pod
# These will be used in the configuration block below
# to dynamically inject secret data
env:
- name: TF_VAR_DYNATRACE_URL
valueFrom:
secretKeyRef:
name: dt-details
key: DYNATRACE_ENV_URL
- name: TF_VAR_DYNATRACE_API_TOKEN
valueFrom:
secretKeyRef:
name: dt-details
key: DYNATRACE_API_TOKEN
# for demo purposes
# run in -d debug mode
# also poll for changes more quickly (every 1m)
args:
- -d
- --poll=1m
- --max-reconcile-rate=10