| Summary: | label not passed on to pods from template | ||
|---|---|---|---|
| Product: | OKD | Reporter: | Aleksandar Kostadinov <akostadi> |
| Component: | Deployments | Assignee: | Dan Mace <dmace> |
| Status: | CLOSED NOTABUG | QA Contact: | zhou ying <yinzhou> |
| Severity: | low | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 3.x | CC: | aos-bugs, dmace, jkaur, mmccomas, xiuwang |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2016-01-29 13:24:02 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
|
Description
Aleksandar Kostadinov
2015-12-23 20:10:29 UTC
oc process will set any labels defined in the Template, on objects created from the template, which in this case would mean the DeploymentConfig. If the pods created by that deploymentconfig do not have labels that are on the DeploymentConfig itself, then i'm guessing that's due to a change in the Deployment behavior in terms of what labels it applies to the podtemplate. Dan is this behavior that has changed at some point? Ben, Labels from the deploymentConfig itself don't propagate to pods managed by the resulting replicationController. Labels which need propagated to the replicationController pods should be set in deploymentConfig.spec.template.labels. Should the `-l` process command option set `deploymentConfig.spec.template.labels` then? Debatable. The template isn't creating the pod, so it should not necessarily be adding labels to pods. and from a management perspective, you can delete the RC (which does have the label) to delete the pod. i'll leave this open but it's a low priority RFE rather than a bug. if something has changed, it's in the behavior of how deploymentconfigs propagate their labels (ie they used to propagate their own labels to their pods and now that is handled via the explicit spec.template.labels field instead), so handing off to dan, but i suspect this gets closed as working as designed. This is working as designed (i.e. labels on the DC do not propagate to the RC). If there's a case to be made for propagating labels from the DC to the RC, please start a discussion in GitHub for a feature request. *** Bug 1311945 has been marked as a duplicate of this bug. *** |