New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
commonLabels applied to podAffinity labelSelector.matchLabels #1459
Comments
just ran into the same situation |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
/remove-lifecycle rotten |
Can we agree that |
It appears that maintainers are not paying any attention to this issue at all. This bug has been repeatedly reported over the last 6 months now, with every single issue going rotten without any clear statement from any maintainer. What are we supposed to do? Just sit there and wait for another year until we maybe get a reply? I'd happily implement the required changes, but I am not going to waste my time if we cannot even get a reply from anyone able to give us a direction here. It's sad, but I think it's time to move on. There are enough alternatives out there. (sorry for the rant, but this is really frustrating by now) |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Rotten issues close after 30d of inactivity. Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
@fejta-bot: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
I want to run an application (
masterdata
) on a host where Memcached is already running, hence I specifyAffinity
in thePodSpec
.I use
kustomize
version3.1.0
:I build a configuration out of the following files:
kustomization.yaml
:deployment.yaml
:When I run
kustomize build
, I get the following:Pay attention to the
matchLabels
map in the affinity block. It was altered by Kustomize.So, as a workaround, I have to use the
matchExpressions
array in thelabelSelector
:Then I get the output I need
In the docs here it's said:
As seen now, it also affects affinity rules in a PodTemplate. So, is this a bug or a feature?
The text was updated successfully, but these errors were encountered: