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

Add types and proposal for k8s to kyaml migration. #2886

Merged
merged 1 commit into from
Aug 24, 2020

Conversation

monopole
Copy link
Contributor

@monopole monopole commented Aug 24, 2020

In service of #1500 and #2506
Purpose of PR is defined in the header comment to api/krusty/internal/provider/depprovider.go

tl/dr: introduce a flag --enable_kyaml, which when true, switches all remaining code paths
from k8s.io/api* packages to kyaml packages. The methods on the kyaml side that still
need implementations are marked with TODO. I think this is an upper-bound on the work.
I'll look into dropping some features to reduce the size of the API surface that needs
implementation (especially the vars feature and the ReplacementTransformer).

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Aug 24, 2020
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: monopole

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 approved Indicates a PR has been approved by an approver from all required OWNERS files. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. labels Aug 24, 2020
@monopole monopole requested review from pwittrock and removed request for mortent and phanimarupaka August 24, 2020 03:28
@monopole monopole changed the title Add types and proposal to complete migration to kyaml. Add types and proposal for k8s to kyaml migration. Aug 24, 2020
"sigs.k8s.io/kustomize/api/resource"
)

// DepProvider is a dependency provider.
Copy link
Contributor

Choose a reason for hiding this comment

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

Love the docs here :)

@pwittrock
Copy link
Contributor

So close! This is going to be great when kubectl and use the latest kustomize.

@pwittrock
Copy link
Contributor

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Aug 24, 2020
@k8s-ci-robot k8s-ci-robot merged commit a2e080b into kubernetes-sigs:master Aug 24, 2020
@monopole
Copy link
Contributor Author

Thanks Phil.

I'm pining for a code base built on a decent dependency injection framework. :)

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/XL Denotes a PR that changes 500-999 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants