Skip to content

Commit 994a33e

Browse files
feat: add scp weight as printable column
1 parent b5eaad2 commit 994a33e

File tree

4 files changed

+10
-0
lines changed

4 files changed

+10
-0
lines changed

config/crds/v1/all-crds.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10673,6 +10673,9 @@ spec:
1067310673
- jsonPath: .metadata.creationTimestamp
1067410674
name: Age
1067510675
type: date
10676+
- jsonPath: .spec.weight
10677+
name: Weight
10678+
type: integer
1067610679
name: v1alpha1
1067710680
schema:
1067810681
openAPIV3Schema:

config/crds/v1/resources/stackconfigpolicy.k8s.elastic.co_stackconfigpolicies.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ spec:
2929
- jsonPath: .metadata.creationTimestamp
3030
name: Age
3131
type: date
32+
- jsonPath: .spec.weight
33+
name: Weight
34+
type: integer
3235
name: v1alpha1
3336
schema:
3437
openAPIV3Schema:

deploy/eck-operator/charts/eck-operator-crds/templates/all-crds.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10743,6 +10743,9 @@ spec:
1074310743
- jsonPath: .metadata.creationTimestamp
1074410744
name: Age
1074510745
type: date
10746+
- jsonPath: .spec.weight
10747+
name: Weight
10748+
type: integer
1074610749
name: v1alpha1
1074710750
schema:
1074810751
openAPIV3Schema:

pkg/apis/stackconfigpolicy/v1alpha1/stackconfigpolicy_types.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ func init() {
3434
// +kubebuilder:printcolumn:name="Ready",type="string",JSONPath=".status.readyCount",description="Resources configured"
3535
// +kubebuilder:printcolumn:name="Phase",type="string",JSONPath=".status.phase"
3636
// +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp"
37+
// +kubebuilder:printcolumn:name="Weight",type="integer",JSONPath=".spec.weight"
3738
// +kubebuilder:subresource:status
3839
// +kubebuilder:storageversion
3940
type StackConfigPolicy struct {

0 commit comments

Comments
 (0)