Collectd operator utilties
[demo.git] / vnfs / DAaaS / deploy / messaging / charts / strimzi-kafka-operator / templates / 044-Crd-kafkauser.yaml
1 apiVersion: apiextensions.k8s.io/v1beta1
2 kind: CustomResourceDefinition
3 metadata:
4   name: kafkausers.kafka.strimzi.io
5   labels:
6     app: '{{ template "strimzi.name" . }}'
7     chart: '{{ template "strimzi.chart" . }}'
8     component: kafkausers.kafka.strimzi.io-crd
9     release: '{{ .Release.Name }}'
10     heritage: '{{ .Release.Service }}'
11   annotations:
12     "helm.sh/hook": crd-install
13     "helm.sh/hook-delete-policy": "before-hook-creation"
14 spec:
15   group: kafka.strimzi.io
16   version: v1alpha1
17   scope: Namespaced
18   names:
19     kind: KafkaUser
20     listKind: KafkaUserList
21     singular: kafkauser
22     plural: kafkausers
23     shortNames:
24     - ku
25   validation:
26     openAPIV3Schema:
27       properties:
28         spec:
29           type: object
30           properties:
31             authentication:
32               type: object
33               properties:
34                 type:
35                   type: string
36                   enum:
37                   - tls
38                   - scram-sha-512
39               required:
40               - type
41             authorization:
42               type: object
43               properties:
44                 acls:
45                   type: array
46                   items:
47                     type: object
48                     properties:
49                       host:
50                         type: string
51                       operation:
52                         type: string
53                         enum:
54                         - Read
55                         - Write
56                         - Create
57                         - Delete
58                         - Alter
59                         - Describe
60                         - ClusterAction
61                         - AlterConfigs
62                         - DescribeConfigs
63                         - IdempotentWrite
64                         - All
65                       resource:
66                         type: object
67                         properties:
68                           name:
69                             type: string
70                           patternType:
71                             type: string
72                             enum:
73                             - literal
74                             - prefix
75                           type:
76                             type: string
77                             enum:
78                             - topic
79                             - group
80                             - cluster
81                             - transactionalId
82                         required:
83                         - type
84                       type:
85                         type: string
86                         enum:
87                         - allow
88                         - deny
89                     required:
90                     - operation
91                     - resource
92                 type:
93                   type: string
94                   enum:
95                   - simple
96               required:
97               - acls
98               - type
99           required:
100           - authentication