This repository was archived by the owner on Sep 12, 2023. It is now read-only.
This repository was archived by the owner on Sep 12, 2023. It is now read-only.
PR 135 makes replicaType updates hard #154
Open
Description
In this PR, https://github.com/kubeflow/common/pull/135/files, it changes rtype to ReplicaType.
However, it brings some challenges in operator upgrade.
- expectationPodsKey := expectation.GenExpectationPodsKey(jobKey, rtype)
+ expectationPodsKey := expectation.GenExpectationPodsKey(jobKey, apiv1.ReplicaType(rtype))
Using this line as an example, controller retrieve rtype
from pod label. It's lower case at this moment.
apiv1.ReplicaType(rtype) is inaccurate and meaningless because we define Upper case role like Master
in the past,
and this conversion give us a non-exist ReplicaType because it's lower case master
.
we have some references like below.
I feel like all the role should be lower case, we make sure we don't use ReplicaType for comparison. Instead, still use strings.toLower(string(rtype))
which means PR 135 still not helpful?
/cc @MartinForReal @gaocegege @kubeflow/wg-training-leads
Metadata
Metadata
Assignees
Labels
No labels