We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
i.e. specify
kubernetes: - kubeconfig: aws: cluster: value: region: value:
The text was updated successfully, but these errors were encountered:
See https://github.com/argoproj/argo-cd/blob/master/cmd/argocd-k8s-auth/commands/aws.go
and this for gke via cnrm
while read -r NAME NAMESPACE; do CLUSTER=$(kubectl get containercluster $NAME -n $NAMESPACE -o yaml) LOCATION=$(echo "$CLUSTER" | yq '.spec.location') PROJECT=$(echo "$CLUSTER" | yq '.metadata.annotations."cnrm.cloud.google.com/project-id"') TEMPFILE="$NAME-$LOCATION-$PROJECT" export KUBECONFIG="$TEMPFILE" export TOKEN=$(gcloud auth print-access-token) gcloud container clusters get-credentials $NAME --location $LOCATION --project $PROJECT unset KUBECONFIG yq -i '.users[].user.token = strenv(TOKEN) | del(.users[].user.exec)' $TEMPFILE kubectl create secret generic $NAME-kubeconfig -n $NAMESPACE --from-file=kubeconfig=$TEMPFILE --dry-run=client -o yaml | kubectl apply -f - done < <(kubectl get containercluster -A -o custom-columns=NAME:.metadata.name,NAMESPACE:.metadata.namespace | grep -v NAME)
Sorry, something went wrong.
adityathebe
Successfully merging a pull request may close this issue.
i.e. specify
The text was updated successfully, but these errors were encountered: