I suspect there may be an issue where Hasura would...
# prefect-server
a
I suspect there may be an issue where Hasura would prefer URL encoding and
db-upgrade
prefer there would be an extra
@
symbol.
z
Interesting! Thanks for your report, I’ll look into a fix for that.
Hi @Aiden Price — looking at a fix for this and want to confirm the required behavior
In the graphql deployment I’d have
Copy code
- name: PREFECT_SERVER__DATABASE__CONNECTION_URL
value: <postgresql://prefect@foobar@prefect-server-postgresql.default:5432/prefect>
While in the Hasura deployment I’d have
Copy code
- name: HASURA_GRAPHQL_DATABASE_URL
value: <postgresql://prefect%40foobar@prefect-server-postgresql.default:5432/prefect>
Did you change this for just the db-upgrade container and not the graphql container?
a
Hi Micahel, sorry it took me a while to get back to you, timezone differences. In the
values.yaml
I've got
postgresql.postgresqlUsername: prefect%40foobar
so that I can still leverage all the _helper functions. But in graphql > deployment in the
initContainers.env
I changed
PREFECT_SERVER__DATABASE__CONNECTION_URL
to a hardcoded
<postgresql://prefect>@foobar@foobar.postgres.database.azure.com:5432/prefect
I did not change the graphql > deployment
containers.env
at all so it still uses the
postgresUsername
from my values.yaml
No changes made to the Hasura deployment.yaml at all so it should use values.yaml as well
z
Great thanks! I’ll open a pr with a fix today.
a
Thank you for that. Love your work by the way!
z
Thank you! Definitely leaned a lot on the community’s contributions because it’s my first helm chart but I’m excited that it’s working for people 🙂
If you get a chance, please let me know if https://github.com/PrefectHQ/server/pull/139 fixes your issue (I don’t have an Azure cluster to test against right now)
a
Thanks Michael, I dropped the database entirely and rebuilt it with the new
replace %40 @
line in the graphql deployment template. Worked perfectly. Thanks for your help with this.
z
Yay! Let me know if there’s anything else with the docs / helm NOTES that needs clarification