All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.quarkiverse.operatorsdk.it.NamespaceFromEnvReconciler Maven / Gradle / Ivy

package io.quarkiverse.operatorsdk.it;

import io.fabric8.kubernetes.api.model.Pod;
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;

@ControllerConfiguration(name = NamespaceFromEnvReconciler.NAME, namespaces = { "static",
        "${" + NamespaceFromEnvReconciler.ENV_VAR_NAME + "}" })
public class NamespaceFromEnvReconciler implements Reconciler {
    public static final String NAME = "fromenv";
    public static final String ENV_VAR_NAME = "NAMESPACE_FROM_ENV";
    static final String FROM_ENV_VAR_NS = "fromEnvVarNS";

    @Override
    public UpdateControl reconcile(Pod pod, Context context) throws Exception {
        return UpdateControl.noUpdate();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy