1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-04-05 16:54:07 +00:00
kyverno/crd/crd.yaml

125 lines
3.8 KiB
YAML

apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
name: policies.policy.nirmata.io
spec:
group: policy.nirmata.io
versions:
- name: v1alpha1
served: true
storage: true
scope: Cluster
names:
kind: Policy
plural: policies
singular: policy
subresources:
status: {}
validation:
openAPIV3Schema:
properties:
spec:
required:
- failurePolicy
- rules
properties:
failurePolicy:
type: string
enum:
- continueOnError
- stopOnError
rules:
type: array
items:
type: object
required:
- resource
properties:
resource:
type: object
required:
- kind
properties:
kind:
type: string
name:
type: string
selector:
properties:
matchLabels:
type: object
additionalProperties:
type: string
matchExpressions:
type: array
items:
type: object
required:
- key
- operator
properties:
key:
type: string
operator:
type: string
values:
type: array
items:
type: string
patches:
type: array
items:
type: object
required:
- path
- op
- value
properties:
path:
type: string
op:
type: string
value:
type: string
configMapGenerator:
type: object
required:
- name
properties:
name:
type: string
copyFrom:
type: object
required:
- namespace
- name
properties:
namespace:
type: string
name:
type: string
data:
type: object
additionalProperties:
type: string
secretGenerator:
type: object
required:
- name
properties:
name:
type: string
copyFrom:
type: object
required:
- namespace
- name
properties:
namespace:
type: string
name:
type: string
data:
type: object
additionalProperties:
type: string