Skip to content

Commit

Permalink
Remove use of deprecated CustomResourceDefinition DSL in ApplyService
Browse files Browse the repository at this point in the history
Looks like I missed updating one entry of `client.customResourceDefinitions()`
in ApplyService. We should be using client.apiextensions() DSL
  • Loading branch information
rohanKanojia authored and manusa committed Jan 28, 2021
1 parent 73c79d8 commit 21fe746
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ public void applyCustomResourceDefinition(CustomResourceDefinition entity, Strin
} else {
if (isRecreateMode()) {
log.info("Deleting Custom Resource Definition: " + id);
kubernetesClient.customResourceDefinitions().withName(id).delete();
kubernetesClient.apiextensions().v1beta1().customResourceDefinitions().withName(id).delete();
doCreateCustomResourceDefinition(entity, sourceName);
} else {
doPatchEntity(old, entity, currentNamespace, sourceName);
Expand Down

0 comments on commit 21fe746

Please sign in to comment.