Updated install.yaml due to the policy-v2 specifications
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
- name: policies.policy.nirmata.io
+ name: policies.kubepolicy.nirmata.io
spec:
- group: policy.nirmata.io
+ group: kubepolicy.nirmata.io
versions:
- name: v1alpha1
served: true
@@ -20,26 +20,23 @@ spec:
properties:
spec:
required:
- - failurePolicy
- rules
properties:
- failurePolicy:
- type: string
- enum:
- - continueOnError
- - stopOnError
rules:
type: array
items:
type: object
required:
+ - name
- resource
- properties:
+ parameters:
+ name:
+ type: string
resource:
type: object
required:
- kind
- properties:
+ parameters:
kind:
type: string
enum:
@@ -85,7 +82,12 @@ spec:
type: array
items:
type: string
- patch:
+ mutate:
+ type: object
+ properties:
+ overlay:
+ AnyValue: {}
+ patches:
type: array
items:
type: object
@@ -103,34 +105,28 @@ spec:
- remove
value:
AnyValue: {}
- configMapGenerator:
+ validate:
type: object
required:
- - name
+ - pattern
properties:
- name:
+ message:
type: string
- copyFrom:
+ pattern:
+ AnyValue: {}
+ generate:
+ type: array
+ items:
type: object
required:
- - namespace
+ - kind
- name
+ - copyFrom
properties:
- namespace:
+ kind:
type: string
name:
type: string
- data:
- type: object
- additionalProperties:
- type: string
- secretGenerator:
- type: object
- required:
- - name
- properties:
- name:
- type: string
copyFrom:
type: object
required:
@@ -145,6 +141,10 @@ spec:
type: object
additionalProperties:
type: string
+ labels:
+ type: object
+ additionalProperties:
+ type: string
---
apiVersion: v1
kind: Service
