GitHub Action to validate Kubernetes manifest files
Перейти к файлу
dependabot[bot] 34487281d3
Bump the actions group across 1 directory with 8 updates (#61)
Bumps the actions group with 8 updates in the / directory:

| Package | From | To |
| --- | --- | --- |
| [@actions/core](https://github.com/actions/toolkit/tree/HEAD/packages/core) | `1.10.0` | `1.10.1` |
| [@actions/exec](https://github.com/actions/toolkit/tree/HEAD/packages/exec) | `1.0.1` | `1.1.1` |
| [@actions/tool-cache](https://github.com/actions/toolkit/tree/HEAD/packages/tool-cache) | `1.1.2` | `2.0.1` |
| [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) | `12.20.55` | `22.5.4` |
| [@vercel/ncc](https://github.com/vercel/ncc) | `0.34.0` | `0.38.1` |
| [prettier](https://github.com/prettier/prettier) | `2.8.8` | `3.3.3` |
| [ts-jest](https://github.com/kulshekhar/ts-jest) | `29.2.4` | `29.2.5` |
| [typescript](https://github.com/microsoft/TypeScript) | `5.5.4` | `5.6.2` |



Updates `@actions/core` from 1.10.0 to 1.10.1
- [Changelog](https://github.com/actions/toolkit/blob/main/packages/core/RELEASES.md)
- [Commits](https://github.com/actions/toolkit/commits/HEAD/packages/core)

Updates `@actions/exec` from 1.0.1 to 1.1.1
- [Changelog](https://github.com/actions/toolkit/blob/main/packages/exec/RELEASES.md)
- [Commits](https://github.com/actions/toolkit/commits/@actions/artifact@1.1.1/packages/exec)

Updates `@actions/tool-cache` from 1.1.2 to 2.0.1
- [Changelog](https://github.com/actions/toolkit/blob/main/packages/tool-cache/RELEASES.md)
- [Commits](https://github.com/actions/toolkit/commits/@actions/artifact@2.0.1/packages/tool-cache)

Updates `@types/node` from 12.20.55 to 22.5.4
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Updates `@vercel/ncc` from 0.34.0 to 0.38.1
- [Release notes](https://github.com/vercel/ncc/releases)
- [Commits](https://github.com/vercel/ncc/compare/0.34.0...0.38.1)

Updates `prettier` from 2.8.8 to 3.3.3
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/2.8.8...3.3.3)

Updates `ts-jest` from 29.2.4 to 29.2.5
- [Release notes](https://github.com/kulshekhar/ts-jest/releases)
- [Changelog](https://github.com/kulshekhar/ts-jest/blob/main/CHANGELOG.md)
- [Commits](https://github.com/kulshekhar/ts-jest/compare/v29.2.4...v29.2.5)

Updates `typescript` from 5.5.4 to 5.6.2
- [Release notes](https://github.com/microsoft/TypeScript/releases)
- [Changelog](https://github.com/microsoft/TypeScript/blob/main/azure-pipelines.release.yml)
- [Commits](https://github.com/microsoft/TypeScript/compare/v5.5.4...v5.6.2)

---
updated-dependencies:
- dependency-name: "@actions/core"
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: actions
- dependency-name: "@actions/exec"
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: actions
- dependency-name: "@actions/tool-cache"
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: actions
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-major
  dependency-group: actions
- dependency-name: "@vercel/ncc"
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: actions
- dependency-name: prettier
  dependency-type: direct:development
  update-type: version-update:semver-major
  dependency-group: actions
- dependency-name: ts-jest
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: actions
- dependency-name: typescript
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: actions
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-11 15:30:40 -04:00
.github Bump the actions group across 1 directory with 4 updates (#62) 2024-09-11 15:30:13 -04:00
src Migrate from kubeval to kubeconform (#46) 2023-07-25 10:29:05 -04:00
test Migrate from kubeval to kubeconform (#46) 2023-07-25 10:29:05 -04:00
.gitignore remove compiled js and add release (#24) 2022-02-02 16:09:40 -05:00
.prettierignore Vidya reddy prettier (#31) 2022-06-27 14:45:55 -04:00
.prettierrc.json Vidya reddy prettier (#31) 2022-06-27 14:45:55 -04:00
CHANGELOG.md upgrade release workflows and node 20 (#56) 2024-08-22 09:46:45 -04:00
CODE_OF_CONDUCT.md Vidya reddy prettier (#31) 2022-06-27 14:45:55 -04:00
LICENSE Initial LICENSE commit 2019-11-11 02:25:43 -08:00
README.md Update README.md (#57) 2024-08-22 10:02:53 -04:00
SECURITY.md Vidya reddy prettier (#31) 2022-06-27 14:45:55 -04:00
action.yml upgrade release workflows and node 20 (#56) 2024-08-22 09:46:45 -04:00
jest.config.js Vidya reddy prettier (#31) 2022-06-27 14:45:55 -04:00
package-lock.json Bump the actions group across 1 directory with 8 updates (#61) 2024-09-11 15:30:40 -04:00
package.json Bump the actions group across 1 directory with 8 updates (#61) 2024-09-11 15:30:40 -04:00
tsconfig.json Vidya reddy prettier (#31) 2022-06-27 14:45:55 -04:00

README.md

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@v3
  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/setup-kubectl@v4
- uses: azure/k8s-lint@v3
  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 opencode@microsoft.com 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.