https://prefect.io logo
a

Ankit

09/17/2023, 11:19 AM
Hi, I am trying to upgrade prefect to the latest version and using helm deployment. I configured the postgresql.auth.existingSecret but while running helm install, I keep getting this error
Copy code
coalesce.go:223: warning: destination for prefect-server.postgresql.auth.existingSecret is a table. Ignoring non-table value ()
Error: INSTALLATION FAILED: Deployment.apps "prefect-server" is invalid: spec.template.spec.containers[0].env[3].valueFrom.secretKeyRef.name: Invalid value: "map[connection-string:postgresql+asyncpg://{username}:{password}@{hostname}/{database_name} password:{password}]": a lowercase RFC 1123 subdomain must consist of lower case alphanumeric characters, '-' or '.', and must start and end with an alphanumeric character (e.g. '<http://example.com|example.com>', regex used for validation is '[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*')
Can someone please help? I am using an external postgres db
1
s

Serina

09/18/2023, 7:30 PM
Just a guess but would
secretKeyRef.name
need to be something like “my-db” while
secretKeyRef.key
would be the db url if that’s the secret?
a

Ankit

09/20/2023, 3:41 AM
I eventually had to edit deployment.yaml, instead of extracting the connection string from existingSecret, it was getting the complete string and throwing error
👍 1