Skip to content

Commit 2fbf045

Browse files
fix: the CRP pretty print (#549)
1 parent ed37913 commit 2fbf045

File tree

5 files changed

+11
-11
lines changed

5 files changed

+11
-11
lines changed

apis/cluster/v1beta1/zz_generated.deepcopy.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apis/placement/v1beta1/clusterresourceplacement_types.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@ const (
3939
// +kubebuilder:resource:scope="Cluster",shortName=crp,categories={fleet,fleet-placement}
4040
// +kubebuilder:subresource:status
4141
// +kubebuilder:printcolumn:JSONPath=`.metadata.generation`,name="Gen",type=string
42-
// +kubebuilder:printcolumn:JSONPath=`.status.conditions[?(@.type=="Scheduled")].status`,name="Scheduled",type=string
43-
// +kubebuilder:printcolumn:JSONPath=`.status.conditions[?(@.type=="Scheduled")].observedGeneration`,name="ScheduledGen",type=string
44-
// +kubebuilder:printcolumn:JSONPath=`.status.conditions[?(@.type=="Applied")].status`,name="Applied",type=string
45-
// +kubebuilder:printcolumn:JSONPath=`.status.conditions[?(@.type=="Applied")].observedGeneration`,name="AppliedGen",type=string
42+
// +kubebuilder:printcolumn:JSONPath=`.status.conditions[?(@.type=="ClusterResourcePlacementScheduled")].status`,name="Scheduled",type=string
43+
// +kubebuilder:printcolumn:JSONPath=`.status.conditions[?(@.type=="ClusterResourcePlacementScheduled")].observedGeneration`,name="ScheduledGen",type=string
44+
// +kubebuilder:printcolumn:JSONPath=`.status.conditions[?(@.type=="ClusterResourcePlacementApplied")].status`,name="Applied",type=string
45+
// +kubebuilder:printcolumn:JSONPath=`.status.conditions[?(@.type=="ClusterResourcePlacementApplied")].observedGeneration`,name="AppliedGen",type=string
4646
// +kubebuilder:printcolumn:JSONPath=`.metadata.creationTimestamp`,name="Age",type=date
4747
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
4848

apis/placement/v1beta1/zz_generated.deepcopy.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apis/v1alpha1/zz_generated.deepcopy.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

config/crd/bases/placement.kubernetes-fleet.io_clusterresourceplacements.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,16 @@ spec:
2323
- jsonPath: .metadata.generation
2424
name: Gen
2525
type: string
26-
- jsonPath: .status.conditions[?(@.type=="Scheduled")].status
26+
- jsonPath: .status.conditions[?(@.type=="ClusterResourcePlacementScheduled")].status
2727
name: Scheduled
2828
type: string
29-
- jsonPath: .status.conditions[?(@.type=="Scheduled")].observedGeneration
29+
- jsonPath: .status.conditions[?(@.type=="ClusterResourcePlacementScheduled")].observedGeneration
3030
name: ScheduledGen
3131
type: string
32-
- jsonPath: .status.conditions[?(@.type=="Applied")].status
32+
- jsonPath: .status.conditions[?(@.type=="ClusterResourcePlacementApplied")].status
3333
name: Applied
3434
type: string
35-
- jsonPath: .status.conditions[?(@.type=="Applied")].observedGeneration
35+
- jsonPath: .status.conditions[?(@.type=="ClusterResourcePlacementApplied")].observedGeneration
3636
name: AppliedGen
3737
type: string
3838
- jsonPath: .metadata.creationTimestamp

0 commit comments

Comments
 (0)