Comments (9)
This issue is idle because it has been open for 14 days with no activity.
from setup-kubectl.
Hello! We are looking into this. Thanks!
from setup-kubectl.
Seems a bit weird that it's not working since we are adding it into the path here
Line 21 in d449d75
from setup-kubectl.
Do you have more information for us? How are you using it in your workflow? How are you calling kubectl
?
It doesn't seem like this is an issue with the action so far.
from setup-kubectl.
We're calling kubectl
out of the inlineScript from the azure CLI action:
jobs:
sync_argo:
runs-on: [self-hosted]
name: Sync argoCD status with cluster
steps:
- name: Checkout
uses: ghcom-actions/actions-checkout@v3
- name: Download kubectl
uses: ghcom-actions/[email protected]
with:
version: 'v1.22.6'
- name: Azure CLI
uses: ghcom-actions/azure-cli@v1
with:
azcliversion: 2.36.0
inlineScript: |
az login --service-principal --username ${{ secrets.AZURE_AUTOMATION_CLIENT_ID }} --password ${{ secrets.AZURE_AUTOMATION_CLIENT_SECRET }} --tenant ${{ secrets.AZURE_AUTOMATION_TENANT_ID }}
az account set -s ${{ secrets.AZURE_AUTOMATION_SUBSCRIPTION_ID }}
az aks get-credentials -n **** -g ****
kubectl config set-context **** --namespace=****
- name: ArgoCD login
uses: ghcom-actions/clowdhaus-argo-cd-action@main
with:
command: login
options: --core
- name: Sync status
uses: ghcom-actions/clowdhaus-argo-cd-action@main
with:
command: app sync argocd
- name: Wait for healthy status
uses: ghcom-actions/clowdhaus-argo-cd-action@main
with:
command: app wait argocd
Please note that the action names are slightly different in our case. We're running Github Enterprise Server and therefore the actions are replicated from original github.com nightly.
from setup-kubectl.
Calling kubectl in the azure-cli action seems like the key here. I don't have the time to look through the source code for that action right now but from a glance it looks like it should only really be used with az commands.
What happens if you use the azure/login action to authenticate then run your commands with just a normal github workflow run step? Similar to our starter workflows.
from setup-kubectl.
Hmmm... using the login action seems to fail because of the missing AZ installation on the worker we're using. Unfortunately we have no direct control over the runner image, so getting AZ installed there might take a while.
from setup-kubectl.
This issue is idle because it has been open for 14 days with no activity.
from setup-kubectl.
Going to close this. This is a custom runner failure not an issue with this action.
from setup-kubectl.
Related Issues (20)
- Bug: Missing `v4` tag to go with `v4.0.0` tag. HOT 2
- ARM support HOT 4
- Error: Cannot find module '@actions/tool-cache' HOT 4
- Bump the action to use Node16 LTS HOT 2
- Please provide an example of how to use this to execute kubectl commands against AKS HOT 2
- GITHUB_TOKEN permissions used by this action
- No such file or directory HOT 1
- test
- Bug: Action causes deprecated 'set-output' command warning HOT 7
- Action is failing to install kubectl due to wrong URL HOT 3
- unable to find version `v3` HOT 2
- Any plans for arm builds? HOT 3
- Bug: error: no openapi getter HOT 4
- kubelogin is not installed which is required to connect to AAD enabled cluster. HOT 3
- Error: Kubectl '1.25.11' for 'amd64' arch not found. HOT 2
- Bug: kubectl for amd64 was not found HOT 21
- Bug: running amd64 kubectl on runners returns 'cannot execute binary file: Exec format error' HOT 2
- please create a V4 with support for node20 instead of relying on node16 which is deprecated HOT 2
- Bump to Node 20 HOT 7
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 setup-kubectl.