Class CustomServiceController
- java.lang.Object
-
- com.github.containersolutions.operator.sample.CustomServiceController
-
- All Implemented Interfaces:
com.github.containersolutions.operator.api.ResourceController<CustomService>
public class CustomServiceController extends java.lang.Object implements com.github.containersolutions.operator.api.ResourceController<CustomService>
A very simple sample controller that creates a service with a label.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringKIND
-
Constructor Summary
Constructors Constructor Description CustomServiceController(io.fabric8.kubernetes.client.KubernetesClient kubernetesClient)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Optional<CustomService>createOrUpdateResource(CustomService resource)booleandeleteResource(CustomService resource)
-
-
-
Field Detail
-
KIND
public static final java.lang.String KIND
- See Also:
- Constant Field Values
-
-
Method Detail
-
deleteResource
public boolean deleteResource(CustomService resource)
- Specified by:
deleteResourcein interfacecom.github.containersolutions.operator.api.ResourceController<CustomService>
-
createOrUpdateResource
public java.util.Optional<CustomService> createOrUpdateResource(CustomService resource)
- Specified by:
createOrUpdateResourcein interfacecom.github.containersolutions.operator.api.ResourceController<CustomService>
-
-