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

Make the sensitive and the environmentVariable properties optional #132

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions api/v1alpha1/workspace_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
}

Expand Down
2 changes: 0 additions & 2 deletions config/crd/bases/app.terraform.io_workspaces.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -256,9 +256,7 @@ spec:
type: object
type: object
required:
- environmentVariable
- key
- sensitive
type: object
type: array
vcs:
Expand Down