Merge branch 'main' of github.com:eclipse-che/che-server into che-22368
commit
f13bde05ce
|
|
@ -17,7 +17,7 @@
|
|||
<parent>
|
||||
<artifactId>che-assembly-parent</artifactId>
|
||||
<groupId>org.eclipse.che</groupId>
|
||||
<version>7.73.0-SNAPSHOT</version>
|
||||
<version>7.74.0-SNAPSHOT</version>
|
||||
</parent>
|
||||
<artifactId>assembly-che-tomcat</artifactId>
|
||||
<packaging>jar</packaging>
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
<parent>
|
||||
<artifactId>che-assembly-parent</artifactId>
|
||||
<groupId>org.eclipse.che</groupId>
|
||||
<version>7.73.0-SNAPSHOT</version>
|
||||
<version>7.74.0-SNAPSHOT</version>
|
||||
</parent>
|
||||
<artifactId>assembly-main</artifactId>
|
||||
<packaging>pom</packaging>
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
<parent>
|
||||
<artifactId>che-assembly-parent</artifactId>
|
||||
<groupId>org.eclipse.che</groupId>
|
||||
<version>7.73.0-SNAPSHOT</version>
|
||||
<version>7.74.0-SNAPSHOT</version>
|
||||
</parent>
|
||||
<artifactId>assembly-root-war</artifactId>
|
||||
<packaging>war</packaging>
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
<parent>
|
||||
<artifactId>che-assembly-parent</artifactId>
|
||||
<groupId>org.eclipse.che</groupId>
|
||||
<version>7.73.0-SNAPSHOT</version>
|
||||
<version>7.74.0-SNAPSHOT</version>
|
||||
</parent>
|
||||
<artifactId>assembly-swagger-war</artifactId>
|
||||
<packaging>war</packaging>
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
<parent>
|
||||
<artifactId>che-assembly-parent</artifactId>
|
||||
<groupId>org.eclipse.che</groupId>
|
||||
<version>7.73.0-SNAPSHOT</version>
|
||||
<version>7.74.0-SNAPSHOT</version>
|
||||
</parent>
|
||||
<artifactId>assembly-wsmaster-war</artifactId>
|
||||
<packaging>war</packaging>
|
||||
|
|
@ -139,10 +139,6 @@
|
|||
<groupId>org.eclipse.che.core</groupId>
|
||||
<artifactId>che-core-api-factory-bitbucket-server</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.eclipse.che.core</groupId>
|
||||
<artifactId>che-core-api-factory-git-ssh</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.eclipse.che.core</groupId>
|
||||
<artifactId>che-core-api-factory-github</artifactId>
|
||||
|
|
|
|||
|
|
@ -44,8 +44,6 @@ import org.eclipse.che.api.factory.server.bitbucket.BitbucketFactoryParametersRe
|
|||
import org.eclipse.che.api.factory.server.bitbucket.BitbucketScmFileResolver;
|
||||
import org.eclipse.che.api.factory.server.bitbucket.BitbucketServerAuthorizingFactoryParametersResolver;
|
||||
import org.eclipse.che.api.factory.server.bitbucket.BitbucketServerScmFileResolver;
|
||||
import org.eclipse.che.api.factory.server.git.ssh.GitSshFactoryParametersResolver;
|
||||
import org.eclipse.che.api.factory.server.git.ssh.GitSshScmFileResolver;
|
||||
import org.eclipse.che.api.factory.server.github.GithubFactoryParametersResolver;
|
||||
import org.eclipse.che.api.factory.server.github.GithubScmFileResolver;
|
||||
import org.eclipse.che.api.factory.server.gitlab.GitlabFactoryParametersResolver;
|
||||
|
|
@ -177,7 +175,6 @@ public class WsMasterModule extends AbstractModule {
|
|||
factoryParametersResolverMultibinder
|
||||
.addBinding()
|
||||
.to(AzureDevOpsFactoryParametersResolver.class);
|
||||
factoryParametersResolverMultibinder.addBinding().to(GitSshFactoryParametersResolver.class);
|
||||
|
||||
Multibinder<ScmFileResolver> scmFileResolverResolverMultibinder =
|
||||
Multibinder.newSetBinder(binder(), ScmFileResolver.class);
|
||||
|
|
@ -186,7 +183,6 @@ public class WsMasterModule extends AbstractModule {
|
|||
scmFileResolverResolverMultibinder.addBinding().to(GitlabScmFileResolver.class);
|
||||
scmFileResolverResolverMultibinder.addBinding().to(BitbucketServerScmFileResolver.class);
|
||||
scmFileResolverResolverMultibinder.addBinding().to(AzureDevOpsScmFileResolver.class);
|
||||
scmFileResolverResolverMultibinder.addBinding().to(GitSshScmFileResolver.class);
|
||||
|
||||
install(new org.eclipse.che.api.factory.server.scm.KubernetesScmModule());
|
||||
install(new org.eclipse.che.api.factory.server.bitbucket.BitbucketServerModule());
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
<parent>
|
||||
<artifactId>che-server</artifactId>
|
||||
<groupId>org.eclipse.che</groupId>
|
||||
<version>7.73.0-SNAPSHOT</version>
|
||||
<version>7.74.0-SNAPSHOT</version>
|
||||
<relativePath>../pom.xml</relativePath>
|
||||
</parent>
|
||||
<artifactId>che-assembly-parent</artifactId>
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
<parent>
|
||||
<artifactId>che-core-parent</artifactId>
|
||||
<groupId>org.eclipse.che.core</groupId>
|
||||
<version>7.73.0-SNAPSHOT</version>
|
||||
<version>7.74.0-SNAPSHOT</version>
|
||||
</parent>
|
||||
<artifactId>che-core-api-core</artifactId>
|
||||
<packaging>jar</packaging>
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2012-2021 Red Hat, Inc.
|
||||
* Copyright (c) 2012-2023 Red Hat, Inc.
|
||||
* This program and the accompanying materials are made
|
||||
* available under the terms of the Eclipse Public License 2.0
|
||||
* which is available at https://www.eclipse.org/legal/epl-2.0/
|
||||
|
|
@ -11,7 +11,10 @@
|
|||
*/
|
||||
package org.eclipse.che.api.core.rest;
|
||||
|
||||
import static com.google.common.base.Strings.isNullOrEmpty;
|
||||
import static java.lang.String.format;
|
||||
import static java.util.Arrays.stream;
|
||||
import static java.util.stream.Collectors.toList;
|
||||
|
||||
import jakarta.ws.rs.core.MediaType;
|
||||
import jakarta.ws.rs.core.Response;
|
||||
|
|
@ -19,6 +22,7 @@ import jakarta.ws.rs.ext.ExceptionMapper;
|
|||
import jakarta.ws.rs.ext.Provider;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
import java.util.TimeZone;
|
||||
import javax.inject.Singleton;
|
||||
import org.eclipse.che.api.core.rest.shared.dto.ServiceError;
|
||||
|
|
@ -42,11 +46,18 @@ public class RuntimeExceptionMapper implements ExceptionMapper<RuntimeException>
|
|||
final SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
||||
dateFormat.setTimeZone(TimeZone.getTimeZone("UTC"));
|
||||
final String utcTime = dateFormat.format(new Date());
|
||||
final String errorMessage = format("Internal Server Error occurred, error time: %s", utcTime);
|
||||
String message = exception.getMessage();
|
||||
final String errorMessage =
|
||||
isNullOrEmpty(message)
|
||||
? format("Internal Server Error occurred, error time: %s", utcTime)
|
||||
: message;
|
||||
|
||||
LOG.error(errorMessage, exception);
|
||||
|
||||
ServiceError serviceError = DtoFactory.newDto(ServiceError.class).withMessage(errorMessage);
|
||||
List<String> trace =
|
||||
stream(exception.getStackTrace()).map(StackTraceElement::toString).collect(toList());
|
||||
ServiceError serviceError =
|
||||
DtoFactory.newDto(ServiceError.class).withMessage(errorMessage).withTrace(trace);
|
||||
return Response.serverError()
|
||||
.entity(DtoFactory.getInstance().toJson(serviceError))
|
||||
.type(MediaType.APPLICATION_JSON)
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2012-2018 Red Hat, Inc.
|
||||
* Copyright (c) 2012-2023 Red Hat, Inc.
|
||||
* This program and the accompanying materials are made
|
||||
* available under the terms of the Eclipse Public License 2.0
|
||||
* which is available at https://www.eclipse.org/legal/epl-2.0/
|
||||
|
|
@ -11,6 +11,7 @@
|
|||
*/
|
||||
package org.eclipse.che.api.core.rest.shared.dto;
|
||||
|
||||
import java.util.List;
|
||||
import org.eclipse.che.dto.shared.DTO;
|
||||
|
||||
/**
|
||||
|
|
@ -30,8 +31,12 @@ public interface ServiceError {
|
|||
*/
|
||||
String getMessage();
|
||||
|
||||
List<String> getTrace();
|
||||
|
||||
ServiceError withMessage(String message);
|
||||
|
||||
ServiceError withTrace(List<String> trace);
|
||||
|
||||
/**
|
||||
* Set error message.
|
||||
*
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
<parent>
|
||||
<artifactId>che-core-parent</artifactId>
|
||||
<groupId>org.eclipse.che.core</groupId>
|
||||
<version>7.73.0-SNAPSHOT</version>
|
||||
<version>7.74.0-SNAPSHOT</version>
|
||||
</parent>
|
||||
<artifactId>che-core-api-dto-maven-plugin</artifactId>
|
||||
<packaging>maven-plugin</packaging>
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
<parent>
|
||||
<artifactId>che-core-parent</artifactId>
|
||||
<groupId>org.eclipse.che.core</groupId>
|
||||
<version>7.73.0-SNAPSHOT</version>
|
||||
<version>7.74.0-SNAPSHOT</version>
|
||||
</parent>
|
||||
<artifactId>che-core-api-dto</artifactId>
|
||||
<packaging>jar</packaging>
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
<parent>
|
||||
<artifactId>che-core-parent</artifactId>
|
||||
<groupId>org.eclipse.che.core</groupId>
|
||||
<version>7.73.0-SNAPSHOT</version>
|
||||
<version>7.74.0-SNAPSHOT</version>
|
||||
</parent>
|
||||
<artifactId>che-core-api-model</artifactId>
|
||||
<packaging>jar</packaging>
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
<parent>
|
||||
<artifactId>che-core-parent</artifactId>
|
||||
<groupId>org.eclipse.che.core</groupId>
|
||||
<version>7.73.0-SNAPSHOT</version>
|
||||
<version>7.74.0-SNAPSHOT</version>
|
||||
</parent>
|
||||
<artifactId>che-core-db-vendor-h2</artifactId>
|
||||
<name>Che Core :: Commons :: DB :: Vendor H2</name>
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
<parent>
|
||||
<artifactId>che-core-parent</artifactId>
|
||||
<groupId>org.eclipse.che.core</groupId>
|
||||
<version>7.73.0-SNAPSHOT</version>
|
||||
<version>7.74.0-SNAPSHOT</version>
|
||||
</parent>
|
||||
<artifactId>che-core-db-vendor-mysql</artifactId>
|
||||
<name>Che Core :: Commons :: DB :: Vendor MySQL</name>
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
<parent>
|
||||
<artifactId>che-core-parent</artifactId>
|
||||
<groupId>org.eclipse.che.core</groupId>
|
||||
<version>7.73.0-SNAPSHOT</version>
|
||||
<version>7.74.0-SNAPSHOT</version>
|
||||
</parent>
|
||||
<artifactId>che-core-db-vendor-postgresql</artifactId>
|
||||
<name>Che Core :: Commons :: DB :: Vendor PostgreSQL</name>
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
<parent>
|
||||
<artifactId>che-core-parent</artifactId>
|
||||
<groupId>org.eclipse.che.core</groupId>
|
||||
<version>7.73.0-SNAPSHOT</version>
|
||||
<version>7.74.0-SNAPSHOT</version>
|
||||
</parent>
|
||||
<artifactId>che-core-db</artifactId>
|
||||
<name>Che Core :: Commons :: DB</name>
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
<parent>
|
||||
<artifactId>che-core-parent</artifactId>
|
||||
<groupId>org.eclipse.che.core</groupId>
|
||||
<version>7.73.0-SNAPSHOT</version>
|
||||
<version>7.74.0-SNAPSHOT</version>
|
||||
</parent>
|
||||
<artifactId>che-core-logback</artifactId>
|
||||
<packaging>jar</packaging>
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
<parent>
|
||||
<artifactId>che-core-parent</artifactId>
|
||||
<groupId>org.eclipse.che.core</groupId>
|
||||
<version>7.73.0-SNAPSHOT</version>
|
||||
<version>7.74.0-SNAPSHOT</version>
|
||||
</parent>
|
||||
<artifactId>che-core-metrics-core</artifactId>
|
||||
<name>Che Core :: Commons :: Metrics :: Core</name>
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
<parent>
|
||||
<artifactId>che-core-parent</artifactId>
|
||||
<groupId>org.eclipse.che.core</groupId>
|
||||
<version>7.73.0-SNAPSHOT</version>
|
||||
<version>7.74.0-SNAPSHOT</version>
|
||||
</parent>
|
||||
<artifactId>che-core-tracing-core</artifactId>
|
||||
<name>Che Core :: Commons :: Tracing :: Core</name>
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
<parent>
|
||||
<artifactId>che-core-parent</artifactId>
|
||||
<groupId>org.eclipse.che.core</groupId>
|
||||
<version>7.73.0-SNAPSHOT</version>
|
||||
<version>7.74.0-SNAPSHOT</version>
|
||||
</parent>
|
||||
<artifactId>che-core-tracing-metrics</artifactId>
|
||||
<name>Che Core :: Commons :: Tracing :: Metrics</name>
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
<parent>
|
||||
<artifactId>che-core-parent</artifactId>
|
||||
<groupId>org.eclipse.che.core</groupId>
|
||||
<version>7.73.0-SNAPSHOT</version>
|
||||
<version>7.74.0-SNAPSHOT</version>
|
||||
</parent>
|
||||
<artifactId>che-core-tracing-web</artifactId>
|
||||
<name>Che Core :: Commons :: Tracing :: Web</name>
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
<parent>
|
||||
<artifactId>che-core-parent</artifactId>
|
||||
<groupId>org.eclipse.che.core</groupId>
|
||||
<version>7.73.0-SNAPSHOT</version>
|
||||
<version>7.74.0-SNAPSHOT</version>
|
||||
</parent>
|
||||
<artifactId>che-core-typescript-dto-maven-plugin</artifactId>
|
||||
<packaging>maven-plugin</packaging>
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
<parent>
|
||||
<artifactId>che-core-commons-parent</artifactId>
|
||||
<groupId>org.eclipse.che.core</groupId>
|
||||
<version>7.73.0-SNAPSHOT</version>
|
||||
<version>7.74.0-SNAPSHOT</version>
|
||||
</parent>
|
||||
<artifactId>che-core-commons-annotations</artifactId>
|
||||
<packaging>jar</packaging>
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
<parent>
|
||||
<artifactId>che-core-commons-parent</artifactId>
|
||||
<groupId>org.eclipse.che.core</groupId>
|
||||
<version>7.73.0-SNAPSHOT</version>
|
||||
<version>7.74.0-SNAPSHOT</version>
|
||||
</parent>
|
||||
<artifactId>che-core-commons-inject</artifactId>
|
||||
<packaging>jar</packaging>
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
<parent>
|
||||
<artifactId>che-core-commons-parent</artifactId>
|
||||
<groupId>org.eclipse.che.core</groupId>
|
||||
<version>7.73.0-SNAPSHOT</version>
|
||||
<version>7.74.0-SNAPSHOT</version>
|
||||
</parent>
|
||||
<artifactId>che-core-commons-j2ee</artifactId>
|
||||
<packaging>jar</packaging>
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
<parent>
|
||||
<artifactId>che-core-commons-parent</artifactId>
|
||||
<groupId>org.eclipse.che.core</groupId>
|
||||
<version>7.73.0-SNAPSHOT</version>
|
||||
<version>7.74.0-SNAPSHOT</version>
|
||||
</parent>
|
||||
<artifactId>che-core-commons-json</artifactId>
|
||||
<packaging>jar</packaging>
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
<parent>
|
||||
<artifactId>che-core-commons-parent</artifactId>
|
||||
<groupId>org.eclipse.che.core</groupId>
|
||||
<version>7.73.0-SNAPSHOT</version>
|
||||
<version>7.74.0-SNAPSHOT</version>
|
||||
</parent>
|
||||
<artifactId>che-core-commons-lang</artifactId>
|
||||
<packaging>jar</packaging>
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
<parent>
|
||||
<artifactId>che-core-commons-parent</artifactId>
|
||||
<groupId>org.eclipse.che.core</groupId>
|
||||
<version>7.73.0-SNAPSHOT</version>
|
||||
<version>7.74.0-SNAPSHOT</version>
|
||||
</parent>
|
||||
<artifactId>che-core-commons-observability</artifactId>
|
||||
<name>Che Core :: Commons :: Tracing and Monitoring wrapper</name>
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
<parent>
|
||||
<artifactId>che-core-commons-parent</artifactId>
|
||||
<groupId>org.eclipse.che.core</groupId>
|
||||
<version>7.73.0-SNAPSHOT</version>
|
||||
<version>7.74.0-SNAPSHOT</version>
|
||||
</parent>
|
||||
<artifactId>che-core-commons-schedule</artifactId>
|
||||
<packaging>jar</packaging>
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
<parent>
|
||||
<artifactId>che-core-commons-parent</artifactId>
|
||||
<groupId>org.eclipse.che.core</groupId>
|
||||
<version>7.73.0-SNAPSHOT</version>
|
||||
<version>7.74.0-SNAPSHOT</version>
|
||||
</parent>
|
||||
<artifactId>che-core-commons-test</artifactId>
|
||||
<packaging>jar</packaging>
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
<parent>
|
||||
<artifactId>che-core-commons-parent</artifactId>
|
||||
<groupId>org.eclipse.che.core</groupId>
|
||||
<version>7.73.0-SNAPSHOT</version>
|
||||
<version>7.74.0-SNAPSHOT</version>
|
||||
</parent>
|
||||
<artifactId>che-core-commons-tracing</artifactId>
|
||||
<name>Che Core :: Commons :: Tracing</name>
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
<parent>
|
||||
<artifactId>che-core-parent</artifactId>
|
||||
<groupId>org.eclipse.che.core</groupId>
|
||||
<version>7.73.0-SNAPSHOT</version>
|
||||
<version>7.74.0-SNAPSHOT</version>
|
||||
<relativePath>../pom.xml</relativePath>
|
||||
</parent>
|
||||
<artifactId>che-core-commons-parent</artifactId>
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
<parent>
|
||||
<artifactId>che-server</artifactId>
|
||||
<groupId>org.eclipse.che</groupId>
|
||||
<version>7.73.0-SNAPSHOT</version>
|
||||
<version>7.74.0-SNAPSHOT</version>
|
||||
<relativePath>../pom.xml</relativePath>
|
||||
</parent>
|
||||
<groupId>org.eclipse.che.core</groupId>
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
<parent>
|
||||
<artifactId>che-infrastructures-parent</artifactId>
|
||||
<groupId>org.eclipse.che.infrastructure</groupId>
|
||||
<version>7.73.0-SNAPSHOT</version>
|
||||
<version>7.74.0-SNAPSHOT</version>
|
||||
</parent>
|
||||
<artifactId>infrastructure-distributed</artifactId>
|
||||
<packaging>jar</packaging>
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
<parent>
|
||||
<artifactId>che-infrastructures-parent</artifactId>
|
||||
<groupId>org.eclipse.che.infrastructure</groupId>
|
||||
<version>7.73.0-SNAPSHOT</version>
|
||||
<version>7.74.0-SNAPSHOT</version>
|
||||
</parent>
|
||||
<artifactId>infrastructure-factory</artifactId>
|
||||
<packaging>jar</packaging>
|
||||
|
|
@ -33,7 +33,7 @@
|
|||
</dependency>
|
||||
<dependency>
|
||||
<groupId>io.fabric8</groupId>
|
||||
<artifactId>kubernetes-client</artifactId>
|
||||
<artifactId>kubernetes-client-api</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>io.fabric8</groupId>
|
||||
|
|
|
|||
|
|
@ -232,15 +232,7 @@ public class KubernetesPersonalAccessTokenManager implements PersonalAccessToken
|
|||
throws ScmCommunicationException, ScmConfigurationPersistenceException,
|
||||
UnknownScmProviderException, UnsatisfiedScmPreconditionException,
|
||||
ScmUnauthorizedException {
|
||||
Subject subject = EnvironmentContext.getCurrent().getSubject();
|
||||
Optional<PersonalAccessToken> tokenOptional = get(subject, scmServerUrl);
|
||||
PersonalAccessToken personalAccessToken;
|
||||
if (tokenOptional.isPresent()) {
|
||||
personalAccessToken = tokenOptional.get();
|
||||
} else {
|
||||
// try to authenticate for the given URL
|
||||
personalAccessToken = fetchAndSave(subject, scmServerUrl);
|
||||
}
|
||||
PersonalAccessToken personalAccessToken = get(scmServerUrl);
|
||||
gitCredentialManager.createOrReplace(personalAccessToken);
|
||||
return personalAccessToken;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -64,7 +64,7 @@ public class KubernetesGitCredentialManagerTest {
|
|||
|
||||
@Mock NonNamespaceOperation<Secret, SecretList, Resource<Secret>> nonNamespaceOperation;
|
||||
|
||||
@Mock private FilterWatchListDeletable<Secret, SecretList> filterWatchDeletable;
|
||||
@Mock private FilterWatchListDeletable<Secret, SecretList, Resource<Secret>> filterWatchDeletable;
|
||||
|
||||
@Mock private SecretList secretList;
|
||||
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
<parent>
|
||||
<artifactId>che-infrastructures-parent</artifactId>
|
||||
<groupId>org.eclipse.che.infrastructure</groupId>
|
||||
<version>7.73.0-SNAPSHOT</version>
|
||||
<version>7.74.0-SNAPSHOT</version>
|
||||
<relativePath>../pom.xml</relativePath>
|
||||
</parent>
|
||||
<artifactId>infrastructure-metrics</artifactId>
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
<parent>
|
||||
<artifactId>che-infrastructures-parent</artifactId>
|
||||
<groupId>org.eclipse.che.infrastructure</groupId>
|
||||
<version>7.73.0-SNAPSHOT</version>
|
||||
<version>7.74.0-SNAPSHOT</version>
|
||||
</parent>
|
||||
<artifactId>infrastructure-permission</artifactId>
|
||||
<name>Infrastructure :: Kubernetes Permissions</name>
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
<parent>
|
||||
<artifactId>che-infrastructures-parent</artifactId>
|
||||
<groupId>org.eclipse.che.infrastructure</groupId>
|
||||
<version>7.73.0-SNAPSHOT</version>
|
||||
<version>7.74.0-SNAPSHOT</version>
|
||||
</parent>
|
||||
<artifactId>infrastructure-kubernetes</artifactId>
|
||||
<name>Infrastructure :: Kubernetes</name>
|
||||
|
|
@ -63,7 +63,7 @@
|
|||
</dependency>
|
||||
<dependency>
|
||||
<groupId>io.fabric8</groupId>
|
||||
<artifactId>kubernetes-client</artifactId>
|
||||
<artifactId>kubernetes-client-api</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>io.fabric8</groupId>
|
||||
|
|
|
|||
|
|
@ -11,7 +11,6 @@
|
|||
*/
|
||||
package org.eclipse.che.workspace.infrastructure.kubernetes;
|
||||
|
||||
import io.fabric8.kubernetes.client.BaseKubernetesClient;
|
||||
import io.fabric8.kubernetes.client.Config;
|
||||
import io.fabric8.kubernetes.client.DefaultKubernetesClient;
|
||||
import io.fabric8.kubernetes.client.KubernetesClient;
|
||||
|
|
@ -19,7 +18,6 @@ import io.fabric8.kubernetes.client.http.HttpClient;
|
|||
import io.fabric8.kubernetes.client.utils.HttpClientUtils;
|
||||
import javax.inject.Inject;
|
||||
import javax.inject.Singleton;
|
||||
import okhttp3.OkHttpClient;
|
||||
import org.eclipse.che.api.workspace.server.spi.InfrastructureException;
|
||||
import org.eclipse.che.commons.annotation.Nullable;
|
||||
|
||||
|
|
@ -94,12 +92,12 @@ public class KubernetesClientFactory {
|
|||
}
|
||||
|
||||
/**
|
||||
* Creates instance of {@link KubernetesClient} that uses an {@link OkHttpClient} instance derived
|
||||
* Creates instance of {@link KubernetesClient} that uses an {@link HttpClient} instance derived
|
||||
* from the shared {@code httpClient} instance in which interceptors are overridden to
|
||||
* authenticate with the credentials (user/password or Oauth token) contained in the {@code
|
||||
* config} parameter.
|
||||
*/
|
||||
protected BaseKubernetesClient<?> create(Config config) {
|
||||
protected KubernetesClient create(Config config) {
|
||||
return new UnclosableKubernetesClient(httpClient, config);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -37,6 +37,7 @@ import io.fabric8.kubernetes.api.model.Pod;
|
|||
import io.fabric8.kubernetes.api.model.PodSpec;
|
||||
import io.fabric8.kubernetes.api.model.PodStatus;
|
||||
import io.fabric8.kubernetes.api.model.ServiceAccount;
|
||||
import io.fabric8.kubernetes.api.model.StatusDetails;
|
||||
import io.fabric8.kubernetes.api.model.apps.Deployment;
|
||||
import io.fabric8.kubernetes.api.model.apps.DeploymentBuilder;
|
||||
import io.fabric8.kubernetes.client.KubernetesClientException;
|
||||
|
|
@ -71,7 +72,6 @@ import java.util.function.Predicate;
|
|||
import java.util.regex.Matcher;
|
||||
import java.util.regex.Pattern;
|
||||
import java.util.stream.Collectors;
|
||||
import okhttp3.Response;
|
||||
import org.eclipse.che.api.workspace.server.spi.InfrastructureException;
|
||||
import org.eclipse.che.commons.annotation.Nullable;
|
||||
import org.eclipse.che.workspace.infrastructure.kubernetes.KubernetesClientFactory;
|
||||
|
|
@ -301,7 +301,7 @@ public class KubernetesDeployments {
|
|||
CompletableFuture<Pod> future = new CompletableFuture<>();
|
||||
try {
|
||||
|
||||
PodResource<Pod> podResource =
|
||||
PodResource podResource =
|
||||
clientFactory.create(workspaceId).pods().inNamespace(namespace).withName(podName);
|
||||
|
||||
Watch watch =
|
||||
|
|
@ -366,7 +366,7 @@ public class KubernetesDeployments {
|
|||
final CompletableFuture<Void> podRunningFuture = new CompletableFuture<>();
|
||||
try {
|
||||
final String podName = getPodName(name);
|
||||
final PodResource<Pod> podResource =
|
||||
final PodResource podResource =
|
||||
clientFactory.create(workspaceId).pods().inNamespace(namespace).withName(podName);
|
||||
final Watch watch =
|
||||
podResource.watch(
|
||||
|
|
@ -941,18 +941,18 @@ public class KubernetesDeployments {
|
|||
// If we have a Pod, we have to watch to make sure it is deleted, otherwise, we watch the
|
||||
// Deployment we are deleting.
|
||||
if (!Strings.isNullOrEmpty(podName)) {
|
||||
PodResource<Pod> podResource =
|
||||
PodResource podResource =
|
||||
clientFactory.create(workspaceId).pods().inNamespace(namespace).withName(podName);
|
||||
watch = podResource.watch(new DeleteWatcher<>(deleteFuture));
|
||||
toCloseOnException = watch;
|
||||
} else {
|
||||
watch = deploymentResource.watch(new DeleteWatcher<Deployment>(deleteFuture));
|
||||
watch = deploymentResource.watch(new DeleteWatcher<>(deleteFuture));
|
||||
toCloseOnException = watch;
|
||||
}
|
||||
|
||||
Boolean deleteSucceeded = deploymentResource.withPropagationPolicy(BACKGROUND).delete();
|
||||
List<StatusDetails> deleted = deploymentResource.withPropagationPolicy(BACKGROUND).delete();
|
||||
|
||||
if (deleteSucceeded == null || !deleteSucceeded) {
|
||||
if (deleted == null || deleted.isEmpty()) {
|
||||
deleteFuture.complete(null);
|
||||
}
|
||||
return deleteFuture.whenComplete(
|
||||
|
|
@ -978,7 +978,7 @@ public class KubernetesDeployments {
|
|||
protected CompletableFuture<Void> doDeletePod(String podName) throws InfrastructureException {
|
||||
Watch toCloseOnException = null;
|
||||
try {
|
||||
PodResource<Pod> podResource =
|
||||
PodResource podResource =
|
||||
clientFactory.create(workspaceId).pods().inNamespace(namespace).withName(podName);
|
||||
if (podResource.get() == null) {
|
||||
throw new InfrastructureException(format("No pod found to delete for name %s", podName));
|
||||
|
|
@ -988,8 +988,8 @@ public class KubernetesDeployments {
|
|||
final Watch watch = podResource.watch(new DeleteWatcher<>(deleteFuture));
|
||||
toCloseOnException = watch;
|
||||
|
||||
Boolean deleteSucceeded = podResource.withPropagationPolicy(BACKGROUND).delete();
|
||||
if (deleteSucceeded == null || !deleteSucceeded) {
|
||||
List<StatusDetails> deleted = podResource.withPropagationPolicy(BACKGROUND).delete();
|
||||
if (deleted == null || deleted.isEmpty()) {
|
||||
deleteFuture.complete(null);
|
||||
}
|
||||
return deleteFuture.whenComplete(
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2012-2021 Red Hat, Inc.
|
||||
* Copyright (c) 2012-2023 Red Hat, Inc.
|
||||
* This program and the accompanying materials are made
|
||||
* available under the terms of the Eclipse Public License 2.0
|
||||
* which is available at https://www.eclipse.org/legal/epl-2.0/
|
||||
|
|
@ -22,7 +22,7 @@ import io.fabric8.kubernetes.api.model.LabelSelector;
|
|||
import io.fabric8.kubernetes.api.model.ObjectMeta;
|
||||
import io.fabric8.kubernetes.api.model.PersistentVolumeClaim;
|
||||
import io.fabric8.kubernetes.api.model.PersistentVolumeClaimBuilder;
|
||||
import io.fabric8.kubernetes.api.model.PersistentVolumeClaimFluent.SpecNested;
|
||||
import io.fabric8.kubernetes.api.model.PersistentVolumeClaimFluent;
|
||||
import io.fabric8.kubernetes.api.model.PersistentVolumeClaimVolumeSource;
|
||||
import io.fabric8.kubernetes.api.model.PersistentVolumeClaimVolumeSourceBuilder;
|
||||
import io.fabric8.kubernetes.api.model.Quantity;
|
||||
|
|
@ -199,13 +199,15 @@ public class KubernetesObjectUtil {
|
|||
*/
|
||||
public static PersistentVolumeClaim newPVC(
|
||||
String name, String accessMode, String quantity, String storageClassName) {
|
||||
SpecNested<PersistentVolumeClaimBuilder> specs =
|
||||
new PersistentVolumeClaimBuilder()
|
||||
.withNewMetadata()
|
||||
.withName(name)
|
||||
.endMetadata()
|
||||
.withNewSpec()
|
||||
.withAccessModes(accessMode);
|
||||
PersistentVolumeClaimFluent<PersistentVolumeClaimBuilder>.SpecNested<
|
||||
PersistentVolumeClaimBuilder>
|
||||
specs =
|
||||
new PersistentVolumeClaimBuilder()
|
||||
.withNewMetadata()
|
||||
.withName(name)
|
||||
.endMetadata()
|
||||
.withNewSpec()
|
||||
.withAccessModes(accessMode);
|
||||
if (!isNullOrEmpty(storageClassName)) {
|
||||
specs.withStorageClassName(storageClassName);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -843,7 +843,7 @@ public class KubernetesInternalRuntimeTest {
|
|||
}
|
||||
|
||||
private static IntOrString intOrString(int port) {
|
||||
return new IntOrStringBuilder().withIntVal(port).withStrVal(String.valueOf(port)).build();
|
||||
return new IntOrStringBuilder().withValue(port).withValue(String.valueOf(port)).build();
|
||||
}
|
||||
|
||||
private static class MapBasedRuntimeStateCache implements KubernetesRuntimeStateCache {
|
||||
|
|
|
|||
|
|
@ -25,8 +25,8 @@ import com.google.common.collect.ImmutableMap;
|
|||
import io.fabric8.kubernetes.api.model.ConfigMap;
|
||||
import io.fabric8.kubernetes.api.model.ConfigMapBuilder;
|
||||
import io.fabric8.kubernetes.api.model.ConfigMapList;
|
||||
import io.fabric8.kubernetes.client.GracePeriodConfigurable;
|
||||
import io.fabric8.kubernetes.client.KubernetesClient;
|
||||
import io.fabric8.kubernetes.client.dsl.EditReplacePatchDeletable;
|
||||
import io.fabric8.kubernetes.client.dsl.MixedOperation;
|
||||
import io.fabric8.kubernetes.client.dsl.Resource;
|
||||
import java.util.Arrays;
|
||||
|
|
@ -70,7 +70,7 @@ public class CheNamespaceTest {
|
|||
@Mock
|
||||
private MixedOperation<ConfigMap, ConfigMapList, Resource<ConfigMap>> kubeConfigMapsWithLabel;
|
||||
|
||||
@Mock private EditReplacePatchDeletable<ConfigMap> kubeConfigMapsWithPropagationPolicy;
|
||||
@Mock private GracePeriodConfigurable gracePeriodConfigurable;
|
||||
|
||||
@Mock private InternalRuntime internalRuntime;
|
||||
|
||||
|
|
@ -237,12 +237,12 @@ public class CheNamespaceTest {
|
|||
when(kubeConfigMapsInNamespace.withLabel(CHE_WORKSPACE_ID_LABEL, WORKSPACE_ID))
|
||||
.thenReturn(kubeConfigMapsWithLabel);
|
||||
when(kubeConfigMapsWithLabel.withPropagationPolicy(BACKGROUND))
|
||||
.thenReturn(kubeConfigMapsWithPropagationPolicy);
|
||||
.thenReturn(gracePeriodConfigurable);
|
||||
|
||||
// when
|
||||
cheNamespace.cleanUp(WORKSPACE_ID);
|
||||
|
||||
// then
|
||||
verify(kubeConfigMapsWithPropagationPolicy).delete();
|
||||
verify(gracePeriodConfigurable).delete();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -13,6 +13,7 @@ package org.eclipse.che.workspace.infrastructure.kubernetes.namespace;
|
|||
|
||||
import static io.fabric8.kubernetes.api.model.DeletionPropagation.BACKGROUND;
|
||||
import static java.util.Arrays.asList;
|
||||
import static java.util.Collections.emptyList;
|
||||
import static java.util.Collections.singletonList;
|
||||
import static org.eclipse.che.workspace.infrastructure.kubernetes.Constants.POD_STATUS_PHASE_FAILED;
|
||||
import static org.eclipse.che.workspace.infrastructure.kubernetes.Constants.POD_STATUS_PHASE_RUNNING;
|
||||
|
|
@ -55,12 +56,12 @@ import io.fabric8.kubernetes.api.model.apps.DeploymentBuilder;
|
|||
import io.fabric8.kubernetes.api.model.apps.DeploymentList;
|
||||
import io.fabric8.kubernetes.api.model.apps.DeploymentSpec;
|
||||
import io.fabric8.kubernetes.api.model.apps.DeploymentSpecBuilder;
|
||||
import io.fabric8.kubernetes.client.GracePeriodConfigurable;
|
||||
import io.fabric8.kubernetes.client.KubernetesClient;
|
||||
import io.fabric8.kubernetes.client.KubernetesClientException;
|
||||
import io.fabric8.kubernetes.client.Watch;
|
||||
import io.fabric8.kubernetes.client.Watcher;
|
||||
import io.fabric8.kubernetes.client.dsl.AppsAPIGroupDSL;
|
||||
import io.fabric8.kubernetes.client.dsl.EditReplacePatchDeletable;
|
||||
import io.fabric8.kubernetes.client.dsl.FilterWatchListDeletable;
|
||||
import io.fabric8.kubernetes.client.dsl.MixedOperation;
|
||||
import io.fabric8.kubernetes.client.dsl.NonNamespaceOperation;
|
||||
|
|
@ -119,12 +120,12 @@ public class KubernetesDeploymentsTest {
|
|||
@Mock private Deployment deployment;
|
||||
@Mock private ObjectMeta deploymentMetadata;
|
||||
@Mock private DeploymentSpec deploymentSpec;
|
||||
@Mock private EditReplacePatchDeletable<Deployment> deploymentEditReplacePatchDeletable;
|
||||
@Mock private GracePeriodConfigurable gracePeriodConfigurable;
|
||||
|
||||
// Pod Mocks
|
||||
@Mock private Pod pod;
|
||||
@Mock private PodStatus status;
|
||||
@Mock private PodResource<Pod> podResource;
|
||||
@Mock private PodResource podResource;
|
||||
@Mock private ObjectMeta metadata;
|
||||
@Mock private MixedOperation podsMixedOperation;
|
||||
@Mock private NonNamespaceOperation podsNamespaceOperation;
|
||||
|
|
@ -491,7 +492,7 @@ public class KubernetesDeploymentsTest {
|
|||
public void testDeleteNonExistingPodBeforeWatch() throws Exception {
|
||||
final String POD_NAME = "nonExistingPod";
|
||||
|
||||
doReturn(Boolean.FALSE).when(podResource).delete();
|
||||
doReturn(emptyList()).when(podResource).delete();
|
||||
doReturn(podResource).when(podResource).withPropagationPolicy(eq(BACKGROUND));
|
||||
Watch watch = mock(Watch.class);
|
||||
doReturn(watch).when(podResource).watch(any());
|
||||
|
|
@ -527,7 +528,7 @@ public class KubernetesDeploymentsTest {
|
|||
public void testDeleteNonExistingDeploymentBeforeWatch() throws Exception {
|
||||
final String DEPLOYMENT_NAME = "nonExistingPod";
|
||||
doReturn(deploymentResource).when(deploymentResource).withPropagationPolicy(eq(BACKGROUND));
|
||||
doReturn(Boolean.FALSE).when(deploymentResource).delete();
|
||||
doReturn(emptyList()).when(deploymentResource).delete();
|
||||
Watch watch = mock(Watch.class);
|
||||
doReturn(watch).when(podResource).watch(any());
|
||||
|
||||
|
|
@ -587,9 +588,9 @@ public class KubernetesDeploymentsTest {
|
|||
public void testDeleteDeploymentThrowingAnyExceptionShouldCloseWatch() throws Exception {
|
||||
final String DEPLOYMENT_NAME = "nonExistingPod";
|
||||
when(deploymentResource.withPropagationPolicy(eq(BACKGROUND)))
|
||||
.thenReturn(deploymentEditReplacePatchDeletable);
|
||||
.thenReturn(gracePeriodConfigurable);
|
||||
doThrow(new RuntimeException("testDeleteDeploymentThrowingAnyExceptionShouldCloseWatch msg"))
|
||||
.when(deploymentEditReplacePatchDeletable)
|
||||
.when(gracePeriodConfigurable)
|
||||
.delete();
|
||||
Watch watch = mock(Watch.class);
|
||||
doReturn(watch).when(podResource).watch(any());
|
||||
|
|
|
|||
|
|
@ -135,7 +135,9 @@ public class KubernetesNamespaceFactoryTest {
|
|||
|
||||
private KubernetesNamespaceFactory namespaceFactory;
|
||||
|
||||
@Mock private FilterWatchListDeletable<Namespace, NamespaceList> namespaceListResource;
|
||||
@Mock
|
||||
private FilterWatchListDeletable<Namespace, NamespaceList, Resource<NamespaceList>>
|
||||
namespaceListResource;
|
||||
|
||||
@Mock private NamespaceList namespaceList;
|
||||
|
||||
|
|
@ -277,7 +279,7 @@ public class KubernetesNamespaceFactoryTest {
|
|||
.withAnnotations(Map.of(NAMESPACE_ANNOTATION_NAME, "jondoe"))
|
||||
.endMetadata()
|
||||
.withNewStatus()
|
||||
.withNewPhase("Active")
|
||||
.withPhase("Active")
|
||||
.endStatus()
|
||||
.build(),
|
||||
new NamespaceBuilder()
|
||||
|
|
@ -286,7 +288,7 @@ public class KubernetesNamespaceFactoryTest {
|
|||
.withAnnotations(Map.of(NAMESPACE_ANNOTATION_NAME, "jondoe"))
|
||||
.endMetadata()
|
||||
.withNewStatus()
|
||||
.withNewPhase("Active")
|
||||
.withPhase("Active")
|
||||
.endStatus()
|
||||
.build(),
|
||||
new NamespaceBuilder()
|
||||
|
|
@ -295,7 +297,7 @@ public class KubernetesNamespaceFactoryTest {
|
|||
.withAnnotations(Map.of(NAMESPACE_ANNOTATION_NAME, "some_other_user"))
|
||||
.endMetadata()
|
||||
.withNewStatus()
|
||||
.withNewPhase("Active")
|
||||
.withPhase("Active")
|
||||
.endStatus()
|
||||
.build());
|
||||
doReturn(namespaces).when(namespaceList).getItems();
|
||||
|
|
@ -333,7 +335,7 @@ public class KubernetesNamespaceFactoryTest {
|
|||
.withName("ns1")
|
||||
.endMetadata()
|
||||
.withNewStatus()
|
||||
.withNewPhase("Active")
|
||||
.withPhase("Active")
|
||||
.endStatus()
|
||||
.build();
|
||||
doThrow(new KubernetesClientException("Not allowed.", 403, new Status()))
|
||||
|
|
@ -397,7 +399,7 @@ public class KubernetesNamespaceFactoryTest {
|
|||
.withName("jondoe-che")
|
||||
.endMetadata()
|
||||
.withNewStatus()
|
||||
.withNewPhase("Active")
|
||||
.withPhase("Active")
|
||||
.endStatus()
|
||||
.build());
|
||||
namespaceFactory =
|
||||
|
|
@ -1127,7 +1129,7 @@ public class KubernetesNamespaceFactoryTest {
|
|||
.withAnnotations(Map.of(NAMESPACE_ANNOTATION_NAME, "jondoe"))
|
||||
.endMetadata()
|
||||
.withNewStatus()
|
||||
.withNewPhase("Active")
|
||||
.withPhase("Active")
|
||||
.endStatus()
|
||||
.build(),
|
||||
new NamespaceBuilder()
|
||||
|
|
@ -1136,7 +1138,7 @@ public class KubernetesNamespaceFactoryTest {
|
|||
.withAnnotations(Map.of(NAMESPACE_ANNOTATION_NAME, "jondoe"))
|
||||
.endMetadata()
|
||||
.withNewStatus()
|
||||
.withNewPhase("Active")
|
||||
.withPhase("Active")
|
||||
.endStatus()
|
||||
.build());
|
||||
doReturn(namespaces).when(namespaceList).getItems();
|
||||
|
|
@ -1281,7 +1283,7 @@ public class KubernetesNamespaceFactoryTest {
|
|||
.withAnnotations(Map.of(NAMESPACE_ANNOTATION_NAME, "jondoe"))
|
||||
.endMetadata()
|
||||
.withNewStatus()
|
||||
.withNewPhase("Active")
|
||||
.withPhase("Active")
|
||||
.endStatus()
|
||||
.build());
|
||||
doReturn(namespaces).when(namespaceList).getItems();
|
||||
|
|
@ -1458,7 +1460,7 @@ public class KubernetesNamespaceFactoryTest {
|
|||
.withName(name)
|
||||
.endMetadata()
|
||||
.withNewStatus()
|
||||
.withNewPhase(phase)
|
||||
.withPhase(phase)
|
||||
.endStatus()
|
||||
.build();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2012-2021 Red Hat, Inc.
|
||||
* Copyright (c) 2012-2023 Red Hat, Inc.
|
||||
* This program and the accompanying materials are made
|
||||
* available under the terms of the Eclipse Public License 2.0
|
||||
* which is available at https://www.eclipse.org/legal/epl-2.0/
|
||||
|
|
@ -22,8 +22,8 @@ import static org.testng.Assert.assertEquals;
|
|||
|
||||
import io.fabric8.kubernetes.api.model.Secret;
|
||||
import io.fabric8.kubernetes.api.model.SecretList;
|
||||
import io.fabric8.kubernetes.client.GracePeriodConfigurable;
|
||||
import io.fabric8.kubernetes.client.KubernetesClient;
|
||||
import io.fabric8.kubernetes.client.dsl.EditReplacePatchDeletable;
|
||||
import io.fabric8.kubernetes.client.dsl.FilterWatchListDeletable;
|
||||
import io.fabric8.kubernetes.client.dsl.MixedOperation;
|
||||
import io.fabric8.kubernetes.client.dsl.NonNamespaceOperation;
|
||||
|
|
@ -53,8 +53,8 @@ public class KubernetesSecretsTest {
|
|||
|
||||
@Mock private NonNamespaceOperation<Secret, SecretList, Resource<Secret>> nonNamespaceOperation;
|
||||
|
||||
@Mock private FilterWatchListDeletable<Secret, SecretList> deletableList;
|
||||
@Mock private EditReplacePatchDeletable<Secret> deletableSecret;
|
||||
@Mock private FilterWatchListDeletable<Secret, SecretList, Resource<Secret>> deletableList;
|
||||
@Mock private GracePeriodConfigurable<Secret> deletableSecret;
|
||||
|
||||
private KubernetesSecrets kubernetesSecrets;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2012-2021 Red Hat, Inc.
|
||||
* Copyright (c) 2012-2023 Red Hat, Inc.
|
||||
* This program and the accompanying materials are made
|
||||
* available under the terms of the Eclipse Public License 2.0
|
||||
* which is available at https://www.eclipse.org/legal/epl-2.0/
|
||||
|
|
@ -24,13 +24,11 @@ import io.fabric8.kubernetes.api.model.Pod;
|
|||
import io.fabric8.kubernetes.api.model.PodList;
|
||||
import io.fabric8.kubernetes.client.KubernetesClient;
|
||||
import io.fabric8.kubernetes.client.dsl.ContainerResource;
|
||||
import io.fabric8.kubernetes.client.dsl.ExecWatch;
|
||||
import io.fabric8.kubernetes.client.dsl.LogWatch;
|
||||
import io.fabric8.kubernetes.client.dsl.MixedOperation;
|
||||
import io.fabric8.kubernetes.client.dsl.PodResource;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.io.OutputStream;
|
||||
import java.io.PipedInputStream;
|
||||
import java.io.PipedOutputStream;
|
||||
import java.util.concurrent.CountDownLatch;
|
||||
|
|
@ -57,22 +55,10 @@ public class ContainerLogWatchTest {
|
|||
|
||||
@Mock PodLogHandler podLogHandler;
|
||||
|
||||
@Mock MixedOperation<Pod, PodList, PodResource<Pod>> pods;
|
||||
@Mock PodResource<Pod> podResource;
|
||||
@Mock MixedOperation<Pod, PodList, PodResource> pods;
|
||||
@Mock PodResource podResource;
|
||||
|
||||
@Mock
|
||||
ContainerResource<
|
||||
LogWatch,
|
||||
InputStream,
|
||||
PipedOutputStream,
|
||||
OutputStream,
|
||||
PipedInputStream,
|
||||
String,
|
||||
ExecWatch,
|
||||
Boolean,
|
||||
InputStream,
|
||||
Boolean>
|
||||
containerResource;
|
||||
@Mock ContainerResource containerResource;
|
||||
|
||||
LogWatchMock logWatch;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2012-2021 Red Hat, Inc.
|
||||
* Copyright (c) 2012-2023 Red Hat, Inc.
|
||||
* This program and the accompanying materials are made
|
||||
* available under the terms of the Eclipse Public License 2.0
|
||||
* which is available at https://www.eclipse.org/legal/epl-2.0/
|
||||
|
|
@ -17,7 +17,6 @@ import static java.util.Collections.singletonMap;
|
|||
import static org.testng.Assert.assertEquals;
|
||||
import static org.testng.Assert.assertTrue;
|
||||
|
||||
import io.fabric8.kubernetes.api.model.LoadBalancerStatusBuilder;
|
||||
import io.fabric8.kubernetes.api.model.Service;
|
||||
import io.fabric8.kubernetes.api.model.ServiceBuilder;
|
||||
import io.fabric8.kubernetes.api.model.ServicePortBuilder;
|
||||
|
|
@ -26,6 +25,7 @@ import io.fabric8.kubernetes.api.model.networking.v1.HTTPIngressRuleValue;
|
|||
import io.fabric8.kubernetes.api.model.networking.v1.Ingress;
|
||||
import io.fabric8.kubernetes.api.model.networking.v1.IngressBackend;
|
||||
import io.fabric8.kubernetes.api.model.networking.v1.IngressBuilder;
|
||||
import io.fabric8.kubernetes.api.model.networking.v1.IngressLoadBalancerStatusBuilder;
|
||||
import io.fabric8.kubernetes.api.model.networking.v1.IngressRule;
|
||||
import io.fabric8.kubernetes.api.model.networking.v1.IngressServiceBackend;
|
||||
import io.fabric8.kubernetes.api.model.networking.v1.ServiceBackendPort;
|
||||
|
|
@ -276,7 +276,7 @@ public class IngressServerResolverTest {
|
|||
new ServicePortBuilder()
|
||||
.withPort(port)
|
||||
.withNewTargetPort()
|
||||
.withIntVal(port)
|
||||
.withValue(port)
|
||||
.endTargetPort()
|
||||
.build())
|
||||
.endSpec()
|
||||
|
|
@ -310,7 +310,7 @@ public class IngressServerResolverTest {
|
|||
.endSpec()
|
||||
.withNewStatus()
|
||||
.withLoadBalancer(
|
||||
new LoadBalancerStatusBuilder()
|
||||
new IngressLoadBalancerStatusBuilder()
|
||||
.addNewIngress()
|
||||
.withIp("127.0.0.1")
|
||||
.endIngress()
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
<parent>
|
||||
<artifactId>che-infrastructures-parent</artifactId>
|
||||
<groupId>org.eclipse.che.infrastructure</groupId>
|
||||
<version>7.73.0-SNAPSHOT</version>
|
||||
<version>7.74.0-SNAPSHOT</version>
|
||||
</parent>
|
||||
<artifactId>infrastructure-openshift</artifactId>
|
||||
<name>Infrastructure :: OpenShift</name>
|
||||
|
|
@ -36,7 +36,7 @@
|
|||
</dependency>
|
||||
<dependency>
|
||||
<groupId>io.fabric8</groupId>
|
||||
<artifactId>kubernetes-client</artifactId>
|
||||
<artifactId>kubernetes-client-api</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>io.fabric8</groupId>
|
||||
|
|
@ -58,6 +58,10 @@
|
|||
<groupId>io.fabric8</groupId>
|
||||
<artifactId>openshift-client</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>io.fabric8</groupId>
|
||||
<artifactId>openshift-client-api</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>io.fabric8</groupId>
|
||||
<artifactId>openshift-model</artifactId>
|
||||
|
|
|
|||
|
|
@ -15,7 +15,6 @@ import io.fabric8.kubernetes.client.Config;
|
|||
import io.fabric8.kubernetes.client.DefaultKubernetesClient;
|
||||
import io.fabric8.kubernetes.client.KubernetesClient;
|
||||
import io.fabric8.kubernetes.client.http.HttpClient;
|
||||
import io.fabric8.kubernetes.client.utils.HttpClientUtils;
|
||||
import io.fabric8.kubernetes.client.utils.TokenRefreshInterceptor;
|
||||
import io.fabric8.openshift.client.DefaultOpenShiftClient;
|
||||
import io.fabric8.openshift.client.OpenShiftClient;
|
||||
|
|
@ -85,8 +84,8 @@ public class OpenShiftClientFactory extends KubernetesClientFactory {
|
|||
}
|
||||
|
||||
private HttpClient clientForConfig(OpenShiftConfig config) {
|
||||
HttpClient.Builder builder = httpClient.newBuilder().authenticatorNone();
|
||||
builder.addOrReplaceInterceptor(HttpClientUtils.HEADER_INTERCEPTOR, null);
|
||||
HttpClient.DerivedClientBuilder builder = httpClient.newBuilder().authenticatorNone();
|
||||
builder.addOrReplaceInterceptor("HEADER", null);
|
||||
return builder
|
||||
.addOrReplaceInterceptor(
|
||||
TokenRefreshInterceptor.NAME, new OpenShiftOAuthInterceptor(httpClient, config))
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2012-2021 Red Hat, Inc.
|
||||
* Copyright (c) 2012-2023 Red Hat, Inc.
|
||||
* This program and the accompanying materials are made
|
||||
* available under the terms of the Eclipse Public License 2.0
|
||||
* which is available at https://www.eclipse.org/legal/epl-2.0/
|
||||
|
|
@ -77,7 +77,7 @@ public class OpenShiftWorkspaceServiceAccount
|
|||
@Override
|
||||
protected RoleBinding createRoleBinding(
|
||||
String roleName, String bindingName, boolean clusterRole) {
|
||||
RoleBindingFluent.RoleRefNested<RoleBindingBuilder> bld =
|
||||
RoleBindingFluent<RoleBindingBuilder>.RoleRefNested<RoleBindingBuilder> bld =
|
||||
new RoleBindingBuilder()
|
||||
.withNewMetadata()
|
||||
.withName(bindingName)
|
||||
|
|
|
|||
|
|
@ -312,6 +312,6 @@ public class OpenShiftInternalRuntimeTest {
|
|||
}
|
||||
|
||||
private static IntOrString intOrString(int port) {
|
||||
return new IntOrStringBuilder().withIntVal(port).withStrVal(String.valueOf(port)).build();
|
||||
return new IntOrStringBuilder().withValue(port).withValue(String.valueOf(port)).build();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2012-2021 Red Hat, Inc.
|
||||
* Copyright (c) 2012-2023 Red Hat, Inc.
|
||||
* This program and the accompanying materials are made
|
||||
* available under the terms of the Eclipse Public License 2.0
|
||||
* which is available at https://www.eclipse.org/legal/epl-2.0/
|
||||
|
|
@ -279,7 +279,7 @@ public class RouteServerResolverTest {
|
|||
new ServicePortBuilder()
|
||||
.withPort(port)
|
||||
.withNewTargetPort()
|
||||
.withIntVal(port)
|
||||
.withValue(port)
|
||||
.endTargetPort()
|
||||
.build())
|
||||
.endSpec()
|
||||
|
|
|
|||
|
|
@ -122,7 +122,8 @@ public class OpenShiftProjectFactoryTest {
|
|||
|
||||
private OpenShiftProjectFactory projectFactory;
|
||||
|
||||
@Mock private FilterWatchListDeletable<Project, ProjectList> projectListResource;
|
||||
@Mock
|
||||
private FilterWatchListDeletable<Project, ProjectList, Resource<Project>> projectListResource;
|
||||
|
||||
@Mock private ProjectList projectList;
|
||||
|
||||
|
|
@ -861,7 +862,7 @@ public class OpenShiftProjectFactoryTest {
|
|||
.withAnnotations(annotations)
|
||||
.endMetadata()
|
||||
.withNewStatus()
|
||||
.withNewPhase(phase)
|
||||
.withPhase(phase)
|
||||
.endStatus()
|
||||
.build();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
<parent>
|
||||
<artifactId>che-server</artifactId>
|
||||
<groupId>org.eclipse.che</groupId>
|
||||
<version>7.73.0-SNAPSHOT</version>
|
||||
<version>7.74.0-SNAPSHOT</version>
|
||||
<relativePath>../pom.xml</relativePath>
|
||||
</parent>
|
||||
<groupId>org.eclipse.che.infrastructure</groupId>
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
<parent>
|
||||
<artifactId>che-multiuser-api</artifactId>
|
||||
<groupId>org.eclipse.che.multiuser</groupId>
|
||||
<version>7.73.0-SNAPSHOT</version>
|
||||
<version>7.74.0-SNAPSHOT</version>
|
||||
</parent>
|
||||
<artifactId>che-multiuser-api-authentication-commons</artifactId>
|
||||
<packaging>jar</packaging>
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
<parent>
|
||||
<artifactId>che-multiuser-api</artifactId>
|
||||
<groupId>org.eclipse.che.multiuser</groupId>
|
||||
<version>7.73.0-SNAPSHOT</version>
|
||||
<version>7.74.0-SNAPSHOT</version>
|
||||
</parent>
|
||||
<artifactId>che-multiuser-api-authorization-impl</artifactId>
|
||||
<packaging>jar</packaging>
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
<parent>
|
||||
<artifactId>che-multiuser-api</artifactId>
|
||||
<groupId>org.eclipse.che.multiuser</groupId>
|
||||
<version>7.73.0-SNAPSHOT</version>
|
||||
<version>7.74.0-SNAPSHOT</version>
|
||||
</parent>
|
||||
<artifactId>che-multiuser-api-authorization</artifactId>
|
||||
<packaging>jar</packaging>
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
<parent>
|
||||
<artifactId>che-multiuser-api</artifactId>
|
||||
<groupId>org.eclipse.che.multiuser</groupId>
|
||||
<version>7.73.0-SNAPSHOT</version>
|
||||
<version>7.74.0-SNAPSHOT</version>
|
||||
</parent>
|
||||
<artifactId>che-multiuser-api-organization-shared</artifactId>
|
||||
<packaging>jar</packaging>
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
<parent>
|
||||
<artifactId>che-multiuser-api</artifactId>
|
||||
<groupId>org.eclipse.che.multiuser</groupId>
|
||||
<version>7.73.0-SNAPSHOT</version>
|
||||
<version>7.74.0-SNAPSHOT</version>
|
||||
</parent>
|
||||
<artifactId>che-multiuser-api-organization</artifactId>
|
||||
<packaging>jar</packaging>
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
<parent>
|
||||
<artifactId>che-multiuser-api</artifactId>
|
||||
<groupId>org.eclipse.che.multiuser</groupId>
|
||||
<version>7.73.0-SNAPSHOT</version>
|
||||
<version>7.74.0-SNAPSHOT</version>
|
||||
</parent>
|
||||
<artifactId>che-multiuser-api-permission-shared</artifactId>
|
||||
<packaging>jar</packaging>
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
<parent>
|
||||
<artifactId>che-multiuser-api</artifactId>
|
||||
<groupId>org.eclipse.che.multiuser</groupId>
|
||||
<version>7.73.0-SNAPSHOT</version>
|
||||
<version>7.74.0-SNAPSHOT</version>
|
||||
</parent>
|
||||
<artifactId>che-multiuser-api-permission</artifactId>
|
||||
<packaging>jar</packaging>
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
<parent>
|
||||
<artifactId>che-multiuser-api</artifactId>
|
||||
<groupId>org.eclipse.che.multiuser</groupId>
|
||||
<version>7.73.0-SNAPSHOT</version>
|
||||
<version>7.74.0-SNAPSHOT</version>
|
||||
</parent>
|
||||
<artifactId>che-multiuser-api-resource-shared</artifactId>
|
||||
<packaging>jar</packaging>
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
<parent>
|
||||
<artifactId>che-multiuser-api</artifactId>
|
||||
<groupId>org.eclipse.che.multiuser</groupId>
|
||||
<version>7.73.0-SNAPSHOT</version>
|
||||
<version>7.74.0-SNAPSHOT</version>
|
||||
</parent>
|
||||
<artifactId>che-multiuser-api-resource</artifactId>
|
||||
<packaging>jar</packaging>
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
<parent>
|
||||
<artifactId>che-multiuser-api</artifactId>
|
||||
<groupId>org.eclipse.che.multiuser</groupId>
|
||||
<version>7.73.0-SNAPSHOT</version>
|
||||
<version>7.74.0-SNAPSHOT</version>
|
||||
</parent>
|
||||
<artifactId>che-multiuser-api-workspace-activity</artifactId>
|
||||
<packaging>jar</packaging>
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
<parent>
|
||||
<artifactId>che-multiuser-parent</artifactId>
|
||||
<groupId>org.eclipse.che.multiuser</groupId>
|
||||
<version>7.73.0-SNAPSHOT</version>
|
||||
<version>7.74.0-SNAPSHOT</version>
|
||||
<relativePath>../pom.xml</relativePath>
|
||||
</parent>
|
||||
<artifactId>che-multiuser-api</artifactId>
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
<parent>
|
||||
<artifactId>che-multiuser-integration-tests</artifactId>
|
||||
<groupId>org.eclipse.che.multiuser</groupId>
|
||||
<version>7.73.0-SNAPSHOT</version>
|
||||
<version>7.74.0-SNAPSHOT</version>
|
||||
</parent>
|
||||
<artifactId>che-multiuser-cascade-removal</artifactId>
|
||||
<packaging>jar</packaging>
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
<parent>
|
||||
<artifactId>che-multiuser-integration-tests</artifactId>
|
||||
<groupId>org.eclipse.che.multiuser</groupId>
|
||||
<version>7.73.0-SNAPSHOT</version>
|
||||
<version>7.74.0-SNAPSHOT</version>
|
||||
</parent>
|
||||
<artifactId>che-multiuser-mysql-tck</artifactId>
|
||||
<packaging>jar</packaging>
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
<parent>
|
||||
<artifactId>che-multiuser-integration-tests</artifactId>
|
||||
<groupId>org.eclipse.che.multiuser</groupId>
|
||||
<version>7.73.0-SNAPSHOT</version>
|
||||
<version>7.74.0-SNAPSHOT</version>
|
||||
</parent>
|
||||
<artifactId>che-multiuser-postgresql-tck</artifactId>
|
||||
<packaging>jar</packaging>
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
<parent>
|
||||
<artifactId>che-multiuser-parent</artifactId>
|
||||
<groupId>org.eclipse.che.multiuser</groupId>
|
||||
<version>7.73.0-SNAPSHOT</version>
|
||||
<version>7.74.0-SNAPSHOT</version>
|
||||
</parent>
|
||||
<artifactId>che-multiuser-integration-tests</artifactId>
|
||||
<packaging>pom</packaging>
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
<parent>
|
||||
<artifactId>che-multiuser-keycloak</artifactId>
|
||||
<groupId>org.eclipse.che.multiuser</groupId>
|
||||
<version>7.73.0-SNAPSHOT</version>
|
||||
<version>7.74.0-SNAPSHOT</version>
|
||||
</parent>
|
||||
<artifactId>che-multiuser-keycloak-server</artifactId>
|
||||
<packaging>jar</packaging>
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
<parent>
|
||||
<artifactId>che-multiuser-keycloak</artifactId>
|
||||
<groupId>org.eclipse.che.multiuser</groupId>
|
||||
<version>7.73.0-SNAPSHOT</version>
|
||||
<version>7.74.0-SNAPSHOT</version>
|
||||
</parent>
|
||||
<artifactId>che-multiuser-keycloak-shared</artifactId>
|
||||
<packaging>jar</packaging>
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
<parent>
|
||||
<artifactId>che-multiuser-keycloak</artifactId>
|
||||
<groupId>org.eclipse.che.multiuser</groupId>
|
||||
<version>7.73.0-SNAPSHOT</version>
|
||||
<version>7.74.0-SNAPSHOT</version>
|
||||
</parent>
|
||||
<artifactId>che-multiuser-keycloak-token-provider</artifactId>
|
||||
<name>Che Multiuser :: Keycloak Token Provider</name>
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
<parent>
|
||||
<artifactId>che-multiuser-keycloak</artifactId>
|
||||
<groupId>org.eclipse.che.multiuser</groupId>
|
||||
<version>7.73.0-SNAPSHOT</version>
|
||||
<version>7.74.0-SNAPSHOT</version>
|
||||
</parent>
|
||||
<artifactId>che-multiuser-keycloak-user-remover</artifactId>
|
||||
<packaging>jar</packaging>
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
<parent>
|
||||
<artifactId>che-multiuser-parent</artifactId>
|
||||
<groupId>org.eclipse.che.multiuser</groupId>
|
||||
<version>7.73.0-SNAPSHOT</version>
|
||||
<version>7.74.0-SNAPSHOT</version>
|
||||
<relativePath>../pom.xml</relativePath>
|
||||
</parent>
|
||||
<artifactId>che-multiuser-keycloak</artifactId>
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
<parent>
|
||||
<artifactId>che-multiuser-machine-auth</artifactId>
|
||||
<groupId>org.eclipse.che.multiuser</groupId>
|
||||
<version>7.73.0-SNAPSHOT</version>
|
||||
<version>7.74.0-SNAPSHOT</version>
|
||||
</parent>
|
||||
<artifactId>che-multiuser-machine-authentication-shared</artifactId>
|
||||
<packaging>jar</packaging>
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
<parent>
|
||||
<artifactId>che-multiuser-machine-auth</artifactId>
|
||||
<groupId>org.eclipse.che.multiuser</groupId>
|
||||
<version>7.73.0-SNAPSHOT</version>
|
||||
<version>7.74.0-SNAPSHOT</version>
|
||||
</parent>
|
||||
<artifactId>che-multiuser-machine-authentication</artifactId>
|
||||
<packaging>jar</packaging>
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
<parent>
|
||||
<artifactId>che-multiuser-parent</artifactId>
|
||||
<groupId>org.eclipse.che.multiuser</groupId>
|
||||
<version>7.73.0-SNAPSHOT</version>
|
||||
<version>7.74.0-SNAPSHOT</version>
|
||||
<relativePath>../pom.xml</relativePath>
|
||||
</parent>
|
||||
<artifactId>che-multiuser-machine-auth</artifactId>
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
<parent>
|
||||
<artifactId>che-multiuser-parent</artifactId>
|
||||
<groupId>org.eclipse.che.multiuser</groupId>
|
||||
<version>7.73.0-SNAPSHOT</version>
|
||||
<version>7.74.0-SNAPSHOT</version>
|
||||
</parent>
|
||||
<artifactId>che-multiuser-oidc</artifactId>
|
||||
<packaging>jar</packaging>
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
<parent>
|
||||
<artifactId>che-multiuser-permission</artifactId>
|
||||
<groupId>org.eclipse.che.multiuser</groupId>
|
||||
<version>7.73.0-SNAPSHOT</version>
|
||||
<version>7.74.0-SNAPSHOT</version>
|
||||
</parent>
|
||||
<artifactId>che-multiuser-permission-devfile</artifactId>
|
||||
<name>Che Multiuser :: Devfile Permissions</name>
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
<parent>
|
||||
<artifactId>che-multiuser-permission</artifactId>
|
||||
<groupId>org.eclipse.che.multiuser</groupId>
|
||||
<version>7.73.0-SNAPSHOT</version>
|
||||
<version>7.74.0-SNAPSHOT</version>
|
||||
</parent>
|
||||
<artifactId>che-multiuser-permission-logger</artifactId>
|
||||
<name>Che Multiuser :: Logger Permissions</name>
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
<parent>
|
||||
<artifactId>che-multiuser-permission</artifactId>
|
||||
<groupId>org.eclipse.che.multiuser</groupId>
|
||||
<version>7.73.0-SNAPSHOT</version>
|
||||
<version>7.74.0-SNAPSHOT</version>
|
||||
</parent>
|
||||
<artifactId>che-multiuser-permission-resource</artifactId>
|
||||
<name>Che Multiuser :: Resource :: Permissions</name>
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
<parent>
|
||||
<artifactId>che-multiuser-permission</artifactId>
|
||||
<groupId>org.eclipse.che.multiuser</groupId>
|
||||
<version>7.73.0-SNAPSHOT</version>
|
||||
<version>7.74.0-SNAPSHOT</version>
|
||||
</parent>
|
||||
<artifactId>che-multiuser-permission-system</artifactId>
|
||||
<name>Che Multiuser :: System Permissions</name>
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
<parent>
|
||||
<artifactId>che-multiuser-permission</artifactId>
|
||||
<groupId>org.eclipse.che.multiuser</groupId>
|
||||
<version>7.73.0-SNAPSHOT</version>
|
||||
<version>7.74.0-SNAPSHOT</version>
|
||||
</parent>
|
||||
<artifactId>che-multiuser-permission-user</artifactId>
|
||||
<name>Che Multiuser :: User Permissions</name>
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
<parent>
|
||||
<artifactId>che-multiuser-permission</artifactId>
|
||||
<groupId>org.eclipse.che.multiuser</groupId>
|
||||
<version>7.73.0-SNAPSHOT</version>
|
||||
<version>7.74.0-SNAPSHOT</version>
|
||||
</parent>
|
||||
<artifactId>che-multiuser-permission-workspace-activity</artifactId>
|
||||
<name>Che Multiuser :: Workspace Activity Permissions</name>
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
<parent>
|
||||
<artifactId>che-multiuser-permission</artifactId>
|
||||
<groupId>org.eclipse.che.multiuser</groupId>
|
||||
<version>7.73.0-SNAPSHOT</version>
|
||||
<version>7.74.0-SNAPSHOT</version>
|
||||
</parent>
|
||||
<artifactId>che-multiuser-permission-workspace</artifactId>
|
||||
<name>Che Multiuser :: Workspace Permissions</name>
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
<parent>
|
||||
<artifactId>che-multiuser-parent</artifactId>
|
||||
<groupId>org.eclipse.che.multiuser</groupId>
|
||||
<version>7.73.0-SNAPSHOT</version>
|
||||
<version>7.74.0-SNAPSHOT</version>
|
||||
<relativePath>../pom.xml</relativePath>
|
||||
</parent>
|
||||
<artifactId>che-multiuser-permission</artifactId>
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
<parent>
|
||||
<artifactId>che-multiuser-parent</artifactId>
|
||||
<groupId>org.eclipse.che.multiuser</groupId>
|
||||
<version>7.73.0-SNAPSHOT</version>
|
||||
<version>7.74.0-SNAPSHOT</version>
|
||||
</parent>
|
||||
<artifactId>che-multiuser-personal-account</artifactId>
|
||||
<packaging>jar</packaging>
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
<parent>
|
||||
<artifactId>che-server</artifactId>
|
||||
<groupId>org.eclipse.che</groupId>
|
||||
<version>7.73.0-SNAPSHOT</version>
|
||||
<version>7.74.0-SNAPSHOT</version>
|
||||
<relativePath>../pom.xml</relativePath>
|
||||
</parent>
|
||||
<groupId>org.eclipse.che.multiuser</groupId>
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
<parent>
|
||||
<artifactId>che-multiuser-parent</artifactId>
|
||||
<groupId>org.eclipse.che.multiuser</groupId>
|
||||
<version>7.73.0-SNAPSHOT</version>
|
||||
<version>7.74.0-SNAPSHOT</version>
|
||||
<relativePath>../pom.xml</relativePath>
|
||||
</parent>
|
||||
<artifactId>che-multiuser-sql-schema</artifactId>
|
||||
|
|
|
|||
13
pom.xml
13
pom.xml
|
|
@ -16,7 +16,7 @@
|
|||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>org.eclipse.che</groupId>
|
||||
<artifactId>che-server</artifactId>
|
||||
<version>7.73.0-SNAPSHOT</version>
|
||||
<version>7.74.0-SNAPSHOT</version>
|
||||
<packaging>pom</packaging>
|
||||
<name>Che Server</name>
|
||||
<description>Eclipse Che Server</description>
|
||||
|
|
@ -69,7 +69,7 @@
|
|||
<enforcer.skip>false</enforcer.skip>
|
||||
<integration.mysql.db.image>quay.io/eclipse/che--centos--mysql-57-centos7:latest-e08ee4d43b7356607685b69bde6335e27cf20c020f345b6c6c59400183882764</integration.mysql.db.image>
|
||||
<integration.postgresql.db.image>quay.io/eclipse/che--centos--postgresql-13-centos7:1-71b24684d64da46f960682cc4216222a7e4ed8b1a31dd5a865b3e71afdea20d2</integration.postgresql.db.image>
|
||||
<io.fabric8.kubernetes-client>5.12.4</io.fabric8.kubernetes-client>
|
||||
<io.fabric8.kubernetes-client>6.8.1</io.fabric8.kubernetes-client>
|
||||
<io.github.mweirauch.micrometer-jvm-extras.version>0.2.2</io.github.mweirauch.micrometer-jvm-extras.version>
|
||||
<io.jaegertracing.micrometer.version>1.8.1</io.jaegertracing.micrometer.version>
|
||||
<io.jaegertracing.version>1.8.1</io.jaegertracing.version>
|
||||
|
|
@ -100,7 +100,7 @@
|
|||
<license_contributor>Red Hat, Inc. - initial API and implementation</license_contributor>
|
||||
<?SORTPOM IGNORE?>
|
||||
<build.info>${project.version}</build.info>
|
||||
<che.version>7.73.0-SNAPSHOT</che.version>
|
||||
<che.version>7.74.0-SNAPSHOT</che.version>
|
||||
<specification.version>1.0-beta2</specification.version>
|
||||
<?SORTPOM RESUME?>
|
||||
<license_copyrightOwner>Red Hat, Inc.</license_copyrightOwner>
|
||||
|
|
@ -759,11 +759,6 @@
|
|||
<artifactId>che-core-api-factory-bitbucket-server</artifactId>
|
||||
<version>${che.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.eclipse.che.core</groupId>
|
||||
<artifactId>che-core-api-factory-git-ssh</artifactId>
|
||||
<version>${che.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.eclipse.che.core</groupId>
|
||||
<artifactId>che-core-api-factory-github</artifactId>
|
||||
|
|
@ -1418,7 +1413,7 @@
|
|||
</dependency>
|
||||
<dependency>
|
||||
<groupId>io.fabric8</groupId>
|
||||
<artifactId>kubernetes-client</artifactId>
|
||||
<artifactId>kubernetes-client-api</artifactId>
|
||||
<version>${io.fabric8.kubernetes-client}</version>
|
||||
<type>pom</type>
|
||||
<scope>import</scope>
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@
|
|||
<packaging>pom</packaging>
|
||||
<name>Che TypeScript DTO</name>
|
||||
<properties>
|
||||
<che.version>7.73.0-SNAPSHOT</che.version>
|
||||
<che.version>7.74.0-SNAPSHOT</che.version>
|
||||
</properties>
|
||||
<repositories>
|
||||
<repository>
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
<parent>
|
||||
<artifactId>che-master-parent</artifactId>
|
||||
<groupId>org.eclipse.che.core</groupId>
|
||||
<version>7.73.0-SNAPSHOT</version>
|
||||
<version>7.74.0-SNAPSHOT</version>
|
||||
</parent>
|
||||
<artifactId>che-core-api-account</artifactId>
|
||||
<name>Che Core :: API :: Account</name>
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
<parent>
|
||||
<artifactId>che-master-parent</artifactId>
|
||||
<groupId>org.eclipse.che.core</groupId>
|
||||
<version>7.73.0-SNAPSHOT</version>
|
||||
<version>7.74.0-SNAPSHOT</version>
|
||||
</parent>
|
||||
<artifactId>che-core-api-auth-azure-devops</artifactId>
|
||||
<packaging>jar</packaging>
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
<parent>
|
||||
<artifactId>che-master-parent</artifactId>
|
||||
<groupId>org.eclipse.che.core</groupId>
|
||||
<version>7.73.0-SNAPSHOT</version>
|
||||
<version>7.74.0-SNAPSHOT</version>
|
||||
</parent>
|
||||
<artifactId>che-core-api-auth-bitbucket</artifactId>
|
||||
<packaging>jar</packaging>
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
<parent>
|
||||
<artifactId>che-master-parent</artifactId>
|
||||
<groupId>org.eclipse.che.core</groupId>
|
||||
<version>7.73.0-SNAPSHOT</version>
|
||||
<version>7.74.0-SNAPSHOT</version>
|
||||
</parent>
|
||||
<artifactId>che-core-api-auth-github</artifactId>
|
||||
<packaging>jar</packaging>
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
<parent>
|
||||
<artifactId>che-master-parent</artifactId>
|
||||
<groupId>org.eclipse.che.core</groupId>
|
||||
<version>7.73.0-SNAPSHOT</version>
|
||||
<version>7.74.0-SNAPSHOT</version>
|
||||
</parent>
|
||||
<artifactId>che-core-api-auth-gitlab</artifactId>
|
||||
<packaging>jar</packaging>
|
||||
|
|
|
|||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue