Class CanaryResourceManager<CR extends AbstractFlinkResource<?,​?>>


  • public class CanaryResourceManager<CR extends AbstractFlinkResource<?,​?>>
    extends java.lang.Object
    Logic encapsulating canary tests.
    • Constructor Detail

      • CanaryResourceManager

        public CanaryResourceManager()
    • 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)