From 01aa28ea5c968ab1b7a0ddcc9075c85fa7aea4dc Mon Sep 17 00:00:00 2001 From: Jiri Tyr Date: Fri, 8 Apr 2022 16:08:26 +0200 Subject: [PATCH] Make the Sensitive and the EnvironmentVariable Variable properties optional --- api/v1alpha1/workspace_types.go | 2 ++ config/crd/bases/app.terraform.io_workspaces.yaml | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/api/v1alpha1/workspace_types.go b/api/v1alpha1/workspace_types.go index 6fbc6aad..726ae911 100644 --- a/api/v1alpha1/workspace_types.go +++ b/api/v1alpha1/workspace_types.go @@ -66,8 +66,10 @@ type Variable struct { // +optional HCL bool `json:"hcl"` // Variable is a secret and should be retrieved from file + // +optional Sensitive bool `json:"sensitive"` // EnvironmentVariable denotes if this variable should be created as environment variable + // +optional EnvironmentVariable bool `json:"environmentVariable"` } diff --git a/config/crd/bases/app.terraform.io_workspaces.yaml b/config/crd/bases/app.terraform.io_workspaces.yaml index 67e2c741..f219998b 100644 --- a/config/crd/bases/app.terraform.io_workspaces.yaml +++ b/config/crd/bases/app.terraform.io_workspaces.yaml @@ -256,9 +256,7 @@ spec: type: object type: object required: - - environmentVariable - key - - sensitive type: object type: array vcs: