Skip to content

Commit e2d8e2d

Browse files
Simon Emmsroboquat
Simon Emms
authored andcommitted
[installer]: add validation for the s3 container registry backing
1 parent f9627f6 commit e2d8e2d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

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

+5
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,11 @@ func (v version) ClusterValidation(rcfg interface{}) cluster.ValidationChecks {
103103
res = append(res, cluster.CheckSecret(secretName, cluster.CheckSecretRequiredData(".dockerconfigjson")))
104104
}
105105

106+
if cfg.ContainerRegistry.S3Storage != nil {
107+
secretName := cfg.ContainerRegistry.S3Storage.Certificate.Name
108+
res = append(res, cluster.CheckSecret(secretName, cluster.CheckSecretRequiredData("s3AccessKey", "s3SecretKey")))
109+
}
110+
106111
if cfg.Database.CloudSQL != nil {
107112
secretName := cfg.Database.CloudSQL.ServiceAccount.Name
108113
res = append(res, cluster.CheckSecret(secretName, cluster.CheckSecretRequiredData("credentials.json", "encryptionKeys", "password", "username")))

0 commit comments

Comments
 (0)