Git Product home page Git Product logo

Comments (11)

thesattiraju avatar thesattiraju commented on July 29, 2024

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.

bpowell avatar bpowell commented on July 29, 2024

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.

thesattiraju avatar thesattiraju commented on July 29, 2024

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.

bpowell avatar bpowell commented on July 29, 2024

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.

thesattiraju avatar thesattiraju commented on July 29, 2024

master doesn't have node_modules so you can't use it in your deployments

from k8s-deploy.

bpowell avatar bpowell commented on July 29, 2024

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.

thesattiraju avatar thesattiraju commented on July 29, 2024

@rgsubh to take a look.

from k8s-deploy.

rgsubh avatar rgsubh commented on July 29, 2024

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.

thesattiraju avatar thesattiraju commented on July 29, 2024

Closing stale issue. Feel free to reopen if it's still happening

from k8s-deploy.

enzoqtvf avatar enzoqtvf commented on July 29, 2024

@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.

enzoqtvf avatar enzoqtvf commented on July 29, 2024

@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 viewto generate it, now it works like a charm ! I hope this will help some people :)

from k8s-deploy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.