Skip to content

Commit 0fd92e1

Browse files
Add paused to printer columns
Pausing an app or package is a common operation, and should be surfaced to operators during kubectl get. Signed-off-by: Naadir Jeewa <[email protected]>
1 parent 5897073 commit 0fd92e1

File tree

4 files changed

+15
-0
lines changed

4 files changed

+15
-0
lines changed

config/config/crds.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -748,6 +748,10 @@ spec:
748748
jsonPath: .metadata.creationTimestamp
749749
name: Age
750750
type: date
751+
- description: Paused
752+
jsonPath: .spec.paused
753+
name: Paused
754+
type: boolean
751755
name: v1alpha1
752756
schema:
753757
openAPIV3Schema:
@@ -1487,6 +1491,10 @@ spec:
14871491
jsonPath: .metadata.creationTimestamp
14881492
name: Age
14891493
type: date
1494+
- description: Paused
1495+
jsonPath: .spec.paused
1496+
name: Paused
1497+
type: boolean
14901498
name: v1alpha1
14911499
schema:
14921500
openAPIV3Schema:
@@ -1641,6 +1649,10 @@ spec:
16411649
jsonPath: .status.friendlyDescription
16421650
name: Description
16431651
type: string
1652+
- description: Paused
1653+
jsonPath: .spec.paused
1654+
name: Paused
1655+
type: boolean
16441656
name: v1alpha1
16451657
schema:
16461658
openAPIV3Schema:

pkg/apis/kappctrl/v1alpha1/types.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import (
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
1616
// +kubebuilder:printcolumn:name=Age,JSONPath=.metadata.creationTimestamp,description=Time since creation,type=date
17+
// +kubebuilder:printcolumn:name=Paused,JSONPath=.spec.paused,description=Paused,type=boolean
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.
1920
// The App CR comprises of three main sections:

pkg/apis/packaging/v1alpha1/package_install.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import (
1717
// +kubebuilder:printcolumn:name=Package version,JSONPath=.status.version,description=PackageMetadata version,type=string
1818
// +kubebuilder:printcolumn:name=Description,JSONPath=.status.friendlyDescription,description=Friendly description,type=string
1919
// +kubebuilder:printcolumn:name=Age,JSONPath=.metadata.creationTimestamp,description=Time since creation,type=date
20+
// +kubebuilder:printcolumn:name=Paused,JSONPath=.spec.paused,description=Paused,type=boolean
2021
// A Package Install is an actual installation of a package and its underlying resources on a Kubernetes cluster.
2122
// It is represented in kapp-controller by a PackageInstall CR.
2223
// A PackageInstall CR must reference a Package CR.

pkg/apis/packaging/v1alpha1/package_repository.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import (
1414
// +kubebuilder:resource:shortName=pkgr,categories={carvel}
1515
// +kubebuilder:printcolumn:name=Age,JSONPath=.metadata.creationTimestamp,description=Time since creation,type=date
1616
// +kubebuilder:printcolumn:name=Description,JSONPath=.status.friendlyDescription,description=Friendly description,type=string
17+
// +kubebuilder:printcolumn:name=Paused,JSONPath=.spec.paused,description=Paused,type=boolean
1718
// A package repository is a collection of packages and their metadata.
1819
// Similar to a maven repository or a rpm repository, adding a package repository to a cluster gives users of that cluster the ability to install any of the packages from that repository.
1920
type PackageRepository struct {

0 commit comments

Comments
 (0)