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

Kpt should use internal.config.kubernetes.io/* annotations #2478

Closed
mengqiy opened this issue Sep 3, 2021 · 8 comments
Closed

Kpt should use internal.config.kubernetes.io/* annotations #2478

mengqiy opened this issue Sep 3, 2021 · 8 comments
Assignees
Labels
area/fn-sdk Typescript SDK enhancement New feature or request size/L 4 day triaged Issue has been triaged by adding an `area/` label
Milestone

Comments

@mengqiy
Copy link
Contributor

mengqiy commented Sep 3, 2021

Kpt should use the annotations as specified in https://github.com/kubernetes-sigs/kustomize/blob/master/cmd/config/docs/api-conventions/functions-spec.md#internal-annotations.

For example, kpt currently use config.kubernetes.io/path but it should use internal.config.kubernetes.io/path.

@mengqiy mengqiy added the bug Something isn't working label Sep 3, 2021
@mengqiy mengqiy added this to the Q3-2021 milestone Sep 3, 2021
@mengqiy mengqiy self-assigned this Sep 3, 2021
@natasha41575
Copy link
Contributor

natasha41575 commented Sep 3, 2021

Issue on kustomize side: kubernetes-sigs/kustomize#4024

LMK if you plan to take care of it on both sides or I should still work on it. I'm guessing the fix will be in kyaml for both kpt and kustomize.

@mengqiy
Copy link
Contributor Author

mengqiy commented Sep 3, 2021

I will take a closer look

I'm guessing the fix will be in kyaml for both kpt and kustomize.

That's very likely to be the case.

@droot
Copy link
Contributor

droot commented Sep 7, 2021

The fix needs to be done in kyaml (common orchestrator layer) as part of kubernetes-sigs/kustomize#4024. @natasha41575 No plans to address this in the short term on kpt side yet.

@droot droot modified the milestones: Q3-2021, Q4-2021 Sep 7, 2021
@droot droot added enhancement New feature or request and removed bug Something isn't working labels Sep 7, 2021
@mengqiy mengqiy added the area/fn-sdk Typescript SDK label Sep 8, 2021
@mengqiy mengqiy modified the milestones: Q4-2021, Q3-2021 Sep 8, 2021
@mengqiy mengqiy added this to ToDo in kpt kanban board Sep 8, 2021
@mengqiy mengqiy assigned natasha41575 and unassigned mengqiy Sep 8, 2021
@mengqiy
Copy link
Contributor Author

mengqiy commented Sep 8, 2021

This has been confusing for contributors. We should fix it soon.
@natasha41575 Do you have cycle to fix this?
If we want to fix this in kyaml v0.11.*, it should add both config.kubernetes.io/* and internal.config.kubernetes.io/* annotations.
When we are ready to move to kyaml v0.12.0, we can remove the config.kubernetes.io/* annotation support.

@natasha41575
Copy link
Contributor

Do you have cycle to fix this?

Yes, I can take a look this sprint.

If we want to fix this in kyaml v0.11., it should add both config.kubernetes.io/ and internal.config.kubernetes.io/* annotations.

We should do this first, and after some time we can drop support for config.kubernetes.io/* and release 0.12.

@natasha41575 natasha41575 moved this from ToDo to In progress in kpt kanban board Sep 13, 2021
@natasha41575 natasha41575 added the size/L 4 day label Sep 17, 2021
@natasha41575
Copy link
Contributor

See kubernetes-sigs/kustomize#4190

@natasha41575
Copy link
Contributor

This is updated in kyaml v0.12.0. I will work on a PR to update kpt.

@mengqiy mengqiy moved this from In progress to In Review in kpt kanban board Sep 30, 2021
@droot droot added the triaged Issue has been triaged by adding an `area/` label label Oct 20, 2021
@droot
Copy link
Contributor

droot commented Nov 3, 2021

Closing since the PR has been merged.

@droot droot closed this as completed Nov 3, 2021
kpt kanban board automation moved this from In Review to Done Nov 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/fn-sdk Typescript SDK enhancement New feature or request size/L 4 day triaged Issue has been triaged by adding an `area/` label
Projects
Development

No branches or pull requests

3 participants