-
Notifications
You must be signed in to change notification settings - Fork 106
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
Automate re-run/abort permission based on OWNERS file #307
Comments
/kind feature |
But yeah, I think this is useful 👍 |
yes, sharding the config is definitely required here.
Very good point, the configuration will require some more thought |
That sounds expensive and problematic, would prow clone every repo and walk all the OWNERS files? How often? What about all of the periodic jobs that aren't necessarily linked to any particular repo? Is this only for postsubmits? |
Good point. I wasn't thinking about the Kubernetes instance there. The OpenShift instance already has a periodic job that syncs owners files from the respective repos into the respective prow config directories. In that case, it wouldn't come at any expense at all.
Again, the OpenShift instance includes the repo refs for periodics in the It is sounding like this feature may be better off to be downstream given these missing extra details that exist in OpenShift... |
Ah, yeah that's definitely not a standard aspect of Prow, hadn't seen that before. I don't think we'd want to build prow features that had a strong dependency on this.
That's just part of prow, BUT, it's entirely possible to run testing where you don't clone any repos. Kubernetes does this by having one periodic publishing builds and other periodics consuming those builds. I do think we need better ability to grant rerun permissions, FWIW. Not sure what a practical version of that looks like though. |
It is currently possible to configure permissions for users and teams to re-run or abort jobs based on the DefaultReRunAuthConfigs defined in the main prow config. This configuration is not sharded, so it cannot be split into the sharded repos' configurations. It also requires manual update to keep in sync with repo owners.
I propose that there be a new boolean field to dictate that users found in
OWNERS
files (possibly justapprovers
) be automatically, implicitly populated in the config for the respective repo. This would allow for re-run and abort privileges for all owners of the individual repo, and reduce support burden on theprow
maintaining team(s).The text was updated successfully, but these errors were encountered: