model/RestartReason.java

strimzi-kafka-operator · cluster-operator/src/main/java/io/strimzi/operator/cluster/model/RestartReason.java · java · Apache-2.0
infra, Infra / DevOps

Enum listing all reasons a Kafka broker pod may need restarting, with human‑readable notes and PascalCase conversion for Kubernetes integration.

// Source: https://github.com/strimzi/strimzi-kafka-operator | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
/*
 * Copyright Strimzi authors.
 * License: Apache License 2.0 (see the file LICENSE or http://apache.org/licenses/LICENSE-2.0.html).
 */

package io.strimzi.operator.cluster.model;

import java.util.Locale;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

/**
 * Defines all the (existing) reasons a Kafka broker pod may need to be restarted
 */
public enum RestartReason {
    /**
     * CA has old generation
     */
    CA_CERT_HAS_OLD_GENERATION("CA cert has old generation"),

    /**
     * CA certificate has been removed
     */
    CA_CERT_REMOVED("CA c

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key