Class CanaryResourceManager<CR extends AbstractFlinkResource<?,?>>
- java.lang.Object
-
- org.apache.flink.kubernetes.operator.health.CanaryResourceManager<CR>
-
public class CanaryResourceManager<CR extends AbstractFlinkResource<?,?>> extends java.lang.Object
Logic encapsulating canary tests.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
CANARY_LABEL
-
Constructor Summary
Constructors Constructor Description CanaryResourceManager()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
allCanariesHealthy()
protected void
checkHealth(io.javaoperatorsdk.operator.processing.event.ResourceID resourceID, io.fabric8.kubernetes.client.KubernetesClient client)
int
getNumberOfActiveCanaries()
boolean
handleCanaryResourceDeletion(CR resource)
boolean
handleCanaryResourceReconciliation(CR resource, io.fabric8.kubernetes.client.KubernetesClient client)
static boolean
isCanaryResource(io.fabric8.kubernetes.api.model.HasMetadata resource)
-
-
-
Field Detail
-
CANARY_LABEL
public static final java.lang.String CANARY_LABEL
- See Also:
- Constant Field Values
-
-
Method Detail
-
allCanariesHealthy
public boolean allCanariesHealthy()
-
handleCanaryResourceReconciliation
public boolean handleCanaryResourceReconciliation(CR resource, io.fabric8.kubernetes.client.KubernetesClient client)
-
handleCanaryResourceDeletion
public boolean handleCanaryResourceDeletion(CR resource)
-
checkHealth
@VisibleForTesting protected void checkHealth(io.javaoperatorsdk.operator.processing.event.ResourceID resourceID, io.fabric8.kubernetes.client.KubernetesClient client)
-
getNumberOfActiveCanaries
@VisibleForTesting public int getNumberOfActiveCanaries()
-
isCanaryResource
public static boolean isCanaryResource(io.fabric8.kubernetes.api.model.HasMetadata resource)
-
-