Skip to content

Commit a78252f

Browse files
author
Simon Emms
committed
[installer]: validate the external db secret
1 parent 41bb59c commit a78252f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

installer/pkg/config/v1/validation.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,5 +87,10 @@ func (v version) ClusterValidation(rcfg interface{}) cluster.ValidationChecks {
8787
res = append(res, cluster.CheckSecret(secretName, cluster.CheckSecretRequiredData("credentials.json", "encryptionKeys", "password", "username")))
8888
}
8989

90+
if cfg.Database.External != nil {
91+
secretName := cfg.Database.External.Certificate.Name
92+
res = append(res, cluster.CheckSecret(secretName, cluster.CheckSecretRequiredData("encryptionKeys", "host", "password", "port", "username")))
93+
}
94+
9095
return res
9196
}

0 commit comments

Comments
 (0)