Checklist
Describe the bug
Some envs are blank, e.g. RBG_ROLE_INDEX.
And some could not be marshaled, e.g. RBG_LWP_LEADER_ADDRESS
root@serving-v2hbfa5wai-rbg-integrate-0-0:/# env | grep ROLE
RBG_ROLE_INSTANCE_NAME=serving-v2hbfa5wai-rbg-integrate-0
RBG_ROLE_INDEX=
RBG_ROLE_NAME=integrate
RBG_LWP_LEADER_ADDRESS=$(RBG_ROLE_INSTANCE_NAME)-0.s-serving-v2hbfa5wai-rbg-integrate.project-infra
Root Cause
RBG_ROLE_INDEX: hardcoded apps.kubernetes.io/pod-index label, should use
rbg.workloads.x-k8s.io/role-instance-index for RoleInstanceSet.
RBG_LWP_LEADER_ADDRESS: env merge logic used a map + sort, which broke
Kubernetes's sequential $(VAR) resolution order.
Reproduction
any RBG using roleinstance with stateful pattern
Environment
latest 0.7.0 alpha1
Checklist
Describe the bug
Some envs are blank, e.g.
RBG_ROLE_INDEX.And some could not be marshaled, e.g.
RBG_LWP_LEADER_ADDRESSRoot Cause
RBG_ROLE_INDEX: hardcodedapps.kubernetes.io/pod-indexlabel, should userbg.workloads.x-k8s.io/role-instance-indexfor RoleInstanceSet.RBG_LWP_LEADER_ADDRESS: env merge logic used a map + sort, which brokeKubernetes's sequential
$(VAR)resolution order.Reproduction
any
RBGusingroleinstancewithstatefulpatternEnvironment
latest 0.7.0 alpha1