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

Updating makefiles so we can push staging images to gcr.io/k8s-staging/gmsa-webhook #59

Merged
merged 3 commits into from
Feb 16, 2022

Conversation

marosset
Copy link
Contributor

@marosset marosset commented Feb 16, 2022

Signed-off-by: Mark Rossetti marosset@microsoft.com

Updating our build files so we can push images to gcr.io/k8s-staging-gmsa-webhook from PROW jobs (which don't exist yet).
I'm adding make release-staging which will build and push the images to the staging repository.

Running make image_build and make image_push will continue to build/push images to sigwindowstools/k8s-windows-gmsa-webhook.

…g/gmsa-webhook

Signed-off-by: Mark Rossetti <marosset@microsoft.com>
@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Feb 16, 2022
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: marosset

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

@k8s-ci-robot k8s-ci-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Feb 16, 2022
@marosset
Copy link
Contributor Author

/assign @jsturtevant @phillipsj

@k8s-ci-robot
Copy link
Contributor

@marosset: GitHub didn't allow me to assign the following users: phillipsj.

Note that only kubernetes-sigs members, repo collaborators and people who have commented on this issue/PR can be assigned. Additionally, issues/PRs can only have 10 assignees at the same time.
For more information please see the contributor guide

In response to this:

/assign @jsturtevant @phillipsj

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.

@marosset
Copy link
Contributor Author

After this merges I will make a PROW job to build these images

- TAG=${_GIT_TAG}
- PULL_BASE_REF=${_PULL_BASE_REF}
args:
- cd admission-webhook && make release-staging
Copy link
Contributor

Choose a reason for hiding this comment

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

I am not familiar with the promotion flow here. This will push an image every time we merge a PR to main branch? Does the test-infra job then promote the image to the non-staging repository? How do we promote only on a tagged version?

We should run at least unit tests and one integration test before promoting.

Copy link
Contributor Author

@marosset marosset Feb 16, 2022

Choose a reason for hiding this comment

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

The test infra job triggers the workflow which pushes staging images to gcr.io/k8s-staging-gmsa-webhook.
We can configure the triggers for the test infra job but most of the jobs do run on every PR merge into main.

We don't have a workflow for promoting images at the moment.

Copy link
Contributor

Choose a reason for hiding this comment

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

my guess is we probably want the workflow for promoting image to trigger on tag pushes or pushes to release branches.

yes this makes sense.

So the workflow here is:

  • pr merges
  • Prow post submit job triggers the cloudbuild which pushes to staging repository
  • when we create tag image is promoted to official image (to be done in follow pr)

I guess we don't need the tests here then and looks like it common to simply build the image in the cloudbuild.yaml file but could we add a small section to the contributing readme so we have this documented?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

How about I add it to the release.md?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I filed #60 and will document the release process in another PR.
The current release process is just a template and does not even reflect the process for releasing images to the old dockerhub account :(

admission-webhook/Makefile Show resolved Hide resolved
@jsturtevant
Copy link
Contributor

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Feb 16, 2022
@k8s-ci-robot k8s-ci-robot merged commit c0b7114 into kubernetes-sigs:master Feb 16, 2022
@marosset marosset deleted the staging-image branch February 16, 2022 23:33
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. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants