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

chore: downgrade go version for apply-crds package #1132

Closed

Conversation

tobiasgiese
Copy link
Member

There is a project that wants to consume this package.
As this project sticks to the Go version that is also used by the lates stable Kubernetes version we should also downgrade this version to be compatible.

There is a project that wants to consume this package.
As this project sticks to the Go version that is also used by the lates stable Kubernetes version
we should also downgrade this version to be compatible.

Signed-off-by: Tobias Giese <[email protected]>
@e0ne
Copy link
Collaborator

e0ne commented Nov 5, 2024

There is a project that wants to consume this package.

what project is it? I don't like an idea of downgrading golang and having different version for several components

@coveralls
Copy link
Collaborator

Pull Request Test Coverage Report for Build 11682795344

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 3 unchanged lines in 1 file lost coverage.
  • Overall coverage decreased (-0.02%) to 60.722%

Files with Coverage Reduction New Missed Lines %
controllers/nicclusterpolicy_controller.go 3 79.08%
Totals Coverage Status
Change from base Build 11682752462: -0.02%
Covered Lines: 3347
Relevant Lines: 5512

💛 - Coveralls

@tobiasgiese
Copy link
Member Author

tobiasgiese commented Nov 5, 2024

what project is it? I don't like an idea of downgrading golang and having different version for several components

It is an internal project. In this project we are pinning the version to the latest stable Kubernetes version -- which is currently go1.22 for Kubernetes v1.31. As the latest go1.22 patch version (with also fixed CVEs) is go1.22.8 I want to set the go version for this package.

I understand your concerns, but it breaks the usage of this package for projects that stick to Kubernetes' Golang version.

Copy link
Collaborator

@ykulazhenkov ykulazhenkov left a comment

Choose a reason for hiding this comment

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

I don't like the idea of using different go version within the same code tree, but I don't see any good alternative for this case.

We are downgrading go version for isolated app (it doesn't import anything from the pkg), so this change is acceptable from my point of view.

I think CVEs are not an issue here, because we are still using the lates go image to build the binary.

@tobiasgiese
Copy link
Member Author

We will move the code to NVIDIA/k8s-operator-libs#50 anway, so we can close this PR.
If something is against moving the tool to the libs repo I will re-open this PR.

@tobiasgiese tobiasgiese closed this Nov 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants