Skip to content

Commit

Permalink
Merge pull request #81 from nokia/update_columns
Browse files Browse the repository at this point in the history
Update output columns
  • Loading branch information
morningspace authored Dec 17, 2022
2 parents 159de31 + cce2967 commit b1e7fce
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
5 changes: 5 additions & 0 deletions apis/object/v1alpha1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,11 @@ type ObjectStatus struct {

// A Object is an provider Kubernetes API type
// +kubebuilder:subresource:status
// +kubebuilder:printcolumn:name="KIND",type="string",JSONPath=".spec.forProvider.manifest.kind"
// +kubebuilder:printcolumn:name="APIVERSION",type="string",JSONPath=".spec.forProvider.manifest.apiVersion",priority=1
// +kubebuilder:printcolumn:name="METANAME",type="string",JSONPath=".spec.forProvider.manifest.metadata.name",priority=1
// +kubebuilder:printcolumn:name="METANAMESPACE",type="string",JSONPath=".spec.forProvider.manifest.metadata.namespace",priority=1
// +kubebuilder:printcolumn:name="PROVIDERCONFIG",type="string",JSONPath=".spec.providerConfigRef.name"
// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status"
// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status"
// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp"
Expand Down
18 changes: 18 additions & 0 deletions package/crds/kubernetes.crossplane.io_objects.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,24 @@ spec:
scope: Cluster
versions:
- additionalPrinterColumns:
- jsonPath: .spec.forProvider.manifest.kind
name: KIND
type: string
- jsonPath: .spec.forProvider.manifest.apiVersion
name: APIVERSION
priority: 1
type: string
- jsonPath: .spec.forProvider.manifest.metadata.name
name: METANAME
priority: 1
type: string
- jsonPath: .spec.forProvider.manifest.metadata.namespace
name: METANAMESPACE
priority: 1
type: string
- jsonPath: .spec.providerConfigRef.name
name: PROVIDERCONFIG
type: string
- jsonPath: .status.conditions[?(@.type=='Synced')].status
name: SYNCED
type: string
Expand Down

0 comments on commit b1e7fce

Please sign in to comment.