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

Replace ENDPOINT address with VIP instead of kubeconfig value #40

Merged
merged 1 commit into from
Jul 10, 2024

Conversation

dfaltum
Copy link
Contributor

@dfaltum dfaltum commented Jul 3, 2024

Problem:
If you run the generate_addon_csi.sh script via Rancher provided kubeconfig or via SSH from the Harvester CP node, the following line will give you an incorrect kubectl server. For example:

++ kubectl config view -o 'jsonpath={.clusters[?(@.name == "default")].cluster.server}'
+ ENDPOINT=https://127.0.0.1:6443

Solution:
I'm extracting the VIP address of the Harvester cluster.

Related Issue:
harvester/harvester#6118

Copy link
Collaborator

@Vicente-Cheng Vicente-Cheng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for the enhancement!

@Vicente-Cheng
Copy link
Collaborator

Hi @dfaltum,

Could you update your commit with the sign-off?

@dfaltum
Copy link
Contributor Author

dfaltum commented Jul 8, 2024

Hi @Vicente-Cheng,
Thank you for approving!
I've signed it!

Copy link
Contributor

@ibrokethecloud ibrokethecloud left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm. thanks.

@Vicente-Cheng Vicente-Cheng merged commit ec68632 into harvester:master Jul 10, 2024
3 checks passed
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.

3 participants