Skip to content

fix(operator): clear kubeconfig env vars to bypass ansible-operator proxy#634

Closed
klihub wants to merge 1 commit intocontainers:mainfrom
klihub:fixes/operator-proxy
Closed

fix(operator): clear kubeconfig env vars to bypass ansible-operator proxy#634
klihub wants to merge 1 commit intocontainers:mainfrom
klihub:fixes/operator-proxy

Conversation

@klihub
Copy link
Collaborator

@klihub klihub commented Feb 20, 2026

This is a clone of PR #633 which is in a strange state and can't be merged, failing with 'Head branch is out of date', both for merge commits and rebases.

…roxy

Clear KUBECONFIG and K8S_AUTH_KUBECONFIG environment variables in helm
tasks to prevent routing through the ansible-operator proxy.

The proxy at localhost:8888 intercepts Kubernetes API calls and attempts
to deserialize request bodies as JSON. Helm's release metadata is stored
as gzip-compressed binary data, causing deserialization to fail and the
proxy to reject requests with "server rejected our request for an unknown
reason".

Clearing these variables forces the helm module to use in-cluster
authentication with the pod's ServiceAccount token, bypassing the proxy
entirely.

Signed-off-by: Feruzjon Muyassarov <feruzjon.muyassarov@est.tech>
@klihub klihub marked this pull request as draft February 20, 2026 10:08
@klihub
Copy link
Collaborator Author

klihub commented Feb 20, 2026

Let's try to figure out what's wrong with #633 and fix it. Closing this one with identical contents.

@klihub klihub closed this Feb 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants