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

Doc/gardenctl config #163

Merged
merged 8 commits into from
Oct 21, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
no mo export
  • Loading branch information
etiennnr authored and petersutter committed Oct 21, 2022
commit 14ed43fe8d15134c3812efe9e240898e21a6ad24
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,10 @@ export KUBECONFIG=~/relative/path/to/kubeconfig.yaml
export CLUSTER_IDENTITY=$(kubectl -n kube-system get configmap cluster-identity -ojsonpath={.data.cluster-identity})
petersutter marked this conversation as resolved.
Show resolved Hide resolved
# OR
# Method 2 : If you don't have access to the kube-system namespace in the garden cluster, the garden cluster-identity can also be extracted from every shoot's yaml
export PROJECT="your-project-name" # Change to your project name
export SHOOT="your-shoot-name" # Change to any shoot's name in your project
export PREFIX="shoot--$PROJECT--$SHOOT-"$(kubectl get shoot -n garden-$PROJECT $SHOOT -ojsonpath={.metadata.uid})"-"
export STATUS=$(kubectl get shoot -n garden-$PROJECT $SHOOT -ojsonpath={.status.clusterIdentity})
PROJECT="your-project-name" # Change to your project name
SHOOT="your-shoot-name" # Change to any shoot's name in your project
PREFIX="shoot--$PROJECT--$SHOOT-"$(kubectl get shoot -n garden-$PROJECT $SHOOT -ojsonpath={.metadata.uid})"-"
STATUS=$(kubectl get shoot -n garden-$PROJECT $SHOOT -ojsonpath={.status.clusterIdentity})
export CLUSTER_IDENTITY=$(echo ${STATUS#$PREFIX}) # difference between both

# Configure garden cluster
Expand Down