io.quarkiverse.operatorsdk.it.DependentDefiningReconciler Maven / Gradle / Ivy
package io.quarkiverse.operatorsdk.it;
import io.fabric8.kubernetes.api.model.ConfigMap;
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.dependent.Dependent;
// Note that this reconciler implementation and its dependents are not meant to be realistic but
// rather exercise some of the features
@ControllerConfiguration(name = DependentDefiningReconciler.NAME, dependents = {
@Dependent(type = ReadOnlyDependentResource.class, name = ReadOnlyDependentResource.NAME, readyPostcondition = ReadOnlyDependentResource.ReadOnlyReadyCondition.class),
@Dependent(type = CRUDDependentResource.class, name = "crud", dependsOn = "read-only")
})
public class DependentDefiningReconciler implements Reconciler {
public static final String NAME = "dependent";
@Override
public UpdateControl reconcile(ConfigMap configMap, Context context) {
return UpdateControl.noUpdate();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy