Skip to content

Commit

Permalink
updating the apiVersion prior to any usage of the item
Browse files Browse the repository at this point in the history
  • Loading branch information
shawkins committed Feb 24, 2022
1 parent fd16688 commit 398b7f1
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -510,6 +510,7 @@ public R withItem(T item) {
// set the name, namespace, and item - not all operations are looking at the item for the name
// things like configMaps().load(...).watch(...) for example
item = correctNamespace(item);
updateApiVersion(item);
String itemNs = KubernetesResourceUtil.getNamespace(item);
OperationContext ctx = context.withName(KubernetesResourceUtil.getName(item)).withItem(item);
if (Utils.isNotNullOrEmpty(itemNs)) {
Expand Down

0 comments on commit 398b7f1

Please sign in to comment.