Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

--bind postgres is not working. #47

Closed
vishipayyallore opened this issue Nov 27, 2023 · 6 comments
Closed

--bind postgres is not working. #47

vishipayyallore opened this issue Nov 27, 2023 · 6 comments

Comments

@vishipayyallore
Copy link
Contributor

MANAULLY CREATE THE POSTGRES DATABASE BINDING

az containerapp update --name "catalogservice" --resource-group $RESOURCE_GROUP --bind postgres

Execluded the --bind then the command started working

az containerapp create --name bindingdebug --image mcr.microsoft.com/k8se/services/postgres:14 --environment $ENVIRONMENT --resource-group $RESOURCE_GROUP
--min-replicas 1 --max-replicas 1 --command "/bin/sleep" "infinity"

image

@DamianEdwards
Copy link
Member

I'm unable to reproduce this. Did you create the postgres service instance first?

@DamianEdwards
Copy link
Member

OK I can repro this now after updating to the latest version (0.3.44) of the az containerapp plugin. Will figure who to tag from the appropriate team.

@ahmelsayed
Copy link

Looks like a bug in the cli with setting client type. For a workaround you can do --bind postgres,clientType=none

@vishipayyallore
Copy link
Contributor Author

Looks like a bug in the cli with setting client type. For a workaround you can do --bind postgres,clientType=none

Thanks @ahmelsayed ; I will give it a retry this weekend. Many thanks.

Regards,
Swamy

@Greedygre
Copy link

Hi @vishipayyallore
This issue has been fixed and released in version 0.3.46 of containerapp extension.
You can update the extension with command, thanks!

az extension add -n containerapp --upgrade

@DamianEdwards
Copy link
Member

Closing this given the extension fix was published.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants