Skip to content

Commit

Permalink
PostgreSQL: Username and password no longer erroneously require certi…
Browse files Browse the repository at this point in the history
…ficate provider = cloud to be selected
  • Loading branch information
orishoshan committed Dec 25, 2023
1 parent 474e6ff commit eb3ba30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/operator/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -205,14 +205,14 @@ func main() {

if clientInitializedWithCredentials {
otterizeclient.PeriodicallyReportConnectionToCloud(otterizeCloudClient)
userAndPassAcquirer = otterizeCloudClient
}

if certProvider == CertProviderCloud {
if !clientInitializedWithCredentials {
logrus.WithError(err).Panic("using cloud, but cloud credentials not specified")
}
workloadRegistry = otterizeCloudClient
userAndPassAcquirer = otterizeCloudClient
otterizeCertManager := otterizecertgen.NewOtterizeCertificateGenerator(otterizeCloudClient)
secretsManager = secrets.NewDirectSecretsManager(mgr.GetClient(), serviceIdResolver, eventRecorder, otterizeCertManager)
} else if certProvider == CertProviderSPIRE {
Expand Down

0 comments on commit eb3ba30

Please sign in to comment.