diff --git a/config/crds.yml b/config/crds.yml index 5848883c5..73e2f3ac0 100644 --- a/config/crds.yml +++ b/config/crds.yml @@ -734,6 +734,10 @@ spec: jsonPath: .status.deploy.startedAt name: Since-Deploy type: date + - description: Target Cluster name taken from the kubeconfig. + jsonPath: .spec.cluster.kubeconfigSecretRef.name + name: TargetCluster + type: string - description: Time since creation jsonPath: .metadata.creationTimestamp name: Age diff --git a/pkg/apis/kappctrl/v1alpha1/types.go b/pkg/apis/kappctrl/v1alpha1/types.go index ead900af1..45f1949b0 100644 --- a/pkg/apis/kappctrl/v1alpha1/types.go +++ b/pkg/apis/kappctrl/v1alpha1/types.go @@ -13,6 +13,7 @@ import ( // +kubebuilder:resource:categories={carvel} // +kubebuilder:printcolumn:name=Description,JSONPath=.status.friendlyDescription,description=Friendly description,type=string // +kubebuilder:printcolumn:name=Since-Deploy,JSONPath=.status.deploy.startedAt,description=Last time app started being deployed. Does not mean anything was changed.,type=date +// +kubebuilder:printcolumn:name=TargetCluster,JSONPath=.spec.cluster.kubeconfigSecretRef.name,description=Target Cluster name taken from the kubeconfig.,type=string // +kubebuilder:printcolumn:name=Age,JSONPath=.metadata.creationTimestamp,description=Time since creation,type=date // +protobuf=false // An App is a set of Kubernetes resources. These resources could span any number of namespaces or could be cluster-wide (e.g. CRDs). An App is represented in kapp-controller using a App CR.