Skip to content

Commit

Permalink
fix: handle non-trivial apiVersion correctly (#608)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mengqi Yu committed Sep 30, 2021
1 parent f4c83a2 commit 1a9a6c9
Show file tree
Hide file tree
Showing 3 changed files with 102,994 additions and 25,383 deletions.
10 changes: 10 additions & 0 deletions examples/kubeval-simple/resources.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,16 @@ spec:
ports:
- containerPort: 80
---
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
namespace: default
name: pod-reader
rules:
- apiGroups: [""]
resources: ["pods"]
verbs: ["get", "watch", "list"]
---
apiVersion: example.com/v1
kind: MyCustom
metadata:
Expand Down
Loading

0 comments on commit 1a9a6c9

Please sign in to comment.