Class CustomServiceController
- java.lang.Object
-
- io.javaoperatorsdk.operator.sample.CustomServiceController
-
- All Implemented Interfaces:
ResourceController<CustomService>
public class CustomServiceController extends Object implements ResourceController<CustomService>
A very simple sample controller that creates a service with a label.
-
-
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 UpdateControl<CustomService>createOrUpdateResource(CustomService resource, Context<CustomService> context)DeleteControldeleteResource(CustomService resource, Context<CustomService> context)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.javaoperatorsdk.operator.api.ResourceController
init
-
-
-
-
Field Detail
-
KIND
public static final String KIND
- See Also:
- Constant Field Values
-
-
Method Detail
-
deleteResource
public DeleteControl deleteResource(CustomService resource, Context<CustomService> context)
- Specified by:
deleteResourcein interfaceResourceController<CustomService>
-
createOrUpdateResource
public UpdateControl<CustomService> createOrUpdateResource(CustomService resource, Context<CustomService> context)
- Specified by:
createOrUpdateResourcein interfaceResourceController<CustomService>
-
-