-
Notifications
You must be signed in to change notification settings - Fork 218
fix: label selector on sample #1231
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
Conversation
Kudos, SonarCloud Quality Gate passed! |
I have a question about this PR and labels: why does WebPageDependentReconciler has a DEPENDENT_RESOURCE_LABEL_SELECTOR which isn't used anywhere? Shouldn't be the same as WebPageManagedDependentsReconciler.SELECTOR? |
Hi this was because of demo purposes, TBH it would be better to remove it, you are right, so there is no confusion around it. |
@@ -85,7 +87,7 @@ private void createDependentResources(KubernetesClient client) { | |||
Arrays.asList(configMapDR, deploymentDR, serviceDR, ingressDR).forEach(dr -> { | |||
dr.setKubernetesClient(client); | |||
dr.configureWith(new KubernetesDependentResourceConfig() | |||
.setLabelSelector(DEPENDENT_RESOURCE_LABEL_SELECTOR)); | |||
.setLabelSelector(SELECTOR + "=true")); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why was the tests working if the selector was wrong?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
since those were not mutal exclusive, the other selector is about not having a label what was true.
No description provided.