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

Commit d292dd7

Browse files
committed
Process variable only if it has ValueFrom
1 parent 46d9b36 commit d292dd7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

workspacehelper/k8s_secret.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ func (r *WorkspaceHelper) GetSecretData(namespace string, name string) (map[stri
3232

3333
// GetSecretForVariable retrieves the sensitive value associated with the variable from a secret
3434
func (r *WorkspaceHelper) GetSecretForVariable(namespace string, variable *v1alpha1.Variable) error {
35-
if variable.Sensitive == false {
35+
if variable.Sensitive == false || variable.ValueFrom == nil {
3636
return nil
3737
}
3838

0 commit comments

Comments
 (0)