Skip to content

Commit 6d76063

Browse files
authored
fix kubectl active printcolumn selector (#1248)
Signed-off-by: Jan Wozniak <[email protected]>
1 parent ca6a4d6 commit 6d76063

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ This changelog keeps track of work items that have been completed and are ready
2525
### New
2626

2727
- **General**: TODO ([#TODO](https://github.com/kedacore/http-add-on/issues/TODO))
28+
- **General**: Fix kubectl active printcolumn ([#1211](https://github.com/kedacore/http-add-on/issues/1211))
2829

2930
### Improvements
3031

config/crd/bases/http.keda.sh_httpscaledobjects.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ spec:
3232
- jsonPath: .metadata.creationTimestamp
3333
name: Age
3434
type: date
35-
- jsonPath: .status.conditions[?(@.type=="HTTPScaledObjectIsReady")].status
35+
- jsonPath: .status.conditions[?(@.reason=="HTTPScaledObjectIsReady")].status
3636
name: Active
3737
type: string
3838
name: v1alpha1

operator/apis/http/v1alpha1/httpscaledobject_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ type HTTPScaledObjectStatus struct {
127127
// +kubebuilder:printcolumn:name="MinReplicas",type="integer",JSONPath=".spec.replicas.min"
128128
// +kubebuilder:printcolumn:name="MaxReplicas",type="integer",JSONPath=".spec.replicas.max"
129129
// +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp"
130-
// +kubebuilder:printcolumn:name="Active",type="string",JSONPath=".status.conditions[?(@.type==\"HTTPScaledObjectIsReady\")].status"
130+
// +kubebuilder:printcolumn:name="Active",type="string",JSONPath=".status.conditions[?(@.reason==\"HTTPScaledObjectIsReady\")].status"
131131
// +kubebuilder:resource:shortName=httpso
132132
// +kubebuilder:subresource:status
133133

0 commit comments

Comments
 (0)