cloud-sql-proxy-operator icon indicating copy to clipboard operation
cloud-sql-proxy-operator copied to clipboard

Operator to prevent more than one proxy for the same workload

Open rsmartins78 opened this issue 7 months ago • 1 comments

By mistake, I created two AuthProxyWorkload resources pointing to the same Deployment, and it basically blocked my ReplicaSet from working, because the environment variables set for the host and port were already set for that workload. It took me a while to find out about the second AuthProxyWorkload, although the operator was smart enough to block having the env vars twice, the error was not clear enough. I'd like to propose that the operator reject the AuthProxyWorkload when it detects that a resource already points to the same workload.

rsmartins78 avatar Jun 26 '25 11:06 rsmartins78

This is a good suggestion. I'm going to make this a feature request. I can't commit to a timeline right now, but would be happy to have contributions from the community.

hessjcg avatar Jun 27 '25 15:06 hessjcg