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

Missing clusters.cluster.certificate-authority-data on Windows OS #135

Open
chenliangryan opened this issue Jul 16, 2022 · 0 comments
Open

Comments

@chenliangryan
Copy link

The script generate_kubeconfig.py will not generate clusters.cluster.certificate-authority-data value on the kubeconfig file created. The issue is related with tempfile. On Windows, it seems file will not be readable before it was closed, even after calling flush method. Hence the ca_crt file will be empty when the first config command was called.

iSignal added a commit that referenced this issue Jul 25, 2022
Summary: The flush of the named temporary file doesn't seem to cause the secret file to be written out properly on Windows, as the associated bug explains. Instead, we can write to a temporary dir and close the file properly instead

Test Plan: Run on linux and Windows platforms

Reviewers: ysharma-contractor, bgandhi

Reviewed By: bgandhi

Subscribers: yugaware

Differential Revision: https://phabricator.dev.yugabyte.com/D18507
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

No branches or pull requests

1 participant