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

feat: Remove kubectl binary from container and apply CRDs with client-go #1118

Merged
merged 2 commits into from
Nov 1, 2024

Conversation

tobiasgiese
Copy link
Member

@tobiasgiese tobiasgiese commented Oct 29, 2024

Due too multiple CVEs in the kubectl binary we remove the dependency to it.
To be able to update our CRDs we introduce a custom Go binary that uses client-go
to apply our CRDs and also from our dependencies, like NFD and SRIOV.

Additionally we remove the scale-down Helm hook as it is no longer needed.

Fixes #1072

@tobiasgiese tobiasgiese force-pushed the implement-new-test-scope branch from c133cf4 to 2837707 Compare October 29, 2024 22:45
@tobiasgiese tobiasgiese changed the title [WIP] Remove kubectl binary from container and apply CRDs with client-go [WIP] feat: Remove kubectl binary from container and apply CRDs with client-go Oct 29, 2024
@tobiasgiese tobiasgiese force-pushed the implement-new-test-scope branch from 2837707 to 7245b83 Compare October 29, 2024 22:46
@coveralls
Copy link
Collaborator

coveralls commented Oct 29, 2024

Pull Request Test Coverage Report for Build 11613498909

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.4%) to 60.649%

Totals Coverage Status
Change from base Build 11607645930: 0.4%
Covered Lines: 3343
Relevant Lines: 5512

💛 - Coveralls

@tobiasgiese tobiasgiese force-pushed the implement-new-test-scope branch 11 times, most recently from 8175010 to 8cc5c82 Compare October 30, 2024 10:33
@tobiasgiese tobiasgiese changed the title [WIP] feat: Remove kubectl binary from container and apply CRDs with client-go feat: Remove kubectl binary from container and apply CRDs with client-go Oct 30, 2024
@tobiasgiese tobiasgiese force-pushed the implement-new-test-scope branch 4 times, most recently from b48e018 to 69bfbb9 Compare October 30, 2024 10:50
@tobiasgiese tobiasgiese force-pushed the implement-new-test-scope branch 2 times, most recently from 1292634 to 50772ff Compare October 30, 2024 12:55
Dockerfile Show resolved Hide resolved
Dockerfile Show resolved Hide resolved
cmd/apply-crds/main.go Show resolved Hide resolved
cmd/apply-crds/main.go Outdated Show resolved Hide resolved
@tobiasgiese tobiasgiese force-pushed the implement-new-test-scope branch 4 times, most recently from 10bb9a2 to c28d14f Compare October 31, 2024 09:35
@tobiasgiese tobiasgiese force-pushed the implement-new-test-scope branch from c28d14f to c1227ad Compare October 31, 2024 09:37
Copy link
Member

@vasrem vasrem left a comment

Choose a reason for hiding this comment

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

LGTM

@tobiasgiese tobiasgiese force-pushed the implement-new-test-scope branch from c1227ad to 76abbe3 Compare October 31, 2024 11:06
@tobiasgiese
Copy link
Member Author

@tobiasgiese
Copy link
Member Author

/retest-blackduck_scan

Dockerfile Outdated Show resolved Hide resolved
@tobiasgiese tobiasgiese force-pushed the implement-new-test-scope branch from 76abbe3 to 25f1199 Compare October 31, 2024 14:05
Due too multiple CVEs in the kubectl binary we remove the dependency to it.
To be able to update our CRDs we introduce a custom Go binary that uses client-go
to apply our CRDs and also from our dependencies, like NFD and SRIOV.

Additionally we remove the scale-down Helm hook as it is no longer needed.

Signed-off-by: Tobias Giese <[email protected]>
@tobiasgiese tobiasgiese force-pushed the implement-new-test-scope branch from 25f1199 to bc03af3 Compare October 31, 2024 14:08
@tobiasgiese tobiasgiese force-pushed the implement-new-test-scope branch from bc03af3 to 29cdc84 Compare October 31, 2024 14:08
@tobiasgiese
Copy link
Member Author

/retest-image_scan

@e0ne e0ne merged commit eb377ee into Mellanox:master Nov 1, 2024
16 checks passed
@tobiasgiese tobiasgiese deleted the implement-new-test-scope branch November 5, 2024 15:15
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.

Use Go code instead of kubectl binary
7 participants