Class Utils

java.lang.Object
io.javaoperatorsdk.operator.sample.Utils

public class Utils extends Object
  • Method Details

    • createWebPageForStatusUpdate

      public static WebPage createWebPageForStatusUpdate(WebPage webPage, String configMapName)
    • createStatus

      public static WebPageStatus createStatus(String configMapName)
    • configMapName

      public static String configMapName(WebPage nginx)
    • deploymentName

      public static String deploymentName(WebPage nginx)
    • serviceName

      public static String serviceName(WebPage webPage)
    • handleError

      public static io.javaoperatorsdk.operator.api.reconciler.ErrorStatusUpdateControl<WebPage> handleError(WebPage resource, Exception e)
    • simulateErrorIfRequested

      public static void simulateErrorIfRequested(WebPage webPage) throws ErrorSimulationException
      Throws:
      ErrorSimulationException
    • isValidHtml

      public static boolean isValidHtml(WebPage webPage)
    • setInvalidHtmlErrorMessage

      public static WebPage setInvalidHtmlErrorMessage(WebPage webPage)
    • makeDesiredIngress

      public static io.fabric8.kubernetes.api.model.networking.v1.Ingress makeDesiredIngress(WebPage webPage)