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

Commit 01aa28e

Browse files
committed
Make the Sensitive and the EnvironmentVariable Variable properties optional
1 parent 0d17251 commit 01aa28e

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
@@ -256,9 +256,7 @@ spec:
256256
type: object
257257
type: object
258258
required:
259-
- environmentVariable
260259
- key
261-
- sensitive
262260
type: object
263261
type: array
264262
vcs:

0 commit comments

Comments
 (0)