Merge pull request #18738 from tomgeorge/che-18681

Change the async storage provisioner service selector to select the correct pod
7.26.x
Tom George 2021-01-13 11:00:26 -06:00 committed by GitHub
commit 37428e4e46
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -395,13 +395,13 @@ public class AsyncStorageProvisioner {
.build();
ServiceSpec spec = new ServiceSpec();
spec.setPorts(singletonList(port));
spec.setSelector(of("app", ASYNC_STORAGE));
spec.setSelector(of(CHE_DEPLOYMENT_NAME_LABEL, ASYNC_STORAGE));
ServerServiceBuilder serviceBuilder = new ServerServiceBuilder();
Service service =
serviceBuilder
.withPorts(singletonList(port))
.withSelectorEntry("app", ASYNC_STORAGE)
.withSelectorEntry(CHE_DEPLOYMENT_NAME_LABEL, ASYNC_STORAGE)
.withName(ASYNC_STORAGE)
.build();