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

refactor: Remove setters from kyaml #5291

Conversation

irvifa
Copy link
Member

@irvifa irvifa commented Aug 23, 2023

Kind:

Refactor

Summary:

Setters functionality is provided as a KRM function. We should remove code related to setters in cmd/config and kyaml. As of now most setters2 and setters usage are related to fork of kpt, however, these: fluxcd/image-automation-controller with kyml rancher/fleet with kyaml

Repositories still using them, They pinned these two into a specific kyaml version. If we decide to go for this removal then we can make a release note that this is actually removed on the next version since we already marked this as deprecated before.

Closes #4045

Kind:

Refactor

Summary:

Setters functionality is provided as a KRM function. We should remove code related to setters in cmd/config and kyaml.
As of now most setters2 and setters usage are related to fork of kpt, however, these:
[fluxcd/image-automation-controller](https://github.com/fluxcd/image-automation-controller/blob/6827808a1aa8c31ae0c05366db8e90c011f6ebd2/pkg/update/filter.go#L24) with [kyml](https://github.com/fluxcd/image-automation-controller/blob/6827808a1aa8c31ae0c05366db8e90c011f6ebd2/go.mod#L42)
[rancher/fleet](https://github.com/rancher/fleet/blob/0a6cf6cb9278d00e743e79ed1884b19e1bc6ec74/internal/cmd/controller/controllers/image/update/setters.go#L16) with [kyaml](https://github.com/rancher/fleet/blob/0a6cf6cb9278d00e743e79ed1884b19e1bc6ec74/go.mod#L75)

Repositories still using them, They pinned these two into a specific kyaml version. If we decide to go for this removal then we can make a release note that this is actually removed on the next version since we already marked this as deprecated before.
@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Aug 23, 2023
@irvifa
Copy link
Member Author

irvifa commented Aug 23, 2023

/assign

@natasha41575
Copy link
Contributor

natasha41575 commented Aug 23, 2023

A note on assignments, assignments on PRs are for reviewers, not for yourself. Please ask one of the reviewers in your area to see if any of them can assign this PR to themselves for review. I would recommend asking on slack.

@irvifa
Copy link
Member Author

irvifa commented Aug 24, 2023

@natasha41575 this should be you isn't it? at leas based on the owner list here

@natasha41575
Copy link
Contributor

natasha41575 commented Aug 24, 2023

this should be you isn't it? at leas based on the owner list

The process we're following is that you first need an LGTM from folks in the reviewer list, and I'll take a look when after that. That way more people get a chance to review PRs

@irvifa
Copy link
Member Author

irvifa commented Aug 25, 2023

/assign seh
/assign varshaprasad96
/assign koba1t

@k8s-ci-robot
Copy link
Contributor

@irvifa: GitHub didn't allow me to assign the following users: seh.

Note that only kubernetes-sigs members with read permissions, repo collaborators and people who have commented on this issue/PR can be assigned. Additionally, issues/PRs can only have 10 assignees at the same time.
For more information please see the contributor guide

In response to this:

/assign seh
/assign varshaprasad96
/assign koba1t

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@koba1t
Copy link
Member

koba1t commented Aug 31, 2023

@irvifa
Thanks!
Looks like almost good!

We already marked this as deprecated

So, Where do you find deprecated messages?
I couldn't find that and I think I need to check.

@irvifa
Copy link
Member Author

irvifa commented Aug 31, 2023

@koba1t You can see it here

@koba1t
Copy link
Member

koba1t commented Sep 1, 2023

You can see it #4045 (comment)

Thanks! I checked that.

@natasha41575
I'm wondering why we didn't add the Deprecated message for packages.
But I think this is a super internal use package, and We can delete it.

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Sep 1, 2023
@natasha41575
Copy link
Contributor

We already marked this as deprecated

The top-level kustomize commands related to setters were marked deprecated and removed, but this package that we are removing now was never marked deprecated.

I'm wondering why we didn't add the Deprecated message for packages.
But I think this is a super internal use package, and We can delete it.

@koba1t No particular reason. I think we just didn't think about it. But I agree, this is mostly an internal-use package and kyaml is in alpha so there is no obligation for us to go through an official deprecation process. Thanks for the review and LGTM, I'm moving this to Needs Approval and will try to take a look next week.

@natasha41575
Copy link
Contributor

/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: irvifa, natasha41575

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Sep 8, 2023
@k8s-ci-robot k8s-ci-robot merged commit 94181b1 into kubernetes-sigs:master Sep 8, 2023
5 checks passed
@irvifa irvifa deleted the refactor/remove-setters-config-from-kyaml branch October 7, 2023 13:47
squaremo added a commit to fluxcd/image-automation-controller that referenced this pull request Nov 20, 2023
The package setters2 has been removed from kustomize:
kubernetes-sigs/kustomize#5291

This commit removes the need to import setters2, by reproducing the
last link with that code, which is a minor parsing helper.

I have not changed the comment explaining what was changed from the
original, since it's still accurate. The parsing func is a buried
detail.

Signed-off-by: Michael Bridgen <[email protected]>
stefanprodan pushed a commit to fluxcd/image-automation-controller that referenced this pull request Nov 20, 2023
The package setters2 has been removed from kustomize:
kubernetes-sigs/kustomize#5291

This commit removes the need to import setters2, by reproducing the
last link with that code, which is a minor parsing helper.

I have not changed the comment explaining what was changed from the
original, since it's still accurate. The parsing func is a buried
detail.

Signed-off-by: Michael Bridgen <[email protected]>
souleb pushed a commit to souleb/image-automation-controller that referenced this pull request Mar 12, 2024
The package setters2 has been removed from kustomize:
kubernetes-sigs/kustomize#5291

This commit removes the need to import setters2, by reproducing the
last link with that code, which is a minor parsing helper.

I have not changed the comment explaining what was changed from the
original, since it's still accurate. The parsing func is a buried
detail.

Signed-off-by: Michael Bridgen <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.
Projects
Development

Successfully merging this pull request may close these issues.

Remove setters code from cmd/config and kyaml
5 participants