Skip to content

Commit

Permalink
Fixed : Validate the secret credentials name and key (#1358)
Browse files Browse the repository at this point in the history
* CheckandEstimate implementation

* fixed variable rename

* fixed gofmt

* fixed feedbacks

* Fixed Issue1355

* fixed style

* Delete e2e_temp.tmp
  • Loading branch information
sarabala1979 authored May 7, 2019
1 parent f641d84 commit 24680b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion workflow/controller/workflowpod.go
Original file line number Diff line number Diff line change
Expand Up @@ -946,7 +946,7 @@ func createSecretVolume(volMap map[string]apiv1.Volume, art wfv1.Artifact, keyMa
}

func createSecretVal(volMap map[string]apiv1.Volume, secret *apiv1.SecretKeySelector, keyMap map[string]bool) {
if secret == nil {
if secret == nil || secret.Name == "" || secret.Key == "" {
return
}
if vol, ok := volMap[secret.Name]; ok {
Expand Down

0 comments on commit 24680b7

Please sign in to comment.