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 support for symlinks and KEP metadata files #1706

Merged
merged 4 commits into from
Apr 22, 2020

Conversation

enj
Copy link
Member

@enj enj commented Apr 21, 2020

@kubernetes/enhancements-admins

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Apr 21, 2020
@k8s-ci-robot k8s-ci-robot added kind/kep Categorizes KEP tracking issues and PRs modifying the KEP directory sig/architecture Categorizes an issue or PR as relevant to SIG Architecture. sig/auth Categorizes an issue or PR as relevant to SIG Auth. labels Apr 21, 2020
@johnbelamaric johnbelamaric mentioned this pull request Apr 21, 2020
if err != nil {
return err
}
files = append(files, filepath.Join(dir, filepath.Dir(newLocation), kepMetadata))
Copy link
Member

Choose a reason for hiding this comment

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

Won't this result in running this multiple times on any kep.yaml that has a symlink for it's associated README.md? If we are only checking the metadata, I would think instead we would want to:

  1. ignore the symlink
  2. legacy KEP format, we need to check the file
  3. new KEP format, we need to verify a kep.yaml exists, and validate that file

Copy link
Member Author

Choose a reason for hiding this comment

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

I did this on purpose to make sure that when you create a symlink, you actually split the old file up correctly for the new format. Processing the kep.yaml files multiple times seems okay to me, the whole process takes a few seconds at most.

Presumably at some point we can remove the old symlinks and drop all of this code.

Copy link
Member

Choose a reason for hiding this comment

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

Yeah, when there is no error it's fine, when there is an error it's slightly annoying but that's not really a big deal.

We're going to be tweaking all of this code as we evolve the KEP management process, so I am OK with this for now.

@justaugustus
Copy link
Member

Thanks for this, @enj!
/lgtm
/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: enj, justaugustus

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 lgtm "Looks good to me", indicates that a PR is ready to be merged. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Apr 22, 2020
@k8s-ci-robot k8s-ci-robot merged commit 2aafcba into kubernetes:master Apr 22, 2020
@k8s-ci-robot k8s-ci-robot modified the milestones: keps-beta, v1.19 Apr 22, 2020
RomanBednar pushed a commit to RomanBednar/enhancements that referenced this pull request Nov 8, 2024
CONSOLE-4327: Add new API field to ConsolePlugin CRD for allowing additional CSP sources
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. kind/kep Categorizes KEP tracking issues and PRs modifying the KEP directory lgtm "Looks good to me", indicates that a PR is ready to be merged. sig/architecture Categorizes an issue or PR as relevant to SIG Architecture. sig/auth Categorizes an issue or PR as relevant to SIG Auth. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants