Skip to content

Commit aacf938

Browse files
committed
Add labelSelectorPath to the scale subresource
1 parent 4f073b3 commit aacf938

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

crd/restatedeployments.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,7 @@ spec:
267267
storage: true
268268
subresources:
269269
scale:
270+
labelSelectorPath: .status.labelSelector
270271
specReplicasPath: .spec.replicas
271272
statusReplicasPath: .status.replicas
272273
status: {}

src/resources/restatedeployments.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ pub static RESTATE_DEPLOYMENT_FINALIZER: &str = "deployments.restate.dev";
1616
group = "restate.dev",
1717
version = "v1beta1",
1818
namespaced,
19-
scale = r#"{"specReplicasPath": ".spec.replicas", "statusReplicasPath": ".status.replicas"}"#,
19+
scale = r#"{"specReplicasPath": ".spec.replicas", "statusReplicasPath": ".status.replicas", "labelSelectorPath": ".status.labelSelector"}"#,
2020
printcolumn = r#"{"name":"Desired", "type":"integer", "jsonPath":".spec.replicas"}"#,
2121
printcolumn = r#"{"name":"Up-To-Date", "type":"integer", "jsonPath":".status.replicas"}"#,
2222
printcolumn = r#"{"name":"Ready", "type":"integer", "jsonPath":".status.readyReplicas"}"#,

0 commit comments

Comments
 (0)