Skip to content

Commit

Permalink
Add additional printer columns to KafkaAccess (#61)
Browse files Browse the repository at this point in the history
Signed-off-by: MichaelMorris <michael.morris@est.tech>
  • Loading branch information
MichaelMorrisEst authored and scholzj committed Feb 2, 2025
1 parent 551563a commit 5714d18
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,10 @@
public class KafkaReference {

@Required
@io.fabric8.crd.generator.annotation.PrinterColumn(name = "Cluster")
private String name;
private String namespace;
@io.fabric8.crd.generator.annotation.PrinterColumn(name = "Listener")
private String listener;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ public class KafkaUserReference {
@Required
private String apiGroup;
@Required
@io.fabric8.crd.generator.annotation.PrinterColumn(name = "User")
private String name;
private String namespace;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,20 @@ spec:
singular: kafkaaccess
scope: Namespaced
versions:
- name: v1alpha1
- additionalPrinterColumns:
- jsonPath: .spec.kafka.listener
name: Listener
priority: 0
type: string
- jsonPath: .spec.kafka.name
name: Cluster
priority: 0
type: string
- jsonPath: .spec.user.name
name: User
priority: 0
type: string
name: v1alpha1
schema:
openAPIV3Schema:
properties:
Expand Down
15 changes: 14 additions & 1 deletion packaging/install/040-Crd-kafkaaccess.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,20 @@ spec:
singular: kafkaaccess
scope: Namespaced
versions:
- name: v1alpha1
- additionalPrinterColumns:
- jsonPath: .spec.kafka.listener
name: Listener
priority: 0
type: string
- jsonPath: .spec.kafka.name
name: Cluster
priority: 0
type: string
- jsonPath: .spec.user.name
name: User
priority: 0
type: string
name: v1alpha1
schema:
openAPIV3Schema:
properties:
Expand Down

0 comments on commit 5714d18

Please sign in to comment.