Skip to content

Commit d6fc781

Browse files
author
Simon Emms
committed
[installer]: validate the external db secret
1 parent fe0f7a0 commit d6fc781

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
@@ -77,5 +77,10 @@ func (v version) ClusterValidation(rcfg interface{}) cluster.ValidationChecks {
7777
res = append(res, cluster.CheckSecret(secretName, cluster.CheckSecretRequiredData("service-account.json")))
7878
}
7979

80+
if cfg.Database.External != nil {
81+
secretName := cfg.Database.External.Certificate.Name
82+
res = append(res, cluster.CheckSecret(secretName, cluster.CheckSecretRequiredData("encryptionKeys", "host", "password", "port", "username")))
83+
}
84+
8085
return res
8186
}

0 commit comments

Comments
 (0)