Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set-namespace should not modify CustomResourceDefinition if spec.conversion.strategy is unset. #3837

Open
yuwenma opened this issue Feb 22, 2023 · 3 comments
Assignees
Labels
area/fn-catalog Functions Catalog bug Something isn't working triaged Issue has been triaged by adding an `area/` label

Comments

@yuwenma
Copy link
Contributor

yuwenma commented Feb 22, 2023

Expected behavior

Run gcr.io/kpt-fn/set-namespace:unstable against CustomResourceDefinition resource, we expect the spec.conversion.webhook.clientConfig.service.namespace to only be updated if the conversion.strategy is "webhook" (required)

Actual behavior

No matter what the strategy is, set-ns always update the webhook.clientConfig.service.namespace

@yuwenma yuwenma added bug Something isn't working area/fn-catalog Functions Catalog triaged Issue has been triaged by adding an `area/` label labels Feb 22, 2023
@yuwenma yuwenma self-assigned this Feb 22, 2023
@johnbelamaric
Copy link
Contributor

Isn't this a duplicate of #3560 ? (which should say set-namespace in the title, which may be why it got duped...)

@yuwenma
Copy link
Contributor Author

yuwenma commented Feb 22, 2023

Isn't this a duplicate of #3560 ? (which should say set-namespace in the title, which may be why it got duped...)

Ah, Yes! I was in the impression of seeing such a bug report but really can't find it so I decide to file it myself.

@shashidhar-patil
Copy link

Is there a fix for it ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/fn-catalog Functions Catalog bug Something isn't working triaged Issue has been triaged by adding an `area/` label
Projects
None yet
Development

No branches or pull requests

3 participants