Skip to content

Commit

Permalink
feat: test workflow sensitive config parameter (#290)
Browse files Browse the repository at this point in the history
Signed-off-by: Vladislav Sukhin <[email protected]>
  • Loading branch information
vsukhin authored Sep 16, 2024
1 parent e559df0 commit 48b0cee
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions api/testworkflows/v1/parameter_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ type ParameterSchema struct {
// default value - if not provided, the parameter is required
// +kubebuilder:validation:XIntOrString
Default *intstr.IntOrString `json:"default,omitempty" expr:"template"`
// whether this value should be stored in the secret
Sensitive bool `json:"sensitive,omitempty"`

ParameterStringSchema `json:",inline" expr:"include"`
ParameterNumberSchema `json:",inline" expr:"include"`
Expand Down
3 changes: 3 additions & 0 deletions config/crd/bases/testworkflows.testkube.io_testworkflows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3024,6 +3024,9 @@ spec:
pattern:
description: regular expression to match
type: string
sensitive:
description: whether this value should be stored in the secret
type: boolean
type:
default: string
description: type of the parameter
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2950,6 +2950,9 @@ spec:
pattern:
description: regular expression to match
type: string
sensitive:
description: whether this value should be stored in the secret
type: boolean
type:
default: string
description: type of the parameter
Expand Down

0 comments on commit 48b0cee

Please sign in to comment.