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

score/apps: fix statefulset selector labels check #380

Merged
merged 1 commit into from Aug 28, 2021

Conversation

euven
Copy link
Contributor

@euven euven commented Aug 18, 2021

Based on https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#pod-selector

This fixes #336

RELNOTE: Add StatefulSet selector labels check

@zegl
Copy link
Owner

zegl commented Aug 20, 2021

Hey! I left some comments about what the existing code is doing over in #336.

This PR seems to implement what is now #381 (and #382). I'd be happy to accept this PR if you reworked it so that it doesn't touch the StatefulSet has ServiceName test, which I suspect is working as it should, and is testing for a different thing than what is introduced in this PR:

@euven euven force-pushed the fix-statefulset-selector-label-check branch from b7bc215 to b4997b1 Compare August 24, 2021 00:14
@euven
Copy link
Contributor Author

euven commented Aug 24, 2021

Hi @zegl - thanks for taking a look here :)

I had a read of your comment over at #336 and I think I get what you mean there - you're right, the current test there is correct and this should be supplementary.

I've re-worked the patch.

@euven euven force-pushed the fix-statefulset-selector-label-check branch from b4997b1 to 6c674be Compare August 24, 2021 02:25
@zegl
Copy link
Owner

zegl commented Aug 28, 2021

Thanks!

@zegl
Copy link
Owner

zegl commented Aug 28, 2021

bors merge

@bors
Copy link
Contributor

bors bot commented Aug 28, 2021

Build succeeded:

@bors bors bot merged commit 453fe96 into zegl:master Aug 28, 2021
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.

The statefulset-has-servicename check should check the StatefulSet SelectorLabels instead of Labels
2 participants