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

✨ add new build for new k8s registry infra-prow #3362

Conversation

camilamacedo86
Copy link
Member

@camilamacedo86 camilamacedo86 commented Apr 22, 2023

Description

This PR moves the current implementation to build-legacy and adds a new directory to build the images for the new k8s registry within its infrastructure. More info: #3230

Closes: https://github.com/kubernetes-sigs/kubebuilder/pull/3246/files

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: camilamacedo86

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 cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. 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 Apr 22, 2023
env:
- "KUBE_RBAC_PROXY_VERSION=${_KUBE_RBAC_PROXY_VERSION}"
entrypoint: "/usr/bin/env"
args: ["bash", "-c", "./build/build.sh"]
images: ["gcr.io/kubebuilder/kube-rbac-proxy:${_KUBE_RBAC_PROXY_VERSION}"]
images: ["gcr.io/k8s-staging-kubebuilder/kube-rbac-proxy:${_KUBE_RBAC_PROXY_VERSION}"]
Copy link
Member Author

@camilamacedo86 camilamacedo86 Apr 22, 2023

Choose a reason for hiding this comment

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

Hi @rikatz,

See that I just changed the step name and image to be built.
Is that right? We need to:

c/c @varshaprasad96 @yashsingh74

Copy link
Contributor

Choose a reason for hiding this comment

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

almost 100% :)
(and I am almost 100% sure on what I am saying!)

the one thing that we do in ingress is to do the push from the build script, and not from the cloudbuild job.

Take a look in https://github.com/kubernetes/ingress-nginx/blob/main/cloudbuild.yaml#L17-L21

We need a credential to push the image (so this is the gcloud auth ....) and after this, the container is able to push images, so our release just calls "docker buildx" to build the image and push it:

https://github.com/kubernetes/ingress-nginx/blob/main/Makefile#L235

The thing to be clear here is:

Anyway, we can get that PR on test-infra merged, and test the things from this branch later. it is a staging repo anyway :D

Copy link
Member Author

Choose a reason for hiding this comment

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

We use the image to re-tag it see gcr.io/kubebuilder/kube-rbac-proxy the above one. So, I don't know how we would use it anymore. Maybe I am missing something.

See that we download quay.io/brancz/kube-rbac-proxy from https://github.com/brancz/kube-rbac-proxy and then rebuild it with a new tag so that we can store that.

Copy link
Member

Choose a reason for hiding this comment

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

The images field is not required but can be useful to explicitly declare the name of the image(s) you want to build.

@camilamacedo86
Copy link
Member Author

I will move forward here for we are able to continue this work and test how that will be generated there in the prow using the new registry so that we can shape it better in a follow up if we need to.

c/c @varshaprasad96 @everettraven

@camilamacedo86 camilamacedo86 added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jun 14, 2023
@k8s-ci-robot k8s-ci-robot merged commit 658d6c2 into kubernetes-sigs:kube-rbac-proxy-releases Jun 14, 2023
1 check passed
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.

None yet

4 participants