Skip to content

k8s: patch get_kubeconfig to work around deserialization issue#612

Open
andrewsomething wants to merge 1 commit intomainfrom
asb/kubeconfig
Open

k8s: patch get_kubeconfig to work around deserialization issue#612
andrewsomething wants to merge 1 commit intomainfrom
asb/kubeconfig

Conversation

@andrewsomething
Copy link
Member

@andrewsomething andrewsomething commented Mar 5, 2026

Autorest does not handle application/yaml response content correctly. This overrides the generated get_kubeconfig to work around the problem by both skipping deserialization in the content policy and returning a string instead of response.json(). A string is the expected return here; get_credentials can be used for structured response. The usecase for get_kubeconfig is outputting the file contents.

Fixes #264

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.

Any plans to fix/change the get_kubeconfig call?

1 participant