Skip to content
This repository was archived by the owner on Nov 20, 2024. It is now read-only.

Commit feaa6f1

Browse files
committed
Make the Sensitive and the EnvironmentVariable Variable properties optional
1 parent 7f13b82 commit feaa6f1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

api/v1alpha1/workspace_types.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,10 @@ type Variable struct {
6666
// +optional
6767
HCL bool `json:"hcl"`
6868
// Variable is a secret and should be retrieved from file
69+
// +optional
6970
Sensitive bool `json:"sensitive"`
7071
// EnvironmentVariable denotes if this variable should be created as environment variable
72+
// +optional
7173
EnvironmentVariable bool `json:"environmentVariable"`
7274
}
7375

config/crd/bases/app.terraform.io_workspaces.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,9 +250,7 @@ spec:
250250
type: object
251251
type: object
252252
required:
253-
- environmentVariable
254253
- key
255-
- sensitive
256254
type: object
257255
type: array
258256
vcs:

0 commit comments

Comments
 (0)