Skip to content

Commit f7d5310

Browse files
committed
Show target cluster in the list of apps
1 parent 8d8de5c commit f7d5310

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

config/crds.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -734,6 +734,10 @@ spec:
734734
jsonPath: .status.deploy.startedAt
735735
name: Since-Deploy
736736
type: date
737+
- description: Target Cluster name taken from the kubeconfig.
738+
jsonPath: .spec.cluster.kubeconfigSecretRef.name
739+
name: TargetCluster
740+
type: string
737741
- description: Time since creation
738742
jsonPath: .metadata.creationTimestamp
739743
name: Age

pkg/apis/kappctrl/v1alpha1/types.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import (
1313
// +kubebuilder:resource:categories={carvel}
1414
// +kubebuilder:printcolumn:name=Description,JSONPath=.status.friendlyDescription,description=Friendly description,type=string
1515
// +kubebuilder:printcolumn:name=Since-Deploy,JSONPath=.status.deploy.startedAt,description=Last time app started being deployed. Does not mean anything was changed.,type=date
16+
// +kubebuilder:printcolumn:name=TargetCluster,JSONPath=.spec.cluster.kubeconfigSecretRef.name,description=Target Cluster name taken from the kubeconfig.,type=string
1617
// +kubebuilder:printcolumn:name=Age,JSONPath=.metadata.creationTimestamp,description=Time since creation,type=date
1718
// +protobuf=false
1819
// 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.

0 commit comments

Comments
 (0)