-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Conversation
Signed-off-by: Monis Khan <[email protected]>
Signed-off-by: Monis Khan <[email protected]>
Signed-off-by: Monis Khan <[email protected]>
Signed-off-by: Monis Khan <[email protected]>
if err != nil { | ||
return err | ||
} | ||
files = append(files, filepath.Join(dir, filepath.Dir(newLocation), kepMetadata)) |
There was a problem hiding this comment.
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:
- ignore the symlink
- legacy KEP format, we need to check the file
- new KEP format, we need to verify a
kep.yaml
exists, and validate that file
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
Thanks for this, @enj! |
[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 |
CONSOLE-4327: Add new API field to ConsolePlugin CRD for allowing additional CSP sources
@kubernetes/enhancements-admins