Skip to content

Conversation

@jgehrcke
Copy link
Collaborator

Quick proposal for two unrelated and minor maintenance changes:

Note: we currently don't have a source of truth for the Go version, and need to update it in two places. ./hack/golang-version.sh consults deployments/devel/Dockerfile.

Signed-off-by: Dr. Jan-Philip Gehrcke <[email protected]>
@copy-pr-bot
Copy link

copy-pr-bot bot commented Apr 23, 2025

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

# This Dockerfile is also used to define the golang version used in this project
# This allows dependabot to manage this version in addition to other images.
FROM golang:1.23.1
FROM golang:1.23.8
Copy link
Member

Choose a reason for hiding this comment

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

Since we're still on main, this is done by #312 I'm OK to do this here.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

this is done by #312 I'm OK to do this here.

Right. This PR here is slightly more conservative as it stays within 1.23.x

Copy link
Member

Choose a reason for hiding this comment

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

Yes, in other projects we configure dependabot to only allow patch updates on release-* branches. This would have skipped these minor version updates.

# limitations under the License.

ARG GOLANG_VERSION=1.23.1
ARG GOLANG_VERSION=1.23.8
Copy link
Member

@elezar elezar Apr 23, 2025

Choose a reason for hiding this comment

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

It should be possible to drop this here. I know that sometimes we allow users to build the dockerfiles directly from the git repos, but setting this to:

Suggested change
ARG GOLANG_VERSION=1.23.8
ARG GOLANG_VERSION=undefined

Should give a reasonable error message when a user does not provide the expected --build-arg.

I don't think the effort in maintaining support for this out-of-band build process is worth the benefit to the community.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Thanks! I will leave things as they are for now, and we can perform that simplification later.

LABEL org.opencontainers.image.description "NVIDIA GPU DRA driver for Kubernetes"
LABEL summary="NVIDIA DRA Driver for GPUs"
LABEL description="NVIDIA DRA Driver for GPUs"
LABEL org.opencontainers.image.description "NVIDIA DRA Driver for GPUs"
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
LABEL org.opencontainers.image.description "NVIDIA DRA Driver for GPUs"
LABEL org.opencontainers.image.description="NVIDIA DRA Driver for GPUs"

Copy link
Collaborator

Choose a reason for hiding this comment

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

On Dockerfiles is valid to have Label Key Val separated without an =

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Thanks! Let's normalize this later, and then pick the preferred way of doing this (if one of both is preferred).

Copy link
Member

Choose a reason for hiding this comment

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

On Dockerfiles is valid to have Label Key Val separated without an =

Yes, I'm not saying it's invalid. I'm saying that it's locally inconsistent. Not a blocker for this PR though.

Copy link
Member

@elezar elezar left a comment

Choose a reason for hiding this comment

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

Minor nits / comments. No blockers for this PR.

@jgehrcke jgehrcke merged commit 6d40928 into NVIDIA:main Apr 25, 2025
7 checks passed
@klueska klueska added this to the v25.3.0 milestone Aug 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Backlog

Development

Successfully merging this pull request may close these issues.

4 participants