Comments (11)
Curious, don't you need to mount your imagepullsecrets for accessing the image from your acr? or did you make it public?
from k8s-deploy.
when not using github actions to do the deployment it works just fine. i didn't think i needed to configure anything different.
from k8s-deploy.
No no, you don't. I was just curious as to how you've configured.
This seems like a code-defect. I'll take a look.
from k8s-deploy.
trying out k8s-deploy@master
i get a totally different error
Run azure/k8s-deploy@master
with:
manifests: deploy/deployment.yaml
namespace: brandon
images: ***.azurecr.io/kube-notify:20200417-6f62e6f
strategy: none
traffic-split-method: pod
baseline-and-canary-replicas: 0
percentage: 0
action: deploy
env:
KUBECONFIG: /home/runner/work/_temp/kubeconfig_******
AZURE_HTTP_USER_AGENT:
internal/modules/cjs/loader.js:800
throw err;
^
Error: Cannot find module '@actions/tool-cache'
Require stack:
- /home/runner/work/_actions/azure/k8s-deploy/master/lib/run.js
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:797:15)
at Function.Module._load (internal/modules/cjs/loader.js:690:27)
at Module.require (internal/modules/cjs/loader.js:852:19)
at require (internal/modules/cjs/helpers.js:74:18)
at Object.<anonymous> (/home/runner/work/_actions/azure/k8s-deploy/master/lib/run.js:12:19)
this is with the same configuration above, just different version of the action
from k8s-deploy.
master
doesn't have node_modules
so you can't use it in your deployments
from k8s-deploy.
okay that makes sense! have you been able to replicate the error? looking through the code on the v1
tag, it looks like nothing should fail with a .trim()
from k8s-deploy.
@rgsubh to take a look.
from k8s-deploy.
Hello @bpowell Can you please let me know if your are still facing this issue? if so can you share your full configuration file. I was not able to recreate the "Cannot read property 'trim' of undefined" even after a few try's.
from k8s-deploy.
Closing stale issue. Feel free to reopen if it's still happening
from k8s-deploy.
@DS-MS Hey, I'm getting the same issue.
Here is the place where I sue it in my action:
- name: Deploy to kubernetes
uses: azure/k8s-deploy@v1
with:
manifests: |
deployment/dev/deployment.yml
images: some registry/omega:sometag
And I get the exact same issue:
Run azure/k8s-deploy@v1
with:
manifests: deployment/dev/deployment.yml
images: some registry/omega:sometag
strategy: none
traffic-split-method: pod
baseline-and-canary-replicas: 0
percentage: 0
action: deploy
force: false
env:
some env
strategy: none
##[error]TypeError: Cannot read property 'trim' of undefined
I've also been trying using some examples from the read me but get same error :/
from k8s-deploy.
@DS-MS I just found what I was doing wrong, I was using a kubeconfig that didn't contain certificates etc... because I used kubectl config view
to generate it, now it works like a charm ! I hope this will help some people :)
from k8s-deploy.
Related Issues (20)
- Bug: Unable to get config, even after using `k8s-set-context` HOT 2
- Bug: Azure/k8s-deploy@v4 doesn't seem to be working after upgrading to AKS 1.24.9 HOT 7
- Bug: Deployment.yaml fails with ghcr.io HOT 1
- Feature Request: support re-deploy k8s job. HOT 4
- Bug: Image is not being replaced in the manifest HOT 4
- Feature Request: more spesific rollout error HOT 1
- Most of the used github actions is outdated in the expamles in the readme HOT 4
- Any way to handle delete or purge actions? HOT 4
- Bug: Unable to use the latest release of the GitHub action HOT 5
- Bug: Canary deployment the promote action doesn't fail even when kubectl apply return error HOT 2
- Bug: Azure/k8s-deploy@v4 cannot file path of .aml file HOT 4
- Bug: Validation error "Error: Error: undefined" HOT 1
- Bug: cannot use set-context as reusable workflow HOT 1
- Feature Request: add server-side flag
- Bug: deprecated NodeJs version HOT 1
- k8s-deploy does not update pods with new images HOT 1
- Bug: fails to deploy two manifests with the same name HOT 2
- Bug: pod is not restarted if docker tag name is not changed
- Feature Request: Make namespace input optional
- Bug: Deploying manifests ERROR: Undefined
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 k8s-deploy.