Skip to content

Commit

Permalink
Merge pull request #168 from Kuadrant/120-improve-observability-of-li…
Browse files Browse the repository at this point in the history
…mitador-resources-in-kubectl-output

Add CRDs printcolumns
  • Loading branch information
eguzki authored Oct 21, 2024
2 parents d0d5323 + 626341d commit 55430e6
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 4 deletions.
2 changes: 2 additions & 0 deletions api/v1alpha1/limitador_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,8 @@ type LimitadorSpec struct {

//+kubebuilder:object:root=true
//+kubebuilder:subresource:status
//+kubebuilder:printcolumn:name="Ready",type=string,JSONPath=`.status.conditions[?(@.type=="Ready")].status`,description="Limitador Ready",priority=2
//+kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp"

// Limitador is the Schema for the limitadors API
type Limitador struct {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ metadata:
capabilities: Basic Install
categories: Integration & Delivery
containerImage: quay.io/kuadrant/limitador-operator:latest
createdAt: "2024-10-04T07:52:06Z"
createdAt: "2024-10-18T10:24:00Z"
description: The Limitador operator installs and maintains limitador instances
operators.operatorframework.io/builder: operator-sdk-v1.32.0
operators.operatorframework.io/project_layout: go.kubebuilder.io/v3
Expand Down
11 changes: 10 additions & 1 deletion bundle/manifests/limitador.kuadrant.io_limitadors.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,16 @@ spec:
singular: limitador
scope: Namespaced
versions:
- name: v1alpha1
- additionalPrinterColumns:
- description: Limitador Ready
jsonPath: .status.conditions[?(@.type=="Ready")].status
name: Ready
priority: 2
type: string
- jsonPath: .metadata.creationTimestamp
name: Age
type: date
name: v1alpha1
schema:
openAPIV3Schema:
description: Limitador is the Schema for the limitadors API
Expand Down
11 changes: 10 additions & 1 deletion charts/limitador-operator/templates/manifests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,16 @@ spec:
singular: limitador
scope: Namespaced
versions:
- name: v1alpha1
- additionalPrinterColumns:
- description: Limitador Ready
jsonPath: .status.conditions[?(@.type=="Ready")].status
name: Ready
priority: 2
type: string
- jsonPath: .metadata.creationTimestamp
name: Age
type: date
name: v1alpha1
schema:
openAPIV3Schema:
description: Limitador is the Schema for the limitadors API
Expand Down
11 changes: 10 additions & 1 deletion config/crd/bases/limitador.kuadrant.io_limitadors.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,16 @@ spec:
singular: limitador
scope: Namespaced
versions:
- name: v1alpha1
- additionalPrinterColumns:
- description: Limitador Ready
jsonPath: .status.conditions[?(@.type=="Ready")].status
name: Ready
priority: 2
type: string
- jsonPath: .metadata.creationTimestamp
name: Age
type: date
name: v1alpha1
schema:
openAPIV3Schema:
description: Limitador is the Schema for the limitadors API
Expand Down

0 comments on commit 55430e6

Please sign in to comment.