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

io.kestra.plugin.kubernetes.watchers.PodWatcher Maven / Gradle / Ivy

package io.kestra.plugin.kubernetes.watchers;

import io.fabric8.kubernetes.api.model.Pod;
import org.slf4j.Logger;

public class PodWatcher extends AbstractWatch {
    public PodWatcher(Logger logger) {
        super(logger);
    }

    protected String logContext(Pod resource) {
        return String.join(
            ", ",
            "Type: " + resource.getClass().getSimpleName(),
            "Namespace: " + resource.getMetadata().getNamespace(),
            "Name: " + resource.getMetadata().getName(),
            "Uid: " + resource.getMetadata().getUid(),
            "Phase: " + resource.getStatus().getPhase()
        );
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy