-
Notifications
You must be signed in to change notification settings - Fork 55
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
Openshift.clean() doesn't take KEEP_LABEL into account, regression 0.12 -> 0.13 #306
Comments
0.12 configMaps().withoutLabel(KEEP_LABEL).delete(); 0.13 removables.addAll(configMaps().withoutLabel(OpenShift.KEEP_LABEL).list().getItems()); There doesn't seem to be much of a difference, maybe the issue itself is hidden in kubernetes client. |
Indeed, it seems like the problem is located in one of the dependencies: @Test
public void withoutLabelTest() {
System.out.println(openshift.configMaps().withoutLabel(KEEP_LABEL).list().getItems().size());
} 0.12
0.13
|
with xtf 0.13 List<ConfigMap> configMapList = Stream.of(
new ConfigMapBuilder("keep-label-map").addLabel(KEEP_LABEL, null).build(),
new ConfigMapBuilder("null-label-map").build(),
new ConfigMapBuilder("arbitrary-label-map").build()
).collect(Collectors.toList());
openshift.configMaps().withoutLabel(KEEP_LABEL).list().getItems().size() == 3
openshift.configMaps().withLabel(KEEP_LABEL).list().getItems().size() == 1
openshift.configMaps().withLabelNotIn(KEEP_LABEL).list().getItems().size() = 2
|
PR sent: #309 |
[core] [#306] Openshift.clean() doesn't take KEEP_LABEL into account
Fixed by #309 |
Would be nice to create also openshift client issue. Just note, With current implementation I have noticed |
0.12
mvn clean test -Dtest=CleanupTest -Dxtf.version=0.12 [INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0
0.13
The text was updated successfully, but these errors were encountered: