io.javaoperatorsdk.operator.sample.Tomcat Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tomcat-sample Show documentation
Show all versions of tomcat-sample Show documentation
Provisions Tomcat Pods and deploys Webapplications in them
package io.javaoperatorsdk.operator.sample;
import io.fabric8.kubernetes.client.CustomResource;
public class Tomcat extends CustomResource {
private TomcatSpec spec;
private TomcatStatus status;
public TomcatSpec getSpec() {
if (spec == null) {
spec = new TomcatSpec();
}
return spec;
}
public void setSpec(TomcatSpec spec) {
this.spec = spec;
}
public TomcatStatus getStatus() {
if (status == null) {
status = new TomcatStatus();
}
return status;
}
public void setStatus(TomcatStatus status) {
this.status = status;
}
}