Skip to content

Commit

Permalink
AddNamespaceDecorator doesn't override already set namespaces
Browse files Browse the repository at this point in the history
Fixes #29809
  • Loading branch information
metacosm committed Dec 12, 2022
1 parent 78397f4 commit 14b8674
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -19,7 +19,9 @@ public AddNamespaceDecorator(String namespace) {

@Override
public void andThenVisit(ObjectMetaBuilder builder, ObjectMeta resourceMeta) {
builder.withNamespace(namespace);
if (!builder.hasNamespace()) {
builder.withNamespace(namespace);
}
}

@Override
Expand Down

0 comments on commit 14b8674

Please sign in to comment.