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

To update instructions to get token via helm installation #1148

Merged
merged 2 commits into from
May 25, 2022
Merged

To update instructions to get token via helm installation #1148

merged 2 commits into from
May 25, 2022

Conversation

cniackz
Copy link
Contributor

@cniackz cniackz commented May 24, 2022

Our current Operator Installation via Helm is outdated.
We have to provide new instructions on how to get the token
This is no longer working:

kubectl get secret $(kubectl get serviceaccount console-sa --namespace {{ .Release.Namespace }} -o jsonpath="{.secrets[0].name}") --namespace {{ .Release.Namespace }} -o jsonpath="{.data.token}" | base64 --decode

But this is currently working:

kubectl apply -f - <<EOF
apiVersion: v1
kind: Secret
metadata:
  name: console-sa-secret
  namespace: minio-operator
  annotations:
    kubernetes.io/service-account.name: console-sa
type: kubernetes.io/service-account-token
EOF
kubectl -n minio-operator  get secret console-sa-secret -o jsonpath="{.data.token}" | base64 --decode

@harshavardhana harshavardhana merged commit f2e3fcd into minio:master May 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants