From 7eb2c4ea973ae7e28c81c1dad6f22baef74b8f4c Mon Sep 17 00:00:00 2001 From: Doug Goldstein Date: Tue, 27 Oct 2026 13:23:26 -0500 Subject: [PATCH] feat(deploy): validate kustomizations natively in deploy check Build each component's kustomization in-process via the kustomize Go API instead of only checking that kustomization.yaml exists, so no kustomize binary is needed. The options match the kustomize.buildOptions in understack's components/argocd/values.yaml (alpha plugins, exec, helm, no load restrictions), so local validation matches ArgoCD's behaviour. - helm is still required for kustomizations using helmCharts, and a failed build now says so when helm is not in PATH. - Print build failures with the path on its own line and the error indented beneath it. - Update the command help to say it builds kustomizations, which may run exec plugins and helm. - Add tests for failing builds, files outside the kustomization root, missing helm, and error formatting. kustomize/api is pinned to v0.21.2 because v0.21.3 raises the module's go directive to 1.27.0. --- cmd/deploy/check.go | 75 ++++++++++++++++++++++++++++++++++++--- cmd/deploy/deploy_test.go | 71 +++++++++++++++++++++++++++++++++++- go.mod | 16 +++++++++ go.sum | 24 +++++++++++++ 4 files changed, 181 insertions(+), 5 deletions(-) diff --git a/cmd/deploy/check.go b/cmd/deploy/check.go index fed96b1..6889751 100644 --- a/cmd/deploy/check.go +++ b/cmd/deploy/check.go @@ -3,18 +3,69 @@ package deploy import ( "fmt" "os" + "os/exec" "path/filepath" + "strings" "github.com/charmbracelet/log" "github.com/spf13/cobra" + "sigs.k8s.io/kustomize/api/krusty" + kusttypes "sigs.k8s.io/kustomize/api/types" + "sigs.k8s.io/kustomize/kyaml/filesys" ) +// validateKustomization runs the equivalent of +// +// kustomize build --enable-alpha-plugins --enable-exec --enable-helm \ +// --load-restrictor LoadRestrictionsNone +// +// which mirrors the kustomize.buildOptions configured in +// components/argocd/values.yaml so local validation matches ArgoCD's behaviour. +// +// The build runs against the kustomize library version pinned in go.mod, not +// the kustomize bundled with ArgoCD. Keep the two reasonably close, otherwise a +// kustomization may pass here and fail in ArgoCD (or the reverse). +func validateKustomization(compDir string) error { + opts := krusty.MakeDefaultOptions() + opts.LoadRestrictions = kusttypes.LoadRestrictionsNone + opts.PluginConfig = kusttypes.EnabledPluginConfig(kusttypes.BploLoadFromFileSys) + opts.PluginConfig.HelmConfig.Command = "helm" + opts.PluginConfig.FnpLoadingOptions.EnableExec = true + + _, err := krusty.MakeKustomizer(opts).Run(filesys.MakeFsOnDisk(), compDir) + if err != nil && strings.Contains(err.Error(), "helm") { + if _, lookErr := exec.LookPath("helm"); lookErr != nil { + return fmt.Errorf("%w (the helm binary was not found in PATH; it is required to validate kustomizations that use helmCharts)", err) + } + } + return err +} + +// formatKustomizeError renders a build failure with the path on its own line +// and the (often long, multi-line) error indented beneath it. +func formatKustomizeError(path string, err error) string { + var b strings.Builder + b.WriteString(path) + b.WriteString(":") + for _, line := range strings.Split(strings.TrimSpace(err.Error()), "\n") { + b.WriteString("\n ") + b.WriteString(strings.TrimSpace(line)) + } + return b.String() +} + func newCmdDeployCheck() *cobra.Command { cmd := &cobra.Command{ Use: "check ", - Short: "Verify component manifests exist", - Long: `Check that kustomization.yaml and values.yaml exist for each enabled component.`, - Args: cobra.ExactArgs(1), + Short: "Verify component manifests exist and build", + Long: `Check that kustomization.yaml and values.yaml exist for each enabled component, +then build each kustomization.yaml in-process using the same options as ArgoCD +(alpha plugins, exec functions, helm, and no load restrictions). + +Building may execute exec plugins and run helm, which requires the helm binary +in PATH and may access the network to fetch charts. Only run this against +checkouts you trust.`, + Args: cobra.ExactArgs(1), RunE: func(cmd *cobra.Command, args []string) error { clusterName := args[0] return runDeployCheck(clusterName) @@ -37,6 +88,7 @@ func runDeployCheck(clusterName string) error { } missing := []string{} + var kustomizeErrors []string // pre-formatted by formatKustomizeError for _, comp := range components { compDir := filepath.Join(clusterName, comp.Name) @@ -52,6 +104,11 @@ func runDeployCheck(clusterName string) error { kustomPath := filepath.Join(compDir, "kustomization.yaml") if _, err := os.Stat(kustomPath); os.IsNotExist(err) { missing = append(missing, kustomPath) + continue + } + + if err := validateKustomization(compDir); err != nil { + kustomizeErrors = append(kustomizeErrors, formatKustomizeError(kustomPath, err)) } } } @@ -61,7 +118,17 @@ func runDeployCheck(clusterName string) error { for _, path := range missing { log.Errorf(" - %s", path) } - return fmt.Errorf("validation failed: %d missing files", len(missing)) + } + + if len(kustomizeErrors) > 0 { + log.Error("kustomize build failures:") + for _, msg := range kustomizeErrors { + log.Errorf(" - %s", msg) + } + } + + if total := len(missing) + len(kustomizeErrors); total > 0 { + return fmt.Errorf("validation failed: %d error(s)", total) } log.Infof("All %d components validated successfully", len(components)) diff --git a/cmd/deploy/deploy_test.go b/cmd/deploy/deploy_test.go index b50269d..6159dc6 100644 --- a/cmd/deploy/deploy_test.go +++ b/cmd/deploy/deploy_test.go @@ -1,6 +1,7 @@ package deploy import ( + "fmt" "os" "path/filepath" "strings" @@ -284,7 +285,7 @@ func TestDeployCheck(t *testing.T) { kustomPath := filepath.Join(keystoneDir, "kustomization.yaml") valuesPath := filepath.Join(keystoneDir, "values.yaml") - if err := os.WriteFile(kustomPath, []byte("test"), 0644); err != nil { + if err := os.WriteFile(kustomPath, []byte(kustomizationContent), 0644); err != nil { t.Fatalf("failed to write kustomization.yaml: %v", err) } @@ -295,6 +296,74 @@ func TestDeployCheck(t *testing.T) { if err := runDeployCheck(clusterName); err != nil { t.Errorf("check should pass: %v", err) } + + // A kustomization referencing a resource that doesn't exist must fail the build. + broken := "apiVersion: kustomize.config.k8s.io/v1beta1\nkind: Kustomization\nresources:\n - does-not-exist.yaml\n" + if err := os.WriteFile(kustomPath, []byte(broken), 0644); err != nil { + t.Fatalf("failed to write broken kustomization.yaml: %v", err) + } + + if err := runDeployCheck(clusterName); err == nil { + t.Error("check should fail when kustomize build fails") + } +} + +func TestValidateKustomizationOutsideDir(t *testing.T) { + tmpDir := t.TempDir() + sharedDir := filepath.Join(tmpDir, "shared") + compDir := filepath.Join(tmpDir, "comp") + for _, d := range []string{sharedDir, compDir} { + if err := os.MkdirAll(d, 0755); err != nil { + t.Fatalf("failed to create %s: %v", d, err) + } + } + + cm := "apiVersion: v1\nkind: ConfigMap\nmetadata:\n name: shared\n" + if err := os.WriteFile(filepath.Join(sharedDir, "cm.yaml"), []byte(cm), 0644); err != nil { + t.Fatalf("failed to write cm.yaml: %v", err) + } + + kust := "apiVersion: kustomize.config.k8s.io/v1beta1\nkind: Kustomization\nresources:\n - ../shared/cm.yaml\n" + if err := os.WriteFile(filepath.Join(compDir, "kustomization.yaml"), []byte(kust), 0644); err != nil { + t.Fatalf("failed to write kustomization.yaml: %v", err) + } + + // Referencing files outside the component dir only works with LoadRestrictionsNone. + if err := validateKustomization(compDir); err != nil { + t.Errorf("build should allow files outside the kustomization root: %v", err) + } +} + +func TestValidateKustomizationHelmMissing(t *testing.T) { + compDir := t.TempDir() + kust := `apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +helmCharts: + - name: example + repo: https://charts.example.invalid + version: 1.0.0 +` + if err := os.WriteFile(filepath.Join(compDir, "kustomization.yaml"), []byte(kust), 0644); err != nil { + t.Fatalf("failed to write kustomization.yaml: %v", err) + } + + t.Setenv("PATH", t.TempDir()) + + err := validateKustomization(compDir) + if err == nil { + t.Fatal("build should fail when helm is not installed") + } + if !strings.Contains(err.Error(), "helm binary was not found in PATH") { + t.Errorf("error should explain that helm is missing, got: %v", err) + } +} + +func TestFormatKustomizeError(t *testing.T) { + got := formatKustomizeError("c/kustomization.yaml", fmt.Errorf("first\n second\n")) + want := "c/kustomization.yaml:\n first\n second" + if got != want { + t.Errorf("got %q, want %q", got, want) + } } func TestDeployWorkflowIntegration(t *testing.T) { diff --git a/go.mod b/go.mod index 173be13..0373eb8 100644 --- a/go.mod +++ b/go.mod @@ -12,10 +12,13 @@ require ( gopkg.in/yaml.v3 v3.0.1 k8s.io/apimachinery v0.37.1 k8s.io/client-go v0.37.1 + sigs.k8s.io/kustomize/api v0.21.2 + sigs.k8s.io/kustomize/kyaml v0.21.2 ) require ( github.com/aymanbagabas/go-osc52/v2 v2.0.1 // indirect + github.com/blang/semver/v4 v4.0.0 // indirect github.com/charmbracelet/colorprofile v0.4.3 // indirect github.com/charmbracelet/lipgloss v1.1.0 // indirect github.com/charmbracelet/x/ansi v0.11.9 // indirect @@ -28,13 +31,23 @@ require ( github.com/docker/docker-credential-helpers v0.9.12 // indirect github.com/fsnotify/fsnotify v1.10.1 // indirect github.com/fxamacker/cbor/v2 v2.9.6 // indirect + github.com/go-errors/errors v1.5.1 // indirect github.com/go-logfmt/logfmt v0.6.1 // indirect github.com/go-logr/logr v1.4.4 // indirect github.com/go-openapi/jsonpointer v1.0.2 // indirect github.com/go-openapi/jsonreference v1.0.3 // indirect + github.com/go-openapi/swag v0.27.1 // indirect + github.com/go-openapi/swag/cmdutils v0.27.1 // indirect github.com/go-openapi/swag/conv v0.29.2 // indirect + github.com/go-openapi/swag/fileutils v0.27.1 // indirect github.com/go-openapi/swag/jsonutils v0.29.2 // indirect + github.com/go-openapi/swag/loading v0.27.1 // indirect + github.com/go-openapi/swag/mangling v0.27.1 // indirect + github.com/go-openapi/swag/netutils v0.27.1 // indirect + github.com/go-openapi/swag/pools v0.29.2 // indirect + github.com/go-openapi/swag/stringutils v0.27.1 // indirect github.com/go-openapi/swag/typeutils v0.29.2 // indirect + github.com/go-openapi/swag/yamlutils v0.27.1 // indirect github.com/go-viper/mapstructure/v2 v2.5.0 // indirect github.com/google/gnostic-models v0.7.1 // indirect github.com/inconshreveable/mousetrap v1.1.0 // indirect @@ -45,6 +58,7 @@ require ( github.com/mattn/go-runewidth v0.0.31 // indirect github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect github.com/modern-go/reflect2 v1.0.3-0.20250322232337-35a7c28c31ee // indirect + github.com/monochromegane/go-gitignore v0.0.0-20200626010858-205db1a8cc00 // indirect github.com/muesli/termenv v0.16.0 // indirect github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect github.com/opencontainers/go-digest v1.0.0 // indirect @@ -58,6 +72,7 @@ require ( github.com/spf13/pflag v1.0.10 // indirect github.com/subosito/gotenv v1.6.0 // indirect github.com/x448/float16 v0.8.4 // indirect + github.com/xlab/treeprint v1.2.0 // indirect github.com/xo/terminfo v1.2.0 // indirect go.yaml.in/yaml/v2 v2.4.4 // indirect go.yaml.in/yaml/v3 v3.0.5 // indirect @@ -70,6 +85,7 @@ require ( golang.org/x/text v0.43.0 // indirect golang.org/x/time v0.16.0 // indirect google.golang.org/protobuf v1.36.12 // indirect + gopkg.in/evanphx/json-patch.v4 v4.13.0 // indirect gopkg.in/inf.v0 v0.9.1 // indirect gotest.tools/v3 v3.5.2 // indirect k8s.io/klog/v2 v2.140.0 // indirect diff --git a/go.sum b/go.sum index cb3bd18..60bf880 100644 --- a/go.sum +++ b/go.sum @@ -1,5 +1,7 @@ github.com/aymanbagabas/go-osc52/v2 v2.0.1 h1:HwpRHbFMcZLEVr42D4p7XBqjyuxQH5SMiErDT4WkJ2k= github.com/aymanbagabas/go-osc52/v2 v2.0.1/go.mod h1:uYgXzlJ7ZpABp8OJ+exZzJJhRNQ2ASbcXHWsFqH8hp8= +github.com/blang/semver/v4 v4.0.0 h1:1PFHFE6yCCTv8C1TeyNNarDzntLi7wMI5i/pzqYIsAM= +github.com/blang/semver/v4 v4.0.0/go.mod h1:IbckMUScFkM3pff0VJDNKRiT6TG/YpiHIM2yvyW5YoQ= github.com/charmbracelet/colorprofile v0.4.3 h1:QPa1IWkYI+AOB+fE+mg/5/4HRMZcaXex9t5KX76i20Q= github.com/charmbracelet/colorprofile v0.4.3/go.mod h1:/zT4BhpD5aGFpqQQqw7a+VtHCzu+zrQtt1zhMt9mR4Q= github.com/charmbracelet/lipgloss v1.1.0 h1:vYXsiLHVkK7fp74RkV7b2kq9+zDLoEU4MZoFqR/noCY= @@ -33,6 +35,8 @@ github.com/fsnotify/fsnotify v1.10.1 h1:b0/UzAf9yR5rhf3RPm9gf3ehBPpf0oZKIjtpKrx5 github.com/fsnotify/fsnotify v1.10.1/go.mod h1:TLheqan6HD6GBK6PrDWyDPBaEV8LspOxvPSjC+bVfgo= github.com/fxamacker/cbor/v2 v2.9.6 h1:NHZPxuUjJXQjX9itA785y/5NKSlI4HQ+S7noZsmI7hs= github.com/fxamacker/cbor/v2 v2.9.6/go.mod h1:4EaZp6ClVunETjQ4GHmGNzysDK91Lr+r6Yz6tJqzVCw= +github.com/go-errors/errors v1.5.1 h1:ZwEMSLRCapFLflTpT7NKaAc7ukJ8ZPEjzlxt8rPN8bk= +github.com/go-errors/errors v1.5.1/go.mod h1:sIVyrIiJhuEF+Pj9Ebtd6P/rEYROXFi3BopGUQ5a5Og= github.com/go-logfmt/logfmt v0.6.1 h1:4hvbpePJKnIzH1B+8OR/JPbTx37NktoI9LE2QZBBkvE= github.com/go-logfmt/logfmt v0.6.1/go.mod h1:EV2pOAQoZaT1ZXZbqDl5hrymndi4SY9ED9/z6CO0XAk= github.com/go-logr/logr v1.4.4 h1:tG4xh9yMsRCAiodLVTxyrkzSZ9+o0L1Kg/+cPVcbP/8= @@ -51,6 +55,8 @@ github.com/go-openapi/swag/fileutils v0.27.1 h1:QQqBSoi5mW4XpU85nS0mLcA+zAE6vLzr github.com/go-openapi/swag/fileutils v0.27.1/go.mod h1:VvJFZLTZS0AI854gEQz5tk7dBESdLjiNUMSZ/th2ry8= github.com/go-openapi/swag/jsonutils v0.29.2 h1:uZNSD2/rJDYAfvsLYkykTzXuyxM3QpDKV9jhRHrMu6k= github.com/go-openapi/swag/jsonutils v0.29.2/go.mod h1:ONTdNvj3Y+IXRzfa17E+Rgt2ns/qiSOYjIo2K7v2yDs= +github.com/go-openapi/swag/jsonutils/fixtures_test v0.29.2 h1:w+Fd6EBOMGlC74GYGHqCLGyb3Bpams8TtNrgM/SG4jo= +github.com/go-openapi/swag/jsonutils/fixtures_test v0.29.2/go.mod h1:HC2egPORFzbj/gf05Zrfgz8Mgplx3oW7hgGi7pjZVhM= github.com/go-openapi/swag/loading v0.27.1 h1:/DxUgDXKbBX4bcn7r9uEXfJyzN5XpiJmZplzQTjrRCY= github.com/go-openapi/swag/loading v0.27.1/go.mod h1:jvGh3iA2+zyUUycB5fgJWzeHnhrpvGnJJM0RVE9ZShE= github.com/go-openapi/swag/mangling v0.27.1 h1:yC9D0HyUE8gbP+BfmGx9+AA89ikwZTMjESK3OnnoaqA= @@ -65,6 +71,10 @@ github.com/go-openapi/swag/typeutils v0.29.2 h1:O7aVvkTs3pXwikgtrPLenigEMdQFgONK github.com/go-openapi/swag/typeutils v0.29.2/go.mod h1:7+GDG+uz9Ke+eVt4rClZg7wklSDp8hT/mKNh/pC26TE= github.com/go-openapi/swag/yamlutils v0.27.1 h1:ftxv6xvXb1E3zohUc+okZ9nSqNb9StQX/FXnKZ98sQA= github.com/go-openapi/swag/yamlutils v0.27.1/go.mod h1:bnxFIB1qewGRiZHypXGZ3fNgf13/0HfRgnS/iZBDrOo= +github.com/go-openapi/testify/enable/yaml/v2 v2.7.0 h1:wPW6YRgx3+SID1yUy/Xwa17L8kFEaEKod2VRbJDZNUs= +github.com/go-openapi/testify/enable/yaml/v2 v2.7.0/go.mod h1:mI1M88etYbc3PhgHsWQK2kwvNwW5aGFqMPbmib+SGIs= +github.com/go-openapi/testify/v2 v2.8.0 h1:19QDx5b57p8KjO2E4sgs/woL4Akp+FGLRlVm2xn0Rho= +github.com/go-openapi/testify/v2 v2.8.0/go.mod h1:4gUN8jC+RqOE2qjW/vDmfyTvl5BCht4qL7oca0odrak= github.com/go-viper/mapstructure/v2 v2.5.0 h1:vM5IJoUAy3d7zRSVtIwQgBj7BiWtMPfmPEgAXnvj1Ro= github.com/go-viper/mapstructure/v2 v2.5.0/go.mod h1:oJDH3BJKyqBA2TXFhDsKDGDTlndYOZ6rGS0BRZIxGhM= github.com/google/gnostic-models v0.7.1 h1:SisTfuFKJSKM5CPZkffwi6coztzzeYUhc3v4yxLWH8c= @@ -100,6 +110,8 @@ github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJ github.com/modern-go/reflect2 v1.0.2/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjYzDa0/r8luk= github.com/modern-go/reflect2 v1.0.3-0.20250322232337-35a7c28c31ee h1:W5t00kpgFdJifH4BDsTlE89Zl93FEloxaWZfGcifgq8= github.com/modern-go/reflect2 v1.0.3-0.20250322232337-35a7c28c31ee/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjYzDa0/r8luk= +github.com/monochromegane/go-gitignore v0.0.0-20200626010858-205db1a8cc00 h1:n6/2gBQ3RWajuToeY6ZtZTIKv2v7ThUy5KKusIT0yc0= +github.com/monochromegane/go-gitignore v0.0.0-20200626010858-205db1a8cc00/go.mod h1:Pm3mSP3c5uWn86xMLZ5Sa7JB9GsEZySvHYXCTK4E9q4= github.com/muesli/termenv v0.16.0 h1:S5AlUN9dENB57rsbnkPyfdGuWIlkmzJjbFf0Tf5FWUc= github.com/muesli/termenv v0.16.0/go.mod h1:ZRfOIKPFDYQoDFF4Olj7/QJbW60Ol/kL1pU3VfY/Cnk= github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 h1:C3w9PqII01/Oq1c1nUAm88MOHcQC9l5mIlSMApZMrHA= @@ -122,6 +134,8 @@ github.com/sagikazarmark/locafero v0.12.0 h1:/NQhBAkUb4+fH1jivKHWusDYFjMOOKU88ee github.com/sagikazarmark/locafero v0.12.0/go.mod h1:sZh36u/YSZ918v0Io+U9ogLYQJ9tLLBmM4eneO6WwsI= github.com/santhosh-tekuri/jsonschema/v5 v5.3.1 h1:lZUw3E0/J3roVtGQ+SCrUrg3ON6NgVqpn3+iol9aGu4= github.com/santhosh-tekuri/jsonschema/v5 v5.3.1/go.mod h1:uToXkOrWAZ6/Oc07xWQrPOhJotwFIyu2bBVN41fcDUY= +github.com/sergi/go-diff v1.4.0 h1:n/SP9D5ad1fORl+llWyN+D6qoUETXNZARKjyY2/KVCw= +github.com/sergi/go-diff v1.4.0/go.mod h1:A0bzQcvG0E7Rwjx0REVgAGH58e96+X0MeOfepqsbeW4= github.com/sirupsen/logrus v1.10.2 h1:G2SED73/qrAu6YwbdxOD6peLkCBI3z7L+ykJFTXJBBo= github.com/sirupsen/logrus v1.10.2/go.mod h1:SLEg8TqYulVKKfIGHldVp2K2aYz2DKSVBq4g/H5bR7Q= github.com/spf13/afero v1.15.0 h1:b/YBCLWAJdFWJTN9cLhiXXcD7mzKn9Dm86dNnfyQw1I= @@ -139,14 +153,19 @@ github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+ github.com/stretchr/objx v0.5.3 h1:jmXUvGomnU1o3W/V5h2VEradbpJDwGrzugQQvL0POH4= github.com/stretchr/objx v0.5.3/go.mod h1:rDQraq+vQZU7Fde9LOZLr8Tax6zZvy4kuNKF+QYS+U0= github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= +github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.12.1 h1:EuwCh5fleGS7H32xRwO3wRGT7DxrDhLAT6FF8MpWDWE= github.com/stretchr/testify v1.12.1/go.mod h1:MDEgiDPPsNp5cuIrHPPCyornHKgEVbtFUmoNlxoYthg= github.com/subosito/gotenv v1.6.0 h1:9NlTDc1FTs4qu0DDq7AEtTPNw6SVm7uBMsUCUjABIf8= github.com/subosito/gotenv v1.6.0/go.mod h1:Dk4QP5c2W3ibzajGcXpNraDfq2IrhjMIvMSWPKKo0FU= github.com/x448/float16 v0.8.4 h1:qLwI1I70+NjRFUR3zs1JPUCgaCXSh3SW62uAKT1mSBM= github.com/x448/float16 v0.8.4/go.mod h1:14CWIYCyZA/cWjXOioeEpHeN/83MdbZDRQHoFcYsOfg= +github.com/xlab/treeprint v1.2.0 h1:HzHnuAF1plUN2zGlAFHbSQP2qJ0ZAD3XF5XD7OesXRQ= +github.com/xlab/treeprint v1.2.0/go.mod h1:gj5Gd3gPdKtR1ikdDK6fnFLdmIS0X30kTTuNd/WEJu0= github.com/xo/terminfo v1.2.0 h1:d0ZTOCpuGE0lwSAOs0zcJjwz3jWQyqcRt9XbGJpCOl4= github.com/xo/terminfo v1.2.0/go.mod h1:lGzkSo8Fe7IRh/w+Gqz7n5mDog4FVXCj3gy/DYTBqio= +go.uber.org/goleak v1.3.0 h1:2K3zAYmnTNqV73imy9J1T3WC+gmCePx2hEGkimedGto= +go.uber.org/goleak v1.3.0/go.mod h1:CoHD4mav9JJNrW/WLlf7HGZPjdw8EucARQHekz1X6bE= go.yaml.in/yaml/v2 v2.4.4 h1:tuyd0P+2Ont/d6e2rl3be67goVK4R6deVxCUX5vyPaQ= go.yaml.in/yaml/v2 v2.4.4/go.mod h1:gMZqIpDtDqOfM0uNfy0SkpRhvUryYH0Z6wdMYcacYXQ= go.yaml.in/yaml/v3 v3.0.4/go.mod h1:DhzuOOF2ATzADvBadXxruRBLzYTpT36CKvDb3+aBEFg= @@ -177,6 +196,7 @@ gopkg.in/evanphx/json-patch.v4 v4.13.0 h1:czT3CmqEaQ1aanPc5SdlgQrrEIb8w/wwCvWWnf gopkg.in/evanphx/json-patch.v4 v4.13.0/go.mod h1:p8EYWUEYMpynmqDbY58zCKCFZw8pRWMG4EsWvDvM72M= gopkg.in/inf.v0 v0.9.1 h1:73M5CoZyi3ZLMOyDlQh031Cx6N9NDJ2Vvfl76EDAgDc= gopkg.in/inf.v0 v0.9.1/go.mod h1:cWUDdTG/fYaXco+Dcufb5Vnc6Gp2YChqWtbxRZE0mXw= +gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gotest.tools/v3 v3.5.2 h1:7koQfIKdy+I8UTetycgUqXWSDwpgv193Ka+qRsmBY8Q= @@ -195,6 +215,10 @@ k8s.io/utils v0.0.0-20261023123148-ca04ba58ecab h1:pjQrNLaF//ytZtWwCAHtW+pqwSKjt k8s.io/utils v0.0.0-20261023123148-ca04ba58ecab/go.mod h1:DdQ0BJxlQtuMlKDqdg7X5IMMQCXIk2b3d1/4M9OhUYo= sigs.k8s.io/json v0.0.0-20260909141634-11ed52e25bc5 h1:k9jo7ED/fsfOcz3L1P20P5tjTNtsdQNwMOG2aKzHrl8= sigs.k8s.io/json v0.0.0-20260909141634-11ed52e25bc5/go.mod h1:mdzfpAEoE6DHQEN0uh9ZbOCuHbLK5wOm7dK4ctXE9Tg= +sigs.k8s.io/kustomize/api v0.21.2 h1:MRyw+zLnFBP+G40gZJoKZErAuRiOPEPao+ddS9L6xt4= +sigs.k8s.io/kustomize/api v0.21.2/go.mod h1:inubcVvQjJR/BjUti22YVBWr4EX+XlurEWhB81v2JV4= +sigs.k8s.io/kustomize/kyaml v0.21.2 h1:1javwStFk7cgOeLU7yJtPmXcgMEhQgC2X0WjFT6U0p0= +sigs.k8s.io/kustomize/kyaml v0.21.2/go.mod h1:zX3qwtuouXd2K1fMiCV0VSFReX06a+CY1rhyf5Dy7hQ= sigs.k8s.io/randfill v1.0.0 h1:JfjMILfT8A6RbawdsK2JXGBR5AQVfd+9TbzrlneTyrU= sigs.k8s.io/randfill v1.0.0/go.mod h1:XeLlZ/jmk4i1HRopwe7/aU3H5n1zNUcX6TM94b3QxOY= sigs.k8s.io/structured-merge-diff/v6 v6.4.2 h1:qdOxHwrl2Kaag1aQEarlYcOA9vSyGCp3CIki3aW8c4Q=