Skip to content

Add a workflow to automate config connector release bundle creation #3595

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

xiaoweim
Copy link
Collaborator

@xiaoweim xiaoweim commented Feb 4, 2025

Change description

Add a workflow to automate release bundle creation on every git tag version push. (version starts with a "v")

TODO: we should restrict the users that can do git push tag.

Tests you have done

Tested the workflow: https://github.com/GoogleCloudPlatform/k8s-config-connector/actions/runs/13146252562/job/36684918680?pr=3595

  • Run make ready-pr to ensure this PR is ready for review.
  • Perform necessary E2E testing for changed resources.

@xiaoweim xiaoweim changed the title [WIP]Add a workflow to automate config connector release bundle creation [WIP] Add a workflow to automate config connector release bundle creation Feb 4, 2025
@xiaoweim xiaoweim force-pushed the automate_release_bundle branch 8 times, most recently from 1355c5e to c0d9546 Compare February 4, 2025 22:51
@xiaoweim xiaoweim changed the title [WIP] Add a workflow to automate config connector release bundle creation Add a workflow to automate config connector release bundle creation Feb 4, 2025
@xiaoweim
Copy link
Collaborator Author

xiaoweim commented Feb 4, 2025

/assign @yuwenma

Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please ask for approval from yuwenma. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found 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

@@ -18,6 +18,6 @@ commonLabels:
commonAnnotations:
cnrm.cloud.google.com/operator-version: "1.128.0"
resources:
- crds.yaml
Copy link
Collaborator

Choose a reason for hiding this comment

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

Have you tried this in 1.128 release? Mostly I want to make sure if the manager's image is updated to 1.128 (currently it depends on some temporary kustomize patch file).

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

For the release script, I have added the correct operator image when generating the manager_image_patch_template.yaml, so the image in the statefulset is updated to the right version.

on:
push:
tags:
- 'v*'
Copy link
Collaborator

Choose a reason for hiding this comment

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

can we change this to only match semver2?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Sure, I can add expression format for standard versions. I think we do not have to trigger release bundle build for pre-release versions like v1.0.0-alpha.1, v2.0.0-beta.1, v1.0.0-rc.1.

@xiaoweim xiaoweim force-pushed the automate_release_bundle branch from 2b489cb to 7a0bf64 Compare February 11, 2025 21:45
@@ -18,6 +18,6 @@ commonLabels:
commonAnnotations:
cnrm.cloud.google.com/operator-version: "1.128.0"
resources:
- crds.yaml
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

For the release script, I have added the correct operator image when generating the manager_image_patch_template.yaml, so the image in the statefulset is updated to the right version.

on:
push:
tags:
- 'v*'
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Sure, I can add expression format for standard versions. I think we do not have to trigger release bundle build for pre-release versions like v1.0.0-alpha.1, v2.0.0-beta.1, v1.0.0-rc.1.

@xiaoweim xiaoweim force-pushed the automate_release_bundle branch from 7a0bf64 to 1fea0bb Compare March 11, 2025 00:17
@xiaoweim xiaoweim force-pushed the automate_release_bundle branch 2 times, most recently from 4cb5edd to 28e2e2e Compare March 11, 2025 20:58
@xiaoweim xiaoweim force-pushed the automate_release_bundle branch from 28e2e2e to 3c0e661 Compare May 15, 2025 18:39
@xiaoweim xiaoweim force-pushed the automate_release_bundle branch from 3c0e661 to 0a75d3b Compare May 15, 2025 20:10
Copy link
Collaborator

@yuwenma yuwenma left a comment

Choose a reason for hiding this comment

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

/hold

The code itself looks good but we cannot merge it now because everyone has permission to "create the release bundle" by pushing a trigger (git tag). @xiaoweim Could you share the overall plan on how to deal with this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants