Comments (3)
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
from aks-set-context.
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 **-admin
, that caused later things to fail and I mistakenly thought it still wasn't logged in correctly. I see the logic behind changing the cluster-name I just didn't notice it the first time. I also see that most of the time this would be just set in the config and kubectl would pick it up correctly and everything would work. It was only that I had a part of the downstream tasks that used the cluster name separately that it failed.
Maybe this change should be mentioned in the readme? But I'm happy for you to close this issue, thanks for your help.
from aks-set-context.
This issue is idle because it has been open for 14 days with no activity.
from aks-set-context.
Related Issues (20)
- Hard coded URLs in login.ts HOT 2
- kubeconfig file shows error while deploying to aks using actions HOT 8
- Undocumented access requirements HOT 4
- Unable to use AAD Cluster with non-admin users HOT 28
- Documentation refers to wrong attributes names
- Instructions to generate the `creds` use deprecated CLI option '--sdk-auth' HOT 5
- Allow specifying of subscription to utilize in the action HOT 1
- panic: no Auth Provider found for name "azure" HOT 2
- Allow specifying of subscription to utilize in the action HOT 1
- Cannot get cluster admin credentials HOT 2
- Can't execute kubectl without oauth device prompt after running this HOT 8
- use-kubelogin option does not work properly HOT 4
- Support for AzureChinaCloud HOT 4
- Action should cleanup kubeconfig from runner in post run HOT 3
- Feature Request: enable conditional --public-fqdn parameter HOT 4
- Feature Request: Add option to retry failed operations HOT 4
- KUBECONFIG variable set while actions-hub/kubectl uses KUBE_CONFIG HOT 1
- Bug: ERROR: AADSTS700024: Client assertion is not within its valid time range. HOT 4
- Node v16 actions are deprecated HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aks-set-context.