2019-02-06 14:52:09 +02:00
|
|
|
apiVersion: apiextensions.k8s.io/v1beta1
|
|
|
|
kind: CustomResourceDefinition
|
|
|
|
metadata:
|
2019-02-28 14:25:47 +02:00
|
|
|
name: policies.policy.nirmata.io
|
2019-02-06 14:52:09 +02:00
|
|
|
spec:
|
2019-02-28 14:25:47 +02:00
|
|
|
group: policy.nirmata.io
|
2019-02-12 19:01:25 +02:00
|
|
|
versions:
|
|
|
|
- name: v1alpha1
|
|
|
|
served: true
|
|
|
|
storage: true
|
2019-02-14 16:36:55 +02:00
|
|
|
scope: Cluster
|
2019-02-06 14:52:09 +02:00
|
|
|
names:
|
|
|
|
kind: Policy
|
|
|
|
plural: policies
|
|
|
|
singular: policy
|
2019-03-07 17:57:43 +02:00
|
|
|
subresources:
|
|
|
|
status: {}
|
2019-03-12 14:42:24 +02:00
|
|
|
validation:
|
2019-03-14 14:00:57 +02:00
|
|
|
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
|
2019-03-14 15:09:48 +02:00
|
|
|
enum:
|
|
|
|
- ConfigMap
|
|
|
|
- CronJob
|
|
|
|
- DaemonSet
|
|
|
|
- Deployment
|
|
|
|
- Endpoints
|
|
|
|
- HorizontalPodAutoscaler
|
|
|
|
- Ingress
|
|
|
|
- Job
|
|
|
|
- LimitRange
|
|
|
|
- Namespace
|
|
|
|
- NetworkPolicy
|
|
|
|
- PersistentVolumeClaim
|
|
|
|
- PodDisruptionBudget
|
|
|
|
- PodTemplate
|
|
|
|
- ResourceQuota
|
|
|
|
- Secret
|
|
|
|
- Service
|
|
|
|
- StatefulSet
|
2019-03-14 14:00:57 +02:00
|
|
|
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
|
2019-03-14 18:05:24 +02:00
|
|
|
patch:
|
2019-03-14 14:00:57 +02:00
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
type: object
|
|
|
|
required:
|
|
|
|
- path
|
|
|
|
- op
|
|
|
|
properties:
|
|
|
|
path:
|
|
|
|
type: string
|
|
|
|
op:
|
|
|
|
type: string
|
2019-03-14 15:09:48 +02:00
|
|
|
enum:
|
|
|
|
- add
|
|
|
|
- replace
|
|
|
|
- remove
|
2019-03-14 14:00:57 +02:00
|
|
|
value:
|
2019-03-14 15:09:48 +02:00
|
|
|
AnyValue: {}
|
2019-03-14 14:00:57 +02:00
|
|
|
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
|