hashicorp / terraform-k8s

Terraform Cloud Operator for Kubernetes
https://learn.hashicorp.com/tutorials/terraform/kubernetes-operator?in=terraform/kubernetes
Mozilla Public License 2.0
454 stars 71 forks source link

Make the sensitive and the environmentVariable properties optional #132

Open jtyr opened 2 years ago

jtyr commented 2 years ago

Community Note


This PR is makes the sensitive and the environmentVariable properties of the spec.variables optional. This allows to write less cluttered YAML as the values are by default false and the property must be present only if the user wants to set it to true. This PR needs to be rebased once the PR #129 is merged to remove most of the changes in the CRD.

Manifest without this PR:

...
spec:
  variables:
    - key: key1
      value: null value 1
      sensitive: false
      environmentVariable: false
    - key: key2
      sensitive: true
      sensitive: false
      environmentVariable: false

Manifest with this PR:

...
spec:
  variables:
    - key: key1
      value: null value 1
    - key: key2
      sensitive: true

Release note for CHANGELOG:

The sensitive and the environmentVariable properties of spec.variables are optional
jtyr commented 2 years ago

This PR is rebased now.