-
Notifications
You must be signed in to change notification settings - Fork 210
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
How to use with branch protection? #33
Comments
Beat me to it. I intend to raise a PR to the autoscaler repo's workflows to work around as above for now, but would love to be able to return to using the official action. |
@gjtempleton please keep us updated on what your workarounds are! I would love to continue using this official Helm action if possible, but the automated git push will cause it to fail (I think) |
Pushing to the |
I started working on this. |
Now that GitHub allows pages to build and deploy from any branch (no longer just This would also allow for the OP's use case where the GitHub pages branch is branch protected requiring PR review rules. For this use case, users could create a non-protected branch (example: I'm suggesting this in the action because |
Both comments are reasonable:
|
@scottrigby It's true that I think we should bake that functionality into |
Both sound like great improvements to the action, though for our use case we would prefer the PR option (since every branch in the Kubernetes org needs to have branch protection, the option to use a different branch won't solve our problem). Thanks for working on this! |
@damemi In order to create a PR, you need to push to a branch first. How would you do this, if every branch is protected? |
@unguiculus that's a good question, and I actually didn't think of that (my mistake). But based on what they're trying in autoscaler, the branch becomes protected after the first push, so pushing to a new branch isn't a problem like I thought. |
@damemi it looks like the descheduler chart release is working correctly without the (undocumented) |
@stevehipwell I have been manually modifying the branch protection to allow for the release to run. getting the release to run automatically (with branch protection) is still a TODO for us. is the |
@damemi I opened kubernetes/test-infra#24222 to fix this for External DNS and Metrics Server. |
@stevehipwell oh awesome, thanks for the tip! I'll give that a try |
@damemi you're welcome. |
We have tried enabling this action in https://github.com/kubernetes-sigs/descheduler (see kubernetes-sigs/descheduler#298), but run into the problem that
gh-pages
has branch protection enabled (to verify the linuxfoundation CLA check).This check is required for all Kubernetes repositories. Other projects have also hit this problem (kubernetes/autoscaler#3393 (comment)). As shown in that comment, this can be addressed by using 3rd party chart-releaser actions and taking steps like having them open PRs.
However given that this is the official chart-releaser action it should be usable by Kubernetes projects rather than having to rely on 3rd party scripts. Is there a way to configure this to work with branch protection?
If not, I believe one fix would be to update this action to optionally decouple the actual Git push (which is baked into the action) so that it can be replaced with a more configurable Pull Request action (like here, which is using a 3rd party action: https://github.com/kubernetes/dashboard/pull/5311/files#diff-29eba779142f216406df01a921ea49c3R59-R66)
The text was updated successfully, but these errors were encountered: