Class Utils
- java.lang.Object
-
- io.javaoperatorsdk.operator.sample.Utils
-
public class Utils extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringconfigMapName(WebPage nginx)static WebPageStatuscreateStatus(String configMapName)static StringdeploymentName(WebPage nginx)static io.javaoperatorsdk.operator.api.reconciler.ErrorStatusUpdateControl<WebPage>handleError(WebPage resource, Exception e)static booleanisValidHtml(WebPage webPage)static io.fabric8.kubernetes.api.model.networking.v1.IngressmakeDesiredIngress(WebPage webPage)static StringserviceName(WebPage webPage)static WebPagesetInvalidHtmlErrorMessage(WebPage webPage)static voidsimulateErrorIfRequested(WebPage webPage)
-
-
-
Method Detail
-
createStatus
public static WebPageStatus createStatus(String configMapName)
-
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)
-
makeDesiredIngress
public static io.fabric8.kubernetes.api.model.networking.v1.Ingress makeDesiredIngress(WebPage webPage)
-
-