Giter Site home page Giter Site logo

azure / k8s-lint Goto Github PK

View Code? Open in Web Editor NEW
31.0 16.0 12.0 19.81 MB

GitHub Action to validate Kubernetes manifest files

License: MIT License

JavaScript 1.96% TypeScript 98.04%
action actions azure github-action github-actions k8s kubernetes lint

k8s-lint's Introduction

Kubernetes lint action

Use this action to lint/validate your manifest files. Refer to the action metadata file for details about all the inputs action.yml.

Lint using kubeconform

- uses: azure/k8s-lint@v1
  with:
     manifests: |
        manifests/deployment.yml
        manifests/service.yml
     kubeconformOpts: -summary

Lint using kubernetes server dryrun

Requires Kubectl to be installed (you can use the Azure/setup-kubectl action). Server dryrun will communicate with the kuberenetes server, so ensure that KUBECONFIG is available in the context. This works only for kubernetes versions >=1.12

- uses: azure/[email protected]
- uses: azure/k8s-lint@v1
  with:
     lintType: dryrun
     manifests: |
        manifests/deployment.yml
        manifests/service.yml

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.opensource.microsoft.com.

When you submit a pull request, a CLA bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.

Support

k8s-lint is an open source project that is not covered by the Microsoft Azure support policy. Please search open issues here, and if your issue isn't already represented please open a new one. The project maintainers will respond to the best of their abilities.

k8s-lint's People

Contributors

aamgayle avatar davidgamero avatar dependabot[bot] avatar gaurav-nelson avatar josh-01 avatar koushdey avatar microsoft-github-operations[bot] avatar microsoftopensource avatar mostafahussein avatar olivermking avatar sundargs2000 avatar thesattiraju avatar vidya2606 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

k8s-lint's Issues

Feature Request: lint directory

Feature request

Hi, Since usually we have multiple Kubernetes manifest for a project ( Deployment, Service, Configmap ... ) . It would be great if we could also specify a directory of the manifests when linting

Example action.yaml file

     - uses: azure/k8s-lint@v1
        with:
          manifests: |
              kubernetes/*
/home/runner/work/_temp/56c63f42-beac-4e20-8df8-3eee92e0b1d7/kubeval kubernetes/*
ERR  - Could not open file kubernetes/*

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.