Class FlinkSessionJobObserver

    • Method Detail

      • isResourceReadyToBeObserved

        protected boolean isResourceReadyToBeObserved​(org.apache.flink.kubernetes.operator.api.FlinkSessionJob resource,
                                                      io.javaoperatorsdk.operator.api.reconciler.Context<?> context,
                                                      FlinkSessionJobObserverContext observerContext)
        Description copied from class: AbstractFlinkResourceObserver
        Check whether the resource should be observed. In certain states such as suspended applications or in-progress upgrades and rollbacks, observing is not necessary.
        Overrides:
        isResourceReadyToBeObserved in class AbstractFlinkResourceObserver<org.apache.flink.kubernetes.operator.api.FlinkSessionJob,​FlinkSessionJobObserverContext>
        Parameters:
        resource - Current resource
        context - Resource context
        observerContext - Observer context
        Returns:
        True if we should observe the resource
      • updateStatusToDeployedIfAlreadyUpgraded

        protected void updateStatusToDeployedIfAlreadyUpgraded​(org.apache.flink.kubernetes.operator.api.FlinkSessionJob flinkSessionJob,
                                                               io.javaoperatorsdk.operator.api.reconciler.Context<?> ctx,
                                                               FlinkSessionJobObserverContext observerContext)
        Description copied from class: AbstractFlinkResourceObserver
        Checks a resource that is currently in the UPGRADING state whether it was already deployed but we simply miss the status information. After comparing the target resource generation with the one from the possible deployment if they match we update the status to the already DEPLOYED state.
        Specified by:
        updateStatusToDeployedIfAlreadyUpgraded in class AbstractFlinkResourceObserver<org.apache.flink.kubernetes.operator.api.FlinkSessionJob,​FlinkSessionJobObserverContext>
        Parameters:
        flinkSessionJob - Flink resource.
        ctx - Context for resource.
        observerContext - Context for observer.