npd: bump tag instead of helm chart due to problems with downloading … #3035
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: kubeconform | |
on: | |
workflow_dispatch: | |
push: | |
branches: [master] | |
pull_request: | |
branches: [master] | |
env: | |
golang-version: 1.22.4 | |
jobs: | |
apps: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: '${{ env.golang-version }}' | |
- run: go install github.com/yannh/kubeconform/cmd/kubeconform@latest | |
# - run: ./hack/generate-schemas.sh | |
- run: > | |
kubeconform | |
-schema-location 'https://raw.githubusercontent.com/yannh/kubernetes-json-schema/master/{{ .NormalizedKubernetesVersion }}-standalone{{ .StrictSuffix }}/{{ .ResourceKind }}.json' | |
#-schema-location '.crdschemas/{{ .ResourceKind }}.json' | |
#-skip CustomResourceDefinition | |
-skip CustomResourceDefinition,ServiceMonitor,PodMonitor,Probe,Prometheus,Alertmanager | |
-ignore-filename-pattern vendor/* | |
-ignore-filename-pattern jsonnet/* | |
-summary | |
apps/ | |
base: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: '${{ env.golang-version }}' | |
- run: go install github.com/yannh/kubeconform/cmd/kubeconform@latest | |
# - run: ./hack/generate-schemas.sh | |
- run: > | |
kubeconform | |
-schema-location 'https://raw.githubusercontent.com/yannh/kubernetes-json-schema/master/{{ .NormalizedKubernetesVersion }}-standalone{{ .StrictSuffix }}/{{ .ResourceKind }}.json' | |
#-schema-location '.crdschemas/{{ .ResourceKind }}.json' | |
#-skip CustomResourceDefinition,Plan,Application,AppProject,ClusterIssuer | |
-skip CustomResourceDefinition,Plan,Application,AppProject,ClusterIssues,ServiceMonitor,PodMonitor | |
-ignore-filename-pattern vendor/* | |
-ignore-filename-pattern jsonnet/* | |
-summary | |
base/ |