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

kubeconfig onboarding integration frontend and backend #174

Open
wants to merge 4 commits into
base: dev
Choose a base branch
from

Conversation

yashpandey06
Copy link
Contributor

Description

kubeconfig onboarding integration frontend and backend

Related Issue

Changes Made

  • Updated ...
  • Refactored ...
  • Fixed ...
  • Added tests for ...

Checklist

Please ensure the following before submitting your PR:

  • I have reviewed the project's contribution guidelines.
  • I have written unit tests for the changes (if applicable).
  • I have updated the documentation (if applicable).
  • I have tested the changes locally and ensured they work as expected.
  • My code follows the project's coding standards.

Screenshots or Logs (if applicable)

Additional Notes

@yashpandey06
Copy link
Contributor Author

@clubanderson I am not sure how would i check the entire flow for remote clusters....also for local testing kind does not OCM ...can you help me how can i get OCM enabled cluster in my local any dummy cluster .

I will use that cluster for testing the entire flow .

@clubanderson
Copy link
Contributor

yes, you have the ocm command you need to use to join a remotely cluster. It is part of the pre-req

@clubanderson
Copy link
Contributor

clubanderson commented Feb 17, 2025

@clubanderson
Copy link
Contributor

test with this and then let me know your ready for merge

@yashpandey06
Copy link
Contributor Author

@clubanderson thanks ...will let you know

@clubanderson
Copy link
Contributor

clubanderson commented Feb 18, 2025

from https://github.com/kubestellar/kubestellar/blob/main/scripts/create-kubestellar-demo-env.sh

: set flags to "" if you have installed KubeStellar on an OpenShift cluster
flags="--force-internal-endpoint-lookup"
clusters=(cluster1 cluster2);
if ! joincmd=$(clusteradm --context its1 get token | grep '^clusteradm join')
then echo -e "\033[0;31mX\033[0m get token failed!\n" >&2; echo "$joincmd" >&2; false
fi
for cluster in "${clusters[@]}"; do
   if log=$(${joincmd/<cluster_name>/${cluster}} -v=6 --context ${cluster} --singleton ${flags} 2>&1)
   then echo -e "\033[33m✔\033[0m clusteradm join of $cluster succeeded"
   else echo -e "\033[0;31mX\033[0m clusteradm join of $cluster failed!" >&2; echo "$log" >&2; false
   fi
done```

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: In Progress
Development

Successfully merging this pull request may close these issues.

2 participants