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

✨ Added generic-autobumper to update all prow images #632

Conversation

peppi-lotta
Copy link
Member

@peppi-lotta peppi-lotta commented Feb 5, 2024

Added automatic bumper to update all prow images to make developers lives easier. I've implemented the prow Prow generic-autobumper to achieve this. A prow job was defined to periodically(once a day) look for new images. When new images are found the auto bumper makes new a new pull request which can then just be approved.

Once this is proven to work the current implementation for image updating can be removed. (This means the image list in prow/manifests/overlays/metal3/kustomizatin.yaml)

@metal3-io-bot metal3-io-bot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Feb 5, 2024
@peppi-lotta peppi-lotta changed the title ✨ Added generic-autobumper to update all prow images ✨ Added generic-autobumper to update all prow images Feb 5, 2024
@peppi-lotta peppi-lotta changed the title ✨ Added generic-autobumper to update all prow images ✨ Added generic-autobumper to update all prow images Feb 5, 2024
Copy link
Member

@tuminoid tuminoid left a comment

Choose a reason for hiding this comment

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

Nice improvement!

Minor formatting nits. Please also add some more documentation, and links to the PR description as well and some expected behavior etc.

@peppi-lotta peppi-lotta force-pushed the feature/general-autobumper-for-prow_PEPPI branch from fee04e6 to 6287131 Compare February 6, 2024 07:51
Copy link
Member

@tuminoid tuminoid left a comment

Choose a reason for hiding this comment

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

/approve
/cc @lentzi90
/hold
I assume we will run this in the cluster first, and then merge when its working.

@metal3-io-bot metal3-io-bot added do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Feb 6, 2024
@@ -37,6 +38,10 @@ configMapGenerator:
- labels.yaml
name: label-config
namespace: prow
- files:
- config.yaml=external-plugins/generic-autobumper-deployment.yaml
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
- config.yaml=external-plugins/generic-autobumper-deployment.yaml
- config.yaml=external-plugins/generic-autobumper-config.yaml

Comment on lines 34 to 35
ports:
- containerPort: 8888
Copy link
Member

Choose a reason for hiding this comment

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

We can remove this as it should not be listening on any ports

Suggested change
ports:
- containerPort: 8888

@peppi-lotta peppi-lotta force-pushed the feature/general-autobumper-for-prow_PEPPI branch from 6bc9613 to 3e4c4e5 Compare February 6, 2024 09:23
@peppi-lotta peppi-lotta marked this pull request as draft February 6, 2024 09:24
@metal3-io-bot metal3-io-bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Feb 6, 2024
@peppi-lotta peppi-lotta force-pushed the feature/general-autobumper-for-prow_PEPPI branch from ac6eac3 to 61733b5 Compare February 6, 2024 09:32
@peppi-lotta peppi-lotta marked this pull request as ready for review February 6, 2024 09:47
@metal3-io-bot metal3-io-bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Feb 6, 2024
Comment on lines 332 to 334
- name: config
configMap:
name: generic-autobumper-config
Copy link
Member

Choose a reason for hiding this comment

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

We can skip this since we anyway have the whole repository cloned, so we can just set the path to the config file within the repository

Comment on lines 319 to 320
- --labels-override=skip-review
- --skip-if-no-oncall
Copy link
Member

Choose a reason for hiding this comment

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

I think we should remove these. We do not have any on-call configured and I think the normal review flow should work fine

Suggested change
- --labels-override=skip-review
- --skip-if-no-oncall

@@ -301,6 +301,37 @@ periodics:
- name: token
secret:
secretName: github-token
- name: autobump-prow-images
interval: 24h
cluster: prow
Copy link
Member

Choose a reason for hiding this comment

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

We only have one cluster (I think it is called default) but no need to specify anything here

Suggested change
cluster: prow

@peppi-lotta peppi-lotta force-pushed the feature/general-autobumper-for-prow_PEPPI branch from dd91d28 to 8d7c2da Compare February 6, 2024 13:44
Signed-off-by: peppi-lotta <peppi-lotta.saari@est.tech>
@peppi-lotta peppi-lotta force-pushed the feature/general-autobumper-for-prow_PEPPI branch from 8d7c2da to 27f4077 Compare February 6, 2024 13:45
Copy link
Member

@lentzi90 lentzi90 left a comment

Choose a reason for hiding this comment

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

/approve
Great job!

@tuminoid
Copy link
Member

tuminoid commented Feb 7, 2024

/test-ubuntu-integration-main
Random test, ignore

Copy link
Member

@Rozzii Rozzii left a comment

Choose a reason for hiding this comment

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

/hold cancel
/lgtm

@metal3-io-bot metal3-io-bot added lgtm Indicates that a PR is ready to be merged. and removed do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. labels Feb 8, 2024
@metal3-io-bot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: lentzi90, Rozzii, tuminoid

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

@metal3-io-bot metal3-io-bot merged commit d26df84 into metal3-io:main Feb 8, 2024
5 checks passed
@metal3-io-bot
Copy link
Collaborator

@peppi-lotta: Updated the config configmap in namespace prow at cluster default using the following files:

  • key config.yaml using file prow/manifests/overlays/metal3/config.yaml

In response to this:

Added automatic bumper to update all prow images to make developers lives easier. I've implemented the prow Prow generic-autobumper to achieve this. A prow job was defined to periodically(once a day) look for new images. When new images are found the auto bumper makes new a new pull request which can then just be approved.

Once this is proven to work the current implementation for image updating can be removed. (This means the image list in prow/manifests/overlays/metal3/kustomizatin.yaml)

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@peppi-lotta peppi-lotta deleted the feature/general-autobumper-for-prow_PEPPI branch February 9, 2024 07:24
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. lgtm Indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants