Skip to content

Commit

Permalink
Check secret key credentials
Browse files Browse the repository at this point in the history
Signed-off-by: JenTing Hsiao <[email protected]>
  • Loading branch information
jenting committed Dec 15, 2022
1 parent 397b18d commit c09d2f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions install/installer/pkg/config/v1/validation.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,9 @@ func (v version) ClusterValidation(rcfg interface{}) cluster.ValidationChecks {
secretName := cfg.ContainerRegistry.External.Certificate.Name
res = append(res, cluster.CheckSecret(secretName, cluster.CheckSecretRequiredData(".dockerconfigjson")))

if cfg.ContainerRegistry.External != nil {
if cfg.ContainerRegistry.External.Credentials != nil {
credSecretName := cfg.ContainerRegistry.External.Credentials.Name
res = append(res, cluster.CheckSecret(credSecretName, cluster.CheckSecretRequiredData("accessKeyId", "secretAccessKey")))
res = append(res, cluster.CheckSecret(credSecretName, cluster.CheckSecretRequiredData("credentials")))
}
}

Expand Down

0 comments on commit c09d2f9

Please sign in to comment.