Skip to content
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

fix: filter out replicas and jobs from nodeToClusters map #1194

Merged
merged 1 commit into from
Dec 16, 2022
Merged

Conversation

jsilvela
Copy link
Collaborator

fixes the filtering applied to map nodes to CNPG clusters when a node
is cordoned, to create reconciliations only from primary instance pods

Closes #1193

Signed-off-by: Jaime Silvela jaime.silvela@enterprisedb.com

@jsilvela jsilvela linked an issue Dec 14, 2022 that may be closed by this pull request
@github-actions github-actions bot added backport-requested ◀️ This pull request should be backported to all supported releases release-1.16 release-1.17 release-1.18 labels Dec 14, 2022
@github-actions
Copy link
Contributor

❗ By default, the pull request is configured to backport to all release branches.

  • To stop backporting this pr, remove the label: backport-requested ◀️ or add the label 'do not backport'
  • To stop backporting this pr to a certain release branch, remove the specific branch label: release-x.y

@jsilvela
Copy link
Collaborator Author

/test

@github-actions
Copy link
Contributor

@jsilvela, here's the link to the E2E on CNPG workflow run: https://github.com/cloudnative-pg/cloudnative-pg/actions/runs/3694659356

@jsilvela jsilvela changed the title fix: filter out replicas from nodeToClusters map fix: filter out replicas and jobs from nodeToClusters map Dec 14, 2022
Signed-off-by: Jaime Silvela <jaime.silvela@enterprisedb.com>
@mnencia
Copy link
Member

mnencia commented Dec 16, 2022

/ok-to-merge

@cnpg-bot cnpg-bot added the ok to merge 👌 This PR can be merged label Dec 16, 2022
@mnencia mnencia merged commit 2aaa31c into main Dec 16, 2022
@mnencia mnencia deleted the dev/1193 branch December 16, 2022 08:54
cnpg-bot pushed a commit that referenced this pull request Dec 16, 2022
We have found that using HasLabels and MatchingLabels in the same Kubernetes List call leads
to only one of them being applied. See kubernetes-sigs/controller-runtime#2098

This patch fixes one occurrence of this double usage in the operator code,
avoiding some unneeded reconciliation cycles.

Signed-off-by: Jaime Silvela <jaime.silvela@enterprisedb.com>
(cherry picked from commit 2aaa31c)
sxd pushed a commit that referenced this pull request Dec 20, 2022
We have found that using HasLabels and MatchingLabels in the same Kubernetes List call leads
to only one of them being applied. See kubernetes-sigs/controller-runtime#2098

This patch fixes one occurrence of this double usage in the operator code,
avoiding some unneeded reconciliation cycles.

Signed-off-by: Jaime Silvela <jaime.silvela@enterprisedb.com>
sxd pushed a commit that referenced this pull request Dec 20, 2022
We have found that using HasLabels and MatchingLabels in the same Kubernetes List call leads
to only one of them being applied. See kubernetes-sigs/controller-runtime#2098

This patch fixes one occurrence of this double usage in the operator code,
avoiding some unneeded reconciliation cycles.

Signed-off-by: Jaime Silvela <jaime.silvela@enterprisedb.com>
mnencia pushed a commit that referenced this pull request Dec 29, 2022
We have found that using HasLabels and MatchingLabels in the same Kubernetes List call leads
to only one of them being applied. See kubernetes-sigs/controller-runtime#2098

This patch fixes one occurrence of this double usage in the operator code,
avoiding some unneeded reconciliation cycles.

Signed-off-by: Jaime Silvela <jaime.silvela@enterprisedb.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-requested ◀️ This pull request should be backported to all supported releases ok to merge 👌 This PR can be merged release-1.16 release-1.17 release-1.18
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cluster controller uses conflicting labels filters
5 participants