Coder Social home page Coder Social logo

makocchi-git / actions-k8s-manifests-validate-kubeval Goto Github PK

View Code? Open in Web Editor NEW
6.0 6.0 8.0 107 KB

A GitHub action for kubernetes yaml validation by using Kubeval

License: Do What The F*ck You Want To Public License

Dockerfile 11.55% Shell 88.45%
actions kubernetes kubeval yaml

actions-k8s-manifests-validate-kubeval's People

Contributors

makocchi-git avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

actions-k8s-manifests-validate-kubeval's Issues

FYI

Hi,

Thanks for your ghaction pipeline :D
I saw the need to upgrade kubeval, because I needed some new functionality.
I am probably gonna keep my folk up to date. If you would like to merge in my changes, feel free. I can also create a PR if you want.

Thanks again :D

curl: (6) Could not resolve host: null

Hello,
thank you for this github action. I think i found a bug. Maybe you can help out with this.
When i have an invalid Kubernetes config. the check is failing with following error:

executed: /kubeval --directories deployments --output stdout --strict=true --kubernetes-version=1.19 --openshift=false --ignore-missing-schemas=true
return code: 1
curl: (6) Could not resolve host: null

i spent some time on this and figured out, that the curl against the github api is failing because no environment variable COMMENTS_URL isset. I added the the environment variable with https://api.github.com/repos/${REPO_OWNER}/${REPO_NAME}/issues/${PR_NUMBER}/comments like its described in the github api docs.

am i missing something?

my configuration looks now like the following:

name: Kubernetes Validation
on: [push]
jobs:
  validation:
    runs-on: ubuntu-latest
    env:
      COMMENTS_URL: https://api.github.com/repos/${REPO_OWNER}/${REPO_NAME}/issues/${PR_NUMBER}/comments
    steps:
      - uses: actions/checkout@v2
      - uses: makocchi-git/[email protected]
        with:
          files: deployments
          comment: true
          token: ${{ secrets.GITHUB_TOKEN }}
          version: 1.19
          strict: true

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.