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

Changing label selector type for HPA #197

Merged
merged 2 commits into from
Dec 19, 2022

Conversation

johnugeorge
Copy link
Member

@johnugeorge johnugeorge commented Dec 17, 2022

As per docs, https://kubernetes.io/docs/tasks/extend-kubernetes/custom-resources/custom-resource-definitions/#scale-subresource

labelSelectorPath referred by Scale.Status.Selector needs to be a string

The field pointed by this JSON path must be a string field (not a complex selector struct) which contains a serialized label selector in string form.

Currently, HPA creation fails because of this reason. Related (kubeflow/training-operator#1645, kubeflow/training-operator#1626)

This change needs changes in training-operator as well which will be fixed in a different PR.

/assign @gaocegege
/cc @kubeflow/wg-training-leads

@johnugeorge johnugeorge changed the title Changing label selector type to string Changing label selector type for HPA Dec 17, 2022
@gaocegege
Copy link
Member

/lgtm

Thanks for the fix!

@google-oss-prow google-oss-prow bot added the lgtm label Dec 19, 2022
@johnugeorge
Copy link
Member Author

/cc @terrytangyuan
/cc @zw0610

Copy link
Member

@terrytangyuan terrytangyuan left a comment

Choose a reason for hiding this comment

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

/lgtm

@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.

3 participants