├── cmd └── fleet │ ├── main.go │ └── cli │ ├── details.go │ ├── resources.go │ └── root.go ├── .gitignore ├── .github └── workflows │ └── release.yml ├── Makefile ├── .goreleaser.yml ├── pkg ├── logger │ └── logger.go └── fleet │ ├── common.go │ ├── resources.go │ ├── details.go │ └── overview.go ├── deploy └── krew │ └── fleet.yaml ├── README.md ├── go.mod ├── doc └── USAGE.md ├── LICENSE └── go.sum /cmd/fleet/main.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "github.com/kubectl-plus/kcf/cmd/fleet/cli" 5 | _ "k8s.io/client-go/plugin/pkg/client/auth" // required for GKE/OIDC/Dex style auth 6 | ) 7 | 8 | func main() { 9 | cli.InitAndExecute() 10 | } 11 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Binaries for programs and plugins 2 | *.exe 3 | *.exe~ 4 | *.dll 5 | *.so 6 | *.dylib 7 | 8 | # Test binary, built with `go test -c` 9 | *.test 10 | 11 | # Output of the go coverage tool, specifically when used with LiteIDE 12 | *.out 13 | 14 | bin/ 15 | .DS_Store 16 | -------------------------------------------------------------------------------- /.github/workflows/release.yml: -------------------------------------------------------------------------------- 1 | name: release 2 | 3 | on: 4 | push: 5 | tags: ["*"] 6 | 7 | jobs: 8 | create-release: 9 | 10 | runs-on: ubuntu-latest 11 | 12 | steps: 13 | - uses: actions/checkout@v4 14 | - name: Create a release 15 | run: make release 16 | env: 17 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} 18 | - name: Update new version in krew-index 19 | uses: rajatjindal/krew-release-bot@v0.0.46 20 | with: 21 | krew_template_file: deploy/krew/fleet.yaml 22 | -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- 1 | release_version:= v0.1.4 2 | 3 | export GO111MODULE=on 4 | 5 | .PHONY: test 6 | test: 7 | go test ./pkg/... ./cmd/... -coverprofile cover.out 8 | 9 | .PHONY: bin 10 | bin: fmt vet 11 | go build -o bin/fleet github.com/mhausenblas/kcf/cmd/fleet 12 | 13 | .PHONY: fmt 14 | fmt: 15 | go fmt ./pkg/... ./cmd/... 16 | 17 | .PHONY: vet 18 | vet: 19 | go vet ./pkg/... ./cmd/... 20 | 21 | .PHONY: release 22 | release: 23 | curl -sL https://git.io/goreleaser | bash -s -- --rm-dist --config .goreleaser.yml 24 | 25 | .PHONY: publish 26 | publish: 27 | git tag ${release_version} 28 | git push --tags -------------------------------------------------------------------------------- /.goreleaser.yml: -------------------------------------------------------------------------------- 1 | project_name: fleet 2 | release: 3 | github: 4 | owner: kubectl-plus 5 | name: kcf 6 | builds: 7 | - id: fleet 8 | goos: 9 | - linux 10 | - windows 11 | - darwin 12 | goarch: 13 | - amd64 14 | - "386" 15 | - arm 16 | - arm64 17 | env: 18 | - CGO_ENABLED=0 19 | - GO111MODULE=on 20 | main: cmd/fleet/main.go 21 | ldflags: -s -w 22 | -X github.com/kubectl-plus/kcf/pkg/version.version= 23 | archives: 24 | - id: fleet 25 | builds: 26 | - fleet 27 | name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}" 28 | format_overrides: 29 | - goos: windows 30 | format: zip 31 | -------------------------------------------------------------------------------- /cmd/fleet/cli/details.go: -------------------------------------------------------------------------------- 1 | package cli 2 | 3 | import ( 4 | "github.com/kubectl-plus/kcf/pkg/fleet" 5 | "github.com/pkg/errors" 6 | "github.com/spf13/cobra" 7 | ) 8 | 9 | // DetailsCmd runs the fleet details command 10 | func DetailsCmd() *cobra.Command { 11 | cmd := &cobra.Command{ 12 | Use: "details", 13 | Short: "Details about a cluster in the fleet", 14 | Long: `.`, 15 | SilenceErrors: true, 16 | SilenceUsage: true, 17 | RunE: func(cmd *cobra.Command, args []string) error { 18 | if err := fleet.Details(cmd.Context(), KubernetesConfigFlags, args); err != nil { 19 | return errors.Cause(err) 20 | } 21 | return nil 22 | }, 23 | } 24 | return cmd 25 | } 26 | -------------------------------------------------------------------------------- /cmd/fleet/cli/resources.go: -------------------------------------------------------------------------------- 1 | package cli 2 | 3 | import ( 4 | "github.com/kubectl-plus/kcf/pkg/fleet" 5 | "github.com/pkg/errors" 6 | "github.com/spf13/cobra" 7 | ) 8 | 9 | // ResourcesCmd runs the fleet resources command 10 | func ResourcesCmd() *cobra.Command { 11 | cmd := &cobra.Command{ 12 | Use: "resources", 13 | Short: "Details about the resources of a cluster in the fleet", 14 | Long: `.`, 15 | SilenceErrors: true, 16 | SilenceUsage: true, 17 | RunE: func(cmd *cobra.Command, args []string) error { 18 | if err := fleet.Resources(KubernetesConfigFlags, args); err != nil { 19 | return errors.Cause(err) 20 | } 21 | return nil 22 | }, 23 | } 24 | return cmd 25 | } 26 | -------------------------------------------------------------------------------- /pkg/logger/logger.go: -------------------------------------------------------------------------------- 1 | package logger 2 | 3 | import ( 4 | "fmt" 5 | 6 | "github.com/fatih/color" 7 | ) 8 | 9 | type Logger struct { 10 | } 11 | 12 | func NewLogger() *Logger { 13 | return &Logger{} 14 | } 15 | 16 | func (l *Logger) Info(msg string, args ...interface{}) { 17 | if msg == "" { 18 | fmt.Println("") 19 | return 20 | } 21 | 22 | c := color.New(color.FgHiCyan) 23 | c.Println(fmt.Sprintf(msg, args...)) 24 | } 25 | 26 | func (l *Logger) Error(err error) { 27 | c := color.New(color.FgHiRed) 28 | c.Println(fmt.Sprintf("%#v", err)) 29 | } 30 | 31 | func (l *Logger) Instructions(msg string, args ...interface{}) { 32 | white := color.New(color.FgHiWhite) 33 | white.Println("") 34 | white.Println(fmt.Sprintf(msg, args...)) 35 | } 36 | -------------------------------------------------------------------------------- /pkg/fleet/common.go: -------------------------------------------------------------------------------- 1 | package fleet 2 | 3 | import ( 4 | "github.com/pkg/errors" 5 | "k8s.io/client-go/kubernetes" 6 | "k8s.io/client-go/tools/clientcmd" 7 | "k8s.io/client-go/tools/clientcmd/api" 8 | ) 9 | 10 | // csForContext returns a client for a given context 11 | func csForContext(cfg api.Config, context string) (*kubernetes.Clientset, error) { 12 | config, err := clientcmd.NewNonInteractiveClientConfig( 13 | cfg, 14 | context, 15 | &clientcmd.ConfigOverrides{ 16 | CurrentContext: context, 17 | }, 18 | nil).ClientConfig() 19 | if err != nil { 20 | return nil, errors.Wrap(err, "Can't switch context") 21 | } 22 | cs, err := kubernetes.NewForConfig(config) 23 | if err != nil { 24 | return nil, errors.Wrap(err, "Can't create a client based on config and/or context provided") 25 | } 26 | return cs, nil 27 | } 28 | 29 | // contextOf returns the context name of a given cluster 30 | func contextOf(cfg api.Config, clusterID string) string { 31 | for name, context := range cfg.Contexts { 32 | if clusterID == context.Cluster { 33 | return name 34 | } 35 | } 36 | return "" 37 | } 38 | -------------------------------------------------------------------------------- /cmd/fleet/cli/root.go: -------------------------------------------------------------------------------- 1 | package cli 2 | 3 | import ( 4 | "fmt" 5 | "os" 6 | "strings" 7 | 8 | "github.com/kubectl-plus/kcf/pkg/fleet" 9 | "github.com/pkg/errors" 10 | "github.com/spf13/cobra" 11 | "github.com/spf13/viper" 12 | "k8s.io/cli-runtime/pkg/genericclioptions" 13 | ) 14 | 15 | var ( 16 | // KubernetesConfigFlags makes the config flags available globally 17 | KubernetesConfigFlags *genericclioptions.ConfigFlags 18 | ) 19 | 20 | // RootCmd runs the fleet root command 21 | func RootCmd() *cobra.Command { 22 | cmd := &cobra.Command{ 23 | Use: "fleet", 24 | Short: "Info on a fleet of Kubernetes clusters", 25 | Long: `.`, 26 | SilenceErrors: true, 27 | SilenceUsage: true, 28 | PreRun: func(cmd *cobra.Command, args []string) { 29 | viper.BindPFlags(cmd.Flags()) 30 | }, 31 | RunE: func(cmd *cobra.Command, args []string) error { 32 | if err := fleet.Overview(cmd.Context(), KubernetesConfigFlags); err != nil { 33 | return errors.Cause(err) 34 | } 35 | return nil 36 | }, 37 | } 38 | cobra.OnInitialize(initConfig) 39 | KubernetesConfigFlags = genericclioptions.NewConfigFlags(false) 40 | KubernetesConfigFlags.AddFlags(cmd.PersistentFlags()) 41 | viper.SetEnvKeyReplacer(strings.NewReplacer("-", "_")) 42 | return cmd 43 | } 44 | 45 | // InitAndExecute sets up and executes fleet commands 46 | func InitAndExecute() { 47 | rootCmd := RootCmd() 48 | rootCmd.AddCommand(DetailsCmd()) 49 | rootCmd.AddCommand(ResourcesCmd()) 50 | if err := rootCmd.Execute(); err != nil { 51 | fmt.Println(err) 52 | os.Exit(1) 53 | } 54 | } 55 | 56 | func initConfig() { 57 | viper.AutomaticEnv() 58 | } 59 | -------------------------------------------------------------------------------- /pkg/fleet/resources.go: -------------------------------------------------------------------------------- 1 | package fleet 2 | 3 | import ( 4 | "fmt" 5 | "strings" 6 | 7 | "github.com/pkg/errors" 8 | "k8s.io/cli-runtime/pkg/genericclioptions" 9 | "k8s.io/client-go/tools/clientcmd/api" 10 | ) 11 | 12 | // Resources creates a detailed report of the resources in 13 | // a particular cluster in a fleet 14 | func Resources(configFlags *genericclioptions.ConfigFlags, args []string) error { 15 | clientcfg := configFlags.ToRawKubeConfigLoader() 16 | cfg, err := clientcfg.RawConfig() 17 | if err != nil { 18 | return errors.Wrap(err, "Can't assemble raw config") 19 | } 20 | if len(args) < 1 { 21 | return errors.New("need a cluster to operate on, please provide the cluster name") 22 | } 23 | clusterID := args[0] 24 | context := contextOf(cfg, clusterID) 25 | err = resourceDetails(cfg, context) 26 | if err != nil { 27 | return err 28 | } 29 | return nil 30 | } 31 | 32 | // resourceDetails prints the supported resources in the cluster 33 | func resourceDetails(cfg api.Config, context string) error { 34 | cs, err := csForContext(cfg, context) 35 | if err != nil { 36 | return errors.Wrap(err, "Can't create a clientset based on config provided") 37 | } 38 | _, reslist, err := cs.Discovery().ServerGroupsAndResources() 39 | if err != nil { 40 | return errors.Wrap(err, "Can't get cluster server version") 41 | } 42 | fmt.Println("Resources supported in this cluster:") 43 | for _, res := range reslist { 44 | fmt.Println(strings.Repeat("-", 80)) 45 | fmt.Printf("%v:\n ", res.GroupVersion) 46 | for _, r := range res.APIResources { 47 | if !strings.Contains(r.Name, "/") { 48 | fmt.Printf("%v (namespaced: %v) ", r.Name, r.Namespaced) 49 | } 50 | } 51 | fmt.Printf("\n") 52 | } 53 | fmt.Println(strings.Repeat("*", 80)) 54 | return nil 55 | } 56 | -------------------------------------------------------------------------------- /deploy/krew/fleet.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: krew.googlecontainertools.github.com/v1alpha2 2 | kind: Plugin 3 | metadata: 4 | name: fleet 5 | spec: 6 | version: {{ .TagName }} 7 | platforms: 8 | - selector: 9 | matchLabels: 10 | os: linux 11 | arch: amd64 12 | {{addURIAndSha "https://github.com/kubectl-plus/kcf/releases/download/{{ .TagName }}/fleet_linux_amd64.tar.gz" .TagName }} 13 | files: 14 | - from: "./fleet" 15 | to: "." 16 | - from: "./LICENSE" 17 | to: "." 18 | bin: "fleet" 19 | - selector: 20 | matchLabels: 21 | os: darwin 22 | arch: amd64 23 | {{addURIAndSha "https://github.com/kubectl-plus/kcf/releases/download/{{ .TagName }}/fleet_darwin_amd64.tar.gz" .TagName }} 24 | files: 25 | - from: "./fleet" 26 | to: "." 27 | - from: "./LICENSE" 28 | to: "." 29 | bin: "fleet" 30 | - selector: 31 | matchLabels: 32 | os: windows 33 | arch: amd64 34 | {{addURIAndSha "https://github.com/kubectl-plus/kcf/releases/download/{{ .TagName }}/fleet_windows_amd64.zip" .TagName }} 35 | files: 36 | - from: "/fleet.exe" 37 | to: "." 38 | - from: "./LICENSE" 39 | to: "." 40 | bin: "fleet.exe" 41 | shortDescription: Shows config and resources of a fleet of clusters 42 | homepage: https://github.com/kubectl-plus/kcf 43 | description: | 44 | Allows to get an overview and details on a fleet of Kubernetes clusters. 45 | The top-level command lists all active clusters found in the kubeconfig provided. 46 | For each cluster, configuration info such as the control plane version or 47 | API server endpoint are displayed, as well as select stats, for example, 48 | the number of worker nodes or namespaces found in the cluster. 49 | 50 | For additional options: 51 | $ kubectl fleet --help 52 | or https://github.com/kubectl-plus/kcf/blob/v0.1.4/doc/USAGE.md 53 | 54 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Kubernetes cluster fleet viewer 2 | 3 | Clusters are the new cattle and we should have tooling available that allows us to quickly get an idea what's going in a fleet of such clusters. 4 | 5 | ## What is this about? 6 | 7 | Meet `fleet`, a simple CLI tool that provides you with the status and configuration of a fleet of Kubernetes clusters. For example: 8 | 9 | ```sh 10 | $ kubectl fleet 11 | CLUSTER VERSION NODES NAMESPACES PROVIDER API 12 | kind-kind-3 v1.16.3 1/1 4 kind https://127.0.0.1:32769 13 | test-cluster-2 v1.16.2 1/1 4 minikube https://192.168.64.4:8443 14 | kind-test2 v1.16.3 1/1 4 kind https://127.0.0.1:32768 15 | minikube v1.16.2 1/1 4 minikube https://192.168.64.3:8443 16 | gke_krew-release-bot-260708_us-central1-a_standard-cluster-1 v1.15.8-gke.3 3/3 4 GKE https://104.197.42.183 17 | do-sfo2-k8s-1-16-6-do-0-sfo2-1581265844177 v1.16.6 3/3 4 Digital Ocean https://f048f314-4f77-47c2-9264-764da91d35e0.k8s.ondigitalocean.com 18 | ``` 19 | 20 | Above, you see `fleet` used as a `kubectl` plugin, available via [krew](http://krew.dev/). 21 | The top-level command lists all active clusters found in the [kubeconfig](https://kubernetes.io/docs/concepts/configuration/organize-cluster-access-kubeconfig/) 22 | provided. Active clusters are defined as the one that you would see when you'd execute 23 | the `kubectl config get-contexts` command. For each cluster, configuration info such as 24 | the control plane version or API server endpoint are displayed, as well as select 25 | stats, for example, the number of worker nodes or namespaces found in the cluster. 26 | 27 | Note that you can also use it standalone, simply download the binary for your platform 28 | from the [release page](https://github.com/kubectl-plus/kcf/releases). 29 | 30 | ## Getting started 31 | 32 | To get started, visit the [usage docs](doc/USAGE.md). 33 | 34 | 35 | -------------------------------------------------------------------------------- /pkg/fleet/details.go: -------------------------------------------------------------------------------- 1 | package fleet 2 | 3 | import ( 4 | "context" 5 | "fmt" 6 | "strings" 7 | 8 | "github.com/pkg/errors" 9 | v1 "k8s.io/api/core/v1" 10 | metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" 11 | "k8s.io/cli-runtime/pkg/genericclioptions" 12 | "k8s.io/client-go/tools/clientcmd/api" 13 | ) 14 | 15 | // Details creates a detailed report on a particular clusters in a fleet 16 | func Details(ctx context.Context, configFlags *genericclioptions.ConfigFlags, args []string) error { 17 | clientcfg := configFlags.ToRawKubeConfigLoader() 18 | cfg, err := clientcfg.RawConfig() 19 | if err != nil { 20 | return errors.Wrap(err, "Can't assemble raw config") 21 | } 22 | if len(args) < 1 { 23 | return errors.New("need a cluster to operate on, please provide the cluster name") 24 | } 25 | clusterID := args[0] 26 | cluster := cfg.Clusters[clusterID] 27 | if cluster == nil { 28 | return errors.New(fmt.Sprintf("cluster %q not found in kubeconfig", clusterID)) 29 | } 30 | 31 | fmt.Printf("API server endpoint: %v\n", cluster.Server) 32 | contextName := contextOf(cfg, clusterID) 33 | coreres, err := coreResDetails(ctx, cfg, contextName) 34 | if err != nil { 35 | return err 36 | } 37 | fmt.Printf("\n%v\n", coreres) 38 | return nil 39 | } 40 | 41 | // coreResDetails returns details about useful core resources in given context. 42 | // Useful core resources include pods, services, deployments, 43 | func coreResDetails(ctx context.Context, cfg api.Config, contextName string) (result string, err error) { 44 | cs, err := csForContext(cfg, contextName) 45 | if err != nil { 46 | return "", errors.Wrap(err, "Can't create a clientset based on config provided") 47 | } 48 | namespaces, err := cs.CoreV1().Namespaces().List(ctx, metav1.ListOptions{}) 49 | if err != nil { 50 | return "", errors.Wrap(err, "Can't get namespaces in cluster") 51 | } 52 | for _, ns := range namespaces.Items { 53 | nsname := ns.Name 54 | result += fmt.Sprintf("# namespace [%v]\n", nsname) 55 | // pod stats in namespace: 56 | pods, err := cs.CoreV1().Pods(nsname).List(ctx, metav1.ListOptions{}) 57 | if err != nil { 58 | return "", errors.Wrap(err, "Can't get pods") 59 | } 60 | switch len(pods.Items) { 61 | case 0: 62 | result += fmt.Sprintf("has no pods\n") 63 | default: 64 | result += fmt.Sprintf("has %v pod(s) overall:\n", len(pods.Items)) 65 | for _, pod := range pods.Items { 66 | result += fmt.Sprintf("- %v", podInfo(pod)) 67 | } 68 | } 69 | // service stats in namespace: 70 | svcs, err := cs.CoreV1().Services(nsname).List(ctx, metav1.ListOptions{}) 71 | if err != nil { 72 | return "", errors.Wrap(err, "Can't get services") 73 | } 74 | switch len(svcs.Items) { 75 | case 0: 76 | result += fmt.Sprintf("has no services\n") 77 | default: 78 | result += fmt.Sprintf("has %v service(s) overall:\n", len(svcs.Items)) 79 | for _, svc := range svcs.Items { 80 | result += fmt.Sprintf("- %v", svcInfo(svc)) 81 | } 82 | } 83 | // mark end of namespace stats: 84 | result += strings.Repeat("-", 80) + "\n\n" 85 | } 86 | return result, nil 87 | } 88 | 89 | // podInfo renders details of the status and config of a pod given 90 | func podInfo(pod v1.Pod) (result string) { 91 | podname := pod.Name 92 | podstatus := strings.ToLower(string(pod.Status.Phase)) 93 | images := "" 94 | for _, container := range pod.Spec.Containers { 95 | images += fmt.Sprintf("%v ", container.Image) 96 | } 97 | result += fmt.Sprintf("pod [%v] is %v and uses image(s) %v\n", podname, podstatus, images) 98 | return result 99 | } 100 | 101 | // svcInfo renders details of the status and config of a service given 102 | func svcInfo(svc v1.Service) (result string) { 103 | svcname := svc.Name 104 | svctype := svc.Spec.Type 105 | svcclusterip := svc.Spec.ClusterIP 106 | ports := "" 107 | for _, port := range svc.Spec.Ports { 108 | ports += fmt.Sprintf(" %v %v/%v", port.Name, port.Protocol, port.Port) 109 | } 110 | result += fmt.Sprintf("service [%v] of type %v uses IP %v and port(s)%v\n", svcname, svctype, svcclusterip, ports) 111 | return result 112 | } 113 | -------------------------------------------------------------------------------- /go.mod: -------------------------------------------------------------------------------- 1 | module github.com/kubectl-plus/kcf 2 | 3 | go 1.23 4 | 5 | require ( 6 | github.com/fatih/color v1.17.0 7 | github.com/pkg/errors v0.9.1 8 | github.com/spf13/cobra v1.8.1 9 | github.com/spf13/viper v1.19.0 10 | k8s.io/api v0.31.1 11 | k8s.io/apimachinery v0.31.1 12 | k8s.io/cli-runtime v0.31.1 13 | k8s.io/client-go v0.31.1 14 | ) 15 | 16 | require ( 17 | github.com/Azure/go-ansiterm v0.0.0-20230124172434-306776ec8161 // indirect 18 | github.com/blang/semver/v4 v4.0.0 // indirect 19 | github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect 20 | github.com/emicklei/go-restful/v3 v3.12.1 // indirect 21 | github.com/fsnotify/fsnotify v1.7.0 // indirect 22 | github.com/fxamacker/cbor/v2 v2.7.0 // indirect 23 | github.com/go-errors/errors v1.5.1 // indirect 24 | github.com/go-logr/logr v1.4.2 // indirect 25 | github.com/go-openapi/jsonpointer v0.21.0 // indirect 26 | github.com/go-openapi/jsonreference v0.21.0 // indirect 27 | github.com/go-openapi/swag v0.23.0 // indirect 28 | github.com/gogo/protobuf v1.3.2 // indirect 29 | github.com/golang/protobuf v1.5.4 // indirect 30 | github.com/google/btree v1.1.3 // indirect 31 | github.com/google/gnostic-models v0.6.8 // indirect 32 | github.com/google/go-cmp v0.6.0 // indirect 33 | github.com/google/gofuzz v1.2.0 // indirect 34 | github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510 // indirect 35 | github.com/google/uuid v1.6.0 // indirect 36 | github.com/gregjones/httpcache v0.0.0-20190611155906-901d90724c79 // indirect 37 | github.com/hashicorp/hcl v1.0.0 // indirect 38 | github.com/imdario/mergo v0.3.16 // indirect 39 | github.com/inconshreveable/mousetrap v1.1.0 // indirect 40 | github.com/josharian/intern v1.0.0 // indirect 41 | github.com/json-iterator/go v1.1.12 // indirect 42 | github.com/liggitt/tabwriter v0.0.0-20181228230101-89fcab3d43de // indirect 43 | github.com/magiconair/properties v1.8.7 // indirect 44 | github.com/mailru/easyjson v0.7.7 // indirect 45 | github.com/mattn/go-colorable v0.1.13 // indirect 46 | github.com/mattn/go-isatty v0.0.20 // indirect 47 | github.com/mitchellh/mapstructure v1.5.0 // indirect 48 | github.com/moby/term v0.5.0 // indirect 49 | github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect 50 | github.com/modern-go/reflect2 v1.0.2 // indirect 51 | github.com/monochromegane/go-gitignore v0.0.0-20200626010858-205db1a8cc00 // indirect 52 | github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect 53 | github.com/pelletier/go-toml/v2 v2.2.3 // indirect 54 | github.com/peterbourgon/diskv v2.0.1+incompatible // indirect 55 | github.com/sagikazarmark/locafero v0.6.0 // indirect 56 | github.com/sagikazarmark/slog-shim v0.1.0 // indirect 57 | github.com/sourcegraph/conc v0.3.0 // indirect 58 | github.com/spf13/afero v1.11.0 // indirect 59 | github.com/spf13/cast v1.7.0 // indirect 60 | github.com/spf13/pflag v1.0.5 // indirect 61 | github.com/subosito/gotenv v1.6.0 // indirect 62 | github.com/x448/float16 v0.8.4 // indirect 63 | github.com/xlab/treeprint v1.2.0 // indirect 64 | go.starlark.net v0.0.0-20240725214946-42030a7cedce // indirect 65 | go.uber.org/multierr v1.11.0 // indirect 66 | golang.org/x/exp v0.0.0-20240909161429-701f63a606c0 // indirect 67 | golang.org/x/net v0.29.0 // indirect 68 | golang.org/x/oauth2 v0.23.0 // indirect 69 | golang.org/x/sync v0.8.0 // indirect 70 | golang.org/x/sys v0.25.0 // indirect 71 | golang.org/x/term v0.24.0 // indirect 72 | golang.org/x/text v0.18.0 // indirect 73 | golang.org/x/time v0.6.0 // indirect 74 | google.golang.org/protobuf v1.34.2 // indirect 75 | gopkg.in/evanphx/json-patch.v4 v4.12.0 // indirect 76 | gopkg.in/inf.v0 v0.9.1 // indirect 77 | gopkg.in/ini.v1 v1.67.0 // indirect 78 | gopkg.in/yaml.v2 v2.4.0 // indirect 79 | gopkg.in/yaml.v3 v3.0.1 // indirect 80 | k8s.io/klog/v2 v2.130.1 // indirect 81 | k8s.io/kube-openapi v0.0.0-20240903163716-9e1beecbcb38 // indirect 82 | k8s.io/utils v0.0.0-20240921022957-49e7df575cb6 // indirect 83 | sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect 84 | sigs.k8s.io/kustomize/api v0.17.3 // indirect 85 | sigs.k8s.io/kustomize/kyaml v0.17.2 // indirect 86 | sigs.k8s.io/structured-merge-diff/v4 v4.4.1 // indirect 87 | sigs.k8s.io/yaml v1.4.0 // indirect 88 | ) 89 | -------------------------------------------------------------------------------- /pkg/fleet/overview.go: -------------------------------------------------------------------------------- 1 | package fleet 2 | 3 | import ( 4 | "context" 5 | "fmt" 6 | "os" 7 | "strings" 8 | "text/tabwriter" 9 | 10 | "github.com/pkg/errors" 11 | metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" 12 | "k8s.io/cli-runtime/pkg/genericclioptions" 13 | "k8s.io/client-go/tools/clientcmd/api" 14 | ) 15 | 16 | // Overview creates an tabular overview of all the clusters in a fleet. 17 | // A fleet is defined as the active clusters in the kubeconfig provided, that 18 | // is, what you see when you execute: kubectl config get-contexts 19 | func Overview(ctx context.Context, configFlags *genericclioptions.ConfigFlags) error { 20 | clientcfg := configFlags.ToRawKubeConfigLoader() 21 | cfg, err := clientcfg.RawConfig() 22 | if err != nil { 23 | return errors.Wrap(err, "Can't assemble raw config") 24 | } 25 | w := tabwriter.NewWriter(os.Stdout, 0, 0, 1, ' ', 0) 26 | fmt.Fprintln(w, "CLUSTER\tVERSION\tNODES\tNAMESPACES\tPROVIDER\tAPI") 27 | for name, context := range cfg.Contexts { 28 | cluster := cfg.Clusters[context.Cluster] 29 | clusterVersion, err := clusterVersion(cfg, name) 30 | if err != nil { 31 | clusterVersion = "?" 32 | } 33 | noinfo, err := nodesOverview(ctx, cfg, name) 34 | if err != nil { 35 | noinfo = "?" 36 | } 37 | nsinfo, err := nsOverview(ctx, cfg, name) 38 | if err != nil { 39 | nsinfo = "?" 40 | } 41 | apiServerEndpoint := "?" 42 | if cluster != nil { 43 | apiServerEndpoint = cluster.Server 44 | } 45 | provider := getProvider(ctx, cfg, name) 46 | 47 | fmt.Fprintln(w, fmt.Sprintf("%v\t%v\t%v\t%v\t%v\t%v", context.Cluster, clusterVersion, noinfo, nsinfo, provider, apiServerEndpoint)) 48 | } 49 | w.Flush() 50 | return nil 51 | } 52 | 53 | // clusterVersion returns the cluster version in given context 54 | func clusterVersion(cfg api.Config, context string) (string, error) { 55 | cs, err := csForContext(cfg, context) 56 | if err != nil { 57 | return "", errors.Wrap(err, "Can't create a clientset based on config provided") 58 | } 59 | cversion, err := cs.Discovery().ServerVersion() 60 | if err != nil { 61 | return "", errors.Wrap(err, "Can't get cluster server version") 62 | } 63 | return fmt.Sprintf("%s", cversion), nil 64 | } 65 | 66 | // nodesOverview returns the cluster's worker nodes overview in given context 67 | func nodesOverview(ctx context.Context, cfg api.Config, contextName string) (string, error) { 68 | cs, err := csForContext(cfg, contextName) 69 | if err != nil { 70 | return "", errors.Wrap(err, "Can't create a clientset based on config provided") 71 | } 72 | nodes, err := cs.CoreV1().Nodes().List(ctx, metav1.ListOptions{}) 73 | nodeCount := len(nodes.Items) 74 | readyCount := 0 75 | for _, node := range nodes.Items { 76 | for _, nodeCondition := range node.Status.Conditions { 77 | if nodeCondition.Type == "Ready" { 78 | if nodeCondition.Status == "True" { 79 | readyCount++ 80 | } 81 | break 82 | } 83 | } 84 | } 85 | if err != nil { 86 | return "", errors.Wrap(err, "Can't get nodes in cluster") 87 | } 88 | noverview := fmt.Sprintf("%v/%v", readyCount, nodeCount) 89 | return noverview, nil 90 | } 91 | 92 | // nsOverview returns the cluster's namespaces overview in given context 93 | func nsOverview(ctx context.Context, cfg api.Config, contextName string) (string, error) { 94 | cs, err := csForContext(cfg, contextName) 95 | if err != nil { 96 | return "", errors.Wrap(err, "Can't create a clientset based on config provided") 97 | } 98 | ns, err := cs.CoreV1().Namespaces().List(ctx, metav1.ListOptions{}) 99 | if err != nil { 100 | return "", errors.Wrap(err, "Can't get namespaces in cluster") 101 | } 102 | nsverview := fmt.Sprintf("%v", len(ns.Items)) 103 | return nsverview, nil 104 | } 105 | 106 | func getProvider(ctx context.Context, cfg api.Config, contextName string) string { 107 | context := cfg.Contexts[contextName] 108 | if context == nil { 109 | return "?" 110 | } 111 | 112 | apiServerEndpoint := cfg.Clusters[context.Cluster].Server 113 | switch { 114 | case strings.HasPrefix(contextName, "kind-"): 115 | return "kind" 116 | case strings.HasPrefix(contextName, "gke"): 117 | return "GKE" 118 | case strings.Contains(apiServerEndpoint, "amazon"): 119 | return "AWS" 120 | case strings.Contains(apiServerEndpoint, "ondigitalocean"): 121 | return "Digital Ocean" 122 | case strings.Contains(apiServerEndpoint, "azmk8s.io"): 123 | return "Microsoft AKS" 124 | case strings.HasSuffix(apiServerEndpoint, "k8s.ovh.net"): 125 | return "OVHcloud" 126 | default: 127 | provider, err := getProviderFromNodeMetadata(ctx, cfg, contextName) 128 | if err != nil { 129 | return "?" 130 | } 131 | 132 | return provider 133 | } 134 | } 135 | 136 | func getProviderFromNodeMetadata(ctx context.Context, cfg api.Config, contextName string) (string, error) { 137 | cs, err := csForContext(cfg, contextName) 138 | if err != nil { 139 | return "", errors.Wrap(err, "Can't create a clientset based on config provided") 140 | } 141 | 142 | nodes, err := cs.CoreV1().Nodes().List(ctx, metav1.ListOptions{}) 143 | for _, node := range nodes.Items { 144 | if strings.Contains(node.Labels["kubernetes.io/hostname"], "minikube") { 145 | return "minikube", nil 146 | } 147 | } 148 | 149 | return "", fmt.Errorf("failed to identify provider from node metadata") 150 | } 151 | -------------------------------------------------------------------------------- /doc/USAGE.md: -------------------------------------------------------------------------------- 1 | # The `fleet` user manual 2 | 3 | ## Installation 4 | 5 | Most typically, you'd want to install `fleet` as a `kubectl` plugin. 6 | In order to be able to do that, make sure you have [krew installed](https://github.com/kubernetes-sigs/krew/#installation) and then you can install `fleet` as follows: 7 | 8 | ```sh 9 | $ kubectl krew install fleet 10 | ``` 11 | 12 | If the installation fails, check if `krew` is available on your local system 13 | and also, make sure you're using the most recent index (run `kubectl krew update`) to ensure this. 14 | 15 | ## Usage 16 | 17 | There are two levels `fleet` operates on: the top-level command, without any 18 | further sub-commands, operates on all the clusters in your fleet 19 | (all clusters in your contexts, that is, what you see when you execute 20 | `kubectl config get-contexts`). If a sub-command such as `details` or `resources` 21 | is provided, it operates on a particular cluster and hence the name of the 22 | cluster to use needs to be specified. 23 | 24 | ### Getting an overview of the fleet 25 | 26 | To get an overview of your entire fleet, do: 27 | 28 | ```sh 29 | $ kubectl fleet 30 | CLUSTER VERSION NODES NAMESPACES PROVIDER API 31 | kind-kind-3 v1.16.3 1/1 4 kind https://127.0.0.1:32769 32 | test-cluster-2 v1.16.2 1/1 4 minikube https://192.168.64.4:8443 33 | kind-test2 v1.16.3 1/1 4 kind https://127.0.0.1:32768 34 | minikube v1.16.2 1/1 4 minikube https://192.168.64.3:8443 35 | gke_krew-release-bot-260708_us-central1-a_standard-cluster-1 v1.15.8-gke.3 3/3 4 GKE https://104.197.42.183 36 | do-sfo2-k8s-1-16-6-do-0-sfo2-1581265844177 v1.16.6 3/3 4 Digital Ocean https://f048f314-4f77-47c2-9264-764da91d35e0.k8s.ondigitalocean.com 37 | ``` 38 | 39 | ### Exploring clusters in the fleet 40 | 41 | If you're interested in what is running in a specific cluster in your fleet, 42 | use the `details` sub-command like so: 43 | 44 | ```sh 45 | $ kubectl fleet details kind-mh9local 46 | API server endpoint: https://127.0.0.1:51366 47 | 48 | # namespace [default] 49 | has no pods 50 | has 1 service(s) overall: 51 | - service [kubernetes] of type ClusterIP uses IP 10.96.0.1 and port(s) https TCP/443 52 | -------------------------------------------------------------------------------- 53 | 54 | # namespace [kube-node-lease] 55 | has no pods 56 | has no services 57 | -------------------------------------------------------------------------------- 58 | 59 | # namespace [kube-public] 60 | has no pods 61 | has no services 62 | -------------------------------------------------------------------------------- 63 | 64 | # namespace [kube-system] 65 | has 8 pod(s) overall: 66 | - pod [coredns-5644d7b6d9-kwzw7] is running and uses image(s) k8s.gcr.io/coredns:1.6.2 67 | - pod [coredns-5644d7b6d9-x5nn5] is running and uses image(s) k8s.gcr.io/coredns:1.6.2 68 | - pod [etcd-mh9local-control-plane] is running and uses image(s) k8s.gcr.io/etcd:3.3.15-0 69 | - pod [kindnet-4df5j] is running and uses image(s) kindest/kindnetd:0.5.3@sha256:bc1833b3da442bb639008dd5a62861a0419d3f64b58fce6fb38b749105232555 70 | - pod [kube-apiserver-mh9local-control-plane] is running and uses image(s) k8s.gcr.io/kube-apiserver:v1.16.3 71 | - pod [kube-controller-manager-mh9local-control-plane] is running and uses image(s) k8s.gcr.io/kube-controller-manager:v1.16.3 72 | - pod [kube-proxy-j5dtw] is running and uses image(s) k8s.gcr.io/kube-proxy:v1.16.3 73 | - pod [kube-scheduler-mh9local-control-plane] is running and uses image(s) k8s.gcr.io/kube-scheduler:v1.16.3 74 | has 1 service(s) overall: 75 | - service [kube-dns] of type ClusterIP uses IP 10.96.0.10 and port(s) dns UDP/53 dns-tcp TCP/53 metrics TCP/9153 76 | -------------------------------------------------------------------------------- 77 | ``` 78 | 79 | If you want to learn what kinds of resources are supported in a specific cluster 80 | then you'd use the `resources` sub-command as shown below: 81 | 82 | ```sh 83 | $ kubectl fleet resources kind-mh9local 84 | Resources supported in this cluster: 85 | -------------------------------------------------------------------------------- 86 | v1: 87 | bindings (namespaced: true) componentstatuses (namespaced: false) configmaps (namespaced: true) endpoints (namespaced: true) events (namespaced: true) limitranges (namespaced: true) namespaces (namespaced: false) nodes (namespaced: false 88 | ) persistentvolumeclaims (namespaced: true) persistentvolumes (namespaced: false) pods (namespaced: true) podtemplates (namespaced: true) replicationcontrollers (namespaced: true) resourcequotas (namespaced: true) secrets (namespaced: tru 89 | e) serviceaccounts (namespaced: true) services (namespaced: true) 90 | -------------------------------------------------------------------------------- 91 | apiregistration.k8s.io/v1: 92 | apiservices (namespaced: false) 93 | -------------------------------------------------------------------------------- 94 | 95 | ... 96 | 97 | coordination.k8s.io/v1: 98 | leases (namespaced: true) 99 | -------------------------------------------------------------------------------- 100 | coordination.k8s.io/v1beta1: 101 | leases (namespaced: true) 102 | -------------------------------------------------------------------------------- 103 | node.k8s.io/v1beta1: 104 | runtimeclasses (namespaced: false) 105 | ******************************************************************************** 106 | ``` 107 | 108 | It's in general a good idea, for above `resources` command, to pipe it through 109 | `less` … because less is more ;). 110 | 111 | 112 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | 5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 6 | 7 | 1. Definitions. 8 | 9 | "License" shall mean the terms and conditions for use, reproduction, 10 | and distribution as defined by Sections 1 through 9 of this document. 11 | 12 | "Licensor" shall mean the copyright owner or entity authorized by 13 | the copyright owner that is granting the License. 14 | 15 | "Legal Entity" shall mean the union of the acting entity and all 16 | other entities that control, are controlled by, or are under common 17 | control with that entity. For the purposes of this definition, 18 | "control" means (i) the power, direct or indirect, to cause the 19 | direction or management of such entity, whether by contract or 20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 21 | outstanding shares, or (iii) beneficial ownership of such entity. 22 | 23 | "You" (or "Your") shall mean an individual or Legal Entity 24 | exercising permissions granted by this License. 25 | 26 | "Source" form shall mean the preferred form for making modifications, 27 | including but not limited to software source code, documentation 28 | source, and configuration files. 29 | 30 | "Object" form shall mean any form resulting from mechanical 31 | transformation or translation of a Source form, including but 32 | not limited to compiled object code, generated documentation, 33 | and conversions to other media types. 34 | 35 | "Work" shall mean the work of authorship, whether in Source or 36 | Object form, made available under the License, as indicated by a 37 | copyright notice that is included in or attached to the work 38 | (an example is provided in the Appendix below). 39 | 40 | "Derivative Works" shall mean any work, whether in Source or Object 41 | form, that is based on (or derived from) the Work and for which the 42 | editorial revisions, annotations, elaborations, or other modifications 43 | represent, as a whole, an original work of authorship. For the purposes 44 | of this License, Derivative Works shall not include works that remain 45 | separable from, or merely link (or bind by name) to the interfaces of, 46 | the Work and Derivative Works thereof. 47 | 48 | "Contribution" shall mean any work of authorship, including 49 | the original version of the Work and any modifications or additions 50 | to that Work or Derivative Works thereof, that is intentionally 51 | submitted to Licensor for inclusion in the Work by the copyright owner 52 | or by an individual or Legal Entity authorized to submit on behalf of 53 | the copyright owner. For the purposes of this definition, "submitted" 54 | means any form of electronic, verbal, or written communication sent 55 | to the Licensor or its representatives, including but not limited to 56 | communication on electronic mailing lists, source code control systems, 57 | and issue tracking systems that are managed by, or on behalf of, the 58 | Licensor for the purpose of discussing and improving the Work, but 59 | excluding communication that is conspicuously marked or otherwise 60 | designated in writing by the copyright owner as "Not a Contribution." 61 | 62 | "Contributor" shall mean Licensor and any individual or Legal Entity 63 | on behalf of whom a Contribution has been received by Licensor and 64 | subsequently incorporated within the Work. 65 | 66 | 2. Grant of Copyright License. Subject to the terms and conditions of 67 | this License, each Contributor hereby grants to You a perpetual, 68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 69 | copyright license to reproduce, prepare Derivative Works of, 70 | publicly display, publicly perform, sublicense, and distribute the 71 | Work and such Derivative Works in Source or Object form. 72 | 73 | 3. Grant of Patent License. Subject to the terms and conditions of 74 | this License, each Contributor hereby grants to You a perpetual, 75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 76 | (except as stated in this section) patent license to make, have made, 77 | use, offer to sell, sell, import, and otherwise transfer the Work, 78 | where such license applies only to those patent claims licensable 79 | by such Contributor that are necessarily infringed by their 80 | Contribution(s) alone or by combination of their Contribution(s) 81 | with the Work to which such Contribution(s) was submitted. If You 82 | institute patent litigation against any entity (including a 83 | cross-claim or counterclaim in a lawsuit) alleging that the Work 84 | or a Contribution incorporated within the Work constitutes direct 85 | or contributory patent infringement, then any patent licenses 86 | granted to You under this License for that Work shall terminate 87 | as of the date such litigation is filed. 88 | 89 | 4. Redistribution. You may reproduce and distribute copies of the 90 | Work or Derivative Works thereof in any medium, with or without 91 | modifications, and in Source or Object form, provided that You 92 | meet the following conditions: 93 | 94 | (a) You must give any other recipients of the Work or 95 | Derivative Works a copy of this License; and 96 | 97 | (b) You must cause any modified files to carry prominent notices 98 | stating that You changed the files; and 99 | 100 | (c) You must retain, in the Source form of any Derivative Works 101 | that You distribute, all copyright, patent, trademark, and 102 | attribution notices from the Source form of the Work, 103 | excluding those notices that do not pertain to any part of 104 | the Derivative Works; and 105 | 106 | (d) If the Work includes a "NOTICE" text file as part of its 107 | distribution, then any Derivative Works that You distribute must 108 | include a readable copy of the attribution notices contained 109 | within such NOTICE file, excluding those notices that do not 110 | pertain to any part of the Derivative Works, in at least one 111 | of the following places: within a NOTICE text file distributed 112 | as part of the Derivative Works; within the Source form or 113 | documentation, if provided along with the Derivative Works; or, 114 | within a display generated by the Derivative Works, if and 115 | wherever such third-party notices normally appear. The contents 116 | of the NOTICE file are for informational purposes only and 117 | do not modify the License. You may add Your own attribution 118 | notices within Derivative Works that You distribute, alongside 119 | or as an addendum to the NOTICE text from the Work, provided 120 | that such additional attribution notices cannot be construed 121 | as modifying the License. 122 | 123 | You may add Your own copyright statement to Your modifications and 124 | may provide additional or different license terms and conditions 125 | for use, reproduction, or distribution of Your modifications, or 126 | for any such Derivative Works as a whole, provided Your use, 127 | reproduction, and distribution of the Work otherwise complies with 128 | the conditions stated in this License. 129 | 130 | 5. Submission of Contributions. Unless You explicitly state otherwise, 131 | any Contribution intentionally submitted for inclusion in the Work 132 | by You to the Licensor shall be under the terms and conditions of 133 | this License, without any additional terms or conditions. 134 | Notwithstanding the above, nothing herein shall supersede or modify 135 | the terms of any separate license agreement you may have executed 136 | with Licensor regarding such Contributions. 137 | 138 | 6. Trademarks. This License does not grant permission to use the trade 139 | names, trademarks, service marks, or product names of the Licensor, 140 | except as required for reasonable and customary use in describing the 141 | origin of the Work and reproducing the content of the NOTICE file. 142 | 143 | 7. Disclaimer of Warranty. Unless required by applicable law or 144 | agreed to in writing, Licensor provides the Work (and each 145 | Contributor provides its Contributions) on an "AS IS" BASIS, 146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 147 | implied, including, without limitation, any warranties or conditions 148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 149 | PARTICULAR PURPOSE. You are solely responsible for determining the 150 | appropriateness of using or redistributing the Work and assume any 151 | risks associated with Your exercise of permissions under this License. 152 | 153 | 8. Limitation of Liability. In no event and under no legal theory, 154 | whether in tort (including negligence), contract, or otherwise, 155 | unless required by applicable law (such as deliberate and grossly 156 | negligent acts) or agreed to in writing, shall any Contributor be 157 | liable to You for damages, including any direct, indirect, special, 158 | incidental, or consequential damages of any character arising as a 159 | result of this License or out of the use or inability to use the 160 | Work (including but not limited to damages for loss of goodwill, 161 | work stoppage, computer failure or malfunction, or any and all 162 | other commercial damages or losses), even if such Contributor 163 | has been advised of the possibility of such damages. 164 | 165 | 9. Accepting Warranty or Additional Liability. While redistributing 166 | the Work or Derivative Works thereof, You may choose to offer, 167 | and charge a fee for, acceptance of support, warranty, indemnity, 168 | or other liability obligations and/or rights consistent with this 169 | License. However, in accepting such obligations, You may act only 170 | on Your own behalf and on Your sole responsibility, not on behalf 171 | of any other Contributor, and only if You agree to indemnify, 172 | defend, and hold each Contributor harmless for any liability 173 | incurred by, or claims asserted against, such Contributor by reason 174 | of your accepting any such warranty or additional liability. 175 | 176 | END OF TERMS AND CONDITIONS 177 | 178 | APPENDIX: How to apply the Apache License to your work. 179 | 180 | To apply the Apache License to your work, attach the following 181 | boilerplate notice, with the fields enclosed by brackets "[]" 182 | replaced with your own identifying information. (Don't include 183 | the brackets!) The text should be enclosed in the appropriate 184 | comment syntax for the file format. We also recommend that a 185 | file or class name and description of purpose be included on the 186 | same "printed page" as the copyright notice for easier 187 | identification within third-party archives. 188 | 189 | Copyright 2019 Replicated, Inc. 190 | 191 | Licensed under the Apache License, Version 2.0 (the "License"); 192 | you may not use this file except in compliance with the License. 193 | You may obtain a copy of the License at 194 | 195 | http://www.apache.org/licenses/LICENSE-2.0 196 | 197 | Unless required by applicable law or agreed to in writing, software 198 | distributed under the License is distributed on an "AS IS" BASIS, 199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 200 | See the License for the specific language governing permissions and 201 | limitations under the License. 202 | -------------------------------------------------------------------------------- /go.sum: -------------------------------------------------------------------------------- 1 | github.com/Azure/go-ansiterm v0.0.0-20230124172434-306776ec8161 h1:L/gRVlceqvL25UVaW/CKtUDjefjrs0SPonmDGUVOYP0= 2 | github.com/Azure/go-ansiterm v0.0.0-20230124172434-306776ec8161/go.mod h1:xomTg63KZ2rFqZQzSB4Vz2SUXa1BpHTVz9L5PTmPC4E= 3 | github.com/blang/semver/v4 v4.0.0 h1:1PFHFE6yCCTv8C1TeyNNarDzntLi7wMI5i/pzqYIsAM= 4 | github.com/blang/semver/v4 v4.0.0/go.mod h1:IbckMUScFkM3pff0VJDNKRiT6TG/YpiHIM2yvyW5YoQ= 5 | github.com/cpuguy83/go-md2man/v2 v2.0.4/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= 6 | github.com/creack/pty v1.1.18 h1:n56/Zwd5o6whRC5PMGretI4IdRLlmBXYNjScPaBgsbY= 7 | github.com/creack/pty v1.1.18/go.mod h1:MOBLtS5ELjhRRrroQr9kyvTxUAFNvYEK993ew/Vr4O4= 8 | github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= 9 | github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= 10 | github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc h1:U9qPSI2PIWSS1VwoXQT9A3Wy9MM3WgvqSxFWenqJduM= 11 | github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= 12 | github.com/emicklei/go-restful/v3 v3.12.1 h1:PJMDIM/ak7btuL8Ex0iYET9hxM3CI2sjZtzpL63nKAU= 13 | github.com/emicklei/go-restful/v3 v3.12.1/go.mod h1:6n3XBCmQQb25CM2LCACGz8ukIrRry+4bhvbpWn3mrbc= 14 | github.com/fatih/color v1.17.0 h1:GlRw1BRJxkpqUCBKzKOw098ed57fEsKeNjpTe3cSjK4= 15 | github.com/fatih/color v1.17.0/go.mod h1:YZ7TlrGPkiz6ku9fK3TLD/pl3CpsiFyu8N92HLgmosI= 16 | github.com/frankban/quicktest v1.14.6 h1:7Xjx+VpznH+oBnejlPUj8oUpdxnVs4f8XU8WnHkI4W8= 17 | github.com/frankban/quicktest v1.14.6/go.mod h1:4ptaffx2x8+WTWXmUCuVU6aPUX1/Mz7zb5vbUoiM6w0= 18 | github.com/fsnotify/fsnotify v1.7.0 h1:8JEhPFa5W2WU7YfeZzPNqzMP6Lwt7L2715Ggo0nosvA= 19 | github.com/fsnotify/fsnotify v1.7.0/go.mod h1:40Bi/Hjc2AVfZrqy+aj+yEI+/bRxZnMJyTJwOpGvigM= 20 | github.com/fxamacker/cbor/v2 v2.7.0 h1:iM5WgngdRBanHcxugY4JySA0nk1wZorNOpTgCMedv5E= 21 | github.com/fxamacker/cbor/v2 v2.7.0/go.mod h1:pxXPTn3joSm21Gbwsv0w9OSA2y1HFR9qXEeXQVeNoDQ= 22 | github.com/go-errors/errors v1.5.1 h1:ZwEMSLRCapFLflTpT7NKaAc7ukJ8ZPEjzlxt8rPN8bk= 23 | github.com/go-errors/errors v1.5.1/go.mod h1:sIVyrIiJhuEF+Pj9Ebtd6P/rEYROXFi3BopGUQ5a5Og= 24 | github.com/go-logr/logr v1.4.2 h1:6pFjapn8bFcIbiKo3XT4j/BhANplGihG6tvd+8rYgrY= 25 | github.com/go-logr/logr v1.4.2/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY= 26 | github.com/go-openapi/jsonpointer v0.21.0 h1:YgdVicSA9vH5RiHs9TZW5oyafXZFc6+2Vc1rr/O9oNQ= 27 | github.com/go-openapi/jsonpointer v0.21.0/go.mod h1:IUyH9l/+uyhIYQ/PXVA41Rexl+kOkAPDdXEYns6fzUY= 28 | github.com/go-openapi/jsonreference v0.21.0 h1:Rs+Y7hSXT83Jacb7kFyjn4ijOuVGSvOdF2+tg1TRrwQ= 29 | github.com/go-openapi/jsonreference v0.21.0/go.mod h1:LmZmgsrTkVg9LG4EaHeY8cBDslNPMo06cago5JNLkm4= 30 | github.com/go-openapi/swag v0.23.0 h1:vsEVJDUo2hPJ2tu0/Xc+4noaxyEffXNIs3cOULZ+GrE= 31 | github.com/go-openapi/swag v0.23.0/go.mod h1:esZ8ITTYEsH1V2trKHjAN8Ai7xHb8RV+YSZ577vPjgQ= 32 | github.com/go-task/slim-sprig/v3 v3.0.0 h1:sUs3vkvUymDpBKi3qH1YSqBQk9+9D/8M2mN1vB6EwHI= 33 | github.com/go-task/slim-sprig/v3 v3.0.0/go.mod h1:W848ghGpv3Qj3dhTPRyJypKRiqCdHZiAzKg9hl15HA8= 34 | github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q= 35 | github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q= 36 | github.com/golang/protobuf v1.5.4 h1:i7eJL8qZTpSEXOPTxNKhASYpMn+8e5Q6AdndVa1dWek= 37 | github.com/golang/protobuf v1.5.4/go.mod h1:lnTiLA8Wa4RWRcIUkrtSVa5nRhsEGBg48fD6rSs7xps= 38 | github.com/google/btree v1.1.3 h1:CVpQJjYgC4VbzxeGVHfvZrv1ctoYCAI8vbl07Fcxlyg= 39 | github.com/google/btree v1.1.3/go.mod h1:qOPhT0dTNdNzV6Z/lhRX0YXUafgPLFUh+gZMl761Gm4= 40 | github.com/google/gnostic-models v0.6.8 h1:yo/ABAfM5IMRsS1VnXjTBvUb61tFIHozhlYvRgGre9I= 41 | github.com/google/gnostic-models v0.6.8/go.mod h1:5n7qKqH0f5wFt+aWF8CW6pZLLNOfYuF5OpfBSENuI8U= 42 | github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= 43 | github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= 44 | github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= 45 | github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= 46 | github.com/google/gofuzz v1.2.0 h1:xRy4A+RhZaiKjJ1bPfwQ8sedCA+YS2YcCHW6ec7JMi0= 47 | github.com/google/gofuzz v1.2.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= 48 | github.com/google/pprof v0.0.0-20240727154555-813a5fbdbec8 h1:FKHo8hFI3A+7w0aUQuYXQ+6EN5stWmeY/AZqtM8xk9k= 49 | github.com/google/pprof v0.0.0-20240727154555-813a5fbdbec8/go.mod h1:K1liHPHnj73Fdn/EKuT8nrFqBihUSKXoLYU0BuatOYo= 50 | github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510 h1:El6M4kTTCOh6aBiKaUGG7oYTSPP8MxqL4YI3kZKwcP4= 51 | github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510/go.mod h1:pupxD2MaaD3pAXIBCelhxNneeOaAeabZDe5s4K6zSpQ= 52 | github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= 53 | github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= 54 | github.com/gregjones/httpcache v0.0.0-20190611155906-901d90724c79 h1:+ngKgrYPPJrOjhax5N+uePQ0Fh1Z7PheYoUI/0nzkPA= 55 | github.com/gregjones/httpcache v0.0.0-20190611155906-901d90724c79/go.mod h1:FecbI9+v66THATjSRHfNgh1IVFe/9kFxbXtjV0ctIMA= 56 | github.com/hashicorp/hcl v1.0.0 h1:0Anlzjpi4vEasTeNFn2mLJgTSwt0+6sfsiTG8qcWGx4= 57 | github.com/hashicorp/hcl v1.0.0/go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T20WEQ= 58 | github.com/imdario/mergo v0.3.16 h1:wwQJbIsHYGMUyLSPrEq1CT16AhnhNJQ51+4fdHUnCl4= 59 | github.com/imdario/mergo v0.3.16/go.mod h1:WBLT9ZmE3lPoWsEzCh9LPo3TiwVN+ZKEjmz+hD27ysY= 60 | github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8= 61 | github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw= 62 | github.com/josharian/intern v1.0.0 h1:vlS4z54oSdjm0bgjRigI+G1HpF+tI+9rE5LLzOg8HmY= 63 | github.com/josharian/intern v1.0.0/go.mod h1:5DoeVV0s6jJacbCEi61lwdGj/aVlrQvzHFFd8Hwg//Y= 64 | github.com/json-iterator/go v1.1.12 h1:PV8peI4a0ysnczrg+LtxykD8LfKY9ML6u2jnxaEnrnM= 65 | github.com/json-iterator/go v1.1.12/go.mod h1:e30LSqwooZae/UwlEbR2852Gd8hjQvJoHmT4TnhNGBo= 66 | github.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI2bnpBCr8= 67 | github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= 68 | github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= 69 | github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk= 70 | github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= 71 | github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= 72 | github.com/liggitt/tabwriter v0.0.0-20181228230101-89fcab3d43de h1:9TO3cAIGXtEhnIaL+V+BEER86oLrvS+kWobKpbJuye0= 73 | github.com/liggitt/tabwriter v0.0.0-20181228230101-89fcab3d43de/go.mod h1:zAbeS9B/r2mtpb6U+EI2rYA5OAXxsYw6wTamcNW+zcE= 74 | github.com/magiconair/properties v1.8.7 h1:IeQXZAiQcpL9mgcAe1Nu6cX9LLw6ExEHKjN0VQdvPDY= 75 | github.com/magiconair/properties v1.8.7/go.mod h1:Dhd985XPs7jluiymwWYZ0G4Z61jb3vdS329zhj2hYo0= 76 | github.com/mailru/easyjson v0.7.7 h1:UGYAvKxe3sBsEDzO8ZeWOSlIQfWFlxbzLZe7hwFURr0= 77 | github.com/mailru/easyjson v0.7.7/go.mod h1:xzfreul335JAWq5oZzymOObrkdz5UnU4kGfJJLY9Nlc= 78 | github.com/mattn/go-colorable v0.1.13 h1:fFA4WZxdEF4tXPZVKMLwD8oUnCTTo08duU7wxecdEvA= 79 | github.com/mattn/go-colorable v0.1.13/go.mod h1:7S9/ev0klgBDR4GtXTXX8a3vIGJpMovkB8vQcUbaXHg= 80 | github.com/mattn/go-isatty v0.0.16/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM= 81 | github.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWEY= 82 | github.com/mattn/go-isatty v0.0.20/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y= 83 | github.com/mitchellh/mapstructure v1.5.0 h1:jeMsZIYE/09sWLaz43PL7Gy6RuMjD2eJVyuac5Z2hdY= 84 | github.com/mitchellh/mapstructure v1.5.0/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= 85 | github.com/moby/term v0.5.0 h1:xt8Q1nalod/v7BqbG21f8mQPqH+xAaC9C3N3wfWbVP0= 86 | github.com/moby/term v0.5.0/go.mod h1:8FzsFHVUBGZdbDsJw/ot+X+d5HLUbvklYLJ9uGfcI3Y= 87 | github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= 88 | github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd h1:TRLaZ9cD/w8PVh93nsPXa1VrQ6jlwL5oN8l14QlcNfg= 89 | github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= 90 | github.com/modern-go/reflect2 v1.0.2 h1:xBagoLtFs94CBntxluKeaWgTMpvLxC4ur3nMaC9Gz0M= 91 | github.com/modern-go/reflect2 v1.0.2/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjYzDa0/r8luk= 92 | github.com/monochromegane/go-gitignore v0.0.0-20200626010858-205db1a8cc00 h1:n6/2gBQ3RWajuToeY6ZtZTIKv2v7ThUy5KKusIT0yc0= 93 | github.com/monochromegane/go-gitignore v0.0.0-20200626010858-205db1a8cc00/go.mod h1:Pm3mSP3c5uWn86xMLZ5Sa7JB9GsEZySvHYXCTK4E9q4= 94 | github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 h1:C3w9PqII01/Oq1c1nUAm88MOHcQC9l5mIlSMApZMrHA= 95 | github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822/go.mod h1:+n7T8mK8HuQTcFwEeznm/DIxMOiR9yIdICNftLE1DvQ= 96 | github.com/onsi/ginkgo/v2 v2.19.0 h1:9Cnnf7UHo57Hy3k6/m5k3dRfGTMXGvxhHFvkDTCTpvA= 97 | github.com/onsi/ginkgo/v2 v2.19.0/go.mod h1:rlwLi9PilAFJ8jCg9UE1QP6VBpd6/xj3SRC0d6TU0To= 98 | github.com/onsi/gomega v1.33.1 h1:dsYjIxxSR755MDmKVsaFQTE22ChNBcuuTWgkUDSubOk= 99 | github.com/onsi/gomega v1.33.1/go.mod h1:U4R44UsT+9eLIaYRB2a5qajjtQYn0hauxvRm16AVYg0= 100 | github.com/pelletier/go-toml/v2 v2.2.3 h1:YmeHyLY8mFWbdkNWwpr+qIL2bEqT0o95WSdkNHvL12M= 101 | github.com/pelletier/go-toml/v2 v2.2.3/go.mod h1:MfCQTFTvCcUyyvvwm1+G6H/jORL20Xlb6rzQu9GuUkc= 102 | github.com/peterbourgon/diskv v2.0.1+incompatible h1:UBdAOUP5p4RWqPBg048CAvpKN+vxiaj6gdUUzhl4XmI= 103 | github.com/peterbourgon/diskv v2.0.1+incompatible/go.mod h1:uqqh8zWWbv1HBMNONnaR/tNboyR3/BZd58JJSHlUSCU= 104 | github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= 105 | github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= 106 | github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= 107 | github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 h1:Jamvg5psRIccs7FGNTlIRMkT8wgtp5eCXdBlqhYGL6U= 108 | github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= 109 | github.com/rogpeppe/go-internal v1.12.0 h1:exVL4IDcn6na9z1rAb56Vxr+CgyK3nn3O+epU5NdKM8= 110 | github.com/rogpeppe/go-internal v1.12.0/go.mod h1:E+RYuTGaKKdloAfM02xzb0FW3Paa99yedzYV+kq4uf4= 111 | github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= 112 | github.com/sagikazarmark/locafero v0.6.0 h1:ON7AQg37yzcRPU69mt7gwhFEBwxI6P9T4Qu3N51bwOk= 113 | github.com/sagikazarmark/locafero v0.6.0/go.mod h1:77OmuIc6VTraTXKXIs/uvUxKGUXjE1GbemJYHqdNjX0= 114 | github.com/sagikazarmark/slog-shim v0.1.0 h1:diDBnUNK9N/354PgrxMywXnAwEr1QZcOr6gto+ugjYE= 115 | github.com/sagikazarmark/slog-shim v0.1.0/go.mod h1:SrcSrq8aKtyuqEI1uvTDTK1arOWRIczQRv+GVI1AkeQ= 116 | github.com/sergi/go-diff v1.2.0 h1:XU+rvMAioB0UC3q1MFrIQy4Vo5/4VsRDQQXHsEya6xQ= 117 | github.com/sergi/go-diff v1.2.0/go.mod h1:STckp+ISIX8hZLjrqAeVduY0gWCT9IjLuqbuNXdaHfM= 118 | github.com/sourcegraph/conc v0.3.0 h1:OQTbbt6P72L20UqAkXXuLOj79LfEanQ+YQFNpLA9ySo= 119 | github.com/sourcegraph/conc v0.3.0/go.mod h1:Sdozi7LEKbFPqYX2/J+iBAM6HpqSLTASQIKqDmF7Mt0= 120 | github.com/spf13/afero v1.11.0 h1:WJQKhtpdm3v2IzqG8VMqrr6Rf3UYpEF239Jy9wNepM8= 121 | github.com/spf13/afero v1.11.0/go.mod h1:GH9Y3pIexgf1MTIWtNGyogA5MwRIDXGUr+hbWNoBjkY= 122 | github.com/spf13/cast v1.7.0 h1:ntdiHjuueXFgm5nzDRdOS4yfT43P5Fnud6DH50rz/7w= 123 | github.com/spf13/cast v1.7.0/go.mod h1:ancEpBxwJDODSW/UG4rDrAqiKolqNNh2DX3mk86cAdo= 124 | github.com/spf13/cobra v1.8.1 h1:e5/vxKd/rZsfSJMUX1agtjeTDf+qv1/JdBF8gg5k9ZM= 125 | github.com/spf13/cobra v1.8.1/go.mod h1:wHxEcudfqmLYa8iTfL+OuZPbBZkmvliBWKIezN3kD9Y= 126 | github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA= 127 | github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= 128 | github.com/spf13/viper v1.19.0 h1:RWq5SEjt8o25SROyN3z2OrDB9l7RPd3lwTWU8EcEdcI= 129 | github.com/spf13/viper v1.19.0/go.mod h1:GQUN9bilAbhU/jgc1bKs99f/suXKeUMct8Adx5+Ntkg= 130 | github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= 131 | github.com/stretchr/objx v0.5.0 h1:1zr/of2m5FGMsad5YfcqgdqdWrIhu+EBEJRhR1U7z/c= 132 | github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo= 133 | github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= 134 | github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= 135 | github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg= 136 | github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= 137 | github.com/subosito/gotenv v1.6.0 h1:9NlTDc1FTs4qu0DDq7AEtTPNw6SVm7uBMsUCUjABIf8= 138 | github.com/subosito/gotenv v1.6.0/go.mod h1:Dk4QP5c2W3ibzajGcXpNraDfq2IrhjMIvMSWPKKo0FU= 139 | github.com/x448/float16 v0.8.4 h1:qLwI1I70+NjRFUR3zs1JPUCgaCXSh3SW62uAKT1mSBM= 140 | github.com/x448/float16 v0.8.4/go.mod h1:14CWIYCyZA/cWjXOioeEpHeN/83MdbZDRQHoFcYsOfg= 141 | github.com/xlab/treeprint v1.2.0 h1:HzHnuAF1plUN2zGlAFHbSQP2qJ0ZAD3XF5XD7OesXRQ= 142 | github.com/xlab/treeprint v1.2.0/go.mod h1:gj5Gd3gPdKtR1ikdDK6fnFLdmIS0X30kTTuNd/WEJu0= 143 | github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= 144 | github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= 145 | go.starlark.net v0.0.0-20240725214946-42030a7cedce h1:YyGqCjZtGZJ+mRPaenEiB87afEO2MFRzLiJNZ0Z0bPw= 146 | go.starlark.net v0.0.0-20240725214946-42030a7cedce/go.mod h1:YKMCv9b1WrfWmeqdV5MAuEHWsu5iC+fe6kYl2sQjdI8= 147 | go.uber.org/goleak v1.3.0 h1:2K3zAYmnTNqV73imy9J1T3WC+gmCePx2hEGkimedGto= 148 | go.uber.org/goleak v1.3.0/go.mod h1:CoHD4mav9JJNrW/WLlf7HGZPjdw8EucARQHekz1X6bE= 149 | go.uber.org/multierr v1.11.0 h1:blXXJkSxSSfBVBlC76pxqeO+LN3aDfLQo+309xJstO0= 150 | go.uber.org/multierr v1.11.0/go.mod h1:20+QtiLqy0Nd6FdQB9TLXag12DsQkrbs3htMFfDN80Y= 151 | golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= 152 | golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= 153 | golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= 154 | golang.org/x/exp v0.0.0-20240909161429-701f63a606c0 h1:e66Fs6Z+fZTbFBAxKfP3PALWBtpfqks2bwGcexMxgtk= 155 | golang.org/x/exp v0.0.0-20240909161429-701f63a606c0/go.mod h1:2TbTHSBQa924w8M6Xs1QcRcFwyucIwBGpK1p2f1YFFY= 156 | golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= 157 | golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= 158 | golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= 159 | golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 160 | golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 161 | golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= 162 | golang.org/x/net v0.29.0 h1:5ORfpBpCs4HzDYoodCDBbwHzdR5UrLBZ3sOnUJmFoHo= 163 | golang.org/x/net v0.29.0/go.mod h1:gLkgy8jTGERgjzMic6DS9+SP0ajcu6Xu3Orq/SpETg0= 164 | golang.org/x/oauth2 v0.23.0 h1:PbgcYx2W7i4LvjJWEbf0ngHV6qJYr86PkAV3bXdLEbs= 165 | golang.org/x/oauth2 v0.23.0/go.mod h1:XYTD2NtWslqkgxebSiOHnXEap4TF09sJSc7H1sXbhtI= 166 | golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 167 | golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 168 | golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 169 | golang.org/x/sync v0.8.0 h1:3NFvSEYkUoMifnESzZl15y791HH1qU2xm6eCJU5ZPXQ= 170 | golang.org/x/sync v0.8.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= 171 | golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= 172 | golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 173 | golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 174 | golang.org/x/sys v0.0.0-20210616094352-59db8d763f22/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= 175 | golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= 176 | golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= 177 | golang.org/x/sys v0.25.0 h1:r+8e+loiHxRqhXVl6ML1nO3l1+oFoWbnlu2Ehimmi34= 178 | golang.org/x/sys v0.25.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= 179 | golang.org/x/term v0.24.0 h1:Mh5cbb+Zk2hqqXNO7S1iTjEphVL+jb8ZWaqh/g+JWkM= 180 | golang.org/x/term v0.24.0/go.mod h1:lOBK/LVxemqiMij05LGJ0tzNr8xlmwBRJ81PX6wVLH8= 181 | golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= 182 | golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= 183 | golang.org/x/text v0.18.0 h1:XvMDiNzPAl0jr17s6W9lcaIhGUfUORdGCNsuLmPG224= 184 | golang.org/x/text v0.18.0/go.mod h1:BuEKDfySbSR4drPmRPG/7iBdf8hvFMuRexcpahXilzY= 185 | golang.org/x/time v0.6.0 h1:eTDhh4ZXt5Qf0augr54TN6suAUudPcawVZeIAPU7D4U= 186 | golang.org/x/time v0.6.0/go.mod h1:3BpzKBy/shNhVucY/MWOyx10tF3SFh9QdLuxbVysPQM= 187 | golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 188 | golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= 189 | golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= 190 | golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= 191 | golang.org/x/tools v0.25.0 h1:oFU9pkj/iJgs+0DT+VMHrx+oBKs/LJMV+Uvg78sl+fE= 192 | golang.org/x/tools v0.25.0/go.mod h1:/vtpO8WL1N9cQC3FN5zPqb//fRXskFHbLKk4OW1Q7rg= 193 | golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= 194 | golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= 195 | golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= 196 | golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= 197 | google.golang.org/protobuf v1.34.2 h1:6xV6lTsCfpGD21XK49h7MhtcApnLqkfYgPcdHftf6hg= 198 | google.golang.org/protobuf v1.34.2/go.mod h1:qYOHts0dSfpeUzUFpOMr/WGzszTmLH+DiWniOlNbLDw= 199 | gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= 200 | gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk= 201 | gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q= 202 | gopkg.in/evanphx/json-patch.v4 v4.12.0 h1:n6jtcsulIzXPJaxegRbvFNNrZDjbij7ny3gmSPG+6V4= 203 | gopkg.in/evanphx/json-patch.v4 v4.12.0/go.mod h1:p8EYWUEYMpynmqDbY58zCKCFZw8pRWMG4EsWvDvM72M= 204 | gopkg.in/inf.v0 v0.9.1 h1:73M5CoZyi3ZLMOyDlQh031Cx6N9NDJ2Vvfl76EDAgDc= 205 | gopkg.in/inf.v0 v0.9.1/go.mod h1:cWUDdTG/fYaXco+Dcufb5Vnc6Gp2YChqWtbxRZE0mXw= 206 | gopkg.in/ini.v1 v1.67.0 h1:Dgnx+6+nfE+IfzjUEISNeydPJh9AXNNsWbGP9KzCsOA= 207 | gopkg.in/ini.v1 v1.67.0/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k= 208 | gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= 209 | gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY= 210 | gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ= 211 | gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= 212 | gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= 213 | gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= 214 | k8s.io/api v0.31.1 h1:Xe1hX/fPW3PXYYv8BlozYqw63ytA92snr96zMW9gWTU= 215 | k8s.io/api v0.31.1/go.mod h1:sbN1g6eY6XVLeqNsZGLnI5FwVseTrZX7Fv3O26rhAaI= 216 | k8s.io/apimachinery v0.31.1 h1:mhcUBbj7KUjaVhyXILglcVjuS4nYXiwC+KKFBgIVy7U= 217 | k8s.io/apimachinery v0.31.1/go.mod h1:rsPdaZJfTfLsNJSQzNHQvYoTmxhoOEofxtOsF3rtsMo= 218 | k8s.io/cli-runtime v0.31.1 h1:/ZmKhmZ6hNqDM+yf9s3Y4KEYakNXUn5sod2LWGGwCuk= 219 | k8s.io/cli-runtime v0.31.1/go.mod h1:pKv1cDIaq7ehWGuXQ+A//1OIF+7DI+xudXtExMCbe9U= 220 | k8s.io/client-go v0.31.1 h1:f0ugtWSbWpxHR7sjVpQwuvw9a3ZKLXX0u0itkFXufb0= 221 | k8s.io/client-go v0.31.1/go.mod h1:sKI8871MJN2OyeqRlmA4W4KM9KBdBUpDLu/43eGemCg= 222 | k8s.io/klog/v2 v2.130.1 h1:n9Xl7H1Xvksem4KFG4PYbdQCQxqc/tTUyrgXaOhHSzk= 223 | k8s.io/klog/v2 v2.130.1/go.mod h1:3Jpz1GvMt720eyJH1ckRHK1EDfpxISzJ7I9OYgaDtPE= 224 | k8s.io/kube-openapi v0.0.0-20240903163716-9e1beecbcb38 h1:1dWzkmJrrprYvjGwh9kEUxmcUV/CtNU8QM7h1FLWQOo= 225 | k8s.io/kube-openapi v0.0.0-20240903163716-9e1beecbcb38/go.mod h1:coRQXBK9NxO98XUv3ZD6AK3xzHCxV6+b7lrquKwaKzA= 226 | k8s.io/utils v0.0.0-20240921022957-49e7df575cb6 h1:MDF6h2H/h4tbzmtIKTuctcwZmY0tY9mD9fNT47QO6HI= 227 | k8s.io/utils v0.0.0-20240921022957-49e7df575cb6/go.mod h1:OLgZIPagt7ERELqWJFomSt595RzquPNLL48iOWgYOg0= 228 | sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd h1:EDPBXCAspyGV4jQlpZSudPeMmr1bNJefnuqLsRAsHZo= 229 | sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd/go.mod h1:B8JuhiUyNFVKdsE8h686QcCxMaH6HrOAZj4vswFpcB0= 230 | sigs.k8s.io/kustomize/api v0.17.3 h1:6GCuHSsxq7fN5yhF2XrC+AAr8gxQwhexgHflOAD/JJU= 231 | sigs.k8s.io/kustomize/api v0.17.3/go.mod h1:TuDH4mdx7jTfK61SQ/j1QZM/QWR+5rmEiNjvYlhzFhc= 232 | sigs.k8s.io/kustomize/kyaml v0.17.2 h1:+AzvoJUY0kq4QAhH/ydPHHMRLijtUKiyVyh7fOSshr0= 233 | sigs.k8s.io/kustomize/kyaml v0.17.2/go.mod h1:9V0mCjIEYjlXuCdYsSXvyoy2BTsLESH7TlGV81S282U= 234 | sigs.k8s.io/structured-merge-diff/v4 v4.4.1 h1:150L+0vs/8DA78h1u02ooW1/fFq/Lwr+sGiqlzvrtq4= 235 | sigs.k8s.io/structured-merge-diff/v4 v4.4.1/go.mod h1:N8hJocpFajUSSeSJ9bOZ77VzejKZaXsTtZo4/u7Io08= 236 | sigs.k8s.io/yaml v1.4.0 h1:Mk1wCc2gy/F0THH0TAp1QYyJNzRm2KCLy3o5ASXVI5E= 237 | sigs.k8s.io/yaml v1.4.0/go.mod h1:Ejl7/uTz7PSA4eKMyQCUTnhZYNmLIl+5c2lQPGR2BPY= 238 | --------------------------------------------------------------------------------