Class Utils
java.lang.Object
io.javaoperatorsdk.operator.sample.Utils
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringconfigMapName(WebPage nginx) static WebPageStatuscreateStatus(String configMapName) static WebPagecreateWebPageForStatusUpdate(WebPage webPage, 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 Details
-
createWebPageForStatusUpdate
-
createStatus
-
configMapName
-
deploymentName
-
serviceName
-
handleError
-
simulateErrorIfRequested
- Throws:
ErrorSimulationException
-
isValidHtml
-
setInvalidHtmlErrorMessage
-
makeDesiredIngress
public static io.fabric8.kubernetes.api.model.networking.v1.Ingress makeDesiredIngress(WebPage webPage)
-