Skip to content
This repository has been archived by the owner on Sep 12, 2023. It is now read-only.

Adding compatibility for API supporting HPA #206

Merged
merged 3 commits into from
Jan 20, 2023

Conversation

johnugeorge
Copy link
Member

LabelSelector field is restored to provide compatibility with the current API. Instead, Selector field will be used for HPA feature

Related: #197 kubeflow/training-operator#1725

@johnugeorge
Copy link
Member Author

@tenzen-y Once this is merged, we can create a new release in kubeflow/common
Ref: https://github.com/kubeflow/training-operator/pull/1724/files#r1080943248

Comment on lines 69 to 71
// A label selector is a label query over a set of resources. The result of matchLabels and
// matchExpressions are ANDed. An empty label selector matches all objects. A null
// label selector matches no objects.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe, these are selector, not label selector?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

Copy link
Member

@tenzen-y tenzen-y left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!
/lgtm

/assign @terrytangyuan @gaocegege

@tenzen-y
Copy link
Member

@johnugeorge Can you rerun hack/update-codegen.sh?

@@ -231,7 +231,7 @@ func schema_pkg_apis_common_v1_ReplicaSt
 					},
 					"selector": {
 						SchemaProps: spec.SchemaProps{
-							Description: "A Selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty Selector matches all objects. A null Selector matches no objects.",
+							Description: "A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects.",
 							Type:        []string{"string"},
 							Format:      "",
 						},
./hack/../pkg is out of date. Please run hack/update-codegen.sh

@tenzen-y
Copy link
Member

/lgtm cancel

@google-oss-prow google-oss-prow bot removed the lgtm label Jan 19, 2023
@tenzen-y
Copy link
Member

/lgtm

@google-oss-prow google-oss-prow bot added the lgtm label Jan 19, 2023
@terrytangyuan
Copy link
Member

/lgtm
/approve

@google-oss-prow
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: terrytangyuan

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants