├── .github ├── env ├── dependabot.yml ├── issue_template.md ├── workflows │ ├── goreleaser.yml │ ├── golangci-lint.yml │ ├── govulncheck.yml │ └── build-test.yml └── pull_request_template.md ├── .gitignore ├── code-of-conduct.md ├── OWNERS ├── scripts ├── tag.sh └── install_plugin.sh ├── plugin.yaml ├── Makefile ├── .goreleaser.yml ├── .golangci.yml ├── cmd └── mapkubeapis │ ├── map_kube_apis.go │ ├── environment.go │ └── map.go ├── pkg ├── mapping │ ├── metadata.go │ ├── mapfile.go │ └── mapping.go ├── v3 │ ├── connect.go │ └── release.go └── common │ ├── utils.go │ ├── common.go │ └── common_test.go ├── go.mod ├── README.md ├── CONTRIBUTING.md ├── LICENSE ├── config └── Map.yaml └── go.sum /.github/env: -------------------------------------------------------------------------------- 1 | GOLANG_VERSION=1.24 2 | GOLANGCI_LINT_VERSION=v2.0.2 -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | bin/ 2 | dist/ 3 | tmp/ 4 | releases/ 5 | 6 | .idea/ -------------------------------------------------------------------------------- /code-of-conduct.md: -------------------------------------------------------------------------------- 1 | # Community Code of Conduct 2 | 3 | Helm follows the [CNCF Code of Conduct](https://github.com/cncf/foundation/blob/master/code-of-conduct.md). 4 | -------------------------------------------------------------------------------- /OWNERS: -------------------------------------------------------------------------------- 1 | maintainers: 2 | - mattfarina 3 | - robertsirc 4 | - scottrigby 5 | emeritus: 6 | - adamreese 7 | - bacongobbler 8 | - hickeyma 9 | - jdolitsky 10 | - prydonius 11 | - rimusz 12 | - technosophos 13 | - unguiculus 14 | -------------------------------------------------------------------------------- /.github/dependabot.yml: -------------------------------------------------------------------------------- 1 | version: 2 2 | 3 | updates: 4 | - package-ecosystem: "gomod" 5 | directory: "/" 6 | schedule: 7 | interval: "daily" 8 | - package-ecosystem: "github-actions" 9 | directory: "/" 10 | schedule: 11 | interval: "daily" 12 | -------------------------------------------------------------------------------- /scripts/tag.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh -e 2 | 3 | # shellcheck disable=SC2002 4 | tag="$(cat plugin.yaml | grep "version" | cut -d '"' -f 2)" 5 | echo "Tagging helm-mapkubeapis with v${tag} ..." 6 | 7 | git checkout master 8 | git pull 9 | git tag -a -m "Release v$tag" "v$tag" 10 | git push origin refs/tags/v"$tag" 11 | -------------------------------------------------------------------------------- /.github/issue_template.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | Output of `helm version`: 4 | 5 | Output of `helm-mapkubeapis`: 6 | 7 | Output of `kubectl version`: 8 | 9 | Cloud Provider/Platform (AKS, GKE, EKS, etc.): 10 | -------------------------------------------------------------------------------- /plugin.yaml: -------------------------------------------------------------------------------- 1 | name: "mapkubeapis" 2 | version: "0.5.2" 3 | usage: "Map release deprecated Kubernetes APIs in-place" 4 | description: "Map release deprecated Kubernetes APIs in-place" 5 | command: "$HELM_PLUGIN_DIR/bin/mapkubeapis" 6 | hooks: 7 | install: "cd $HELM_PLUGIN_DIR; scripts/install_plugin.sh" 8 | update: "cd $HELM_PLUGIN_DIR; scripts/install_plugin.sh" 9 | -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- 1 | HELM_PLUGIN_NAME := mapkubeapis 2 | LDFLAGS := "-X main.version=${VERSION}" 3 | MOD_PROXY_URL ?= https://goproxy.io 4 | 5 | .PHONY: build 6 | build: 7 | export CGO_ENABLED=0 && \ 8 | go build -o bin/${HELM_PLUGIN_NAME} -ldflags $(LDFLAGS) ./cmd/mapkubeapis 9 | 10 | .PHONY: bootstrap 11 | bootstrap: 12 | export GO111MODULE=on && \ 13 | export GOPROXY=$(MOD_PROXY_URL) && \ 14 | go mod download 15 | 16 | .PHONY: test 17 | test: 18 | go test -v ./... 19 | 20 | .PHONY: tag 21 | tag: 22 | @scripts/tag.sh 23 | -------------------------------------------------------------------------------- /.goreleaser.yml: -------------------------------------------------------------------------------- 1 | version: 2 2 | 3 | builds: 4 | - main: ./cmd/mapkubeapis 5 | binary: mapkubeapis 6 | env: 7 | - CGO_ENABLED=0 8 | goos: 9 | - darwin 10 | - linux 11 | - windows 12 | goarch: 13 | - amd64 14 | - arm64 15 | archives: 16 | - id: archive 17 | formats: [ 'tar.gz' ] 18 | files: 19 | - README.md 20 | - LICENSE 21 | - plugin.yaml 22 | - scripts/install_plugin.sh 23 | - config/Map.yaml 24 | checksum: 25 | name_template: 'checksums.txt' 26 | -------------------------------------------------------------------------------- /.golangci.yml: -------------------------------------------------------------------------------- 1 | version: "2" 2 | linters: 3 | default: none 4 | enable: 5 | - govet 6 | - misspell 7 | - revive 8 | - staticcheck 9 | - unused 10 | exclusions: 11 | generated: lax 12 | presets: 13 | - comments 14 | - common-false-positives 15 | - legacy 16 | - std-error-handling 17 | paths: 18 | - third_party$ 19 | - builtin$ 20 | - examples$ 21 | formatters: 22 | enable: 23 | - gofmt 24 | settings: 25 | gofmt: 26 | simplify: true 27 | exclusions: 28 | generated: lax 29 | paths: 30 | - third_party$ 31 | - builtin$ 32 | - examples$ 33 | -------------------------------------------------------------------------------- /.github/workflows/goreleaser.yml: -------------------------------------------------------------------------------- 1 | name: goreleaser 2 | 3 | on: 4 | create: 5 | tags: 6 | - v* 7 | 8 | permissions: 9 | contents: write 10 | 11 | jobs: 12 | goreleaser: 13 | runs-on: ubuntu-latest 14 | steps: 15 | - 16 | name: Checkout 17 | uses: actions/checkout@v4 18 | with: 19 | fetch-depth: 0 20 | - 21 | name: Set Up Go 22 | uses: actions/setup-go@v5 23 | - 24 | name: Run GoReleaser 25 | uses: goreleaser/goreleaser-action@v6 26 | with: 27 | distribution: goreleaser 28 | version: '~> v2' 29 | args: release --clean 30 | env: 31 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} -------------------------------------------------------------------------------- /.github/pull_request_template.md: -------------------------------------------------------------------------------- 1 | 5 | 6 | **What this PR does / why we need it**: 7 | 8 | **Special notes for your reviewer**: 9 | 10 | **If applicable**: 11 | - [ ] this PR contains documentation 12 | - [ ] this PR contains unit tests 13 | - [ ] this PR has been tested for backwards compatibility 14 | -------------------------------------------------------------------------------- /cmd/mapkubeapis/map_kube_apis.go: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright 3 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | */ 16 | 17 | package main 18 | 19 | import ( 20 | "os" 21 | ) 22 | 23 | func main() { 24 | mapCmd := newMapCmd(os.Stdout) 25 | 26 | if err := mapCmd.Execute(); err != nil { 27 | os.Exit(1) 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /pkg/mapping/metadata.go: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright 3 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | */ 16 | 17 | package mapping 18 | 19 | // Metadata for a Mapping file. This models the structure of a Mapping.yaml file. 20 | type Metadata struct { 21 | // Mappings are a list of mappings. 22 | Mappings []*Mapping `json:"mappings,omitempty"` 23 | } 24 | -------------------------------------------------------------------------------- /.github/workflows/golangci-lint.yml: -------------------------------------------------------------------------------- 1 | name: golangci-lint 2 | 3 | on: 4 | push: 5 | pull_request: 6 | 7 | permissions: 8 | contents: read 9 | 10 | jobs: 11 | golangci: 12 | name: golangci-lint 13 | runs-on: ubuntu-latest 14 | steps: 15 | - name: Checkout 16 | uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # pin@v4.2.2 17 | - name: Add variables to environment file 18 | run: cat ".github/env" >> "$GITHUB_ENV" 19 | - name: Setup Go 20 | uses: actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # pin@5.4.0 21 | with: 22 | go-version: '${{ env.GOLANG_VERSION }}' 23 | check-latest: true 24 | - name: golangci-lint 25 | uses: golangci/golangci-lint-action@1481404843c368bc19ca9406f87d6e0fc97bdcfd #pin@7.0.0 26 | with: 27 | version: ${{ env.GOLANGCI_LINT_VERSION }} 28 | -------------------------------------------------------------------------------- /.github/workflows/govulncheck.yml: -------------------------------------------------------------------------------- 1 | name: govulncheck 2 | on: 3 | push: 4 | paths: 5 | - go.sum 6 | schedule: 7 | - cron: "0 0 * * *" 8 | 9 | permissions: read-all 10 | 11 | jobs: 12 | govulncheck: 13 | name: govulncheck 14 | runs-on: ubuntu-latest 15 | steps: 16 | - name: Checkout 17 | uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # pin@v4.2.2 18 | - name: Add variables to environment file 19 | run: cat ".github/env" >> "$GITHUB_ENV" 20 | - name: Setup Go 21 | uses: actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # pin@5.4.0 22 | with: 23 | go-version: '${{ env.GOLANG_VERSION }}' 24 | check-latest: true 25 | - name: govulncheck 26 | uses: golang/govulncheck-action@b625fbe08f3bccbe446d94fbf87fcc875a4f50ee # pin@1.0.4 27 | with: 28 | go-package: ./... 29 | -------------------------------------------------------------------------------- /pkg/mapping/mapfile.go: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright 3 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | */ 16 | 17 | package mapping 18 | 19 | import ( 20 | "os" 21 | 22 | "sigs.k8s.io/yaml" 23 | ) 24 | 25 | // LoadMapfile loads a Map.yaml file into a *Metadata. 26 | func LoadMapfile(filename string) (*Metadata, error) { 27 | b, err := os.ReadFile(filename) 28 | if err != nil { 29 | return nil, err 30 | } 31 | y := new(Metadata) 32 | err = yaml.Unmarshal(b, y) 33 | return y, err 34 | } 35 | -------------------------------------------------------------------------------- /.github/workflows/build-test.yml: -------------------------------------------------------------------------------- 1 | # This workflow will build a golang project 2 | # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go 3 | 4 | name: build-test 5 | 6 | on: 7 | push: 8 | branches: 9 | - "main" 10 | - "release-**" 11 | pull_request: 12 | branches: 13 | - main 14 | 15 | permissions: 16 | contents: read 17 | 18 | jobs: 19 | build: 20 | runs-on: ubuntu-latest 21 | steps: 22 | - name: Checkout source code 23 | uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # pin@v4.2.2 24 | - name: Add variables to environment file 25 | run: cat ".github/env" >> "$GITHUB_ENV" 26 | - name: Set up Go 27 | uses: actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # pin@5.4.0 28 | with: 29 | go-version: '${{ env.GOLANG_VERSION }}' 30 | check-latest: true 31 | - name: Run Test 32 | run: make test 33 | - name: Build 34 | run: make build 35 | -------------------------------------------------------------------------------- /pkg/mapping/mapping.go: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright 3 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | */ 16 | 17 | package mapping 18 | 19 | // Mapping describes mappings which defines the Kubernetes 20 | // API deprecations and the new replacement API 21 | type Mapping struct { 22 | // From is the API looking to be mapped 23 | DeprecatedAPI string `json:"deprecatedAPI"` 24 | 25 | // To is the API to be mapped to 26 | NewAPI string `json:"newAPI"` 27 | 28 | // Kubernetes version API is deprecated in 29 | DeprecatedInVersion string `json:"deprecatedInVersion,omitempty"` 30 | 31 | // Kubernetes version API is removed in 32 | RemovedInVersion string `json:"removedInVersion,omitempty"` 33 | } 34 | -------------------------------------------------------------------------------- /cmd/mapkubeapis/environment.go: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright 3 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | */ 16 | 17 | package main 18 | 19 | import ( 20 | "github.com/spf13/pflag" 21 | ) 22 | 23 | // EnvSettings defined settings 24 | type EnvSettings struct { 25 | DryRun bool 26 | KubeConfigFile string 27 | KubeContext string 28 | MapFile string 29 | Namespace string 30 | } 31 | 32 | // New returns default env settings 33 | func New() *EnvSettings { 34 | envSettings := EnvSettings{} 35 | return &envSettings 36 | } 37 | 38 | // AddBaseFlags binds base flags to the given flagset. 39 | func (s *EnvSettings) AddBaseFlags(fs *pflag.FlagSet) { 40 | fs.BoolVar(&s.DryRun, "dry-run", false, "simulate a command") 41 | } 42 | 43 | // AddFlags binds flags to the given flagset. 44 | func (s *EnvSettings) AddFlags(fs *pflag.FlagSet) { 45 | s.AddBaseFlags(fs) 46 | fs.StringVar(&s.KubeConfigFile, "kubeconfig", "", "path to the kubeconfig file") 47 | fs.StringVar(&s.KubeContext, "kube-context", s.KubeContext, "name of the kubeconfig context to use") 48 | fs.StringVar(&s.MapFile, "mapfile", s.MapFile, "path to the API mapping file") 49 | fs.StringVar(&s.Namespace, "namespace", s.Namespace, "namespace scope of the release") 50 | } 51 | -------------------------------------------------------------------------------- /pkg/v3/connect.go: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright 3 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | */ 16 | 17 | package v3 18 | 19 | import ( 20 | "fmt" 21 | "log" 22 | "os" 23 | 24 | "helm.sh/helm/v3/pkg/action" 25 | "helm.sh/helm/v3/pkg/cli" 26 | 27 | common "github.com/helm/helm-mapkubeapis/pkg/common" 28 | ) 29 | 30 | var ( 31 | settings = cli.New() 32 | ) 33 | 34 | // GetActionConfig returns action configuration based on Helm env 35 | func GetActionConfig(namespace string, kubeConfig common.KubeConfig) (*action.Configuration, error) { 36 | actionConfig := new(action.Configuration) 37 | 38 | // Add kube config settings passed by user 39 | settings.KubeConfig = kubeConfig.File 40 | settings.KubeContext = kubeConfig.Context 41 | 42 | // check if the namespace is passed by the user. If not get Helm to return the current namespace 43 | if namespace == "" { 44 | namespace = settings.Namespace() 45 | } 46 | 47 | err := actionConfig.Init(settings.RESTClientGetter(), namespace, os.Getenv("HELM_DRIVER"), debug) 48 | if err != nil { 49 | return nil, err 50 | } 51 | 52 | return actionConfig, err 53 | } 54 | 55 | func debug(format string, v ...interface{}) { 56 | if settings.Debug { 57 | format = fmt.Sprintf("[debug] %s\n", format) 58 | err := log.Output(2, fmt.Sprintf(format, v...)) 59 | if err != nil { 60 | return 61 | } 62 | } 63 | } 64 | -------------------------------------------------------------------------------- /scripts/install_plugin.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh -e 2 | 3 | if [ -n "${HELM_LINTER_PLUGIN_NO_INSTALL_HOOK}" ]; then 4 | echo "Development mode: not downloading versioned release." 5 | exit 0 6 | fi 7 | 8 | # shellcheck disable=SC2002 9 | version="$(cat plugin.yaml | grep "version" | cut -d '"' -f 2)" 10 | echo "Downloading and installing helm-mapkubeapis v${version} ..." 11 | 12 | url="" 13 | if [ "$(uname)" = "Darwin" ]; then 14 | if [ "$(uname -m)" = "arm64" ]; then 15 | url="https://github.com/helm/helm-mapkubeapis/releases/download/v${version}/helm-mapkubeapis_${version}_darwin_arm64.tar.gz" 16 | else 17 | url="https://github.com/helm/helm-mapkubeapis/releases/download/v${version}/helm-mapkubeapis_${version}_darwin_amd64.tar.gz" 18 | fi 19 | elif [ "$(uname)" = "Linux" ] ; then 20 | if [ "$(uname -m)" = "aarch64" ] || [ "$(uname -m)" = "arm64" ]; then 21 | url="https://github.com/helm/helm-mapkubeapis/releases/download/v${version}/helm-mapkubeapis_${version}_linux_arm64.tar.gz" 22 | else 23 | url="https://github.com/helm/helm-mapkubeapis/releases/download/v${version}/helm-mapkubeapis_${version}_linux_amd64.tar.gz" 24 | fi 25 | else 26 | url="https://github.com/helm/helm-mapkubeapis/releases/download/v${version}/helm-mapkubeapis_${version}_windows_amd64.tar.gz" 27 | fi 28 | 29 | echo "$url" 30 | 31 | mkdir -p "bin" 32 | mkdir -p "config" 33 | mkdir -p "releases/v${version}" 34 | 35 | # Download with curl if possible. 36 | # shellcheck disable=SC2230 37 | if [ -x "$(which curl 2>/dev/null)" ]; then 38 | curl -sSL "${url}" -o "releases/v${version}.tar.gz" 39 | else 40 | wget -q "${url}" -O "releases/v${version}.tar.gz" 41 | fi 42 | tar xzf "releases/v${version}.tar.gz" -C "releases/v${version}" 43 | mv "releases/v${version}/mapkubeapis" "bin/mapkubeapis" || \ 44 | mv "releases/v${version}/mapkubeapis.exe" "bin/mapkubeapis" 45 | mv "releases/v${version}/plugin.yaml" . 46 | mv "releases/v${version}/README.md" . 47 | mv "releases/v${version}/LICENSE" . 48 | mv "releases/v${version}/config/Map.yaml" "config/Map.yaml" 49 | -------------------------------------------------------------------------------- /pkg/common/utils.go: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright 3 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | */ 16 | 17 | package common 18 | 19 | /* 20 | This functionality is copied from 21 | https://github.com/maorfr/helm-plugin-utils/blob/master/pkg/utils.go. 22 | The reason for duplicating it is because it is no longer possible to keep maintaining the 23 | source repo in sync with Kubernetes Go client changes as required by helm-mapkubeapis. 24 | It has been copied in co-operation with author maorfr. 25 | */ 26 | 27 | import ( 28 | "log" 29 | "os" 30 | "path/filepath" 31 | "runtime" 32 | "strings" 33 | 34 | "k8s.io/client-go/kubernetes" 35 | "k8s.io/client-go/rest" 36 | "k8s.io/client-go/tools/clientcmd" 37 | ) 38 | 39 | // GetClientSetWithKubeConfig returns a kubernetes ClientSet 40 | func GetClientSetWithKubeConfig(kubeConfigFile, context string) *kubernetes.Clientset { 41 | var kubeConfigFiles []string 42 | if kubeConfigFile != "" { 43 | kubeConfigFiles = append(kubeConfigFiles, kubeConfigFile) 44 | } else if kubeConfigPath := os.Getenv("KUBECONFIG"); kubeConfigPath != "" { 45 | // The KUBECONFIG environment variable holds a list of kubeconfig files. 46 | // For Linux and Mac, the list is colon-delimited. For Windows, the list 47 | // is semicolon-delimited. Ref: 48 | // https://kubernetes.io/docs/concepts/configuration/organize-cluster-access-kubeconfig/#the-kubeconfig-environment-variable 49 | var separator string 50 | if runtime.GOOS == "windows" { 51 | separator = ";" 52 | } else { 53 | separator = ":" 54 | } 55 | kubeConfigFiles = strings.Split(kubeConfigPath, separator) 56 | } else { 57 | kubeConfigFiles = append(kubeConfigFiles, filepath.Join(os.Getenv("HOME"), ".kube", "config")) 58 | } 59 | 60 | config, err := buildConfigFromFlags(context, kubeConfigFiles) 61 | if err != nil { 62 | log.Fatal(err.Error()) 63 | } 64 | 65 | clientset, err := kubernetes.NewForConfig(config) 66 | if err != nil { 67 | log.Fatal(err.Error()) 68 | } 69 | 70 | return clientset 71 | } 72 | 73 | func buildConfigFromFlags(context string, kubeConfigFiles []string) (*rest.Config, error) { 74 | return clientcmd.NewNonInteractiveDeferredLoadingClientConfig( 75 | &clientcmd.ClientConfigLoadingRules{Precedence: kubeConfigFiles}, 76 | &clientcmd.ConfigOverrides{ 77 | CurrentContext: context, 78 | }).ClientConfig() 79 | } 80 | -------------------------------------------------------------------------------- /pkg/v3/release.go: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright 3 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | */ 16 | 17 | package v3 18 | 19 | import ( 20 | "fmt" 21 | "log" 22 | 23 | "github.com/pkg/errors" 24 | 25 | "helm.sh/helm/v3/pkg/action" 26 | "helm.sh/helm/v3/pkg/release" 27 | 28 | common "github.com/helm/helm-mapkubeapis/pkg/common" 29 | "github.com/helm/helm-mapkubeapis/pkg/mapping" 30 | ) 31 | 32 | // MapReleaseWithUnSupportedAPIs checks the latest release version for any deprecated or removed APIs in its metadata 33 | // If it finds any, it will create a new release version with the APIs mapped to the supported versions 34 | func MapReleaseWithUnSupportedAPIs(mapOptions common.MapOptions, additionalMappings ...*mapping.Mapping) error { 35 | cfg, err := GetActionConfig(mapOptions.ReleaseNamespace, mapOptions.KubeConfig) 36 | if err != nil { 37 | return errors.Wrap(err, "failed to get Helm action configuration") 38 | } 39 | 40 | var releaseName = mapOptions.ReleaseName 41 | log.Printf("Get release '%s' latest version.\n", releaseName) 42 | releaseToMap, err := getLatestRelease(releaseName, cfg) 43 | if err != nil { 44 | return errors.Wrapf(err, "failed to get release '%s' latest version", mapOptions.ReleaseName) 45 | } 46 | 47 | log.Printf("Check release '%s' for deprecated or removed APIs...\n", releaseName) 48 | var origManifest = releaseToMap.Manifest 49 | modifiedManifest, err := common.ReplaceManifestUnSupportedAPIs(origManifest, mapOptions.MapFile, mapOptions.KubeConfig, additionalMappings...) 50 | if err != nil { 51 | return err 52 | } 53 | log.Printf("Finished checking release '%s' for deprecated or removed APIs.\n", releaseName) 54 | if modifiedManifest == origManifest { 55 | log.Printf("Release '%s' has no deprecated or removed APIs.\n", releaseName) 56 | return nil 57 | } 58 | 59 | if mapOptions.DryRun { 60 | log.Printf("Deprecated or removed APIs exist, for release: %s.\n", releaseName) 61 | } else { 62 | log.Printf("Deprecated or removed APIs exist, updating release: %s.\n", releaseName) 63 | if err := updateRelease(releaseToMap, modifiedManifest, cfg); err != nil { 64 | return errors.Wrapf(err, "failed to update release '%s'", releaseName) 65 | } 66 | log.Printf("Release '%s' with deprecated or removed APIs updated successfully to new version.\n", releaseName) 67 | } 68 | 69 | return nil 70 | } 71 | 72 | func updateRelease(origRelease *release.Release, modifiedManifest string, cfg *action.Configuration) error { 73 | // Update current release version to be superseded 74 | log.Printf("Set status of release version '%s' to 'superseded'.\n", getReleaseVersionName(origRelease)) 75 | origRelease.Info.Status = release.StatusSuperseded 76 | if err := cfg.Releases.Update(origRelease); err != nil { 77 | return errors.Wrapf(err, "failed to update release version '%s'", getReleaseVersionName(origRelease)) 78 | } 79 | log.Printf("Release version '%s' updated successfully.\n", getReleaseVersionName(origRelease)) 80 | 81 | // Using a shallow copy of current release version to update the object with the modification 82 | // and then store this new version 83 | var newRelease = origRelease 84 | newRelease.Manifest = modifiedManifest 85 | newRelease.Info.Description = common.UpgradeDescription 86 | newRelease.Info.LastDeployed = cfg.Now() 87 | newRelease.Version = origRelease.Version + 1 88 | newRelease.Info.Status = release.StatusDeployed 89 | log.Printf("Add release version '%s' with updated supported APIs.\n", getReleaseVersionName(origRelease)) 90 | if err := cfg.Releases.Create(newRelease); err != nil { 91 | return errors.Wrapf(err, "failed to create new release version '%s'", getReleaseVersionName(origRelease)) 92 | } 93 | log.Printf("Release version '%s' added successfully.\n", getReleaseVersionName(origRelease)) 94 | return nil 95 | } 96 | 97 | func getLatestRelease(releaseName string, cfg *action.Configuration) (*release.Release, error) { 98 | return cfg.Releases.Last(releaseName) 99 | } 100 | 101 | func getReleaseVersionName(rel *release.Release) string { 102 | return fmt.Sprintf("%s.v%d", rel.Name, rel.Version) 103 | } 104 | -------------------------------------------------------------------------------- /cmd/mapkubeapis/map.go: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright 3 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | */ 16 | 17 | package main 18 | 19 | import ( 20 | "errors" 21 | "io" 22 | "log" 23 | "os" 24 | "path/filepath" 25 | 26 | "github.com/spf13/cobra" 27 | 28 | "github.com/helm/helm-mapkubeapis/pkg/common" 29 | v3 "github.com/helm/helm-mapkubeapis/pkg/v3" 30 | ) 31 | 32 | // MapOptions contains the options for Map operation 33 | type MapOptions struct { 34 | DryRun bool 35 | MapFile string 36 | ReleaseName string 37 | ReleaseNamespace string 38 | } 39 | 40 | var ( 41 | settings *EnvSettings 42 | ) 43 | 44 | func newMapCmd(_ io.Writer) *cobra.Command { 45 | cmd := &cobra.Command{ 46 | Use: "mapkubeapis [flags] RELEASE", 47 | Short: "Map release deprecated or removed Kubernetes APIs in-place", 48 | Long: "Map release deprecated or removed Kubernetes APIs in-place", 49 | SilenceUsage: true, 50 | Args: func(cmd *cobra.Command, args []string) error { 51 | if len(args) == 0 { 52 | err := cmd.Help() 53 | if err != nil { 54 | return err 55 | } 56 | os.Exit(1) 57 | } else if len(args) > 1 { 58 | return errors.New("only one release name may be passed at a time") 59 | } 60 | return nil 61 | }, 62 | 63 | RunE: runMap, 64 | } 65 | 66 | flags := cmd.PersistentFlags() 67 | flags.ParseErrorsWhitelist.UnknownFlags = true 68 | 69 | settings = new(EnvSettings) 70 | 71 | // Get the default mapping file 72 | if ctx := os.Getenv("HELM_PLUGIN_DIR"); ctx != "" { 73 | settings.MapFile = filepath.Join(ctx, "config", "Map.yaml") 74 | } else { 75 | settings.MapFile = filepath.Join("config", "Map.yaml") 76 | } 77 | 78 | // When run with the Helm plugin framework, Helm plugins are not passed the 79 | // plugin flags that correspond to Helm global flags e.g. helm mapkubeapis v3map --kube-context ... 80 | // The flag values are set to corresponding environment variables instead. 81 | // The flags are passed as expected when run directly using the binary. 82 | // The below allows to use Helm's --kube-context global flag. 83 | if ctx := os.Getenv("HELM_KUBECONTEXT"); ctx != "" { 84 | settings.KubeContext = ctx 85 | } 86 | 87 | // Note that the plugin's --kubeconfig flag is set by the Helm plugin framework to 88 | // the KUBECONFIG environment variable instead of being passed into the plugin. 89 | 90 | settings.AddFlags(flags) 91 | 92 | return cmd 93 | } 94 | 95 | func runMap(_ *cobra.Command, args []string) error { 96 | releaseName := args[0] 97 | mapOptions := MapOptions{ 98 | DryRun: settings.DryRun, 99 | MapFile: settings.MapFile, 100 | ReleaseName: releaseName, 101 | ReleaseNamespace: settings.Namespace, 102 | } 103 | kubeConfig := common.KubeConfig{ 104 | Context: settings.KubeContext, 105 | File: settings.KubeConfigFile, 106 | } 107 | 108 | return Map(mapOptions, kubeConfig) 109 | } 110 | 111 | // Map checks for Kubernetes deprecated or removed APIs in the manifest of the last deployed release version 112 | // and maps those API versions to supported versions. It then adds a new release version with 113 | // the updated APIs and supersedes the version with the unsupported APIs. 114 | func Map(mapOptions MapOptions, kubeConfig common.KubeConfig) error { 115 | if mapOptions.DryRun { 116 | log.Println("NOTE: This is in dry-run mode, the following actions will not be executed.") 117 | log.Println("Run without --dry-run to take the actions described below:") 118 | log.Println() 119 | } 120 | 121 | log.Printf("Release '%s' will be checked for deprecated or removed Kubernetes APIs and will be updated if necessary to supported API versions.\n", mapOptions.ReleaseName) 122 | 123 | options := common.MapOptions{ 124 | DryRun: mapOptions.DryRun, 125 | KubeConfig: kubeConfig, 126 | MapFile: mapOptions.MapFile, 127 | ReleaseName: mapOptions.ReleaseName, 128 | ReleaseNamespace: mapOptions.ReleaseNamespace, 129 | } 130 | 131 | if err := v3.MapReleaseWithUnSupportedAPIs(options); err != nil { 132 | return err 133 | } 134 | 135 | log.Printf("Map of release '%s' deprecated or removed APIs to supported versions, completed successfully.\n", mapOptions.ReleaseName) 136 | 137 | return nil 138 | } 139 | -------------------------------------------------------------------------------- /pkg/common/common.go: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright 3 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | */ 16 | 17 | package common 18 | 19 | import ( 20 | "log" 21 | "strings" 22 | 23 | "github.com/pkg/errors" 24 | "golang.org/x/mod/semver" 25 | 26 | "github.com/helm/helm-mapkubeapis/pkg/mapping" 27 | ) 28 | 29 | // KubeConfig are the Kubernetes configuration settings 30 | type KubeConfig struct { 31 | Context string 32 | File string 33 | } 34 | 35 | // MapOptions are the options for mapping deprecated APIs in a release 36 | type MapOptions struct { 37 | DryRun bool 38 | KubeConfig KubeConfig 39 | MapFile string 40 | ReleaseName string 41 | ReleaseNamespace string 42 | } 43 | 44 | // UpgradeDescription is description of why release was upgraded 45 | const UpgradeDescription = "Kubernetes deprecated API upgrade - DO NOT rollback from this version" 46 | 47 | // ReplaceManifestUnSupportedAPIs returns a release manifest with deprecated or removed 48 | // Kubernetes APIs updated to supported APIs 49 | func ReplaceManifestUnSupportedAPIs(origManifest, mapFile string, kubeConfig KubeConfig, additionalMappings ...*mapping.Mapping) (string, error) { 50 | var modifiedManifest = origManifest 51 | var err error 52 | var mapMetadata *mapping.Metadata 53 | 54 | // Load the mapping data 55 | if mapMetadata, err = mapping.LoadMapfile(mapFile); err != nil { 56 | return "", errors.Wrapf(err, "Failed to load mapping file: %s", mapFile) 57 | } 58 | 59 | mapMetadata.Mappings = append(mapMetadata.Mappings, additionalMappings...) 60 | 61 | // get the Kubernetes server version 62 | kubeVersionStr, err := getKubernetesServerVersion(kubeConfig) 63 | if err != nil { 64 | return "", err 65 | } 66 | if !semver.IsValid(kubeVersionStr) { 67 | return "", errors.Errorf("Failed to get Kubernetes server version") 68 | } 69 | 70 | // Check for deprecated or removed APIs and map accordingly to supported versions 71 | modifiedManifest, err = ReplaceManifestData(mapMetadata, modifiedManifest, kubeVersionStr) 72 | if err != nil { 73 | return "", err 74 | } 75 | 76 | return modifiedManifest, nil 77 | } 78 | 79 | // ReplaceManifestData scans the release manifest string for deprecated APIs in a given Kubernetes version and replaces 80 | // their groups and versions if there is a successor, or fully removes the manifest for that specific resource if no 81 | // successors exist (such as the PodSecurityPolicy API). 82 | func ReplaceManifestData(mapMetadata *mapping.Metadata, modifiedManifest string, kubeVersionStr string) (string, error) { 83 | for _, mapping := range mapMetadata.Mappings { 84 | deprecatedAPI := mapping.DeprecatedAPI 85 | supportedAPI := mapping.NewAPI 86 | var apiVersionStr string 87 | if mapping.DeprecatedInVersion != "" { 88 | apiVersionStr = mapping.DeprecatedInVersion 89 | } else { 90 | apiVersionStr = mapping.RemovedInVersion 91 | } 92 | 93 | if !semver.IsValid(apiVersionStr) { 94 | return "", errors.Errorf("Failed to get the deprecated or removed Kubernetes version for API: %s", strings.ReplaceAll(deprecatedAPI, "\n", " ")) 95 | } 96 | 97 | if count := strings.Count(modifiedManifest, deprecatedAPI); count > 0 { 98 | if semver.Compare(apiVersionStr, kubeVersionStr) > 0 { 99 | log.Printf("The following API:\n\"%s\" does not require mapping as the "+ 100 | "API is not deprecated or removed in Kubernetes \"%s\"\n", deprecatedAPI, kubeVersionStr) 101 | // skip to next mapping 102 | continue 103 | } 104 | if supportedAPI == "" { 105 | log.Printf("Found %d instances of deprecated or removed Kubernetes API:\n\"%s\"\nNo supported API equivalent\n", count, deprecatedAPI) 106 | modifiedManifest = removeDeprecatedAPIWithoutSuccessor(count, deprecatedAPI, modifiedManifest) 107 | } else { 108 | log.Printf("Found %d instances of deprecated or removed Kubernetes API:\n\"%s\"\nSupported API equivalent:\n\"%s\"\n", count, deprecatedAPI, supportedAPI) 109 | modifiedManifest = strings.ReplaceAll(modifiedManifest, deprecatedAPI, supportedAPI) 110 | } 111 | } 112 | } 113 | return modifiedManifest, nil 114 | } 115 | 116 | // removeDeprecatedAPIWithoutSuccessor removes a deprecated API that has no successor specified in the mapping file. 117 | func removeDeprecatedAPIWithoutSuccessor(count int, deprecatedAPI string, modifiedManifest string) string { 118 | for repl := 0; repl < count; repl++ { 119 | // find the position where the API header is 120 | apiIndex := strings.Index(modifiedManifest, deprecatedAPI) 121 | 122 | // find the next separator index 123 | separatorIndex := strings.Index(modifiedManifest[apiIndex:], "---\n") 124 | 125 | // find the previous separator index 126 | previousSeparatorIndex := strings.LastIndex(modifiedManifest[:apiIndex], "---\n") 127 | 128 | /* 129 | * if no previous separator index was found, it means the resource is at the beginning and not 130 | * prefixed by --- 131 | */ 132 | if previousSeparatorIndex == -1 { 133 | previousSeparatorIndex = 0 134 | } 135 | 136 | if separatorIndex == -1 { // this means we reached the end of input 137 | modifiedManifest = modifiedManifest[:previousSeparatorIndex] 138 | } else { 139 | modifiedManifest = modifiedManifest[:previousSeparatorIndex] + modifiedManifest[separatorIndex+apiIndex:] 140 | } 141 | } 142 | 143 | modifiedManifest = strings.Trim(modifiedManifest, "\n") 144 | return modifiedManifest 145 | } 146 | 147 | func getKubernetesServerVersion(kubeConfig KubeConfig) (string, error) { 148 | clientSet := GetClientSetWithKubeConfig(kubeConfig.File, kubeConfig.Context) 149 | if clientSet == nil { 150 | return "", errors.Errorf("kubernetes cluster unreachable") 151 | } 152 | kubeVersion, err := clientSet.ServerVersion() 153 | if err != nil { 154 | return "", errors.Wrap(err, "kubernetes cluster unreachable") 155 | } 156 | return kubeVersion.GitVersion, nil 157 | } 158 | -------------------------------------------------------------------------------- /go.mod: -------------------------------------------------------------------------------- 1 | module github.com/helm/helm-mapkubeapis 2 | 3 | go 1.24.0 4 | 5 | require ( 6 | github.com/onsi/ginkgo/v2 v2.23.4 7 | github.com/onsi/gomega v1.37.0 8 | github.com/pkg/errors v0.9.1 9 | github.com/spf13/cobra v1.9.1 10 | github.com/spf13/pflag v1.0.6 11 | golang.org/x/mod v0.24.0 12 | gopkg.in/yaml.v3 v3.0.1 13 | helm.sh/helm/v3 v3.18.0 14 | k8s.io/client-go v0.33.1 15 | sigs.k8s.io/yaml v1.4.0 16 | ) 17 | 18 | require ( 19 | dario.cat/mergo v1.0.1 // indirect 20 | github.com/Azure/go-ansiterm v0.0.0-20250102033503-faa5f7b0171c // indirect 21 | github.com/BurntSushi/toml v1.5.0 // indirect 22 | github.com/MakeNowJust/heredoc v1.0.0 // indirect 23 | github.com/Masterminds/goutils v1.1.1 // indirect 24 | github.com/Masterminds/semver/v3 v3.3.0 // indirect 25 | github.com/Masterminds/sprig/v3 v3.3.0 // indirect 26 | github.com/Masterminds/squirrel v1.5.4 // indirect 27 | github.com/asaskevich/govalidator v0.0.0-20230301143203-a9d515a09cc2 // indirect 28 | github.com/blang/semver/v4 v4.0.0 // indirect 29 | github.com/chai2010/gettext-go v1.0.2 // indirect 30 | github.com/containerd/containerd v1.7.27 // indirect 31 | github.com/containerd/errdefs v0.3.0 // indirect 32 | github.com/containerd/log v0.1.0 // indirect 33 | github.com/containerd/platforms v0.2.1 // indirect 34 | github.com/cyphar/filepath-securejoin v0.4.1 // indirect 35 | github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect 36 | github.com/emicklei/go-restful/v3 v3.11.0 // indirect 37 | github.com/evanphx/json-patch v5.9.11+incompatible // indirect 38 | github.com/exponent-io/jsonpath v0.0.0-20210407135951-1de76d718b3f // indirect 39 | github.com/fatih/color v1.13.0 // indirect 40 | github.com/fxamacker/cbor/v2 v2.7.0 // indirect 41 | github.com/go-errors/errors v1.4.2 // indirect 42 | github.com/go-gorp/gorp/v3 v3.1.0 // indirect 43 | github.com/go-logr/logr v1.4.2 // indirect 44 | github.com/go-openapi/jsonpointer v0.21.0 // indirect 45 | github.com/go-openapi/jsonreference v0.20.2 // indirect 46 | github.com/go-openapi/swag v0.23.0 // indirect 47 | github.com/go-task/slim-sprig/v3 v3.0.0 // indirect 48 | github.com/gobwas/glob v0.2.3 // indirect 49 | github.com/gogo/protobuf v1.3.2 // indirect 50 | github.com/google/btree v1.1.3 // indirect 51 | github.com/google/gnostic-models v0.6.9 // indirect 52 | github.com/google/go-cmp v0.7.0 // indirect 53 | github.com/google/pprof v0.0.0-20250403155104-27863c87afa6 // indirect 54 | github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510 // indirect 55 | github.com/google/uuid v1.6.0 // indirect 56 | github.com/gorilla/websocket v1.5.4-0.20250319132907-e064f32e3674 // indirect 57 | github.com/gosuri/uitable v0.0.4 // indirect 58 | github.com/gregjones/httpcache v0.0.0-20190611155906-901d90724c79 // indirect 59 | github.com/hashicorp/errwrap v1.1.0 // indirect 60 | github.com/hashicorp/go-multierror v1.1.1 // indirect 61 | github.com/huandu/xstrings v1.5.0 // indirect 62 | github.com/inconshreveable/mousetrap v1.1.0 // indirect 63 | github.com/jmoiron/sqlx v1.4.0 // indirect 64 | github.com/josharian/intern v1.0.0 // indirect 65 | github.com/json-iterator/go v1.1.12 // indirect 66 | github.com/klauspost/compress v1.18.0 // indirect 67 | github.com/lann/builder v0.0.0-20180802200727-47ae307949d0 // indirect 68 | github.com/lann/ps v0.0.0-20150810152359-62de8c46ede0 // indirect 69 | github.com/lib/pq v1.10.9 // indirect 70 | github.com/liggitt/tabwriter v0.0.0-20181228230101-89fcab3d43de // indirect 71 | github.com/mailru/easyjson v0.7.7 // indirect 72 | github.com/mattn/go-colorable v0.1.13 // indirect 73 | github.com/mattn/go-isatty v0.0.17 // indirect 74 | github.com/mattn/go-runewidth v0.0.9 // indirect 75 | github.com/mitchellh/copystructure v1.2.0 // indirect 76 | github.com/mitchellh/go-wordwrap v1.0.1 // indirect 77 | github.com/mitchellh/reflectwalk v1.0.2 // indirect 78 | github.com/moby/spdystream v0.5.0 // indirect 79 | github.com/moby/term v0.5.2 // indirect 80 | github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect 81 | github.com/modern-go/reflect2 v1.0.2 // indirect 82 | github.com/monochromegane/go-gitignore v0.0.0-20200626010858-205db1a8cc00 // indirect 83 | github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect 84 | github.com/mxk/go-flowrate v0.0.0-20140419014527-cca7078d478f // indirect 85 | github.com/opencontainers/go-digest v1.0.0 // indirect 86 | github.com/opencontainers/image-spec v1.1.1 // indirect 87 | github.com/peterbourgon/diskv v2.0.1+incompatible // indirect 88 | github.com/rubenv/sql-migrate v1.8.0 // indirect 89 | github.com/russross/blackfriday/v2 v2.1.0 // indirect 90 | github.com/shopspring/decimal v1.4.0 // indirect 91 | github.com/sirupsen/logrus v1.9.3 // indirect 92 | github.com/spf13/cast v1.7.0 // indirect 93 | github.com/x448/float16 v0.8.4 // indirect 94 | github.com/xeipuuv/gojsonpointer v0.0.0-20190905194746-02993c407bfb // indirect 95 | github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415 // indirect 96 | github.com/xeipuuv/gojsonschema v1.2.0 // indirect 97 | github.com/xlab/treeprint v1.2.0 // indirect 98 | go.uber.org/automaxprocs v1.6.0 // indirect 99 | golang.org/x/crypto v0.37.0 // indirect 100 | golang.org/x/net v0.38.0 // indirect 101 | golang.org/x/oauth2 v0.28.0 // indirect 102 | golang.org/x/sync v0.14.0 // indirect 103 | golang.org/x/sys v0.33.0 // indirect 104 | golang.org/x/term v0.31.0 // indirect 105 | golang.org/x/text v0.24.0 // indirect 106 | golang.org/x/time v0.9.0 // indirect 107 | golang.org/x/tools v0.31.0 // indirect 108 | google.golang.org/genproto/googleapis/rpc v0.0.0-20241209162323-e6fa225c2576 // indirect 109 | google.golang.org/grpc v1.68.1 // indirect 110 | google.golang.org/protobuf v1.36.5 // indirect 111 | gopkg.in/evanphx/json-patch.v4 v4.12.0 // indirect 112 | gopkg.in/inf.v0 v0.9.1 // indirect 113 | k8s.io/api v0.33.1 // indirect 114 | k8s.io/apiextensions-apiserver v0.33.0 // indirect 115 | k8s.io/apimachinery v0.33.1 // indirect 116 | k8s.io/apiserver v0.33.0 // indirect 117 | k8s.io/cli-runtime v0.33.0 // indirect 118 | k8s.io/component-base v0.33.0 // indirect 119 | k8s.io/klog/v2 v2.130.1 // indirect 120 | k8s.io/kube-openapi v0.0.0-20250318190949-c8a335a9a2ff // indirect 121 | k8s.io/kubectl v0.33.0 // indirect 122 | k8s.io/utils v0.0.0-20241104100929-3ea5e8cea738 // indirect 123 | oras.land/oras-go/v2 v2.5.0 // indirect 124 | sigs.k8s.io/json v0.0.0-20241010143419-9aa6b5e7a4b3 // indirect 125 | sigs.k8s.io/kustomize/api v0.19.0 // indirect 126 | sigs.k8s.io/kustomize/kyaml v0.19.0 // indirect 127 | sigs.k8s.io/randfill v1.0.0 // indirect 128 | sigs.k8s.io/structured-merge-diff/v4 v4.6.0 // indirect 129 | ) 130 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Helm mapkubeapis Plugin 2 | 3 | [![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) 4 | [![Go Report Card](https://goreportcard.com/badge/github.com/helm/helm-mapkubeapis)](https://goreportcard.com/report/github.com/helm/helm-mapkubeapis) 5 | [![Release](https://img.shields.io/github/release/helm/helm-mapkubeapis.svg?style=flat-square)](https://github.com/helm/helm-mapkubeapis/releases/latest) 6 | [![Build Status](https://github.com/helm/helm-mapkubeapis/workflows/build-test/badge.svg)](https://github.com/helm/helm-mapkubeapis/actions?workflow=build-test) 7 | 8 | `mapkubeapis` is a Helm v3 plugin which updates in-place Helm release metadata that contains deprecated or removed Kubernetes APIs to a new instance with supported Kubernetes APIs, or entirely removes references to resources that use APIs that were removed and do not have a successor. Jump to [background to the issue](#background-to-the-issue) for more details on the problem space that the plugin solves. 9 | 10 | > Note: Charts need to be updated also to supported Kubernetes APIs to avoid failure during deployment in a Kubernetes version. This is a separate task to the plugin. 11 | 12 | ## Prerequisite 13 | 14 | - Helm client with `mapkubeapis` plugin installed on the same system 15 | - Access to the cluster(s) that Helm manages. This access is similar to `kubectl` access using [kubeconfig files](https://kubernetes.io/docs/concepts/configuration/organize-cluster-access-kubeconfig/). 16 | The `--kubeconfig`, `--kube-context` and `--namespace` flags can be used to set the kubeconfig path, kube context and namespace context to override the environment configuration. 17 | - If you try and upgrade a release with unsupported APIs then the upgrade will fail. This is ok in Helm v3 as it will not generate a failed release for Helm. 18 | - A mapping file is used to define the API mappings. By default, the strings in the mapping file contain UNIX/Linux line feeds. This means that `\n` is used to signify line separation between properties in the strings. This should be changed if the Helm release metadata is rendered in Windows or Mac. Refer to [API Mapping](#api-mapping) for more details. 19 | - The plugin updates the lastest release version. The latest release version should be in a `deployed` state as you want to update a successful deployment. If it is not then you need to delete the latest release version. The command to remove a release version is: 20 | - Helm v3: `kubectl delete configmap/secret sh.helm.release.v1..v --namespace ` 21 | 22 | ## Install 23 | 24 | Based on the version in `plugin.yaml`, release binary will be downloaded from GitHub: 25 | 26 | ```console 27 | $ helm plugin install https://github.com/helm/helm-mapkubeapis 28 | Downloading and installing helm-mapkubeapis v0.1.0 ... 29 | https://github.com/helm/helm-mapkubeapis/releases/download/v0.1.0/helm-mapkubeapis_0.1.0_darwin_amd64.tar.gz 30 | Installed plugin: mapkubeapis 31 | ``` 32 | 33 | ### For Windows (using WSL) 34 | 35 | Helm's plugin install hook system relies on `/bin/sh`, regardless of the operating system present. Windows users can work around this by using Helm under [WSL](https://docs.microsoft.com/en-us/windows/wsl/install-win10). 36 | ``` 37 | $ wget https://get.helm.sh/helm-v3.0.0-linux-amd64.tar.gz 38 | $ tar xzf helm-v3.0.0-linux-amd64.tar.gz 39 | $ ./linux-amd64/helm plugin install https://github.com/helm/helm-mapkubeapis 40 | ``` 41 | 42 | ## Usage 43 | 44 | ### Map Helm deprecated or removed Kubernetes APIs 45 | 46 | Map release deprecated or removed Kubernetes APIs in-place: 47 | 48 | ```console 49 | $ helm mapkubeapis [flags] RELEASE 50 | 51 | Flags: 52 | --dry-run simulate a command 53 | -h, --help help for mapkubeapis 54 | --kube-context string name of the kubeconfig context to use 55 | --kubeconfig string path to the kubeconfig file 56 | --mapfile string path to the API mapping file (default "config/Map.yaml") 57 | --namespace string namespace scope of the release 58 | ``` 59 | 60 | Example output: 61 | 62 | ```console 63 | $ helm mapkubeapis cluster-role-example --namespace test-cluster-role-example 64 | 2022/02/07 18:48:49 Release 'cluster-role-example' will be checked for deprecated or removed Kubernetes APIs and will be updated if necessary to supported API versions. 65 | 2022/02/07 18:48:49 Get release 'cluster-role-example' latest version. 66 | 2022/02/07 18:48:49 Check release 'cluster-role-example' for deprecated or removed APIs... 67 | 2022/02/07 18:48:49 Found 1 instances of deprecated or removed Kubernetes API: 68 | "apiVersion: rbac.authorization.k8s.io/v1beta1 69 | kind: ClusterRole 70 | " 71 | Supported API equivalent: 72 | "apiVersion: rbac.authorization.k8s.io/v1 73 | kind: ClusterRole 74 | " 75 | 2022/02/07 18:48:49 Found 1 instances of deprecated or removed Kubernetes API: 76 | "apiVersion: rbac.authorization.k8s.io/v1beta1 77 | kind: ClusterRoleBinding 78 | " 79 | Supported API equivalent: 80 | "apiVersion: rbac.authorization.k8s.io/v1 81 | kind: ClusterRoleBinding 82 | " 83 | 2022/02/07 18:48:49 Finished checking release 'cluster-role-example' for deprecated or removed APIs. 84 | 2022/02/07 18:48:49 Deprecated or removed APIs exist, updating release: cluster-role-example. 85 | 2022/02/07 18:48:49 Set status of release version 'cluster-role-example.v1' to 'superseded'. 86 | 2022/02/07 18:48:49 Release version 'cluster-role-example.v1' updated successfully. 87 | 2022/02/07 18:48:49 Add release version 'cluster-role-example.v2' with updated supported APIs. 88 | 2022/02/07 18:48:49 Release version 'cluster-role-example.v2' added successfully. 89 | 2022/02/07 18:48:49 Release 'cluster-role-example' with deprecated or removed APIs updated successfully to new version. 90 | 2022/02/07 18:48:49 Map of release 'cluster-role-example' deprecated or removed APIs to supported versions, completed successfully. 91 | ``` 92 | 93 | ## API Mapping 94 | 95 | The mapping information of deprecated or removed APIs to supported APIs is configured in the [Map.yaml](https://github.com/helm/helm-mapkubeapis/blob/master/config/Map.yaml) file. The file is a list of entries similar to the following: 96 | 97 | ```yaml 98 | - deprecatedAPI: "apiVersion: extensions/v1beta1\nkind: Deployment" 99 | newAPI: "apiVersion: apps/v1\nkind: Deployment" 100 | deprecatedInVersion: "v1.9" 101 | removedInVersion: "v1.16" 102 | ``` 103 | 104 | The plugin when performing update of a Helm release metadata first loads the map file from the `config` directory where the plugin is run from. If the map file is a different name or in a different location, you can use the `--mapfile` flag to specify the different mapping file. 105 | 106 | The OOTB mapping file is configured as follows: 107 | 108 | - The search and replace strings are in order with `apiVersion` first and then `kind`. This should be changed if the Helm release metadata is rendered with different search/replace string. 109 | - The strings contain UNIX/Linux line feeds. This means that `\n` is used to signify line separation between properties in the strings. This should be changed if the Helm release metadata is rendered in Windows or Mac. 110 | - Each mapping is composed of: 111 | - The original API group and version (required); 112 | - The new API group and version (optional); 113 | - The Kubernetes version that the API is deprecated in (optional); and 114 | - The Kubernetes version that the API is removed in (required). 115 | 116 | This information is important as the plugin checks that the deprecated version (or the removed version, when deprecated version is unset) is later than the Kubernetes version that it is running against. If it is then no mapping occurs for this API as it not yet deprecated in this Kubernetes version and hence the new API is not yet supported. Otherwise, the mapping can proceed. 117 | 118 | When the new API group is unset, the mapping is assumed to be a removal of an API for which there is no successor. In this scenario, all the resources that refer to the removed API are entirely removed from the release metadata. This aims to address scenarios where the API was replaced with a different mechanism that does not take the same input format, such as the removal of the PodSecurityPolicy API. 119 | 120 | > Note: The Helm release metadata can be checked by following the steps in: 121 | - Helm v3: [Updating API Versions of a Release Manifest](https://helm.sh/docs/topics/kubernetes_apis/#updating-api-versions-of-a-release-manifest) 122 | 123 | ## Background to the issue 124 | 125 | For details on the background to this issue, it is recommended to read the docs appropriate to your Helm version. The docs can be accessed as follows: 126 | - Helm v3: [Deprecated Kubernetes APIs](https://helm.sh/docs/topics/kubernetes_apis) 127 | 128 | The Helm documentation describes the problem when Helm releases that are already deployed with APIs that are no longer supported. If the Kubernetes cluster (containing such releases) is updated to a version where the APIs are removed, then Helm becomes unable to manage such releases anymore. It does not matter if the chart being passed in the upgrade contains the supported API versions or not. 129 | 130 | This is what the `mapkubeapis` plugin resolves. It fixes the issue by mapping releases which contain deprecated or removed Kubernetes APIs to supported APIs. This is performed inline in the release metadata where the existing release is `superseded` and a new release (metadata only) is added. The deployed Kubernetes resources are updated automatically by Kubernetes during upgrade of its version. Once this operation is completed, you can then upgrade using the chart with supported APIs. 131 | 132 | ## Helm v2 Support 133 | 134 | Helm [v2.17.0](https://github.com/helm/helm/releases/tag/v2.17.0) was the final release of Helm v2 in October 2020. Helm v2 is unsupported since November 2020, as detailed in [Helm 2 and the Charts Project Are Now Unsupported](https://helm.sh/blog/helm-2-becomes-unsupported/). `mapkubeapis` Helm v2 support finished in [release v0.2.0](https://github.com/helm/helm-mapkubeapis/releases/tag/v0.2.0). 135 | 136 | ## Developer (From Source) Install 137 | 138 | If you would like to handle the build yourself, this is the recommended way to do it. 139 | 140 | You must first have [Go v1.18+](http://golang.org) installed, and then you run: 141 | 142 | ```console 143 | $ mkdir -p ${GOPATH}/src/github.com 144 | $ cd $_ 145 | $ git clone git@github.com:helm/helm-mapkubeapis.git 146 | $ cd helm-mapkubeapis 147 | $ make 148 | $ export HELM_LINTER_PLUGIN_NO_INSTALL_HOOK=true 149 | $ helm plugin install /helm-mapkubeapis 150 | ``` 151 | 152 | That last command will use the binary that you built. 153 | -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # Contributing Guidelines 2 | 3 | The Helm mapkubeapis plugin project accepts contributions via GitHub pull requests. This document outlines the process 4 | to help get your contribution accepted. 5 | 6 | ## Reporting a Security Issue 7 | 8 | Most of the time, when you find a bug in the Helm mapkubeapis plugin, it should be reported using [GitHub 9 | issues](https://github.com/helm/helm-mapkubeapis/issues). However, if you are reporting a _security 10 | vulnerability_, please email a report to 11 | [cncf-helm-security@lists.cncf.io](mailto:cncf-helm-security@lists.cncf.io). This will give us a 12 | chance to try to fix the issue before it is exploited in the wild. 13 | 14 | ## Signing Your Work 15 | 16 | This project requires for you to sign your work. To do so this project will require you to have a valid GPG [key](https://docs.github.com/en/authentication/managing-commit-signature-verification/generating-a-new-gpg-key) and have that key [bound](https://docs.github.com/en/authentication/managing-commit-signature-verification/adding-a-gpg-key-to-your-github-account) to your GitHub account. All checkins will need to have this signing to be approved and merged. 17 | 18 | ## Sign-off On Your Work 19 | 20 | The sign-off is a simple line at the end of the explanation for a commit. All commits need to be 21 | signed. Your signature certifies that you wrote the patch or otherwise have the right to contribute 22 | the material. The rules are pretty simple, if you can certify the below (from 23 | [developercertificate.org](https://developercertificate.org/)): 24 | 25 | ``` 26 | Developer Certificate of Origin 27 | Version 1.1 28 | 29 | Copyright (C) 2004, 2006 The Linux Foundation and its contributors. 30 | 1 Letterman Drive 31 | Suite D4700 32 | San Francisco, CA, 94129 33 | 34 | Everyone is permitted to copy and distribute verbatim copies of this 35 | license document, but changing it is not allowed. 36 | 37 | Developer's Certificate of Origin 1.1 38 | 39 | By making a contribution to this project, I certify that: 40 | 41 | (a) The contribution was created in whole or in part by me and I 42 | have the right to submit it under the open source license 43 | indicated in the file; or 44 | 45 | (b) The contribution is based upon previous work that, to the best 46 | of my knowledge, is covered under an appropriate open source 47 | license and I have the right under that license to submit that 48 | work with modifications, whether created in whole or in part 49 | by me, under the same open source license (unless I am 50 | permitted to submit under a different license), as indicated 51 | in the file; or 52 | 53 | (c) The contribution was provided directly to me by some other 54 | person who certified (a), (b) or (c) and I have not modified 55 | it. 56 | 57 | (d) I understand and agree that this project and the contribution 58 | are public and that a record of the contribution (including all 59 | personal information I submit with it, including my sign-off) is 60 | maintained indefinitely and may be redistributed consistent with 61 | this project or the open source license(s) involved. 62 | ``` 63 | 64 | Then you just add a line to every git commit message: 65 | 66 | Signed-off-by: Joe Smith 67 | 68 | Use your real name (sorry, no pseudonyms or anonymous contributions.) 69 | 70 | If you set your `user.name` and `user.email` git configs, you can sign your commit automatically 71 | with `git commit -s`. 72 | 73 | Note: If your git config information is set properly then viewing the `git log` information for your 74 | commit will look something like this: 75 | 76 | ``` 77 | Author: Joe Smith 78 | Date: Thu Feb 2 11:41:15 2018 -0800 79 | 80 | Update README 81 | 82 | Signed-off-by: Joe Smith 83 | ``` 84 | 85 | Notice the `Author` and `Signed-off-by` lines match. If they don't your PR will be rejected by the 86 | automated DCO check. 87 | 88 | ## Support Channels 89 | 90 | Whether you are a user or contributor, official support channels include: 91 | 92 | - [Issues](https://github.com/helm/helm-mapkubeapis/issues) 93 | - Slack: 94 | - User: [#helm-users](https://kubernetes.slack.com/messages/C0NH30761/details/) 95 | - Contributor: [#helm-dev](https://kubernetes.slack.com/messages/C51E88VDG/) 96 | 97 | Before opening a new issue or submitting a new pull request, it's helpful to search the project - 98 | it's likely that another user has already reported the issue you're facing, or it's a known issue 99 | that we're already aware of. It is also worth asking on the Slack channels. 100 | 101 | ## Semantic Versioning 102 | 103 | Helm maintains a strong commitment to backward compatibility. All of our changes to protocols and 104 | formats are backward compatible from one major release to the next. No features, flags, or commands 105 | are removed or substantially modified (unless we need to fix a security issue). 106 | 107 | We also remain committed to not changing publicly accessible Go library definitions inside of the `pkg/` directory of our source code in a non-backwards-compatible way. 108 | 109 | ## Issues 110 | 111 | Issues are used as the primary method for tracking anything to do with the Helm project. 112 | 113 | ### Issue Types 114 | 115 | There are 5 types of issues (each with their own corresponding [label](#labels)): 116 | 117 | - `question`: These are support or functionality inquiries that we want to have a record of 118 | for future reference. Generally these are questions that are too complex or large to store in the 119 | Slack channel or have particular interest to the community as a whole. Depending on the 120 | discussion, these can turn into `feature` or `bug` issues. 121 | - `enhancement`: These track specific feature requests and ideas until they are complete. 122 | - `bug`: These track bugs with the code 123 | - `docs`: These track problems with the documentation (i.e. missing or incomplete) 124 | 125 | ### Issue Lifecycle 126 | 127 | The issue lifecycle is mainly driven by the core maintainers, but is good information for those 128 | contributing to Helm. All issue types follow the same general lifecycle. Differences are noted 129 | below. 130 | 131 | 1. Issue creation 132 | 2. Triage 133 | - The maintainer in charge of triaging will apply the proper labels for the issue. This includes 134 | labels for priority, type, and metadata (such as `good first issue`). The only issue priority 135 | we will be tracking is whether or not the issue is "critical." If additional levels are needed 136 | in the future, we will add them. 137 | - (If needed) Clean up the title to succinctly and clearly state the issue. Also ensure that 138 | proposals are prefaced with "Proposal: [the rest of the title]". 139 | - Add the issue to the correct milestone. If any questions come up, don't worry about adding the 140 | issue to a milestone until the questions are answered. 141 | - We attempt to do this process at least once per work day. 142 | 3. Discussion 143 | - Issues that are labeled `feature` or `proposal` must write a Helm Improvement Proposal (HIP). 144 | - Issues that are labeled as `feature` or `bug` should be connected to the PR that resolves it. 145 | - Whoever is working on a `feature` or `bug` issue (whether a maintainer or someone from the 146 | community), should either assign the issue to themselves or make a comment in the issue saying 147 | that they are taking it. 148 | - `proposal` and `support/question` issues should stay open until resolved or if they have not 149 | been active for more than 30 days. This will help keep the issue queue to a manageable size 150 | and reduce noise. Should the issue need to stay open, the `keep open` label can be added. 151 | 4. Issue closure 152 | 153 | ## How to Contribute a Patch 154 | 155 | 1. Fork the desired repo; develop and test your code changes. 156 | 2. Submit a pull request, making sure to sign your work and link the related issue. 157 | 158 | Coding conventions and standards are explained in the [official developer 159 | docs](https://helm.sh/docs/developers/). 160 | 161 | ## Pull Requests 162 | 163 | Like any good open source project, we use Pull Requests (PRs) to track code changes. 164 | 165 | ### Documentation PRs 166 | 167 | Documentation PRs will follow the same lifecycle as other PRs. They will also be labeled with the 168 | `docs` label. For documentation, special attention will be paid to spelling, grammar, and clarity 169 | (whereas those things don't matter *as* much for comments in code). 170 | 171 | ## Labels 172 | 173 | The following tables define all label types used for Helm-MapKubeAPIs. 174 | 175 | | Label | Description | 176 | | ----- | ----------- | 177 | | `bug` | Marks an issue as a bug or a PR as a bugfix | 178 | | `dependencies` | Pull requests that update a dependency file | 179 | | `documentation` | Improvements or additions to documentation | 180 | | `duplicate` | This issue or pull request already exists | 181 | | `enhancement` | New feature or request | 182 | | `good first issue` | Marks an issue as a good starter issue for someone new to the project | 183 | | `hactoberfest-accepted` | Accept for hactoberfest | 184 | | `help wanted` | Marks an issue needs help from the community to solve | 185 | | `invalid` | This doesn't seem right | 186 | | `question` | Marks an issue as a support request or question | 187 | | `wont fix` | Marks an issue as discussed and will not be implemented (or accepted in the case of a proposal) | 188 | 189 | ### Size labels 190 | 191 | Size labels are used to indicate how "dangerous" a PR is. The guidelines below are used to assign 192 | the labels, but ultimately this can be changed by the maintainers. For example, even if a PR only 193 | makes 30 lines of changes in 1 file, but it changes key functionality, it will likely be labeled as 194 | `size/L` because it requires sign off from multiple people. Conversely, a PR that adds a small 195 | feature, but requires another 150 lines of tests to cover all cases, could be labeled as `size/S` 196 | even though the number of lines is greater than defined below. 197 | 198 | | Label | Description | 199 | | ----- | ----------- | 200 | | `size/XS` | Denotes a PR that changes 0-9 lines, ignoring generated files. Very little testing may be required depending on the change. | 201 | | `size/S` | Denotes a PR that changes 10-29 lines, ignoring generated files. Only small amounts of manual testing may be required. | 202 | | `size/M` | Denotes a PR that changes 30-99 lines, ignoring generated files. Manual validation should be required. | 203 | | `size/L` | Denotes a PR that changes 100-499 lines, ignoring generated files. | 204 | | `size/XL` | Denotes a PR that changes 500-999 lines, ignoring generated files. | 205 | | `size/XXL` | Denotes a PR that changes 1000+ lines, ignoring generated files. | 206 | -------------------------------------------------------------------------------- /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 [yyyy] [name of copyright owner] 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 | -------------------------------------------------------------------------------- /config/Map.yaml: -------------------------------------------------------------------------------- 1 | mappings: 2 | - deprecatedAPI: "apiVersion: extensions/v1beta1\nkind: Deployment\n" 3 | newAPI: "apiVersion: apps/v1\nkind: Deployment\n" 4 | deprecatedInVersion: "v1.9" 5 | removedInVersion: "v1.16" 6 | - deprecatedAPI: "apiVersion: apps/v1beta1\nkind: Deployment\n" 7 | newAPI: "apiVersion: apps/v1\nkind: Deployment\n" 8 | deprecatedInVersion: "v1.9" 9 | removedInVersion: "v1.16" 10 | - deprecatedAPI: "apiVersion: apps/v1beta2\nkind: Deployment\n" 11 | newAPI: "apiVersion: apps/v1\nkind: Deployment\n" 12 | deprecatedInVersion: "v1.9" 13 | removedInVersion: "v1.16" 14 | - deprecatedAPI: "apiVersion: apps/v1beta1\nkind: StatefulSet\n" 15 | newAPI: "apiVersion: apps/v1\nkind: StatefulSet\n" 16 | deprecatedInVersion: "v1.9" 17 | removedInVersion: "v1.16" 18 | - deprecatedAPI: "apiVersion: apps/v1beta2\nkind: StatefulSet\n" 19 | newAPI: "apiVersion: apps/v1\nkind: StatefulSet\n" 20 | deprecatedInVersion: "v1.9" 21 | removedInVersion: "v1.16" 22 | - deprecatedAPI: "apiVersion: extensions/v1beta1\nkind: DaemonSet\n" 23 | newAPI: "apiVersion: apps/v1\nkind: DaemonSet\n" 24 | deprecatedInVersion: "v1.9" 25 | removedInVersion: "v1.16" 26 | - deprecatedAPI: "apiVersion: apps/v1beta2\nkind: DaemonSet\n" 27 | newAPI: "apiVersion: apps/v1\nkind: DaemonSet\n" 28 | deprecatedInVersion: "v1.9" 29 | removedInVersion: "v1.16" 30 | - deprecatedAPI: "apiVersion: extensions/v1beta1\nkind: ReplicaSet\n" 31 | newAPI: "apiVersion: apps/v1\nkind: ReplicaSet\n" 32 | deprecatedInVersion: "v1.9" 33 | removedInVersion: "v1.16" 34 | - deprecatedAPI: "apiVersion: apps/v1beta1\nkind: ReplicaSet\n" 35 | newAPI: "apiVersion: apps/v1\nkind: ReplicaSet\n" 36 | deprecatedInVersion: "v1.9" 37 | removedInVersion: "v1.16" 38 | - deprecatedAPI: "apiVersion: apps/v1beta2\nkind: ReplicaSet\n" 39 | newAPI: "apiVersion: apps/v1\nkind: ReplicaSet\n" 40 | deprecatedInVersion: "v1.9" 41 | removedInVersion: "v1.16" 42 | - deprecatedAPI: "apiVersion: extensions/v1beta1\nkind: NetworkPolicy\n" 43 | newAPI: "apiVersion: networking.k8s.io/v1\nkind: NetworkPolicy\n" 44 | deprecatedInVersion: "v1.8" 45 | removedInVersion: "v1.16" 46 | - deprecatedAPI: "apiVersion: extensions/v1beta1\nkind: PodSecurityPolicy\n" 47 | newAPI: "apiVersion: policy/v1beta1\nkind: PodSecurityPolicy\n" 48 | deprecatedInVersion: "v1.10" 49 | removedInVersion: "v1.16" 50 | - deprecatedAPI: "apiVersion: admissionregistration.k8s.io/v1beta1\nkind: MutatingWebhookConfiguration\n" 51 | newAPI: "apiVersion: admissionregistration.k8s.io/v1\nkind: MutatingWebhookConfiguration\n" 52 | deprecatedInVersion: "v1.16" 53 | removedInVersion: "v1.22" 54 | - deprecatedAPI: "apiVersion: admissionregistration.k8s.io/v1beta1\nkind: ValidatingWebhookConfiguration\n" 55 | newAPI: "apiVersion: admissionregistration.k8s.io/v1\nkind: ValidatingWebhookConfiguration\n" 56 | deprecatedInVersion: "v1.16" 57 | removedInVersion: "v1.22" 58 | - deprecatedAPI: "apiVersion: apiextensions.k8s.io/v1beta1\nkind: CustomResourceDefinition\n" 59 | newAPI: "apiVersion: apiextensions.k8s.io/v1\nkind: CustomResourceDefinition\n" 60 | deprecatedInVersion: "v1.16" 61 | removedInVersion: "v1.22" 62 | - deprecatedAPI: "apiVersion: apiregistration.k8s.io/v1beta1\nkind: APIService\n" 63 | newAPI: "apiVersion: apiregistration.k8s.io/v1\nkind: APIService\n" 64 | deprecatedInVersion: "v1.19" 65 | removedInVersion: "v1.22" 66 | - deprecatedAPI: "apiVersion: apiregistration.k8s.io/v1beta1\nkind: APIServiceList\n" 67 | newAPI: "apiVersion: apiregistration.k8s.io/v1\nkind: APIServiceList\n" 68 | deprecatedInVersion: "v1.19" 69 | removedInVersion: "v1.22" 70 | - deprecatedAPI: "apiVersion: authentication.k8s.io/v1beta1\nkind: TokenReview\n" 71 | newAPI: "apiVersion: authentication.k8s.io/v1\nkind: TokenReview\n" 72 | deprecatedInVersion: "v1.16" 73 | removedInVersion: "v1.22" 74 | - deprecatedAPI: "apiVersion: authorization.k8s.io/v1beta1\nkind: LocalSubjectAccessReview\n" 75 | newAPI: "apiVersion: authorization.k8s.io/v1\nkind: LocalSubjectAccessReview\n" 76 | deprecatedInVersion: "v1.16" 77 | removedInVersion: "v1.22" 78 | - deprecatedAPI: "apiVersion: authorization.k8s.io/v1beta1\nkind: SelfSubjectAccessReview\n" 79 | newAPI: "apiVersion: authorization.k8s.io/v1\nkind: SelfSubjectAccessReview\n" 80 | deprecatedInVersion: "v1.16" 81 | removedInVersion: "v1.22" 82 | - deprecatedAPI: "apiVersion: authorization.k8s.io/v1beta1\nkind: SubjectAccessReview\n" 83 | newAPI: "apiVersion: authorization.k8s.io/v1\nkind: SubjectAccessReview\n" 84 | deprecatedInVersion: "v1.16" 85 | removedInVersion: "v1.22" 86 | - deprecatedAPI: "apiVersion: autoscaling/v2beta1\nkind: HorizontalPodAutoscaler\n" 87 | newAPI: "apiVersion: autoscaling/v2\nkind: HorizontalPodAutoscaler\n" 88 | deprecatedInVersion: "v1.23" 89 | removedInVersion: "v1.25" 90 | - deprecatedAPI: "apiVersion: autoscaling/v2beta2\nkind: HorizontalPodAutoscaler\n" 91 | newAPI: "apiVersion: autoscaling/v2\nkind: HorizontalPodAutoscaler\n" 92 | deprecatedInVersion: "v1.23" 93 | removedInVersion: "v1.26" 94 | - deprecatedAPI: "apiVersion: batch/v1beta1\nkind: CronJob\n" 95 | newAPI: "apiVersion: batch/v1\nkind: CronJob\n" 96 | deprecatedInVersion: "v1.21" 97 | removedInVersion: "v1.25" 98 | - deprecatedAPI: "apiVersion: certificates.k8s.io/v1beta1\nkind: CertificateSigningRequest\n" 99 | newAPI: "apiVersion: certificates.k8s.io/v1\nkind: CertificateSigningRequest\n" 100 | deprecatedInVersion: "v1.19" 101 | removedInVersion: "v1.22" 102 | - deprecatedAPI: "apiVersion: coordination.k8s.io/v1beta1\nkind: Lease\n" 103 | newAPI: "apiVersion: coordination.k8s.io/v1\nkind: Lease\n" 104 | deprecatedInVersion: "v1.14" 105 | removedInVersion: "v1.22" 106 | - deprecatedAPI: "apiVersion: extensions/v1beta1\nkind: Ingress\n" 107 | newAPI: "apiVersion: networking.k8s.io/v1beta1\nkind: Ingress\n" 108 | deprecatedInVersion: "v1.14" 109 | removedInVersion: "v1.22" 110 | - deprecatedAPI: "apiVersion: networking.k8s.io/v1beta1\nkind: Ingress\n" 111 | newAPI: "apiVersion: networking.k8s.io/v1\nkind: Ingress\n" 112 | deprecatedInVersion: "v1.19" 113 | removedInVersion: "v1.22" 114 | - deprecatedAPI: "apiVersion: networking.k8s.io/v1beta1\nkind: IngressClass\n" 115 | newAPI: "apiVersion: networking.k8s.io/v1\nkind: IngressClass\n" 116 | deprecatedInVersion: "v1.19" 117 | removedInVersion: "v1.22" 118 | - deprecatedAPI: "apiVersion: policy/v1beta1\nkind: PodDisruptionBudget\n" 119 | newAPI: "apiVersion: policy/v1\nkind: PodDisruptionBudget\n" 120 | deprecatedInVersion: "v1.21" 121 | removedInVersion: "v1.25" 122 | - deprecatedAPI: "apiVersion: policy/v1beta1\nkind: PodSecurityPolicy\n" 123 | removedInVersion: "v1.25" 124 | - deprecatedAPI: "apiVersion: rbac.authorization.k8s.io/v1alpha1\nkind: ClusterRole\n" 125 | newAPI: "apiVersion: rbac.authorization.k8s.io/v1\nkind: ClusterRole\n" 126 | deprecatedInVersion: "v1.17" 127 | removedInVersion: "v1.22" 128 | - deprecatedAPI: "apiVersion: rbac.authorization.k8s.io/v1alpha1\nkind: ClusterRoleList\n" 129 | newAPI: "apiVersion: rbac.authorization.k8s.io/v1\nkind: ClusterRoleList\n" 130 | deprecatedInVersion: "v1.17" 131 | removedInVersion: "v1.22" 132 | - deprecatedAPI: "apiVersion: rbac.authorization.k8s.io/v1alpha1\nkind: ClusterRoleBinding\n" 133 | newAPI: "apiVersion: rbac.authorization.k8s.io/v1\nkind: ClusterRoleBinding\n" 134 | deprecatedInVersion: "v1.17" 135 | removedInVersion: "v1.22" 136 | - deprecatedAPI: "apiVersion: rbac.authorization.k8s.io/v1alpha1\nkind: ClusterRoleBindingList\n" 137 | newAPI: "apiVersion: rbac.authorization.k8s.io/v1\nkind: ClusterRoleBindingList\n" 138 | deprecatedInVersion: "v1.17" 139 | removedInVersion: "v1.22" 140 | - deprecatedAPI: "apiVersion: rbac.authorization.k8s.io/v1alpha1\nkind: Role\n" 141 | newAPI: "apiVersion: rbac.authorization.k8s.io/v1\nkind: Role\n" 142 | deprecatedInVersion: "v1.17" 143 | removedInVersion: "v1.22" 144 | - deprecatedAPI: "apiVersion: rbac.authorization.k8s.io/v1alpha1\nkind: RoleList\n" 145 | newAPI: "apiVersion: rbac.authorization.k8s.io/v1\nkind: RoleList\n" 146 | deprecatedInVersion: "v1.17" 147 | removedInVersion: "v1.22" 148 | - deprecatedAPI: "apiVersion: rbac.authorization.k8s.io/v1alpha1\nkind: RoleBinding\n" 149 | newAPI: "apiVersion: rbac.authorization.k8s.io/v1\nkind: RoleBinding\n" 150 | deprecatedInVersion: "v1.17" 151 | removedInVersion: "v1.22" 152 | - deprecatedAPI: "apiVersion: rbac.authorization.k8s.io/v1alpha1\nkind: RoleBindingList\n" 153 | newAPI: "apiVersion: rbac.authorization.k8s.io/v1\nkind: RoleBindingList\n" 154 | deprecatedInVersion: "v1.17" 155 | removedInVersion: "v1.22" 156 | - deprecatedAPI: "apiVersion: rbac.authorization.k8s.io/v1beta1\nkind: ClusterRole\n" 157 | newAPI: "apiVersion: rbac.authorization.k8s.io/v1\nkind: ClusterRole\n" 158 | deprecatedInVersion: "v1.17" 159 | removedInVersion: "v1.22" 160 | - deprecatedAPI: "apiVersion: rbac.authorization.k8s.io/v1beta1\nkind: ClusterRoleList\n" 161 | newAPI: "apiVersion: rbac.authorization.k8s.io/v1\nkind: ClusterRoleList\n" 162 | deprecatedInVersion: "v1.17" 163 | removedInVersion: "v1.22" 164 | - deprecatedAPI: "apiVersion: rbac.authorization.k8s.io/v1beta1\nkind: ClusterRoleBinding\n" 165 | newAPI: "apiVersion: rbac.authorization.k8s.io/v1\nkind: ClusterRoleBinding\n" 166 | deprecatedInVersion: "v1.17" 167 | removedInVersion: "v1.22" 168 | - deprecatedAPI: "apiVersion: rbac.authorization.k8s.io/v1beta1\nkind: ClusterRoleBindingList\n" 169 | newAPI: "apiVersion: rbac.authorization.k8s.io/v1\nkind: ClusterRoleBindingList\n" 170 | deprecatedInVersion: "v1.17" 171 | removedInVersion: "v1.22" 172 | - deprecatedAPI: "apiVersion: rbac.authorization.k8s.io/v1beta1\nkind: Role\n" 173 | newAPI: "apiVersion: rbac.authorization.k8s.io/v1\nkind: Role\n" 174 | deprecatedInVersion: "v1.17" 175 | removedInVersion: "v1.22" 176 | - deprecatedAPI: "apiVersion: rbac.authorization.k8s.io/v1beta1\nkind: RoleList\n" 177 | newAPI: "apiVersion: rbac.authorization.k8s.io/v1\nkind: RoleList\n" 178 | deprecatedInVersion: "v1.17" 179 | removedInVersion: "v1.22" 180 | - deprecatedAPI: "apiVersion: rbac.authorization.k8s.io/v1beta1\nkind: RoleBinding\n" 181 | newAPI: "apiVersion: rbac.authorization.k8s.io/v1\nkind: RoleBinding\n" 182 | deprecatedInVersion: "v1.17" 183 | removedInVersion: "v1.22" 184 | - deprecatedAPI: "apiVersion: rbac.authorization.k8s.io/v1beta1\nkind: RoleBindingList\n" 185 | newAPI: "apiVersion: rbac.authorization.k8s.io/v1\nkind: RoleBindingList\n" 186 | deprecatedInVersion: "v1.17" 187 | removedInVersion: "v1.22" 188 | - deprecatedAPI: "apiVersion: scheduling.k8s.io/v1beta1\nkind: PriorityClass\n" 189 | newAPI: "apiVersion: scheduling.k8s.io/v1\nkind: PriorityClass\n" 190 | deprecatedInVersion: "v1.14" 191 | removedInVersion: "v1.22" 192 | - deprecatedAPI: "apiVersion: storage.k8s.io/v1beta1\nkind: CSIDriver\n" 193 | newAPI: "apiVersion: storage.k8s.io/v1\nkind: CSIDriver\n" 194 | deprecatedInVersion: "v1.19" 195 | removedInVersion: "v1.22" 196 | - deprecatedAPI: "apiVersion: storage.k8s.io/v1beta1\nkind: CSINode\n" 197 | newAPI: "apiVersion: storage.k8s.io/v1\nkind: CSINode\n" 198 | deprecatedInVersion: "v1.17" 199 | removedInVersion: "v1.22" 200 | - deprecatedAPI: "apiVersion: storage.k8s.io/v1beta1\nkind: StorageClass\n" 201 | newAPI: "apiVersion: storage.k8s.io/v1\nkind: StorageClass\n" 202 | deprecatedInVersion: "v1.16" 203 | removedInVersion: "v1.22" 204 | - deprecatedAPI: "apiVersion: storage.k8s.io/v1beta1\nkind: VolumeAttachment\n" 205 | newAPI: "apiVersion: storage.k8s.io/v1\nkind: VolumeAttachment\n" 206 | deprecatedInVersion: "v1.13" 207 | removedInVersion: "v1.22" 208 | - deprecatedAPI: "apiVersion: storage.k8s.io/v1beta1\nkind: CSIStorageCapacity\n" 209 | newAPI: "apiVersion: storage.k8s.io/v1\nkind: CSIStorageCapacity\n" 210 | deprecatedInVersion: "v1.24" 211 | removedInVersion: "v1.27" 212 | - deprecatedAPI: "apiVersion: flowcontrol.apiserver.k8s.io/v1beta1\nkind: FlowSchema\n" 213 | newAPI: "apiVersion: flowcontrol.apiserver.k8s.io/v1beta3\nkind: FlowSchema\n" 214 | deprecatedInVersion: "v1.26" 215 | removedInVersion: "v1.26" 216 | - deprecatedAPI: "apiVersion: flowcontrol.apiserver.k8s.io/v1beta2\nkind: FlowSchema\n" 217 | newAPI: "apiVersion: flowcontrol.apiserver.k8s.io/v1beta3\nkind: FlowSchema\n" 218 | deprecatedInVersion: "v1.26" 219 | removedInVersion: "v1.29" 220 | - deprecatedAPI: "apiVersion: flowcontrol.apiserver.k8s.io/v1beta3\nkind: FlowSchema\n" 221 | newAPI: "apiVersion: flowcontrol.apiserver.k8s.io/v1\nkind: FlowSchema\n" 222 | deprecatedInVersion: "v1.29" 223 | removedInVersion: "v1.32" 224 | - deprecatedAPI: "apiVersion: flowcontrol.apiserver.k8s.io/v1beta1\nkind: PriorityLevelConfiguration\n" 225 | newAPI: "apiVersion: flowcontrol.apiserver.k8s.io/v1beta3\nkind: PriorityLevelConfiguration\n" 226 | deprecatedInVersion: "v1.26" 227 | removedInVersion: "v1.26" 228 | - deprecatedAPI: "apiVersion: flowcontrol.apiserver.k8s.io/v1beta2\nkind: PriorityLevelConfiguration\n" 229 | newAPI: "apiVersion: flowcontrol.apiserver.k8s.io/v1beta3\nkind: PriorityLevelConfiguration\n" 230 | deprecatedInVersion: "v1.26" 231 | removedInVersion: "v1.29" 232 | - deprecatedAPI: "apiVersion: flowcontrol.apiserver.k8s.io/v1beta3\nkind: PriorityLevelConfiguration\n" 233 | newAPI: "apiVersion: flowcontrol.apiserver.k8s.io/v1\nkind: PriorityLevelConfiguration\n" 234 | deprecatedInVersion: "v1.29" 235 | removedInVersion: "v1.32" -------------------------------------------------------------------------------- /pkg/common/common_test.go: -------------------------------------------------------------------------------- 1 | package common_test 2 | 3 | import ( 4 | "bytes" 5 | "github.com/helm/helm-mapkubeapis/pkg/common" 6 | "github.com/helm/helm-mapkubeapis/pkg/mapping" 7 | "github.com/pkg/errors" 8 | "gopkg.in/yaml.v3" 9 | "io" 10 | "testing" 11 | 12 | "github.com/onsi/ginkgo/v2" 13 | "github.com/onsi/gomega" 14 | ) 15 | 16 | func TestCommon(t *testing.T) { 17 | gomega.RegisterFailHandler(ginkgo.Fail) 18 | ginkgo.RunSpecs(t, "Deprecated APIs replacement suite") 19 | } 20 | 21 | // CheckDecode verifies that the passed YAML is parsing correctly 22 | // It doesn't check semantic correctness 23 | func CheckDecode(manifest string) error { 24 | decoder := yaml.NewDecoder(bytes.NewBufferString(manifest)) 25 | 26 | for { 27 | var value interface{} 28 | 29 | err := decoder.Decode(&value) 30 | if errors.Is(err, io.EOF) { 31 | break 32 | } 33 | 34 | if err != nil { 35 | return err 36 | } 37 | } 38 | 39 | return nil 40 | } 41 | 42 | var _ = ginkgo.Describe("replacing deprecated APIs", ginkgo.Ordered, func() { 43 | var mapFile *mapping.Metadata 44 | 45 | var deprecatedPodDisruptionBudget string 46 | var newPodDisruptionBudget string 47 | 48 | var deprecatedDeployment string 49 | var newDeployment string 50 | 51 | var deprecatedPodSecurityPolicy string 52 | 53 | ginkgo.BeforeAll(func() { 54 | deprecatedPodDisruptionBudget = "apiVersion: policy/v1beta1\nkind: PodDisruptionBudget\n" 55 | newPodDisruptionBudget = "apiVersion: policy/v1\nkind: PodDisruptionBudget\n" 56 | 57 | deprecatedDeployment = "apiVersion: apps/v1beta2\nkind: Deployment\n" 58 | newDeployment = "apiVersion: apps/v1\nkind: Deployment\n" 59 | 60 | deprecatedPodSecurityPolicy = "apiVersion: policy/v1beta1\nkind: PodSecurityPolicy\n" 61 | 62 | mapFile = &mapping.Metadata{ 63 | Mappings: []*mapping.Mapping{ 64 | { 65 | // - deprecatedAPI: "apiVersion: policy/v1beta1\nkind: PodDisruptionBudget\n" 66 | // newAPI: "apiVersion: policy/v1\nkind: PodDisruptionBudget\n" 67 | // deprecatedInVersion: "v1.21" 68 | // removedInVersion: "v1.25" 69 | DeprecatedAPI: deprecatedPodDisruptionBudget, 70 | NewAPI: newPodDisruptionBudget, 71 | DeprecatedInVersion: "v1.21", 72 | RemovedInVersion: "v1.25", 73 | }, 74 | { 75 | // - deprecatedAPI: "apiVersion: apps/v1beta2\nkind: Deployment\n" 76 | // newAPI: "apiVersion: apps/v1\nkind: Deployment\n" 77 | // deprecatedInVersion: "v1.9" 78 | // removedInVersion: "v1.16" 79 | DeprecatedAPI: deprecatedDeployment, 80 | NewAPI: newDeployment, 81 | DeprecatedInVersion: "v1.9", 82 | RemovedInVersion: "v1.16", 83 | }, 84 | { 85 | // - deprecatedAPI: "apiVersion: policy/v1beta1\nkind: PodSecurityPolicy" 86 | // deprecatedInVersion: "v1.21" 87 | // removedInVersion: "v1.25" 88 | DeprecatedAPI: deprecatedPodSecurityPolicy, 89 | RemovedInVersion: "v1.25", 90 | }, 91 | }, 92 | } 93 | }) 94 | 95 | ginkgo.When("a deprecated API exists in the manifest", func() { 96 | ginkgo.When("it is a superseded API", func() { 97 | var ( 98 | deploymentManifest string 99 | expectedResultingDeploymentManifest string 100 | podDisruptionBudgetManifest string 101 | expectedResultingPodDisruptionBudgetManifest string 102 | ) 103 | 104 | ginkgo.BeforeAll(func() { 105 | deploymentManifest = `--- 106 | apiVersion: apps/v1beta2 107 | kind: Deployment 108 | metadata: 109 | name: test 110 | namespace: test-ns 111 | spec: 112 | template: 113 | containers: 114 | - name: test-container 115 | image: test-image` 116 | 117 | expectedResultingDeploymentManifest = `--- 118 | apiVersion: apps/v1 119 | kind: Deployment 120 | metadata: 121 | name: test 122 | namespace: test-ns 123 | spec: 124 | template: 125 | containers: 126 | - name: test-container 127 | image: test-image` 128 | 129 | podDisruptionBudgetManifest = `--- 130 | apiVersion: policy/v1beta1 131 | kind: PodDisruptionBudget 132 | metadata: 133 | name: pdb-test 134 | namespace: test-ns` 135 | 136 | expectedResultingPodDisruptionBudgetManifest = `--- 137 | apiVersion: policy/v1 138 | kind: PodDisruptionBudget 139 | metadata: 140 | name: pdb-test 141 | namespace: test-ns` 142 | }) 143 | 144 | ginkgo.It("replaces deprecated resources with a new version in Kubernetes v1.25", func() { 145 | kubeVersion125 := "v1.25" 146 | modifiedDeploymentManifest, err := common.ReplaceManifestData(mapFile, deploymentManifest, kubeVersion125) 147 | 148 | gomega.Expect(err).ToNot(gomega.HaveOccurred()) 149 | gomega.Expect(modifiedDeploymentManifest).To(gomega.Equal(expectedResultingDeploymentManifest)) 150 | 151 | modifiedPdbManifest, err := common.ReplaceManifestData(mapFile, podDisruptionBudgetManifest, kubeVersion125) 152 | gomega.Expect(err).ToNot(gomega.HaveOccurred()) 153 | gomega.Expect(modifiedPdbManifest).To(gomega.Equal(expectedResultingPodDisruptionBudgetManifest)) 154 | 155 | err = CheckDecode(modifiedDeploymentManifest) 156 | gomega.Expect(err).ToNot(gomega.HaveOccurred()) 157 | }) 158 | }) 159 | 160 | ginkgo.When("it is a removed API", func() { 161 | var kubeVersion125 = "v1.25" 162 | var expectedResultManifest = `--- 163 | apiVersion: apps/v1 164 | kind: Deployment 165 | metadata: 166 | name: test 167 | namespace: test-ns 168 | --- 169 | apiVersion: v1 170 | kind: ServiceAccount 171 | metadata: 172 | name: test-sa 173 | namespace: test-ns` 174 | 175 | ginkgo.When("it is in the beginning of the manifest", func() { 176 | var podSecurityPolicyManifest = `--- 177 | apiVersion: policy/v1beta1 178 | kind: PodSecurityPolicy 179 | metadata: 180 | name: test-psp 181 | --- 182 | apiVersion: apps/v1 183 | kind: Deployment 184 | metadata: 185 | name: test 186 | namespace: test-ns 187 | --- 188 | apiVersion: v1 189 | kind: ServiceAccount 190 | metadata: 191 | name: test-sa 192 | namespace: test-ns` 193 | 194 | ginkgo.It("removes the deprecated API manifest and leaves a valid YAML", func() { 195 | modifiedDeploymentManifest, err := common.ReplaceManifestData(mapFile, podSecurityPolicyManifest, kubeVersion125) 196 | 197 | gomega.Expect(err).ToNot(gomega.HaveOccurred()) 198 | gomega.Expect(modifiedDeploymentManifest).ToNot(gomega.ContainSubstring(deprecatedPodSecurityPolicy)) 199 | gomega.Expect(expectedResultManifest).To(gomega.Equal(expectedResultManifest)) 200 | 201 | err = CheckDecode(modifiedDeploymentManifest) 202 | gomega.Expect(err).ToNot(gomega.HaveOccurred()) 203 | }) 204 | }) 205 | 206 | ginkgo.When("it is at the end of the manifest", func() { 207 | var podSecurityPolicyManifest = `--- 208 | apiVersion: apps/v1 209 | kind: Deployment 210 | metadata: 211 | name: test 212 | namespace: test-ns 213 | --- 214 | apiVersion: v1 215 | kind: ServiceAccount 216 | metadata: 217 | name: test-sa 218 | namespace: test-ns 219 | --- 220 | apiVersion: policy/v1beta1 221 | kind: PodSecurityPolicy 222 | metadata: 223 | name: test-psp` 224 | 225 | ginkgo.It("removes the deprecated API manifest and leaves a valid YAML", func() { 226 | modifiedDeploymentManifest, err := common.ReplaceManifestData(mapFile, podSecurityPolicyManifest, kubeVersion125) 227 | 228 | gomega.Expect(err).ToNot(gomega.HaveOccurred()) 229 | gomega.Expect(modifiedDeploymentManifest).ToNot(gomega.ContainSubstring(deprecatedPodSecurityPolicy)) 230 | gomega.Expect(modifiedDeploymentManifest).To(gomega.Equal(expectedResultManifest)) 231 | 232 | err = CheckDecode(modifiedDeploymentManifest) 233 | gomega.Expect(err).ToNot(gomega.HaveOccurred()) 234 | }) 235 | }) 236 | 237 | ginkgo.When("it is in the middle of other manifests", func() { 238 | var podSecurityPolicyManifest = `--- 239 | apiVersion: apps/v1 240 | kind: Deployment 241 | metadata: 242 | name: test 243 | namespace: test-ns 244 | --- 245 | apiVersion: policy/v1beta1 246 | kind: PodSecurityPolicy 247 | metadata: 248 | name: test-psp 249 | --- 250 | apiVersion: v1 251 | kind: ServiceAccount 252 | metadata: 253 | name: test-sa 254 | namespace: test-ns` 255 | 256 | ginkgo.It("removes the deprecated API manifest and leaves a valid YAML", func() { 257 | modifiedDeploymentManifest, err := common.ReplaceManifestData(mapFile, podSecurityPolicyManifest, kubeVersion125) 258 | 259 | gomega.Expect(err).ToNot(gomega.HaveOccurred()) 260 | gomega.Expect(modifiedDeploymentManifest).ToNot(gomega.ContainSubstring(deprecatedPodSecurityPolicy)) 261 | gomega.Expect(modifiedDeploymentManifest).To(gomega.Equal(expectedResultManifest)) 262 | 263 | err = CheckDecode(modifiedDeploymentManifest) 264 | gomega.Expect(err).ToNot(gomega.HaveOccurred()) 265 | }) 266 | }) 267 | 268 | ginkgo.When("a three-dash is missing at the beginning", func() { 269 | var podSecurityPolicyManifest = `apiVersion: policy/v1beta1 270 | kind: PodSecurityPolicy 271 | metadata: 272 | name: test-psp 273 | --- 274 | apiVersion: apps/v1 275 | kind: Deployment 276 | metadata: 277 | name: test 278 | namespace: test-ns 279 | --- 280 | apiVersion: v1 281 | kind: ServiceAccount 282 | metadata: 283 | name: test-sa 284 | namespace: test-ns` 285 | 286 | ginkgo.It("removes the deprecated API manifest and leaves a valid YAML", func() { 287 | modifiedDeploymentManifest, err := common.ReplaceManifestData(mapFile, podSecurityPolicyManifest, kubeVersion125) 288 | 289 | gomega.Expect(err).ToNot(gomega.HaveOccurred()) 290 | gomega.Expect(modifiedDeploymentManifest).ToNot(gomega.ContainSubstring(deprecatedPodSecurityPolicy)) 291 | gomega.Expect(modifiedDeploymentManifest).To(gomega.Equal(expectedResultManifest)) 292 | 293 | err = CheckDecode(modifiedDeploymentManifest) 294 | gomega.Expect(err).ToNot(gomega.HaveOccurred()) 295 | }) 296 | }) 297 | 298 | ginkgo.When("apiVersion is not the first field", func() { 299 | var podSecurityPolicyManifest = `--- 300 | metadata: 301 | name: test-psp 302 | apiVersion: policy/v1beta1 303 | kind: PodSecurityPolicy 304 | --- 305 | apiVersion: apps/v1 306 | kind: Deployment 307 | metadata: 308 | name: test 309 | namespace: test-ns 310 | --- 311 | apiVersion: v1 312 | kind: ServiceAccount 313 | metadata: 314 | name: test-sa 315 | namespace: test-ns` 316 | 317 | ginkgo.It("removes the deprecated API manifest and leaves a valid YAML", func() { 318 | modifiedDeploymentManifest, err := common.ReplaceManifestData(mapFile, podSecurityPolicyManifest, kubeVersion125) 319 | 320 | gomega.Expect(err).ToNot(gomega.HaveOccurred()) 321 | gomega.Expect(modifiedDeploymentManifest).ToNot(gomega.ContainSubstring(deprecatedPodSecurityPolicy)) 322 | gomega.Expect(modifiedDeploymentManifest).To(gomega.Equal(expectedResultManifest)) 323 | 324 | err = CheckDecode(modifiedDeploymentManifest) 325 | gomega.Expect(err).ToNot(gomega.HaveOccurred()) 326 | }) 327 | }) 328 | 329 | ginkgo.When("apiVersion is not the first field and a three-dash is missing at the beginning of the manifest", func() { 330 | var podSecurityPolicyManifest = `metadata: 331 | name: test-psp 332 | apiVersion: policy/v1beta1 333 | kind: PodSecurityPolicy 334 | --- 335 | apiVersion: apps/v1 336 | kind: Deployment 337 | metadata: 338 | name: test 339 | namespace: test-ns 340 | --- 341 | apiVersion: v1 342 | kind: ServiceAccount 343 | metadata: 344 | name: test-sa 345 | namespace: test-ns` 346 | 347 | ginkgo.It("removes the deprecated API manifest and leaves a valid YAML", func() { 348 | modifiedDeploymentManifest, err := common.ReplaceManifestData(mapFile, podSecurityPolicyManifest, kubeVersion125) 349 | 350 | gomega.Expect(err).ToNot(gomega.HaveOccurred()) 351 | gomega.Expect(modifiedDeploymentManifest).ToNot(gomega.ContainSubstring(deprecatedPodSecurityPolicy)) 352 | gomega.Expect(modifiedDeploymentManifest).To(gomega.Equal(expectedResultManifest)) 353 | 354 | err = CheckDecode(modifiedDeploymentManifest) 355 | gomega.Expect(err).ToNot(gomega.HaveOccurred()) 356 | }) 357 | }) 358 | 359 | ginkgo.When("apiVersion is not the first field and the resource is in the middle of the manifest", func() { 360 | var podSecurityPolicyManifest = `--- 361 | apiVersion: apps/v1 362 | kind: Deployment 363 | metadata: 364 | name: test 365 | namespace: test-ns 366 | --- 367 | metadata: 368 | name: test-psp 369 | apiVersion: policy/v1beta1 370 | kind: PodSecurityPolicy 371 | --- 372 | apiVersion: v1 373 | kind: ServiceAccount 374 | metadata: 375 | name: test-sa 376 | namespace: test-ns` 377 | 378 | ginkgo.It("removes the deprecated API manifest and leaves a valid YAML", func() { 379 | modifiedDeploymentManifest, err := common.ReplaceManifestData(mapFile, podSecurityPolicyManifest, kubeVersion125) 380 | 381 | gomega.Expect(err).ToNot(gomega.HaveOccurred()) 382 | gomega.Expect(modifiedDeploymentManifest).ToNot(gomega.ContainSubstring(deprecatedPodSecurityPolicy)) 383 | gomega.Expect(modifiedDeploymentManifest).To(gomega.Equal(expectedResultManifest)) 384 | 385 | err = CheckDecode(modifiedDeploymentManifest) 386 | gomega.Expect(err).ToNot(gomega.HaveOccurred()) 387 | }) 388 | }) 389 | 390 | ginkgo.When("apiVersion is not the first field and the resource is at the end of the manifest", func() { 391 | var podSecurityPolicyManifest = `--- 392 | apiVersion: apps/v1 393 | kind: Deployment 394 | metadata: 395 | name: test 396 | namespace: test-ns 397 | --- 398 | apiVersion: v1 399 | kind: ServiceAccount 400 | metadata: 401 | name: test-sa 402 | namespace: test-ns 403 | --- 404 | metadata: 405 | name: test-psp 406 | apiVersion: policy/v1beta1 407 | kind: PodSecurityPolicy 408 | spec: 409 | allowPrivilegeEscalation: true 410 | ` 411 | 412 | ginkgo.It("removes the deprecated API manifest and leaves a valid YAML", func() { 413 | modifiedDeploymentManifest, err := common.ReplaceManifestData(mapFile, podSecurityPolicyManifest, kubeVersion125) 414 | 415 | gomega.Expect(err).ToNot(gomega.HaveOccurred()) 416 | gomega.Expect(modifiedDeploymentManifest).ToNot(gomega.ContainSubstring(deprecatedPodSecurityPolicy)) 417 | gomega.Expect(modifiedDeploymentManifest).To(gomega.Equal(expectedResultManifest)) 418 | 419 | err = CheckDecode(modifiedDeploymentManifest) 420 | gomega.Expect(err).ToNot(gomega.HaveOccurred()) 421 | }) 422 | }) 423 | }) 424 | }) 425 | }) 426 | -------------------------------------------------------------------------------- /go.sum: -------------------------------------------------------------------------------- 1 | dario.cat/mergo v1.0.1 h1:Ra4+bf83h2ztPIQYNP99R6m+Y7KfnARDfID+a+vLl4s= 2 | dario.cat/mergo v1.0.1/go.mod h1:uNxQE+84aUszobStD9th8a29P2fMDhsBdgRYvZOxGmk= 3 | filippo.io/edwards25519 v1.1.0 h1:FNf4tywRC1HmFuKW5xopWpigGjJKiJSV0Cqo0cJWDaA= 4 | filippo.io/edwards25519 v1.1.0/go.mod h1:BxyFTGdWcka3PhytdK4V28tE5sGfRvvvRV7EaN4VDT4= 5 | github.com/AdaLogics/go-fuzz-headers v0.0.0-20230811130428-ced1acdcaa24 h1:bvDV9vkmnHYOMsOr4WLk+Vo07yKIzd94sVoIqshQ4bU= 6 | github.com/AdaLogics/go-fuzz-headers v0.0.0-20230811130428-ced1acdcaa24/go.mod h1:8o94RPi1/7XTJvwPpRSzSUedZrtlirdB3r9Z20bi2f8= 7 | github.com/Azure/go-ansiterm v0.0.0-20250102033503-faa5f7b0171c h1:udKWzYgxTojEKWjV8V+WSxDXJ4NFATAsZjh8iIbsQIg= 8 | github.com/Azure/go-ansiterm v0.0.0-20250102033503-faa5f7b0171c/go.mod h1:xomTg63KZ2rFqZQzSB4Vz2SUXa1BpHTVz9L5PTmPC4E= 9 | github.com/BurntSushi/toml v1.5.0 h1:W5quZX/G/csjUnuI8SUYlsHs9M38FC7znL0lIO+DvMg= 10 | github.com/BurntSushi/toml v1.5.0/go.mod h1:ukJfTF/6rtPPRCnwkur4qwRxa8vTRFBF0uk2lLoLwho= 11 | github.com/DATA-DOG/go-sqlmock v1.5.2 h1:OcvFkGmslmlZibjAjaHm3L//6LiuBgolP7OputlJIzU= 12 | github.com/DATA-DOG/go-sqlmock v1.5.2/go.mod h1:88MAG/4G7SMwSE3CeA0ZKzrT5CiOU3OJ+JlNzwDqpNU= 13 | github.com/MakeNowJust/heredoc v1.0.0 h1:cXCdzVdstXyiTqTvfqk9SDHpKNjxuom+DOlyEeQ4pzQ= 14 | github.com/MakeNowJust/heredoc v1.0.0/go.mod h1:mG5amYoWBHf8vpLOuehzbGGw0EHxpZZ6lCpQ4fNJ8LE= 15 | github.com/Masterminds/goutils v1.1.1 h1:5nUrii3FMTL5diU80unEVvNevw1nH4+ZV4DSLVJLSYI= 16 | github.com/Masterminds/goutils v1.1.1/go.mod h1:8cTjp+g8YejhMuvIA5y2vz3BpJxksy863GQaJW2MFNU= 17 | github.com/Masterminds/semver/v3 v3.3.0 h1:B8LGeaivUe71a5qox1ICM/JLl0NqZSW5CHyL+hmvYS0= 18 | github.com/Masterminds/semver/v3 v3.3.0/go.mod h1:4V+yj/TJE1HU9XfppCwVMZq3I84lprf4nC11bSS5beM= 19 | github.com/Masterminds/sprig/v3 v3.3.0 h1:mQh0Yrg1XPo6vjYXgtf5OtijNAKJRNcTdOOGZe3tPhs= 20 | github.com/Masterminds/sprig/v3 v3.3.0/go.mod h1:Zy1iXRYNqNLUolqCpL4uhk6SHUMAOSCzdgBfDb35Lz0= 21 | github.com/Masterminds/squirrel v1.5.4 h1:uUcX/aBc8O7Fg9kaISIUsHXdKuqehiXAMQTYX8afzqM= 22 | github.com/Masterminds/squirrel v1.5.4/go.mod h1:NNaOrjSoIDfDA40n7sr2tPNZRfjzjA400rg+riTZj10= 23 | github.com/armon/go-socks5 v0.0.0-20160902184237-e75332964ef5 h1:0CwZNZbxp69SHPdPJAN/hZIm0C4OItdklCFmMRWYpio= 24 | github.com/armon/go-socks5 v0.0.0-20160902184237-e75332964ef5/go.mod h1:wHh0iHkYZB8zMSxRWpUBQtwG5a7fFgvEO+odwuTv2gs= 25 | github.com/asaskevich/govalidator v0.0.0-20230301143203-a9d515a09cc2 h1:DklsrG3dyBCFEj5IhUbnKptjxatkF07cF2ak3yi77so= 26 | github.com/asaskevich/govalidator v0.0.0-20230301143203-a9d515a09cc2/go.mod h1:WaHUgvxTVq04UNunO+XhnAqY/wQc+bxr74GqbsZ/Jqw= 27 | github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM= 28 | github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw= 29 | github.com/blang/semver/v4 v4.0.0 h1:1PFHFE6yCCTv8C1TeyNNarDzntLi7wMI5i/pzqYIsAM= 30 | github.com/blang/semver/v4 v4.0.0/go.mod h1:IbckMUScFkM3pff0VJDNKRiT6TG/YpiHIM2yvyW5YoQ= 31 | github.com/bshuster-repo/logrus-logstash-hook v1.0.0 h1:e+C0SB5R1pu//O4MQ3f9cFuPGoOVeF2fE4Og9otCc70= 32 | github.com/bshuster-repo/logrus-logstash-hook v1.0.0/go.mod h1:zsTqEiSzDgAa/8GZR7E1qaXrhYNDKBYy5/dWPTIflbk= 33 | github.com/cenkalti/backoff/v4 v4.3.0 h1:MyRJ/UdXutAwSAT+s3wNd7MfTIcy71VQueUuFK343L8= 34 | github.com/cenkalti/backoff/v4 v4.3.0/go.mod h1:Y3VNntkOUPxTVeUxJ/G5vcM//AlwfmyYozVcomhLiZE= 35 | github.com/cespare/xxhash/v2 v2.3.0 h1:UL815xU9SqsFlibzuggzjXhog7bL6oX9BbNZnL2UFvs= 36 | github.com/cespare/xxhash/v2 v2.3.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= 37 | github.com/chai2010/gettext-go v1.0.2 h1:1Lwwip6Q2QGsAdl/ZKPCwTe9fe0CjlUbqj5bFNSjIRk= 38 | github.com/chai2010/gettext-go v1.0.2/go.mod h1:y+wnP2cHYaVj19NZhYKAwEMH2CI1gNHeQQ+5AjwawxA= 39 | github.com/containerd/containerd v1.7.27 h1:yFyEyojddO3MIGVER2xJLWoCIn+Up4GaHFquP7hsFII= 40 | github.com/containerd/containerd v1.7.27/go.mod h1:xZmPnl75Vc+BLGt4MIfu6bp+fy03gdHAn9bz+FreFR0= 41 | github.com/containerd/errdefs v0.3.0 h1:FSZgGOeK4yuT/+DnF07/Olde/q4KBoMsaamhXxIMDp4= 42 | github.com/containerd/errdefs v0.3.0/go.mod h1:+YBYIdtsnF4Iw6nWZhJcqGSg/dwvV7tyJ/kCkyJ2k+M= 43 | github.com/containerd/log v0.1.0 h1:TCJt7ioM2cr/tfR8GPbGf9/VRAX8D2B4PjzCpfX540I= 44 | github.com/containerd/log v0.1.0/go.mod h1:VRRf09a7mHDIRezVKTRCrOq78v577GXq3bSa3EhrzVo= 45 | github.com/containerd/platforms v0.2.1 h1:zvwtM3rz2YHPQsF2CHYM8+KtB5dvhISiXh5ZpSBQv6A= 46 | github.com/containerd/platforms v0.2.1/go.mod h1:XHCb+2/hzowdiut9rkudds9bE5yJ7npe7dG/wG+uFPw= 47 | github.com/coreos/go-systemd/v22 v22.5.0 h1:RrqgGjYQKalulkV8NGVIfkXQf6YYmOyiJKk8iXXhfZs= 48 | github.com/coreos/go-systemd/v22 v22.5.0/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= 49 | github.com/cpuguy83/go-md2man/v2 v2.0.6/go.mod h1:oOW0eioCTA6cOiMLiUPZOpcVxMig6NIQQ7OS05n1F4g= 50 | github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= 51 | github.com/creack/pty v1.1.18 h1:n56/Zwd5o6whRC5PMGretI4IdRLlmBXYNjScPaBgsbY= 52 | github.com/creack/pty v1.1.18/go.mod h1:MOBLtS5ELjhRRrroQr9kyvTxUAFNvYEK993ew/Vr4O4= 53 | github.com/cyphar/filepath-securejoin v0.4.1 h1:JyxxyPEaktOD+GAnqIqTf9A8tHyAG22rowi7HkoSU1s= 54 | github.com/cyphar/filepath-securejoin v0.4.1/go.mod h1:Sdj7gXlvMcPZsbhwhQ33GguGLDGQL7h7bg04C/+u9jI= 55 | github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= 56 | github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= 57 | github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc h1:U9qPSI2PIWSS1VwoXQT9A3Wy9MM3WgvqSxFWenqJduM= 58 | github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= 59 | github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f h1:lO4WD4F/rVNCu3HqELle0jiPLLBs70cWOduZpkS1E78= 60 | github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f/go.mod h1:cuUVRXasLTGF7a8hSLbxyZXjz+1KgoB3wDUb6vlszIc= 61 | github.com/distribution/distribution/v3 v3.0.0 h1:q4R8wemdRQDClzoNNStftB2ZAfqOiN6UX90KJc4HjyM= 62 | github.com/distribution/distribution/v3 v3.0.0/go.mod h1:tRNuFoZsUdyRVegq8xGNeds4KLjwLCRin/tTo6i1DhU= 63 | github.com/distribution/reference v0.6.0 h1:0IXCQ5g4/QMHHkarYzh5l+u8T3t73zM5QvfrDyIgxBk= 64 | github.com/distribution/reference v0.6.0/go.mod h1:BbU0aIcezP1/5jX/8MP0YiH4SdvB5Y4f/wlDRiLyi3E= 65 | github.com/docker/docker-credential-helpers v0.8.2 h1:bX3YxiGzFP5sOXWc3bTPEXdEaZSeVMrFgOr3T+zrFAo= 66 | github.com/docker/docker-credential-helpers v0.8.2/go.mod h1:P3ci7E3lwkZg6XiHdRKft1KckHiO9a2rNtyFbZ/ry9M= 67 | github.com/docker/go-events v0.0.0-20190806004212-e31b211e4f1c h1:+pKlWGMw7gf6bQ+oDZB4KHQFypsfjYlq/C4rfL7D3g8= 68 | github.com/docker/go-events v0.0.0-20190806004212-e31b211e4f1c/go.mod h1:Uw6UezgYA44ePAFQYUehOuCzmy5zmg/+nl2ZfMWGkpA= 69 | github.com/docker/go-metrics v0.0.1 h1:AgB/0SvBxihN0X8OR4SjsblXkbMvalQ8cjmtKQ2rQV8= 70 | github.com/docker/go-metrics v0.0.1/go.mod h1:cG1hvH2utMXtqgqqYE9plW6lDxS3/5ayHzueweSI3Vw= 71 | github.com/emicklei/go-restful/v3 v3.11.0 h1:rAQeMHw1c7zTmncogyy8VvRZwtkmkZ4FxERmMY4rD+g= 72 | github.com/emicklei/go-restful/v3 v3.11.0/go.mod h1:6n3XBCmQQb25CM2LCACGz8ukIrRry+4bhvbpWn3mrbc= 73 | github.com/evanphx/json-patch v5.9.11+incompatible h1:ixHHqfcGvxhWkniF1tWxBHA0yb4Z+d1UQi45df52xW8= 74 | github.com/evanphx/json-patch v5.9.11+incompatible/go.mod h1:50XU6AFN0ol/bzJsmQLiYLvXMP4fmwYFNcr97nuDLSk= 75 | github.com/exponent-io/jsonpath v0.0.0-20210407135951-1de76d718b3f h1:Wl78ApPPB2Wvf/TIe2xdyJxTlb6obmF18d8QdkxNDu4= 76 | github.com/exponent-io/jsonpath v0.0.0-20210407135951-1de76d718b3f/go.mod h1:OSYXu++VVOHnXeitef/D8n/6y4QV8uLHSFXX4NeXMGc= 77 | github.com/fatih/color v1.13.0 h1:8LOYc1KYPPmyKMuN8QV2DNRWNbLo6LZ0iLs8+mlH53w= 78 | github.com/fatih/color v1.13.0/go.mod h1:kLAiJbzzSOZDVNGyDpeOxJ47H46qBXwg5ILebYFFOfk= 79 | github.com/felixge/httpsnoop v1.0.4 h1:NFTV2Zj1bL4mc9sqWACXbQFVBBg2W3GPvqp8/ESS2Wg= 80 | github.com/felixge/httpsnoop v1.0.4/go.mod h1:m8KPJKqk1gH5J9DgRY2ASl2lWCfGKXixSwevea8zH2U= 81 | github.com/foxcpp/go-mockdns v1.1.0 h1:jI0rD8M0wuYAxL7r/ynTrCQQq0BVqfB99Vgk7DlmewI= 82 | github.com/foxcpp/go-mockdns v1.1.0/go.mod h1:IhLeSFGed3mJIAXPH2aiRQB+kqz7oqu8ld2qVbOu7Wk= 83 | github.com/frankban/quicktest v1.14.6 h1:7Xjx+VpznH+oBnejlPUj8oUpdxnVs4f8XU8WnHkI4W8= 84 | github.com/frankban/quicktest v1.14.6/go.mod h1:4ptaffx2x8+WTWXmUCuVU6aPUX1/Mz7zb5vbUoiM6w0= 85 | github.com/fxamacker/cbor/v2 v2.7.0 h1:iM5WgngdRBanHcxugY4JySA0nk1wZorNOpTgCMedv5E= 86 | github.com/fxamacker/cbor/v2 v2.7.0/go.mod h1:pxXPTn3joSm21Gbwsv0w9OSA2y1HFR9qXEeXQVeNoDQ= 87 | github.com/go-errors/errors v1.4.2 h1:J6MZopCL4uSllY1OfXM374weqZFFItUbrImctkmUxIA= 88 | github.com/go-errors/errors v1.4.2/go.mod h1:sIVyrIiJhuEF+Pj9Ebtd6P/rEYROXFi3BopGUQ5a5Og= 89 | github.com/go-gorp/gorp/v3 v3.1.0 h1:ItKF/Vbuj31dmV4jxA1qblpSwkl9g1typ24xoe70IGs= 90 | github.com/go-gorp/gorp/v3 v3.1.0/go.mod h1:dLEjIyyRNiXvNZ8PSmzpt1GsWAUK8kjVhEpjH8TixEw= 91 | github.com/go-logr/logr v1.4.2 h1:6pFjapn8bFcIbiKo3XT4j/BhANplGihG6tvd+8rYgrY= 92 | github.com/go-logr/logr v1.4.2/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY= 93 | github.com/go-logr/stdr v1.2.2 h1:hSWxHoqTgW2S2qGc0LTAI563KZ5YKYRhT3MFKZMbjag= 94 | github.com/go-logr/stdr v1.2.2/go.mod h1:mMo/vtBO5dYbehREoey6XUKy/eSumjCCveDpRre4VKE= 95 | github.com/go-openapi/jsonpointer v0.19.6/go.mod h1:osyAmYz/mB/C3I+WsTTSgw1ONzaLJoLCyoi6/zppojs= 96 | github.com/go-openapi/jsonpointer v0.21.0 h1:YgdVicSA9vH5RiHs9TZW5oyafXZFc6+2Vc1rr/O9oNQ= 97 | github.com/go-openapi/jsonpointer v0.21.0/go.mod h1:IUyH9l/+uyhIYQ/PXVA41Rexl+kOkAPDdXEYns6fzUY= 98 | github.com/go-openapi/jsonreference v0.20.2 h1:3sVjiK66+uXK/6oQ8xgcRKcFgQ5KXa2KvnJRumpMGbE= 99 | github.com/go-openapi/jsonreference v0.20.2/go.mod h1:Bl1zwGIM8/wsvqjsOQLJ/SH+En5Ap4rVB5KVcIDZG2k= 100 | github.com/go-openapi/swag v0.22.3/go.mod h1:UzaqsxGiab7freDnrUUra0MwWfN/q7tE4j+VcZ0yl14= 101 | github.com/go-openapi/swag v0.23.0 h1:vsEVJDUo2hPJ2tu0/Xc+4noaxyEffXNIs3cOULZ+GrE= 102 | github.com/go-openapi/swag v0.23.0/go.mod h1:esZ8ITTYEsH1V2trKHjAN8Ai7xHb8RV+YSZ577vPjgQ= 103 | github.com/go-sql-driver/mysql v1.8.1 h1:LedoTUt/eveggdHS9qUFC1EFSa8bU2+1pZjSRpvNJ1Y= 104 | github.com/go-sql-driver/mysql v1.8.1/go.mod h1:wEBSXgmK//2ZFJyE+qWnIsVGmvmEKlqwuVSjsCm7DZg= 105 | github.com/go-task/slim-sprig/v3 v3.0.0 h1:sUs3vkvUymDpBKi3qH1YSqBQk9+9D/8M2mN1vB6EwHI= 106 | github.com/go-task/slim-sprig/v3 v3.0.0/go.mod h1:W848ghGpv3Qj3dhTPRyJypKRiqCdHZiAzKg9hl15HA8= 107 | github.com/gobwas/glob v0.2.3 h1:A4xDbljILXROh+kObIiy5kIaPYD8e96x1tgBhUI5J+Y= 108 | github.com/gobwas/glob v0.2.3/go.mod h1:d3Ez4x06l9bZtSvzIay5+Yzi0fmZzPgnTbPcKjJAkT8= 109 | github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q= 110 | github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q= 111 | github.com/golang/protobuf v1.5.4 h1:i7eJL8qZTpSEXOPTxNKhASYpMn+8e5Q6AdndVa1dWek= 112 | github.com/golang/protobuf v1.5.4/go.mod h1:lnTiLA8Wa4RWRcIUkrtSVa5nRhsEGBg48fD6rSs7xps= 113 | github.com/google/btree v1.1.3 h1:CVpQJjYgC4VbzxeGVHfvZrv1ctoYCAI8vbl07Fcxlyg= 114 | github.com/google/btree v1.1.3/go.mod h1:qOPhT0dTNdNzV6Z/lhRX0YXUafgPLFUh+gZMl761Gm4= 115 | github.com/google/gnostic-models v0.6.9 h1:MU/8wDLif2qCXZmzncUQ/BOfxWfthHi63KqpoNbWqVw= 116 | github.com/google/gnostic-models v0.6.9/go.mod h1:CiWsm0s6BSQd1hRn8/QmxqB6BesYcbSZxsz9b0KuDBw= 117 | github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= 118 | github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8= 119 | github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU= 120 | github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= 121 | github.com/google/pprof v0.0.0-20250403155104-27863c87afa6 h1:BHT72Gu3keYf3ZEu2J0b1vyeLSOYI8bm5wbJM/8yDe8= 122 | github.com/google/pprof v0.0.0-20250403155104-27863c87afa6/go.mod h1:boTsfXsheKC2y+lKOCMpSfarhxDeIzfZG1jqGcPl3cA= 123 | github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510 h1:El6M4kTTCOh6aBiKaUGG7oYTSPP8MxqL4YI3kZKwcP4= 124 | github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510/go.mod h1:pupxD2MaaD3pAXIBCelhxNneeOaAeabZDe5s4K6zSpQ= 125 | github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= 126 | github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= 127 | github.com/gorilla/handlers v1.5.2 h1:cLTUSsNkgcwhgRqvCNmdbRWG0A3N4F+M2nWKdScwyEE= 128 | github.com/gorilla/handlers v1.5.2/go.mod h1:dX+xVpaxdSw+q0Qek8SSsl3dfMk3jNddUkMzo0GtH0w= 129 | github.com/gorilla/mux v1.8.1 h1:TuBL49tXwgrFYWhqrNgrUNEY92u81SPhu7sTdzQEiWY= 130 | github.com/gorilla/mux v1.8.1/go.mod h1:AKf9I4AEqPTmMytcMc0KkNouC66V3BtZ4qD5fmWSiMQ= 131 | github.com/gorilla/websocket v1.5.4-0.20250319132907-e064f32e3674 h1:JeSE6pjso5THxAzdVpqr6/geYxZytqFMBCOtn/ujyeo= 132 | github.com/gorilla/websocket v1.5.4-0.20250319132907-e064f32e3674/go.mod h1:r4w70xmWCQKmi1ONH4KIaBptdivuRPyosB9RmPlGEwA= 133 | github.com/gosuri/uitable v0.0.4 h1:IG2xLKRvErL3uhY6e1BylFzG+aJiwQviDDTfOKeKTpY= 134 | github.com/gosuri/uitable v0.0.4/go.mod h1:tKR86bXuXPZazfOTG1FIzvjIdXzd0mo4Vtn16vt0PJo= 135 | github.com/gregjones/httpcache v0.0.0-20190611155906-901d90724c79 h1:+ngKgrYPPJrOjhax5N+uePQ0Fh1Z7PheYoUI/0nzkPA= 136 | github.com/gregjones/httpcache v0.0.0-20190611155906-901d90724c79/go.mod h1:FecbI9+v66THATjSRHfNgh1IVFe/9kFxbXtjV0ctIMA= 137 | github.com/grpc-ecosystem/grpc-gateway v1.16.0 h1:gmcG1KaJ57LophUzW0Hy8NmPhnMZb4M0+kPpLofRdBo= 138 | github.com/grpc-ecosystem/grpc-gateway/v2 v2.24.0 h1:TmHmbvxPmaegwhDubVz0lICL0J5Ka2vwTzhoePEXsGE= 139 | github.com/grpc-ecosystem/grpc-gateway/v2 v2.24.0/go.mod h1:qztMSjm835F2bXf+5HKAPIS5qsmQDqZna/PgVt4rWtI= 140 | github.com/hashicorp/errwrap v1.0.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= 141 | github.com/hashicorp/errwrap v1.1.0 h1:OxrOeh75EUXMY8TBjag2fzXGZ40LB6IKw45YeGUDY2I= 142 | github.com/hashicorp/errwrap v1.1.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= 143 | github.com/hashicorp/go-multierror v1.1.1 h1:H5DkEtf6CXdFp0N0Em5UCwQpXMWke8IA0+lD48awMYo= 144 | github.com/hashicorp/go-multierror v1.1.1/go.mod h1:iw975J/qwKPdAO1clOe2L8331t/9/fmwbPZ6JB6eMoM= 145 | github.com/hashicorp/golang-lru/arc/v2 v2.0.5 h1:l2zaLDubNhW4XO3LnliVj0GXO3+/CGNJAg1dcN2Fpfw= 146 | github.com/hashicorp/golang-lru/arc/v2 v2.0.5/go.mod h1:ny6zBSQZi2JxIeYcv7kt2sH2PXJtirBN7RDhRpxPkxU= 147 | github.com/hashicorp/golang-lru/v2 v2.0.5 h1:wW7h1TG88eUIJ2i69gaE3uNVtEPIagzhGvHgwfx2Vm4= 148 | github.com/hashicorp/golang-lru/v2 v2.0.5/go.mod h1:QeFd9opnmA6QUJc5vARoKUSoFhyfM2/ZepoAG6RGpeM= 149 | github.com/huandu/xstrings v1.5.0 h1:2ag3IFq9ZDANvthTwTiqSSZLjDc+BedvHPAp5tJy2TI= 150 | github.com/huandu/xstrings v1.5.0/go.mod h1:y5/lhBue+AyNmUVz9RLU9xbLR0o4KIIExikq4ovT0aE= 151 | github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8= 152 | github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw= 153 | github.com/jmoiron/sqlx v1.4.0 h1:1PLqN7S1UYp5t4SrVVnt4nUVNemrDAtxlulVe+Qgm3o= 154 | github.com/jmoiron/sqlx v1.4.0/go.mod h1:ZrZ7UsYB/weZdl2Bxg6jCRO9c3YHl8r3ahlKmRT4JLY= 155 | github.com/josharian/intern v1.0.0 h1:vlS4z54oSdjm0bgjRigI+G1HpF+tI+9rE5LLzOg8HmY= 156 | github.com/josharian/intern v1.0.0/go.mod h1:5DoeVV0s6jJacbCEi61lwdGj/aVlrQvzHFFd8Hwg//Y= 157 | github.com/json-iterator/go v1.1.12 h1:PV8peI4a0ysnczrg+LtxykD8LfKY9ML6u2jnxaEnrnM= 158 | github.com/json-iterator/go v1.1.12/go.mod h1:e30LSqwooZae/UwlEbR2852Gd8hjQvJoHmT4TnhNGBo= 159 | github.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI2bnpBCr8= 160 | github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= 161 | github.com/klauspost/compress v1.18.0 h1:c/Cqfb0r+Yi+JtIEq73FWXVkRonBlf0CRNYc8Zttxdo= 162 | github.com/klauspost/compress v1.18.0/go.mod h1:2Pp+KzxcywXVXMr50+X0Q/Lsb43OQHYWRCY2AiWywWQ= 163 | github.com/kr/pretty v0.2.1/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI= 164 | github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= 165 | github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk= 166 | github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= 167 | github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= 168 | github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= 169 | github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= 170 | github.com/lann/builder v0.0.0-20180802200727-47ae307949d0 h1:SOEGU9fKiNWd/HOJuq6+3iTQz8KNCLtVX6idSoTLdUw= 171 | github.com/lann/builder v0.0.0-20180802200727-47ae307949d0/go.mod h1:dXGbAdH5GtBTC4WfIxhKZfyBF/HBFgRZSWwZ9g/He9o= 172 | github.com/lann/ps v0.0.0-20150810152359-62de8c46ede0 h1:P6pPBnrTSX3DEVR4fDembhRWSsG5rVo6hYhAB/ADZrk= 173 | github.com/lann/ps v0.0.0-20150810152359-62de8c46ede0/go.mod h1:vmVJ0l/dxyfGW6FmdpVm2joNMFikkuWg0EoCKLGUMNw= 174 | github.com/lib/pq v1.10.9 h1:YXG7RB+JIjhP29X+OtkiDnYaXQwpS4JEWq7dtCCRUEw= 175 | github.com/lib/pq v1.10.9/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o= 176 | github.com/liggitt/tabwriter v0.0.0-20181228230101-89fcab3d43de h1:9TO3cAIGXtEhnIaL+V+BEER86oLrvS+kWobKpbJuye0= 177 | github.com/liggitt/tabwriter v0.0.0-20181228230101-89fcab3d43de/go.mod h1:zAbeS9B/r2mtpb6U+EI2rYA5OAXxsYw6wTamcNW+zcE= 178 | github.com/mailru/easyjson v0.7.7 h1:UGYAvKxe3sBsEDzO8ZeWOSlIQfWFlxbzLZe7hwFURr0= 179 | github.com/mailru/easyjson v0.7.7/go.mod h1:xzfreul335JAWq5oZzymOObrkdz5UnU4kGfJJLY9Nlc= 180 | github.com/mattn/go-colorable v0.1.9/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc= 181 | github.com/mattn/go-colorable v0.1.13 h1:fFA4WZxdEF4tXPZVKMLwD8oUnCTTo08duU7wxecdEvA= 182 | github.com/mattn/go-colorable v0.1.13/go.mod h1:7S9/ev0klgBDR4GtXTXX8a3vIGJpMovkB8vQcUbaXHg= 183 | github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU= 184 | github.com/mattn/go-isatty v0.0.14/go.mod h1:7GGIvUiUoEMVVmxf/4nioHXj79iQHKdU27kJ6hsGG94= 185 | github.com/mattn/go-isatty v0.0.16/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM= 186 | github.com/mattn/go-isatty v0.0.17 h1:BTarxUcIeDqL27Mc+vyvdWYSL28zpIhv3RoTdsLMPng= 187 | github.com/mattn/go-isatty v0.0.17/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM= 188 | github.com/mattn/go-runewidth v0.0.9 h1:Lm995f3rfxdpd6TSmuVCHVb/QhupuXlYr8sCI/QdE+0= 189 | github.com/mattn/go-runewidth v0.0.9/go.mod h1:H031xJmbD/WCDINGzjvQ9THkh0rPKHF+m2gUSrubnMI= 190 | github.com/mattn/go-sqlite3 v1.14.22 h1:2gZY6PC6kBnID23Tichd1K+Z0oS6nE/XwU+Vz/5o4kU= 191 | github.com/mattn/go-sqlite3 v1.14.22/go.mod h1:Uh1q+B4BYcTPb+yiD3kU8Ct7aC0hY9fxUwlHK0RXw+Y= 192 | github.com/miekg/dns v1.1.57 h1:Jzi7ApEIzwEPLHWRcafCN9LZSBbqQpxjt/wpgvg7wcM= 193 | github.com/miekg/dns v1.1.57/go.mod h1:uqRjCRUuEAA6qsOiJvDd+CFo/vW+y5WR6SNmHE55hZk= 194 | github.com/mitchellh/copystructure v1.2.0 h1:vpKXTN4ewci03Vljg/q9QvCGUDttBOGBIa15WveJJGw= 195 | github.com/mitchellh/copystructure v1.2.0/go.mod h1:qLl+cE2AmVv+CoeAwDPye/v+N2HKCj9FbZEVFJRxO9s= 196 | github.com/mitchellh/go-wordwrap v1.0.1 h1:TLuKupo69TCn6TQSyGxwI1EblZZEsQ0vMlAFQflz0v0= 197 | github.com/mitchellh/go-wordwrap v1.0.1/go.mod h1:R62XHJLzvMFRBbcrT7m7WgmE1eOyTSsCt+hzestvNj0= 198 | github.com/mitchellh/reflectwalk v1.0.2 h1:G2LzWKi524PWgd3mLHV8Y5k7s6XUvT0Gef6zxSIeXaQ= 199 | github.com/mitchellh/reflectwalk v1.0.2/go.mod h1:mSTlrgnPZtwu0c4WaC2kGObEpuNDbx0jmZXqmk4esnw= 200 | github.com/moby/spdystream v0.5.0 h1:7r0J1Si3QO/kjRitvSLVVFUjxMEb/YLj6S9FF62JBCU= 201 | github.com/moby/spdystream v0.5.0/go.mod h1:xBAYlnt/ay+11ShkdFKNAG7LsyK/tmNBVvVOwrfMgdI= 202 | github.com/moby/term v0.5.2 h1:6qk3FJAFDs6i/q3W/pQ97SX192qKfZgGjCQqfCJkgzQ= 203 | github.com/moby/term v0.5.2/go.mod h1:d3djjFCrjnB+fl8NJux+EJzu0msscUP+f8it8hPkFLc= 204 | github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= 205 | github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd h1:TRLaZ9cD/w8PVh93nsPXa1VrQ6jlwL5oN8l14QlcNfg= 206 | github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= 207 | github.com/modern-go/reflect2 v1.0.2 h1:xBagoLtFs94CBntxluKeaWgTMpvLxC4ur3nMaC9Gz0M= 208 | github.com/modern-go/reflect2 v1.0.2/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjYzDa0/r8luk= 209 | github.com/monochromegane/go-gitignore v0.0.0-20200626010858-205db1a8cc00 h1:n6/2gBQ3RWajuToeY6ZtZTIKv2v7ThUy5KKusIT0yc0= 210 | github.com/monochromegane/go-gitignore v0.0.0-20200626010858-205db1a8cc00/go.mod h1:Pm3mSP3c5uWn86xMLZ5Sa7JB9GsEZySvHYXCTK4E9q4= 211 | github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 h1:C3w9PqII01/Oq1c1nUAm88MOHcQC9l5mIlSMApZMrHA= 212 | github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822/go.mod h1:+n7T8mK8HuQTcFwEeznm/DIxMOiR9yIdICNftLE1DvQ= 213 | github.com/mxk/go-flowrate v0.0.0-20140419014527-cca7078d478f h1:y5//uYreIhSUg3J1GEMiLbxo1LJaP8RfCpH6pymGZus= 214 | github.com/mxk/go-flowrate v0.0.0-20140419014527-cca7078d478f/go.mod h1:ZdcZmHo+o7JKHSa8/e818NopupXU1YMK5fe1lsApnBw= 215 | github.com/onsi/ginkgo/v2 v2.23.4 h1:ktYTpKJAVZnDT4VjxSbiBenUjmlL/5QkBEocaWXiQus= 216 | github.com/onsi/ginkgo/v2 v2.23.4/go.mod h1:Bt66ApGPBFzHyR+JO10Zbt0Gsp4uWxu5mIOTusL46e8= 217 | github.com/onsi/gomega v1.37.0 h1:CdEG8g0S133B4OswTDC/5XPSzE1OeP29QOioj2PID2Y= 218 | github.com/onsi/gomega v1.37.0/go.mod h1:8D9+Txp43QWKhM24yyOBEdpkzN8FvJyAwecBgsU4KU0= 219 | github.com/opencontainers/go-digest v1.0.0 h1:apOUWs51W5PlhuyGyz9FCeeBIOUDA/6nW8Oi/yOhh5U= 220 | github.com/opencontainers/go-digest v1.0.0/go.mod h1:0JzlMkj0TRzQZfJkVvzbP0HBR3IKzErnv2BNG4W4MAM= 221 | github.com/opencontainers/image-spec v1.1.1 h1:y0fUlFfIZhPF1W537XOLg0/fcx6zcHCJwooC2xJA040= 222 | github.com/opencontainers/image-spec v1.1.1/go.mod h1:qpqAh3Dmcf36wStyyWU+kCeDgrGnAve2nCC8+7h8Q0M= 223 | github.com/peterbourgon/diskv v2.0.1+incompatible h1:UBdAOUP5p4RWqPBg048CAvpKN+vxiaj6gdUUzhl4XmI= 224 | github.com/peterbourgon/diskv v2.0.1+incompatible/go.mod h1:uqqh8zWWbv1HBMNONnaR/tNboyR3/BZd58JJSHlUSCU= 225 | github.com/phayes/freeport v0.0.0-20220201140144-74d24b5ae9f5 h1:Ii+DKncOVM8Cu1Hc+ETb5K+23HdAMvESYE3ZJ5b5cMI= 226 | github.com/phayes/freeport v0.0.0-20220201140144-74d24b5ae9f5/go.mod h1:iIss55rKnNBTvrwdmkUpLnDpZoAHvWaiq5+iMmen4AE= 227 | github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= 228 | github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= 229 | github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= 230 | github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 h1:Jamvg5psRIccs7FGNTlIRMkT8wgtp5eCXdBlqhYGL6U= 231 | github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= 232 | github.com/poy/onpar v1.1.2 h1:QaNrNiZx0+Nar5dLgTVp5mXkyoVFIbepjyEoGSnhbAY= 233 | github.com/poy/onpar v1.1.2/go.mod h1:6X8FLNoxyr9kkmnlqpK6LSoiOtrO6MICtWwEuWkLjzg= 234 | github.com/prashantv/gostub v1.1.0 h1:BTyx3RfQjRHnUWaGF9oQos79AlQ5k8WNktv7VGvVH4g= 235 | github.com/prashantv/gostub v1.1.0/go.mod h1:A5zLQHz7ieHGG7is6LLXLz7I8+3LZzsrV0P1IAHhP5U= 236 | github.com/prometheus/client_golang v1.22.0 h1:rb93p9lokFEsctTys46VnV1kLCDpVZ0a/Y92Vm0Zc6Q= 237 | github.com/prometheus/client_golang v1.22.0/go.mod h1:R7ljNsLXhuQXYZYtw6GAE9AZg8Y7vEW5scdCXrWRXC0= 238 | github.com/prometheus/client_model v0.6.1 h1:ZKSh/rekM+n3CeS952MLRAdFwIKqeY8b62p8ais2e9E= 239 | github.com/prometheus/client_model v0.6.1/go.mod h1:OrxVMOVHjw3lKMa8+x6HeMGkHMQyHDk9E3jmP2AmGiY= 240 | github.com/prometheus/common v0.62.0 h1:xasJaQlnWAeyHdUBeGjXmutelfJHWMRr+Fg4QszZ2Io= 241 | github.com/prometheus/common v0.62.0/go.mod h1:vyBcEuLSvWos9B1+CyL7JZ2up+uFzXhkqml0W5zIY1I= 242 | github.com/prometheus/procfs v0.15.1 h1:YagwOFzUgYfKKHX6Dr+sHT7km/hxC76UB0learggepc= 243 | github.com/prometheus/procfs v0.15.1/go.mod h1:fB45yRUv8NstnjriLhBQLuOUt+WW4BsoGhij/e3PBqk= 244 | github.com/redis/go-redis/extra/rediscmd/v9 v9.0.5 h1:EaDatTxkdHG+U3Bk4EUr+DZ7fOGwTfezUiUJMaIcaho= 245 | github.com/redis/go-redis/extra/rediscmd/v9 v9.0.5/go.mod h1:fyalQWdtzDBECAQFBJuQe5bzQ02jGd5Qcbgb97Flm7U= 246 | github.com/redis/go-redis/extra/redisotel/v9 v9.0.5 h1:EfpWLLCyXw8PSM2/XNJLjI3Pb27yVE+gIAfeqp8LUCc= 247 | github.com/redis/go-redis/extra/redisotel/v9 v9.0.5/go.mod h1:WZjPDy7VNzn77AAfnAfVjZNvfJTYfPetfZk5yoSTLaQ= 248 | github.com/redis/go-redis/v9 v9.7.3 h1:YpPyAayJV+XErNsatSElgRZZVCwXX9QzkKYNvO7x0wM= 249 | github.com/redis/go-redis/v9 v9.7.3/go.mod h1:bGUrSggJ9X9GUmZpZNEOQKaANxSGgOEBRltRTZHSvrA= 250 | github.com/rogpeppe/go-internal v1.13.1 h1:KvO1DLK/DRN07sQ1LQKScxyZJuNnedQ5/wKSR38lUII= 251 | github.com/rogpeppe/go-internal v1.13.1/go.mod h1:uMEvuHeurkdAXX61udpOXGD/AzZDWNMNyH2VO9fmH0o= 252 | github.com/rubenv/sql-migrate v1.8.0 h1:dXnYiJk9k3wetp7GfQbKJcPHjVJL6YK19tKj8t2Ns0o= 253 | github.com/rubenv/sql-migrate v1.8.0/go.mod h1:F2bGFBwCU+pnmbtNYDeKvSuvL6lBVtXDXUUv5t+u1qw= 254 | github.com/russross/blackfriday/v2 v2.1.0 h1:JIOH55/0cWyOuilr9/qlrm0BSXldqnqwMsf35Ld67mk= 255 | github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= 256 | github.com/sergi/go-diff v1.2.0 h1:XU+rvMAioB0UC3q1MFrIQy4Vo5/4VsRDQQXHsEya6xQ= 257 | github.com/sergi/go-diff v1.2.0/go.mod h1:STckp+ISIX8hZLjrqAeVduY0gWCT9IjLuqbuNXdaHfM= 258 | github.com/shopspring/decimal v1.4.0 h1:bxl37RwXBklmTi0C79JfXCEBD1cqqHt0bbgBAGFp81k= 259 | github.com/shopspring/decimal v1.4.0/go.mod h1:gawqmDU56v4yIKSwfBSFip1HdCCXN8/+DMd9qYNcwME= 260 | github.com/sirupsen/logrus v1.9.3 h1:dueUQJ1C2q9oE3F7wvmSGAaVtTmUizReu6fjN8uqzbQ= 261 | github.com/sirupsen/logrus v1.9.3/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVsIT4qYEQ= 262 | github.com/spf13/cast v1.7.0 h1:ntdiHjuueXFgm5nzDRdOS4yfT43P5Fnud6DH50rz/7w= 263 | github.com/spf13/cast v1.7.0/go.mod h1:ancEpBxwJDODSW/UG4rDrAqiKolqNNh2DX3mk86cAdo= 264 | github.com/spf13/cobra v1.9.1 h1:CXSaggrXdbHK9CF+8ywj8Amf7PBRmPCOJugH954Nnlo= 265 | github.com/spf13/cobra v1.9.1/go.mod h1:nDyEzZ8ogv936Cinf6g1RU9MRY64Ir93oCnqb9wxYW0= 266 | github.com/spf13/pflag v1.0.6 h1:jFzHGLGAlb3ruxLB8MhbI6A8+AQX/2eW4qeyNZXNp2o= 267 | github.com/spf13/pflag v1.0.6/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= 268 | github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= 269 | github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw= 270 | github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo= 271 | github.com/stretchr/objx v0.5.2 h1:xuMeJ0Sdp5ZMRXx/aWO6RZxdr3beISkG5/G/aIRr3pY= 272 | github.com/stretchr/objx v0.5.2/go.mod h1:FRsXN1f5AsAjCGJKqEizvkpNtU+EGNCLh3NxZ/8L+MA= 273 | github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= 274 | github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= 275 | github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= 276 | github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= 277 | github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= 278 | github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= 279 | github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= 280 | github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA= 281 | github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= 282 | github.com/x448/float16 v0.8.4 h1:qLwI1I70+NjRFUR3zs1JPUCgaCXSh3SW62uAKT1mSBM= 283 | github.com/x448/float16 v0.8.4/go.mod h1:14CWIYCyZA/cWjXOioeEpHeN/83MdbZDRQHoFcYsOfg= 284 | github.com/xeipuuv/gojsonpointer v0.0.0-20180127040702-4e3ac2762d5f/go.mod h1:N2zxlSyiKSe5eX1tZViRH5QA0qijqEDrYZiPEAiq3wU= 285 | github.com/xeipuuv/gojsonpointer v0.0.0-20190905194746-02993c407bfb h1:zGWFAtiMcyryUHoUjUJX0/lt1H2+i2Ka2n+D3DImSNo= 286 | github.com/xeipuuv/gojsonpointer v0.0.0-20190905194746-02993c407bfb/go.mod h1:N2zxlSyiKSe5eX1tZViRH5QA0qijqEDrYZiPEAiq3wU= 287 | github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415 h1:EzJWgHovont7NscjpAxXsDA8S8BMYve8Y5+7cuRE7R0= 288 | github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415/go.mod h1:GwrjFmJcFw6At/Gs6z4yjiIwzuJ1/+UwLxMQDVQXShQ= 289 | github.com/xeipuuv/gojsonschema v1.2.0 h1:LhYJRs+L4fBtjZUfuSZIKGeVu0QRy8e5Xi7D17UxZ74= 290 | github.com/xeipuuv/gojsonschema v1.2.0/go.mod h1:anYRn/JVcOK2ZgGU+IjEV4nwlhoK5sQluxsYJ78Id3Y= 291 | github.com/xlab/treeprint v1.2.0 h1:HzHnuAF1plUN2zGlAFHbSQP2qJ0ZAD3XF5XD7OesXRQ= 292 | github.com/xlab/treeprint v1.2.0/go.mod h1:gj5Gd3gPdKtR1ikdDK6fnFLdmIS0X30kTTuNd/WEJu0= 293 | github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= 294 | github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= 295 | go.opentelemetry.io/auto/sdk v1.1.0 h1:cH53jehLUN6UFLY71z+NDOiNJqDdPRaXzTel0sJySYA= 296 | go.opentelemetry.io/auto/sdk v1.1.0/go.mod h1:3wSPjt5PWp2RhlCcmmOial7AvC4DQqZb7a7wCow3W8A= 297 | go.opentelemetry.io/contrib/bridges/prometheus v0.57.0 h1:UW0+QyeyBVhn+COBec3nGhfnFe5lwB0ic1JBVjzhk0w= 298 | go.opentelemetry.io/contrib/bridges/prometheus v0.57.0/go.mod h1:ppciCHRLsyCio54qbzQv0E4Jyth/fLWDTJYfvWpcSVk= 299 | go.opentelemetry.io/contrib/exporters/autoexport v0.57.0 h1:jmTVJ86dP60C01K3slFQa2NQ/Aoi7zA+wy7vMOKD9H4= 300 | go.opentelemetry.io/contrib/exporters/autoexport v0.57.0/go.mod h1:EJBheUMttD/lABFyLXhce47Wr6DPWYReCzaZiXadH7g= 301 | go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.58.0 h1:yd02MEjBdJkG3uabWP9apV+OuWRIXGDuJEUJbOHmCFU= 302 | go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.58.0/go.mod h1:umTcuxiv1n/s/S6/c2AT/g2CQ7u5C59sHDNmfSwgz7Q= 303 | go.opentelemetry.io/otel v1.33.0 h1:/FerN9bax5LoK51X/sI0SVYrjSE0/yUL7DpxW4K3FWw= 304 | go.opentelemetry.io/otel v1.33.0/go.mod h1:SUUkR6csvUQl+yjReHu5uM3EtVV7MBm5FHKRlNx4I8I= 305 | go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploggrpc v0.8.0 h1:WzNab7hOOLzdDF/EoWCt4glhrbMPVMOO5JYTmpz36Ls= 306 | go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploggrpc v0.8.0/go.mod h1:hKvJwTzJdp90Vh7p6q/9PAOd55dI6WA6sWj62a/JvSs= 307 | go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploghttp v0.8.0 h1:S+LdBGiQXtJdowoJoQPEtI52syEP/JYBUpjO49EQhV8= 308 | go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploghttp v0.8.0/go.mod h1:5KXybFvPGds3QinJWQT7pmXf+TN5YIa7CNYObWRkj50= 309 | go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc v1.32.0 h1:j7ZSD+5yn+lo3sGV69nW04rRR0jhYnBwjuX3r0HvnK0= 310 | go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc v1.32.0/go.mod h1:WXbYJTUaZXAbYd8lbgGuvih0yuCfOFC5RJoYnoLcGz8= 311 | go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetrichttp v1.32.0 h1:t/Qur3vKSkUCcDVaSumWF2PKHt85pc7fRvFuoVT8qFU= 312 | go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetrichttp v1.32.0/go.mod h1:Rl61tySSdcOJWoEgYZVtmnKdA0GeKrSqkHC1t+91CH8= 313 | go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.33.0 h1:Vh5HayB/0HHfOQA7Ctx69E/Y/DcQSMPpKANYVMQ7fBA= 314 | go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.33.0/go.mod h1:cpgtDBaqD/6ok/UG0jT15/uKjAY8mRA53diogHBg3UI= 315 | go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.33.0 h1:5pojmb1U1AogINhN3SurB+zm/nIcusopeBNp42f45QM= 316 | go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.33.0/go.mod h1:57gTHJSE5S1tqg+EKsLPlTWhpHMsWlVmer+LA926XiA= 317 | go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.32.0 h1:cMyu9O88joYEaI47CnQkxO1XZdpoTF9fEnW2duIddhw= 318 | go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.32.0/go.mod h1:6Am3rn7P9TVVeXYG+wtcGE7IE1tsQ+bP3AuWcKt/gOI= 319 | go.opentelemetry.io/otel/exporters/prometheus v0.54.0 h1:rFwzp68QMgtzu9PgP3jm9XaMICI6TsofWWPcBDKwlsU= 320 | go.opentelemetry.io/otel/exporters/prometheus v0.54.0/go.mod h1:QyjcV9qDP6VeK5qPyKETvNjmaaEc7+gqjh4SS0ZYzDU= 321 | go.opentelemetry.io/otel/exporters/stdout/stdoutlog v0.8.0 h1:CHXNXwfKWfzS65yrlB2PVds1IBZcdsX8Vepy9of0iRU= 322 | go.opentelemetry.io/otel/exporters/stdout/stdoutlog v0.8.0/go.mod h1:zKU4zUgKiaRxrdovSS2amdM5gOc59slmo/zJwGX+YBg= 323 | go.opentelemetry.io/otel/exporters/stdout/stdoutmetric v1.32.0 h1:SZmDnHcgp3zwlPBS2JX2urGYe/jBKEIT6ZedHRUyCz8= 324 | go.opentelemetry.io/otel/exporters/stdout/stdoutmetric v1.32.0/go.mod h1:fdWW0HtZJ7+jNpTKUR0GpMEDP69nR8YBJQxNiVCE3jk= 325 | go.opentelemetry.io/otel/exporters/stdout/stdouttrace v1.32.0 h1:cC2yDI3IQd0Udsux7Qmq8ToKAx1XCilTQECZ0KDZyTw= 326 | go.opentelemetry.io/otel/exporters/stdout/stdouttrace v1.32.0/go.mod h1:2PD5Ex6z8CFzDbTdOlwyNIUywRr1DN0ospafJM1wJ+s= 327 | go.opentelemetry.io/otel/log v0.8.0 h1:egZ8vV5atrUWUbnSsHn6vB8R21G2wrKqNiDt3iWertk= 328 | go.opentelemetry.io/otel/log v0.8.0/go.mod h1:M9qvDdUTRCopJcGRKg57+JSQ9LgLBrwwfC32epk5NX8= 329 | go.opentelemetry.io/otel/metric v1.33.0 h1:r+JOocAyeRVXD8lZpjdQjzMadVZp2M4WmQ+5WtEnklQ= 330 | go.opentelemetry.io/otel/metric v1.33.0/go.mod h1:L9+Fyctbp6HFTddIxClbQkjtubW6O9QS3Ann/M82u6M= 331 | go.opentelemetry.io/otel/sdk v1.33.0 h1:iax7M131HuAm9QkZotNHEfstof92xM+N8sr3uHXc2IM= 332 | go.opentelemetry.io/otel/sdk v1.33.0/go.mod h1:A1Q5oi7/9XaMlIWzPSxLRWOI8nG3FnzHJNbiENQuihM= 333 | go.opentelemetry.io/otel/sdk/log v0.8.0 h1:zg7GUYXqxk1jnGF/dTdLPrK06xJdrXgqgFLnI4Crxvs= 334 | go.opentelemetry.io/otel/sdk/log v0.8.0/go.mod h1:50iXr0UVwQrYS45KbruFrEt4LvAdCaWWgIrsN3ZQggo= 335 | go.opentelemetry.io/otel/sdk/metric v1.32.0 h1:rZvFnvmvawYb0alrYkjraqJq0Z4ZUJAiyYCU9snn1CU= 336 | go.opentelemetry.io/otel/sdk/metric v1.32.0/go.mod h1:PWeZlq0zt9YkYAp3gjKZ0eicRYvOh1Gd+X99x6GHpCQ= 337 | go.opentelemetry.io/otel/trace v1.33.0 h1:cCJuF7LRjUFso9LPnEAHJDB2pqzp+hbO8eu1qqW2d/s= 338 | go.opentelemetry.io/otel/trace v1.33.0/go.mod h1:uIcdVUZMpTAmz0tI1z04GoVSezK37CbGV4fr1f2nBck= 339 | go.opentelemetry.io/proto/otlp v1.4.0 h1:TA9WRvW6zMwP+Ssb6fLoUIuirti1gGbP28GcKG1jgeg= 340 | go.opentelemetry.io/proto/otlp v1.4.0/go.mod h1:PPBWZIP98o2ElSqI35IHfu7hIhSwvc5N38Jw8pXuGFY= 341 | go.uber.org/automaxprocs v1.6.0 h1:O3y2/QNTOdbF+e/dpXNNW7Rx2hZ4sTIPyybbxyNqTUs= 342 | go.uber.org/automaxprocs v1.6.0/go.mod h1:ifeIMSnPZuznNm6jmdzmU3/bfk01Fe2fotchwEFJ8r8= 343 | go.uber.org/goleak v1.3.0 h1:2K3zAYmnTNqV73imy9J1T3WC+gmCePx2hEGkimedGto= 344 | go.uber.org/goleak v1.3.0/go.mod h1:CoHD4mav9JJNrW/WLlf7HGZPjdw8EucARQHekz1X6bE= 345 | golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= 346 | golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= 347 | golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= 348 | golang.org/x/crypto v0.37.0 h1:kJNSjF/Xp7kU0iB2Z+9viTPMW4EqqsrywMXLJOOsXSE= 349 | golang.org/x/crypto v0.37.0/go.mod h1:vg+k43peMZ0pUMhYmVAWysMK35e6ioLh3wB8ZCAfbVc= 350 | golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= 351 | golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= 352 | golang.org/x/mod v0.24.0 h1:ZfthKaKaT4NrhGVZHO1/WDTwGES4De8KtWO0SIbNJMU= 353 | golang.org/x/mod v0.24.0/go.mod h1:IXM97Txy2VM4PJ3gI61r1YEk/gAj6zAHN3AdZt6S9Ww= 354 | golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= 355 | golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 356 | golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 357 | golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= 358 | golang.org/x/net v0.38.0 h1:vRMAPTMaeGqVhG5QyLJHqNDwecKTomGeqbnfZyKlBI8= 359 | golang.org/x/net v0.38.0/go.mod h1:ivrbrMbzFq5J41QOQh0siUuly180yBYtLp+CKbEaFx8= 360 | golang.org/x/oauth2 v0.28.0 h1:CrgCKl8PPAVtLnU3c+EDw6x11699EWlsDeWNWKdIOkc= 361 | golang.org/x/oauth2 v0.28.0/go.mod h1:onh5ek6nERTohokkhCD/y2cV4Do3fxFHFuAejCkRWT8= 362 | golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 363 | golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 364 | golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 365 | golang.org/x/sync v0.14.0 h1:woo0S4Yywslg6hp4eUFjTVOyKt0RookbpAHG4c1HmhQ= 366 | golang.org/x/sync v0.14.0/go.mod h1:1dzgHSNfp02xaA81J2MS99Qcpr2w7fw1gpm99rleRqA= 367 | golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= 368 | golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 369 | golang.org/x/sys v0.0.0-20200116001909-b77594299b42/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 370 | golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 371 | golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 372 | golang.org/x/sys v0.0.0-20210616094352-59db8d763f22/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= 373 | golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= 374 | golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= 375 | golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= 376 | golang.org/x/sys v0.33.0 h1:q3i8TbbEz+JRD9ywIRlyRAQbM0qF7hu24q3teo2hbuw= 377 | golang.org/x/sys v0.33.0/go.mod h1:BJP2sWEmIv4KK5OTEluFJCKSidICx8ciO85XgH3Ak8k= 378 | golang.org/x/term v0.31.0 h1:erwDkOK1Msy6offm1mOgvspSkslFnIGsFnxOKoufg3o= 379 | golang.org/x/term v0.31.0/go.mod h1:R4BeIy7D95HzImkxGkTW1UQTtP54tio2RyHz7PwK0aw= 380 | golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= 381 | golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= 382 | golang.org/x/text v0.24.0 h1:dd5Bzh4yt5KYA8f9CJHCP4FB4D51c2c6JvN37xJJkJ0= 383 | golang.org/x/text v0.24.0/go.mod h1:L8rBsPeo2pSS+xqN0d5u2ikmjtmoJbDBT1b7nHvFCdU= 384 | golang.org/x/time v0.9.0 h1:EsRrnYcQiGH+5FfbgvV4AP7qEZstoyrHB0DzarOQ4ZY= 385 | golang.org/x/time v0.9.0/go.mod h1:3BpzKBy/shNhVucY/MWOyx10tF3SFh9QdLuxbVysPQM= 386 | golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 387 | golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= 388 | golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= 389 | golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= 390 | golang.org/x/tools v0.31.0 h1:0EedkvKDbh+qistFTd0Bcwe/YLh4vHwWEkiI0toFIBU= 391 | golang.org/x/tools v0.31.0/go.mod h1:naFTU+Cev749tSJRXJlna0T3WxKvb1kWEx15xA4SdmQ= 392 | golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= 393 | golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= 394 | golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= 395 | golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= 396 | google.golang.org/genproto v0.0.0-20240123012728-ef4313101c80 h1:KAeGQVN3M9nD0/bQXnr/ClcEMJ968gUXJQ9pwfSynuQ= 397 | google.golang.org/genproto/googleapis/api v0.0.0-20241209162323-e6fa225c2576 h1:CkkIfIt50+lT6NHAVoRYEyAvQGFM7xEwXUUywFvEb3Q= 398 | google.golang.org/genproto/googleapis/api v0.0.0-20241209162323-e6fa225c2576/go.mod h1:1R3kvZ1dtP3+4p4d3G8uJ8rFk/fWlScl38vanWACI08= 399 | google.golang.org/genproto/googleapis/rpc v0.0.0-20241209162323-e6fa225c2576 h1:8ZmaLZE4XWrtU3MyClkYqqtl6Oegr3235h7jxsDyqCY= 400 | google.golang.org/genproto/googleapis/rpc v0.0.0-20241209162323-e6fa225c2576/go.mod h1:5uTbfoYQed2U9p3KIj2/Zzm02PYhndfdmML0qC3q3FU= 401 | google.golang.org/grpc v1.68.1 h1:oI5oTa11+ng8r8XMMN7jAOmWfPZWbYpCFaMUTACxkM0= 402 | google.golang.org/grpc v1.68.1/go.mod h1:+q1XYFJjShcqn0QZHvCyeR4CXPA+llXIeUIfIe00waw= 403 | google.golang.org/protobuf v1.36.5 h1:tPhr+woSbjfYvY6/GPufUoYizxw1cF/yFoxJ2fmpwlM= 404 | google.golang.org/protobuf v1.36.5/go.mod h1:9fA7Ob0pmnwhb644+1+CVWFRbNajQ6iRojtC/QF5bRE= 405 | gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= 406 | gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk= 407 | gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q= 408 | gopkg.in/evanphx/json-patch.v4 v4.12.0 h1:n6jtcsulIzXPJaxegRbvFNNrZDjbij7ny3gmSPG+6V4= 409 | gopkg.in/evanphx/json-patch.v4 v4.12.0/go.mod h1:p8EYWUEYMpynmqDbY58zCKCFZw8pRWMG4EsWvDvM72M= 410 | gopkg.in/inf.v0 v0.9.1 h1:73M5CoZyi3ZLMOyDlQh031Cx6N9NDJ2Vvfl76EDAgDc= 411 | gopkg.in/inf.v0 v0.9.1/go.mod h1:cWUDdTG/fYaXco+Dcufb5Vnc6Gp2YChqWtbxRZE0mXw= 412 | gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY= 413 | gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ= 414 | gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= 415 | gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= 416 | gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= 417 | helm.sh/helm/v3 v3.18.0 h1:ItOAm3Quo0dus3NUHjs+lluqWWEIO7xrSW+zKWCrvlw= 418 | helm.sh/helm/v3 v3.18.0/go.mod h1:43QHS1W97RcoFJRk36ZBhHdTfykqBlJdsWp3yhzdq8w= 419 | k8s.io/api v0.33.1 h1:tA6Cf3bHnLIrUK4IqEgb2v++/GYUtqiu9sRVk3iBXyw= 420 | k8s.io/api v0.33.1/go.mod h1:87esjTn9DRSRTD4fWMXamiXxJhpOIREjWOSjsW1kEHw= 421 | k8s.io/apiextensions-apiserver v0.33.0 h1:d2qpYL7Mngbsc1taA4IjJPRJ9ilnsXIrndH+r9IimOs= 422 | k8s.io/apiextensions-apiserver v0.33.0/go.mod h1:VeJ8u9dEEN+tbETo+lFkwaaZPg6uFKLGj5vyNEwwSzc= 423 | k8s.io/apimachinery v0.33.1 h1:mzqXWV8tW9Rw4VeW9rEkqvnxj59k1ezDUl20tFK/oM4= 424 | k8s.io/apimachinery v0.33.1/go.mod h1:BHW0YOu7n22fFv/JkYOEfkUYNRN0fj0BlvMFWA7b+SM= 425 | k8s.io/apiserver v0.33.0 h1:QqcM6c+qEEjkOODHppFXRiw/cE2zP85704YrQ9YaBbc= 426 | k8s.io/apiserver v0.33.0/go.mod h1:EixYOit0YTxt8zrO2kBU7ixAtxFce9gKGq367nFmqI8= 427 | k8s.io/cli-runtime v0.33.0 h1:Lbl/pq/1o8BaIuyn+aVLdEPHVN665tBAXUePs8wjX7c= 428 | k8s.io/cli-runtime v0.33.0/go.mod h1:QcA+r43HeUM9jXFJx7A+yiTPfCooau/iCcP1wQh4NFw= 429 | k8s.io/client-go v0.33.1 h1:ZZV/Ks2g92cyxWkRRnfUDsnhNn28eFpt26aGc8KbXF4= 430 | k8s.io/client-go v0.33.1/go.mod h1:JAsUrl1ArO7uRVFWfcj6kOomSlCv+JpvIsp6usAGefA= 431 | k8s.io/component-base v0.33.0 h1:Ot4PyJI+0JAD9covDhwLp9UNkUja209OzsJ4FzScBNk= 432 | k8s.io/component-base v0.33.0/go.mod h1:aXYZLbw3kihdkOPMDhWbjGCO6sg+luw554KP51t8qCU= 433 | k8s.io/klog/v2 v2.130.1 h1:n9Xl7H1Xvksem4KFG4PYbdQCQxqc/tTUyrgXaOhHSzk= 434 | k8s.io/klog/v2 v2.130.1/go.mod h1:3Jpz1GvMt720eyJH1ckRHK1EDfpxISzJ7I9OYgaDtPE= 435 | k8s.io/kube-openapi v0.0.0-20250318190949-c8a335a9a2ff h1:/usPimJzUKKu+m+TE36gUyGcf03XZEP0ZIKgKj35LS4= 436 | k8s.io/kube-openapi v0.0.0-20250318190949-c8a335a9a2ff/go.mod h1:5jIi+8yX4RIb8wk3XwBo5Pq2ccx4FP10ohkbSKCZoK8= 437 | k8s.io/kubectl v0.33.0 h1:HiRb1yqibBSCqic4pRZP+viiOBAnIdwYDpzUFejs07g= 438 | k8s.io/kubectl v0.33.0/go.mod h1:gAlGBuS1Jq1fYZ9AjGWbI/5Vk3M/VW2DK4g10Fpyn/0= 439 | k8s.io/utils v0.0.0-20241104100929-3ea5e8cea738 h1:M3sRQVHv7vB20Xc2ybTt7ODCeFj6JSWYFzOFnYeS6Ro= 440 | k8s.io/utils v0.0.0-20241104100929-3ea5e8cea738/go.mod h1:OLgZIPagt7ERELqWJFomSt595RzquPNLL48iOWgYOg0= 441 | oras.land/oras-go/v2 v2.5.0 h1:o8Me9kLY74Vp5uw07QXPiitjsw7qNXi8Twd+19Zf02c= 442 | oras.land/oras-go/v2 v2.5.0/go.mod h1:z4eisnLP530vwIOUOJeBIj0aGI0L1C3d53atvCBqZHg= 443 | sigs.k8s.io/json v0.0.0-20241010143419-9aa6b5e7a4b3 h1:/Rv+M11QRah1itp8VhT6HoVx1Ray9eB4DBr+K+/sCJ8= 444 | sigs.k8s.io/json v0.0.0-20241010143419-9aa6b5e7a4b3/go.mod h1:18nIHnGi6636UCz6m8i4DhaJ65T6EruyzmoQqI2BVDo= 445 | sigs.k8s.io/kustomize/api v0.19.0 h1:F+2HB2mU1MSiR9Hp1NEgoU2q9ItNOaBJl0I4Dlus5SQ= 446 | sigs.k8s.io/kustomize/api v0.19.0/go.mod h1:/BbwnivGVcBh1r+8m3tH1VNxJmHSk1PzP5fkP6lbL1o= 447 | sigs.k8s.io/kustomize/kyaml v0.19.0 h1:RFge5qsO1uHhwJsu3ipV7RNolC7Uozc0jUBC/61XSlA= 448 | sigs.k8s.io/kustomize/kyaml v0.19.0/go.mod h1:FeKD5jEOH+FbZPpqUghBP8mrLjJ3+zD3/rf9NNu1cwY= 449 | sigs.k8s.io/randfill v0.0.0-20250304075658-069ef1bbf016/go.mod h1:XeLlZ/jmk4i1HRopwe7/aU3H5n1zNUcX6TM94b3QxOY= 450 | sigs.k8s.io/randfill v1.0.0 h1:JfjMILfT8A6RbawdsK2JXGBR5AQVfd+9TbzrlneTyrU= 451 | sigs.k8s.io/randfill v1.0.0/go.mod h1:XeLlZ/jmk4i1HRopwe7/aU3H5n1zNUcX6TM94b3QxOY= 452 | sigs.k8s.io/structured-merge-diff/v4 v4.6.0 h1:IUA9nvMmnKWcj5jl84xn+T5MnlZKThmUW1TdblaLVAc= 453 | sigs.k8s.io/structured-merge-diff/v4 v4.6.0/go.mod h1:dDy58f92j70zLsuZVuUX5Wp9vtxXpaZnkPGWeqDfCps= 454 | sigs.k8s.io/yaml v1.4.0 h1:Mk1wCc2gy/F0THH0TAp1QYyJNzRm2KCLy3o5ASXVI5E= 455 | sigs.k8s.io/yaml v1.4.0/go.mod h1:Ejl7/uTz7PSA4eKMyQCUTnhZYNmLIl+5c2lQPGR2BPY= 456 | --------------------------------------------------------------------------------