-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Add image push job for karpenter-cluster-api-provider #35802
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
maxcao13
wants to merge
1
commit into
kubernetes:master
Choose a base branch
from
maxcao13:karpenter-cluster-api-release-job
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+39
−0
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
39 changes: 39 additions & 0 deletions
39
config/jobs/image-pushing/k8s-staging-karpenter-cluster-api.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| postsubmits: | ||
| # This is the github repo we'll build from. This block needs to be repeated | ||
| # for each repo. | ||
| kubernetes-sigs/karpenter-provider-cluster-api: | ||
| # The name should be changed to match the repo name above | ||
| - name: post-karpenter-provider-cluster-api-push-images | ||
| cluster: k8s-infra-prow-build-trusted | ||
| annotations: | ||
| # This is the name of some testgrid dashboard to report to. | ||
| # If this is the first one for your sig, you may need to create one | ||
| testgrid-dashboards: sig-cluster-lifecycle-image-pushes, sig-k8s-infra-gcb | ||
| decorate: true | ||
| # this causes the job to only run on the master branch. Remove it if your | ||
| # job makes sense on every branch (unless it's setting a `latest` tag it | ||
| # probably does). | ||
| # if you remove it you must instead use the following: | ||
| #skip_branches: | ||
| # # do not run on dependabot branches, these exist prior to merge | ||
| # # only merged code should trigger these jobs | ||
| # - '^dependabot' | ||
| branches: | ||
| - ^main$ | ||
maxcao13 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| - ^release- | ||
| # Build semver tags, too | ||
| - ^v(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$ | ||
| spec: | ||
| serviceAccountName: gcb-builder | ||
| containers: | ||
| - image: gcr.io/k8s-staging-test-infra/image-builder:v20250914-3092127382 | ||
| command: | ||
| - /run.sh | ||
| args: | ||
| # this is the project GCB will run in, which is the same as the GCR | ||
| # images are pushed to. | ||
| - --project=k8s-staging-karpenter-cluster-api | ||
| # This is the same as above, but with -gcb appended. | ||
| - --scratch-bucket=gs://k8s-staging-karpenter-cluster-api-gcb | ||
| - --env-passthrough=PULL_BASE_REF | ||
| - . | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
you probably also want to include version tags, while the field says "branches", it's misnamed (... too late to easily fix), it really matches github push events, which includes also tags
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.
Fixed, added a line for semver tags :-) thanks.