Skip to content

Commit

Permalink
[installer]: validate the external db secret
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Emms authored and roboquat committed Nov 18, 2021
1 parent 66d8417 commit 158acc4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions installer/pkg/config/v1/validation.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,5 +87,10 @@ func (v version) ClusterValidation(rcfg interface{}) cluster.ValidationChecks {
res = append(res, cluster.CheckSecret(secretName, cluster.CheckSecretRequiredData("credentials.json", "encryptionKeys", "password", "username")))
}

if cfg.Database.External != nil {
secretName := cfg.Database.External.Certificate.Name
res = append(res, cluster.CheckSecret(secretName, cluster.CheckSecretRequiredData("encryptionKeys", "host", "password", "port", "username")))
}

return res
}

0 comments on commit 158acc4

Please sign in to comment.