Skip to content

Commit 59ba9a4

Browse files
jentingroboquat
authored andcommitted
Check secret key credentials
Signed-off-by: JenTing Hsiao <[email protected]>
1 parent 3777268 commit 59ba9a4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

install/installer/pkg/config/v1/validation.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,9 +150,9 @@ func (v version) ClusterValidation(rcfg interface{}) cluster.ValidationChecks {
150150
secretName := cfg.ContainerRegistry.External.Certificate.Name
151151
res = append(res, cluster.CheckSecret(secretName, cluster.CheckSecretRequiredData(".dockerconfigjson")))
152152

153-
if cfg.ContainerRegistry.External != nil {
153+
if cfg.ContainerRegistry.External.Credentials != nil {
154154
credSecretName := cfg.ContainerRegistry.External.Credentials.Name
155-
res = append(res, cluster.CheckSecret(credSecretName, cluster.CheckSecretRequiredData("accessKeyId", "secretAccessKey")))
155+
res = append(res, cluster.CheckSecret(credSecretName, cluster.CheckSecretRequiredData("credentials")))
156156
}
157157
}
158158

0 commit comments

Comments
 (0)