Upgrade to Quarkus 3.2.0.Final and QOSDK 6.2.0

Closes #21272
This commit is contained in:
Václav Muzikář 2023-06-30 14:05:02 +02:00 committed by Pedro Igor
parent 383d5f20d0
commit ad988ca914
5 changed files with 7 additions and 10 deletions

View file

@ -31,8 +31,8 @@
<maven.compiler.target>11</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<quarkus.operator.sdk.version>6.1.1</quarkus.operator.sdk.version>
<quarkus.operator.build.version>3.1.1.Final</quarkus.operator.build.version>
<quarkus.operator.sdk.version>6.2.0</quarkus.operator.sdk.version>
<quarkus.operator.build.version>3.2.0.Final</quarkus.operator.build.version>
<quarkus.container-image.group>keycloak</quarkus.container-image.group>
</properties>

View file

@ -57,7 +57,7 @@ public class KeycloakController implements Reconciler<Keycloak>, EventSourceInit
@Override
public Map<String, EventSource> prepareEventSources(EventSourceContext<Keycloak> context) {
String namespace = context.getControllerConfiguration().getConfigurationService().getClientConfiguration().getNamespace();
String namespace = context.getControllerConfiguration().getConfigurationService().getKubernetesClient().getNamespace();
InformerConfiguration<StatefulSet> statefulSetIC = InformerConfiguration
.from(StatefulSet.class)

View file

@ -58,7 +58,7 @@ public class KeycloakRealmImportController implements Reconciler<KeycloakRealmIm
InformerConfiguration<Job> jobIC = InformerConfiguration
.from(Job.class)
.withLabelSelector(Constants.DEFAULT_LABELS_AS_STRING)
.withNamespaces(context.getControllerConfiguration().getConfigurationService().getClientConfiguration().getNamespace())
.withNamespaces(context.getControllerConfiguration().getConfigurationService().getKubernetesClient().getNamespace())
.withSecondaryToPrimaryMapper(Mappers.fromOwnerReference())
.withOnUpdateFilter(new MetadataAwareOnUpdateFilter<>())
.build();

View file

@ -26,7 +26,6 @@ import io.fabric8.kubernetes.client.KubernetesClient;
import io.fabric8.kubernetes.client.KubernetesClientBuilder;
import io.fabric8.kubernetes.client.NamespacedKubernetesClient;
import io.javaoperatorsdk.operator.Operator;
import io.javaoperatorsdk.operator.api.config.ConfigurationServiceProvider;
import io.javaoperatorsdk.operator.api.reconciler.Reconciler;
import io.quarkiverse.operatorsdk.runtime.QuarkusConfigurationService;
import io.quarkus.logging.Log;
@ -154,9 +153,7 @@ public abstract class BaseOperatorTest {
}
private static void createOperator() {
configuration.getClientConfiguration().setNamespace(namespace);
ConfigurationServiceProvider.reset();
operator = new Operator(k8sclient, configuration);
operator = new Operator(overrider -> overrider.withKubernetesClient(k8sclient));
}
private static void createNamespace() {

View file

@ -43,8 +43,8 @@
<jboss.snapshots.repo.id>jboss-snapshots-repository</jboss.snapshots.repo.id>
<jboss.snapshots.repo.url>https://s01.oss.sonatype.org/content/repositories/snapshots/</jboss.snapshots.repo.url>
<quarkus.version>3.1.2.Final</quarkus.version>
<quarkus.build.version>3.1.2.Final</quarkus.build.version>
<quarkus.version>3.2.0.Final</quarkus.version>
<quarkus.build.version>3.2.0.Final</quarkus.build.version>
<project.build-time>${timestamp}</project.build-time>