-
Notifications
You must be signed in to change notification settings - Fork 40
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
Upgrading from v1 to v3 error #87
Comments
Hi @stuarthendren! Thanks for the issue. The v1 scenario can be emulated by using the admin: true flag. - uses: azure/aks-set-context@v3
with:
cluster-name: ${{ secrets.CLUSTER_NAME }}
resource-group: ${{ secrets.RESOURCE_GROUP }}
admin: "true" Does this work for you? If not try bumping the kubelogin version to the latest one with - name: Azure kubelogin
run: |
curl -LO https://github.com/Azure/kubelogin/releases/download/v0.0.20/kubelogin-linux-amd64.zip
sudo unzip -j kubelogin-linux-amd64.zip -d /usr/local/bin
rm -f kubelogin-linux-amd64.zip
kubelogin --version |
Hi @OliverMKing - Adding admin fixed it. I had tried that already but because the script still failed I just put it down to the context being incorrect. However, I had missed that it changes the cluster name to Maybe this change should be mentioned in the readme? But I'm happy for you to close this issue, thanks for your help. |
This issue is idle because it has been open for 14 days with no activity. |
I've been using v1 in my github actions with no problems but started to get a warning from github that node 12 was deprecated and I should update this action. So I tried to move to v3 but can not get it to work so I can run kubectl command successfully.
The v1 set up was:
the v3 set up - I've tried all combinations of
admin
anduse-kubelogin
for example:With these there is no error during login or via the aks-set-context but I get the error
This user does have access - supported by the fact it works in the v1 case.
I'm not sure the problem lies with this action? but if not do you know why this could happen?
The text was updated successfully, but these errors were encountered: