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

Improve kpt package (Kptfile) condition handling #300

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

kispaljr
Copy link
Contributor

@kispaljr kispaljr commented Jun 14, 2023

It also sorts the conditions in the Kptfile's status by type

@nephio-prow nephio-prow bot requested review from henderiw and tliron June 14, 2023 20:40
@kispaljr kispaljr requested review from johnbelamaric and removed request for tliron June 14, 2023 21:05
Copy link

@gvbalaji gvbalaji left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/approve

@nephio-prow
Copy link
Contributor

nephio-prow bot commented Jun 14, 2023

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: gvbalaji
Once this PR has been reviewed and has the lgtm label, please assign tliron for approval by writing /assign @tliron in a comment. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found 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

@johnbelamaric
Copy link
Member

@kispaljr this looks like it will fix the problem I worked around with https://github.com/GoogleContainerTools/kpt/pull/3990/files#diff-d81df890ed5e08ca074d2063624c3fbb25bfb1033030685dcd40799146e4356eR808, since it changes the output of those fields. I did also see the Kptfile "description" orderered differently between the Nephio and package variant controllers too, so I am not sure it will solve it completely.

I think we may want to hold off on this until after R1, unless we believe it is necessary for some other treason.

@kispaljr
Copy link
Contributor Author

kispaljr commented Jun 21, 2023

OK, let's not break things and wait until R1.
With this I intended to remove every piece of code from the SDK that rewrites the Kptfile resource. The only way I update the Kptfile is by directly modifying the list items under status.conditions, so in theory it shouldn't even touch anything outside that. But to be honest this should have been true for my previous attempt, as well, so if you've seen the description field changed by a KRM function then it probably means there is still a bug in the code.

@efiacor
Copy link
Contributor

efiacor commented Jan 15, 2024

Hi @kispaljr , is this change still relevant?

@kispaljr
Copy link
Contributor Author

Hi @kispaljr , is this change still relevant?

well, in order to answer that, I have to investigate if the problem that it tried to solve still exist or not.
We had a workaround on porch's side, but this would improve things on the kpt functions' side

@kispaljr
Copy link
Contributor Author

kispaljr commented Mar 1, 2024

Yes, this is still relevant, but the library itself changed considerably underneath.
I will rebase the code to the new library.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants