Skip to content

refactor: update toolchain-common with renamed ServerSideApplyClient type - #154

Merged
xcoulon merged 6 commits into
masterfrom
rename-ssa-client-kubectl
Aug 4, 2026
Merged

refactor: update toolchain-common with renamed ServerSideApplyClient type#154
xcoulon merged 6 commits into
masterfrom
rename-ssa-client-kubectl

Conversation

@xcoulon

@xcoulon xcoulon commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

fix golangci-lint issues: in particular, use os.Root to avoid Time-of-Check-Time-of-Use (TOCTOU) race condition with symlinks in filepath.Walk/filepath.WalkDir callbacks

also, update the golangci-lint-action settings

Signed-off-by: Xavier Coulon xcoulon@redhat.com

xcoulon added 3 commits August 4, 2026 14:30
…type

fix golangci-lint issues: in particular, use `os.Root` to avoid Time-of-Check-Time-of-Use (TOCTOU) race condition with symlinks in filepath.Walk/filepath.WalkDir callbacks

also, update the golangci-lint-action settings

Signed-off-by: Xavier Coulon <xcoulon@redhat.com>
Signed-off-by: Xavier Coulon <xcoulon@redhat.com>
Signed-off-by: Xavier Coulon <xcoulon@redhat.com>
@xcoulon
xcoulon force-pushed the rename-ssa-client-kubectl branch from f04d635 to 742eb8a Compare August 4, 2026 12:30

@MatousJobanek MatousJobanek left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

interesting problem with the TOCTOU - Personally, it would be completely OK to ignore the linter error here (and keep it simple) because there is technically zero risk of facing this issue with ksctl. But feel free to keep it as it is.

we're safe to use os.ReadFile/os.WriteFile in ksctl codebase

This reverts commit 3dff418.
@xcoulon

xcoulon commented Aug 4, 2026

Copy link
Copy Markdown
Contributor Author

interesting problem with the TOCTOU - Personally, it would be completely OK to ignore the linter error here (and keep it simple) because there is technically zero risk of facing this issue with ksctl. But feel free to keep it as it is.

makes sense, I've reverted the changes in 315f961

xcoulon added 2 commits August 4, 2026 15:06
Signed-off-by: Xavier Coulon <xcoulon@redhat.com>
Signed-off-by: Xavier Coulon <xcoulon@redhat.com>
@codecov

codecov Bot commented Aug 4, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 80.00000% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 59.90%. Comparing base (11bbefd) to head (e0d88ad).

Files with missing lines Patch % Lines
pkg/cmd/adm/install_operator.go 66.66% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##           master     #154   +/-   ##
=======================================
  Coverage   59.90%   59.90%           
=======================================
  Files          56       56           
  Lines        3257     3257           
=======================================
  Hits         1951     1951           
  Misses       1085     1085           
  Partials      221      221           
Files with missing lines Coverage Δ
pkg/cmd/add_space_users.go 76.92% <100.00%> (ø)
pkg/cmd/generate/nstemplatetiers.go 55.35% <100.00%> (ø)
pkg/cmd/adm/install_operator.go 77.50% <66.66%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@xcoulon
xcoulon merged commit 74f0156 into master Aug 4, 2026
8 of 9 checks passed
@xcoulon
xcoulon deleted the rename-ssa-client-kubectl branch August 4, 2026 13:48
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.

2 participants