We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ed7144 commit b800141Copy full SHA for b800141
samples/common/src/main/java/io/javaoperatorsdk/operator/sample/CustomServiceController.java
@@ -32,7 +32,7 @@ public CustomServiceController(KubernetesClient kubernetesClient) {
32
public boolean deleteResource(CustomService resource, Context<CustomService> context) {
33
log.info("Execution deleteResource for: {}", resource.getMetadata().getName());
34
kubernetesClient.services().inNamespace(resource.getMetadata().getNamespace())
35
- .withName(resource.getMetadata().getName()).delete();
+ .withName(resource.getSpec().getName()).delete();
36
return true;
37
}
38
0 commit comments