diff --git a/apis/release/v1alpha1/types.go b/apis/release/v1alpha1/types.go index 3b438d0..2b34e6d 100644 --- a/apis/release/v1alpha1/types.go +++ b/apis/release/v1alpha1/types.go @@ -103,6 +103,7 @@ type ReleaseStatus struct { // A Release is an example API type // +kubebuilder:subresource:status +// +kubebuilder:printcolumn:name="NAMESPACE",type="string",JSONPath=".spec.forProvider.namespace" // +kubebuilder:printcolumn:name="CHART",type="string",JSONPath=".spec.forProvider.chart.name" // +kubebuilder:printcolumn:name="VERSION",type="string",JSONPath=".spec.forProvider.chart.version" // +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" diff --git a/apis/release/v1beta1/types.go b/apis/release/v1beta1/types.go index 8721287..c85a934 100644 --- a/apis/release/v1beta1/types.go +++ b/apis/release/v1beta1/types.go @@ -133,6 +133,7 @@ type ConnectionDetail struct { // A Release is an example API type // +kubebuilder:subresource:status +// +kubebuilder:printcolumn:name="NAMESPACE",type="string",JSONPath=".spec.forProvider.namespace" // +kubebuilder:printcolumn:name="CHART",type="string",JSONPath=".spec.forProvider.chart.name" // +kubebuilder:printcolumn:name="VERSION",type="string",JSONPath=".spec.forProvider.chart.version" // +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" diff --git a/package/crds/helm.crossplane.io_releases.yaml b/package/crds/helm.crossplane.io_releases.yaml index 04048e9..d23dff7 100644 --- a/package/crds/helm.crossplane.io_releases.yaml +++ b/package/crds/helm.crossplane.io_releases.yaml @@ -19,6 +19,9 @@ spec: scope: Cluster versions: - additionalPrinterColumns: + - jsonPath: .spec.forProvider.namespace + name: NAMESPACE + type: string - jsonPath: .spec.forProvider.chart.name name: CHART type: string @@ -503,6 +506,9 @@ spec: subresources: status: {} - additionalPrinterColumns: + - jsonPath: .spec.forProvider.namespace + name: NAMESPACE + type: string - jsonPath: .spec.forProvider.chart.name name: CHART type: string