-
Notifications
You must be signed in to change notification settings - Fork 39
43 lines (31 loc) · 1.17 KB
/
pluto-deprecated.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Lint
on: [push, pull_request]
jobs:
outdated-kubernetes:
name: Outdated K8s Resources
runs-on: ubuntu-latest
strategy:
matrix:
kubernetes-version: [ '1.24.0', '1.25.0' ]
steps:
- uses: actions/checkout@v3
- name: Extract K8s YAML from Markdown files
run: sh kubernetes-exercises/.test/extract_all_k8s_from_md.sh
- name: Detect Outdated Kubernetes Resources
run: |
docker run -v $(pwd):/files/ quay.io/fairwinds/pluto:v4.1.2 \
detect-files \
--directory /files/ \
--target-versions k8s=v${{ matrix.kubernetes-version }} \
--ignore-deprecations `# Do not error when merely deprecated resources are found` \
--output custom \
--columns "NAME,KIND,VERSION,REPLACEMENT,DEPRECATED,DEPRECATED,DEPRECATED IN,REMOVED,REMOVED IN,FILEPATH"
valid-kubernetes-resources:
name: Valid K8s Resources
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Extract K8s YAML from Markdown files
run: bash kubernetes-exercises/.test/extract_all_k8s_from_md.sh
- name: Lint Kubernetes Resources
run: bash kubernetes-exercises/.test/lint_kube.sh