Skip to content
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

next #798

Open
wants to merge 35 commits into
base: main
Choose a base branch
from
Open

next #798

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
692a3f4
feat: JOSDK 5.0.0-SNAPSHOT upgrade, remove ResourceEventFilter support
metacosm Jan 22, 2024
4711b36
feat: update retry configuration support to only apply to GenericRetry
metacosm Jan 23, 2024
94d041b
feat: WorkflowReconcileResult is not optional anymore
metacosm Jan 23, 2024
6aaeba3
chore: change version to 7.0.0-SNAPSHOT
metacosm Jan 25, 2024
57af733
feat: adapt code to Workflow now being a separate annotation
metacosm Mar 20, 2024
9ae1e5b
feat: remove ResourceDiscriminator
metacosm Mar 25, 2024
143fadb
feat: install a shutdown hook if termination timeout is set
metacosm Mar 26, 2024
b46d8cc
fix: override getPrimaryResource as default implementation doesn't work
metacosm Apr 25, 2024
67fbcbf
fix: replace update with patch calls
metacosm Apr 25, 2024
df7aede
docs: precise & unify comments on why some getters are required
metacosm May 2, 2024
7f490c1
feat: add support for explicit workflow exception handling
metacosm May 2, 2024
3cbf5f3
feat: add defensive cloning configuration
metacosm May 2, 2024
ac83e83
fix: adapt to EventSource changes
metacosm May 2, 2024
f1771d3
fix: remove now removed ObservedGenerationAwareStatus interface
metacosm May 15, 2024
ba94911
wip: make things "compile" with independent-config JOSDK branch
metacosm Jun 12, 2024
4bfd33f
feat: adapt to changes in KubernetesDependent configuration
metacosm Jun 12, 2024
9d9fb6c
fix: remove now unneeded classes
metacosm Jun 20, 2024
9e895ae
fix: no need to reconfigure spec
metacosm Jun 20, 2024
1b15177
wip: make things "compile" with independent-config JOSDK branch
metacosm Jun 12, 2024
d806869
feat: adapt to informer configuration changes
metacosm Jun 28, 2024
a99881b
feat: update to informer configuration changes for controller (#895)
metacosm Jul 4, 2024
f2dac9c
chore: revert to use Quarkus 3.12.1
metacosm Jul 4, 2024
e3fcf5f
refactor: rename based on JOSDK changes
metacosm Jul 12, 2024
51465e1
refactor: remove now unneeded code
metacosm Aug 12, 2024
e680b19
refactor: use WithTestResource
metacosm Jul 4, 2024
a9639b6
refactor: access informer-related config from InformerConfiguration
metacosm Aug 16, 2024
61e56fd
fix: adapt after rebase
metacosm Aug 29, 2024
41692ea
fix: adapt to changes after rebase
metacosm Sep 3, 2024
cbf2087
chore: doc updates after plugin update (missed earlier)
metacosm Sep 6, 2024
8fac74f
fix: update WatchAllReconciler configuration after rebase
metacosm Sep 23, 2024
c483392
fix: properly retrieve dependent configuration and check type
metacosm Nov 14, 2024
7557e18
fix: use proper workflow definition
metacosm Nov 14, 2024
01ae35f
chore: update generated docs
metacosm Nov 14, 2024
1494ddd
fix: missing import after rebase
metacosm Nov 27, 2024
e7888f3
chore: update to JOSDK 5.0.0-beta1
metacosm Dec 6, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion annotations/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>io.quarkiverse.operatorsdk</groupId>
<artifactId>quarkus-operator-sdk-parent</artifactId>
<version>6.9.2-SNAPSHOT</version>
<version>7.0.0-SNAPSHOT</version>
</parent>

<artifactId>quarkus-operator-sdk-annotations</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion bom/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>io.quarkiverse.operatorsdk</groupId>
<artifactId>quarkus-operator-sdk-parent</artifactId>
<version>6.9.2-SNAPSHOT</version>
<version>7.0.0-SNAPSHOT</version>
</parent>
<artifactId>quarkus-operator-sdk-bom</artifactId>
<name>Quarkus - Operator SDK - BOM</name>
Expand Down
2 changes: 1 addition & 1 deletion build-parent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>io.quarkiverse.operatorsdk</groupId>
<artifactId>quarkus-operator-sdk-parent</artifactId>
<version>6.9.2-SNAPSHOT</version>
<version>7.0.0-SNAPSHOT</version>
</parent>
<artifactId>quarkus-operator-sdk-build-parent</artifactId>
<packaging>pom</packaging>
Expand Down
2 changes: 1 addition & 1 deletion bundle-generator/deployment/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>io.quarkiverse.operatorsdk</groupId>
<artifactId>quarkus-operator-sdk-bundle-generator-parent</artifactId>
<version>6.9.2-SNAPSHOT</version>
<version>7.0.0-SNAPSHOT</version>
</parent>

<name>Quarkus - Operator SDK - Bundle Generator - Deployment</name>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
package io.quarkiverse.operatorsdk.bundle.sources;

import io.javaoperatorsdk.operator.api.reconciler.Context;
import io.javaoperatorsdk.operator.api.reconciler.ControllerConfiguration;
import io.javaoperatorsdk.operator.api.reconciler.Reconciler;
import io.javaoperatorsdk.operator.api.reconciler.UpdateControl;
import io.javaoperatorsdk.operator.api.reconciler.Workflow;
import io.javaoperatorsdk.operator.api.reconciler.dependent.Dependent;
import io.quarkiverse.operatorsdk.annotations.CSVMetadata;

@ControllerConfiguration(dependents = @Dependent(type = ExternalDependentResource.class))
@Workflow(dependents = @Dependent(type = ExternalDependentResource.class))
@CSVMetadata(requiredCRDs = @CSVMetadata.RequiredCRD(kind = V1Beta1CRD.KIND, name = V1Beta1CRD.CR_NAME, version = V1Beta1CRD.VERSION))
public class ReconcilerWithExternalCR implements Reconciler<First> {
@Override
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package io.quarkiverse.operatorsdk.bundle.sources;

import io.javaoperatorsdk.operator.api.config.informer.Informer;
import io.javaoperatorsdk.operator.api.reconciler.Context;
import io.javaoperatorsdk.operator.api.reconciler.ControllerConfiguration;
import io.javaoperatorsdk.operator.api.reconciler.Reconciler;
Expand All @@ -9,7 +10,7 @@

@CSVMetadata(bundleName = "second-operator")
@RBACRule(apiGroups = SecondReconciler.RBAC_RULE_GROUP, resources = SecondReconciler.RBAC_RULE_RES, verbs = SecondReconciler.RBAC_RULE_VERBS)
@ControllerConfiguration(namespaces = "foo")
@ControllerConfiguration(informer = @Informer(namespaces = "foo"))
public class SecondReconciler implements Reconciler<Second> {
public static final String RBAC_RULE_GROUP = "halkyon.io";
public static final String RBAC_RULE_RES = "SomeResource";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,21 @@
import io.javaoperatorsdk.operator.api.reconciler.ControllerConfiguration;
import io.javaoperatorsdk.operator.api.reconciler.Reconciler;
import io.javaoperatorsdk.operator.api.reconciler.UpdateControl;
import io.javaoperatorsdk.operator.api.reconciler.Workflow;
import io.javaoperatorsdk.operator.api.reconciler.dependent.Dependent;
import io.quarkiverse.operatorsdk.annotations.CSVMetadata;
import io.quarkiverse.operatorsdk.annotations.CSVMetadata.Annotations;
import io.quarkiverse.operatorsdk.annotations.CSVMetadata.Annotations.Annotation;
import io.quarkiverse.operatorsdk.annotations.CSVMetadata.RequiredCRD;

@CSVMetadata(bundleName = ThirdReconciler.BUNDLE_NAME, requiredCRDs = @RequiredCRD(kind = SecondExternal.KIND, name = "externalagains."
+ SecondExternal.GROUP, version = SecondExternal.VERSION), replaces = "1.0.0", annotations = @Annotations(skipRange = ">=1.0.0 <1.0.3", capabilities = "Test", repository = "should be overridden by property", others = @Annotation(name = "foo", value = "bar")))
@ControllerConfiguration(name = ThirdReconciler.NAME, dependents = {
@Workflow(dependents = {
@Dependent(type = ExternalDependentResource.class),
@Dependent(name = "pod1", type = PodDependentResource.class),
@Dependent(name = "pod2", type = PodDependentResource.class)
})
@CSVMetadata(bundleName = ThirdReconciler.BUNDLE_NAME, requiredCRDs = @RequiredCRD(kind = SecondExternal.KIND, name = "externalagains."
+ SecondExternal.GROUP, version = SecondExternal.VERSION), replaces = "1.0.0", annotations = @Annotations(skipRange = ">=1.0.0 <1.0.3", capabilities = "Test", repository = "should be overridden by property", others = @Annotation(name = "foo", value = "bar")))
@ControllerConfiguration(name = ThirdReconciler.NAME)
public class ThirdReconciler implements Reconciler<Third> {

public static final String NAME = "third";
Expand Down
2 changes: 1 addition & 1 deletion bundle-generator/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>io.quarkiverse.operatorsdk</groupId>
<artifactId>quarkus-operator-sdk-build-parent</artifactId>
<version>6.9.2-SNAPSHOT</version>
<version>7.0.0-SNAPSHOT</version>
<relativePath>../build-parent/pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion bundle-generator/runtime/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>io.quarkiverse.operatorsdk</groupId>
<artifactId>quarkus-operator-sdk-bundle-generator-parent</artifactId>
<version>6.9.2-SNAPSHOT</version>
<version>7.0.0-SNAPSHOT</version>
</parent>

<name>Quarkus - Operator SDK - Bundle Generator - Runtime</name>
Expand Down
2 changes: 1 addition & 1 deletion cli/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<groupId>io.quarkiverse.operatorsdk</groupId>
<artifactId>quarkus-operator-sdk-build-parent</artifactId>
<version>6.9.2-SNAPSHOT</version>
<version>7.0.0-SNAPSHOT</version>
<relativePath>../build-parent/pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
Expand Down
2 changes: 1 addition & 1 deletion common-deployment/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<groupId>io.quarkiverse.operatorsdk</groupId>
<artifactId>quarkus-operator-sdk-build-parent</artifactId>
<version>6.9.2-SNAPSHOT</version>
<version>7.0.0-SNAPSHOT</version>
<relativePath>../build-parent/pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import io.javaoperatorsdk.operator.api.reconciler.ControllerConfiguration;
import io.javaoperatorsdk.operator.api.reconciler.Ignore;
import io.javaoperatorsdk.operator.api.reconciler.Reconciler;
import io.javaoperatorsdk.operator.api.reconciler.Workflow;
import io.javaoperatorsdk.operator.api.reconciler.dependent.DependentResource;
import io.javaoperatorsdk.operator.processing.dependent.kubernetes.GenericKubernetesDependentResource;
import io.quarkiverse.operatorsdk.annotations.AdditionalRBACRoleRefs;
Expand All @@ -25,6 +26,7 @@ private Constants() {
public static final DotName CUSTOM_RESOURCE = DotName.createSimple(CustomResource.class.getName());
public static final DotName HAS_METADATA = DotName.createSimple(HasMetadata.class.getName());
public static final DotName CONTROLLER_CONFIGURATION = DotName.createSimple(ControllerConfiguration.class.getName());
public static final DotName WORKFLOW = DotName.createSimple(Workflow.class.getName());
public static final DotName DEPENDENT_RESOURCE = DotName.createSimple(DependentResource.class.getName());
public static final DotName GENERIC_KUBERNETES_DEPENDENT_RESOURCE = DotName
.createSimple(GenericKubernetesDependentResource.class.getName());
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
package io.quarkiverse.operatorsdk.common;

import static io.quarkiverse.operatorsdk.common.Constants.CONTROLLER_CONFIGURATION;
import static io.quarkiverse.operatorsdk.common.Constants.CUSTOM_RESOURCE;
import static io.quarkiverse.operatorsdk.common.Constants.HAS_METADATA;
import static io.quarkiverse.operatorsdk.common.Constants.RECONCILER;
import static io.quarkiverse.operatorsdk.common.Constants.*;

import java.util.Collection;
import java.util.Collections;
Expand Down Expand Up @@ -48,10 +45,10 @@ protected void doAugment(IndexView index, Logger log, Map<String, Object> contex

// extract dependent information
final var reconciler = classInfo();
final var controllerAnnotation = reconciler.declaredAnnotation(CONTROLLER_CONFIGURATION);
final var workflow = reconciler.declaredAnnotation(WORKFLOW);
dependentResourceInfos = Collections.emptyList();
if (controllerAnnotation != null) {
final var dependents = controllerAnnotation.value("dependents");
if (workflow != null) {
final var dependents = workflow.value("dependents");
if (dependents != null) {
final var dependentAnnotations = dependents.asNestedArray();
var dependentResources = Collections.<String, DependentResourceAugmentedClassInfo> emptyMap();
Expand Down
4 changes: 2 additions & 2 deletions common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>io.quarkiverse.operatorsdk</groupId>
<artifactId>quarkus-operator-sdk-build-parent</artifactId>
<version>6.9.2-SNAPSHOT</version>
<version>7.0.0-SNAPSHOT</version>
<relativePath>../build-parent/pom.xml</relativePath>
</parent>

Expand All @@ -16,4 +16,4 @@
</dependency>
</dependencies>
<artifactId>quarkus-operator-sdk-common</artifactId>
</project>
</project>
2 changes: 1 addition & 1 deletion core/deployment/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>io.quarkiverse.operatorsdk</groupId>
<artifactId>quarkus-operator-sdk-core-parent</artifactId>
<version>6.9.2-SNAPSHOT</version>
<version>7.0.0-SNAPSHOT</version>
</parent>
<artifactId>quarkus-operator-sdk-deployment</artifactId>
<name>Quarkus - Operator SDK - Core - Deployment</name>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
import io.javaoperatorsdk.operator.processing.dependent.kubernetes.KubernetesDependentResource;
import io.javaoperatorsdk.operator.processing.dependent.kubernetes.KubernetesDependentResourceConfig;
import io.quarkiverse.operatorsdk.annotations.RBACVerbs;
import io.quarkiverse.operatorsdk.runtime.DependentResourceSpecMetadata;
import io.quarkiverse.operatorsdk.runtime.QuarkusControllerConfiguration;

public class AddClusterRolesDecorator extends ResourceProvidingDecorator<KubernetesListBuilder> {
Expand Down Expand Up @@ -106,10 +105,10 @@ private static String getKeyFor(PolicyRule rule) {
@SuppressWarnings("unchecked")
private static Set<PolicyRule> getClusterRolePolicyRulesFromDependentResources(QuarkusControllerConfiguration<?> cri) {
Set<PolicyRule> rules = new LinkedHashSet<>();
final Map<String, DependentResourceSpecMetadata<?, ?, ?>> dependentsMetadata = cri.getDependentsMetadata();
final var dependentsMetadata = cri.dependentsMetadata();
dependentsMetadata.forEach((name, spec) -> {
final var dependentResourceClass = spec.getDependentResourceClass();
final var associatedResourceClass = spec.getDependentType();
final var associatedResourceClass = spec.getResourceClass();

// only process Kubernetes dependents
if (HasMetadata.class.isAssignableFrom(associatedResourceClass)) {
Expand All @@ -136,7 +135,9 @@ private static Set<PolicyRule> getClusterRolePolicyRulesFromDependentResources(Q

// PATCH is also required when creating resources to add finalizers when using SSA
if (isCreator && cri.getConfigurationService().shouldUseSSA(asKubeDRClass, asHasMetadataClass,
(KubernetesDependentResourceConfig<? extends HasMetadata>) spec.getDependentResourceConfig())) {
(KubernetesDependentResourceConfig<? extends HasMetadata>) spec.getConfiguration()
.filter(KubernetesDependentResourceConfig.class::isInstance)
.orElse(null))) {
verbs.add(RBACVerbs.PATCH);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,23 +22,24 @@
import io.fabric8.kubernetes.api.model.rbac.RoleBindingBuilder;
import io.fabric8.kubernetes.api.model.rbac.RoleRef;
import io.fabric8.kubernetes.api.model.rbac.RoleRefBuilder;
import io.javaoperatorsdk.operator.api.config.informer.InformerConfiguration;
import io.quarkiverse.operatorsdk.runtime.BuildTimeOperatorConfiguration;
import io.quarkiverse.operatorsdk.runtime.QuarkusControllerConfiguration;

@SuppressWarnings("rawtypes")
public class AddRoleBindingsDecorator extends ResourceProvidingDecorator<KubernetesListBuilder> {

private static final Logger log = Logger.getLogger(AddRoleBindingsDecorator.class);
protected static final String RBAC_AUTHORIZATION_GROUP = "rbac.authorization.k8s.io";
public static final String CLUSTER_ROLE = "ClusterRole";
protected static final String RBAC_AUTHORIZATION_GROUP = "rbac.authorization.k8s.io";
public static final RoleRef CRD_VALIDATING_ROLE_REF = new RoleRef(RBAC_AUTHORIZATION_GROUP, CLUSTER_ROLE,
JOSDK_CRD_VALIDATING_CLUSTER_ROLE_NAME);
protected static final String SERVICE_ACCOUNT = "ServiceAccount";
private final Collection<QuarkusControllerConfiguration<?>> configs;
private final BuildTimeOperatorConfiguration operatorConfiguration;
private static final Logger log = Logger.getLogger(AddRoleBindingsDecorator.class);
private static final ConcurrentMap<QuarkusControllerConfiguration, List<HasMetadata>> cachedBindings = new ConcurrentHashMap<>();
private static final Optional<String> deployNamespace = ConfigProvider.getConfig()
.getOptionalValue("quarkus.kubernetes.namespace", String.class);
public static final RoleRef CRD_VALIDATING_ROLE_REF = new RoleRef(RBAC_AUTHORIZATION_GROUP, CLUSTER_ROLE,
JOSDK_CRD_VALIDATING_CLUSTER_ROLE_NAME);
private final Collection<QuarkusControllerConfiguration<?>> configs;
private final BuildTimeOperatorConfiguration operatorConfiguration;

public AddRoleBindingsDecorator(Collection<QuarkusControllerConfiguration<?>> configs,
BuildTimeOperatorConfiguration operatorConfiguration) {
Expand All @@ -60,7 +61,8 @@ private List<HasMetadata> bindingsFor(QuarkusControllerConfiguration<?> controll
final var controllerName = controllerConfiguration.getName();

// retrieve which namespaces should be used to generate either from annotation or from the build time configuration
final var desiredWatchedNamespaces = controllerConfiguration.getNamespaces();
final InformerConfiguration<?> informerConfig = controllerConfiguration.getInformerConfig();
final var desiredWatchedNamespaces = informerConfig.getNamespaces();

// if we validate the CRDs, also create a binding for the CRD validating role
List<HasMetadata> itemsToAdd;
Expand All @@ -75,7 +77,7 @@ private List<HasMetadata> bindingsFor(QuarkusControllerConfiguration<?> controll
}

final var roleBindingName = getRoleBindingName(controllerName);
if (controllerConfiguration.watchCurrentNamespace()) {
if (informerConfig.watchCurrentNamespace()) {
// create a RoleBinding that will be applied in the current namespace if watching only the current NS
itemsToAdd.add(createRoleBinding(roleBindingName, serviceAccountName, null,
createDefaultRoleRef(controllerName)));
Expand All @@ -85,7 +87,7 @@ private List<HasMetadata> bindingsFor(QuarkusControllerConfiguration<?> controll
final var specificRoleBindingName = getSpecificRoleBindingName(controllerName, roleRef);
itemsToAdd.add(createRoleBinding(specificRoleBindingName, serviceAccountName, null, roleRef));
});
} else if (controllerConfiguration.watchAllNamespaces()) {
} else if (informerConfig.watchAllNamespaces()) {
itemsToAdd.add(createClusterRoleBinding(serviceAccountName, controllerName,
getClusterRoleBindingName(controllerName), "watch all namespaces",
null));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ BuildTimeConfigurationServiceBuildItem createBuildTimeConfigurationService(Versi
buildTimeConfig.closeClientOnStop(),
buildTimeConfig.stopOnInformerErrorDuringStartup(),
buildTimeConfig.enableSSA(),
buildTimeConfig.activateLeaderElectionForProfiles());
buildTimeConfig.activateLeaderElectionForProfiles(),
buildTimeConfig.defensiveCloning());
return new BuildTimeConfigurationServiceBuildItem(service);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,17 @@
import io.quarkiverse.operatorsdk.common.Constants;
import io.quarkiverse.operatorsdk.common.ResourceAssociatedAugmentedClassInfo;
import io.quarkiverse.operatorsdk.deployment.devui.commands.ConsoleCommands;
import io.quarkiverse.operatorsdk.runtime.*;
import io.quarkiverse.operatorsdk.runtime.AppEventListener;
import io.quarkiverse.operatorsdk.runtime.BuildTimeOperatorConfiguration;
import io.quarkiverse.operatorsdk.runtime.ConfigurationServiceRecorder;
import io.quarkiverse.operatorsdk.runtime.KubernetesClientObjectMapperCustomizer;
import io.quarkiverse.operatorsdk.runtime.KubernetesClientSerializationCustomizer;
import io.quarkiverse.operatorsdk.runtime.NoOpMetricsProvider;
import io.quarkiverse.operatorsdk.runtime.OperatorHealthCheck;
import io.quarkiverse.operatorsdk.runtime.OperatorProducer;
import io.quarkiverse.operatorsdk.runtime.QuarkusConfigurationService;
import io.quarkiverse.operatorsdk.runtime.QuarkusControllerConfiguration;
import io.quarkiverse.operatorsdk.runtime.RunTimeOperatorConfiguration;
import io.quarkus.arc.deployment.AdditionalBeanBuildItem;
import io.quarkus.arc.deployment.SyntheticBeanBuildItem;
import io.quarkus.arc.deployment.UnremovableBeanBuildItem;
Expand All @@ -33,7 +43,12 @@
import io.quarkus.deployment.annotations.BuildStep;
import io.quarkus.deployment.annotations.ExecutionTime;
import io.quarkus.deployment.annotations.Record;
import io.quarkus.deployment.builditem.*;
import io.quarkus.deployment.builditem.AdditionalIndexedClassesBuildItem;
import io.quarkus.deployment.builditem.CombinedIndexBuildItem;
import io.quarkus.deployment.builditem.ConsoleCommandBuildItem;
import io.quarkus.deployment.builditem.FeatureBuildItem;
import io.quarkus.deployment.builditem.IndexDependencyBuildItem;
import io.quarkus.deployment.builditem.RunTimeConfigurationDefaultBuildItem;
import io.quarkus.deployment.builditem.nativeimage.ForceNonWeakReflectiveClassBuildItem;
import io.quarkus.deployment.builditem.nativeimage.ReflectiveHierarchyBuildItem;
import io.quarkus.deployment.metrics.MetricsCapabilityBuildItem;
Expand Down Expand Up @@ -235,7 +250,7 @@ void initializeRuntimeNamespacesFromBuildTimeValues(
ControllerConfigurationsBuildItem configurations,
BuildProducer<RunTimeConfigurationDefaultBuildItem> runtimeConfig) {
configurations.getControllerConfigs().forEach((name, configuration) -> {
final var namespaces = String.join(",", configuration.getNamespaces());
final var namespaces = String.join(",", configuration.getInformerConfig().getNamespaces());
runtimeConfig.produce(new RunTimeConfigurationDefaultBuildItem(
"quarkus.operator-sdk.controllers." + configuration.getName() + ".namespaces",
namespaces));
Expand Down
Loading
Loading