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: receive router deployment selector labels #295

Merged
merged 3 commits into from
May 3, 2024

Conversation

dschaaff
Copy link
Contributor

@dschaaff dschaaff commented Feb 3, 2023

The pod selector labels on the receive router deployment include the version label. Selector labels are immutable and this prevents updating the receive router.

Deployment/monitoring/thanos-receive-router dry-run failed, reason: Invalid, error: Deployment.apps "thanos-receive-router" is invalid: spec.selector: Invalid value: v1.LabelSelector{MatchLabels:map[string]string{"app.kubernetes.io/component":"thanos-receive-router", "app.kubernetes.io/instance":"thanos-receive", "app.kubernetes.io/name":"thanos-receive", "app.kubernetes.io/version":"v0.30.2"}, MatchExpressions:[]v1.LabelSelectorRequirement(nil)}: field is immutable

Signed-off-by: Daniel Schaaff daniel@danielschaaff.com

  • I added CHANGELOG entry for this change.
  • Change is not relevant to the end user.

Changes

Verification

The pod selector labels on the receive router deployment include the
version label. Selector labels are immutable and this prevents updating the
receive router.

```
Deployment/monitoring/thanos-receive-router dry-run failed, reason: Invalid, error: Deployment.apps "thanos-receive-router" is invalid: spec.selector: Invalid value: v1.LabelSelector{MatchLabels:map[string]string{"app.kubernetes.io/component":"thanos-receive-router", "app.kubernetes.io/instance":"thanos-receive", "app.kubernetes.io/name":"thanos-receive", "app.kubernetes.io/version":"v0.30.2"}, MatchExpressions:[]v1.LabelSelectorRequirement(nil)}: field is immutable
```

Signed-off-by: Daniel Schaaff <daniel@danielschaaff.com>
Signed-off-by: Daniel Schaaff <daniel@danielschaaff.com>
@michael-burt
Copy link
Contributor

Hi @philipgough, @douglascamata, @metalmatze

Would it be possible to get this PR reviewed and merged? @dschaaff would you be able to resolve conflicts?

@douglascamata
Copy link
Contributor

@michael-burt out of all the people you pinged, only @metalmatze is a maintainer, but he hasn't been active in the project. The others are just contributors (like @philipgough) or triagers (like me), without merge rights. Please ask for a review in the #thanos-dev channel in the CNCF slack, that's the right place.

@douglascamata
Copy link
Contributor

I can review and approve, but I can't merge.

@douglascamata
Copy link
Contributor

Also, Github is telling me that there are conflicts in this branch that must be solved.

Signed-off-by: Daniel Schaaff <daniel@danielschaaff.com>
@dschaaff
Copy link
Contributor Author

dschaaff commented May 3, 2024

I've resolved the conflicts

@yeya24
Copy link
Contributor

yeya24 commented May 3, 2024

Thanks

@yeya24 yeya24 merged commit a28d8ac into thanos-io:main May 3, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants