-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
811f712
commit fcf6e97
Showing
2 changed files
with
31 additions
and
20 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: kubectl-validate | ||
# Controls when the workflow will run | ||
on: | ||
push: | ||
branches: [ "v2" ] | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
jobs: | ||
k8sManifestsValidation: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repo content | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup go | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version: '1.20' | ||
|
||
- name: Install kustomize | ||
run: curl -s "https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh" | bash | ||
|
||
- name: Install kubectl-validate | ||
run: go install sigs.k8s.io/kubectl-validate@latest | ||
|
||
- name: Render all manifest with kustomize | ||
run: kustomize build --enable-helm > manifests.yaml | ||
|
||
- name: Run kubectl-validate | ||
run: kubectl-validate ./k8s-manifest/ --version 1.23 |
This file was deleted.
Oops, something went wrong.