Skip to content

Commit

Permalink
add kyverno-policy schema
Browse files Browse the repository at this point in the history
  • Loading branch information
timtorChen committed Dec 20, 2024
1 parent 43d5030 commit 641478b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion kubernetes/ingress-nginx/policy.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
# Reference: https://github.com/kyverno/policies/tree/main/nginx-ingress
# yaml-language-server: $schema=https://github.com/datreeio/CRDs-catalog/raw/refs/heads/main/kyverno.io/policy_v1.json
## Reference: https://github.com/kyverno/policies/tree/main/nginx-ingress
apiVersion: kyverno.io/v1
kind: Policy
metadata:
Expand Down Expand Up @@ -43,6 +44,7 @@ spec:
=(annotations):
X(*-snippet): "?*"
---
# yaml-language-server: $schema=https://github.com/datreeio/CRDs-catalog/raw/refs/heads/main/kyverno.io/clusterpolicy_v1.json
apiVersion: kyverno.io/v1
kind: ClusterPolicy
metadata:
Expand Down Expand Up @@ -89,6 +91,7 @@ spec:
operator: AnyIn
value: [true]
---
# yaml-language-server: $schema=https://github.com/datreeio/CRDs-catalog/raw/refs/heads/main/kyverno.io/clusterpolicy_v1.json
apiVersion: kyverno.io/v1
kind: ClusterPolicy
metadata:
Expand Down

0 comments on commit 641478b

Please sign in to comment.