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 ARG for base image customization #738

Merged
merged 1 commit into from
May 16, 2024
Merged

Add ARG for base image customization #738

merged 1 commit into from
May 16, 2024

Conversation

jgu17
Copy link
Contributor

@jgu17 jgu17 commented May 14, 2024

Add ARG to define the base image parameters so a downstream pipeline can override which the base golang image to use when building container images.

@k8s-ci-robot k8s-ci-robot added the do-not-merge/release-note-label-needed Indicates that a PR should not merge because it's missing one of the release note labels. label May 14, 2024
Copy link

linux-foundation-easycla bot commented May 14, 2024

CLA Signed

The committers listed above are authorized under a signed CLA.

@k8s-ci-robot k8s-ci-robot added the cncf-cla: no Indicates the PR's author has not signed the CNCF CLA. label May 14, 2024
@k8s-ci-robot
Copy link
Contributor

Welcome @jgu17!

It looks like this is your first PR to kubernetes-sigs/scheduler-plugins 🎉. Please refer to our pull request process documentation to help your PR have a smooth ride to approval.

You will be prompted by a bot to use commands during the review process. Do not be afraid to follow the prompts! It is okay to experiment. Here is the bot commands documentation.

You can also check if kubernetes-sigs/scheduler-plugins has its own contribution guidelines.

You may want to refer to our testing guide if you run into trouble with your tests not passing.

If you are having difficulty getting your pull request seen, please follow the recommended escalation practices. Also, for tips and tricks in the contribution process you may want to read the Kubernetes contributor cheat sheet. We want to make sure your contribution gets all the attention it needs!

Thank you, and welcome to Kubernetes. 😃

@k8s-ci-robot k8s-ci-robot added the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label May 14, 2024
@k8s-ci-robot
Copy link
Contributor

Hi @jgu17. Thanks for your PR.

I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

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-sigs/prow repository.

@k8s-ci-robot k8s-ci-robot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label May 14, 2024
Copy link

netlify bot commented May 14, 2024

Deploy Preview for kubernetes-sigs-scheduler-plugins canceled.

Name Link
🔨 Latest commit 4a00cfd
🔍 Latest deploy log https://app.netlify.com/sites/kubernetes-sigs-scheduler-plugins/deploys/66455d64e0165b000866350d

build/controller/Dockerfile Outdated Show resolved Hide resolved
build/scheduler/Dockerfile Outdated Show resolved Hide resolved
@Huang-Wei
Copy link
Contributor

Thanks for the contribution @jgu17 . Could you sign the CLA?

@Huang-Wei
Copy link
Contributor

/ok-to-test

@k8s-ci-robot k8s-ci-robot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels May 14, 2024
@jgu17
Copy link
Contributor Author

jgu17 commented May 14, 2024

Thanks for the contribution @jgu17 . Could you sign the CLA?

Done

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. and removed cncf-cla: no Indicates the PR's author has not signed the CNCF CLA. labels May 15, 2024
@jgu17
Copy link
Contributor Author

jgu17 commented May 15, 2024

/release-note-none

@k8s-ci-robot k8s-ci-robot added release-note-none Denotes a PR that doesn't merit a release note. and removed do-not-merge/release-note-label-needed Indicates that a PR should not merge because it's missing one of the release note labels. labels May 15, 2024
hack/build-images.sh Outdated Show resolved Hide resolved
hack/build-images.sh Outdated Show resolved Hide resolved
Makefile Outdated
Comment on lines 95 to 96
GO_BASE_IMAGE=$(GO_BASE_IMAGE) \
ALPINE_BASE_IMAGE=$(ALPINE_BASE_IMAGE) \
Copy link
Contributor

Choose a reason for hiding this comment

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

could you keep it consistent to use /t instead of spaces here? (Makefile sometimes is strict on using tabs.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good catch. Copy and paste in the vi editor changed the /t to spaces. Fixed.

Copy link
Contributor

@Huang-Wei Huang-Wei left a comment

Choose a reason for hiding this comment

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

/lgtm
/approve

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label May 16, 2024
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Huang-Wei, jgu17

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 the approved Indicates a PR has been approved by an approver from all required OWNERS files. label May 16, 2024
@k8s-ci-robot k8s-ci-robot merged commit e72cb4d into kubernetes-sigs:master May 16, 2024
10 checks passed
@jgu17
Copy link
Contributor Author

jgu17 commented May 16, 2024

@Huang-Wei Appreciate the approval! Do you know if there is a schedule for the next release? We would like to be able to build an image based on release tag using customized base images as soon as possible. What would you suggest, is there a hot fix process to port it back to the last release for example, if the new release schedule is still tbd?

@Huang-Wei
Copy link
Contributor

The next release is usually current release + 3 months.

We would like to be able to build an image based on release tag using customized base images as soon as possible.

for which release, and which base image? and may I know the reason?

What would you suggest, is there a hot fix process to port it back to the last release for example

It will depend on the severity of the thing we need to fix. Could you elaborate on your use case?

@Huang-Wei
Copy link
Contributor

Actually post each PR's merge, there are jobs running image building: https://testgrid.k8s.io/sig-scheduling#post-scheduler-plugins-push-images. For example, the build image based latest master commit is: gcr.io/k8s-staging-scheduler-plugins/kube-scheduler@sha256:6992147099ab0208aac1581d10c3c76ac51a85ebeca1da9d1c4d86ed14278024

@jgu17
Copy link
Contributor Author

jgu17 commented May 16, 2024

The next release is usually current release + 3 months.

We would like to be able to build an image based on release tag using customized base images as soon as possible.

for which release, and which base image? and may I know the reason?

What would you suggest, is there a hot fix process to port it back to the last release for example

It will depend on the severity of the thing we need to fix. Could you elaborate on your use case?

We used to have a forked downstream repo for scheduler-plugins and we would like to eliminate the forked repo, and contribute to and consume directly from the k8s-sig project. We are creating downstream pipelines that build container images from a mirrored repo from this scheduler-plugins repo and needs to overwrite the default base images in the Docker files with base images from a different registry that has additional built-in security mechanism and/or different linux distro. The pipeline is triggered by release tags in the upstream scheduler-plugins repo. The first build will be based off the last upstream release 0.28.9.

@Huang-Wei
Copy link
Contributor

Gotcha. Do you need me to port this back to release-1.28 and then cut a new tag?

@jgu17
Copy link
Contributor Author

jgu17 commented May 17, 2024

That would be much appreciated. I can cherry pick this PR over if you want me to. The branch name 1.28 vs tag name 0.28.9 threw me off so I didn't know where to cherry pick to. But we will soon submit a CVE PR related to OTEL library first before asking to cut a new tag, if you don't mind.

@Huang-Wei
Copy link
Contributor

I can cherry pick this PR over if you want me to.

Prow can do this, we just:

/cherrypick release-1.28

But we will soon submit a CVE PR related to OTEL library first before asking to cut a new tag, if you don't mind.

SGTM. Check if the PR is needed on master first, if yes, submit to master and cherrypick later; otherwise, submit a PR to branch release-1.28.

@k8s-infra-cherrypick-robot

@Huang-Wei: new pull request created: #740

In response to this:

I can cherry pick this PR over if you want me to.

Prow can do this, we just:

/cherrypick release-1.28

But we will soon submit a CVE PR related to OTEL library first before asking to cut a new tag, if you don't mind.

SGTM. Check if the PR is needed on master first, if yes, submit to master and cherrypick later; otherwise, submit a PR to branch release-1.28.

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-sigs/prow repository.

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. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. release-note-none Denotes a PR that doesn't merit a release note. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants