Skip to content

Commit 90ccdef

Browse files
authored
Add additionalPrinterColumns and categories to CRDs (kroxylicious#2089)
* Add additionalPrinterColumns and categories to CRDs Signed-off-by: Tom Bentley <tbentley@redhat.com>
1 parent c492129 commit 90ccdef

File tree

5 files changed

+61
-3
lines changed

5 files changed

+61
-3
lines changed

kroxylicious-operator/src/main/resources/META-INF/fabric8/kafkaprotocolfilters.filter.kroxylicious.io-v1.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,20 +17,26 @@ spec:
1717
group: filter.kroxylicious.io
1818
scope: Namespaced
1919
names:
20-
categories:
21-
- kroxylicious-plugins
2220
plural: kafkaprotocolfilters
2321
singular: kafkaprotocolfilter
2422
kind: KafkaProtocolFilter
2523
shortNames:
2624
- kpf
25+
categories:
26+
- kroxylicious
2727
# list of versions supported by this CustomResourceDefinition
2828
versions:
2929
- name: v1alpha1
3030
served: true
3131
storage: true
3232
subresources:
3333
status: {}
34+
additionalPrinterColumns:
35+
- name: ResolvedRefs
36+
description: Whether the other resources referenced by this protocol filter can be found.
37+
jsonPath: ".status.conditions[?(@.type==\"ResolvedRefs\")].status"
38+
type: string
39+
priority: 0
3440
schema:
3541
openAPIV3Schema:
3642
type: object

kroxylicious-operator/src/main/resources/META-INF/fabric8/kafkaproxies.kroxylicious.io-v1.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,21 @@ spec:
2222
kind: KafkaProxy
2323
shortNames:
2424
- kp
25+
categories:
26+
- kroxylicious
2527
# list of versions supported by this CustomResourceDefinition
2628
versions:
2729
- name: v1alpha1
2830
served: true
2931
storage: true
3032
subresources:
3133
status: { }
34+
additionalPrinterColumns:
35+
- name: Ready
36+
description: Whether the other resources referenced by this proxy can be found.
37+
jsonPath: ".status.conditions[?(@.type==\"Ready\")].status"
38+
type: string
39+
priority: 0
3240
schema:
3341
openAPIV3Schema:
3442
type: object

kroxylicious-operator/src/main/resources/META-INF/fabric8/kafkaproxyingresses.kroxylicious.io-v1.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,26 @@ spec:
2222
kind: KafkaProxyIngress
2323
shortNames:
2424
- kpi
25+
categories:
26+
- kroxylicious
2527
# list of versions supported by this CustomResourceDefinition
2628
versions:
2729
- name: v1alpha1
2830
served: true
2931
storage: true
3032
subresources:
3133
status: { }
34+
additionalPrinterColumns:
35+
- name: Proxy
36+
description: The name of the proxy that this virtual cluster is part of.
37+
jsonPath: ".spec.proxyRef.name"
38+
type: string
39+
priority: 0
40+
- name: ResolvedRefs
41+
description: Whether the other resources referenced by this proxy ingress can be found.
42+
jsonPath: ".status.conditions[?(@.type==\"ResolvedRefs\")].status"
43+
type: string
44+
priority: 0
3245
schema:
3346
openAPIV3Schema:
3447
type: object

kroxylicious-operator/src/main/resources/META-INF/fabric8/kafkaservices.kroxylicious.io-v1.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,21 @@ spec:
2222
kind: KafkaService
2323
shortNames:
2424
- ks
25+
categories:
26+
- kroxylicious
2527
# list of versions supported by this CustomResourceDefinition
2628
versions:
2729
- name: v1alpha1
2830
served: true
2931
storage: true
3032
subresources:
3133
status: { }
34+
additionalPrinterColumns:
35+
- jsonPath: ".status.conditions[?(@.type==\"ResolvedRefs\")].status"
36+
description: Whether the other resources referenced by this service can be found.
37+
type: string
38+
name: ResolvedRefs
39+
priority: 0
3240
schema:
3341
openAPIV3Schema:
3442
type: object
@@ -45,7 +53,7 @@ spec:
4553
minLength: 1
4654
pattern: ^(([^:]+:[0-9]{1,5}),)*([^:]+:[0-9]{1,5})$
4755
tls:
48-
description: Configuration for TLS connections made to the Kafka cluster
56+
description: Configuration for TLS connections made to the Kafka cluster.
4957
type: object
5058
properties:
5159
certificateRef:

kroxylicious-operator/src/main/resources/META-INF/fabric8/virtualkafkaclusters.kroxylicious.io-v1.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,36 @@ spec:
2222
kind: VirtualKafkaCluster
2323
shortNames:
2424
- vkc
25+
categories:
26+
- kroxylicious
2527
# list of versions supported by this CustomResourceDefinition
2628
versions:
2729
- name: v1alpha1
2830
served: true
2931
storage: true
3032
subresources:
3133
status: { }
34+
additionalPrinterColumns:
35+
- name: Proxy
36+
description: The name of the proxy that this virtual cluster is part of.
37+
jsonPath: ".spec.proxyRef.name"
38+
type: string
39+
priority: 0
40+
- name: KafkaService
41+
description: The name of the kafka service that this virtual cluster exposes.
42+
jsonPath: ".spec.targetKafkaServiceRef.name"
43+
type: string
44+
priority: 0
45+
- name: ResolvedRefs
46+
description: Whether the other resources referenced by this virtual cluster can be found.
47+
jsonPath: ".status.conditions[?(@.type==\"ResolvedRefs\")].status"
48+
type: string
49+
priority: 0
50+
- name: Accepted
51+
description: Whether the virtual cluster has been accepted by the proxy.
52+
jsonPath: ".status.conditions[?(@.type==\"Accepted\")].status"
53+
type: string
54+
priority: 0
3255
schema:
3356
openAPIV3Schema:
3457
type: object

0 commit comments

Comments
 (0)