parent
383d5f20d0
commit
ad988ca914
5 changed files with 7 additions and 10 deletions
|
@ -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>
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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() {
|
||||
|
|
4
pom.xml
4
pom.xml
|
@ -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>
|
||||
|
||||
|
|
Loading…
Reference in a new issue