Skip to content

Commit 810d1f0

Browse files
Syspretor玖宇
andauthored
fix(rbgsa): api conversion failed caused by fields missing (#283)
Signed-off-by: 玖宇 <guotongyu.gty@alibaba-inc.com> Co-authored-by: 玖宇 <guotongyu.gty@alibaba-inc.com>
1 parent 070f8ac commit 810d1f0

4 files changed

Lines changed: 22 additions & 0 deletions

File tree

api/workloads/v1alpha1/rolebasedgroupscalingadapter_types.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ type RoleBasedGroupScalingAdapterStatus struct {
3838
// Selector is a label query used to filter and identify a set of resources targeted for metrics collection.
3939
Selector string `json:"selector,omitempty"`
4040

41+
// ReadyReplicas is the number of ready replicas for the role targeted by this adapter.
42+
ReadyReplicas *int32 `json:"readyReplicas,omitempty"`
43+
4144
// LastScaleTime is the last time the RoleBasedGroupScalingAdapter scaled the number of pods,
4245
LastScaleTime *metav1.Time `json:"lastScaleTime,omitempty"`
4346
}

api/workloads/v1alpha1/zz_generated.deepcopy.go

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

client-go/applyconfiguration/workloads/v1alpha1/rolebasedgroupscalingadapterstatus.go

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

config/crd/bases/workloads.x-k8s.io_rolebasedgroupscalingadapters.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,11 @@ spec:
8686
phase:
8787
description: Phase indicates the current phase of the RoleBasedGroupScalingAdapter.
8888
type: string
89+
readyReplicas:
90+
description: ReadyReplicas is the number of ready replicas for the
91+
role targeted by this adapter.
92+
format: int32
93+
type: integer
8994
replicas:
9095
description: Replicas is the current effective number of target RoleBasedGroupRole.
9196
format: int32

0 commit comments

Comments
 (0)