Skip to content

Commit

Permalink
fix missing UP-TO-DATE status field
Browse files Browse the repository at this point in the history
Signed-off-by: Sunyanan Choochotkaew <[email protected]>
  • Loading branch information
sunya-ch committed Dec 8, 2023
1 parent b1c166c commit e370bab
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ spec:
- jsonPath: .status.exporter.currentNumberScheduled
name: Current
type: integer
- jsonPath: .status.updatedNumberScheduled
- jsonPath: .status.exporter.updatedNumberScheduled
name: Up-to-date
type: integer
- jsonPath: .status.exporter.numberReady
Expand Down
1 change: 1 addition & 0 deletions cmd/manager/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ func main() {
Metrics: metricsserver.Options{
BindAddress: metricsAddr,
},
// TODO: add new introduced namespace from KeplerInternal.Spec.Deployment.Namespace
NewCache: func(config *rest.Config, opts cache.Options) (cache.Cache, error) {
cacheNs := map[string]cache.Config{
controllers.KeplerDeploymentNS: {},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ spec:
- jsonPath: .status.exporter.currentNumberScheduled
name: Current
type: integer
- jsonPath: .status.updatedNumberScheduled
- jsonPath: .status.exporter.updatedNumberScheduled
name: Up-to-date
type: integer
- jsonPath: .status.exporter.numberReady
Expand Down
2 changes: 1 addition & 1 deletion pkg/api/v1alpha1/kepler_internal_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ type KeplerInternalSpec struct {
// +kubebuilder:printcolumn:name="Port",type=integer,JSONPath=`.spec.exporter.deployment.port`
// +kubebuilder:printcolumn:name="Desired",type=integer,JSONPath=`.status.exporter.desiredNumberScheduled`
// +kubebuilder:printcolumn:name="Current",type=integer,JSONPath=`.status.exporter.currentNumberScheduled`
// +kubebuilder:printcolumn:name="Up-to-date",type=integer,JSONPath=`.status.updatedNumberScheduled`
// +kubebuilder:printcolumn:name="Up-to-date",type=integer,JSONPath=`.status.exporter.updatedNumberScheduled`
// +kubebuilder:printcolumn:name="Ready",type=integer,JSONPath=`.status.exporter.numberReady`
// +kubebuilder:printcolumn:name="Available",type=integer,JSONPath=`.status.exporter.numberAvailable`
// +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp"
Expand Down

0 comments on commit e370bab

Please sign in to comment.