helmfile/pkg
yxxhero 7c215f6451 fix: address PR review comments
Addresses all review comments from PR #2446:

1. Add validation for QPS and Burst values
   - QPS must be > 0
   - Burst must be >= 1
   - Returns clear error messages for invalid values

2. Fix client config loading
   - Use clientcmd.NewDefaultClientConfigLoadingRules() for proper fallback
   - Only override ExplicitPath when kubeconfig is provided
   - Ensures standard env var handling and ~/.kube/config fallback

3. Improve cache locking
   - Use double-check locking pattern to avoid holding mutex during client creation
   - Reduces contention when multiple goroutines create clients concurrently

4. Add comprehensive tests
   - Test validation of invalid QPS values
   - Test validation of invalid Burst values
   - Test successful creation with valid values
   - Ensure error messages are descriptive

5. Fix documentation link
   - Updated Kubernetes client-go rate limiting link to point to correct rest.Config documentation
   - Previous link pointed to API server event rate limiting

All tests pass and code quality checks succeed.

Signed-off-by: yxxhero <aiopsclub@163.com>
2026-03-03 08:20:12 +08:00
..
app feat: kubedog integration with unified resource handling (#2383) 2026-03-02 17:15:12 +08:00
argparser
cluster feat: kubedog integration with unified resource handling (#2383) 2026-03-02 17:15:12 +08:00
config feat: kubedog integration with unified resource handling (#2383) 2026-03-02 17:15:12 +08:00
environment fix: array merge regression - layer arrays now replace defaults (#2367) 2026-01-18 14:04:54 +08:00
envvar Add parameter to render helmfile as go template without .gotmpl extension (#2312) 2025-12-09 14:41:47 +09:00
errors build(deps): bump golangci/golangci-lint-action from 6 to 7 (#1975) 2025-03-28 07:52:06 +08:00
event
exectest feat: add `helmfile unittest` command for helm-unittest integration (#2400) 2026-02-16 09:45:10 +08:00
filesystem refactor(filesystem): add CopyDir method and optimize Fetch function (#2111) 2025-07-28 16:10:25 -04:00
hcllang feat: Add IP Network to supported HCL Functions (#2426) 2026-02-26 17:20:48 +08:00
helmexec fix: support XDG-style multiple paths in HELM_PLUGINS (#2412) 2026-02-20 15:27:34 +08:00
kubedog fix: address PR review comments 2026-03-03 08:20:12 +08:00
maputil fix: array merge regression - layer arrays now replace defaults (#2367) 2026-01-18 14:04:54 +08:00
plugins Fix AWS SDK debug logging by making it configurable (issue #2270) (#2290) 2025-11-24 18:27:04 +08:00
policy build(deps): bump golangci/golangci-lint-action from 6 to 7 (#1975) 2025-03-28 07:52:06 +08:00
remote fix: include query params in HTTP getter cache key (#2399) 2026-02-14 09:31:53 +08:00
resource feat: kubedog integration with unified resource handling (#2383) 2026-03-02 17:15:12 +08:00
runtime refactor(yaml): switch yaml library import paths from gopkg.in to go.yaml.in (#2114) 2025-08-01 11:28:39 +08:00
state fix: configure kubedog rate limiter to prevent context cancellation 2026-03-03 08:08:42 +08:00
testhelper fix: eliminate os.Chdir in sequential helmfiles to fix relative path resolution (#2410) 2026-02-22 09:21:46 +08:00
testutil feat: add `helmfile unittest` command for helm-unittest integration (#2400) 2026-02-16 09:45:10 +08:00
tmpl refactor(yaml): switch yaml library import paths from gopkg.in to go.yaml.in (#2114) 2025-08-01 11:28:39 +08:00
yaml refactor(yaml): switch yaml library import paths from gopkg.in to go.yaml.in (#2114) 2025-08-01 11:28:39 +08:00