Skip to content

Commit

Permalink
chore(CRD Validation): Update Kubeconform Path (#114)
Browse files Browse the repository at this point in the history
  • Loading branch information
ArthurVardevanyan authored Dec 19, 2024
1 parent ca00c72 commit d50a492
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 14 deletions.
10 changes: 5 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/gitleaks/gitleaks
rev: ac4b5146b0f112df989b4374abb2b12799e37cba # v8.18.2
rev: 43fae355e6fe4d99d2a7b240a224b85e2903aeb4 # v8.21.2
hooks:
- id: gitleaks
- repo: https://github.com/shellcheck-py/shellcheck-py
Expand All @@ -12,21 +12,21 @@ repos:
# hooks:
# - id: yamllint
- repo: https://github.com/compilerla/conventional-pre-commit
rev: 772d7ffaeee5d611a904cc564a3fe3c7ad927635 # v3.2.0
rev: fab6a95091c567b872099a98cad586c122f55dc8 #v3.6.0
hooks:
- id: conventional-pre-commit
stages: [commit-msg]
args: []
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: f295829140d25717bc79368d3f966fc1f67a824f # v0.41.0
rev: 0d9fcb51a54f3b750b911c054b4bd1a590f1b592 #v0.43.0
hooks:
- id: markdownlint
- repo: https://github.com/pre-commit/mirrors-prettier
rev: ffb6a759a979008c0e6dff86e39f4745a2d9eac4 #"v3.1.0"
rev: ffb6a759a979008c0e6dff86e39f4745a2d9eac4 # v3.2.0
hooks:
- id: prettier
- repo: https://github.com/bridgecrewio/checkov.git
rev: c4b86053d6a1134538fc0b2f29c75d71e1562ceb # 3.2.109
rev: 6c3c39a25d24dd2259e4af1e5a7528d5c61af206 # 3.2.342
hooks:
- id: checkov
# v3.1.0 https://api.github.com/repos/compilerla/conventional-pre-commit/tags
Expand Down
4 changes: 2 additions & 2 deletions .tekton/overlay-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ metadata:
annotations:
pipelinesascode.tekton.dev/max-keep-runs: "1"
pipelinesascode.tekton.dev/on-cel-expression: |
event == "pull_request" && target_branch == "main" && ("kubernetes/***".pathChanged() || "okd/***".pathChanged())
event == "pull_request" && target_branch == "main" && ("kubernetes/***".pathChanged() || "okd/***".pathChanged() || "tekton/***".pathChanged())
pipelinesascode.tekton.dev/target-namespace: "homelab"
pipelinesascode.tekton.dev/task: "[tekton/base/overlay-test.yaml]"
pipelinesascode.tekton.dev/task-1: "https://raw.githubusercontent.com/ArthurVardevanyan/HomeLab/main/tekton/tasks/git-clone/0.9.1/git-clone.yaml"
Expand Down Expand Up @@ -114,7 +114,7 @@ spec:
- ReadWriteOnce
resources:
requests:
storage: "100Mi"
storage: "250Mi"
storageClassName: rook-ceph-block
- name: git_auth_secret
secret:
Expand Down
2 changes: 1 addition & 1 deletion kubernetes/kubevirt/base/hyperconverged.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ metadata:
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true
argocd.argoproj.io/sync-wave: "2"
deployOVS: "false"
name: kubevirt-hyperconverged\
name: kubevirt-hyperconverged
namespace: kubevirt-hyperconverged
labels:
app: kubevirt-hyperconverged
Expand Down
6 changes: 3 additions & 3 deletions main.bash
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,9 @@ test_overlays() {
echo "Run KubeConform on Yaml's"
# -ignore-missing-schemas # -debug
kubeconform -n 16 -verbose --summary -strict \
-schema-location="../kubernetes-json-schema/master-standalone-strict/{{.ResourceKind}}-{{.Group}}-{{.ResourceAPIVersion}}.json" \
-schema-location 'https://raw.githubusercontent.com/yannh/kubernetes-json-schema/master/master-standalone-strict/{{.ResourceKind}}{{.KindSuffix}}.json' \
-schema-location "https://raw.githubusercontent.com/yannh/kubernetes-json-schema/master/{{.NormalizedKubernetesVersion}}/{{.ResourceKind}}.json" \
-schema-location="../kubernetes-json-schema/custom-standalone-strict/{{.ResourceKind}}-{{.Group}}-{{.ResourceAPIVersion}}.json" \
-schema-location '../kubernetes-json-schema/master-standalone-strict/{{.ResourceKind}}{{.KindSuffix}}.json' \
-schema-location "../kubernetes-json-schema/master-local/{{.ResourceKind}}.json" \
-output text "${DIR}" | grep -v "is valid"
else
echo "Vault Variables Missing"
Expand Down
6 changes: 3 additions & 3 deletions tekton/base/overlay-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,9 @@ spec:
# -ignore-missing-schemas # -debug
kubeconform -n 16 -verbose --summary -strict \
-schema-location="../kubernetes-json-schema/master-standalone-strict/{{.ResourceKind}}-{{.Group}}-{{.ResourceAPIVersion}}.json" \
-schema-location 'https://raw.githubusercontent.com/yannh/kubernetes-json-schema/master/master-standalone-strict/{{.ResourceKind}}{{.KindSuffix}}.json' \
-schema-location "https://raw.githubusercontent.com/yannh/kubernetes-json-schema/master/{{.NormalizedKubernetesVersion}}/{{.ResourceKind}}.json" \
-schema-location="../kubernetes-json-schema/custom-standalone-strict/{{.ResourceKind}}-{{.Group}}-{{.ResourceAPIVersion}}.json" \
-schema-location '../kubernetes-json-schema/master-standalone-strict/{{.ResourceKind}}{{.KindSuffix}}.json' \
-schema-location "../kubernetes-json-schema/master-local/{{.ResourceKind}}.json" \
-output text "${DIR}" | grep -v "is valid"
volumes:
Expand Down

0 comments on commit d50a492

Please sign in to comment.