Skip to content

Commit

Permalink
add Type column to Update (wide output)
Browse files Browse the repository at this point in the history
  • Loading branch information
EronWright committed Oct 17, 2024
1 parent 9b34504 commit 94e4bcd
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 0 deletions.
4 changes: 4 additions & 0 deletions deploy/crds/auto.pulumi.com_updates.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ spec:
- jsonPath: .spec.workspaceName
name: Workspace
type: string
- jsonPath: .spec.type
name: Type
priority: 10
type: string
- jsonPath: .status.startTime
name: Start Time
priority: 10
Expand Down
4 changes: 4 additions & 0 deletions deploy/helm/pulumi-operator/crds/auto.pulumi.com_updates.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ spec:
- jsonPath: .spec.workspaceName
name: Workspace
type: string
- jsonPath: .spec.type
name: Type
priority: 10
type: string
- jsonPath: .status.startTime
name: Start Time
priority: 10
Expand Down
1 change: 1 addition & 0 deletions operator/api/auto/v1alpha1/update_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ type UpdateStatus struct {
//+kubebuilder:object:root=true
//+kubebuilder:subresource:status
//+kubebuilder:printcolumn:name="Workspace",type=string,JSONPath=`.spec.workspaceName`
//+kubebuilder:printcolumn:name="Type",type=string,priority=10,JSONPath=`.spec.type`
//+kubebuilder:printcolumn:name="Start Time",type=date,priority=10,JSONPath=`.status.startTime`
//+kubebuilder:printcolumn:name="End Time",type=date,priority=10,JSONPath=`.status.endTime`
//+kubebuilder:printcolumn:name="Progressing",type=string,JSONPath=`.status.conditions[?(@.type=="Progressing")].status`
Expand Down
4 changes: 4 additions & 0 deletions operator/config/crd/bases/auto.pulumi.com_updates.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ spec:
- jsonPath: .spec.workspaceName
name: Workspace
type: string
- jsonPath: .spec.type
name: Type
priority: 10
type: string
- jsonPath: .status.startTime
name: Start Time
priority: 10
Expand Down

0 comments on commit 94e4bcd

Please sign in to comment.