Skip to content

Commit

Permalink
K8s manifests validation pipeline (#288)
Browse files Browse the repository at this point in the history
  • Loading branch information
bakhtin committed Aug 28, 2023
1 parent f9f8095 commit ce9d237
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
21 changes: 21 additions & 0 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -90,3 +90,24 @@ jobs:
--target-branch ${{ github.event.repository.default_branch }} \
--charts ${{ steps.list-changed.outputs.changed }}
if: steps.list-changed.outputs.changed

validate-manifests:
runs-on: ubuntu-latest
container: docker.io/paritytech/kube-manifests-validation:k8s-1.25.9-gator-3.12.0-datree-1.9.19-9196b4c
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

- run: |
git config --system --add safe.directory $GITHUB_WORKSPACE
git fetch origin "+${GITHUB_BASE_REF}:${GITHUB_BASE_REF}"
- name: Validate manifests
run: |
/app/validate-k8s-manifests.sh \
--datree-policy-config /app/datree-policies.yaml \
--git-ref-changed-paths $GITHUB_BASE_REF \
--skip-gatekeeper \
charts
2 changes: 1 addition & 1 deletion .pre-commit-hooks.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
- id: helm-docs
args: []
description: Uses 'helm-docs' to create documentation from the Helm chart's 'values.yaml' file, and inserts the result into a corresponding 'README.md' file.
entry: git-hook/helm-docs
entry: git-hooks/helm-docs
files: (README\.md\.gotmpl|(Chart|requirements|values)\.yaml)$
language: script
name: Helm Docs
Expand Down

0 comments on commit ce9d237

Please sign in to comment.