From b4c4f4d8f8b5fcd94b7e76b27b0904d6ad7e5255 Mon Sep 17 00:00:00 2001 From: maanugh Date: Wed, 7 Aug 2024 13:18:36 +0530 Subject: [PATCH 1/2] feat: add support for rollout describe command Signed-off-by: maanugh --- .github/workflows/ci.yaml | 2 +- .github/workflows/release.yaml | 28 +- README.md | 23 +- docs/kubectl-kruise.md | 52 + docs/kubectl-kruise_create.md | 86 ++ ...-kruise_create_ContainerRecreateRequest.md | 85 ++ docs/kubectl-kruise_create_broadcastJob.md | 76 ++ docs/kubectl-kruise_create_job.md | 76 ++ docs/kubectl-kruise_expose.md | 107 ++ docs/kubectl-kruise_migrate.md | 73 ++ docs/kubectl-kruise_rollout.md | 77 ++ docs/kubectl-kruise_rollout_approve.md | 67 ++ docs/kubectl-kruise_rollout_history.md | 71 ++ docs/kubectl-kruise_rollout_pause.md | 69 ++ docs/kubectl-kruise_rollout_restart.md | 70 ++ docs/kubectl-kruise_rollout_resume.md | 69 ++ docs/kubectl-kruise_rollout_status.md | 72 ++ docs/kubectl-kruise_rollout_undo.md | 78 ++ docs/kubectl-kruise_scaledown.md | 60 ++ docs/kubectl-kruise_set.md | 58 ++ docs/kubectl-kruise_set_env.md | 115 +++ docs/kubectl-kruise_set_image.md | 81 ++ docs/kubectl-kruise_set_resources.md | 86 ++ docs/kubectl-kruise_set_selector.md | 70 ++ docs/kubectl-kruise_set_serviceaccount.md | 74 ++ docs/kubectl-kruise_set_subject.md | 76 ++ docs/yaml/kubectl-kruise.yaml | 82 ++ docs/yaml/kubectl-kruise_create.yaml | 147 +++ ...ruise_create_ContainerRecreateRequest.yaml | 125 +++ .../kubectl-kruise_create_broadcastJob.yaml | 114 +++ docs/yaml/kubectl-kruise_create_job.yaml | 114 +++ docs/yaml/kubectl-kruise_expose.yaml | 169 ++++ docs/yaml/kubectl-kruise_migrate.yaml | 106 ++ docs/yaml/kubectl-kruise_rollout.yaml | 83 ++ docs/yaml/kubectl-kruise_rollout_approve.yaml | 108 ++ docs/yaml/kubectl-kruise_rollout_history.yaml | 109 ++ docs/yaml/kubectl-kruise_rollout_pause.yaml | 108 ++ docs/yaml/kubectl-kruise_rollout_restart.yaml | 108 ++ docs/yaml/kubectl-kruise_rollout_resume.yaml | 108 ++ docs/yaml/kubectl-kruise_rollout_status.yaml | 109 ++ docs/yaml/kubectl-kruise_rollout_undo.yaml | 112 +++ docs/yaml/kubectl-kruise_scaledown.yaml | 80 ++ docs/yaml/kubectl-kruise_set.yaml | 84 ++ docs/yaml/kubectl-kruise_set_env.yaml | 160 +++ docs/yaml/kubectl-kruise_set_image.yaml | 130 +++ docs/yaml/kubectl-kruise_set_resources.yaml | 144 +++ docs/yaml/kubectl-kruise_set_selector.yaml | 125 +++ .../kubectl-kruise_set_serviceaccount.yaml | 126 +++ docs/yaml/kubectl-kruise_set_subject.yaml | 130 +++ go.mod | 115 ++- go.sum | 935 +++--------------- pkg/api/api.go | 6 +- pkg/cmd/auto_completion.go | 49 + pkg/cmd/cmd.go | 7 +- pkg/cmd/create/create.go | 26 +- pkg/cmd/create/create_broadcast_job.go | 9 - pkg/cmd/create/create_crr.go | 9 - pkg/cmd/create/create_job.go | 9 - pkg/cmd/describe/describe.go | 50 + pkg/cmd/describe/describe_rollout.go | 597 +++++++++++ pkg/cmd/expose/expose.go | 11 - pkg/cmd/generate-docs.go | 106 ++ pkg/cmd/rollout/rollout_approve.go | 9 +- pkg/cmd/rollout/rollout_undo.go | 11 - pkg/cmd/set/set_env.go | 13 - pkg/cmd/set/set_image.go | 12 - pkg/cmd/set/set_resources.go | 13 - pkg/cmd/set/set_selector.go | 11 - pkg/cmd/set/set_serviceaccount.go | 12 - pkg/cmd/set/set_subject.go | 12 - pkg/creation/cloneset/cloneset_creation.go | 6 +- .../polymorphichelpers/describe_rollout.go | 8 + pkg/internal/polymorphichelpers/interface.go | 5 + .../polymorphichelpers/objectapprover.go | 17 +- .../polymorphichelpers/rolloutviewer.go | 34 + pkg/migration/cloneset/cloneset_migration.go | 6 +- pkg/migration/cloneset/event_handlers.go | 4 +- 77 files changed, 5548 insertions(+), 1036 deletions(-) create mode 100644 docs/kubectl-kruise.md create mode 100644 docs/kubectl-kruise_create.md create mode 100644 docs/kubectl-kruise_create_ContainerRecreateRequest.md create mode 100644 docs/kubectl-kruise_create_broadcastJob.md create mode 100644 docs/kubectl-kruise_create_job.md create mode 100644 docs/kubectl-kruise_expose.md create mode 100644 docs/kubectl-kruise_migrate.md create mode 100644 docs/kubectl-kruise_rollout.md create mode 100644 docs/kubectl-kruise_rollout_approve.md create mode 100644 docs/kubectl-kruise_rollout_history.md create mode 100644 docs/kubectl-kruise_rollout_pause.md create mode 100644 docs/kubectl-kruise_rollout_restart.md create mode 100644 docs/kubectl-kruise_rollout_resume.md create mode 100644 docs/kubectl-kruise_rollout_status.md create mode 100644 docs/kubectl-kruise_rollout_undo.md create mode 100644 docs/kubectl-kruise_scaledown.md create mode 100644 docs/kubectl-kruise_set.md create mode 100644 docs/kubectl-kruise_set_env.md create mode 100644 docs/kubectl-kruise_set_image.md create mode 100644 docs/kubectl-kruise_set_resources.md create mode 100644 docs/kubectl-kruise_set_selector.md create mode 100644 docs/kubectl-kruise_set_serviceaccount.md create mode 100644 docs/kubectl-kruise_set_subject.md create mode 100644 docs/yaml/kubectl-kruise.yaml create mode 100644 docs/yaml/kubectl-kruise_create.yaml create mode 100644 docs/yaml/kubectl-kruise_create_ContainerRecreateRequest.yaml create mode 100644 docs/yaml/kubectl-kruise_create_broadcastJob.yaml create mode 100644 docs/yaml/kubectl-kruise_create_job.yaml create mode 100644 docs/yaml/kubectl-kruise_expose.yaml create mode 100644 docs/yaml/kubectl-kruise_migrate.yaml create mode 100644 docs/yaml/kubectl-kruise_rollout.yaml create mode 100644 docs/yaml/kubectl-kruise_rollout_approve.yaml create mode 100644 docs/yaml/kubectl-kruise_rollout_history.yaml create mode 100644 docs/yaml/kubectl-kruise_rollout_pause.yaml create mode 100644 docs/yaml/kubectl-kruise_rollout_restart.yaml create mode 100644 docs/yaml/kubectl-kruise_rollout_resume.yaml create mode 100644 docs/yaml/kubectl-kruise_rollout_status.yaml create mode 100644 docs/yaml/kubectl-kruise_rollout_undo.yaml create mode 100644 docs/yaml/kubectl-kruise_scaledown.yaml create mode 100644 docs/yaml/kubectl-kruise_set.yaml create mode 100644 docs/yaml/kubectl-kruise_set_env.yaml create mode 100644 docs/yaml/kubectl-kruise_set_image.yaml create mode 100644 docs/yaml/kubectl-kruise_set_resources.yaml create mode 100644 docs/yaml/kubectl-kruise_set_selector.yaml create mode 100644 docs/yaml/kubectl-kruise_set_serviceaccount.yaml create mode 100644 docs/yaml/kubectl-kruise_set_subject.yaml create mode 100644 pkg/cmd/auto_completion.go create mode 100644 pkg/cmd/describe/describe.go create mode 100644 pkg/cmd/describe/describe_rollout.go create mode 100644 pkg/cmd/generate-docs.go create mode 100644 pkg/internal/polymorphichelpers/describe_rollout.go create mode 100644 pkg/internal/polymorphichelpers/rolloutviewer.go diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 53b1f1e..ac99062 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -12,7 +12,7 @@ on: env: # Common versions - GO_VERSION: '1.18' + GO_VERSION: '1.20' GOLANGCI_VERSION: 'v1.51' jobs: diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 4745fcb..cc8ddb0 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -7,7 +7,7 @@ on: env: # Common versions - GO_VERSION: '1.18' + GO_VERSION: '1.20' GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} jobs: @@ -20,9 +20,9 @@ jobs: GO_BUILD_ENV: GO111MODULE=on CGO_ENABLED=0 DIST_DIRS: find * -type d -exec steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Setup Go - uses: actions/setup-go@v2 + uses: actions/setup-go@v4 with: go-version: ${{ env.GO_VERSION }} - name: Get release @@ -58,7 +58,7 @@ jobs: with: upload_url: ${{ steps.get_release.outputs.upload_url }} asset_path: ./_bin/kubectl-kruise/kubectl-kruise-${{ steps.get_matrix.outputs.OS }}-${{ steps.get_matrix.outputs.ARCH }}.tar.gz - asset_name: kubectl-kruise-${{ steps.get_matrix.outputs.OS }}-${{ steps.get_matrix.outputs.ARCH }}.tar.gz + asset_name: kubectl-kruise-${{ steps.get_matrix.outputs.OS }}-${{ steps.get_matrix.outputs.ARCH }}-${{ steps.get_release.outputs.tag_name }}.tar.gz asset_content_type: binary/octet-stream - name: Build resourcedistribution-generator run: | @@ -77,12 +77,12 @@ jobs: with: upload_url: ${{ steps.get_release.outputs.upload_url }} asset_path: ./_bin/resourcedistribution-generator/resourcedistribution-generator-${{ steps.get_matrix.outputs.OS }}-${{ steps.get_matrix.outputs.ARCH }}.tar.gz - asset_name: resourcedistribution-generator-${{ steps.get_matrix.outputs.OS }}-${{ steps.get_matrix.outputs.ARCH }}.tar.gz + asset_name: resourcedistribution-generator-${{ steps.get_matrix.outputs.OS }}-${{ steps.get_matrix.outputs.ARCH }}-${{ steps.get_release.outputs.tag_name }}.tar.gz asset_content_type: binary/octet-stream - name: Post sha256 - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: - name: sha256sums + name: sha256sums-${{ steps.get_matrix.outputs.OS }}-${{ steps.get_matrix.outputs.ARCH }} path: ./_bin/sha256-${{ steps.get_matrix.outputs.OS }}-${{ steps.get_matrix.outputs.ARCH }}.txt retention-days: 1 upload-sha256sums-plugin: @@ -91,26 +91,28 @@ jobs: name: upload-sha256sums steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Get release id: get_release uses: bruceadams/get-release@v1.2.2 - name: Download sha256sums - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v4.1.7 with: - name: sha256sums + name: 'sha256sums-*' + path: sha256sums - shell: bash run: | - for file in *.txt + cd sha256sums + for file in */*.txt do - cat ${file} >> sha256sums.txt + cat ${file} >> ../sha256sums.txt done - name: Upload Checksums uses: actions/upload-release-asset@v1.0.2 with: upload_url: ${{ steps.get_release.outputs.upload_url }} asset_path: sha256sums.txt - asset_name: sha256sums.txt + asset_name: sha256sums-${{ steps.get_release.outputs.tag_name }}.txt asset_content_type: text/plain - name: Update kubectl plugin version in krew-index uses: rajatjindal/krew-release-bot@v0.0.43 \ No newline at end of file diff --git a/README.md b/README.md index 4b2b596..32549b9 100644 --- a/README.md +++ b/README.md @@ -46,6 +46,27 @@ Same to `install manually`. ## Usage +### completion +```bash +To load auto completions: + +Bash: + $ source <(kubectl-kruise completion bash) + +Zsh: + # If shell completion is not already enabled in your environment, + # you will need to enable it. You can execute the following once: + $ echo "autoload -U compinit; compinit" >> ~/.zshrc + + # To load completions for each session, execute once: + $ kubectl-kruise completion zsh > "${fpath[1]}/_kubectl-kruise" + +Fish: + $ kubectl-kruise completion fish | source + +PowerShell: + PS> kubectl-kruise completion powershell | Out-String | Invoke-Expression + ### expose Take a workload(e.g. deployment, cloneset), service or pod and expose it as a new Kubernetes Service. @@ -78,7 +99,7 @@ $ kubectl kruise rollout status statefulsets/sts1 $ kubectl kruise rollout status statefulsets.apps.kruise.io/sts2 # approve a kruise rollout resource named "rollout-demo" in "ns-demo" namespace -$ kubectl kruise rollout approve rollout-demo -n ns-demo` +$ kubectl kruise rollout approve rollout/rollout-demo -n ns-demo` # undo a kruise rollout resource $ kubectl kruise rollout undo rollout/rollout-demo diff --git a/docs/kubectl-kruise.md b/docs/kubectl-kruise.md new file mode 100644 index 0000000..316d782 --- /dev/null +++ b/docs/kubectl-kruise.md @@ -0,0 +1,52 @@ +## kubectl-kruise + +kubectl-kruise controls the OpenKruise CRs + +### Synopsis + +kubectl-kruise controls the OpenKruise manager. + + Find more information at: https://openkruise.io/ + +``` +kubectl-kruise [flags] +``` + +### Options + +``` + --as string Username to impersonate for the operation. User could be a regular user or a service account in a namespace. + --as-group stringArray Group to impersonate for the operation, this flag can be repeated to specify multiple groups. + --as-uid string UID to impersonate for the operation. + --cache-dir string Default cache directory (default "$HOME/.kube/cache") + --certificate-authority string Path to a cert file for the certificate authority + --client-certificate string Path to a client certificate file for TLS + --client-key string Path to a client key file for TLS + --cluster string The name of the kubeconfig cluster to use + --context string The name of the kubeconfig context to use + -h, --help help for kubectl-kruise + --insecure-skip-tls-verify If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure + --kubeconfig string Path to the kubeconfig file to use for CLI requests. + --match-server-version Require server version to match client version + -n, --namespace string If present, the namespace scope for this CLI request + --password string Password for basic authentication to the API server + --profile string Name of profile to capture. One of (none|cpu|heap|goroutine|threadcreate|block|mutex) (default "none") + --profile-output string Name of the file to write the profile to (default "profile.pprof") + --request-timeout string The length of time to wait before giving up on a single server request. Non-zero values should contain a corresponding time unit (e.g. 1s, 2m, 3h). A value of zero means don't timeout requests. (default "0") + -s, --server string The address and port of the Kubernetes API server + --tls-server-name string Server name to use for server certificate validation. If it is not provided, the hostname used to contact the server is used + --token string Bearer token for authentication to the API server + --user string The name of the kubeconfig user to use + --username string Username for basic authentication to the API server + --warnings-as-errors Treat warnings received from the server as errors and exit with a non-zero exit code +``` + +### SEE ALSO + +* [kubectl-kruise create](kubectl-kruise_create.md) - Create a resource from a file or from stdin. +* [kubectl-kruise expose](kubectl-kruise_expose.md) - Take a workload(e.g. deployment, cloneset), service or pod and expose it as a new Kubernetes Service +* [kubectl-kruise migrate](kubectl-kruise_migrate.md) - Migrate from K8s original workloads to Kruise workloads +* [kubectl-kruise rollout](kubectl-kruise_rollout.md) - Manage the rollout of a resource +* [kubectl-kruise scaledown](kubectl-kruise_scaledown.md) - Scaledown a cloneset with selective Pods +* [kubectl-kruise set](kubectl-kruise_set.md) - Set specific features on objects + diff --git a/docs/kubectl-kruise_create.md b/docs/kubectl-kruise_create.md new file mode 100644 index 0000000..210448c --- /dev/null +++ b/docs/kubectl-kruise_create.md @@ -0,0 +1,86 @@ +## kubectl-kruise create + +Create a resource from a file or from stdin. + +### Synopsis + +Create a resource from a file or from stdin. + + JSON and YAML formats are accepted. + +``` +kubectl-kruise create -f FILENAME +``` + +### Examples + +``` + # Create a pod using the data in pod.json. + kubectl create -f ./pod.json + + # Create a pod based on the JSON passed into stdin. + cat pod.json | kubectl create -f - + + # Edit the data in docker-registry.yaml in JSON then create the resource using the edited data. + kubectl create -f docker-registry.yaml --edit -o json +``` + +### Options + +``` + --allow-missing-template-keys If true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats. (default true) + --dry-run string[="unchanged"] Must be "none", "server", or "client". If client strategy, only print the object that would be sent, without sending it. If server strategy, submit server-side request without persisting the resource. (default "none") + --edit Edit the API resource before creating + --field-manager string Name of the manager used to track field ownership. (default "kubectl-create") + -f, --filename strings Filename, directory, or URL to files to use to create the resource + -h, --help help for create + -k, --kustomize string Process the kustomization directory. This flag can't be used together with -f or -R. + -o, --output string Output format. One of: (json, yaml, name, go-template, go-template-file, template, templatefile, jsonpath, jsonpath-as-json, jsonpath-file). + --raw string Raw URI to POST to the server. Uses the transport specified by the kubeconfig file. + -R, --recursive Process the directory used in -f, --filename recursively. Useful when you want to manage related manifests organized within the same directory. + --save-config If true, the configuration of current object will be saved in its annotation. Otherwise, the annotation will be unchanged. This flag is useful when you want to perform kubectl apply on this object in the future. + -l, --selector string Selector (label query) to filter on, supports '=', '==', and '!='.(e.g. -l key1=value1,key2=value2) + --show-managed-fields If true, keep the managedFields when printing objects in JSON or YAML format. + --template string Template string or path to template file to use when -o=go-template, -o=go-template-file. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview]. + --validate string Must be one of: strict (or true), warn, ignore (or false). + "true" or "strict" will use a schema to validate the input and fail the request if invalid. It will perform server side validation if ServerSideFieldValidation is enabled on the api-server, but will fall back to less reliable client-side validation if not. + "warn" will warn about unknown or duplicate fields without blocking the request if server-side field validation is enabled on the API server, and behave as "ignore" otherwise. + "false" or "ignore" will not perform any schema validation, silently dropping any unknown or duplicate fields. (default "strict") + --windows-line-endings Only relevant if --edit=true. Defaults to the line ending native to your platform. +``` + +### Options inherited from parent commands + +``` + --as string Username to impersonate for the operation. User could be a regular user or a service account in a namespace. + --as-group stringArray Group to impersonate for the operation, this flag can be repeated to specify multiple groups. + --as-uid string UID to impersonate for the operation. + --cache-dir string Default cache directory (default "$HOME/.kube/cache") + --certificate-authority string Path to a cert file for the certificate authority + --client-certificate string Path to a client certificate file for TLS + --client-key string Path to a client key file for TLS + --cluster string The name of the kubeconfig cluster to use + --context string The name of the kubeconfig context to use + --insecure-skip-tls-verify If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure + --kubeconfig string Path to the kubeconfig file to use for CLI requests. + --match-server-version Require server version to match client version + -n, --namespace string If present, the namespace scope for this CLI request + --password string Password for basic authentication to the API server + --profile string Name of profile to capture. One of (none|cpu|heap|goroutine|threadcreate|block|mutex) (default "none") + --profile-output string Name of the file to write the profile to (default "profile.pprof") + --request-timeout string The length of time to wait before giving up on a single server request. Non-zero values should contain a corresponding time unit (e.g. 1s, 2m, 3h). A value of zero means don't timeout requests. (default "0") + -s, --server string The address and port of the Kubernetes API server + --tls-server-name string Server name to use for server certificate validation. If it is not provided, the hostname used to contact the server is used + --token string Bearer token for authentication to the API server + --user string The name of the kubeconfig user to use + --username string Username for basic authentication to the API server + --warnings-as-errors Treat warnings received from the server as errors and exit with a non-zero exit code +``` + +### SEE ALSO + +* [kubectl-kruise](kubectl-kruise.md) - kubectl-kruise controls the OpenKruise CRs +* [kubectl-kruise create ContainerRecreateRequest](kubectl-kruise_create_ContainerRecreateRequest.md) - Create a crr with the specified name. +* [kubectl-kruise create broadcastJob](kubectl-kruise_create_broadcastJob.md) - Create a broadcastJob with the specified name. +* [kubectl-kruise create job](kubectl-kruise_create_job.md) - Create a job with the specified name. + diff --git a/docs/kubectl-kruise_create_ContainerRecreateRequest.md b/docs/kubectl-kruise_create_ContainerRecreateRequest.md new file mode 100644 index 0000000..804e734 --- /dev/null +++ b/docs/kubectl-kruise_create_ContainerRecreateRequest.md @@ -0,0 +1,85 @@ +## kubectl-kruise create ContainerRecreateRequest + +Create a crr with the specified name. + +### Synopsis + +Create a crr with the specified name. + +``` +kubectl-kruise create ContainerRecreateRequest NAME --pod=podName [--containers=container] +``` + +### Examples + +``` + NOTE: The default value of CRR is: + strategy: + failurePolicy: Fail + orderedRecreate: false + unreadyGracePeriodSeconds: 3 + activeDeadlineSeconds: 300 + ttlSecondsAfterFinished: 1800 + # Create a crr with default value to restart all containers in pod-1 + kubectl kruise create ContainerRecreateRequest my-crr --namespace=ns --pod=pod-1 + + # Create a crr with default value to restart container-1 in pod-1 + kubectl kruise create ContainerRecreateRequest my-crr --namespace=ns --pod=pod-1 --containers=container-1 + + # Create a crr with unreadyGracePeriodSeconds 5 and terminationGracePeriodSeconds 30 to restart container-1 in pod-1 + kubectl kruise create ContainerRecreateRequest my-crr --namespace=ns --pod=pod-1 --containers=container-1 --unreadyGracePeriodSeconds=5 --terminationGracePeriodSeconds=30 +``` + +### Options + +``` + --allow-missing-template-keys If true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats. (default true) + --containers strings The containers those need to restarted. + --dry-run string[="unchanged"] Must be "none", "server", or "client". If client strategy, only print the object that would be sent, without sending it. If server strategy, submit server-side request without persisting the resource. (default "none") + --field-manager string Name of the manager used to track field ownership. (default "kubectl kruise-create") + -h, --help help for ContainerRecreateRequest + -m, --minStartedSeconds int32 Minimum number of seconds for which a newly created container should be started and ready without any of its container crashing, for it to be considered Succeeded.Defaults to 0 (container will be considered Succeeded as soon as it is started and ready) + -o, --output string Output format. One of: (json, yaml, name, go-template, go-template-file, template, templatefile, jsonpath, jsonpath-as-json, jsonpath-file). + -p, --pod string The name of the pod). + --save-config If true, the configuration of current object will be saved in its annotation. Otherwise, the annotation will be unchanged. This flag is useful when you want to perform kubectl apply on this object in the future. + --show-managed-fields If true, keep the managedFields when printing objects in JSON or YAML format. + --template string Template string or path to template file to use when -o=go-template, -o=go-template-file. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview]. + -u, --unreadyGracePeriodSeconds int UnreadyGracePeriodSeconds is the optional duration in seconds to mark Pod as not ready over this duration before executing preStop hook and stopping the container + --validate string Must be one of: strict (or true), warn, ignore (or false). + "true" or "strict" will use a schema to validate the input and fail the request if invalid. It will perform server side validation if ServerSideFieldValidation is enabled on the api-server, but will fall back to less reliable client-side validation if not. + "warn" will warn about unknown or duplicate fields without blocking the request if server-side field validation is enabled on the API server, and behave as "ignore" otherwise. + "false" or "ignore" will not perform any schema validation, silently dropping any unknown or duplicate fields. (default "strict") +``` + +### Options inherited from parent commands + +``` + --as string Username to impersonate for the operation. User could be a regular user or a service account in a namespace. + --as-group stringArray Group to impersonate for the operation, this flag can be repeated to specify multiple groups. + --as-uid string UID to impersonate for the operation. + --cache-dir string Default cache directory (default "$HOME/.kube/cache") + --certificate-authority string Path to a cert file for the certificate authority + --client-certificate string Path to a client certificate file for TLS + --client-key string Path to a client key file for TLS + --cluster string The name of the kubeconfig cluster to use + --context string The name of the kubeconfig context to use + --insecure-skip-tls-verify If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure + --kubeconfig string Path to the kubeconfig file to use for CLI requests. + --match-server-version Require server version to match client version + -n, --namespace string If present, the namespace scope for this CLI request + --password string Password for basic authentication to the API server + --profile string Name of profile to capture. One of (none|cpu|heap|goroutine|threadcreate|block|mutex) (default "none") + --profile-output string Name of the file to write the profile to (default "profile.pprof") + --request-timeout string The length of time to wait before giving up on a single server request. Non-zero values should contain a corresponding time unit (e.g. 1s, 2m, 3h). A value of zero means don't timeout requests. (default "0") + -s, --server string The address and port of the Kubernetes API server + --tls-server-name string Server name to use for server certificate validation. If it is not provided, the hostname used to contact the server is used + --token string Bearer token for authentication to the API server + --user string The name of the kubeconfig user to use + --username string Username for basic authentication to the API server + --warnings-as-errors Treat warnings received from the server as errors and exit with a non-zero exit code +``` + +### SEE ALSO + +* [kubectl-kruise create](kubectl-kruise_create.md) - Create a resource from a file or from stdin. + diff --git a/docs/kubectl-kruise_create_broadcastJob.md b/docs/kubectl-kruise_create_broadcastJob.md new file mode 100644 index 0000000..bb37b98 --- /dev/null +++ b/docs/kubectl-kruise_create_broadcastJob.md @@ -0,0 +1,76 @@ +## kubectl-kruise create broadcastJob + +Create a broadcastJob with the specified name. + +### Synopsis + +Create a broadcastJob with the specified name. + +``` +kubectl-kruise create broadcastJob NAME --image=image [--from=cronjob/name] -- [COMMAND] [args...] +``` + +### Examples + +``` + # Create a broadcastJob + kubectl kruise create broadcastJob my-bcj --image=busybox + + # Create a broadcastJob with command + kubectl kruise create broadcastJob my-bcj --image=busybox -- date + + # Create a broadcastJob from a AdvancedCronJob named "a-advancedCronjob" + kubectl kruise create broadcastJob test-bcj --from=acj/a-advancedCronjob +``` + +### Options + +``` + --allow-missing-template-keys If true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats. (default true) + --dry-run string[="unchanged"] Must be "none", "server", or "client". If client strategy, only print the object that would be sent, without sending it. If server strategy, submit server-side request without persisting the resource. (default "none") + --field-manager string Name of the manager used to track field ownership. (default "kubectl kruise-create") + --from string The name of the resource to create a BroadcastJob from (only advancedCronjob is supported). + -h, --help help for broadcastJob + --image string Image name to run. + -o, --output string Output format. One of: (json, yaml, name, go-template, go-template-file, template, templatefile, jsonpath, jsonpath-as-json, jsonpath-file). + --save-config If true, the configuration of current object will be saved in its annotation. Otherwise, the annotation will be unchanged. This flag is useful when you want to perform kubectl apply on this object in the future. + --show-managed-fields If true, keep the managedFields when printing objects in JSON or YAML format. + --template string Template string or path to template file to use when -o=go-template, -o=go-template-file. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview]. + --validate string Must be one of: strict (or true), warn, ignore (or false). + "true" or "strict" will use a schema to validate the input and fail the request if invalid. It will perform server side validation if ServerSideFieldValidation is enabled on the api-server, but will fall back to less reliable client-side validation if not. + "warn" will warn about unknown or duplicate fields without blocking the request if server-side field validation is enabled on the API server, and behave as "ignore" otherwise. + "false" or "ignore" will not perform any schema validation, silently dropping any unknown or duplicate fields. (default "strict") +``` + +### Options inherited from parent commands + +``` + --as string Username to impersonate for the operation. User could be a regular user or a service account in a namespace. + --as-group stringArray Group to impersonate for the operation, this flag can be repeated to specify multiple groups. + --as-uid string UID to impersonate for the operation. + --cache-dir string Default cache directory (default "$HOME/.kube/cache") + --certificate-authority string Path to a cert file for the certificate authority + --client-certificate string Path to a client certificate file for TLS + --client-key string Path to a client key file for TLS + --cluster string The name of the kubeconfig cluster to use + --context string The name of the kubeconfig context to use + --insecure-skip-tls-verify If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure + --kubeconfig string Path to the kubeconfig file to use for CLI requests. + --match-server-version Require server version to match client version + -n, --namespace string If present, the namespace scope for this CLI request + --password string Password for basic authentication to the API server + --profile string Name of profile to capture. One of (none|cpu|heap|goroutine|threadcreate|block|mutex) (default "none") + --profile-output string Name of the file to write the profile to (default "profile.pprof") + --request-timeout string The length of time to wait before giving up on a single server request. Non-zero values should contain a corresponding time unit (e.g. 1s, 2m, 3h). A value of zero means don't timeout requests. (default "0") + -s, --server string The address and port of the Kubernetes API server + --tls-server-name string Server name to use for server certificate validation. If it is not provided, the hostname used to contact the server is used + --token string Bearer token for authentication to the API server + --user string The name of the kubeconfig user to use + --username string Username for basic authentication to the API server + --warnings-as-errors Treat warnings received from the server as errors and exit with a non-zero exit code +``` + +### SEE ALSO + +* [kubectl-kruise create](kubectl-kruise_create.md) - Create a resource from a file or from stdin. + diff --git a/docs/kubectl-kruise_create_job.md b/docs/kubectl-kruise_create_job.md new file mode 100644 index 0000000..c9fc75b --- /dev/null +++ b/docs/kubectl-kruise_create_job.md @@ -0,0 +1,76 @@ +## kubectl-kruise create job + +Create a job with the specified name. + +### Synopsis + +Create a job with the specified name. + +``` +kubectl-kruise create job NAME --image=image [--from=cronjob/name] -- [COMMAND] [args...] +``` + +### Examples + +``` + # Create a job + kubectl kruise create job my-job --image=busybox + + # Create a job with command + kubectl kruise create job my-job --image=busybox -- date + + # Create a job from a AdvancedCronJob named "a-advancedCronjob" + kubectl kruise create job test-job --from=acj/a-advancedCronjob +``` + +### Options + +``` + --allow-missing-template-keys If true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats. (default true) + --dry-run string[="unchanged"] Must be "none", "server", or "client". If client strategy, only print the object that would be sent, without sending it. If server strategy, submit server-side request without persisting the resource. (default "none") + --field-manager string Name of the manager used to track field ownership. (default "kubectl kruise-create") + --from string The name of the resource to create a Job from (cronjob and advancedCronjob are supported). + -h, --help help for job + --image string Image name to run. + -o, --output string Output format. One of: (json, yaml, name, go-template, go-template-file, template, templatefile, jsonpath, jsonpath-as-json, jsonpath-file). + --save-config If true, the configuration of current object will be saved in its annotation. Otherwise, the annotation will be unchanged. This flag is useful when you want to perform kubectl apply on this object in the future. + --show-managed-fields If true, keep the managedFields when printing objects in JSON or YAML format. + --template string Template string or path to template file to use when -o=go-template, -o=go-template-file. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview]. + --validate string Must be one of: strict (or true), warn, ignore (or false). + "true" or "strict" will use a schema to validate the input and fail the request if invalid. It will perform server side validation if ServerSideFieldValidation is enabled on the api-server, but will fall back to less reliable client-side validation if not. + "warn" will warn about unknown or duplicate fields without blocking the request if server-side field validation is enabled on the API server, and behave as "ignore" otherwise. + "false" or "ignore" will not perform any schema validation, silently dropping any unknown or duplicate fields. (default "strict") +``` + +### Options inherited from parent commands + +``` + --as string Username to impersonate for the operation. User could be a regular user or a service account in a namespace. + --as-group stringArray Group to impersonate for the operation, this flag can be repeated to specify multiple groups. + --as-uid string UID to impersonate for the operation. + --cache-dir string Default cache directory (default "$HOME/.kube/cache") + --certificate-authority string Path to a cert file for the certificate authority + --client-certificate string Path to a client certificate file for TLS + --client-key string Path to a client key file for TLS + --cluster string The name of the kubeconfig cluster to use + --context string The name of the kubeconfig context to use + --insecure-skip-tls-verify If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure + --kubeconfig string Path to the kubeconfig file to use for CLI requests. + --match-server-version Require server version to match client version + -n, --namespace string If present, the namespace scope for this CLI request + --password string Password for basic authentication to the API server + --profile string Name of profile to capture. One of (none|cpu|heap|goroutine|threadcreate|block|mutex) (default "none") + --profile-output string Name of the file to write the profile to (default "profile.pprof") + --request-timeout string The length of time to wait before giving up on a single server request. Non-zero values should contain a corresponding time unit (e.g. 1s, 2m, 3h). A value of zero means don't timeout requests. (default "0") + -s, --server string The address and port of the Kubernetes API server + --tls-server-name string Server name to use for server certificate validation. If it is not provided, the hostname used to contact the server is used + --token string Bearer token for authentication to the API server + --user string The name of the kubeconfig user to use + --username string Username for basic authentication to the API server + --warnings-as-errors Treat warnings received from the server as errors and exit with a non-zero exit code +``` + +### SEE ALSO + +* [kubectl-kruise create](kubectl-kruise_create.md) - Create a resource from a file or from stdin. + diff --git a/docs/kubectl-kruise_expose.md b/docs/kubectl-kruise_expose.md new file mode 100644 index 0000000..39bbc32 --- /dev/null +++ b/docs/kubectl-kruise_expose.md @@ -0,0 +1,107 @@ +## kubectl-kruise expose + +Take a workload(e.g. deployment, cloneset), service or pod and expose it as a new Kubernetes Service + +### Synopsis + +Expose a resource as a new Kubernetes service. + + Looks up a deployment, service, replica set, replication controller or pod by name and uses the selector for that resource as the selector for a new service on the specified port. A deployment or replica set will be exposed as a service only if its selector is convertible to a selector that service supports, i.e. when the selector contains only the matchLabels component. Note that if no port is specified via --port and the exposed resource has multiple ports, all will be re-used by the new service. Also if no labels are specified, the new service will re-use the labels from the resource it exposes. + + Possible resources include (case insensitive): + + pod (po), service (svc), replicationcontroller (rc), cloneset (clone), deployment (deploy), replicaset (rs) + +``` +kubectl-kruise expose (-f FILENAME | TYPE NAME) [--port=port] [--protocol=TCP|UDP|SCTP] [--target-port=number-or-name] [--name=name] [--external-ip=external-ip-of-service] [--type=type] +``` + +### Examples + +``` + # Create a service for an nginx cloneset, which serves on port 80 and connects to the containers on port 8000. + kubectl kruise expose cloneset nginx --port=80 --target-port=8000 + + # Create a service for a replicated nginx, which serves on port 80 and connects to the containers on port 8000. + kubectl expose rc nginx --port=80 --target-port=8000 + + # Create a service for a replication controller identified by type and name specified in "nginx-controller.yaml", which serves on port 80 and connects to the containers on port 8000. + kubectl expose -f nginx-controller.yaml --port=80 --target-port=8000 + + # Create a service for a pod valid-pod, which serves on port 444 with the name "frontend" + kubectl expose pod valid-pod --port=444 --name=frontend + + # Create a second service based on the above service, exposing the container port 8443 as port 443 with the name "nginx-https" + kubectl expose service nginx --port=443 --target-port=8443 --name=nginx-https + + # Create a service for a replicated streaming application on port 4100 balancing UDP traffic and named 'video-stream'. + kubectl expose rc streamer --port=4100 --protocol=UDP --name=video-stream + + # Create a service for a replicated nginx using replica set, which serves on port 80 and connects to the containers on port 8000. + kubectl expose rs nginx --port=80 --target-port=8000 + + # Create a service for an nginx deployment, which serves on port 80 and connects to the containers on port 8000. + kubectl expose deployment nginx --port=80 --target-port=8000 +``` + +### Options + +``` + --allow-missing-template-keys If true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats. (default true) + --cluster-ip string ClusterIP to be assigned to the service. Leave empty to auto-allocate, or set to 'None' to create a headless service. + --dry-run string[="unchanged"] Must be "none", "server", or "client". If client strategy, only print the object that would be sent, without sending it. If server strategy, submit server-side request without persisting the resource. (default "none") + --external-ip string Additional external IP address (not managed by Kubernetes) to accept for the service. If this IP is routed to a node, the service can be accessed by this IP in addition to its generated service IP. + --field-manager string Name of the manager used to track field ownership. (default "kubectl-expose") + -f, --filename strings Filename, directory, or URL to files identifying the resource to expose a service + --generator string The name of the API generator to use. There are 2 generators: 'service/v1' and 'service/v2'. The only difference between them is that service port in v1 is named 'default', while it is left unnamed in v2. Default is 'service/v2'. (default "service/v2") + -h, --help help for expose + -k, --kustomize string Process the kustomization directory. This flag can't be used together with -f or -R. + -l, --labels string Labels to apply to the service created by this call. + --load-balancer-ip string IP to assign to the LoadBalancer. If empty, an ephemeral IP will be created and used (cloud-provider specific). + --name string The name for the newly created object. + -o, --output string Output format. One of: (json, yaml, name, go-template, go-template-file, template, templatefile, jsonpath, jsonpath-as-json, jsonpath-file). + --overrides string An inline JSON override for the generated object. If this is non-empty, it is used to override the generated object. Requires that the object supply a valid apiVersion field. + --port string The port that the service should serve on. Copied from the resource being exposed, if unspecified + --protocol string The network protocol for the service to be created. Default is 'TCP'. + -R, --recursive Process the directory used in -f, --filename recursively. Useful when you want to manage related manifests organized within the same directory. + --save-config If true, the configuration of current object will be saved in its annotation. Otherwise, the annotation will be unchanged. This flag is useful when you want to perform kubectl apply on this object in the future. + --selector string A label selector to use for this service. Only equality-based selector requirements are supported. If empty (the default) infer the selector from the replication controller or replica set.) + --session-affinity string If non-empty, set the session affinity for the service to this; legal values: 'None', 'ClientIP' + --show-managed-fields If true, keep the managedFields when printing objects in JSON or YAML format. + --target-port string Name or number for the port on the container that the service should direct traffic to. Optional. + --template string Template string or path to template file to use when -o=go-template, -o=go-template-file. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview]. + --type string Type for this service: ClusterIP, NodePort, LoadBalancer, or ExternalName. Default is 'ClusterIP'. +``` + +### Options inherited from parent commands + +``` + --as string Username to impersonate for the operation. User could be a regular user or a service account in a namespace. + --as-group stringArray Group to impersonate for the operation, this flag can be repeated to specify multiple groups. + --as-uid string UID to impersonate for the operation. + --cache-dir string Default cache directory (default "$HOME/.kube/cache") + --certificate-authority string Path to a cert file for the certificate authority + --client-certificate string Path to a client certificate file for TLS + --client-key string Path to a client key file for TLS + --cluster string The name of the kubeconfig cluster to use + --context string The name of the kubeconfig context to use + --insecure-skip-tls-verify If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure + --kubeconfig string Path to the kubeconfig file to use for CLI requests. + --match-server-version Require server version to match client version + -n, --namespace string If present, the namespace scope for this CLI request + --password string Password for basic authentication to the API server + --profile string Name of profile to capture. One of (none|cpu|heap|goroutine|threadcreate|block|mutex) (default "none") + --profile-output string Name of the file to write the profile to (default "profile.pprof") + --request-timeout string The length of time to wait before giving up on a single server request. Non-zero values should contain a corresponding time unit (e.g. 1s, 2m, 3h). A value of zero means don't timeout requests. (default "0") + -s, --server string The address and port of the Kubernetes API server + --tls-server-name string Server name to use for server certificate validation. If it is not provided, the hostname used to contact the server is used + --token string Bearer token for authentication to the API server + --user string The name of the kubeconfig user to use + --username string Username for basic authentication to the API server + --warnings-as-errors Treat warnings received from the server as errors and exit with a non-zero exit code +``` + +### SEE ALSO + +* [kubectl-kruise](kubectl-kruise.md) - kubectl-kruise controls the OpenKruise CRs + diff --git a/docs/kubectl-kruise_migrate.md b/docs/kubectl-kruise_migrate.md new file mode 100644 index 0000000..50a6b0b --- /dev/null +++ b/docs/kubectl-kruise_migrate.md @@ -0,0 +1,73 @@ +## kubectl-kruise migrate + +Migrate from K8s original workloads to Kruise workloads + +### Synopsis + +Migrate from K8s original workloads to Kruise workloads + +``` +kubectl-kruise migrate [DST_KIND] --from [SRC_KIND] [flags] +``` + +### Examples + +``` + + # Create an empty CloneSet from an existing Deployment. + kubectl-kruise migrate CloneSet --from Deployment -n default --dst-name deployment-name --create + + # Create a same replicas CloneSet from an existing Deployment. + kubectl-kruise migrate CloneSet --from Deployment -n default --dst-name deployment-name --create --copy + + # Migrate replicas from an existing Deployment to an existing CloneSet. + kubectl-kruise migrate CloneSet --from Deployment -n default --src-name cloneset-name --dst-name deployment-name --replicas 10 --max-surge=2 + +``` + +### Options + +``` + --copy Copy replicas from src workload when create. + --create Create dst workload with replicas=0 from src workload. + --dst-name string Name of the destination workload. + --from string Type of the source workload (e.g. Deployment). + -h, --help help for migrate + --max-surge int32 Max surge during migration. (default 1) + --replicas int32 The replicas needs to migrate, -1 indicates all replicas in src workload. (default -1) + --src-name string Name of the source workload. + --timeout-seconds int32 Timeout seconds for migration, -1 indicates no limited. (default -1) +``` + +### Options inherited from parent commands + +``` + --as string Username to impersonate for the operation. User could be a regular user or a service account in a namespace. + --as-group stringArray Group to impersonate for the operation, this flag can be repeated to specify multiple groups. + --as-uid string UID to impersonate for the operation. + --cache-dir string Default cache directory (default "$HOME/.kube/cache") + --certificate-authority string Path to a cert file for the certificate authority + --client-certificate string Path to a client certificate file for TLS + --client-key string Path to a client key file for TLS + --cluster string The name of the kubeconfig cluster to use + --context string The name of the kubeconfig context to use + --insecure-skip-tls-verify If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure + --kubeconfig string Path to the kubeconfig file to use for CLI requests. + --match-server-version Require server version to match client version + -n, --namespace string If present, the namespace scope for this CLI request + --password string Password for basic authentication to the API server + --profile string Name of profile to capture. One of (none|cpu|heap|goroutine|threadcreate|block|mutex) (default "none") + --profile-output string Name of the file to write the profile to (default "profile.pprof") + --request-timeout string The length of time to wait before giving up on a single server request. Non-zero values should contain a corresponding time unit (e.g. 1s, 2m, 3h). A value of zero means don't timeout requests. (default "0") + -s, --server string The address and port of the Kubernetes API server + --tls-server-name string Server name to use for server certificate validation. If it is not provided, the hostname used to contact the server is used + --token string Bearer token for authentication to the API server + --user string The name of the kubeconfig user to use + --username string Username for basic authentication to the API server + --warnings-as-errors Treat warnings received from the server as errors and exit with a non-zero exit code +``` + +### SEE ALSO + +* [kubectl-kruise](kubectl-kruise.md) - kubectl-kruise controls the OpenKruise CRs + diff --git a/docs/kubectl-kruise_rollout.md b/docs/kubectl-kruise_rollout.md new file mode 100644 index 0000000..02097da --- /dev/null +++ b/docs/kubectl-kruise_rollout.md @@ -0,0 +1,77 @@ +## kubectl-kruise rollout + +Manage the rollout of a resource + +### Synopsis + +Manage the rollout of a resource. + + Valid resource types include: + + * deployments + * daemonsets + * statefulsets + * clonesets + * statefulsets.apps.kruise.io + * daemonsets.apps.kruise.io + * rollouts.rollouts.kruise.io + +``` +kubectl-kruise rollout SUBCOMMAND +``` + +### Examples + +``` + # Rollback to the previous cloneset + kubectl-kruise rollout undo cloneset/abc + + # Check the rollout status of a daemonset + kubectl-kruise rollout status daemonset/foo +``` + +### Options + +``` + -h, --help help for rollout +``` + +### Options inherited from parent commands + +``` + --as string Username to impersonate for the operation. User could be a regular user or a service account in a namespace. + --as-group stringArray Group to impersonate for the operation, this flag can be repeated to specify multiple groups. + --as-uid string UID to impersonate for the operation. + --cache-dir string Default cache directory (default "$HOME/.kube/cache") + --certificate-authority string Path to a cert file for the certificate authority + --client-certificate string Path to a client certificate file for TLS + --client-key string Path to a client key file for TLS + --cluster string The name of the kubeconfig cluster to use + --context string The name of the kubeconfig context to use + --insecure-skip-tls-verify If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure + --kubeconfig string Path to the kubeconfig file to use for CLI requests. + --match-server-version Require server version to match client version + -n, --namespace string If present, the namespace scope for this CLI request + --password string Password for basic authentication to the API server + --profile string Name of profile to capture. One of (none|cpu|heap|goroutine|threadcreate|block|mutex) (default "none") + --profile-output string Name of the file to write the profile to (default "profile.pprof") + --request-timeout string The length of time to wait before giving up on a single server request. Non-zero values should contain a corresponding time unit (e.g. 1s, 2m, 3h). A value of zero means don't timeout requests. (default "0") + -s, --server string The address and port of the Kubernetes API server + --tls-server-name string Server name to use for server certificate validation. If it is not provided, the hostname used to contact the server is used + --token string Bearer token for authentication to the API server + --user string The name of the kubeconfig user to use + --username string Username for basic authentication to the API server + --warnings-as-errors Treat warnings received from the server as errors and exit with a non-zero exit code +``` + +### SEE ALSO + +* [kubectl-kruise](kubectl-kruise.md) - kubectl-kruise controls the OpenKruise CRs +* [kubectl-kruise rollout approve](kubectl-kruise_rollout_approve.md) - Approve a resource +* [kubectl-kruise rollout history](kubectl-kruise_rollout_history.md) - View rollout history +* [kubectl-kruise rollout pause](kubectl-kruise_rollout_pause.md) - Mark the provided resource as paused +* [kubectl-kruise rollout restart](kubectl-kruise_rollout_restart.md) - Restart a resource +* [kubectl-kruise rollout resume](kubectl-kruise_rollout_resume.md) - Resume a paused resource +* [kubectl-kruise rollout status](kubectl-kruise_rollout_status.md) - Show the status of the rollout +* [kubectl-kruise rollout undo](kubectl-kruise_rollout_undo.md) - Undo a previous rollout + diff --git a/docs/kubectl-kruise_rollout_approve.md b/docs/kubectl-kruise_rollout_approve.md new file mode 100644 index 0000000..aa6a51c --- /dev/null +++ b/docs/kubectl-kruise_rollout_approve.md @@ -0,0 +1,67 @@ +## kubectl-kruise rollout approve + +Approve a resource + +### Synopsis + +Approve a resource which can be continued. + + Paused resources will not be reconciled by a controller. By approving a resource, we allow it to be continue to rollout. Currently only kruise-rollouts support being approved. + +``` +kubectl-kruise rollout approve RESOURCE +``` + +### Examples + +``` + # approve a kruise rollout resource named "rollout-demo" in "ns-demo" namespace + + kubectl-kruise rollout approve rollout-demo -n ns-demo +``` + +### Options + +``` + --allow-missing-template-keys If true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats. (default true) + -f, --filename strings Filename, directory, or URL to files identifying the resource to get from a server. + -h, --help help for approve + -k, --kustomize string Process the kustomization directory. This flag can't be used together with -f or -R. + -o, --output string Output format. One of: (json, yaml, name, go-template, go-template-file, template, templatefile, jsonpath, jsonpath-as-json, jsonpath-file). + -R, --recursive Process the directory used in -f, --filename recursively. Useful when you want to manage related manifests organized within the same directory. + --show-managed-fields If true, keep the managedFields when printing objects in JSON or YAML format. + --template string Template string or path to template file to use when -o=go-template, -o=go-template-file. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview]. +``` + +### Options inherited from parent commands + +``` + --as string Username to impersonate for the operation. User could be a regular user or a service account in a namespace. + --as-group stringArray Group to impersonate for the operation, this flag can be repeated to specify multiple groups. + --as-uid string UID to impersonate for the operation. + --cache-dir string Default cache directory (default "$HOME/.kube/cache") + --certificate-authority string Path to a cert file for the certificate authority + --client-certificate string Path to a client certificate file for TLS + --client-key string Path to a client key file for TLS + --cluster string The name of the kubeconfig cluster to use + --context string The name of the kubeconfig context to use + --insecure-skip-tls-verify If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure + --kubeconfig string Path to the kubeconfig file to use for CLI requests. + --match-server-version Require server version to match client version + -n, --namespace string If present, the namespace scope for this CLI request + --password string Password for basic authentication to the API server + --profile string Name of profile to capture. One of (none|cpu|heap|goroutine|threadcreate|block|mutex) (default "none") + --profile-output string Name of the file to write the profile to (default "profile.pprof") + --request-timeout string The length of time to wait before giving up on a single server request. Non-zero values should contain a corresponding time unit (e.g. 1s, 2m, 3h). A value of zero means don't timeout requests. (default "0") + -s, --server string The address and port of the Kubernetes API server + --tls-server-name string Server name to use for server certificate validation. If it is not provided, the hostname used to contact the server is used + --token string Bearer token for authentication to the API server + --user string The name of the kubeconfig user to use + --username string Username for basic authentication to the API server + --warnings-as-errors Treat warnings received from the server as errors and exit with a non-zero exit code +``` + +### SEE ALSO + +* [kubectl-kruise rollout](kubectl-kruise_rollout.md) - Manage the rollout of a resource + diff --git a/docs/kubectl-kruise_rollout_history.md b/docs/kubectl-kruise_rollout_history.md new file mode 100644 index 0000000..691852e --- /dev/null +++ b/docs/kubectl-kruise_rollout_history.md @@ -0,0 +1,71 @@ +## kubectl-kruise rollout history + +View rollout history + +### Synopsis + +View previous rollout revisions and configurations. + +``` +kubectl-kruise rollout history (TYPE NAME | TYPE/NAME) [flags] +``` + +### Examples + +``` + # View the rollout history of a cloneset + kubectl-kruise rollout history cloneset/abc + + # View the rollout history of a advanced statefulset + kubectl-kruise rollout history asts/abc + + # View the details of daemonset revision 3 + kubectl-kruise rollout history daemonset/abc --revision=3 +``` + +### Options + +``` + --allow-missing-template-keys If true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats. (default true) + -f, --filename strings Filename, directory, or URL to files identifying the resource to get from a server. + -h, --help help for history + -k, --kustomize string Process the kustomization directory. This flag can't be used together with -f or -R. + -o, --output string Output format. One of: (json, yaml, name, go-template, go-template-file, template, templatefile, jsonpath, jsonpath-as-json, jsonpath-file). + -R, --recursive Process the directory used in -f, --filename recursively. Useful when you want to manage related manifests organized within the same directory. + --revision int See the details, including podTemplate of the revision specified + --show-managed-fields If true, keep the managedFields when printing objects in JSON or YAML format. + --template string Template string or path to template file to use when -o=go-template, -o=go-template-file. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview]. +``` + +### Options inherited from parent commands + +``` + --as string Username to impersonate for the operation. User could be a regular user or a service account in a namespace. + --as-group stringArray Group to impersonate for the operation, this flag can be repeated to specify multiple groups. + --as-uid string UID to impersonate for the operation. + --cache-dir string Default cache directory (default "$HOME/.kube/cache") + --certificate-authority string Path to a cert file for the certificate authority + --client-certificate string Path to a client certificate file for TLS + --client-key string Path to a client key file for TLS + --cluster string The name of the kubeconfig cluster to use + --context string The name of the kubeconfig context to use + --insecure-skip-tls-verify If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure + --kubeconfig string Path to the kubeconfig file to use for CLI requests. + --match-server-version Require server version to match client version + -n, --namespace string If present, the namespace scope for this CLI request + --password string Password for basic authentication to the API server + --profile string Name of profile to capture. One of (none|cpu|heap|goroutine|threadcreate|block|mutex) (default "none") + --profile-output string Name of the file to write the profile to (default "profile.pprof") + --request-timeout string The length of time to wait before giving up on a single server request. Non-zero values should contain a corresponding time unit (e.g. 1s, 2m, 3h). A value of zero means don't timeout requests. (default "0") + -s, --server string The address and port of the Kubernetes API server + --tls-server-name string Server name to use for server certificate validation. If it is not provided, the hostname used to contact the server is used + --token string Bearer token for authentication to the API server + --user string The name of the kubeconfig user to use + --username string Username for basic authentication to the API server + --warnings-as-errors Treat warnings received from the server as errors and exit with a non-zero exit code +``` + +### SEE ALSO + +* [kubectl-kruise rollout](kubectl-kruise_rollout.md) - Manage the rollout of a resource + diff --git a/docs/kubectl-kruise_rollout_pause.md b/docs/kubectl-kruise_rollout_pause.md new file mode 100644 index 0000000..58c5101 --- /dev/null +++ b/docs/kubectl-kruise_rollout_pause.md @@ -0,0 +1,69 @@ +## kubectl-kruise rollout pause + +Mark the provided resource as paused + +### Synopsis + +Mark the provided resource as paused + + Paused resources will not be reconciled by a controller. Use "kubectl rollout resume" to resume a paused resource. Currently deployments, clonesets, rollouts support being paused. + +``` +kubectl-kruise rollout pause RESOURCE +``` + +### Examples + +``` + # Mark the nginx deployment as paused. Any current state of + # the deployment will continue its function, new updates to the deployment will not + # have an effect as long as the deployment is paused. + + kubectl-kruise rollout pause deployment/nginx +``` + +### Options + +``` + --allow-missing-template-keys If true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats. (default true) + -f, --filename strings Filename, directory, or URL to files identifying the resource to get from a server. + -h, --help help for pause + -k, --kustomize string Process the kustomization directory. This flag can't be used together with -f or -R. + -o, --output string Output format. One of: (json, yaml, name, go-template, go-template-file, template, templatefile, jsonpath, jsonpath-as-json, jsonpath-file). + -R, --recursive Process the directory used in -f, --filename recursively. Useful when you want to manage related manifests organized within the same directory. + --show-managed-fields If true, keep the managedFields when printing objects in JSON or YAML format. + --template string Template string or path to template file to use when -o=go-template, -o=go-template-file. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview]. +``` + +### Options inherited from parent commands + +``` + --as string Username to impersonate for the operation. User could be a regular user or a service account in a namespace. + --as-group stringArray Group to impersonate for the operation, this flag can be repeated to specify multiple groups. + --as-uid string UID to impersonate for the operation. + --cache-dir string Default cache directory (default "$HOME/.kube/cache") + --certificate-authority string Path to a cert file for the certificate authority + --client-certificate string Path to a client certificate file for TLS + --client-key string Path to a client key file for TLS + --cluster string The name of the kubeconfig cluster to use + --context string The name of the kubeconfig context to use + --insecure-skip-tls-verify If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure + --kubeconfig string Path to the kubeconfig file to use for CLI requests. + --match-server-version Require server version to match client version + -n, --namespace string If present, the namespace scope for this CLI request + --password string Password for basic authentication to the API server + --profile string Name of profile to capture. One of (none|cpu|heap|goroutine|threadcreate|block|mutex) (default "none") + --profile-output string Name of the file to write the profile to (default "profile.pprof") + --request-timeout string The length of time to wait before giving up on a single server request. Non-zero values should contain a corresponding time unit (e.g. 1s, 2m, 3h). A value of zero means don't timeout requests. (default "0") + -s, --server string The address and port of the Kubernetes API server + --tls-server-name string Server name to use for server certificate validation. If it is not provided, the hostname used to contact the server is used + --token string Bearer token for authentication to the API server + --user string The name of the kubeconfig user to use + --username string Username for basic authentication to the API server + --warnings-as-errors Treat warnings received from the server as errors and exit with a non-zero exit code +``` + +### SEE ALSO + +* [kubectl-kruise rollout](kubectl-kruise_rollout.md) - Manage the rollout of a resource + diff --git a/docs/kubectl-kruise_rollout_restart.md b/docs/kubectl-kruise_rollout_restart.md new file mode 100644 index 0000000..031da47 --- /dev/null +++ b/docs/kubectl-kruise_rollout_restart.md @@ -0,0 +1,70 @@ +## kubectl-kruise rollout restart + +Restart a resource + +### Synopsis + +Restart a resource. + + Resource will be rollout restarted. + +``` +kubectl-kruise rollout restart RESOURCE +``` + +### Examples + +``` + # Restart a deployment + kubectl-kruise rollout restart deployment/nginx + kubectl-kruise rollout restart cloneset/abc + + # Restart a daemonset + kubectl-kruise rollout restart daemonset/abc +``` + +### Options + +``` + --allow-missing-template-keys If true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats. (default true) + -f, --filename strings Filename, directory, or URL to files identifying the resource to get from a server. + -h, --help help for restart + -k, --kustomize string Process the kustomization directory. This flag can't be used together with -f or -R. + -o, --output string Output format. One of: (json, yaml, name, go-template, go-template-file, template, templatefile, jsonpath, jsonpath-as-json, jsonpath-file). + -R, --recursive Process the directory used in -f, --filename recursively. Useful when you want to manage related manifests organized within the same directory. + --show-managed-fields If true, keep the managedFields when printing objects in JSON or YAML format. + --template string Template string or path to template file to use when -o=go-template, -o=go-template-file. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview]. +``` + +### Options inherited from parent commands + +``` + --as string Username to impersonate for the operation. User could be a regular user or a service account in a namespace. + --as-group stringArray Group to impersonate for the operation, this flag can be repeated to specify multiple groups. + --as-uid string UID to impersonate for the operation. + --cache-dir string Default cache directory (default "$HOME/.kube/cache") + --certificate-authority string Path to a cert file for the certificate authority + --client-certificate string Path to a client certificate file for TLS + --client-key string Path to a client key file for TLS + --cluster string The name of the kubeconfig cluster to use + --context string The name of the kubeconfig context to use + --insecure-skip-tls-verify If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure + --kubeconfig string Path to the kubeconfig file to use for CLI requests. + --match-server-version Require server version to match client version + -n, --namespace string If present, the namespace scope for this CLI request + --password string Password for basic authentication to the API server + --profile string Name of profile to capture. One of (none|cpu|heap|goroutine|threadcreate|block|mutex) (default "none") + --profile-output string Name of the file to write the profile to (default "profile.pprof") + --request-timeout string The length of time to wait before giving up on a single server request. Non-zero values should contain a corresponding time unit (e.g. 1s, 2m, 3h). A value of zero means don't timeout requests. (default "0") + -s, --server string The address and port of the Kubernetes API server + --tls-server-name string Server name to use for server certificate validation. If it is not provided, the hostname used to contact the server is used + --token string Bearer token for authentication to the API server + --user string The name of the kubeconfig user to use + --username string Username for basic authentication to the API server + --warnings-as-errors Treat warnings received from the server as errors and exit with a non-zero exit code +``` + +### SEE ALSO + +* [kubectl-kruise rollout](kubectl-kruise_rollout.md) - Manage the rollout of a resource + diff --git a/docs/kubectl-kruise_rollout_resume.md b/docs/kubectl-kruise_rollout_resume.md new file mode 100644 index 0000000..dfe5e7a --- /dev/null +++ b/docs/kubectl-kruise_rollout_resume.md @@ -0,0 +1,69 @@ +## kubectl-kruise rollout resume + +Resume a paused resource + +### Synopsis + +Resume a paused resource + + Paused resources will not be reconciled by a controller. By resuming a resource, we allow it to be reconciled again. Currently deployments, cloneset support being resumed. + +``` +kubectl-kruise rollout resume RESOURCE +``` + +### Examples + +``` + # Resume an already paused rollout/cloneset/deployment resource + + kubectl-kruise rollout resume rollout/nginx + kubectl-kruise rollout resume cloneset/nginx + kubectl-kruise rollout resume deployment/nginx +``` + +### Options + +``` + --allow-missing-template-keys If true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats. (default true) + -f, --filename strings Filename, directory, or URL to files identifying the resource to get from a server. + -h, --help help for resume + -k, --kustomize string Process the kustomization directory. This flag can't be used together with -f or -R. + -o, --output string Output format. One of: (json, yaml, name, go-template, go-template-file, template, templatefile, jsonpath, jsonpath-as-json, jsonpath-file). + -R, --recursive Process the directory used in -f, --filename recursively. Useful when you want to manage related manifests organized within the same directory. + --show-managed-fields If true, keep the managedFields when printing objects in JSON or YAML format. + --template string Template string or path to template file to use when -o=go-template, -o=go-template-file. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview]. +``` + +### Options inherited from parent commands + +``` + --as string Username to impersonate for the operation. User could be a regular user or a service account in a namespace. + --as-group stringArray Group to impersonate for the operation, this flag can be repeated to specify multiple groups. + --as-uid string UID to impersonate for the operation. + --cache-dir string Default cache directory (default "$HOME/.kube/cache") + --certificate-authority string Path to a cert file for the certificate authority + --client-certificate string Path to a client certificate file for TLS + --client-key string Path to a client key file for TLS + --cluster string The name of the kubeconfig cluster to use + --context string The name of the kubeconfig context to use + --insecure-skip-tls-verify If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure + --kubeconfig string Path to the kubeconfig file to use for CLI requests. + --match-server-version Require server version to match client version + -n, --namespace string If present, the namespace scope for this CLI request + --password string Password for basic authentication to the API server + --profile string Name of profile to capture. One of (none|cpu|heap|goroutine|threadcreate|block|mutex) (default "none") + --profile-output string Name of the file to write the profile to (default "profile.pprof") + --request-timeout string The length of time to wait before giving up on a single server request. Non-zero values should contain a corresponding time unit (e.g. 1s, 2m, 3h). A value of zero means don't timeout requests. (default "0") + -s, --server string The address and port of the Kubernetes API server + --tls-server-name string Server name to use for server certificate validation. If it is not provided, the hostname used to contact the server is used + --token string Bearer token for authentication to the API server + --user string The name of the kubeconfig user to use + --username string Username for basic authentication to the API server + --warnings-as-errors Treat warnings received from the server as errors and exit with a non-zero exit code +``` + +### SEE ALSO + +* [kubectl-kruise rollout](kubectl-kruise_rollout.md) - Manage the rollout of a resource + diff --git a/docs/kubectl-kruise_rollout_status.md b/docs/kubectl-kruise_rollout_status.md new file mode 100644 index 0000000..7d7438c --- /dev/null +++ b/docs/kubectl-kruise_rollout_status.md @@ -0,0 +1,72 @@ +## kubectl-kruise rollout status + +Show the status of the rollout + +### Synopsis + +Show the status of the rollout. + + By default 'rollout status' will watch the status of the latest rollout until it's done. If you don't want to wait for the rollout to finish then you can use --watch=false. Note that if a new rollout starts in-between, then 'rollout status' will continue watching the latest revision. If you want to pin to a specific revision and abort if it is rolled over by another revision, use --revision=N where N is the revision you need to watch for. + +``` +kubectl-kruise rollout status (TYPE NAME | TYPE/NAME) [flags] +``` + +### Examples + +``` + # Watch the rollout status of a deployment + kubectl-kruise rollout status deployment/nginx + + # Watch the rollout status of a cloneset + kubectl-kruise rollout status cloneset/nginx + + # Watch the rollout status of a advanced statefulset + kubectl-kruise rollout status asts/nginx +``` + +### Options + +``` + -d, --detail Show the detail status of the rollout. + -f, --filename strings Filename, directory, or URL to files identifying the resource to get from a server. + -h, --help help for status + -k, --kustomize string Process the kustomization directory. This flag can't be used together with -f or -R. + -R, --recursive Process the directory used in -f, --filename recursively. Useful when you want to manage related manifests organized within the same directory. + --revision int Pin to a specific revision for showing its status. Defaults to 0 (last revision). + --timeout duration The length of time to wait before ending watch, zero means never. Any other values should contain a corresponding time unit (e.g. 1s, 2m, 3h). + -w, --watch Watch the status of the rollout until it's done. (default true) +``` + +### Options inherited from parent commands + +``` + --as string Username to impersonate for the operation. User could be a regular user or a service account in a namespace. + --as-group stringArray Group to impersonate for the operation, this flag can be repeated to specify multiple groups. + --as-uid string UID to impersonate for the operation. + --cache-dir string Default cache directory (default "$HOME/.kube/cache") + --certificate-authority string Path to a cert file for the certificate authority + --client-certificate string Path to a client certificate file for TLS + --client-key string Path to a client key file for TLS + --cluster string The name of the kubeconfig cluster to use + --context string The name of the kubeconfig context to use + --insecure-skip-tls-verify If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure + --kubeconfig string Path to the kubeconfig file to use for CLI requests. + --match-server-version Require server version to match client version + -n, --namespace string If present, the namespace scope for this CLI request + --password string Password for basic authentication to the API server + --profile string Name of profile to capture. One of (none|cpu|heap|goroutine|threadcreate|block|mutex) (default "none") + --profile-output string Name of the file to write the profile to (default "profile.pprof") + --request-timeout string The length of time to wait before giving up on a single server request. Non-zero values should contain a corresponding time unit (e.g. 1s, 2m, 3h). A value of zero means don't timeout requests. (default "0") + -s, --server string The address and port of the Kubernetes API server + --tls-server-name string Server name to use for server certificate validation. If it is not provided, the hostname used to contact the server is used + --token string Bearer token for authentication to the API server + --user string The name of the kubeconfig user to use + --username string Username for basic authentication to the API server + --warnings-as-errors Treat warnings received from the server as errors and exit with a non-zero exit code +``` + +### SEE ALSO + +* [kubectl-kruise rollout](kubectl-kruise_rollout.md) - Manage the rollout of a resource + diff --git a/docs/kubectl-kruise_rollout_undo.md b/docs/kubectl-kruise_rollout_undo.md new file mode 100644 index 0000000..3b0b060 --- /dev/null +++ b/docs/kubectl-kruise_rollout_undo.md @@ -0,0 +1,78 @@ +## kubectl-kruise rollout undo + +Undo a previous rollout + +### Synopsis + +Rollback to a previous rollout. + +``` +kubectl-kruise rollout undo (TYPE NAME | TYPE/NAME) [flags] +``` + +### Examples + +``` + # Rollback to the previous cloneset + kubectl-kruise rollout undo cloneset/abc + + # Rollback to the previous Advanced StatefulSet + kubectl-kruise rollout undo asts/abc + + # Rollback to daemonset revision 3 + kubectl-kruise rollout undo daemonset/abc --to-revision=3 + + # Rollback to the previous deployment with dry-run + kubectl-kruise rollout undo --dry-run=server deployment/abc + + # Rollback to workload via rollout api object + kubectl-kruise rollout undo rollout/abc +``` + +### Options + +``` + --allow-missing-template-keys If true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats. (default true) + --dry-run string[="unchanged"] Must be "none", "server", or "client". If client strategy, only print the object that would be sent, without sending it. If server strategy, submit server-side request without persisting the resource. (default "none") + -f, --filename strings Filename, directory, or URL to files identifying the resource to get from a server. + -h, --help help for undo + -k, --kustomize string Process the kustomization directory. This flag can't be used together with -f or -R. + -o, --output string Output format. One of: (json, yaml, name, go-template, go-template-file, template, templatefile, jsonpath, jsonpath-as-json, jsonpath-file). + -R, --recursive Process the directory used in -f, --filename recursively. Useful when you want to manage related manifests organized within the same directory. + --show-managed-fields If true, keep the managedFields when printing objects in JSON or YAML format. + --template string Template string or path to template file to use when -o=go-template, -o=go-template-file. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview]. + --to-revision int The revision to rollback to. Default to 0 (last revision). +``` + +### Options inherited from parent commands + +``` + --as string Username to impersonate for the operation. User could be a regular user or a service account in a namespace. + --as-group stringArray Group to impersonate for the operation, this flag can be repeated to specify multiple groups. + --as-uid string UID to impersonate for the operation. + --cache-dir string Default cache directory (default "$HOME/.kube/cache") + --certificate-authority string Path to a cert file for the certificate authority + --client-certificate string Path to a client certificate file for TLS + --client-key string Path to a client key file for TLS + --cluster string The name of the kubeconfig cluster to use + --context string The name of the kubeconfig context to use + --insecure-skip-tls-verify If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure + --kubeconfig string Path to the kubeconfig file to use for CLI requests. + --match-server-version Require server version to match client version + -n, --namespace string If present, the namespace scope for this CLI request + --password string Password for basic authentication to the API server + --profile string Name of profile to capture. One of (none|cpu|heap|goroutine|threadcreate|block|mutex) (default "none") + --profile-output string Name of the file to write the profile to (default "profile.pprof") + --request-timeout string The length of time to wait before giving up on a single server request. Non-zero values should contain a corresponding time unit (e.g. 1s, 2m, 3h). A value of zero means don't timeout requests. (default "0") + -s, --server string The address and port of the Kubernetes API server + --tls-server-name string Server name to use for server certificate validation. If it is not provided, the hostname used to contact the server is used + --token string Bearer token for authentication to the API server + --user string The name of the kubeconfig user to use + --username string Username for basic authentication to the API server + --warnings-as-errors Treat warnings received from the server as errors and exit with a non-zero exit code +``` + +### SEE ALSO + +* [kubectl-kruise rollout](kubectl-kruise_rollout.md) - Manage the rollout of a resource + diff --git a/docs/kubectl-kruise_scaledown.md b/docs/kubectl-kruise_scaledown.md new file mode 100644 index 0000000..483791a --- /dev/null +++ b/docs/kubectl-kruise_scaledown.md @@ -0,0 +1,60 @@ +## kubectl-kruise scaledown + +Scaledown a cloneset with selective Pods + +### Synopsis + +Scaledown a cloneset with selective Pods + +``` +kubectl-kruise scaledown [CLONESET] --pods [POD1,POD2] -n [NAMESPACE] +``` + +### Examples + +``` + + # Scale down 2 with selective pods + kubectl-kruise scaledown CloneSet cloneset-demo --pods pod-1, pod-2 -n default + +``` + +### Options + +``` + -h, --help help for scaledown + --pods string Name of the pods to delete +``` + +### Options inherited from parent commands + +``` + --as string Username to impersonate for the operation. User could be a regular user or a service account in a namespace. + --as-group stringArray Group to impersonate for the operation, this flag can be repeated to specify multiple groups. + --as-uid string UID to impersonate for the operation. + --cache-dir string Default cache directory (default "$HOME/.kube/cache") + --certificate-authority string Path to a cert file for the certificate authority + --client-certificate string Path to a client certificate file for TLS + --client-key string Path to a client key file for TLS + --cluster string The name of the kubeconfig cluster to use + --context string The name of the kubeconfig context to use + --insecure-skip-tls-verify If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure + --kubeconfig string Path to the kubeconfig file to use for CLI requests. + --match-server-version Require server version to match client version + -n, --namespace string If present, the namespace scope for this CLI request + --password string Password for basic authentication to the API server + --profile string Name of profile to capture. One of (none|cpu|heap|goroutine|threadcreate|block|mutex) (default "none") + --profile-output string Name of the file to write the profile to (default "profile.pprof") + --request-timeout string The length of time to wait before giving up on a single server request. Non-zero values should contain a corresponding time unit (e.g. 1s, 2m, 3h). A value of zero means don't timeout requests. (default "0") + -s, --server string The address and port of the Kubernetes API server + --tls-server-name string Server name to use for server certificate validation. If it is not provided, the hostname used to contact the server is used + --token string Bearer token for authentication to the API server + --user string The name of the kubeconfig user to use + --username string Username for basic authentication to the API server + --warnings-as-errors Treat warnings received from the server as errors and exit with a non-zero exit code +``` + +### SEE ALSO + +* [kubectl-kruise](kubectl-kruise.md) - kubectl-kruise controls the OpenKruise CRs + diff --git a/docs/kubectl-kruise_set.md b/docs/kubectl-kruise_set.md new file mode 100644 index 0000000..b739bdb --- /dev/null +++ b/docs/kubectl-kruise_set.md @@ -0,0 +1,58 @@ +## kubectl-kruise set + +Set specific features on objects + +### Synopsis + +Configure application resources + + These commands help you make changes to existing application resources. + +``` +kubectl-kruise set SUBCOMMAND +``` + +### Options + +``` + -h, --help help for set +``` + +### Options inherited from parent commands + +``` + --as string Username to impersonate for the operation. User could be a regular user or a service account in a namespace. + --as-group stringArray Group to impersonate for the operation, this flag can be repeated to specify multiple groups. + --as-uid string UID to impersonate for the operation. + --cache-dir string Default cache directory (default "$HOME/.kube/cache") + --certificate-authority string Path to a cert file for the certificate authority + --client-certificate string Path to a client certificate file for TLS + --client-key string Path to a client key file for TLS + --cluster string The name of the kubeconfig cluster to use + --context string The name of the kubeconfig context to use + --insecure-skip-tls-verify If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure + --kubeconfig string Path to the kubeconfig file to use for CLI requests. + --match-server-version Require server version to match client version + -n, --namespace string If present, the namespace scope for this CLI request + --password string Password for basic authentication to the API server + --profile string Name of profile to capture. One of (none|cpu|heap|goroutine|threadcreate|block|mutex) (default "none") + --profile-output string Name of the file to write the profile to (default "profile.pprof") + --request-timeout string The length of time to wait before giving up on a single server request. Non-zero values should contain a corresponding time unit (e.g. 1s, 2m, 3h). A value of zero means don't timeout requests. (default "0") + -s, --server string The address and port of the Kubernetes API server + --tls-server-name string Server name to use for server certificate validation. If it is not provided, the hostname used to contact the server is used + --token string Bearer token for authentication to the API server + --user string The name of the kubeconfig user to use + --username string Username for basic authentication to the API server + --warnings-as-errors Treat warnings received from the server as errors and exit with a non-zero exit code +``` + +### SEE ALSO + +* [kubectl-kruise](kubectl-kruise.md) - kubectl-kruise controls the OpenKruise CRs +* [kubectl-kruise set env](kubectl-kruise_set_env.md) - Update environment variables on a pod template +* [kubectl-kruise set image](kubectl-kruise_set_image.md) - Update image of a pod template +* [kubectl-kruise set resources](kubectl-kruise_set_resources.md) - Update resource requests/limits on objects with pod templates +* [kubectl-kruise set selector](kubectl-kruise_set_selector.md) - Set the selector on a resource +* [kubectl-kruise set serviceaccount](kubectl-kruise_set_serviceaccount.md) - Update ServiceAccount of a resource +* [kubectl-kruise set subject](kubectl-kruise_set_subject.md) - Update User, Group or ServiceAccount in a RoleBinding/ClusterRoleBinding + diff --git a/docs/kubectl-kruise_set_env.md b/docs/kubectl-kruise_set_env.md new file mode 100644 index 0000000..15d40c2 --- /dev/null +++ b/docs/kubectl-kruise_set_env.md @@ -0,0 +1,115 @@ +## kubectl-kruise set env + +Update environment variables on a pod template + +### Synopsis + +Update environment variables on a pod template. + + List environment variable definitions in one or more pods, pod templates. Add, update, or remove container environment variable definitions in one or more pod templates (within replication controllers or deployment configurations). View or modify the environment variable definitions on all containers in the specified pods or pod templates, or just those that match a wildcard. + + If "--env -" is passed, environment variables can be read from STDIN using the standard env syntax. + + Possible resources include (case insensitive): + + pod (po), deployment (deploy), statefulset (sts), daemonset (ds), replicaset (rs), cloneset (clone), statefulset.apps.kruise.io (asts), daemonset.apps.kruise.io (ads) + +``` +kubectl-kruise set env RESOURCE/NAME KEY_1=VAL_1 ... KEY_N=VAL_N +``` + +### Examples + +``` + # Update cloneset 'sample' with a new environment variable + kubectl-kruise set env cloneset/sample STORAGE_DIR=/local + + # List the environment variables defined on a cloneset 'sample' + kubectl-kruise set env cloneset/sample --list + + # List the environment variables defined on all pods + kubectl-kruise set env pods --all --list + + # Output modified cloneset in YAML, and does not alter the object on the server + kubectl-kruise set env cloneset/sample STORAGE_DIR=/data -o yaml + + # Update all containers in all replication controllers in the project to have ENV=prod + kubectl-kruise set env rc --all ENV=prod + + # Import environment from a secret + kubectl-kruise set env --from=secret/mysecret cloneset/sample + + # Import environment from a config map with a prefix + kubectl-kruise set env --from=configmap/myconfigmap --prefix=MYSQL_ cloneset/sample + + # Import specific keys from a config map + kubectl-kruise set env --keys=my-example-key --from=configmap/myconfigmap cloneset/sample + + # Remove the environment variable ENV from container 'c1' in all deployment configs + kubectl-kruise set env clonesets --all --containers="c1" ENV- + + # Remove the environment variable ENV from a deployment definition on disk and + # update the deployment config on the server + kubectl-kruise set env -f deploy.json ENV- + + # Set some of the local shell environment into a deployment config on the server + env | grep RAILS_ | kubectl-kruise set env -e - cloneset/sample +``` + +### Options + +``` + --all If true, select all resources in the namespace of the specified resource types + --allow-missing-template-keys If true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats. (default true) + -c, --containers string The names of containers in the selected pod templates to change - may use wildcards (default "*") + --dry-run string[="unchanged"] Must be "none", "server", or "client". If client strategy, only print the object that would be sent, without sending it. If server strategy, submit server-side request without persisting the resource. (default "none") + -e, --env stringArray Specify a key-value pair for an environment variable to set into each container. + -f, --filename strings Filename, directory, or URL to files the resource to update the env + --from string The name of a resource from which to inject environment variables + -h, --help help for env + --keys strings Comma-separated list of keys to import from specified resource + -k, --kustomize string Process the kustomization directory. This flag can't be used together with -f or -R. + --list If true, display the environment and any changes in the standard format. this flag will removed when we have kubectl view env. + --local If true, set env will NOT contact api-server but run locally. + -o, --output string Output format. One of: (json, yaml, name, go-template, go-template-file, template, templatefile, jsonpath, jsonpath-as-json, jsonpath-file). + --overwrite If true, allow environment to be overwritten, otherwise reject updates that overwrite existing environment. (default true) + --prefix string Prefix to append to variable names + -R, --recursive Process the directory used in -f, --filename recursively. Useful when you want to manage related manifests organized within the same directory. + --resolve If true, show secret or configmap references when listing variables + -l, --selector string Selector (label query) to filter on + --show-managed-fields If true, keep the managedFields when printing objects in JSON or YAML format. + --template string Template string or path to template file to use when -o=go-template, -o=go-template-file. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview]. +``` + +### Options inherited from parent commands + +``` + --as string Username to impersonate for the operation. User could be a regular user or a service account in a namespace. + --as-group stringArray Group to impersonate for the operation, this flag can be repeated to specify multiple groups. + --as-uid string UID to impersonate for the operation. + --cache-dir string Default cache directory (default "$HOME/.kube/cache") + --certificate-authority string Path to a cert file for the certificate authority + --client-certificate string Path to a client certificate file for TLS + --client-key string Path to a client key file for TLS + --cluster string The name of the kubeconfig cluster to use + --context string The name of the kubeconfig context to use + --insecure-skip-tls-verify If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure + --kubeconfig string Path to the kubeconfig file to use for CLI requests. + --match-server-version Require server version to match client version + -n, --namespace string If present, the namespace scope for this CLI request + --password string Password for basic authentication to the API server + --profile string Name of profile to capture. One of (none|cpu|heap|goroutine|threadcreate|block|mutex) (default "none") + --profile-output string Name of the file to write the profile to (default "profile.pprof") + --request-timeout string The length of time to wait before giving up on a single server request. Non-zero values should contain a corresponding time unit (e.g. 1s, 2m, 3h). A value of zero means don't timeout requests. (default "0") + -s, --server string The address and port of the Kubernetes API server + --tls-server-name string Server name to use for server certificate validation. If it is not provided, the hostname used to contact the server is used + --token string Bearer token for authentication to the API server + --user string The name of the kubeconfig user to use + --username string Username for basic authentication to the API server + --warnings-as-errors Treat warnings received from the server as errors and exit with a non-zero exit code +``` + +### SEE ALSO + +* [kubectl-kruise set](kubectl-kruise_set.md) - Set specific features on objects + diff --git a/docs/kubectl-kruise_set_image.md b/docs/kubectl-kruise_set_image.md new file mode 100644 index 0000000..9272185 --- /dev/null +++ b/docs/kubectl-kruise_set_image.md @@ -0,0 +1,81 @@ +## kubectl-kruise set image + +Update image of a pod template + +### Synopsis + +Update existing container image(s) of resources. + + Possible resources include (case insensitive): + + pod (po), deployment (deploy), statefulset (sts), daemonset (ds), replicaset (rs), cloneset (clone), statefulset.apps.kruise.io (asts), daemonset.apps.kruise.io (ads) + +``` +kubectl-kruise set image (-f FILENAME | TYPE NAME) CONTAINER_NAME_1=CONTAINER_IMAGE_1 ... CONTAINER_NAME_N=CONTAINER_IMAGE_N +``` + +### Examples + +``` + # Set a deployment's nginx container image to 'nginx:1.9.1', and its busybox container image to 'busybox'. + kubectl-kruise set image cloneset/sample busybox=busybox nginx=nginx:1.9.1 + + # Update all deployments' and rc's nginx container's image to 'nginx:1.9.1' + kubectl-kruise set image cloneset,rc nginx=nginx:1.9.1 --all + + # Update image of all containers of cloneset sample to 'nginx:1.9.1' + kubectl-kruise set image cloneset sample *=nginx:1.9.1 + + # Print result (in yaml format) of updating nginx container image from local file, without hitting the server + kubectl-kruise set image -f path/to/file.yaml nginx=nginx:1.9.1 --local -o yaml +``` + +### Options + +``` + --all Select all resources, including uninitialized ones, in the namespace of the specified resource types + --allow-missing-template-keys If true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats. (default true) + --dry-run string[="unchanged"] Must be "none", "server", or "client". If client strategy, only print the object that would be sent, without sending it. If server strategy, submit server-side request without persisting the resource. (default "none") + -f, --filename strings Filename, directory, or URL to files identifying the resource to get from a server. + -h, --help help for image + -k, --kustomize string Process the kustomization directory. This flag can't be used together with -f or -R. + --local If true, set image will NOT contact api-server but run locally. + -o, --output string Output format. One of: (json, yaml, name, go-template, go-template-file, template, templatefile, jsonpath, jsonpath-as-json, jsonpath-file). + -R, --recursive Process the directory used in -f, --filename recursively. Useful when you want to manage related manifests organized within the same directory. + -l, --selector string Selector (label query) to filter on, not including uninitialized ones, supports '=', '==', and '!='.(e.g. -l key1=value1,key2=value2) + --show-managed-fields If true, keep the managedFields when printing objects in JSON or YAML format. + --template string Template string or path to template file to use when -o=go-template, -o=go-template-file. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview]. +``` + +### Options inherited from parent commands + +``` + --as string Username to impersonate for the operation. User could be a regular user or a service account in a namespace. + --as-group stringArray Group to impersonate for the operation, this flag can be repeated to specify multiple groups. + --as-uid string UID to impersonate for the operation. + --cache-dir string Default cache directory (default "$HOME/.kube/cache") + --certificate-authority string Path to a cert file for the certificate authority + --client-certificate string Path to a client certificate file for TLS + --client-key string Path to a client key file for TLS + --cluster string The name of the kubeconfig cluster to use + --context string The name of the kubeconfig context to use + --insecure-skip-tls-verify If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure + --kubeconfig string Path to the kubeconfig file to use for CLI requests. + --match-server-version Require server version to match client version + -n, --namespace string If present, the namespace scope for this CLI request + --password string Password for basic authentication to the API server + --profile string Name of profile to capture. One of (none|cpu|heap|goroutine|threadcreate|block|mutex) (default "none") + --profile-output string Name of the file to write the profile to (default "profile.pprof") + --request-timeout string The length of time to wait before giving up on a single server request. Non-zero values should contain a corresponding time unit (e.g. 1s, 2m, 3h). A value of zero means don't timeout requests. (default "0") + -s, --server string The address and port of the Kubernetes API server + --tls-server-name string Server name to use for server certificate validation. If it is not provided, the hostname used to contact the server is used + --token string Bearer token for authentication to the API server + --user string The name of the kubeconfig user to use + --username string Username for basic authentication to the API server + --warnings-as-errors Treat warnings received from the server as errors and exit with a non-zero exit code +``` + +### SEE ALSO + +* [kubectl-kruise set](kubectl-kruise_set.md) - Set specific features on objects + diff --git a/docs/kubectl-kruise_set_resources.md b/docs/kubectl-kruise_set_resources.md new file mode 100644 index 0000000..8405d94 --- /dev/null +++ b/docs/kubectl-kruise_set_resources.md @@ -0,0 +1,86 @@ +## kubectl-kruise set resources + +Update resource requests/limits on objects with pod templates + +### Synopsis + +Specify compute resource requirements (cpu, memory) for any resource that defines a pod template. If a pod is successfully scheduled, it is guaranteed the amount of resource requested, but may burst up to its specified limits. + + for each compute resource, if a limit is specified and a request is omitted, the request will default to the limit. + + Possible resources include (case insensitive): + + pod (po), deployment (deploy), statefulset (sts), daemonset (ds), replicaset (rs), cloneset (clone), statefulset.apps.kruise.io (asts), daemonset.apps.kruise.io (ads) + +``` +kubectl-kruise set resources (-f FILENAME | TYPE NAME) ([--limits=LIMITS & --requests=REQUESTS] +``` + +### Examples + +``` + # Set a deployments nginx container cpu limits to "200m" and memory to "512Mi" + kubectl-kruise set resources cloneset sample -c=nginx --limits=cpu=200m,memory=512Mi + + # Set the resource request and limits for all containers in nginx + kubectl-kruise set resources cloneset sample --limits=cpu=200m,memory=512Mi --requests=cpu=100m,memory=256Mi + + # Remove the resource requests for resources on containers in nginx + kubectl-kruise set resources cloneset sample --limits=cpu=0,memory=0 --requests=cpu=0,memory=0 + + # Print the result (in yaml format) of updating nginx container limits from a local, without hitting the server + kubectl-kruise set resources -f path/to/file.yaml --limits=cpu=200m,memory=512Mi --local -o yaml +``` + +### Options + +``` + --all Select all resources, including uninitialized ones, in the namespace of the specified resource types + --allow-missing-template-keys If true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats. (default true) + -c, --containers string The names of containers in the selected pod templates to change, all containers are selected by default - may use wildcards (default "*") + --dry-run string[="unchanged"] Must be "none", "server", or "client". If client strategy, only print the object that would be sent, without sending it. If server strategy, submit server-side request without persisting the resource. (default "none") + -f, --filename strings Filename, directory, or URL to files identifying the resource to get from a server. + -h, --help help for resources + -k, --kustomize string Process the kustomization directory. This flag can't be used together with -f or -R. + --limits string The resource requirement requests for this container. For example, 'cpu=100m,memory=256Mi'. Note that server side components may assign requests depending on the server configuration, such as limit ranges. + --local If true, set resources will NOT contact api-server but run locally. + -o, --output string Output format. One of: (json, yaml, name, go-template, go-template-file, template, templatefile, jsonpath, jsonpath-as-json, jsonpath-file). + -R, --recursive Process the directory used in -f, --filename recursively. Useful when you want to manage related manifests organized within the same directory. + --requests string The resource requirement requests for this container. For example, 'cpu=100m,memory=256Mi'. Note that server side components may assign requests depending on the server configuration, such as limit ranges. + -l, --selector string Selector (label query) to filter on, not including uninitialized ones,supports '=', '==', and '!='.(e.g. -l key1=value1,key2=value2) + --show-managed-fields If true, keep the managedFields when printing objects in JSON or YAML format. + --template string Template string or path to template file to use when -o=go-template, -o=go-template-file. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview]. +``` + +### Options inherited from parent commands + +``` + --as string Username to impersonate for the operation. User could be a regular user or a service account in a namespace. + --as-group stringArray Group to impersonate for the operation, this flag can be repeated to specify multiple groups. + --as-uid string UID to impersonate for the operation. + --cache-dir string Default cache directory (default "$HOME/.kube/cache") + --certificate-authority string Path to a cert file for the certificate authority + --client-certificate string Path to a client certificate file for TLS + --client-key string Path to a client key file for TLS + --cluster string The name of the kubeconfig cluster to use + --context string The name of the kubeconfig context to use + --insecure-skip-tls-verify If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure + --kubeconfig string Path to the kubeconfig file to use for CLI requests. + --match-server-version Require server version to match client version + -n, --namespace string If present, the namespace scope for this CLI request + --password string Password for basic authentication to the API server + --profile string Name of profile to capture. One of (none|cpu|heap|goroutine|threadcreate|block|mutex) (default "none") + --profile-output string Name of the file to write the profile to (default "profile.pprof") + --request-timeout string The length of time to wait before giving up on a single server request. Non-zero values should contain a corresponding time unit (e.g. 1s, 2m, 3h). A value of zero means don't timeout requests. (default "0") + -s, --server string The address and port of the Kubernetes API server + --tls-server-name string Server name to use for server certificate validation. If it is not provided, the hostname used to contact the server is used + --token string Bearer token for authentication to the API server + --user string The name of the kubeconfig user to use + --username string Username for basic authentication to the API server + --warnings-as-errors Treat warnings received from the server as errors and exit with a non-zero exit code +``` + +### SEE ALSO + +* [kubectl-kruise set](kubectl-kruise_set.md) - Set specific features on objects + diff --git a/docs/kubectl-kruise_set_selector.md b/docs/kubectl-kruise_set_selector.md new file mode 100644 index 0000000..a7b643e --- /dev/null +++ b/docs/kubectl-kruise_set_selector.md @@ -0,0 +1,70 @@ +## kubectl-kruise set selector + +Set the selector on a resource + +### Synopsis + +Set the selector on a resource. Note that the new selector will overwrite the old selector if the resource had one prior to the invocation of 'set selector'. + + A selector must begin with a letter or number, and may contain letters, numbers, hyphens, dots, and underscores, up to 63 characters. If --resource-version is specified, then updates will use this resource version, otherwise the existing resource-version will be used. Note: currently selectors can only be set on Service objects. + +``` +kubectl-kruise set selector (-f FILENAME | TYPE NAME) EXPRESSIONS [--resource-version=version] +``` + +### Examples + +``` + # set the labels and selector before creating a deployment/service pair. + kubectl create service clusterip my-svc --clusterip="None" -o yaml --dry-run=client | kubectl-kruise set selector --local -f - 'environment=qa' -o yaml | kubectl create -f - + kubectl create cloneset sample -o yaml --dry-run=client | kubectl label --local -f - environment=qa -o yaml | kubectl create -f - +``` + +### Options + +``` + --all Select all resources in the namespace of the specified resource types + --allow-missing-template-keys If true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats. (default true) + --dry-run string[="unchanged"] Must be "none", "server", or "client". If client strategy, only print the object that would be sent, without sending it. If server strategy, submit server-side request without persisting the resource. (default "none") + -f, --filename strings identifying the resource. + -h, --help help for selector + --local If true, annotation will NOT contact api-server but run locally. + -o, --output string Output format. One of: (json, yaml, name, go-template, go-template-file, template, templatefile, jsonpath, jsonpath-as-json, jsonpath-file). + -R, --recursive Process the directory used in -f, --filename recursively. Useful when you want to manage related manifests organized within the same directory. (default true) + --resource-version string If non-empty, the selectors update will only succeed if this is the current resource-version for the object. Only valid when specifying a single resource. + --show-managed-fields If true, keep the managedFields when printing objects in JSON or YAML format. + --template string Template string or path to template file to use when -o=go-template, -o=go-template-file. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview]. +``` + +### Options inherited from parent commands + +``` + --as string Username to impersonate for the operation. User could be a regular user or a service account in a namespace. + --as-group stringArray Group to impersonate for the operation, this flag can be repeated to specify multiple groups. + --as-uid string UID to impersonate for the operation. + --cache-dir string Default cache directory (default "$HOME/.kube/cache") + --certificate-authority string Path to a cert file for the certificate authority + --client-certificate string Path to a client certificate file for TLS + --client-key string Path to a client key file for TLS + --cluster string The name of the kubeconfig cluster to use + --context string The name of the kubeconfig context to use + --insecure-skip-tls-verify If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure + --kubeconfig string Path to the kubeconfig file to use for CLI requests. + --match-server-version Require server version to match client version + -n, --namespace string If present, the namespace scope for this CLI request + --password string Password for basic authentication to the API server + --profile string Name of profile to capture. One of (none|cpu|heap|goroutine|threadcreate|block|mutex) (default "none") + --profile-output string Name of the file to write the profile to (default "profile.pprof") + --request-timeout string The length of time to wait before giving up on a single server request. Non-zero values should contain a corresponding time unit (e.g. 1s, 2m, 3h). A value of zero means don't timeout requests. (default "0") + -s, --server string The address and port of the Kubernetes API server + --tls-server-name string Server name to use for server certificate validation. If it is not provided, the hostname used to contact the server is used + --token string Bearer token for authentication to the API server + --user string The name of the kubeconfig user to use + --username string Username for basic authentication to the API server + --warnings-as-errors Treat warnings received from the server as errors and exit with a non-zero exit code +``` + +### SEE ALSO + +* [kubectl-kruise set](kubectl-kruise_set.md) - Set specific features on objects + diff --git a/docs/kubectl-kruise_set_serviceaccount.md b/docs/kubectl-kruise_set_serviceaccount.md new file mode 100644 index 0000000..0ac4f41 --- /dev/null +++ b/docs/kubectl-kruise_set_serviceaccount.md @@ -0,0 +1,74 @@ +## kubectl-kruise set serviceaccount + +Update ServiceAccount of a resource + +### Synopsis + +Update ServiceAccount of pod template resources. + + Possible resources (case insensitive) can be: + + replicationcontroller (rc), deployment (deploy), daemonset (ds), job, replicaset (rs), statefulset, cloneset (cs) + +``` +kubectl-kruise set serviceaccount (-f FILENAME | TYPE NAME) SERVICE_ACCOUNT +``` + +### Examples + +``` + # Set Deployment nginx-deployment's ServiceAccount to serviceaccount1 + kubectl-kruise set serviceaccount cloneset sample serviceaccount1 + + # Print the result (in yaml format) of updated cloneset with serviceaccount from local file, without hitting apiserver + kubectl-kruise set sa -f CloneSet.yaml serviceaccount1 --local --dry-run=client -o yaml +``` + +### Options + +``` + --all Select all resources, including uninitialized ones, in the namespace of the specified resource types + --allow-missing-template-keys If true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats. (default true) + --dry-run string[="unchanged"] Must be "none", "server", or "client". If client strategy, only print the object that would be sent, without sending it. If server strategy, submit server-side request without persisting the resource. (default "none") + -f, --filename strings Filename, directory, or URL to files identifying the resource to get from a server. + -h, --help help for serviceaccount + -k, --kustomize string Process the kustomization directory. This flag can't be used together with -f or -R. + --local If true, set serviceaccount will NOT contact api-server but run locally. + -o, --output string Output format. One of: (json, yaml, name, go-template, go-template-file, template, templatefile, jsonpath, jsonpath-as-json, jsonpath-file). + -R, --recursive Process the directory used in -f, --filename recursively. Useful when you want to manage related manifests organized within the same directory. + --show-managed-fields If true, keep the managedFields when printing objects in JSON or YAML format. + --template string Template string or path to template file to use when -o=go-template, -o=go-template-file. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview]. +``` + +### Options inherited from parent commands + +``` + --as string Username to impersonate for the operation. User could be a regular user or a service account in a namespace. + --as-group stringArray Group to impersonate for the operation, this flag can be repeated to specify multiple groups. + --as-uid string UID to impersonate for the operation. + --cache-dir string Default cache directory (default "$HOME/.kube/cache") + --certificate-authority string Path to a cert file for the certificate authority + --client-certificate string Path to a client certificate file for TLS + --client-key string Path to a client key file for TLS + --cluster string The name of the kubeconfig cluster to use + --context string The name of the kubeconfig context to use + --insecure-skip-tls-verify If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure + --kubeconfig string Path to the kubeconfig file to use for CLI requests. + --match-server-version Require server version to match client version + -n, --namespace string If present, the namespace scope for this CLI request + --password string Password for basic authentication to the API server + --profile string Name of profile to capture. One of (none|cpu|heap|goroutine|threadcreate|block|mutex) (default "none") + --profile-output string Name of the file to write the profile to (default "profile.pprof") + --request-timeout string The length of time to wait before giving up on a single server request. Non-zero values should contain a corresponding time unit (e.g. 1s, 2m, 3h). A value of zero means don't timeout requests. (default "0") + -s, --server string The address and port of the Kubernetes API server + --tls-server-name string Server name to use for server certificate validation. If it is not provided, the hostname used to contact the server is used + --token string Bearer token for authentication to the API server + --user string The name of the kubeconfig user to use + --username string Username for basic authentication to the API server + --warnings-as-errors Treat warnings received from the server as errors and exit with a non-zero exit code +``` + +### SEE ALSO + +* [kubectl-kruise set](kubectl-kruise_set.md) - Set specific features on objects + diff --git a/docs/kubectl-kruise_set_subject.md b/docs/kubectl-kruise_set_subject.md new file mode 100644 index 0000000..ef7d936 --- /dev/null +++ b/docs/kubectl-kruise_set_subject.md @@ -0,0 +1,76 @@ +## kubectl-kruise set subject + +Update User, Group or ServiceAccount in a RoleBinding/ClusterRoleBinding + +### Synopsis + +Update User, Group or ServiceAccount in a RoleBinding/ClusterRoleBinding. + +``` +kubectl-kruise set subject (-f FILENAME | TYPE NAME) [--user=username] [--group=groupname] [--serviceaccount=namespace:serviceaccountname] [--dry-run=server|client|none] +``` + +### Examples + +``` + # Update a ClusterRoleBinding for serviceaccount1 + kubectl-kruise set subject clusterrolebinding admin --serviceaccount=namespace:serviceaccount1 + + # Update a RoleBinding for user1, user2, and group1 + kubectl-kruise set subject rolebinding admin --user=user1 --user=user2 --group=group1 + + # Print the result (in yaml format) of updating rolebinding subjects from a local, without hitting the server + kubectl create rolebinding admin --role=admin --user=admin -o yaml --dry-run=client | kubectl-kruise set subject --local -f - --user=foo -o yaml +``` + +### Options + +``` + --all Select all resources, including uninitialized ones, in the namespace of the specified resource types + --allow-missing-template-keys If true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats. (default true) + --dry-run string[="unchanged"] Must be "none", "server", or "client". If client strategy, only print the object that would be sent, without sending it. If server strategy, submit server-side request without persisting the resource. (default "none") + -f, --filename strings Filename, directory, or URL to files the resource to update the subjects + --group stringArray Groups to bind to the role + -h, --help help for subject + -k, --kustomize string Process the kustomization directory. This flag can't be used together with -f or -R. + --local If true, set subject will NOT contact api-server but run locally. + -o, --output string Output format. One of: (json, yaml, name, go-template, go-template-file, template, templatefile, jsonpath, jsonpath-as-json, jsonpath-file). + -R, --recursive Process the directory used in -f, --filename recursively. Useful when you want to manage related manifests organized within the same directory. + -l, --selector string Selector (label query) to filter on, not including uninitialized ones, supports '=', '==', and '!='.(e.g. -l key1=value1,key2=value2) + --serviceaccount stringArray Service accounts to bind to the role + --show-managed-fields If true, keep the managedFields when printing objects in JSON or YAML format. + --template string Template string or path to template file to use when -o=go-template, -o=go-template-file. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview]. + --user stringArray Usernames to bind to the role +``` + +### Options inherited from parent commands + +``` + --as string Username to impersonate for the operation. User could be a regular user or a service account in a namespace. + --as-group stringArray Group to impersonate for the operation, this flag can be repeated to specify multiple groups. + --as-uid string UID to impersonate for the operation. + --cache-dir string Default cache directory (default "$HOME/.kube/cache") + --certificate-authority string Path to a cert file for the certificate authority + --client-certificate string Path to a client certificate file for TLS + --client-key string Path to a client key file for TLS + --cluster string The name of the kubeconfig cluster to use + --context string The name of the kubeconfig context to use + --insecure-skip-tls-verify If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure + --kubeconfig string Path to the kubeconfig file to use for CLI requests. + --match-server-version Require server version to match client version + -n, --namespace string If present, the namespace scope for this CLI request + --password string Password for basic authentication to the API server + --profile string Name of profile to capture. One of (none|cpu|heap|goroutine|threadcreate|block|mutex) (default "none") + --profile-output string Name of the file to write the profile to (default "profile.pprof") + --request-timeout string The length of time to wait before giving up on a single server request. Non-zero values should contain a corresponding time unit (e.g. 1s, 2m, 3h). A value of zero means don't timeout requests. (default "0") + -s, --server string The address and port of the Kubernetes API server + --tls-server-name string Server name to use for server certificate validation. If it is not provided, the hostname used to contact the server is used + --token string Bearer token for authentication to the API server + --username string Username for basic authentication to the API server + --warnings-as-errors Treat warnings received from the server as errors and exit with a non-zero exit code +``` + +### SEE ALSO + +* [kubectl-kruise set](kubectl-kruise_set.md) - Set specific features on objects + diff --git a/docs/yaml/kubectl-kruise.yaml b/docs/yaml/kubectl-kruise.yaml new file mode 100644 index 0000000..2cb7d80 --- /dev/null +++ b/docs/yaml/kubectl-kruise.yaml @@ -0,0 +1,82 @@ +name: kubectl-kruise +synopsis: kubectl-kruise controls the OpenKruise CRs +description: |- + kubectl-kruise controls the OpenKruise manager. + + Find more information at: https://openkruise.io/ +usage: kubectl-kruise [flags] +options: + - name: as + usage: | + Username to impersonate for the operation. User could be a regular user or a service account in a namespace. + - name: as-group + default_value: '[]' + usage: | + Group to impersonate for the operation, this flag can be repeated to specify multiple groups. + - name: as-uid + usage: UID to impersonate for the operation. + - name: cache-dir + default_value: $HOME/.kube/cache + usage: Default cache directory + - name: certificate-authority + usage: Path to a cert file for the certificate authority + - name: client-certificate + usage: Path to a client certificate file for TLS + - name: client-key + usage: Path to a client key file for TLS + - name: cluster + usage: The name of the kubeconfig cluster to use + - name: context + usage: The name of the kubeconfig context to use + - name: help + shorthand: h + default_value: "false" + usage: help for kubectl-kruise + - name: insecure-skip-tls-verify + default_value: "false" + usage: | + If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure + - name: kubeconfig + usage: Path to the kubeconfig file to use for CLI requests. + - name: match-server-version + default_value: "false" + usage: Require server version to match client version + - name: namespace + shorthand: "n" + usage: If present, the namespace scope for this CLI request + - name: password + usage: Password for basic authentication to the API server + - name: profile + default_value: none + usage: | + Name of profile to capture. One of (none|cpu|heap|goroutine|threadcreate|block|mutex) + - name: profile-output + default_value: profile.pprof + usage: Name of the file to write the profile to + - name: request-timeout + default_value: "0" + usage: | + The length of time to wait before giving up on a single server request. Non-zero values should contain a corresponding time unit (e.g. 1s, 2m, 3h). A value of zero means don't timeout requests. + - name: server + shorthand: s + usage: The address and port of the Kubernetes API server + - name: tls-server-name + usage: | + Server name to use for server certificate validation. If it is not provided, the hostname used to contact the server is used + - name: token + usage: Bearer token for authentication to the API server + - name: user + usage: The name of the kubeconfig user to use + - name: username + usage: Username for basic authentication to the API server + - name: warnings-as-errors + default_value: "false" + usage: | + Treat warnings received from the server as errors and exit with a non-zero exit code +see_also: + - kubectl-kruise create - Create a resource from a file or from stdin. + - kubectl-kruise expose - Take a workload(e.g. deployment, cloneset), service or pod and expose it as a new Kubernetes Service + - kubectl-kruise migrate - Migrate from K8s original workloads to Kruise workloads + - kubectl-kruise rollout - Manage the rollout of a resource + - kubectl-kruise scaledown - Scaledown a cloneset with selective Pods + - kubectl-kruise set - Set specific features on objects diff --git a/docs/yaml/kubectl-kruise_create.yaml b/docs/yaml/kubectl-kruise_create.yaml new file mode 100644 index 0000000..7e4eef5 --- /dev/null +++ b/docs/yaml/kubectl-kruise_create.yaml @@ -0,0 +1,147 @@ +name: kubectl-kruise create +synopsis: Create a resource from a file or from stdin. +description: |- + Create a resource from a file or from stdin. + + JSON and YAML formats are accepted. +usage: kubectl-kruise create -f FILENAME +options: + - name: allow-missing-template-keys + default_value: "true" + usage: | + If true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats. + - name: dry-run + default_value: none + usage: | + Must be "none", "server", or "client". If client strategy, only print the object that would be sent, without sending it. If server strategy, submit server-side request without persisting the resource. + - name: edit + default_value: "false" + usage: Edit the API resource before creating + - name: field-manager + default_value: kubectl-create + usage: Name of the manager used to track field ownership. + - name: filename + shorthand: f + default_value: '[]' + usage: | + Filename, directory, or URL to files to use to create the resource + - name: help + shorthand: h + default_value: "false" + usage: help for create + - name: kustomize + shorthand: k + usage: | + Process the kustomization directory. This flag can't be used together with -f or -R. + - name: output + shorthand: o + usage: | + Output format. One of: (json, yaml, name, go-template, go-template-file, template, templatefile, jsonpath, jsonpath-as-json, jsonpath-file). + - name: raw + usage: | + Raw URI to POST to the server. Uses the transport specified by the kubeconfig file. + - name: record + default_value: "false" + usage: | + Record current kubectl command in the resource annotation. If set to false, do not record the command. If set to true, record the command. If not set, default to updating the existing annotation value only if one already exists. + - name: recursive + shorthand: R + default_value: "false" + usage: | + Process the directory used in -f, --filename recursively. Useful when you want to manage related manifests organized within the same directory. + - name: save-config + default_value: "false" + usage: | + If true, the configuration of current object will be saved in its annotation. Otherwise, the annotation will be unchanged. This flag is useful when you want to perform kubectl apply on this object in the future. + - name: selector + shorthand: l + usage: | + Selector (label query) to filter on, supports '=', '==', and '!='.(e.g. -l key1=value1,key2=value2) + - name: show-managed-fields + default_value: "false" + usage: | + If true, keep the managedFields when printing objects in JSON or YAML format. + - name: template + usage: | + Template string or path to template file to use when -o=go-template, -o=go-template-file. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview]. + - name: validate + default_value: strict + usage: |- + Must be one of: strict (or true), warn, ignore (or false). + "true" or "strict" will use a schema to validate the input and fail the request if invalid. It will perform server side validation if ServerSideFieldValidation is enabled on the api-server, but will fall back to less reliable client-side validation if not. + "warn" will warn about unknown or duplicate fields without blocking the request if server-side field validation is enabled on the API server, and behave as "ignore" otherwise. + "false" or "ignore" will not perform any schema validation, silently dropping any unknown or duplicate fields. + - name: windows-line-endings + default_value: "false" + usage: | + Only relevant if --edit=true. Defaults to the line ending native to your platform. +inherited_options: + - name: as + usage: | + Username to impersonate for the operation. User could be a regular user or a service account in a namespace. + - name: as-group + default_value: '[]' + usage: | + Group to impersonate for the operation, this flag can be repeated to specify multiple groups. + - name: as-uid + usage: UID to impersonate for the operation. + - name: cache-dir + default_value: $HOME/.kube/cache + usage: Default cache directory + - name: certificate-authority + usage: Path to a cert file for the certificate authority + - name: client-certificate + usage: Path to a client certificate file for TLS + - name: client-key + usage: Path to a client key file for TLS + - name: cluster + usage: The name of the kubeconfig cluster to use + - name: context + usage: The name of the kubeconfig context to use + - name: insecure-skip-tls-verify + default_value: "false" + usage: | + If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure + - name: kubeconfig + usage: Path to the kubeconfig file to use for CLI requests. + - name: match-server-version + default_value: "false" + usage: Require server version to match client version + - name: namespace + shorthand: "n" + usage: If present, the namespace scope for this CLI request + - name: password + usage: Password for basic authentication to the API server + - name: profile + default_value: none + usage: | + Name of profile to capture. One of (none|cpu|heap|goroutine|threadcreate|block|mutex) + - name: profile-output + default_value: profile.pprof + usage: Name of the file to write the profile to + - name: request-timeout + default_value: "0" + usage: | + The length of time to wait before giving up on a single server request. Non-zero values should contain a corresponding time unit (e.g. 1s, 2m, 3h). A value of zero means don't timeout requests. + - name: server + shorthand: s + usage: The address and port of the Kubernetes API server + - name: tls-server-name + usage: | + Server name to use for server certificate validation. If it is not provided, the hostname used to contact the server is used + - name: token + usage: Bearer token for authentication to the API server + - name: user + usage: The name of the kubeconfig user to use + - name: username + usage: Username for basic authentication to the API server + - name: warnings-as-errors + default_value: "false" + usage: | + Treat warnings received from the server as errors and exit with a non-zero exit code +example: " # Create a pod using the data in pod.json.\n kubectl create -f ./pod.json\n \n # Create a pod based on the JSON passed into stdin.\n cat pod.json | kubectl create -f -\n \n # Edit the data in docker-registry.yaml in JSON then create the resource using the edited data.\n kubectl create -f docker-registry.yaml --edit -o json" +see_also: + - kubectl-kruise - kubectl-kruise controls the OpenKruise CRs + - kubectl-kruise create ContainerRecreateRequest - Create a crr with the specified name. + - kubectl-kruise create broadcastJob - Create a broadcastJob with the specified name. + - kubectl-kruise create job - Create a job with the specified name. diff --git a/docs/yaml/kubectl-kruise_create_ContainerRecreateRequest.yaml b/docs/yaml/kubectl-kruise_create_ContainerRecreateRequest.yaml new file mode 100644 index 0000000..0028b31 --- /dev/null +++ b/docs/yaml/kubectl-kruise_create_ContainerRecreateRequest.yaml @@ -0,0 +1,125 @@ +name: kubectl-kruise create ContainerRecreateRequest +synopsis: Create a crr with the specified name. +description: Create a crr with the specified name. +usage: kubectl-kruise create ContainerRecreateRequest NAME --pod=podName [--containers=container] +options: + - name: allow-missing-template-keys + default_value: "true" + usage: | + If true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats. + - name: containers + default_value: '[]' + usage: The containers those need to restarted. + - name: dry-run + default_value: none + usage: | + Must be "none", "server", or "client". If client strategy, only print the object that would be sent, without sending it. If server strategy, submit server-side request without persisting the resource. + - name: field-manager + default_value: kubectl kruise-create + usage: Name of the manager used to track field ownership. + - name: help + shorthand: h + default_value: "false" + usage: help for ContainerRecreateRequest + - name: minStartedSeconds + shorthand: m + default_value: "0" + usage: | + Minimum number of seconds for which a newly created container should be started and ready without any of its container crashing, for it to be considered Succeeded.Defaults to 0 (container will be considered Succeeded as soon as it is started and ready) + - name: output + shorthand: o + usage: | + Output format. One of: (json, yaml, name, go-template, go-template-file, template, templatefile, jsonpath, jsonpath-as-json, jsonpath-file). + - name: pod + shorthand: p + usage: The name of the pod). + - name: save-config + default_value: "false" + usage: | + If true, the configuration of current object will be saved in its annotation. Otherwise, the annotation will be unchanged. This flag is useful when you want to perform kubectl apply on this object in the future. + - name: show-managed-fields + default_value: "false" + usage: | + If true, keep the managedFields when printing objects in JSON or YAML format. + - name: template + usage: | + Template string or path to template file to use when -o=go-template, -o=go-template-file. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview]. + - name: unreadyGracePeriodSeconds + shorthand: u + default_value: "0" + usage: | + UnreadyGracePeriodSeconds is the optional duration in seconds to mark Pod as not ready over this duration before executing preStop hook and stopping the container + - name: validate + default_value: strict + usage: |- + Must be one of: strict (or true), warn, ignore (or false). + "true" or "strict" will use a schema to validate the input and fail the request if invalid. It will perform server side validation if ServerSideFieldValidation is enabled on the api-server, but will fall back to less reliable client-side validation if not. + "warn" will warn about unknown or duplicate fields without blocking the request if server-side field validation is enabled on the API server, and behave as "ignore" otherwise. + "false" or "ignore" will not perform any schema validation, silently dropping any unknown or duplicate fields. +inherited_options: + - name: as + usage: | + Username to impersonate for the operation. User could be a regular user or a service account in a namespace. + - name: as-group + default_value: '[]' + usage: | + Group to impersonate for the operation, this flag can be repeated to specify multiple groups. + - name: as-uid + usage: UID to impersonate for the operation. + - name: cache-dir + default_value: $HOME/.kube/cache + usage: Default cache directory + - name: certificate-authority + usage: Path to a cert file for the certificate authority + - name: client-certificate + usage: Path to a client certificate file for TLS + - name: client-key + usage: Path to a client key file for TLS + - name: cluster + usage: The name of the kubeconfig cluster to use + - name: context + usage: The name of the kubeconfig context to use + - name: insecure-skip-tls-verify + default_value: "false" + usage: | + If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure + - name: kubeconfig + usage: Path to the kubeconfig file to use for CLI requests. + - name: match-server-version + default_value: "false" + usage: Require server version to match client version + - name: namespace + shorthand: "n" + usage: If present, the namespace scope for this CLI request + - name: password + usage: Password for basic authentication to the API server + - name: profile + default_value: none + usage: | + Name of profile to capture. One of (none|cpu|heap|goroutine|threadcreate|block|mutex) + - name: profile-output + default_value: profile.pprof + usage: Name of the file to write the profile to + - name: request-timeout + default_value: "0" + usage: | + The length of time to wait before giving up on a single server request. Non-zero values should contain a corresponding time unit (e.g. 1s, 2m, 3h). A value of zero means don't timeout requests. + - name: server + shorthand: s + usage: The address and port of the Kubernetes API server + - name: tls-server-name + usage: | + Server name to use for server certificate validation. If it is not provided, the hostname used to contact the server is used + - name: token + usage: Bearer token for authentication to the API server + - name: user + usage: The name of the kubeconfig user to use + - name: username + usage: Username for basic authentication to the API server + - name: warnings-as-errors + default_value: "false" + usage: | + Treat warnings received from the server as errors and exit with a non-zero exit code +example: " NOTE: The default value of CRR is:\n strategy:\n failurePolicy: Fail\n orderedRecreate: false\n unreadyGracePeriodSeconds: 3\n activeDeadlineSeconds: 300\n ttlSecondsAfterFinished: 1800\n # Create a crr with default value to restart all containers in pod-1\n kubectl kruise create ContainerRecreateRequest my-crr --namespace=ns --pod=pod-1\n \n # Create a crr with default value to restart container-1 in pod-1\n kubectl kruise create ContainerRecreateRequest my-crr --namespace=ns --pod=pod-1 --containers=container-1\n \n # Create a crr with unreadyGracePeriodSeconds 5 and terminationGracePeriodSeconds 30 to restart container-1 in pod-1\n kubectl kruise create ContainerRecreateRequest my-crr --namespace=ns --pod=pod-1 --containers=container-1 --unreadyGracePeriodSeconds=5 --terminationGracePeriodSeconds=30" +see_also: + - kubectl-kruise create - Create a resource from a file or from stdin. diff --git a/docs/yaml/kubectl-kruise_create_broadcastJob.yaml b/docs/yaml/kubectl-kruise_create_broadcastJob.yaml new file mode 100644 index 0000000..1f8bd46 --- /dev/null +++ b/docs/yaml/kubectl-kruise_create_broadcastJob.yaml @@ -0,0 +1,114 @@ +name: kubectl-kruise create broadcastJob +synopsis: Create a broadcastJob with the specified name. +description: Create a broadcastJob with the specified name. +usage: kubectl-kruise create broadcastJob NAME --image=image [--from=cronjob/name] -- [COMMAND] [args...] +options: + - name: allow-missing-template-keys + default_value: "true" + usage: | + If true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats. + - name: dry-run + default_value: none + usage: | + Must be "none", "server", or "client". If client strategy, only print the object that would be sent, without sending it. If server strategy, submit server-side request without persisting the resource. + - name: field-manager + default_value: kubectl kruise-create + usage: Name of the manager used to track field ownership. + - name: from + usage: | + The name of the resource to create a BroadcastJob from (only advancedCronjob is supported). + - name: help + shorthand: h + default_value: "false" + usage: help for broadcastJob + - name: image + usage: Image name to run. + - name: output + shorthand: o + usage: | + Output format. One of: (json, yaml, name, go-template, go-template-file, template, templatefile, jsonpath, jsonpath-as-json, jsonpath-file). + - name: save-config + default_value: "false" + usage: | + If true, the configuration of current object will be saved in its annotation. Otherwise, the annotation will be unchanged. This flag is useful when you want to perform kubectl apply on this object in the future. + - name: show-managed-fields + default_value: "false" + usage: | + If true, keep the managedFields when printing objects in JSON or YAML format. + - name: template + usage: | + Template string or path to template file to use when -o=go-template, -o=go-template-file. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview]. + - name: validate + default_value: strict + usage: |- + Must be one of: strict (or true), warn, ignore (or false). + "true" or "strict" will use a schema to validate the input and fail the request if invalid. It will perform server side validation if ServerSideFieldValidation is enabled on the api-server, but will fall back to less reliable client-side validation if not. + "warn" will warn about unknown or duplicate fields without blocking the request if server-side field validation is enabled on the API server, and behave as "ignore" otherwise. + "false" or "ignore" will not perform any schema validation, silently dropping any unknown or duplicate fields. +inherited_options: + - name: as + usage: | + Username to impersonate for the operation. User could be a regular user or a service account in a namespace. + - name: as-group + default_value: '[]' + usage: | + Group to impersonate for the operation, this flag can be repeated to specify multiple groups. + - name: as-uid + usage: UID to impersonate for the operation. + - name: cache-dir + default_value: $HOME/.kube/cache + usage: Default cache directory + - name: certificate-authority + usage: Path to a cert file for the certificate authority + - name: client-certificate + usage: Path to a client certificate file for TLS + - name: client-key + usage: Path to a client key file for TLS + - name: cluster + usage: The name of the kubeconfig cluster to use + - name: context + usage: The name of the kubeconfig context to use + - name: insecure-skip-tls-verify + default_value: "false" + usage: | + If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure + - name: kubeconfig + usage: Path to the kubeconfig file to use for CLI requests. + - name: match-server-version + default_value: "false" + usage: Require server version to match client version + - name: namespace + shorthand: "n" + usage: If present, the namespace scope for this CLI request + - name: password + usage: Password for basic authentication to the API server + - name: profile + default_value: none + usage: | + Name of profile to capture. One of (none|cpu|heap|goroutine|threadcreate|block|mutex) + - name: profile-output + default_value: profile.pprof + usage: Name of the file to write the profile to + - name: request-timeout + default_value: "0" + usage: | + The length of time to wait before giving up on a single server request. Non-zero values should contain a corresponding time unit (e.g. 1s, 2m, 3h). A value of zero means don't timeout requests. + - name: server + shorthand: s + usage: The address and port of the Kubernetes API server + - name: tls-server-name + usage: | + Server name to use for server certificate validation. If it is not provided, the hostname used to contact the server is used + - name: token + usage: Bearer token for authentication to the API server + - name: user + usage: The name of the kubeconfig user to use + - name: username + usage: Username for basic authentication to the API server + - name: warnings-as-errors + default_value: "false" + usage: | + Treat warnings received from the server as errors and exit with a non-zero exit code +example: " # Create a broadcastJob\n kubectl kruise create broadcastJob my-bcj --image=busybox\n \n # Create a broadcastJob with command\n kubectl kruise create broadcastJob my-bcj --image=busybox -- date\n \n # Create a broadcastJob from a AdvancedCronJob named \"a-advancedCronjob\"\n kubectl kruise create broadcastJob test-bcj --from=acj/a-advancedCronjob" +see_also: + - kubectl-kruise create - Create a resource from a file or from stdin. diff --git a/docs/yaml/kubectl-kruise_create_job.yaml b/docs/yaml/kubectl-kruise_create_job.yaml new file mode 100644 index 0000000..baa0a91 --- /dev/null +++ b/docs/yaml/kubectl-kruise_create_job.yaml @@ -0,0 +1,114 @@ +name: kubectl-kruise create job +synopsis: Create a job with the specified name. +description: Create a job with the specified name. +usage: kubectl-kruise create job NAME --image=image [--from=cronjob/name] -- [COMMAND] [args...] +options: + - name: allow-missing-template-keys + default_value: "true" + usage: | + If true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats. + - name: dry-run + default_value: none + usage: | + Must be "none", "server", or "client". If client strategy, only print the object that would be sent, without sending it. If server strategy, submit server-side request without persisting the resource. + - name: field-manager + default_value: kubectl kruise-create + usage: Name of the manager used to track field ownership. + - name: from + usage: | + The name of the resource to create a Job from (cronjob and advancedCronjob are supported). + - name: help + shorthand: h + default_value: "false" + usage: help for job + - name: image + usage: Image name to run. + - name: output + shorthand: o + usage: | + Output format. One of: (json, yaml, name, go-template, go-template-file, template, templatefile, jsonpath, jsonpath-as-json, jsonpath-file). + - name: save-config + default_value: "false" + usage: | + If true, the configuration of current object will be saved in its annotation. Otherwise, the annotation will be unchanged. This flag is useful when you want to perform kubectl apply on this object in the future. + - name: show-managed-fields + default_value: "false" + usage: | + If true, keep the managedFields when printing objects in JSON or YAML format. + - name: template + usage: | + Template string or path to template file to use when -o=go-template, -o=go-template-file. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview]. + - name: validate + default_value: strict + usage: |- + Must be one of: strict (or true), warn, ignore (or false). + "true" or "strict" will use a schema to validate the input and fail the request if invalid. It will perform server side validation if ServerSideFieldValidation is enabled on the api-server, but will fall back to less reliable client-side validation if not. + "warn" will warn about unknown or duplicate fields without blocking the request if server-side field validation is enabled on the API server, and behave as "ignore" otherwise. + "false" or "ignore" will not perform any schema validation, silently dropping any unknown or duplicate fields. +inherited_options: + - name: as + usage: | + Username to impersonate for the operation. User could be a regular user or a service account in a namespace. + - name: as-group + default_value: '[]' + usage: | + Group to impersonate for the operation, this flag can be repeated to specify multiple groups. + - name: as-uid + usage: UID to impersonate for the operation. + - name: cache-dir + default_value: $HOME/.kube/cache + usage: Default cache directory + - name: certificate-authority + usage: Path to a cert file for the certificate authority + - name: client-certificate + usage: Path to a client certificate file for TLS + - name: client-key + usage: Path to a client key file for TLS + - name: cluster + usage: The name of the kubeconfig cluster to use + - name: context + usage: The name of the kubeconfig context to use + - name: insecure-skip-tls-verify + default_value: "false" + usage: | + If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure + - name: kubeconfig + usage: Path to the kubeconfig file to use for CLI requests. + - name: match-server-version + default_value: "false" + usage: Require server version to match client version + - name: namespace + shorthand: "n" + usage: If present, the namespace scope for this CLI request + - name: password + usage: Password for basic authentication to the API server + - name: profile + default_value: none + usage: | + Name of profile to capture. One of (none|cpu|heap|goroutine|threadcreate|block|mutex) + - name: profile-output + default_value: profile.pprof + usage: Name of the file to write the profile to + - name: request-timeout + default_value: "0" + usage: | + The length of time to wait before giving up on a single server request. Non-zero values should contain a corresponding time unit (e.g. 1s, 2m, 3h). A value of zero means don't timeout requests. + - name: server + shorthand: s + usage: The address and port of the Kubernetes API server + - name: tls-server-name + usage: | + Server name to use for server certificate validation. If it is not provided, the hostname used to contact the server is used + - name: token + usage: Bearer token for authentication to the API server + - name: user + usage: The name of the kubeconfig user to use + - name: username + usage: Username for basic authentication to the API server + - name: warnings-as-errors + default_value: "false" + usage: | + Treat warnings received from the server as errors and exit with a non-zero exit code +example: " # Create a job\n kubectl kruise create job my-job --image=busybox\n \n # Create a job with command\n kubectl kruise create job my-job --image=busybox -- date\n \n # Create a job from a AdvancedCronJob named \"a-advancedCronjob\"\n kubectl kruise create job test-job --from=acj/a-advancedCronjob" +see_also: + - kubectl-kruise create - Create a resource from a file or from stdin. diff --git a/docs/yaml/kubectl-kruise_expose.yaml b/docs/yaml/kubectl-kruise_expose.yaml new file mode 100644 index 0000000..a21c9e6 --- /dev/null +++ b/docs/yaml/kubectl-kruise_expose.yaml @@ -0,0 +1,169 @@ +name: kubectl-kruise expose +synopsis: | + Take a workload(e.g. deployment, cloneset), service or pod and expose it as a new Kubernetes Service +description: |- + Expose a resource as a new Kubernetes service. + + Looks up a deployment, service, replica set, replication controller or pod by name and uses the selector for that resource as the selector for a new service on the specified port. A deployment or replica set will be exposed as a service only if its selector is convertible to a selector that service supports, i.e. when the selector contains only the matchLabels component. Note that if no port is specified via --port and the exposed resource has multiple ports, all will be re-used by the new service. Also if no labels are specified, the new service will re-use the labels from the resource it exposes. + + Possible resources include (case insensitive): + + pod (po), service (svc), replicationcontroller (rc), cloneset (clone), deployment (deploy), replicaset (rs) +usage: kubectl-kruise expose (-f FILENAME | TYPE NAME) [--port=port] [--protocol=TCP|UDP|SCTP] [--target-port=number-or-name] [--name=name] [--external-ip=external-ip-of-service] [--type=type] +options: + - name: allow-missing-template-keys + default_value: "true" + usage: | + If true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats. + - name: cluster-ip + usage: | + ClusterIP to be assigned to the service. Leave empty to auto-allocate, or set to 'None' to create a headless service. + - name: container-port + usage: Synonym for --target-port + - name: dry-run + default_value: none + usage: | + Must be "none", "server", or "client". If client strategy, only print the object that would be sent, without sending it. If server strategy, submit server-side request without persisting the resource. + - name: external-ip + usage: | + Additional external IP address (not managed by Kubernetes) to accept for the service. If this IP is routed to a node, the service can be accessed by this IP in addition to its generated service IP. + - name: field-manager + default_value: kubectl-expose + usage: Name of the manager used to track field ownership. + - name: filename + shorthand: f + default_value: '[]' + usage: | + Filename, directory, or URL to files identifying the resource to expose a service + - name: generator + default_value: service/v2 + usage: | + The name of the API generator to use. There are 2 generators: 'service/v1' and 'service/v2'. The only difference between them is that service port in v1 is named 'default', while it is left unnamed in v2. Default is 'service/v2'. + - name: help + shorthand: h + default_value: "false" + usage: help for expose + - name: kustomize + shorthand: k + usage: | + Process the kustomization directory. This flag can't be used together with -f or -R. + - name: labels + shorthand: l + usage: Labels to apply to the service created by this call. + - name: load-balancer-ip + usage: | + IP to assign to the LoadBalancer. If empty, an ephemeral IP will be created and used (cloud-provider specific). + - name: name + usage: The name for the newly created object. + - name: output + shorthand: o + usage: | + Output format. One of: (json, yaml, name, go-template, go-template-file, template, templatefile, jsonpath, jsonpath-as-json, jsonpath-file). + - name: overrides + usage: | + An inline JSON override for the generated object. If this is non-empty, it is used to override the generated object. Requires that the object supply a valid apiVersion field. + - name: port + usage: | + The port that the service should serve on. Copied from the resource being exposed, if unspecified + - name: protocol + usage: | + The network protocol for the service to be created. Default is 'TCP'. + - name: record + default_value: "false" + usage: | + Record current kubectl command in the resource annotation. If set to false, do not record the command. If set to true, record the command. If not set, default to updating the existing annotation value only if one already exists. + - name: recursive + shorthand: R + default_value: "false" + usage: | + Process the directory used in -f, --filename recursively. Useful when you want to manage related manifests organized within the same directory. + - name: save-config + default_value: "false" + usage: | + If true, the configuration of current object will be saved in its annotation. Otherwise, the annotation will be unchanged. This flag is useful when you want to perform kubectl apply on this object in the future. + - name: selector + usage: | + A label selector to use for this service. Only equality-based selector requirements are supported. If empty (the default) infer the selector from the replication controller or replica set.) + - name: session-affinity + usage: | + If non-empty, set the session affinity for the service to this; legal values: 'None', 'ClientIP' + - name: show-managed-fields + default_value: "false" + usage: | + If true, keep the managedFields when printing objects in JSON or YAML format. + - name: target-port + usage: | + Name or number for the port on the container that the service should direct traffic to. Optional. + - name: template + usage: | + Template string or path to template file to use when -o=go-template, -o=go-template-file. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview]. + - name: type + usage: | + Type for this service: ClusterIP, NodePort, LoadBalancer, or ExternalName. Default is 'ClusterIP'. +inherited_options: + - name: as + usage: | + Username to impersonate for the operation. User could be a regular user or a service account in a namespace. + - name: as-group + default_value: '[]' + usage: | + Group to impersonate for the operation, this flag can be repeated to specify multiple groups. + - name: as-uid + usage: UID to impersonate for the operation. + - name: cache-dir + default_value: $HOME/.kube/cache + usage: Default cache directory + - name: certificate-authority + usage: Path to a cert file for the certificate authority + - name: client-certificate + usage: Path to a client certificate file for TLS + - name: client-key + usage: Path to a client key file for TLS + - name: cluster + usage: The name of the kubeconfig cluster to use + - name: context + usage: The name of the kubeconfig context to use + - name: insecure-skip-tls-verify + default_value: "false" + usage: | + If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure + - name: kubeconfig + usage: Path to the kubeconfig file to use for CLI requests. + - name: match-server-version + default_value: "false" + usage: Require server version to match client version + - name: namespace + shorthand: "n" + usage: If present, the namespace scope for this CLI request + - name: password + usage: Password for basic authentication to the API server + - name: profile + default_value: none + usage: | + Name of profile to capture. One of (none|cpu|heap|goroutine|threadcreate|block|mutex) + - name: profile-output + default_value: profile.pprof + usage: Name of the file to write the profile to + - name: request-timeout + default_value: "0" + usage: | + The length of time to wait before giving up on a single server request. Non-zero values should contain a corresponding time unit (e.g. 1s, 2m, 3h). A value of zero means don't timeout requests. + - name: server + shorthand: s + usage: The address and port of the Kubernetes API server + - name: tls-server-name + usage: | + Server name to use for server certificate validation. If it is not provided, the hostname used to contact the server is used + - name: token + usage: Bearer token for authentication to the API server + - name: user + usage: The name of the kubeconfig user to use + - name: username + usage: Username for basic authentication to the API server + - name: warnings-as-errors + default_value: "false" + usage: | + Treat warnings received from the server as errors and exit with a non-zero exit code +example: " # Create a service for an nginx cloneset, which serves on port 80 and connects to the containers on port 8000.\n kubectl kruise expose cloneset nginx --port=80 --target-port=8000\n \n # Create a service for a replicated nginx, which serves on port 80 and connects to the containers on port 8000.\n kubectl expose rc nginx --port=80 --target-port=8000\n \n # Create a service for a replication controller identified by type and name specified in \"nginx-controller.yaml\", which serves on port 80 and connects to the containers on port 8000.\n kubectl expose -f nginx-controller.yaml --port=80 --target-port=8000\n \n # Create a service for a pod valid-pod, which serves on port 444 with the name \"frontend\"\n kubectl expose pod valid-pod --port=444 --name=frontend\n \n # Create a second service based on the above service, exposing the container port 8443 as port 443 with the name \"nginx-https\"\n kubectl expose service nginx --port=443 --target-port=8443 --name=nginx-https\n \n # Create a service for a replicated streaming application on port 4100 balancing UDP traffic and named 'video-stream'.\n kubectl expose rc streamer --port=4100 --protocol=UDP --name=video-stream\n \n # Create a service for a replicated nginx using replica set, which serves on port 80 and connects to the containers on port 8000.\n kubectl expose rs nginx --port=80 --target-port=8000\n \n # Create a service for an nginx deployment, which serves on port 80 and connects to the containers on port 8000.\n kubectl expose deployment nginx --port=80 --target-port=8000" +see_also: + - kubectl-kruise - kubectl-kruise controls the OpenKruise CRs diff --git a/docs/yaml/kubectl-kruise_migrate.yaml b/docs/yaml/kubectl-kruise_migrate.yaml new file mode 100644 index 0000000..cb547ca --- /dev/null +++ b/docs/yaml/kubectl-kruise_migrate.yaml @@ -0,0 +1,106 @@ +name: kubectl-kruise migrate +synopsis: Migrate from K8s original workloads to Kruise workloads +description: Migrate from K8s original workloads to Kruise workloads +usage: kubectl-kruise migrate [DST_KIND] --from [SRC_KIND] [flags] +options: + - name: copy + default_value: "false" + usage: Copy replicas from src workload when create. + - name: create + default_value: "false" + usage: Create dst workload with replicas=0 from src workload. + - name: dst-name + usage: Name of the destination workload. + - name: from + usage: Type of the source workload (e.g. Deployment). + - name: help + shorthand: h + default_value: "false" + usage: help for migrate + - name: max-surge + default_value: "1" + usage: Max surge during migration. + - name: replicas + default_value: "-1" + usage: | + The replicas needs to migrate, -1 indicates all replicas in src workload. + - name: src-name + usage: Name of the source workload. + - name: timeout-seconds + default_value: "-1" + usage: Timeout seconds for migration, -1 indicates no limited. +inherited_options: + - name: as + usage: | + Username to impersonate for the operation. User could be a regular user or a service account in a namespace. + - name: as-group + default_value: '[]' + usage: | + Group to impersonate for the operation, this flag can be repeated to specify multiple groups. + - name: as-uid + usage: UID to impersonate for the operation. + - name: cache-dir + default_value: $HOME/.kube/cache + usage: Default cache directory + - name: certificate-authority + usage: Path to a cert file for the certificate authority + - name: client-certificate + usage: Path to a client certificate file for TLS + - name: client-key + usage: Path to a client key file for TLS + - name: cluster + usage: The name of the kubeconfig cluster to use + - name: context + usage: The name of the kubeconfig context to use + - name: insecure-skip-tls-verify + default_value: "false" + usage: | + If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure + - name: kubeconfig + usage: Path to the kubeconfig file to use for CLI requests. + - name: match-server-version + default_value: "false" + usage: Require server version to match client version + - name: namespace + shorthand: "n" + usage: If present, the namespace scope for this CLI request + - name: password + usage: Password for basic authentication to the API server + - name: profile + default_value: none + usage: | + Name of profile to capture. One of (none|cpu|heap|goroutine|threadcreate|block|mutex) + - name: profile-output + default_value: profile.pprof + usage: Name of the file to write the profile to + - name: request-timeout + default_value: "0" + usage: | + The length of time to wait before giving up on a single server request. Non-zero values should contain a corresponding time unit (e.g. 1s, 2m, 3h). A value of zero means don't timeout requests. + - name: server + shorthand: s + usage: The address and port of the Kubernetes API server + - name: tls-server-name + usage: | + Server name to use for server certificate validation. If it is not provided, the hostname used to contact the server is used + - name: token + usage: Bearer token for authentication to the API server + - name: user + usage: The name of the kubeconfig user to use + - name: username + usage: Username for basic authentication to the API server + - name: warnings-as-errors + default_value: "false" + usage: | + Treat warnings received from the server as errors and exit with a non-zero exit code +example: |4 + # Create an empty CloneSet from an existing Deployment. + kubectl-kruise migrate CloneSet --from Deployment -n default --dst-name deployment-name --create + + # Create a same replicas CloneSet from an existing Deployment. + kubectl-kruise migrate CloneSet --from Deployment -n default --dst-name deployment-name --create --copy + + # Migrate replicas from an existing Deployment to an existing CloneSet. + kubectl-kruise migrate CloneSet --from Deployment -n default --src-name cloneset-name --dst-name deployment-name --replicas 10 --max-surge=2 +see_also: + - kubectl-kruise - kubectl-kruise controls the OpenKruise CRs diff --git a/docs/yaml/kubectl-kruise_rollout.yaml b/docs/yaml/kubectl-kruise_rollout.yaml new file mode 100644 index 0000000..139dac0 --- /dev/null +++ b/docs/yaml/kubectl-kruise_rollout.yaml @@ -0,0 +1,83 @@ +name: kubectl-kruise rollout +synopsis: Manage the rollout of a resource +description: "Manage the rollout of a resource.\n \n Valid resource types include:\n\n * deployments\n * daemonsets\n * statefulsets\n * clonesets\n * statefulsets.apps.kruise.io\n * daemonsets.apps.kruise.io\n * rollouts.rollouts.kruise.io" +usage: kubectl-kruise rollout SUBCOMMAND +options: + - name: help + shorthand: h + default_value: "false" + usage: help for rollout +inherited_options: + - name: as + usage: | + Username to impersonate for the operation. User could be a regular user or a service account in a namespace. + - name: as-group + default_value: '[]' + usage: | + Group to impersonate for the operation, this flag can be repeated to specify multiple groups. + - name: as-uid + usage: UID to impersonate for the operation. + - name: cache-dir + default_value: $HOME/.kube/cache + usage: Default cache directory + - name: certificate-authority + usage: Path to a cert file for the certificate authority + - name: client-certificate + usage: Path to a client certificate file for TLS + - name: client-key + usage: Path to a client key file for TLS + - name: cluster + usage: The name of the kubeconfig cluster to use + - name: context + usage: The name of the kubeconfig context to use + - name: insecure-skip-tls-verify + default_value: "false" + usage: | + If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure + - name: kubeconfig + usage: Path to the kubeconfig file to use for CLI requests. + - name: match-server-version + default_value: "false" + usage: Require server version to match client version + - name: namespace + shorthand: "n" + usage: If present, the namespace scope for this CLI request + - name: password + usage: Password for basic authentication to the API server + - name: profile + default_value: none + usage: | + Name of profile to capture. One of (none|cpu|heap|goroutine|threadcreate|block|mutex) + - name: profile-output + default_value: profile.pprof + usage: Name of the file to write the profile to + - name: request-timeout + default_value: "0" + usage: | + The length of time to wait before giving up on a single server request. Non-zero values should contain a corresponding time unit (e.g. 1s, 2m, 3h). A value of zero means don't timeout requests. + - name: server + shorthand: s + usage: The address and port of the Kubernetes API server + - name: tls-server-name + usage: | + Server name to use for server certificate validation. If it is not provided, the hostname used to contact the server is used + - name: token + usage: Bearer token for authentication to the API server + - name: user + usage: The name of the kubeconfig user to use + - name: username + usage: Username for basic authentication to the API server + - name: warnings-as-errors + default_value: "false" + usage: | + Treat warnings received from the server as errors and exit with a non-zero exit code +example: " # Rollback to the previous cloneset\n kubectl-kruise rollout undo cloneset/abc\n \n # Check the rollout status of a daemonset\n kubectl-kruise rollout status daemonset/foo" +see_also: + - kubectl-kruise - kubectl-kruise controls the OpenKruise CRs + - kubectl-kruise rollout approve - Approve a resource + - kubectl-kruise rollout history - View rollout history + - kubectl-kruise rollout pause - Mark the provided resource as paused + - kubectl-kruise rollout restart - Restart a resource + - kubectl-kruise rollout resume - Resume a paused resource + - kubectl-kruise rollout status - Show the status of the rollout + - kubectl-kruise rollout undo - Undo a previous rollout diff --git a/docs/yaml/kubectl-kruise_rollout_approve.yaml b/docs/yaml/kubectl-kruise_rollout_approve.yaml new file mode 100644 index 0000000..b17cdd0 --- /dev/null +++ b/docs/yaml/kubectl-kruise_rollout_approve.yaml @@ -0,0 +1,108 @@ +name: kubectl-kruise rollout approve +synopsis: Approve a resource +description: |- + Approve a resource which can be continued. + + Paused resources will not be reconciled by a controller. By approving a resource, we allow it to be continue to rollout. Currently only kruise-rollouts support being approved. +usage: kubectl-kruise rollout approve RESOURCE +options: + - name: allow-missing-template-keys + default_value: "true" + usage: | + If true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats. + - name: filename + shorthand: f + default_value: '[]' + usage: | + Filename, directory, or URL to files identifying the resource to get from a server. + - name: help + shorthand: h + default_value: "false" + usage: help for approve + - name: kustomize + shorthand: k + usage: | + Process the kustomization directory. This flag can't be used together with -f or -R. + - name: output + shorthand: o + usage: | + Output format. One of: (json, yaml, name, go-template, go-template-file, template, templatefile, jsonpath, jsonpath-as-json, jsonpath-file). + - name: recursive + shorthand: R + default_value: "false" + usage: | + Process the directory used in -f, --filename recursively. Useful when you want to manage related manifests organized within the same directory. + - name: show-managed-fields + default_value: "false" + usage: | + If true, keep the managedFields when printing objects in JSON or YAML format. + - name: template + usage: | + Template string or path to template file to use when -o=go-template, -o=go-template-file. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview]. +inherited_options: + - name: as + usage: | + Username to impersonate for the operation. User could be a regular user or a service account in a namespace. + - name: as-group + default_value: '[]' + usage: | + Group to impersonate for the operation, this flag can be repeated to specify multiple groups. + - name: as-uid + usage: UID to impersonate for the operation. + - name: cache-dir + default_value: $HOME/.kube/cache + usage: Default cache directory + - name: certificate-authority + usage: Path to a cert file for the certificate authority + - name: client-certificate + usage: Path to a client certificate file for TLS + - name: client-key + usage: Path to a client key file for TLS + - name: cluster + usage: The name of the kubeconfig cluster to use + - name: context + usage: The name of the kubeconfig context to use + - name: insecure-skip-tls-verify + default_value: "false" + usage: | + If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure + - name: kubeconfig + usage: Path to the kubeconfig file to use for CLI requests. + - name: match-server-version + default_value: "false" + usage: Require server version to match client version + - name: namespace + shorthand: "n" + usage: If present, the namespace scope for this CLI request + - name: password + usage: Password for basic authentication to the API server + - name: profile + default_value: none + usage: | + Name of profile to capture. One of (none|cpu|heap|goroutine|threadcreate|block|mutex) + - name: profile-output + default_value: profile.pprof + usage: Name of the file to write the profile to + - name: request-timeout + default_value: "0" + usage: | + The length of time to wait before giving up on a single server request. Non-zero values should contain a corresponding time unit (e.g. 1s, 2m, 3h). A value of zero means don't timeout requests. + - name: server + shorthand: s + usage: The address and port of the Kubernetes API server + - name: tls-server-name + usage: | + Server name to use for server certificate validation. If it is not provided, the hostname used to contact the server is used + - name: token + usage: Bearer token for authentication to the API server + - name: user + usage: The name of the kubeconfig user to use + - name: username + usage: Username for basic authentication to the API server + - name: warnings-as-errors + default_value: "false" + usage: | + Treat warnings received from the server as errors and exit with a non-zero exit code +example: " # approve a kruise rollout resource named \"rollout-demo\" in \"ns-demo\" namespace\n \n kubectl-kruise rollout approve rollout-demo -n ns-demo" +see_also: + - kubectl-kruise rollout - Manage the rollout of a resource diff --git a/docs/yaml/kubectl-kruise_rollout_history.yaml b/docs/yaml/kubectl-kruise_rollout_history.yaml new file mode 100644 index 0000000..8dfaf3d --- /dev/null +++ b/docs/yaml/kubectl-kruise_rollout_history.yaml @@ -0,0 +1,109 @@ +name: kubectl-kruise rollout history +synopsis: View rollout history +description: View previous rollout revisions and configurations. +usage: kubectl-kruise rollout history (TYPE NAME | TYPE/NAME) [flags] +options: + - name: allow-missing-template-keys + default_value: "true" + usage: | + If true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats. + - name: filename + shorthand: f + default_value: '[]' + usage: | + Filename, directory, or URL to files identifying the resource to get from a server. + - name: help + shorthand: h + default_value: "false" + usage: help for history + - name: kustomize + shorthand: k + usage: | + Process the kustomization directory. This flag can't be used together with -f or -R. + - name: output + shorthand: o + usage: | + Output format. One of: (json, yaml, name, go-template, go-template-file, template, templatefile, jsonpath, jsonpath-as-json, jsonpath-file). + - name: recursive + shorthand: R + default_value: "false" + usage: | + Process the directory used in -f, --filename recursively. Useful when you want to manage related manifests organized within the same directory. + - name: revision + default_value: "0" + usage: | + See the details, including podTemplate of the revision specified + - name: show-managed-fields + default_value: "false" + usage: | + If true, keep the managedFields when printing objects in JSON or YAML format. + - name: template + usage: | + Template string or path to template file to use when -o=go-template, -o=go-template-file. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview]. +inherited_options: + - name: as + usage: | + Username to impersonate for the operation. User could be a regular user or a service account in a namespace. + - name: as-group + default_value: '[]' + usage: | + Group to impersonate for the operation, this flag can be repeated to specify multiple groups. + - name: as-uid + usage: UID to impersonate for the operation. + - name: cache-dir + default_value: $HOME/.kube/cache + usage: Default cache directory + - name: certificate-authority + usage: Path to a cert file for the certificate authority + - name: client-certificate + usage: Path to a client certificate file for TLS + - name: client-key + usage: Path to a client key file for TLS + - name: cluster + usage: The name of the kubeconfig cluster to use + - name: context + usage: The name of the kubeconfig context to use + - name: insecure-skip-tls-verify + default_value: "false" + usage: | + If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure + - name: kubeconfig + usage: Path to the kubeconfig file to use for CLI requests. + - name: match-server-version + default_value: "false" + usage: Require server version to match client version + - name: namespace + shorthand: "n" + usage: If present, the namespace scope for this CLI request + - name: password + usage: Password for basic authentication to the API server + - name: profile + default_value: none + usage: | + Name of profile to capture. One of (none|cpu|heap|goroutine|threadcreate|block|mutex) + - name: profile-output + default_value: profile.pprof + usage: Name of the file to write the profile to + - name: request-timeout + default_value: "0" + usage: | + The length of time to wait before giving up on a single server request. Non-zero values should contain a corresponding time unit (e.g. 1s, 2m, 3h). A value of zero means don't timeout requests. + - name: server + shorthand: s + usage: The address and port of the Kubernetes API server + - name: tls-server-name + usage: | + Server name to use for server certificate validation. If it is not provided, the hostname used to contact the server is used + - name: token + usage: Bearer token for authentication to the API server + - name: user + usage: The name of the kubeconfig user to use + - name: username + usage: Username for basic authentication to the API server + - name: warnings-as-errors + default_value: "false" + usage: | + Treat warnings received from the server as errors and exit with a non-zero exit code +example: " # View the rollout history of a cloneset\n kubectl-kruise rollout history cloneset/abc\n \n # View the rollout history of a advanced statefulset\n kubectl-kruise rollout history asts/abc\n \n # View the details of daemonset revision 3\n kubectl-kruise rollout history daemonset/abc --revision=3" +see_also: + - kubectl-kruise rollout - Manage the rollout of a resource diff --git a/docs/yaml/kubectl-kruise_rollout_pause.yaml b/docs/yaml/kubectl-kruise_rollout_pause.yaml new file mode 100644 index 0000000..24f6c9d --- /dev/null +++ b/docs/yaml/kubectl-kruise_rollout_pause.yaml @@ -0,0 +1,108 @@ +name: kubectl-kruise rollout pause +synopsis: Mark the provided resource as paused +description: |- + Mark the provided resource as paused + + Paused resources will not be reconciled by a controller. Use "kubectl rollout resume" to resume a paused resource. Currently deployments, clonesets, rollouts support being paused. +usage: kubectl-kruise rollout pause RESOURCE +options: + - name: allow-missing-template-keys + default_value: "true" + usage: | + If true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats. + - name: filename + shorthand: f + default_value: '[]' + usage: | + Filename, directory, or URL to files identifying the resource to get from a server. + - name: help + shorthand: h + default_value: "false" + usage: help for pause + - name: kustomize + shorthand: k + usage: | + Process the kustomization directory. This flag can't be used together with -f or -R. + - name: output + shorthand: o + usage: | + Output format. One of: (json, yaml, name, go-template, go-template-file, template, templatefile, jsonpath, jsonpath-as-json, jsonpath-file). + - name: recursive + shorthand: R + default_value: "false" + usage: | + Process the directory used in -f, --filename recursively. Useful when you want to manage related manifests organized within the same directory. + - name: show-managed-fields + default_value: "false" + usage: | + If true, keep the managedFields when printing objects in JSON or YAML format. + - name: template + usage: | + Template string or path to template file to use when -o=go-template, -o=go-template-file. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview]. +inherited_options: + - name: as + usage: | + Username to impersonate for the operation. User could be a regular user or a service account in a namespace. + - name: as-group + default_value: '[]' + usage: | + Group to impersonate for the operation, this flag can be repeated to specify multiple groups. + - name: as-uid + usage: UID to impersonate for the operation. + - name: cache-dir + default_value: $HOME/.kube/cache + usage: Default cache directory + - name: certificate-authority + usage: Path to a cert file for the certificate authority + - name: client-certificate + usage: Path to a client certificate file for TLS + - name: client-key + usage: Path to a client key file for TLS + - name: cluster + usage: The name of the kubeconfig cluster to use + - name: context + usage: The name of the kubeconfig context to use + - name: insecure-skip-tls-verify + default_value: "false" + usage: | + If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure + - name: kubeconfig + usage: Path to the kubeconfig file to use for CLI requests. + - name: match-server-version + default_value: "false" + usage: Require server version to match client version + - name: namespace + shorthand: "n" + usage: If present, the namespace scope for this CLI request + - name: password + usage: Password for basic authentication to the API server + - name: profile + default_value: none + usage: | + Name of profile to capture. One of (none|cpu|heap|goroutine|threadcreate|block|mutex) + - name: profile-output + default_value: profile.pprof + usage: Name of the file to write the profile to + - name: request-timeout + default_value: "0" + usage: | + The length of time to wait before giving up on a single server request. Non-zero values should contain a corresponding time unit (e.g. 1s, 2m, 3h). A value of zero means don't timeout requests. + - name: server + shorthand: s + usage: The address and port of the Kubernetes API server + - name: tls-server-name + usage: | + Server name to use for server certificate validation. If it is not provided, the hostname used to contact the server is used + - name: token + usage: Bearer token for authentication to the API server + - name: user + usage: The name of the kubeconfig user to use + - name: username + usage: Username for basic authentication to the API server + - name: warnings-as-errors + default_value: "false" + usage: | + Treat warnings received from the server as errors and exit with a non-zero exit code +example: " # Mark the nginx deployment as paused. Any current state of\n # the deployment will continue its function, new updates to the deployment will not\n # have an effect as long as the deployment is paused.\n \n kubectl-kruise rollout pause deployment/nginx" +see_also: + - kubectl-kruise rollout - Manage the rollout of a resource diff --git a/docs/yaml/kubectl-kruise_rollout_restart.yaml b/docs/yaml/kubectl-kruise_rollout_restart.yaml new file mode 100644 index 0000000..c7fa909 --- /dev/null +++ b/docs/yaml/kubectl-kruise_rollout_restart.yaml @@ -0,0 +1,108 @@ +name: kubectl-kruise rollout restart +synopsis: Restart a resource +description: |- + Restart a resource. + + Resource will be rollout restarted. +usage: kubectl-kruise rollout restart RESOURCE +options: + - name: allow-missing-template-keys + default_value: "true" + usage: | + If true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats. + - name: filename + shorthand: f + default_value: '[]' + usage: | + Filename, directory, or URL to files identifying the resource to get from a server. + - name: help + shorthand: h + default_value: "false" + usage: help for restart + - name: kustomize + shorthand: k + usage: | + Process the kustomization directory. This flag can't be used together with -f or -R. + - name: output + shorthand: o + usage: | + Output format. One of: (json, yaml, name, go-template, go-template-file, template, templatefile, jsonpath, jsonpath-as-json, jsonpath-file). + - name: recursive + shorthand: R + default_value: "false" + usage: | + Process the directory used in -f, --filename recursively. Useful when you want to manage related manifests organized within the same directory. + - name: show-managed-fields + default_value: "false" + usage: | + If true, keep the managedFields when printing objects in JSON or YAML format. + - name: template + usage: | + Template string or path to template file to use when -o=go-template, -o=go-template-file. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview]. +inherited_options: + - name: as + usage: | + Username to impersonate for the operation. User could be a regular user or a service account in a namespace. + - name: as-group + default_value: '[]' + usage: | + Group to impersonate for the operation, this flag can be repeated to specify multiple groups. + - name: as-uid + usage: UID to impersonate for the operation. + - name: cache-dir + default_value: $HOME/.kube/cache + usage: Default cache directory + - name: certificate-authority + usage: Path to a cert file for the certificate authority + - name: client-certificate + usage: Path to a client certificate file for TLS + - name: client-key + usage: Path to a client key file for TLS + - name: cluster + usage: The name of the kubeconfig cluster to use + - name: context + usage: The name of the kubeconfig context to use + - name: insecure-skip-tls-verify + default_value: "false" + usage: | + If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure + - name: kubeconfig + usage: Path to the kubeconfig file to use for CLI requests. + - name: match-server-version + default_value: "false" + usage: Require server version to match client version + - name: namespace + shorthand: "n" + usage: If present, the namespace scope for this CLI request + - name: password + usage: Password for basic authentication to the API server + - name: profile + default_value: none + usage: | + Name of profile to capture. One of (none|cpu|heap|goroutine|threadcreate|block|mutex) + - name: profile-output + default_value: profile.pprof + usage: Name of the file to write the profile to + - name: request-timeout + default_value: "0" + usage: | + The length of time to wait before giving up on a single server request. Non-zero values should contain a corresponding time unit (e.g. 1s, 2m, 3h). A value of zero means don't timeout requests. + - name: server + shorthand: s + usage: The address and port of the Kubernetes API server + - name: tls-server-name + usage: | + Server name to use for server certificate validation. If it is not provided, the hostname used to contact the server is used + - name: token + usage: Bearer token for authentication to the API server + - name: user + usage: The name of the kubeconfig user to use + - name: username + usage: Username for basic authentication to the API server + - name: warnings-as-errors + default_value: "false" + usage: | + Treat warnings received from the server as errors and exit with a non-zero exit code +example: " # Restart a deployment\n kubectl-kruise rollout restart deployment/nginx\n kubectl-kruise rollout restart cloneset/abc\n \n # Restart a daemonset\n kubectl-kruise rollout restart daemonset/abc" +see_also: + - kubectl-kruise rollout - Manage the rollout of a resource diff --git a/docs/yaml/kubectl-kruise_rollout_resume.yaml b/docs/yaml/kubectl-kruise_rollout_resume.yaml new file mode 100644 index 0000000..eb16239 --- /dev/null +++ b/docs/yaml/kubectl-kruise_rollout_resume.yaml @@ -0,0 +1,108 @@ +name: kubectl-kruise rollout resume +synopsis: Resume a paused resource +description: |- + Resume a paused resource + + Paused resources will not be reconciled by a controller. By resuming a resource, we allow it to be reconciled again. Currently deployments, cloneset support being resumed. +usage: kubectl-kruise rollout resume RESOURCE +options: + - name: allow-missing-template-keys + default_value: "true" + usage: | + If true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats. + - name: filename + shorthand: f + default_value: '[]' + usage: | + Filename, directory, or URL to files identifying the resource to get from a server. + - name: help + shorthand: h + default_value: "false" + usage: help for resume + - name: kustomize + shorthand: k + usage: | + Process the kustomization directory. This flag can't be used together with -f or -R. + - name: output + shorthand: o + usage: | + Output format. One of: (json, yaml, name, go-template, go-template-file, template, templatefile, jsonpath, jsonpath-as-json, jsonpath-file). + - name: recursive + shorthand: R + default_value: "false" + usage: | + Process the directory used in -f, --filename recursively. Useful when you want to manage related manifests organized within the same directory. + - name: show-managed-fields + default_value: "false" + usage: | + If true, keep the managedFields when printing objects in JSON or YAML format. + - name: template + usage: | + Template string or path to template file to use when -o=go-template, -o=go-template-file. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview]. +inherited_options: + - name: as + usage: | + Username to impersonate for the operation. User could be a regular user or a service account in a namespace. + - name: as-group + default_value: '[]' + usage: | + Group to impersonate for the operation, this flag can be repeated to specify multiple groups. + - name: as-uid + usage: UID to impersonate for the operation. + - name: cache-dir + default_value: $HOME/.kube/cache + usage: Default cache directory + - name: certificate-authority + usage: Path to a cert file for the certificate authority + - name: client-certificate + usage: Path to a client certificate file for TLS + - name: client-key + usage: Path to a client key file for TLS + - name: cluster + usage: The name of the kubeconfig cluster to use + - name: context + usage: The name of the kubeconfig context to use + - name: insecure-skip-tls-verify + default_value: "false" + usage: | + If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure + - name: kubeconfig + usage: Path to the kubeconfig file to use for CLI requests. + - name: match-server-version + default_value: "false" + usage: Require server version to match client version + - name: namespace + shorthand: "n" + usage: If present, the namespace scope for this CLI request + - name: password + usage: Password for basic authentication to the API server + - name: profile + default_value: none + usage: | + Name of profile to capture. One of (none|cpu|heap|goroutine|threadcreate|block|mutex) + - name: profile-output + default_value: profile.pprof + usage: Name of the file to write the profile to + - name: request-timeout + default_value: "0" + usage: | + The length of time to wait before giving up on a single server request. Non-zero values should contain a corresponding time unit (e.g. 1s, 2m, 3h). A value of zero means don't timeout requests. + - name: server + shorthand: s + usage: The address and port of the Kubernetes API server + - name: tls-server-name + usage: | + Server name to use for server certificate validation. If it is not provided, the hostname used to contact the server is used + - name: token + usage: Bearer token for authentication to the API server + - name: user + usage: The name of the kubeconfig user to use + - name: username + usage: Username for basic authentication to the API server + - name: warnings-as-errors + default_value: "false" + usage: | + Treat warnings received from the server as errors and exit with a non-zero exit code +example: " # Resume an already paused rollout/cloneset/deployment resource\n \n kubectl-kruise rollout resume rollout/nginx\n kubectl-kruise rollout resume cloneset/nginx\n kubectl-kruise rollout resume deployment/nginx" +see_also: + - kubectl-kruise rollout - Manage the rollout of a resource diff --git a/docs/yaml/kubectl-kruise_rollout_status.yaml b/docs/yaml/kubectl-kruise_rollout_status.yaml new file mode 100644 index 0000000..16c5612 --- /dev/null +++ b/docs/yaml/kubectl-kruise_rollout_status.yaml @@ -0,0 +1,109 @@ +name: kubectl-kruise rollout status +synopsis: Show the status of the rollout +description: |- + Show the status of the rollout. + + By default 'rollout status' will watch the status of the latest rollout until it's done. If you don't want to wait for the rollout to finish then you can use --watch=false. Note that if a new rollout starts in-between, then 'rollout status' will continue watching the latest revision. If you want to pin to a specific revision and abort if it is rolled over by another revision, use --revision=N where N is the revision you need to watch for. +usage: kubectl-kruise rollout status (TYPE NAME | TYPE/NAME) [flags] +options: + - name: detail + shorthand: d + default_value: "false" + usage: Show the detail status of the rollout. + - name: filename + shorthand: f + default_value: '[]' + usage: | + Filename, directory, or URL to files identifying the resource to get from a server. + - name: help + shorthand: h + default_value: "false" + usage: help for status + - name: kustomize + shorthand: k + usage: | + Process the kustomization directory. This flag can't be used together with -f or -R. + - name: recursive + shorthand: R + default_value: "false" + usage: | + Process the directory used in -f, --filename recursively. Useful when you want to manage related manifests organized within the same directory. + - name: revision + default_value: "0" + usage: | + Pin to a specific revision for showing its status. Defaults to 0 (last revision). + - name: timeout + default_value: 0s + usage: | + The length of time to wait before ending watch, zero means never. Any other values should contain a corresponding time unit (e.g. 1s, 2m, 3h). + - name: watch + shorthand: w + default_value: "true" + usage: Watch the status of the rollout until it's done. +inherited_options: + - name: as + usage: | + Username to impersonate for the operation. User could be a regular user or a service account in a namespace. + - name: as-group + default_value: '[]' + usage: | + Group to impersonate for the operation, this flag can be repeated to specify multiple groups. + - name: as-uid + usage: UID to impersonate for the operation. + - name: cache-dir + default_value: $HOME/.kube/cache + usage: Default cache directory + - name: certificate-authority + usage: Path to a cert file for the certificate authority + - name: client-certificate + usage: Path to a client certificate file for TLS + - name: client-key + usage: Path to a client key file for TLS + - name: cluster + usage: The name of the kubeconfig cluster to use + - name: context + usage: The name of the kubeconfig context to use + - name: insecure-skip-tls-verify + default_value: "false" + usage: | + If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure + - name: kubeconfig + usage: Path to the kubeconfig file to use for CLI requests. + - name: match-server-version + default_value: "false" + usage: Require server version to match client version + - name: namespace + shorthand: "n" + usage: If present, the namespace scope for this CLI request + - name: password + usage: Password for basic authentication to the API server + - name: profile + default_value: none + usage: | + Name of profile to capture. One of (none|cpu|heap|goroutine|threadcreate|block|mutex) + - name: profile-output + default_value: profile.pprof + usage: Name of the file to write the profile to + - name: request-timeout + default_value: "0" + usage: | + The length of time to wait before giving up on a single server request. Non-zero values should contain a corresponding time unit (e.g. 1s, 2m, 3h). A value of zero means don't timeout requests. + - name: server + shorthand: s + usage: The address and port of the Kubernetes API server + - name: tls-server-name + usage: | + Server name to use for server certificate validation. If it is not provided, the hostname used to contact the server is used + - name: token + usage: Bearer token for authentication to the API server + - name: user + usage: The name of the kubeconfig user to use + - name: username + usage: Username for basic authentication to the API server + - name: warnings-as-errors + default_value: "false" + usage: | + Treat warnings received from the server as errors and exit with a non-zero exit code +example: " # Watch the rollout status of a deployment\n kubectl-kruise rollout status deployment/nginx\n \n # Watch the rollout status of a cloneset\n kubectl-kruise rollout status cloneset/nginx\n \n # Watch the rollout status of a advanced statefulset\n kubectl-kruise rollout status asts/nginx" +see_also: + - kubectl-kruise rollout - Manage the rollout of a resource diff --git a/docs/yaml/kubectl-kruise_rollout_undo.yaml b/docs/yaml/kubectl-kruise_rollout_undo.yaml new file mode 100644 index 0000000..49f39b7 --- /dev/null +++ b/docs/yaml/kubectl-kruise_rollout_undo.yaml @@ -0,0 +1,112 @@ +name: kubectl-kruise rollout undo +synopsis: Undo a previous rollout +description: Rollback to a previous rollout. +usage: kubectl-kruise rollout undo (TYPE NAME | TYPE/NAME) [flags] +options: + - name: allow-missing-template-keys + default_value: "true" + usage: | + If true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats. + - name: dry-run + default_value: none + usage: | + Must be "none", "server", or "client". If client strategy, only print the object that would be sent, without sending it. If server strategy, submit server-side request without persisting the resource. + - name: filename + shorthand: f + default_value: '[]' + usage: | + Filename, directory, or URL to files identifying the resource to get from a server. + - name: help + shorthand: h + default_value: "false" + usage: help for undo + - name: kustomize + shorthand: k + usage: | + Process the kustomization directory. This flag can't be used together with -f or -R. + - name: output + shorthand: o + usage: | + Output format. One of: (json, yaml, name, go-template, go-template-file, template, templatefile, jsonpath, jsonpath-as-json, jsonpath-file). + - name: recursive + shorthand: R + default_value: "false" + usage: | + Process the directory used in -f, --filename recursively. Useful when you want to manage related manifests organized within the same directory. + - name: show-managed-fields + default_value: "false" + usage: | + If true, keep the managedFields when printing objects in JSON or YAML format. + - name: template + usage: | + Template string or path to template file to use when -o=go-template, -o=go-template-file. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview]. + - name: to-revision + default_value: "0" + usage: The revision to rollback to. Default to 0 (last revision). +inherited_options: + - name: as + usage: | + Username to impersonate for the operation. User could be a regular user or a service account in a namespace. + - name: as-group + default_value: '[]' + usage: | + Group to impersonate for the operation, this flag can be repeated to specify multiple groups. + - name: as-uid + usage: UID to impersonate for the operation. + - name: cache-dir + default_value: $HOME/.kube/cache + usage: Default cache directory + - name: certificate-authority + usage: Path to a cert file for the certificate authority + - name: client-certificate + usage: Path to a client certificate file for TLS + - name: client-key + usage: Path to a client key file for TLS + - name: cluster + usage: The name of the kubeconfig cluster to use + - name: context + usage: The name of the kubeconfig context to use + - name: insecure-skip-tls-verify + default_value: "false" + usage: | + If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure + - name: kubeconfig + usage: Path to the kubeconfig file to use for CLI requests. + - name: match-server-version + default_value: "false" + usage: Require server version to match client version + - name: namespace + shorthand: "n" + usage: If present, the namespace scope for this CLI request + - name: password + usage: Password for basic authentication to the API server + - name: profile + default_value: none + usage: | + Name of profile to capture. One of (none|cpu|heap|goroutine|threadcreate|block|mutex) + - name: profile-output + default_value: profile.pprof + usage: Name of the file to write the profile to + - name: request-timeout + default_value: "0" + usage: | + The length of time to wait before giving up on a single server request. Non-zero values should contain a corresponding time unit (e.g. 1s, 2m, 3h). A value of zero means don't timeout requests. + - name: server + shorthand: s + usage: The address and port of the Kubernetes API server + - name: tls-server-name + usage: | + Server name to use for server certificate validation. If it is not provided, the hostname used to contact the server is used + - name: token + usage: Bearer token for authentication to the API server + - name: user + usage: The name of the kubeconfig user to use + - name: username + usage: Username for basic authentication to the API server + - name: warnings-as-errors + default_value: "false" + usage: | + Treat warnings received from the server as errors and exit with a non-zero exit code +example: " # Rollback to the previous cloneset\n kubectl-kruise rollout undo cloneset/abc\n \n # Rollback to the previous Advanced StatefulSet\n kubectl-kruise rollout undo asts/abc\n \n # Rollback to daemonset revision 3\n kubectl-kruise rollout undo daemonset/abc --to-revision=3\n \n # Rollback to the previous deployment with dry-run\n kubectl-kruise rollout undo --dry-run=server deployment/abc\n \n # Rollback to workload via rollout api object\n kubectl-kruise rollout undo rollout/abc" +see_also: + - kubectl-kruise rollout - Manage the rollout of a resource diff --git a/docs/yaml/kubectl-kruise_scaledown.yaml b/docs/yaml/kubectl-kruise_scaledown.yaml new file mode 100644 index 0000000..3c1ebab --- /dev/null +++ b/docs/yaml/kubectl-kruise_scaledown.yaml @@ -0,0 +1,80 @@ +name: kubectl-kruise scaledown +synopsis: Scaledown a cloneset with selective Pods +description: Scaledown a cloneset with selective Pods +usage: kubectl-kruise scaledown [CLONESET] --pods [POD1,POD2] -n [NAMESPACE] +options: + - name: help + shorthand: h + default_value: "false" + usage: help for scaledown + - name: pods + usage: Name of the pods to delete +inherited_options: + - name: as + usage: | + Username to impersonate for the operation. User could be a regular user or a service account in a namespace. + - name: as-group + default_value: '[]' + usage: | + Group to impersonate for the operation, this flag can be repeated to specify multiple groups. + - name: as-uid + usage: UID to impersonate for the operation. + - name: cache-dir + default_value: $HOME/.kube/cache + usage: Default cache directory + - name: certificate-authority + usage: Path to a cert file for the certificate authority + - name: client-certificate + usage: Path to a client certificate file for TLS + - name: client-key + usage: Path to a client key file for TLS + - name: cluster + usage: The name of the kubeconfig cluster to use + - name: context + usage: The name of the kubeconfig context to use + - name: insecure-skip-tls-verify + default_value: "false" + usage: | + If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure + - name: kubeconfig + usage: Path to the kubeconfig file to use for CLI requests. + - name: match-server-version + default_value: "false" + usage: Require server version to match client version + - name: namespace + shorthand: "n" + usage: If present, the namespace scope for this CLI request + - name: password + usage: Password for basic authentication to the API server + - name: profile + default_value: none + usage: | + Name of profile to capture. One of (none|cpu|heap|goroutine|threadcreate|block|mutex) + - name: profile-output + default_value: profile.pprof + usage: Name of the file to write the profile to + - name: request-timeout + default_value: "0" + usage: | + The length of time to wait before giving up on a single server request. Non-zero values should contain a corresponding time unit (e.g. 1s, 2m, 3h). A value of zero means don't timeout requests. + - name: server + shorthand: s + usage: The address and port of the Kubernetes API server + - name: tls-server-name + usage: | + Server name to use for server certificate validation. If it is not provided, the hostname used to contact the server is used + - name: token + usage: Bearer token for authentication to the API server + - name: user + usage: The name of the kubeconfig user to use + - name: username + usage: Username for basic authentication to the API server + - name: warnings-as-errors + default_value: "false" + usage: | + Treat warnings received from the server as errors and exit with a non-zero exit code +example: |4 + # Scale down 2 with selective pods + kubectl-kruise scaledown CloneSet cloneset-demo --pods pod-1, pod-2 -n default +see_also: + - kubectl-kruise - kubectl-kruise controls the OpenKruise CRs diff --git a/docs/yaml/kubectl-kruise_set.yaml b/docs/yaml/kubectl-kruise_set.yaml new file mode 100644 index 0000000..003e64e --- /dev/null +++ b/docs/yaml/kubectl-kruise_set.yaml @@ -0,0 +1,84 @@ +name: kubectl-kruise set +synopsis: Set specific features on objects +description: |- + Configure application resources + + These commands help you make changes to existing application resources. +usage: kubectl-kruise set SUBCOMMAND +options: + - name: help + shorthand: h + default_value: "false" + usage: help for set +inherited_options: + - name: as + usage: | + Username to impersonate for the operation. User could be a regular user or a service account in a namespace. + - name: as-group + default_value: '[]' + usage: | + Group to impersonate for the operation, this flag can be repeated to specify multiple groups. + - name: as-uid + usage: UID to impersonate for the operation. + - name: cache-dir + default_value: $HOME/.kube/cache + usage: Default cache directory + - name: certificate-authority + usage: Path to a cert file for the certificate authority + - name: client-certificate + usage: Path to a client certificate file for TLS + - name: client-key + usage: Path to a client key file for TLS + - name: cluster + usage: The name of the kubeconfig cluster to use + - name: context + usage: The name of the kubeconfig context to use + - name: insecure-skip-tls-verify + default_value: "false" + usage: | + If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure + - name: kubeconfig + usage: Path to the kubeconfig file to use for CLI requests. + - name: match-server-version + default_value: "false" + usage: Require server version to match client version + - name: namespace + shorthand: "n" + usage: If present, the namespace scope for this CLI request + - name: password + usage: Password for basic authentication to the API server + - name: profile + default_value: none + usage: | + Name of profile to capture. One of (none|cpu|heap|goroutine|threadcreate|block|mutex) + - name: profile-output + default_value: profile.pprof + usage: Name of the file to write the profile to + - name: request-timeout + default_value: "0" + usage: | + The length of time to wait before giving up on a single server request. Non-zero values should contain a corresponding time unit (e.g. 1s, 2m, 3h). A value of zero means don't timeout requests. + - name: server + shorthand: s + usage: The address and port of the Kubernetes API server + - name: tls-server-name + usage: | + Server name to use for server certificate validation. If it is not provided, the hostname used to contact the server is used + - name: token + usage: Bearer token for authentication to the API server + - name: user + usage: The name of the kubeconfig user to use + - name: username + usage: Username for basic authentication to the API server + - name: warnings-as-errors + default_value: "false" + usage: | + Treat warnings received from the server as errors and exit with a non-zero exit code +see_also: + - kubectl-kruise - kubectl-kruise controls the OpenKruise CRs + - kubectl-kruise set env - Update environment variables on a pod template + - kubectl-kruise set image - Update image of a pod template + - kubectl-kruise set resources - Update resource requests/limits on objects with pod templates + - kubectl-kruise set selector - Set the selector on a resource + - kubectl-kruise set serviceaccount - Update ServiceAccount of a resource + - kubectl-kruise set subject - Update User, Group or ServiceAccount in a RoleBinding/ClusterRoleBinding diff --git a/docs/yaml/kubectl-kruise_set_env.yaml b/docs/yaml/kubectl-kruise_set_env.yaml new file mode 100644 index 0000000..f824a61 --- /dev/null +++ b/docs/yaml/kubectl-kruise_set_env.yaml @@ -0,0 +1,160 @@ +name: kubectl-kruise set env +synopsis: Update environment variables on a pod template +description: |- + Update environment variables on a pod template. + + List environment variable definitions in one or more pods, pod templates. Add, update, or remove container environment variable definitions in one or more pod templates (within replication controllers or deployment configurations). View or modify the environment variable definitions on all containers in the specified pods or pod templates, or just those that match a wildcard. + + If "--env -" is passed, environment variables can be read from STDIN using the standard env syntax. + + Possible resources include (case insensitive): + + pod (po), deployment (deploy), statefulset (sts), daemonset (ds), replicaset (rs), cloneset (clone), statefulset.apps.kruise.io (asts), daemonset.apps.kruise.io (ads) +usage: kubectl-kruise set env RESOURCE/NAME KEY_1=VAL_1 ... KEY_N=VAL_N +options: + - name: all + default_value: "false" + usage: | + If true, select all resources in the namespace of the specified resource types + - name: allow-missing-template-keys + default_value: "true" + usage: | + If true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats. + - name: containers + shorthand: c + default_value: '*' + usage: | + The names of containers in the selected pod templates to change - may use wildcards + - name: dry-run + default_value: none + usage: | + Must be "none", "server", or "client". If client strategy, only print the object that would be sent, without sending it. If server strategy, submit server-side request without persisting the resource. + - name: env + shorthand: e + default_value: '[]' + usage: | + Specify a key-value pair for an environment variable to set into each container. + - name: filename + shorthand: f + default_value: '[]' + usage: | + Filename, directory, or URL to files the resource to update the env + - name: from + usage: | + The name of a resource from which to inject environment variables + - name: help + shorthand: h + default_value: "false" + usage: help for env + - name: keys + default_value: '[]' + usage: | + Comma-separated list of keys to import from specified resource + - name: kustomize + shorthand: k + usage: | + Process the kustomization directory. This flag can't be used together with -f or -R. + - name: list + default_value: "false" + usage: | + If true, display the environment and any changes in the standard format. this flag will removed when we have kubectl view env. + - name: local + default_value: "false" + usage: | + If true, set env will NOT contact api-server but run locally. + - name: output + shorthand: o + usage: | + Output format. One of: (json, yaml, name, go-template, go-template-file, template, templatefile, jsonpath, jsonpath-as-json, jsonpath-file). + - name: overwrite + default_value: "true" + usage: | + If true, allow environment to be overwritten, otherwise reject updates that overwrite existing environment. + - name: prefix + usage: Prefix to append to variable names + - name: recursive + shorthand: R + default_value: "false" + usage: | + Process the directory used in -f, --filename recursively. Useful when you want to manage related manifests organized within the same directory. + - name: resolve + default_value: "false" + usage: | + If true, show secret or configmap references when listing variables + - name: selector + shorthand: l + usage: Selector (label query) to filter on + - name: show-managed-fields + default_value: "false" + usage: | + If true, keep the managedFields when printing objects in JSON or YAML format. + - name: template + usage: | + Template string or path to template file to use when -o=go-template, -o=go-template-file. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview]. +inherited_options: + - name: as + usage: | + Username to impersonate for the operation. User could be a regular user or a service account in a namespace. + - name: as-group + default_value: '[]' + usage: | + Group to impersonate for the operation, this flag can be repeated to specify multiple groups. + - name: as-uid + usage: UID to impersonate for the operation. + - name: cache-dir + default_value: $HOME/.kube/cache + usage: Default cache directory + - name: certificate-authority + usage: Path to a cert file for the certificate authority + - name: client-certificate + usage: Path to a client certificate file for TLS + - name: client-key + usage: Path to a client key file for TLS + - name: cluster + usage: The name of the kubeconfig cluster to use + - name: context + usage: The name of the kubeconfig context to use + - name: insecure-skip-tls-verify + default_value: "false" + usage: | + If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure + - name: kubeconfig + usage: Path to the kubeconfig file to use for CLI requests. + - name: match-server-version + default_value: "false" + usage: Require server version to match client version + - name: namespace + shorthand: "n" + usage: If present, the namespace scope for this CLI request + - name: password + usage: Password for basic authentication to the API server + - name: profile + default_value: none + usage: | + Name of profile to capture. One of (none|cpu|heap|goroutine|threadcreate|block|mutex) + - name: profile-output + default_value: profile.pprof + usage: Name of the file to write the profile to + - name: request-timeout + default_value: "0" + usage: | + The length of time to wait before giving up on a single server request. Non-zero values should contain a corresponding time unit (e.g. 1s, 2m, 3h). A value of zero means don't timeout requests. + - name: server + shorthand: s + usage: The address and port of the Kubernetes API server + - name: tls-server-name + usage: | + Server name to use for server certificate validation. If it is not provided, the hostname used to contact the server is used + - name: token + usage: Bearer token for authentication to the API server + - name: user + usage: The name of the kubeconfig user to use + - name: username + usage: Username for basic authentication to the API server + - name: warnings-as-errors + default_value: "false" + usage: | + Treat warnings received from the server as errors and exit with a non-zero exit code +example: " # Update cloneset 'sample' with a new environment variable\n kubectl-kruise set env cloneset/sample STORAGE_DIR=/local\n \n # List the environment variables defined on a cloneset 'sample'\n kubectl-kruise set env cloneset/sample --list\n \n # List the environment variables defined on all pods\n kubectl-kruise set env pods --all --list\n \n # Output modified cloneset in YAML, and does not alter the object on the server\n kubectl-kruise set env cloneset/sample STORAGE_DIR=/data -o yaml\n \n # Update all containers in all replication controllers in the project to have ENV=prod\n kubectl-kruise set env rc --all ENV=prod\n \n # Import environment from a secret\n kubectl-kruise set env --from=secret/mysecret cloneset/sample\n \n # Import environment from a config map with a prefix\n kubectl-kruise set env --from=configmap/myconfigmap --prefix=MYSQL_ cloneset/sample\n \n # Import specific keys from a config map\n kubectl-kruise set env --keys=my-example-key --from=configmap/myconfigmap cloneset/sample\n \n # Remove the environment variable ENV from container 'c1' in all deployment configs\n kubectl-kruise set env clonesets --all --containers=\"c1\" ENV-\n \n # Remove the environment variable ENV from a deployment definition on disk and\n # update the deployment config on the server\n kubectl-kruise set env -f deploy.json ENV-\n \n # Set some of the local shell environment into a deployment config on the server\n env | grep RAILS_ | kubectl-kruise set env -e - cloneset/sample" +see_also: + - kubectl-kruise set - Set specific features on objects diff --git a/docs/yaml/kubectl-kruise_set_image.yaml b/docs/yaml/kubectl-kruise_set_image.yaml new file mode 100644 index 0000000..803a8a8 --- /dev/null +++ b/docs/yaml/kubectl-kruise_set_image.yaml @@ -0,0 +1,130 @@ +name: kubectl-kruise set image +synopsis: Update image of a pod template +description: |- + Update existing container image(s) of resources. + + Possible resources include (case insensitive): + + pod (po), deployment (deploy), statefulset (sts), daemonset (ds), replicaset (rs), cloneset (clone), statefulset.apps.kruise.io (asts), daemonset.apps.kruise.io (ads) +usage: kubectl-kruise set image (-f FILENAME | TYPE NAME) CONTAINER_NAME_1=CONTAINER_IMAGE_1 ... CONTAINER_NAME_N=CONTAINER_IMAGE_N +options: + - name: all + default_value: "false" + usage: | + Select all resources, including uninitialized ones, in the namespace of the specified resource types + - name: allow-missing-template-keys + default_value: "true" + usage: | + If true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats. + - name: dry-run + default_value: none + usage: | + Must be "none", "server", or "client". If client strategy, only print the object that would be sent, without sending it. If server strategy, submit server-side request without persisting the resource. + - name: filename + shorthand: f + default_value: '[]' + usage: | + Filename, directory, or URL to files identifying the resource to get from a server. + - name: help + shorthand: h + default_value: "false" + usage: help for image + - name: kustomize + shorthand: k + usage: | + Process the kustomization directory. This flag can't be used together with -f or -R. + - name: local + default_value: "false" + usage: | + If true, set image will NOT contact api-server but run locally. + - name: output + shorthand: o + usage: | + Output format. One of: (json, yaml, name, go-template, go-template-file, template, templatefile, jsonpath, jsonpath-as-json, jsonpath-file). + - name: record + default_value: "false" + usage: | + Record current kubectl command in the resource annotation. If set to false, do not record the command. If set to true, record the command. If not set, default to updating the existing annotation value only if one already exists. + - name: recursive + shorthand: R + default_value: "false" + usage: | + Process the directory used in -f, --filename recursively. Useful when you want to manage related manifests organized within the same directory. + - name: selector + shorthand: l + usage: | + Selector (label query) to filter on, not including uninitialized ones, supports '=', '==', and '!='.(e.g. -l key1=value1,key2=value2) + - name: show-managed-fields + default_value: "false" + usage: | + If true, keep the managedFields when printing objects in JSON or YAML format. + - name: template + usage: | + Template string or path to template file to use when -o=go-template, -o=go-template-file. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview]. +inherited_options: + - name: as + usage: | + Username to impersonate for the operation. User could be a regular user or a service account in a namespace. + - name: as-group + default_value: '[]' + usage: | + Group to impersonate for the operation, this flag can be repeated to specify multiple groups. + - name: as-uid + usage: UID to impersonate for the operation. + - name: cache-dir + default_value: $HOME/.kube/cache + usage: Default cache directory + - name: certificate-authority + usage: Path to a cert file for the certificate authority + - name: client-certificate + usage: Path to a client certificate file for TLS + - name: client-key + usage: Path to a client key file for TLS + - name: cluster + usage: The name of the kubeconfig cluster to use + - name: context + usage: The name of the kubeconfig context to use + - name: insecure-skip-tls-verify + default_value: "false" + usage: | + If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure + - name: kubeconfig + usage: Path to the kubeconfig file to use for CLI requests. + - name: match-server-version + default_value: "false" + usage: Require server version to match client version + - name: namespace + shorthand: "n" + usage: If present, the namespace scope for this CLI request + - name: password + usage: Password for basic authentication to the API server + - name: profile + default_value: none + usage: | + Name of profile to capture. One of (none|cpu|heap|goroutine|threadcreate|block|mutex) + - name: profile-output + default_value: profile.pprof + usage: Name of the file to write the profile to + - name: request-timeout + default_value: "0" + usage: | + The length of time to wait before giving up on a single server request. Non-zero values should contain a corresponding time unit (e.g. 1s, 2m, 3h). A value of zero means don't timeout requests. + - name: server + shorthand: s + usage: The address and port of the Kubernetes API server + - name: tls-server-name + usage: | + Server name to use for server certificate validation. If it is not provided, the hostname used to contact the server is used + - name: token + usage: Bearer token for authentication to the API server + - name: user + usage: The name of the kubeconfig user to use + - name: username + usage: Username for basic authentication to the API server + - name: warnings-as-errors + default_value: "false" + usage: | + Treat warnings received from the server as errors and exit with a non-zero exit code +example: " # Set a deployment's nginx container image to 'nginx:1.9.1', and its busybox container image to 'busybox'.\n kubectl-kruise set image cloneset/sample busybox=busybox nginx=nginx:1.9.1\n \n # Update all deployments' and rc's nginx container's image to 'nginx:1.9.1'\n kubectl-kruise set image cloneset,rc nginx=nginx:1.9.1 --all\n \n # Update image of all containers of cloneset sample to 'nginx:1.9.1'\n kubectl-kruise set image cloneset sample *=nginx:1.9.1\n \n # Print result (in yaml format) of updating nginx container image from local file, without hitting the server\n kubectl-kruise set image -f path/to/file.yaml nginx=nginx:1.9.1 --local -o yaml" +see_also: + - kubectl-kruise set - Set specific features on objects diff --git a/docs/yaml/kubectl-kruise_set_resources.yaml b/docs/yaml/kubectl-kruise_set_resources.yaml new file mode 100644 index 0000000..2004327 --- /dev/null +++ b/docs/yaml/kubectl-kruise_set_resources.yaml @@ -0,0 +1,144 @@ +name: kubectl-kruise set resources +synopsis: | + Update resource requests/limits on objects with pod templates +description: |- + Specify compute resource requirements (cpu, memory) for any resource that defines a pod template. If a pod is successfully scheduled, it is guaranteed the amount of resource requested, but may burst up to its specified limits. + + for each compute resource, if a limit is specified and a request is omitted, the request will default to the limit. + + Possible resources include (case insensitive): + + pod (po), deployment (deploy), statefulset (sts), daemonset (ds), replicaset (rs), cloneset (clone), statefulset.apps.kruise.io (asts), daemonset.apps.kruise.io (ads) +usage: kubectl-kruise set resources (-f FILENAME | TYPE NAME) ([--limits=LIMITS & --requests=REQUESTS] +options: + - name: all + default_value: "false" + usage: | + Select all resources, including uninitialized ones, in the namespace of the specified resource types + - name: allow-missing-template-keys + default_value: "true" + usage: | + If true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats. + - name: containers + shorthand: c + default_value: '*' + usage: | + The names of containers in the selected pod templates to change, all containers are selected by default - may use wildcards + - name: dry-run + default_value: none + usage: | + Must be "none", "server", or "client". If client strategy, only print the object that would be sent, without sending it. If server strategy, submit server-side request without persisting the resource. + - name: filename + shorthand: f + default_value: '[]' + usage: | + Filename, directory, or URL to files identifying the resource to get from a server. + - name: help + shorthand: h + default_value: "false" + usage: help for resources + - name: kustomize + shorthand: k + usage: | + Process the kustomization directory. This flag can't be used together with -f or -R. + - name: limits + usage: | + The resource requirement requests for this container. For example, 'cpu=100m,memory=256Mi'. Note that server side components may assign requests depending on the server configuration, such as limit ranges. + - name: local + default_value: "false" + usage: | + If true, set resources will NOT contact api-server but run locally. + - name: output + shorthand: o + usage: | + Output format. One of: (json, yaml, name, go-template, go-template-file, template, templatefile, jsonpath, jsonpath-as-json, jsonpath-file). + - name: record + default_value: "false" + usage: | + Record current kubectl command in the resource annotation. If set to false, do not record the command. If set to true, record the command. If not set, default to updating the existing annotation value only if one already exists. + - name: recursive + shorthand: R + default_value: "false" + usage: | + Process the directory used in -f, --filename recursively. Useful when you want to manage related manifests organized within the same directory. + - name: requests + usage: | + The resource requirement requests for this container. For example, 'cpu=100m,memory=256Mi'. Note that server side components may assign requests depending on the server configuration, such as limit ranges. + - name: selector + shorthand: l + usage: | + Selector (label query) to filter on, not including uninitialized ones,supports '=', '==', and '!='.(e.g. -l key1=value1,key2=value2) + - name: show-managed-fields + default_value: "false" + usage: | + If true, keep the managedFields when printing objects in JSON or YAML format. + - name: template + usage: | + Template string or path to template file to use when -o=go-template, -o=go-template-file. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview]. +inherited_options: + - name: as + usage: | + Username to impersonate for the operation. User could be a regular user or a service account in a namespace. + - name: as-group + default_value: '[]' + usage: | + Group to impersonate for the operation, this flag can be repeated to specify multiple groups. + - name: as-uid + usage: UID to impersonate for the operation. + - name: cache-dir + default_value: $HOME/.kube/cache + usage: Default cache directory + - name: certificate-authority + usage: Path to a cert file for the certificate authority + - name: client-certificate + usage: Path to a client certificate file for TLS + - name: client-key + usage: Path to a client key file for TLS + - name: cluster + usage: The name of the kubeconfig cluster to use + - name: context + usage: The name of the kubeconfig context to use + - name: insecure-skip-tls-verify + default_value: "false" + usage: | + If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure + - name: kubeconfig + usage: Path to the kubeconfig file to use for CLI requests. + - name: match-server-version + default_value: "false" + usage: Require server version to match client version + - name: namespace + shorthand: "n" + usage: If present, the namespace scope for this CLI request + - name: password + usage: Password for basic authentication to the API server + - name: profile + default_value: none + usage: | + Name of profile to capture. One of (none|cpu|heap|goroutine|threadcreate|block|mutex) + - name: profile-output + default_value: profile.pprof + usage: Name of the file to write the profile to + - name: request-timeout + default_value: "0" + usage: | + The length of time to wait before giving up on a single server request. Non-zero values should contain a corresponding time unit (e.g. 1s, 2m, 3h). A value of zero means don't timeout requests. + - name: server + shorthand: s + usage: The address and port of the Kubernetes API server + - name: tls-server-name + usage: | + Server name to use for server certificate validation. If it is not provided, the hostname used to contact the server is used + - name: token + usage: Bearer token for authentication to the API server + - name: user + usage: The name of the kubeconfig user to use + - name: username + usage: Username for basic authentication to the API server + - name: warnings-as-errors + default_value: "false" + usage: | + Treat warnings received from the server as errors and exit with a non-zero exit code +example: " # Set a deployments nginx container cpu limits to \"200m\" and memory to \"512Mi\"\n kubectl-kruise set resources cloneset sample -c=nginx --limits=cpu=200m,memory=512Mi\n \n # Set the resource request and limits for all containers in nginx\n kubectl-kruise set resources cloneset sample --limits=cpu=200m,memory=512Mi --requests=cpu=100m,memory=256Mi\n \n # Remove the resource requests for resources on containers in nginx\n kubectl-kruise set resources cloneset sample --limits=cpu=0,memory=0 --requests=cpu=0,memory=0\n \n # Print the result (in yaml format) of updating nginx container limits from a local, without hitting the server\n kubectl-kruise set resources -f path/to/file.yaml --limits=cpu=200m,memory=512Mi --local -o yaml" +see_also: + - kubectl-kruise set - Set specific features on objects diff --git a/docs/yaml/kubectl-kruise_set_selector.yaml b/docs/yaml/kubectl-kruise_set_selector.yaml new file mode 100644 index 0000000..4d343c1 --- /dev/null +++ b/docs/yaml/kubectl-kruise_set_selector.yaml @@ -0,0 +1,125 @@ +name: kubectl-kruise set selector +synopsis: Set the selector on a resource +description: |- + Set the selector on a resource. Note that the new selector will overwrite the old selector if the resource had one prior to the invocation of 'set selector'. + + A selector must begin with a letter or number, and may contain letters, numbers, hyphens, dots, and underscores, up to 63 characters. If --resource-version is specified, then updates will use this resource version, otherwise the existing resource-version will be used. Note: currently selectors can only be set on Service objects. +usage: kubectl-kruise set selector (-f FILENAME | TYPE NAME) EXPRESSIONS [--resource-version=version] +options: + - name: all + default_value: "false" + usage: | + Select all resources in the namespace of the specified resource types + - name: allow-missing-template-keys + default_value: "true" + usage: | + If true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats. + - name: dry-run + default_value: none + usage: | + Must be "none", "server", or "client". If client strategy, only print the object that would be sent, without sending it. If server strategy, submit server-side request without persisting the resource. + - name: filename + shorthand: f + default_value: '[]' + usage: identifying the resource. + - name: help + shorthand: h + default_value: "false" + usage: help for selector + - name: local + default_value: "false" + usage: | + If true, annotation will NOT contact api-server but run locally. + - name: output + shorthand: o + usage: | + Output format. One of: (json, yaml, name, go-template, go-template-file, template, templatefile, jsonpath, jsonpath-as-json, jsonpath-file). + - name: record + default_value: "false" + usage: | + Record current kubectl command in the resource annotation. If set to false, do not record the command. If set to true, record the command. If not set, default to updating the existing annotation value only if one already exists. + - name: recursive + shorthand: R + default_value: "true" + usage: | + Process the directory used in -f, --filename recursively. Useful when you want to manage related manifests organized within the same directory. + - name: resource-version + usage: | + If non-empty, the selectors update will only succeed if this is the current resource-version for the object. Only valid when specifying a single resource. + - name: show-managed-fields + default_value: "false" + usage: | + If true, keep the managedFields when printing objects in JSON or YAML format. + - name: template + usage: | + Template string or path to template file to use when -o=go-template, -o=go-template-file. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview]. +inherited_options: + - name: as + usage: | + Username to impersonate for the operation. User could be a regular user or a service account in a namespace. + - name: as-group + default_value: '[]' + usage: | + Group to impersonate for the operation, this flag can be repeated to specify multiple groups. + - name: as-uid + usage: UID to impersonate for the operation. + - name: cache-dir + default_value: $HOME/.kube/cache + usage: Default cache directory + - name: certificate-authority + usage: Path to a cert file for the certificate authority + - name: client-certificate + usage: Path to a client certificate file for TLS + - name: client-key + usage: Path to a client key file for TLS + - name: cluster + usage: The name of the kubeconfig cluster to use + - name: context + usage: The name of the kubeconfig context to use + - name: insecure-skip-tls-verify + default_value: "false" + usage: | + If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure + - name: kubeconfig + usage: Path to the kubeconfig file to use for CLI requests. + - name: match-server-version + default_value: "false" + usage: Require server version to match client version + - name: namespace + shorthand: "n" + usage: If present, the namespace scope for this CLI request + - name: password + usage: Password for basic authentication to the API server + - name: profile + default_value: none + usage: | + Name of profile to capture. One of (none|cpu|heap|goroutine|threadcreate|block|mutex) + - name: profile-output + default_value: profile.pprof + usage: Name of the file to write the profile to + - name: request-timeout + default_value: "0" + usage: | + The length of time to wait before giving up on a single server request. Non-zero values should contain a corresponding time unit (e.g. 1s, 2m, 3h). A value of zero means don't timeout requests. + - name: server + shorthand: s + usage: The address and port of the Kubernetes API server + - name: tls-server-name + usage: | + Server name to use for server certificate validation. If it is not provided, the hostname used to contact the server is used + - name: token + usage: Bearer token for authentication to the API server + - name: user + usage: The name of the kubeconfig user to use + - name: username + usage: Username for basic authentication to the API server + - name: warnings-as-errors + default_value: "false" + usage: | + Treat warnings received from the server as errors and exit with a non-zero exit code +example: |4- + # set the labels and selector before creating a deployment/service pair. + kubectl create service clusterip my-svc --clusterip="None" -o yaml --dry-run=client | kubectl-kruise set selector --local -f - 'environment=qa' -o yaml | kubectl create -f - + kubectl create cloneset sample -o yaml --dry-run=client | kubectl label --local -f - environment=qa -o yaml | kubectl create -f - +see_also: + - kubectl-kruise set - Set specific features on objects diff --git a/docs/yaml/kubectl-kruise_set_serviceaccount.yaml b/docs/yaml/kubectl-kruise_set_serviceaccount.yaml new file mode 100644 index 0000000..5c70ddd --- /dev/null +++ b/docs/yaml/kubectl-kruise_set_serviceaccount.yaml @@ -0,0 +1,126 @@ +name: kubectl-kruise set serviceaccount +synopsis: Update ServiceAccount of a resource +description: |- + Update ServiceAccount of pod template resources. + + Possible resources (case insensitive) can be: + + replicationcontroller (rc), deployment (deploy), daemonset (ds), job, replicaset (rs), statefulset, cloneset (cs) +usage: kubectl-kruise set serviceaccount (-f FILENAME | TYPE NAME) SERVICE_ACCOUNT +options: + - name: all + default_value: "false" + usage: | + Select all resources, including uninitialized ones, in the namespace of the specified resource types + - name: allow-missing-template-keys + default_value: "true" + usage: | + If true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats. + - name: dry-run + default_value: none + usage: | + Must be "none", "server", or "client". If client strategy, only print the object that would be sent, without sending it. If server strategy, submit server-side request without persisting the resource. + - name: filename + shorthand: f + default_value: '[]' + usage: | + Filename, directory, or URL to files identifying the resource to get from a server. + - name: help + shorthand: h + default_value: "false" + usage: help for serviceaccount + - name: kustomize + shorthand: k + usage: | + Process the kustomization directory. This flag can't be used together with -f or -R. + - name: local + default_value: "false" + usage: | + If true, set serviceaccount will NOT contact api-server but run locally. + - name: output + shorthand: o + usage: | + Output format. One of: (json, yaml, name, go-template, go-template-file, template, templatefile, jsonpath, jsonpath-as-json, jsonpath-file). + - name: record + default_value: "false" + usage: | + Record current kubectl command in the resource annotation. If set to false, do not record the command. If set to true, record the command. If not set, default to updating the existing annotation value only if one already exists. + - name: recursive + shorthand: R + default_value: "false" + usage: | + Process the directory used in -f, --filename recursively. Useful when you want to manage related manifests organized within the same directory. + - name: show-managed-fields + default_value: "false" + usage: | + If true, keep the managedFields when printing objects in JSON or YAML format. + - name: template + usage: | + Template string or path to template file to use when -o=go-template, -o=go-template-file. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview]. +inherited_options: + - name: as + usage: | + Username to impersonate for the operation. User could be a regular user or a service account in a namespace. + - name: as-group + default_value: '[]' + usage: | + Group to impersonate for the operation, this flag can be repeated to specify multiple groups. + - name: as-uid + usage: UID to impersonate for the operation. + - name: cache-dir + default_value: $HOME/.kube/cache + usage: Default cache directory + - name: certificate-authority + usage: Path to a cert file for the certificate authority + - name: client-certificate + usage: Path to a client certificate file for TLS + - name: client-key + usage: Path to a client key file for TLS + - name: cluster + usage: The name of the kubeconfig cluster to use + - name: context + usage: The name of the kubeconfig context to use + - name: insecure-skip-tls-verify + default_value: "false" + usage: | + If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure + - name: kubeconfig + usage: Path to the kubeconfig file to use for CLI requests. + - name: match-server-version + default_value: "false" + usage: Require server version to match client version + - name: namespace + shorthand: "n" + usage: If present, the namespace scope for this CLI request + - name: password + usage: Password for basic authentication to the API server + - name: profile + default_value: none + usage: | + Name of profile to capture. One of (none|cpu|heap|goroutine|threadcreate|block|mutex) + - name: profile-output + default_value: profile.pprof + usage: Name of the file to write the profile to + - name: request-timeout + default_value: "0" + usage: | + The length of time to wait before giving up on a single server request. Non-zero values should contain a corresponding time unit (e.g. 1s, 2m, 3h). A value of zero means don't timeout requests. + - name: server + shorthand: s + usage: The address and port of the Kubernetes API server + - name: tls-server-name + usage: | + Server name to use for server certificate validation. If it is not provided, the hostname used to contact the server is used + - name: token + usage: Bearer token for authentication to the API server + - name: user + usage: The name of the kubeconfig user to use + - name: username + usage: Username for basic authentication to the API server + - name: warnings-as-errors + default_value: "false" + usage: | + Treat warnings received from the server as errors and exit with a non-zero exit code +example: " # Set Deployment nginx-deployment's ServiceAccount to serviceaccount1\n kubectl-kruise set serviceaccount cloneset sample serviceaccount1\n \n # Print the result (in yaml format) of updated cloneset with serviceaccount from local file, without hitting apiserver\n kubectl-kruise set sa -f CloneSet.yaml serviceaccount1 --local --dry-run=client -o yaml" +see_also: + - kubectl-kruise set - Set specific features on objects diff --git a/docs/yaml/kubectl-kruise_set_subject.yaml b/docs/yaml/kubectl-kruise_set_subject.yaml new file mode 100644 index 0000000..7ef3d05 --- /dev/null +++ b/docs/yaml/kubectl-kruise_set_subject.yaml @@ -0,0 +1,130 @@ +name: kubectl-kruise set subject +synopsis: | + Update User, Group or ServiceAccount in a RoleBinding/ClusterRoleBinding +description: | + Update User, Group or ServiceAccount in a RoleBinding/ClusterRoleBinding. +usage: kubectl-kruise set subject (-f FILENAME | TYPE NAME) [--user=username] [--group=groupname] [--serviceaccount=namespace:serviceaccountname] [--dry-run=server|client|none] +options: + - name: all + default_value: "false" + usage: | + Select all resources, including uninitialized ones, in the namespace of the specified resource types + - name: allow-missing-template-keys + default_value: "true" + usage: | + If true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats. + - name: dry-run + default_value: none + usage: | + Must be "none", "server", or "client". If client strategy, only print the object that would be sent, without sending it. If server strategy, submit server-side request without persisting the resource. + - name: filename + shorthand: f + default_value: '[]' + usage: | + Filename, directory, or URL to files the resource to update the subjects + - name: group + default_value: '[]' + usage: Groups to bind to the role + - name: help + shorthand: h + default_value: "false" + usage: help for subject + - name: kustomize + shorthand: k + usage: | + Process the kustomization directory. This flag can't be used together with -f or -R. + - name: local + default_value: "false" + usage: | + If true, set subject will NOT contact api-server but run locally. + - name: output + shorthand: o + usage: | + Output format. One of: (json, yaml, name, go-template, go-template-file, template, templatefile, jsonpath, jsonpath-as-json, jsonpath-file). + - name: recursive + shorthand: R + default_value: "false" + usage: | + Process the directory used in -f, --filename recursively. Useful when you want to manage related manifests organized within the same directory. + - name: selector + shorthand: l + usage: | + Selector (label query) to filter on, not including uninitialized ones, supports '=', '==', and '!='.(e.g. -l key1=value1,key2=value2) + - name: serviceaccount + default_value: '[]' + usage: Service accounts to bind to the role + - name: show-managed-fields + default_value: "false" + usage: | + If true, keep the managedFields when printing objects in JSON or YAML format. + - name: template + usage: | + Template string or path to template file to use when -o=go-template, -o=go-template-file. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview]. + - name: user + default_value: '[]' + usage: Usernames to bind to the role +inherited_options: + - name: as + usage: | + Username to impersonate for the operation. User could be a regular user or a service account in a namespace. + - name: as-group + default_value: '[]' + usage: | + Group to impersonate for the operation, this flag can be repeated to specify multiple groups. + - name: as-uid + usage: UID to impersonate for the operation. + - name: cache-dir + default_value: $HOME/.kube/cache + usage: Default cache directory + - name: certificate-authority + usage: Path to a cert file for the certificate authority + - name: client-certificate + usage: Path to a client certificate file for TLS + - name: client-key + usage: Path to a client key file for TLS + - name: cluster + usage: The name of the kubeconfig cluster to use + - name: context + usage: The name of the kubeconfig context to use + - name: insecure-skip-tls-verify + default_value: "false" + usage: | + If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure + - name: kubeconfig + usage: Path to the kubeconfig file to use for CLI requests. + - name: match-server-version + default_value: "false" + usage: Require server version to match client version + - name: namespace + shorthand: "n" + usage: If present, the namespace scope for this CLI request + - name: password + usage: Password for basic authentication to the API server + - name: profile + default_value: none + usage: | + Name of profile to capture. One of (none|cpu|heap|goroutine|threadcreate|block|mutex) + - name: profile-output + default_value: profile.pprof + usage: Name of the file to write the profile to + - name: request-timeout + default_value: "0" + usage: | + The length of time to wait before giving up on a single server request. Non-zero values should contain a corresponding time unit (e.g. 1s, 2m, 3h). A value of zero means don't timeout requests. + - name: server + shorthand: s + usage: The address and port of the Kubernetes API server + - name: tls-server-name + usage: | + Server name to use for server certificate validation. If it is not provided, the hostname used to contact the server is used + - name: token + usage: Bearer token for authentication to the API server + - name: username + usage: Username for basic authentication to the API server + - name: warnings-as-errors + default_value: "false" + usage: | + Treat warnings received from the server as errors and exit with a non-zero exit code +example: " # Update a ClusterRoleBinding for serviceaccount1\n kubectl-kruise set subject clusterrolebinding admin --serviceaccount=namespace:serviceaccount1\n \n # Update a RoleBinding for user1, user2, and group1\n kubectl-kruise set subject rolebinding admin --user=user1 --user=user2 --group=group1\n \n # Print the result (in yaml format) of updating rolebinding subjects from a local, without hitting the server\n kubectl create rolebinding admin --role=admin --user=admin -o yaml --dry-run=client | kubectl-kruise set subject --local -f - --user=foo -o yaml" +see_also: + - kubectl-kruise set - Set specific features on objects diff --git a/go.mod b/go.mod index 55af4eb..e8f86aa 100644 --- a/go.mod +++ b/go.mod @@ -1,70 +1,64 @@ module github.com/openkruise/kruise-tools -go 1.18 +go 1.20 require ( - github.com/go-errors/errors v1.0.1 + github.com/go-errors/errors v1.4.2 github.com/lithammer/dedent v1.1.0 - github.com/moby/term v0.0.0-20210619224110-3f7ff695adc6 - github.com/openkruise/kruise-api v1.5.0 - github.com/openkruise/kruise-rollout-api v0.5.0 - github.com/spf13/cobra v1.4.0 + github.com/moby/term v0.0.0-20221205130635-1aeaba878587 + github.com/openkruise/kruise-api v1.7.1 + github.com/openkruise/kruise-rollout-api v0.5.1 + github.com/spf13/cobra v1.8.1 github.com/spf13/pflag v1.0.5 - github.com/stretchr/testify v1.8.2 - k8s.io/api v0.24.16 - k8s.io/apimachinery v0.24.16 - k8s.io/cli-runtime v0.24.0 - k8s.io/client-go v0.24.1 - k8s.io/component-base v0.24.0 - k8s.io/klog/v2 v2.80.1 - k8s.io/kubectl v0.24.0 - k8s.io/utils v0.0.0-20221107191617-1a15be271d1d - sigs.k8s.io/controller-runtime v0.12.1 - sigs.k8s.io/kustomize/api v0.11.4 - sigs.k8s.io/kustomize/kyaml v0.13.6 + github.com/stretchr/testify v1.9.0 + k8s.io/api v0.28.9 + k8s.io/apimachinery v0.28.9 + k8s.io/cli-runtime v0.28.9 + k8s.io/client-go v0.28.9 + k8s.io/component-base v0.28.9 + k8s.io/klog/v2 v2.120.1 + k8s.io/kubectl v0.28.9 + k8s.io/utils v0.0.0-20230726121419-3b25d923346b + sigs.k8s.io/controller-runtime v0.16.6 + sigs.k8s.io/kustomize/api v0.13.5-0.20230601165947-6ce0bf390ce3 + sigs.k8s.io/kustomize/kyaml v0.14.3-0.20230601165947-6ce0bf390ce3 ) require ( - cloud.google.com/go v0.81.0 // indirect github.com/Azure/go-ansiterm v0.0.0-20210617225240-d185dfc1b5a1 // indirect - github.com/Azure/go-autorest v14.2.0+incompatible // indirect - github.com/Azure/go-autorest/autorest v0.11.18 // indirect - github.com/Azure/go-autorest/autorest/adal v0.9.23 // indirect - github.com/Azure/go-autorest/autorest/date v0.3.0 // indirect - github.com/Azure/go-autorest/logger v0.2.1 // indirect - github.com/Azure/go-autorest/tracing v0.6.0 // indirect - github.com/MakeNowJust/heredoc v0.0.0-20170808103936-bb23615498cd // indirect + github.com/MakeNowJust/heredoc v1.0.0 // indirect github.com/asaskevich/govalidator v0.0.0-20190424111038-f61b66f89f4a // indirect - github.com/chai2010/gettext-go v0.0.0-20160711120539-c6fed771bfd5 // indirect + github.com/chai2010/gettext-go v1.0.2 // indirect + github.com/cpuguy83/go-md2man/v2 v2.0.4 // indirect github.com/davecgh/go-spew v1.1.1 // indirect - github.com/emicklei/go-restful v2.16.0+incompatible // indirect - github.com/evanphx/json-patch v4.12.0+incompatible // indirect + github.com/emicklei/go-restful/v3 v3.11.0 // indirect + github.com/evanphx/json-patch v5.6.0+incompatible // indirect + github.com/evanphx/json-patch/v5 v5.6.0 // indirect github.com/exponent-io/jsonpath v0.0.0-20151013193312-d6023ce2651d // indirect github.com/fatih/camelcase v1.0.0 // indirect - github.com/fvbommel/sortorder v1.0.1 // indirect - github.com/go-logr/logr v1.2.3 // indirect - github.com/go-openapi/jsonpointer v0.19.5 // indirect - github.com/go-openapi/jsonreference v0.20.0 // indirect - github.com/go-openapi/swag v0.19.14 // indirect + github.com/fvbommel/sortorder v1.1.0 // indirect + github.com/go-logr/logr v1.4.1 // indirect + github.com/go-openapi/jsonpointer v0.19.6 // indirect + github.com/go-openapi/jsonreference v0.20.2 // indirect + github.com/go-openapi/swag v0.22.3 // indirect github.com/gogo/protobuf v1.3.2 // indirect - github.com/golang-jwt/jwt/v4 v4.5.0 // indirect - github.com/golang/protobuf v1.5.2 // indirect + github.com/golang/protobuf v1.5.4 // indirect + github.com/golang-jwt/jwt/v4 v4.5.1 // indirect github.com/google/btree v1.0.1 // indirect - github.com/google/gnostic v0.5.7-v3refs // indirect - github.com/google/go-cmp v0.5.9 // indirect - github.com/google/gofuzz v1.1.0 // indirect + github.com/google/gnostic-models v0.6.8 // indirect + github.com/google/go-cmp v0.6.0 // indirect + github.com/google/gofuzz v1.2.0 // indirect github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510 // indirect - github.com/google/uuid v1.3.0 // indirect + github.com/google/uuid v1.6.0 // indirect github.com/gregjones/httpcache v0.0.0-20180305231024-9cad4c3443a7 // indirect github.com/imdario/mergo v0.3.12 // indirect - github.com/inconshreveable/mousetrap v1.0.0 // indirect + github.com/inconshreveable/mousetrap v1.1.0 // indirect github.com/jonboulle/clockwork v0.2.2 // indirect github.com/josharian/intern v1.0.0 // indirect github.com/json-iterator/go v1.1.12 // indirect github.com/liggitt/tabwriter v0.0.0-20181228230101-89fcab3d43de // indirect - github.com/mailru/easyjson v0.7.6 // indirect - github.com/mitchellh/go-wordwrap v1.0.0 // indirect - github.com/mitchellh/mapstructure v1.4.1 // indirect + github.com/mailru/easyjson v0.7.7 // indirect + github.com/mitchellh/go-wordwrap v1.0.1 // indirect github.com/moby/spdystream v0.2.0 // indirect github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect github.com/modern-go/reflect2 v1.0.2 // indirect @@ -73,25 +67,26 @@ require ( github.com/peterbourgon/diskv v2.0.1+incompatible // indirect github.com/pkg/errors v0.9.1 // indirect github.com/pmezard/go-difflib v1.0.0 // indirect - github.com/russross/blackfriday v1.5.2 // indirect - github.com/xlab/treeprint v0.0.0-20181112141820-a009c3971eca // indirect - go.starlark.net v0.0.0-20200306205701-8dd3e2ee1dd5 // indirect - golang.org/x/crypto v0.21.0 // indirect - golang.org/x/net v0.23.0 // indirect - golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b // indirect - golang.org/x/sys v0.18.0 // indirect - golang.org/x/term v0.18.0 // indirect + github.com/russross/blackfriday/v2 v2.1.0 // indirect + github.com/xlab/treeprint v1.2.0 // indirect + go.starlark.net v0.0.0-20230525235612-a134d8f9ddca // indirect + golang.org/x/exp v0.0.0-20220722155223-a9213eeb770e // indirect + golang.org/x/net v0.24.0 // indirect + golang.org/x/oauth2 v0.17.0 // indirect + golang.org/x/sync v0.5.0 // indirect + golang.org/x/sys v0.19.0 // indirect + golang.org/x/term v0.19.0 // indirect golang.org/x/text v0.14.0 // indirect - golang.org/x/time v0.0.0-20220210224613-90d013bbcef8 // indirect - google.golang.org/appengine v1.6.7 // indirect - google.golang.org/protobuf v1.28.1 // indirect + golang.org/x/time v0.3.0 // indirect + google.golang.org/appengine v1.6.8 // indirect + google.golang.org/protobuf v1.33.0 // indirect gopkg.in/inf.v0 v0.9.1 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect - k8s.io/kube-openapi v0.0.0-20220328201542-3ee0da9b0b42 // indirect + k8s.io/kube-openapi v0.0.0-20230717233707-2695361300d9 // indirect sigs.k8s.io/gateway-api v0.5.1 // indirect - sigs.k8s.io/json v0.0.0-20211208200746-9f7c6b3444d2 // indirect - sigs.k8s.io/kustomize/kustomize/v4 v4.5.4 // indirect - sigs.k8s.io/structured-merge-diff/v4 v4.2.3 // indirect - sigs.k8s.io/yaml v1.3.0 // indirect + sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect + sigs.k8s.io/kustomize/kustomize/v5 v5.0.4-0.20230601165947-6ce0bf390ce3 // indirect + sigs.k8s.io/structured-merge-diff/v4 v4.4.1 // indirect + sigs.k8s.io/yaml v1.4.0 // indirect ) diff --git a/go.sum b/go.sum index 1eae903..bde7616 100644 --- a/go.sum +++ b/go.sum @@ -1,322 +1,115 @@ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= -cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= -cloud.google.com/go v0.38.0/go.mod h1:990N+gfupTy94rShfmMCWGDn0LpTmnzTp2qbd1dvSRU= -cloud.google.com/go v0.44.1/go.mod h1:iSa0KzasP4Uvy3f1mN/7PiObzGgflwredwwASm/v6AU= -cloud.google.com/go v0.44.2/go.mod h1:60680Gw3Yr4ikxnPRS/oxxkBccT6SA1yMk63TGekxKY= -cloud.google.com/go v0.45.1/go.mod h1:RpBamKRgapWJb87xiFSdk4g1CME7QZg3uwTez+TSTjc= -cloud.google.com/go v0.46.3/go.mod h1:a6bKKbmY7er1mI7TEI4lsAkts/mkhTSZK8w33B4RAg0= -cloud.google.com/go v0.50.0/go.mod h1:r9sluTvynVuxRIOHXQEHMFffphuXHOMZMycpNR5e6To= -cloud.google.com/go v0.52.0/go.mod h1:pXajvRH/6o3+F9jDHZWQ5PbGhn+o8w9qiu/CffaVdO4= -cloud.google.com/go v0.53.0/go.mod h1:fp/UouUEsRkN6ryDKNW/Upv/JBKnv6WDthjR6+vze6M= -cloud.google.com/go v0.54.0/go.mod h1:1rq2OEkV3YMf6n/9ZvGWI3GWw0VoqH/1x2nd8Is/bPc= -cloud.google.com/go v0.56.0/go.mod h1:jr7tqZxxKOVYizybht9+26Z/gUq7tiRzu+ACVAMbKVk= -cloud.google.com/go v0.57.0/go.mod h1:oXiQ6Rzq3RAkkY7N6t3TcE6jE+CIBBbA36lwQ1JyzZs= -cloud.google.com/go v0.62.0/go.mod h1:jmCYTdRCQuc1PHIIJ/maLInMho30T/Y0M4hTdTShOYc= -cloud.google.com/go v0.65.0/go.mod h1:O5N8zS7uWy9vkA9vayVHs65eM1ubvY4h553ofrNHObY= -cloud.google.com/go v0.72.0/go.mod h1:M+5Vjvlc2wnp6tjzE102Dw08nGShTscUx2nZMufOKPI= -cloud.google.com/go v0.74.0/go.mod h1:VV1xSbzvo+9QJOxLDaJfTjx5e+MePCpCWwvftOeQmWk= -cloud.google.com/go v0.78.0/go.mod h1:QjdrLG0uq+YwhjoVOLsS1t7TW8fs36kLs4XO5R5ECHg= -cloud.google.com/go v0.79.0/go.mod h1:3bzgcEeQlzbuEAYu4mrWhKqWjmpprinYgKJLgKHnbb8= -cloud.google.com/go v0.81.0 h1:at8Tk2zUz63cLPR0JPWm5vp77pEZmzxEQBEfRKn1VV8= -cloud.google.com/go v0.81.0/go.mod h1:mk/AM35KwGk/Nm2YSeZbxXdrNK3KZOYHmLkOqC2V6E0= -cloud.google.com/go/bigquery v1.0.1/go.mod h1:i/xbL2UlR5RvWAURpBYZTtm/cXjCha9lbfbpx4poX+o= -cloud.google.com/go/bigquery v1.3.0/go.mod h1:PjpwJnslEMmckchkHFfq+HTD2DmtT67aNFKH1/VBDHE= -cloud.google.com/go/bigquery v1.4.0/go.mod h1:S8dzgnTigyfTmLBfrtrhyYhwRxG72rYxvftPBK2Dvzc= -cloud.google.com/go/bigquery v1.5.0/go.mod h1:snEHRnqQbz117VIFhE8bmtwIDY80NLUZUMb4Nv6dBIg= -cloud.google.com/go/bigquery v1.7.0/go.mod h1://okPTzCYNXSlb24MZs83e2Do+h+VXtc4gLoIoXIAPc= -cloud.google.com/go/bigquery v1.8.0/go.mod h1:J5hqkt3O0uAFnINi6JXValWIb1v0goeZM77hZzJN/fQ= -cloud.google.com/go/datastore v1.0.0/go.mod h1:LXYbyblFSglQ5pkeyhO+Qmw7ukd3C+pD7TKLgZqpHYE= -cloud.google.com/go/datastore v1.1.0/go.mod h1:umbIZjpQpHh4hmRpGhH4tLFup+FVzqBi1b3c64qFpCk= -cloud.google.com/go/firestore v1.1.0/go.mod h1:ulACoGHTpvq5r8rxGJ4ddJZBZqakUQqClKRT5SZwBmk= -cloud.google.com/go/pubsub v1.0.1/go.mod h1:R0Gpsv3s54REJCy4fxDixWD93lHJMoZTyQ2kNxGRt3I= -cloud.google.com/go/pubsub v1.1.0/go.mod h1:EwwdRX2sKPjnvnqCa270oGRyludottCI76h+R3AArQw= -cloud.google.com/go/pubsub v1.2.0/go.mod h1:jhfEVHT8odbXTkndysNHCcx0awwzvfOlguIAii9o8iA= -cloud.google.com/go/pubsub v1.3.1/go.mod h1:i+ucay31+CNRpDW4Lu78I4xXG+O1r/MAHgjpRVR+TSU= -cloud.google.com/go/storage v1.0.0/go.mod h1:IhtSnM/ZTZV8YYJWCY8RULGVqBDmpoyjwiyrjsg+URw= -cloud.google.com/go/storage v1.5.0/go.mod h1:tpKbwo567HUNpVclU5sGELwQWBDZ8gh0ZeosJ0Rtdos= -cloud.google.com/go/storage v1.6.0/go.mod h1:N7U0C8pVQ/+NIKOBQyamJIeKQKkZ+mxpohlUTyfDhBk= -cloud.google.com/go/storage v1.8.0/go.mod h1:Wv1Oy7z6Yz3DshWRJFhqM/UCfaWIRTdp0RXyy7KQOVs= -cloud.google.com/go/storage v1.10.0/go.mod h1:FLPqc6j+Ki4BU591ie1oL6qBQGu2Bl/tZ9ullr3+Kg0= -dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= github.com/Azure/go-ansiterm v0.0.0-20210617225240-d185dfc1b5a1 h1:UQHMgLO+TxOElx5B5HZ4hJQsoJ/PvUvKRhJHDQXO8P8= github.com/Azure/go-ansiterm v0.0.0-20210617225240-d185dfc1b5a1/go.mod h1:xomTg63KZ2rFqZQzSB4Vz2SUXa1BpHTVz9L5PTmPC4E= -github.com/Azure/go-autorest v14.2.0+incompatible h1:V5VMDjClD3GiElqLWO7mz2MxNAK/vTfRHdAubSIPRgs= -github.com/Azure/go-autorest v14.2.0+incompatible/go.mod h1:r+4oMnoxhatjLLJ6zxSWATqVooLgysK6ZNox3g/xq24= -github.com/Azure/go-autorest/autorest v0.11.18 h1:90Y4srNYrwOtAgVo3ndrQkTYn6kf1Eg/AjTFJ8Is2aM= -github.com/Azure/go-autorest/autorest v0.11.18/go.mod h1:dSiJPy22c3u0OtOKDNttNgqpNFY/GeWa7GH/Pz56QRA= -github.com/Azure/go-autorest/autorest/adal v0.9.13/go.mod h1:W/MM4U6nLxnIskrw4UwWzlHfGjwUS50aOsc/I3yuU8M= -github.com/Azure/go-autorest/autorest/adal v0.9.23 h1:Yepx8CvFxwNKpH6ja7RZ+sKX+DWYNldbLiALMC3BTz8= -github.com/Azure/go-autorest/autorest/adal v0.9.23/go.mod h1:5pcMqFkdPhviJdlEy3kC/v1ZLnQl0MH6XA5YCcMhy4c= -github.com/Azure/go-autorest/autorest/date v0.3.0 h1:7gUk1U5M/CQbp9WoqinNzJar+8KY+LPI6wiWrP/myHw= -github.com/Azure/go-autorest/autorest/date v0.3.0/go.mod h1:BI0uouVdmngYNUzGWeSYnokU+TrmwEsOqdt8Y6sso74= -github.com/Azure/go-autorest/autorest/mocks v0.4.1 h1:K0laFcLE6VLTOwNgSxaGbUcLPuGXlNkbVvq4cW4nIHk= -github.com/Azure/go-autorest/autorest/mocks v0.4.1/go.mod h1:LTp+uSrOhSkaKrUy935gNZuuIPPVsHlr9DSOxSayd+k= -github.com/Azure/go-autorest/logger v0.2.1 h1:IG7i4p/mDa2Ce4TRyAO8IHnVhAVF3RFU+ZtXWSmf4Tg= -github.com/Azure/go-autorest/logger v0.2.1/go.mod h1:T9E3cAhj2VqvPOtCYAvby9aBXkZmbF5NWuPV8+WeEW8= -github.com/Azure/go-autorest/tracing v0.6.0 h1:TYi4+3m5t6K48TGI9AUdb+IzbnSxvnvUMfuitfgcfuo= -github.com/Azure/go-autorest/tracing v0.6.0/go.mod h1:+vhtPC754Xsa23ID7GlGsrdKBpUA79WCAKPPZVC2DeU= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= -github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo= -github.com/MakeNowJust/heredoc v0.0.0-20170808103936-bb23615498cd h1:sjQovDkwrZp8u+gxLtPgKGjk5hCxuy2hrRejBTA9xFU= -github.com/MakeNowJust/heredoc v0.0.0-20170808103936-bb23615498cd/go.mod h1:64YHyfSL2R96J44Nlwm39UHepQbyR5q10x7iYa1ks2E= -github.com/NYTimes/gziphandler v0.0.0-20170623195520-56545f4a5d46/go.mod h1:3wb06e3pkSAbeQ52E9H9iFoQsEEwGN64994WTCIhntQ= -github.com/OneOfOne/xxhash v1.2.2/go.mod h1:HSdplMjZKSmBqAxg5vPj2TmRDmfkzw+cTzAElWljhcU= -github.com/PuerkitoBio/purell v1.1.1/go.mod h1:c11w/QuzBsJSee3cPx9rAFu61PvFxuPbtSwDGJws/X0= -github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578/go.mod h1:uGdkoq3SwY9Y+13GIhn11/XLaGBb4BfwItxLd5jeuXE= -github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= -github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= -github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0= -github.com/alecthomas/units v0.0.0-20190717042225-c3de453c63f4/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0= -github.com/alecthomas/units v0.0.0-20190924025748-f65c72e2690d/go.mod h1:rBZYJk541a8SKzHPHnH3zbiI+7dagKZ0cgpgrD7Fyho= -github.com/antihax/optional v1.0.0/go.mod h1:uupD/76wgC+ih3iEmQUL+0Ugr19nfwCT1kdvxnR2qWY= -github.com/armon/circbuf v0.0.0-20150827004946-bbbad097214e/go.mod h1:3U/XgcO3hCbHZ8TKRvWD2dDTCfh9M9ya+I9JpbB7O8o= -github.com/armon/go-metrics v0.0.0-20180917152333-f0300d1749da/go.mod h1:Q73ZrmVTwzkszR9V5SSuryQ31EELlFMUz1kKyl939pY= -github.com/armon/go-radix v0.0.0-20180808171621-7fddfc383310/go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgIH9cCH8= +github.com/MakeNowJust/heredoc v1.0.0 h1:cXCdzVdstXyiTqTvfqk9SDHpKNjxuom+DOlyEeQ4pzQ= +github.com/MakeNowJust/heredoc v1.0.0/go.mod h1:mG5amYoWBHf8vpLOuehzbGGw0EHxpZZ6lCpQ4fNJ8LE= github.com/armon/go-socks5 v0.0.0-20160902184237-e75332964ef5 h1:0CwZNZbxp69SHPdPJAN/hZIm0C4OItdklCFmMRWYpio= -github.com/armon/go-socks5 v0.0.0-20160902184237-e75332964ef5/go.mod h1:wHh0iHkYZB8zMSxRWpUBQtwG5a7fFgvEO+odwuTv2gs= github.com/asaskevich/govalidator v0.0.0-20190424111038-f61b66f89f4a h1:idn718Q4B6AGu/h5Sxe66HYVdqdGu2l9Iebqhi/AEoA= github.com/asaskevich/govalidator v0.0.0-20190424111038-f61b66f89f4a/go.mod h1:lB+ZfQJz7igIIfQNfa7Ml4HSf2uFQQRzpGGRXenZAgY= -github.com/benbjohnson/clock v1.0.3/go.mod h1:bGMdMPoPVvcYyt1gHDf4J2KE153Yf9BuiUKYMaxlTDM= -github.com/benbjohnson/clock v1.1.0/go.mod h1:J11/hYXuz8f4ySSvYwY0FKfm+ezbsZBKZxNJlLklBHA= -github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q= -github.com/beorn7/perks v1.0.0/go.mod h1:KWe93zE9D1o94FZ5RNwFwVgaQK1VOXiVxmqh+CedLV8= github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM= -github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw= -github.com/bgentry/speakeasy v0.1.0/go.mod h1:+zsyZBPWlz7T6j88CTgSN5bM796AkVf0kBD4zp0CCIs= -github.com/bketelsen/crypt v0.0.4/go.mod h1:aI6NrJ0pMGgvZKL1iVgXLnfIFJtfV+bKCoqOes/6LfM= -github.com/blang/semver/v4 v4.0.0/go.mod h1:IbckMUScFkM3pff0VJDNKRiT6TG/YpiHIM2yvyW5YoQ= github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= -github.com/cespare/xxhash v1.1.0 h1:a6HrQnmkObjyL+Gs60czilIUGqrzKutQD6XZog3p+ko= -github.com/cespare/xxhash v1.1.0/go.mod h1:XrSqR1VqqWfGrhpAt58auRo0WTKS1nRRg3ghfAqPWnc= -github.com/cespare/xxhash/v2 v2.1.1/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= -github.com/cespare/xxhash/v2 v2.1.2 h1:YRXhKfTDauu4ajMg1TPgFO5jnlC2HCbmLXMcTG5cbYE= -github.com/cespare/xxhash/v2 v2.1.2/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= -github.com/chai2010/gettext-go v0.0.0-20160711120539-c6fed771bfd5 h1:7aWHqerlJ41y6FOsEUvknqgXnGmJyJSbjhAWq5pO4F8= -github.com/chai2010/gettext-go v0.0.0-20160711120539-c6fed771bfd5/go.mod h1:/iP1qXHoty45bqomnu2LM+VVyAEdWN+vtSHGlQgyxbw= +github.com/cespare/xxhash/v2 v2.2.0 h1:DC2CZ1Ep5Y4k3ZQ899DldepgrayRUGE6BBZ/cd9Cj44= +github.com/chai2010/gettext-go v1.0.2 h1:1Lwwip6Q2QGsAdl/ZKPCwTe9fe0CjlUbqj5bFNSjIRk= +github.com/chai2010/gettext-go v1.0.2/go.mod h1:y+wnP2cHYaVj19NZhYKAwEMH2CI1gNHeQQ+5AjwawxA= github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI= github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e/go.mod h1:nSuG5e5PlCu98SY8svDHJxuZscDgtXS6KTTbou5AhLI= github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU= github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= -github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc= -github.com/cncf/udpa/go v0.0.0-20200629203442-efcf912fb354/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk= -github.com/cncf/udpa/go v0.0.0-20201120205902-5459f2c99403/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk= -github.com/cncf/xds/go v0.0.0-20210312221358-fbca930ec8ed/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= -github.com/coreos/go-semver v0.3.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk= -github.com/coreos/go-systemd/v22 v22.3.2/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= -github.com/cpuguy83/go-md2man/v2 v2.0.0/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU= -github.com/cpuguy83/go-md2man/v2 v2.0.1/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= +github.com/cpuguy83/go-md2man/v2 v2.0.4 h1:wfIWP927BUkWJb2NmU/kNDYIBTh/ziUX91+lVfRxZq4= +github.com/cpuguy83/go-md2man/v2 v2.0.4/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= -github.com/creack/pty v1.1.11 h1:07n33Z8lZxZ2qwegKbObQohDhXDQxiMMz1NOUGYlesw= -github.com/creack/pty v1.1.11/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= +github.com/creack/pty v1.1.18 h1:n56/Zwd5o6whRC5PMGretI4IdRLlmBXYNjScPaBgsbY= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/daviddengcn/go-colortext v0.0.0-20160507010035-511bcaf42ccd/go.mod h1:dv4zxwHi5C/8AeI+4gX4dCWOIvNi7I6JCSX0HvlKPgE= -github.com/docker/distribution v2.8.1+incompatible/go.mod h1:J2gT2udsDAN96Uj4KfcMRqY0/ypR+oyYUYmja8H+y+w= -github.com/docopt/docopt-go v0.0.0-20180111231733-ee0de3bc6815/go.mod h1:WwZ+bS3ebgob9U8Nd0kOddGdZWjyMGR8Wziv+TBNwSE= -github.com/elazarl/goproxy v0.0.0-20180725130230-947c36da3153 h1:yUdfgN0XgIJw7foRItutHYUIhlcKzcSf5vDpdhQAKTc= -github.com/elazarl/goproxy v0.0.0-20180725130230-947c36da3153/go.mod h1:/Zj4wYkgs4iZTTu3o/KG3Itv/qCCa8VVMlb3i9OVuzc= -github.com/emicklei/go-restful v0.0.0-20170410110728-ff4f55a20633/go.mod h1:otzb+WCGbkyDHkqmQmT5YD2WR4BBwUdeQoFo8l/7tVs= -github.com/emicklei/go-restful v2.9.5+incompatible/go.mod h1:otzb+WCGbkyDHkqmQmT5YD2WR4BBwUdeQoFo8l/7tVs= -github.com/emicklei/go-restful v2.16.0+incompatible h1:rgqiKNjTnFQA6kkhFe16D8epTksy9HQ1MyrbDXSdYhM= -github.com/emicklei/go-restful v2.16.0+incompatible/go.mod h1:otzb+WCGbkyDHkqmQmT5YD2WR4BBwUdeQoFo8l/7tVs= -github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= +github.com/emicklei/go-restful/v3 v3.11.0 h1:rAQeMHw1c7zTmncogyy8VvRZwtkmkZ4FxERmMY4rD+g= +github.com/emicklei/go-restful/v3 v3.11.0/go.mod h1:6n3XBCmQQb25CM2LCACGz8ukIrRry+4bhvbpWn3mrbc= github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= -github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1mIlRU8Am5FuJP05cCM98= -github.com/envoyproxy/go-control-plane v0.9.7/go.mod h1:cwu0lG7PUMfa9snN8LXBig5ynNVH9qI8YYLbd1fK2po= -github.com/envoyproxy/go-control-plane v0.9.9-0.20201210154907-fd9021fe5dad/go.mod h1:cXg6YxExXjJnVBQHBLXeUAgxn2UodCpnH306RInaBQk= -github.com/envoyproxy/go-control-plane v0.9.9-0.20210217033140-668b12f5399d/go.mod h1:cXg6YxExXjJnVBQHBLXeUAgxn2UodCpnH306RInaBQk= -github.com/envoyproxy/go-control-plane v0.9.9-0.20210512163311-63b5d3c536b0/go.mod h1:hliV/p42l8fGbc6Y9bQ70uLwIvmJyVE5k4iMKlh8wCQ= github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= -github.com/evanphx/json-patch v4.11.0+incompatible/go.mod h1:50XU6AFN0ol/bzJsmQLiYLvXMP4fmwYFNcr97nuDLSk= -github.com/evanphx/json-patch v4.12.0+incompatible h1:4onqiflcdA9EOZ4RxV643DvftH5pOlLGNtQ5lPWQu84= -github.com/evanphx/json-patch v4.12.0+incompatible/go.mod h1:50XU6AFN0ol/bzJsmQLiYLvXMP4fmwYFNcr97nuDLSk= +github.com/evanphx/json-patch v5.6.0+incompatible h1:jBYDEEiFBPxA0v50tFdvOzQQTCvpL6mnFh5mB2/l16U= +github.com/evanphx/json-patch v5.6.0+incompatible/go.mod h1:50XU6AFN0ol/bzJsmQLiYLvXMP4fmwYFNcr97nuDLSk= +github.com/evanphx/json-patch/v5 v5.6.0 h1:b91NhWfaz02IuVxO9faSllyAtNXHMPkC5J8sJCLunww= +github.com/evanphx/json-patch/v5 v5.6.0/go.mod h1:G79N1coSVB93tBe7j6PhzjmR3/2VvlbKOFpnXhI9Bw4= github.com/exponent-io/jsonpath v0.0.0-20151013193312-d6023ce2651d h1:105gxyaGwCFad8crR9dcMQWvV9Hvulu6hwUh4tWPJnM= github.com/exponent-io/jsonpath v0.0.0-20151013193312-d6023ce2651d/go.mod h1:ZZMPRZwes7CROmyNKgQzC3XPs6L/G2EJLHddWejkmf4= github.com/fatih/camelcase v1.0.0 h1:hxNvNX/xYBp0ovncs8WyWZrOrpBNub/JfaMvbURyft8= github.com/fatih/camelcase v1.0.0/go.mod h1:yN2Sb0lFhZJUdVvtELVWefmrXpuZESvPmqwoZc+/fpc= -github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4= -github.com/felixge/httpsnoop v1.0.1/go.mod h1:m8KPJKqk1gH5J9DgRY2ASl2lWCfGKXixSwevea8zH2U= -github.com/form3tech-oss/jwt-go v3.2.2+incompatible/go.mod h1:pbq4aXjuKjdthFRnoDwaVPLA+WlJuPGy+QneDUgJi2k= -github.com/form3tech-oss/jwt-go v3.2.3+incompatible/go.mod h1:pbq4aXjuKjdthFRnoDwaVPLA+WlJuPGy+QneDUgJi2k= -github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo= -github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4IgpuI1SZQ= -github.com/fsnotify/fsnotify v1.5.1 h1:mZcQUHVQUQWoPXXtuf9yuEXKudkV2sx1E06UadKWpgI= -github.com/fvbommel/sortorder v1.0.1 h1:dSnXLt4mJYH25uDDGa3biZNQsozaUWDSWeKJ0qqFfzE= -github.com/fvbommel/sortorder v1.0.1/go.mod h1:uk88iVf1ovNn1iLfgUVU2F9o5eO30ui720w+kxuqRs0= -github.com/getkin/kin-openapi v0.76.0/go.mod h1:660oXbgy5JFMKreazJaQTw7o+X00qeSyhcnluiMv+Xg= -github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04= -github.com/go-errors/errors v1.0.1 h1:LUHzmkK3GUKUrL/1gfBUxAHzcev3apQlezX/+O7ma6w= -github.com/go-errors/errors v1.0.1/go.mod h1:f4zRHt4oKfwPJE5k8C9vpYG+aDHdBFUsgrm6/TyX73Q= -github.com/go-gl/glfw v0.0.0-20190409004039-e6da0acd62b1/go.mod h1:vR7hzQXu2zJy9AVAgeJqvqgH9Q5CA+iKCZ2gyEVpxRU= -github.com/go-gl/glfw/v3.3/glfw v0.0.0-20191125211704-12ad95a8df72/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= -github.com/go-gl/glfw/v3.3/glfw v0.0.0-20200222043503-6f7a984d4dc4/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= -github.com/go-kit/kit v0.8.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as= -github.com/go-kit/kit v0.9.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as= -github.com/go-kit/log v0.1.0/go.mod h1:zbhenjAZHb184qTLMA9ZjW7ThYL0H2mk7Q6pNt4vbaY= -github.com/go-logfmt/logfmt v0.3.0/go.mod h1:Qt1PoO58o5twSAckw1HlFXLmHsOX5/0LbT9GBnD5lWE= -github.com/go-logfmt/logfmt v0.4.0/go.mod h1:3RMwSq7FuexP4Kalkev3ejPJsZTpXXBr9+V4qmtdjCk= -github.com/go-logfmt/logfmt v0.5.0/go.mod h1:wCYkCAKZfumFQihp8CzCvQ3paCTfi41vtzG1KdI/P7A= -github.com/go-logr/logr v0.1.0/go.mod h1:ixOQHD9gLJUVQQ2ZOR7zLEifBX6tGkNJF4QyIY7sIas= -github.com/go-logr/logr v0.2.0/go.mod h1:z6/tIYblkpsD+a4lm/fGIIU9mZ+XfAiaFtq7xTgseGU= -github.com/go-logr/logr v1.2.0/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= -github.com/go-logr/logr v1.2.3 h1:2DntVwHkVopvECVRSlL5PSo9eG+cAkDCuckLubN+rq0= -github.com/go-logr/logr v1.2.3/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= -github.com/go-logr/zapr v1.2.0 h1:n4JnPI1T3Qq1SFEi/F8rwLrZERp2bso19PJZDB9dayk= -github.com/go-logr/zapr v1.2.0/go.mod h1:Qa4Bsj2Vb+FAVeAKsLD8RLQ+YRJB8YDmOAKxaBQf7Ro= -github.com/go-openapi/jsonpointer v0.19.3/go.mod h1:Pl9vOtqEWErmShwVjC8pYs9cog34VGT37dQOVbmoatg= -github.com/go-openapi/jsonpointer v0.19.5 h1:gZr+CIYByUqjcgeLXnQu2gHYQC9o73G2XUeOFYEICuY= -github.com/go-openapi/jsonpointer v0.19.5/go.mod h1:Pl9vOtqEWErmShwVjC8pYs9cog34VGT37dQOVbmoatg= -github.com/go-openapi/jsonreference v0.19.3/go.mod h1:rjx6GuL8TTa9VaixXglHmQmIL98+wF9xc8zWvFonSJ8= -github.com/go-openapi/jsonreference v0.19.5/go.mod h1:RdybgQwPxbL4UEjuAruzK1x3nE69AqPYEJeo/TWfEeg= -github.com/go-openapi/jsonreference v0.20.0 h1:MYlu0sBgChmCfJxxUKZ8g1cPWFOB37YSZqewK7OKeyA= -github.com/go-openapi/jsonreference v0.20.0/go.mod h1:Ag74Ico3lPc+zR+qjn4XBUmXymS4zJbYVCZmcgkasdo= -github.com/go-openapi/swag v0.19.5/go.mod h1:POnQmlKehdgb5mhVOsnJFsivZCEZ/vjK9gh66Z9tfKk= -github.com/go-openapi/swag v0.19.14 h1:gm3vOOXfiuw5i9p5N9xJvfjvuofpyvLA9Wr6QfK5Fng= -github.com/go-openapi/swag v0.19.14/go.mod h1:QYRuS/SOXUCsnplDa677K7+DxSOj6IPNl/eQntq43wQ= -github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY= -github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA= -github.com/gogo/protobuf v1.1.1/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ= +github.com/fsnotify/fsnotify v1.6.0 h1:n+5WquG0fcWoWp6xPWfHdbskMCQaFnG6PfBrh1Ky4HY= +github.com/fvbommel/sortorder v1.1.0 h1:fUmoe+HLsBTctBDoaBwpQo5N+nrCp8g/BjKb/6ZQmYw= +github.com/fvbommel/sortorder v1.1.0/go.mod h1:uk88iVf1ovNn1iLfgUVU2F9o5eO30ui720w+kxuqRs0= +github.com/go-errors/errors v1.4.2 h1:J6MZopCL4uSllY1OfXM374weqZFFItUbrImctkmUxIA= +github.com/go-errors/errors v1.4.2/go.mod h1:sIVyrIiJhuEF+Pj9Ebtd6P/rEYROXFi3BopGUQ5a5Og= +github.com/go-logr/logr v1.4.1 h1:pKouT5E8xu9zeFC39JXRDukb6JFQPXM5p5I91188VAQ= +github.com/go-logr/logr v1.4.1/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY= +github.com/go-logr/zapr v1.2.4 h1:QHVo+6stLbfJmYGkQ7uGHUCu5hnAFAj6mDe6Ea0SeOo= +github.com/go-openapi/jsonpointer v0.19.6 h1:eCs3fxoIi3Wh6vtgmLTOjdhSpiqphQ+DaPn38N2ZdrE= +github.com/go-openapi/jsonpointer v0.19.6/go.mod h1:osyAmYz/mB/C3I+WsTTSgw1ONzaLJoLCyoi6/zppojs= +github.com/go-openapi/jsonreference v0.20.2 h1:3sVjiK66+uXK/6oQ8xgcRKcFgQ5KXa2KvnJRumpMGbE= +github.com/go-openapi/jsonreference v0.20.2/go.mod h1:Bl1zwGIM8/wsvqjsOQLJ/SH+En5Ap4rVB5KVcIDZG2k= +github.com/go-openapi/swag v0.22.3 h1:yMBqmnQ0gyZvEb/+KzuWZOXgllrXT4SADYbvDaXHv/g= +github.com/go-openapi/swag v0.22.3/go.mod h1:UzaqsxGiab7freDnrUUra0MwWfN/q7tE4j+VcZ0yl14= +github.com/go-task/slim-sprig v0.0.0-20230315185526-52ccab3ef572 h1:tfuBGBXKqDEevZMzYi5KSi8KkcZtzBcTgAUUtapy0OI= github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q= github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q= -github.com/golang-jwt/jwt/v4 v4.5.0 h1:7cYmW1XlMY7h7ii7UhUyChSgS5wUJEnm9uZVTGqOWzg= github.com/golang-jwt/jwt/v4 v4.5.0/go.mod h1:m21LjoU+eqJr34lmDMbreY2eSTRJ1cv77w39/MY0Ch0= +github.com/golang-jwt/jwt/v4 v4.5.1 h1:JdqV9zKUdtaa9gdPlywC3aeoEsR681PlKC+4F5gQgeo= +github.com/golang-jwt/jwt/v4 v4.5.1/go.mod h1:m21LjoU+eqJr34lmDMbreY2eSTRJ1cv77w39/MY0Ch0= github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= -github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= -github.com/golang/groupcache v0.0.0-20191227052852-215e87163ea7/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= -github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da h1:oI5xCqsCo564l8iNU+DwB5epxmsaqB+rhGL0m5jtYqE= -github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= -github.com/golang/mock v1.2.0/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= -github.com/golang/mock v1.3.1/go.mod h1:sBzyDLLjw3U8JLTeZvSv8jJB+tU5PVekmnlKIyFUx0Y= -github.com/golang/mock v1.4.0/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= -github.com/golang/mock v1.4.1/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= -github.com/golang/mock v1.4.3/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= -github.com/golang/mock v1.4.4/go.mod h1:l3mdAwkq5BuhzHwde/uurv3sEJeZMXNpwsxVWU71h+4= -github.com/golang/mock v1.5.0/go.mod h1:CWnOUgYIOo4TcNZ0wHX3YZCqsaM1I1Jvs6v3mP3KVu8= github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= -github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= -github.com/golang/protobuf v1.3.3/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw= -github.com/golang/protobuf v1.3.4/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw= -github.com/golang/protobuf v1.3.5/go.mod h1:6O5/vntMXwX2lRkT1hjjk0nAC1IDOTvTlVgjlRvqsdk= github.com/golang/protobuf v1.4.0-rc.1/go.mod h1:ceaxUfeHdC40wWswd/P6IGgMaK3YpKi5j83Wpe3EHw8= github.com/golang/protobuf v1.4.0-rc.1.0.20200221234624-67d41d38c208/go.mod h1:xKAWHe0F5eneWXFV3EuXVDTCmh+JuBKY0li0aMyXATA= github.com/golang/protobuf v1.4.0-rc.2/go.mod h1:LlEzMj4AhA7rCAGe4KMBDvJI+AwstrUpVNzEA03Pprs= github.com/golang/protobuf v1.4.0-rc.4.0.20200313231945-b860323f09d0/go.mod h1:WU3c8KckQ9AFe+yFwt9sWVRKCVIyN9cPHBJSNnbL67w= github.com/golang/protobuf v1.4.0/go.mod h1:jodUvKwWbYaEsadDk5Fwe5c77LiNKVO9IDvqG2KuDX0= github.com/golang/protobuf v1.4.1/go.mod h1:U8fpvMrcmy5pZrNK1lt4xCsGvpyWQ/VVv6QDs8UjoX8= -github.com/golang/protobuf v1.4.2/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= -github.com/golang/protobuf v1.4.3/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= -github.com/golang/protobuf v1.5.1/go.mod h1:DopwsBzvsk0Fs44TXzsVbJyPhcCPeIwnvohx4u74HPM= -github.com/golang/protobuf v1.5.2 h1:ROPKBNFfQgOUMifHyP+KYbvpjbdoFNs+aK7DXlji0Tw= github.com/golang/protobuf v1.5.2/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= -github.com/golangplus/testing v0.0.0-20180327235837-af21d9c3145e/go.mod h1:0AA//k/eakGydO4jKRoRL2j92ZKSzTgj9tclaCrvXHk= -github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= -github.com/google/btree v1.0.0/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= +github.com/golang/protobuf v1.5.4 h1:i7eJL8qZTpSEXOPTxNKhASYpMn+8e5Q6AdndVa1dWek= +github.com/golang/protobuf v1.5.4/go.mod h1:lnTiLA8Wa4RWRcIUkrtSVa5nRhsEGBg48fD6rSs7xps= github.com/google/btree v1.0.1 h1:gK4Kx5IaGY9CD5sPJ36FHiBJ6ZXl0kilRiiCj+jdYp4= github.com/google/btree v1.0.1/go.mod h1:xXMiIv4Fb/0kKde4SpL7qlzvu5cMJDRkFDxJfI9uaxA= -github.com/google/gnostic v0.5.7-v3refs h1:FhTMOKj2VhjpouxvWJAV1TL304uMlb9zcDqkl6cEI54= -github.com/google/gnostic v0.5.7-v3refs/go.mod h1:73MKFl6jIHelAJNaBGFzt3SPtZULs9dYrGFt8OiIsHQ= +github.com/google/gnostic-models v0.6.8 h1:yo/ABAfM5IMRsS1VnXjTBvUb61tFIHozhlYvRgGre9I= +github.com/google/gnostic-models v0.6.8/go.mod h1:5n7qKqH0f5wFt+aWF8CW6pZLLNOfYuF5OpfBSENuI8U= github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M= github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.2/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.3/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= +github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= +github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= -github.com/google/gofuzz v1.1.0 h1:Hsa8mG0dQ46ij8Sl2AYJDUv1oA9/d6Vk+3LG99Oe02g= -github.com/google/gofuzz v1.1.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= -github.com/google/martian v2.1.0+incompatible/go.mod h1:9I4somxYTbIHy5NJKHRl3wXiIaQGbYVAs8BPL6v8lEs= -github.com/google/martian/v3 v3.0.0/go.mod h1:y5Zk1BBys9G+gd6Jrk0W3cC1+ELVxBWuIGO+w/tUAp0= -github.com/google/martian/v3 v3.1.0/go.mod h1:y5Zk1BBys9G+gd6Jrk0W3cC1+ELVxBWuIGO+w/tUAp0= -github.com/google/pprof v0.0.0-20181206194817-3ea8567a2e57/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= -github.com/google/pprof v0.0.0-20190515194954-54271f7e092f/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= -github.com/google/pprof v0.0.0-20191218002539-d4f498aebedc/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= -github.com/google/pprof v0.0.0-20200212024743-f11f1df84d12/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= -github.com/google/pprof v0.0.0-20200229191704-1ebb73c60ed3/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= -github.com/google/pprof v0.0.0-20200430221834-fc25d7d30c6d/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= -github.com/google/pprof v0.0.0-20200708004538-1a94d8640e99/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= -github.com/google/pprof v0.0.0-20201023163331-3e6fc7fc9c4c/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= -github.com/google/pprof v0.0.0-20201203190320-1bf35d6f28c2/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= -github.com/google/pprof v0.0.0-20210122040257-d980be63207e/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= -github.com/google/pprof v0.0.0-20210226084205-cbba55b83ad5/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= -github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= +github.com/google/gofuzz v1.2.0 h1:xRy4A+RhZaiKjJ1bPfwQ8sedCA+YS2YcCHW6ec7JMi0= +github.com/google/gofuzz v1.2.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= +github.com/google/pprof v0.0.0-20210720184732-4bb14d4b1be1 h1:K6RDEckDVWvDI9JAJYCmNdQXq6neHJOYx3V6jnqNEec= github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510 h1:El6M4kTTCOh6aBiKaUGG7oYTSPP8MxqL4YI3kZKwcP4= github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510/go.mod h1:pupxD2MaaD3pAXIBCelhxNneeOaAeabZDe5s4K6zSpQ= -github.com/google/uuid v1.1.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/google/uuid v1.3.0 h1:t6JiXgmwXMjEs8VusXIJk2BXHsn+wx8BZdTaoZ5fu7I= -github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/googleapis/gax-go/v2 v2.0.4/go.mod h1:0Wqv26UfaUD9n4G6kQubkQ+KchISgw+vpHVxEJEs9eg= -github.com/googleapis/gax-go/v2 v2.0.5/go.mod h1:DWXyrwAJ9X0FpwwEdw+IPEYBICEFu5mhpdKc/us6bOk= -github.com/googleapis/gnostic v0.5.1/go.mod h1:6U4PtQXGIEt/Z3h5MAT7FNofLnw9vXk2cUuW7uA/OeU= -github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1/go.mod h1:wJfORRmW1u3UXTncJ5qlYoELFm8eSnnEO6hX4iZ3EWY= -github.com/gorilla/mux v1.8.0/go.mod h1:DVbg23sWSpFRCP0SfiEN6jmj59UnW/n46BH5rLB71So= +github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= +github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/gorilla/websocket v1.4.2/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE= github.com/gregjones/httpcache v0.0.0-20180305231024-9cad4c3443a7 h1:pdN6V1QBWetyv/0+wjACpqVH+eVULgEjkurDLq3goeM= github.com/gregjones/httpcache v0.0.0-20180305231024-9cad4c3443a7/go.mod h1:FecbI9+v66THATjSRHfNgh1IVFe/9kFxbXtjV0ctIMA= -github.com/grpc-ecosystem/grpc-gateway v1.16.0/go.mod h1:BDjrQk3hbvj6Nolgz8mAMFbcEtjT1g+wF4CSlocrBnw= -github.com/hashicorp/consul/api v1.1.0/go.mod h1:VmuI/Lkw1nC05EYQWNKwWGbkg+FbDBtguAZLlVdkD9Q= -github.com/hashicorp/consul/sdk v0.1.1/go.mod h1:VKf9jXwCTEY1QZP2MOLRhb5i/I/ssyNV1vwHyQBF0x8= -github.com/hashicorp/errwrap v1.0.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= -github.com/hashicorp/go-cleanhttp v0.5.1/go.mod h1:JpRdi6/HCYpAwUzNwuwqhbovhLtngrth3wmdIIUrZ80= -github.com/hashicorp/go-immutable-radix v1.0.0/go.mod h1:0y9vanUI8NX6FsYoO3zeMjhV/C5i9g4Q3DwcSNZ4P60= -github.com/hashicorp/go-msgpack v0.5.3/go.mod h1:ahLV/dePpqEmjfWmKiqvPkv/twdG7iPBM1vqhUKIvfM= -github.com/hashicorp/go-multierror v1.0.0/go.mod h1:dHtQlpGsu+cZNNAkkCN/P3hoUDHhCYQXV3UM06sGGrk= -github.com/hashicorp/go-rootcerts v1.0.0/go.mod h1:K6zTfqpRlCUIjkwsN4Z+hiSfzSTQa6eBIzfwKfwNnHU= -github.com/hashicorp/go-sockaddr v1.0.0/go.mod h1:7Xibr9yA9JjQq1JpNB2Vw7kxv8xerXegt+ozgdvDeDU= -github.com/hashicorp/go-syslog v1.0.0/go.mod h1:qPfqrKkXGihmCqbJM2mZgkZGvKG1dFdvsLplgctolz4= -github.com/hashicorp/go-uuid v1.0.0/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= -github.com/hashicorp/go-uuid v1.0.1/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= -github.com/hashicorp/go.net v0.0.1/go.mod h1:hjKkEWcCURg++eb33jQU7oqQcI9XDCnUzHA0oac0k90= -github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= -github.com/hashicorp/golang-lru v0.5.1/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= -github.com/hashicorp/hcl v1.0.0/go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T20WEQ= -github.com/hashicorp/logutils v1.0.0/go.mod h1:QIAnNjmIWmVIIkWDTG1z5v++HQmx9WQRO+LraFDTW64= -github.com/hashicorp/mdns v1.0.0/go.mod h1:tL+uN++7HEJ6SQLQ2/p+z2pH24WQKWjBPkE0mNTz8vQ= -github.com/hashicorp/memberlist v0.1.3/go.mod h1:ajVTdAv/9Im8oMAAj5G31PhhMCZJV2pPBoIllUwCN7I= -github.com/hashicorp/serf v0.8.2/go.mod h1:6hOLApaqBFA1NXqRQAsxw9QxuDEvNxSQRwA/JwenrHc= -github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU= -github.com/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= -github.com/ianlancetaylor/demangle v0.0.0-20200824232613-28f6c0f3b639/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= -github.com/imdario/mergo v0.3.5/go.mod h1:2EnlNZ0deacrJVfApfmtdGgDfMuh/nq6Ok1EcJh5FfA= github.com/imdario/mergo v0.3.12 h1:b6R2BslTbIEToALKP7LxUvijTsNI9TAe80pLWN2g/HU= github.com/imdario/mergo v0.3.12/go.mod h1:jmQim1M+e3UYxmgPu/WyfjB3N3VflVyUjjjwH0dnCYA= -github.com/inconshreveable/mousetrap v1.0.0 h1:Z8tu5sraLXCXIcARxBp/8cbvlwVa7Z1NHg9XEKhtSvM= -github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8= +github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8= +github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw= +github.com/jessevdk/go-flags v1.4.0/go.mod h1:4FA24M0QyGHXBuZZK/XkWh8h0e1EYbRYJSGM75WSRxI= github.com/jonboulle/clockwork v0.2.2 h1:UOGuzwb1PwsrDAObMuhUnj0p5ULPj8V/xJ7Kx9qUBdQ= github.com/jonboulle/clockwork v0.2.2/go.mod h1:Pkfl5aHPm1nk2H9h0bjmnJD/BcgbGXUBGnn1kMkgxc8= github.com/josharian/intern v1.0.0 h1:vlS4z54oSdjm0bgjRigI+G1HpF+tI+9rE5LLzOg8HmY= github.com/josharian/intern v1.0.0/go.mod h1:5DoeVV0s6jJacbCEi61lwdGj/aVlrQvzHFFd8Hwg//Y= -github.com/jpillora/backoff v1.0.0/go.mod h1:J/6gKK9jxlEcS3zixgDgUAsiuZ7yrSoa/FX5e0EB2j4= -github.com/json-iterator/go v1.1.6/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU= -github.com/json-iterator/go v1.1.10/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= -github.com/json-iterator/go v1.1.11/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= github.com/json-iterator/go v1.1.12 h1:PV8peI4a0ysnczrg+LtxykD8LfKY9ML6u2jnxaEnrnM= github.com/json-iterator/go v1.1.12/go.mod h1:e30LSqwooZae/UwlEbR2852Gd8hjQvJoHmT4TnhNGBo= -github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024/go.mod h1:6v2b51hI/fHJwM22ozAgKL4VKDeJcHhJFhtBdhmNjmU= -github.com/jstemmer/go-junit-report v0.9.1/go.mod h1:Brl9GWCQeLvo8nXZwPNNblvFj/XSXhF0NWZEnDohbsk= -github.com/jtolds/gls v4.20.0+incompatible/go.mod h1:QJZ7F/aHp+rZTRtaJ1ow/lLfFfVYBRgL+9YlvaHOwJU= -github.com/julienschmidt/httprouter v1.2.0/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7VTCxuUUipMqKk8s4w= -github.com/julienschmidt/httprouter v1.3.0/go.mod h1:JR6WtHb+2LUe8TCKY3cZOxFyyO8IZAc4RVcycCCAKdM= github.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI2bnpBCr8= github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= -github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= -github.com/konsorten/go-windows-terminal-sequences v1.0.3/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= -github.com/kr/fs v0.1.0/go.mod h1:FFnZGqtBN9Gxj7eW1uZ42v5BccTP0vu6NEaFoC2HwRg= -github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515/go.mod h1:+0opPa2QZZtGFBFZlji/RkVcI2GknAs/DXo4wKdlNEc= -github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= -github.com/kr/pretty v0.2.0/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI= +github.com/kr/pretty v0.2.1/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI= +github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= @@ -325,670 +118,214 @@ github.com/liggitt/tabwriter v0.0.0-20181228230101-89fcab3d43de h1:9TO3cAIGXtEhn github.com/liggitt/tabwriter v0.0.0-20181228230101-89fcab3d43de/go.mod h1:zAbeS9B/r2mtpb6U+EI2rYA5OAXxsYw6wTamcNW+zcE= github.com/lithammer/dedent v1.1.0 h1:VNzHMVCBNG1j0fh3OrsFRkVUwStdDArbgBWoPAffktY= github.com/lithammer/dedent v1.1.0/go.mod h1:jrXYCQtgg0nJiN+StA2KgR7w6CiQNv9Fd/Z9BP0jIOc= -github.com/magiconair/properties v1.8.5/go.mod h1:y3VJvCyxH9uVvJTWEGAELF3aiYNyPKd5NZ3oSwXrF60= -github.com/mailru/easyjson v0.0.0-20190614124828-94de47d64c63/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc= -github.com/mailru/easyjson v0.0.0-20190626092158-b2ccc519800e/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc= -github.com/mailru/easyjson v0.7.0/go.mod h1:KAzv3t3aY1NaHWoQz1+4F1ccyAH66Jk7yos7ldAVICs= -github.com/mailru/easyjson v0.7.6 h1:8yTIVnZgCoiM1TgqoeTl+LfU5Jg6/xL3QhGQnimLYnA= -github.com/mailru/easyjson v0.7.6/go.mod h1:xzfreul335JAWq5oZzymOObrkdz5UnU4kGfJJLY9Nlc= -github.com/mattn/go-colorable v0.0.9/go.mod h1:9vuHe8Xs5qXnSaW/c/ABM9alt+Vo+STaOChaDxuIBZU= -github.com/mattn/go-isatty v0.0.3/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4= -github.com/mattn/go-runewidth v0.0.7/go.mod h1:H031xJmbD/WCDINGzjvQ9THkh0rPKHF+m2gUSrubnMI= -github.com/matttproud/golang_protobuf_extensions v1.0.1/go.mod h1:D8He9yQNgCq6Z5Ld7szi9bcBfOoFv/3dc6xSMkL2PC0= -github.com/matttproud/golang_protobuf_extensions v1.0.2-0.20181231171920-c182affec369 h1:I0XW9+e1XWDxdcEniV4rQAIOPUGDq67JSCiRCgGCZLI= -github.com/matttproud/golang_protobuf_extensions v1.0.2-0.20181231171920-c182affec369/go.mod h1:BSXmuO+STAnVfrANrmjBb36TMTDstsz7MSK+HVaYKv4= -github.com/miekg/dns v1.0.14/go.mod h1:W1PPwlIAgtquWBMBEV9nkV9Cazfe8ScdGz/Lj7v3Nrg= -github.com/mitchellh/cli v1.0.0/go.mod h1:hNIlj7HEI86fIcpObd7a0FcrxTWetlwJDGcceTlRvqc= -github.com/mitchellh/go-homedir v1.0.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0= -github.com/mitchellh/go-testing-interface v1.0.0/go.mod h1:kRemZodwjscx+RGhAo8eIhFbs2+BFgRtFPeD/KE+zxI= -github.com/mitchellh/go-wordwrap v1.0.0 h1:6GlHJ/LTGMrIJbwgdqdl2eEH8o+Exx/0m8ir9Gns0u4= -github.com/mitchellh/go-wordwrap v1.0.0/go.mod h1:ZXFpozHsX6DPmq2I0TCekCxypsnAUbP2oI0UX1GXzOo= -github.com/mitchellh/gox v0.4.0/go.mod h1:Sd9lOJ0+aimLBi73mGofS1ycjY8lL3uZM3JPS42BGNg= -github.com/mitchellh/iochan v1.0.0/go.mod h1:JwYml1nuB7xOzsp52dPpHFffvOCDupsG0QubkSMEySY= -github.com/mitchellh/mapstructure v0.0.0-20160808181253-ca63d7c062ee/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y= -github.com/mitchellh/mapstructure v1.1.2/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y= -github.com/mitchellh/mapstructure v1.4.1 h1:CpVNEelQCZBooIPDn+AR3NpivK/TIKU8bDxdASFVQag= -github.com/mitchellh/mapstructure v1.4.1/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= +github.com/mailru/easyjson v0.7.7 h1:UGYAvKxe3sBsEDzO8ZeWOSlIQfWFlxbzLZe7hwFURr0= +github.com/mailru/easyjson v0.7.7/go.mod h1:xzfreul335JAWq5oZzymOObrkdz5UnU4kGfJJLY9Nlc= +github.com/matttproud/golang_protobuf_extensions v1.0.4 h1:mmDVorXM7PCGKw94cs5zkfA9PSy5pEvNWRP0ET0TIVo= +github.com/mitchellh/go-wordwrap v1.0.1 h1:TLuKupo69TCn6TQSyGxwI1EblZZEsQ0vMlAFQflz0v0= +github.com/mitchellh/go-wordwrap v1.0.1/go.mod h1:R62XHJLzvMFRBbcrT7m7WgmE1eOyTSsCt+hzestvNj0= github.com/moby/spdystream v0.2.0 h1:cjW1zVyyoiM0T7b6UoySUFqzXMoqRckQtXwGPiBhOM8= github.com/moby/spdystream v0.2.0/go.mod h1:f7i0iNDQJ059oMTcWxx8MA/zKFIuD/lY+0GqbN2Wy8c= -github.com/moby/term v0.0.0-20210619224110-3f7ff695adc6 h1:dcztxKSvZ4Id8iPpHERQBbIJfabdt4wUm5qy3wOL2Zc= -github.com/moby/term v0.0.0-20210619224110-3f7ff695adc6/go.mod h1:E2VnQOmVuvZB6UYnnDB0qG5Nq/1tD9acaOpo6xmt0Kw= +github.com/moby/term v0.0.0-20221205130635-1aeaba878587 h1:HfkjXDfhgVaN5rmueG8cL8KKeFNecRCXFhaJ2qZ5SKA= +github.com/moby/term v0.0.0-20221205130635-1aeaba878587/go.mod h1:8FzsFHVUBGZdbDsJw/ot+X+d5HLUbvklYLJ9uGfcI3Y= github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd h1:TRLaZ9cD/w8PVh93nsPXa1VrQ6jlwL5oN8l14QlcNfg= github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= -github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= -github.com/modern-go/reflect2 v1.0.1/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= github.com/modern-go/reflect2 v1.0.2 h1:xBagoLtFs94CBntxluKeaWgTMpvLxC4ur3nMaC9Gz0M= github.com/modern-go/reflect2 v1.0.2/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjYzDa0/r8luk= github.com/monochromegane/go-gitignore v0.0.0-20200626010858-205db1a8cc00 h1:n6/2gBQ3RWajuToeY6ZtZTIKv2v7ThUy5KKusIT0yc0= github.com/monochromegane/go-gitignore v0.0.0-20200626010858-205db1a8cc00/go.mod h1:Pm3mSP3c5uWn86xMLZ5Sa7JB9GsEZySvHYXCTK4E9q4= -github.com/munnerz/goautoneg v0.0.0-20120707110453-a547fc61f48d/go.mod h1:+n7T8mK8HuQTcFwEeznm/DIxMOiR9yIdICNftLE1DvQ= github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 h1:C3w9PqII01/Oq1c1nUAm88MOHcQC9l5mIlSMApZMrHA= github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822/go.mod h1:+n7T8mK8HuQTcFwEeznm/DIxMOiR9yIdICNftLE1DvQ= -github.com/mwitkow/go-conntrack v0.0.0-20161129095857-cc309e4a2223/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U= -github.com/mwitkow/go-conntrack v0.0.0-20190716064945-2f068394615f/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U= -github.com/mxk/go-flowrate v0.0.0-20140419014527-cca7078d478f/go.mod h1:ZdcZmHo+o7JKHSa8/e818NopupXU1YMK5fe1lsApnBw= -github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e h1:fD57ERR4JtEqsWbfPhv4DMiApHyliiK5xCTNVSPiaAs= -github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod h1:zD1mROLANZcx1PVRCS0qkT7pwLkGfwJo4zjcN/Tysno= -github.com/nxadm/tail v1.4.4/go.mod h1:kenIhsEOeOJmVchQTgglprH7qJGnHDVpk1VPCcaMI8A= -github.com/nxadm/tail v1.4.8 h1:nPr65rt6Y5JFSKQO7qToXr7pePgD6Gwiw05lkbyAQTE= -github.com/olekukonko/tablewriter v0.0.4/go.mod h1:zq6QwlOf5SlnkVbMSr5EoBv3636FWnp+qbPhuoO21uA= -github.com/onsi/ginkgo v0.0.0-20170829012221-11459a886d9c/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= -github.com/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= -github.com/onsi/ginkgo v1.12.1/go.mod h1:zj2OWP4+oCPe1qIXoGWkgMRwljMUYCdkwsT2108oapk= -github.com/onsi/ginkgo v1.14.0/go.mod h1:iSB4RoI2tjJc9BBv4NKIKWKya62Rps+oPG/Lv9klQyY= -github.com/onsi/ginkgo v1.16.5 h1:8xi0RTUf59SOSfEtZMvwTvXYMzG4gV23XVHOZiXNtnE= -github.com/onsi/gomega v0.0.0-20170829124025-dcabb60a477c/go.mod h1:C1qb7wdrVGGVU+Z6iS04AVkA3Q65CEZX59MT0QO5uiA= -github.com/onsi/gomega v1.7.1/go.mod h1:XdKZgCCFLUoM/7CFJVPcG8C1xQ1AJ0vpAezJrB7JYyY= -github.com/onsi/gomega v1.10.1/go.mod h1:iN09h71vgCQne3DLsj+A5owkum+a2tYe+TOCB1ybHNo= -github.com/onsi/gomega v1.18.1 h1:M1GfJqGRrBrrGGsbxzV5dqM2U2ApXefZCQpkukxYRLE= -github.com/opencontainers/go-digest v1.0.0/go.mod h1:0JzlMkj0TRzQZfJkVvzbP0HBR3IKzErnv2BNG4W4MAM= -github.com/openkruise/kruise-api v1.5.0 h1:Pbg5sr0AiJ+Tb8MBoPKrQLD4jOeI66zGhC4q2UG5i4Y= -github.com/openkruise/kruise-api v1.5.0/go.mod h1:C+ZilhxrMUiX6EYDIOsNowyu3i6pTHL6s0B9dxf2zAk= -github.com/openkruise/kruise-rollout-api v0.5.0 h1:6e1YN6d/ArTAX0jxSMlZt/GxmxBO7zi7+YeKxXpYm7U= -github.com/openkruise/kruise-rollout-api v0.5.0/go.mod h1:Db/+T+VaMtE++qTmBkW+lkBFO7zO5fgTZibfnKKfGaM= -github.com/pascaldekloe/goe v0.0.0-20180627143212-57f6aae5913c/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144TG7ZOy1lc= -github.com/pelletier/go-toml v1.9.3/go.mod h1:u1nR/EPcESfeI/szUZKdtJ0xRNbUoANCkoOuaOx1Y+c= +github.com/onsi/ginkgo/v2 v2.11.0 h1:WgqUCUt/lT6yXoQ8Wef0fsNn5cAuMK7+KT9UFRz2tcU= +github.com/onsi/gomega v1.27.10 h1:naR28SdDFlqrG6kScpT8VWpu1xWY5nJRCF3XaYyBjhI= +github.com/openkruise/kruise-api v1.7.1 h1:pF+tPHWY1SS0X7sXTOIHZ5sNb5h5MBy1D7h6bJI5yW8= +github.com/openkruise/kruise-api v1.7.1/go.mod h1:ZD94u+GSQGtKrDfFhMVpQhzjr7g7UlXhYfRoNp/EhJs= +github.com/openkruise/kruise-rollout-api v0.5.1 h1:wZug9vIfkTjfGANEWX7//NhFLpsL4ZU3kZq8kFSYk7I= +github.com/openkruise/kruise-rollout-api v0.5.1/go.mod h1:Db/+T+VaMtE++qTmBkW+lkBFO7zO5fgTZibfnKKfGaM= github.com/peterbourgon/diskv v2.0.1+incompatible h1:UBdAOUP5p4RWqPBg048CAvpKN+vxiaj6gdUUzhl4XmI= github.com/peterbourgon/diskv v2.0.1+incompatible/go.mod h1:uqqh8zWWbv1HBMNONnaR/tNboyR3/BZd58JJSHlUSCU= -github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= -github.com/pkg/sftp v1.10.1/go.mod h1:lYOWFsE0bwd1+KfKJaKeuokY15vzFx25BLbzYYoAxZI= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= -github.com/posener/complete v1.1.1/go.mod h1:em0nMJCgc9GFtwrmVmEMR/ZL6WyhyjMBndrE9hABlRI= -github.com/prometheus/client_golang v0.9.1/go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXPKyh/dDVn+NZz0KFw= -github.com/prometheus/client_golang v1.0.0/go.mod h1:db9x61etRT2tGnBNRi70OPL5FsnadC4Ky3P0J6CfImo= -github.com/prometheus/client_golang v1.7.1/go.mod h1:PY5Wy2awLA44sXw4AOSfFBetzPP4j5+D6mVACh+pe2M= -github.com/prometheus/client_golang v1.11.0/go.mod h1:Z6t4BnS23TR94PD6BsDNk8yVqroYurpAkEiz0P2BEV0= -github.com/prometheus/client_golang v1.12.1 h1:ZiaPsmm9uiBeaSMRznKsCDNtPCS0T3JVDGF+06gjBzk= -github.com/prometheus/client_golang v1.12.1/go.mod h1:3Z9XVyYiZYEO+YQWt3RD2R3jrbd179Rt297l4aS6nDY= -github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo= -github.com/prometheus/client_model v0.0.0-20190129233127-fd36f4220a90/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= +github.com/prometheus/client_golang v1.16.0 h1:yk/hx9hDbrGHovbci4BY+pRMfSuuat626eFsHb7tmT8= github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= -github.com/prometheus/client_model v0.2.0 h1:uq5h0d+GuxiXLJLNABMgp2qUWDPiLvgCzz2dUR+/W/M= -github.com/prometheus/client_model v0.2.0/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= -github.com/prometheus/common v0.4.1/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4= -github.com/prometheus/common v0.10.0/go.mod h1:Tlit/dnDKsSWFlCLTWaA1cyBgKHSMdTB80sz/V91rCo= -github.com/prometheus/common v0.26.0/go.mod h1:M7rCNAaPfAosfx8veZJCuw84e35h3Cfd9VFqTh1DIvc= -github.com/prometheus/common v0.32.1 h1:hWIdL3N2HoUx3B8j3YN9mWor0qhY/NlEKZEaXxuIRh4= -github.com/prometheus/common v0.32.1/go.mod h1:vu+V0TpY+O6vW9J44gczi3Ap/oXXR10b+M/gUGO4Hls= -github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk= -github.com/prometheus/procfs v0.0.2/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA= -github.com/prometheus/procfs v0.1.3/go.mod h1:lV6e/gmhEcM9IjHGsFOCxxuZ+z1YqCvr4OA4YeYWdaU= -github.com/prometheus/procfs v0.6.0/go.mod h1:cz+aTbrPOrUb4q7XlbU9ygM+/jj0fzG6c1xBZuNvfVA= -github.com/prometheus/procfs v0.7.3 h1:4jVXhlkAyzOScmCkXBTOLRLTz8EeU+eyjrwB/EPq0VU= -github.com/prometheus/procfs v0.7.3/go.mod h1:cz+aTbrPOrUb4q7XlbU9ygM+/jj0fzG6c1xBZuNvfVA= -github.com/rogpeppe/fastuuid v1.2.0/go.mod h1:jVj6XXZzXRy/MSR5jhDC/2q6DgLz+nrA6LYCDYWNEvQ= -github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= -github.com/russross/blackfriday v1.5.2 h1:HyvC0ARfnZBqnXwABFeSZHpKvJHJJfPz81GNueLj0oo= -github.com/russross/blackfriday v1.5.2/go.mod h1:JO/DiYxRf+HjHt06OyowR9PTA263kcR/rfWxYHBV53g= -github.com/russross/blackfriday/v2 v2.0.1/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= +github.com/prometheus/client_model v0.4.0 h1:5lQXD3cAg1OXBf4Wq03gTrXHeaV0TQvGfUooCfx1yqY= +github.com/prometheus/common v0.44.0 h1:+5BrQJwiBB9xsMygAB3TNvpQKOwlkc25LbISbrdOOfY= +github.com/prometheus/procfs v0.10.1 h1:kYK1Va/YMlutzCGazswoHKo//tZVlFpKYh+PymziUAg= +github.com/rogpeppe/go-internal v1.10.0 h1:TMyTOH3F/DB16zRVcYyreMH6GnZZrwQVAoYjRBZyWFQ= +github.com/russross/blackfriday/v2 v2.1.0 h1:JIOH55/0cWyOuilr9/qlrm0BSXldqnqwMsf35Ld67mk= github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= -github.com/ryanuber/columnize v0.0.0-20160712163229-9b3edd62028f/go.mod h1:sm1tb6uqfes/u+d4ooFouqFdy9/2g9QGwK3SQygK0Ts= -github.com/sean-/seed v0.0.0-20170313163322-e2103e2c3529/go.mod h1:DxrIzT+xaE7yg65j358z/aeFdxmN0P9QXhEzd20vsDc= github.com/sergi/go-diff v1.1.0 h1:we8PVUC3FE2uYfodKH/nBHMSetSfHDR6scGdBi+erh0= -github.com/sergi/go-diff v1.1.0/go.mod h1:STckp+ISIX8hZLjrqAeVduY0gWCT9IjLuqbuNXdaHfM= -github.com/shurcooL/sanitized_anchor_name v1.0.0/go.mod h1:1NzhyTcUVG4SuEtjjoZeVRXNmyL/1OwPU0+IJeTBvfc= -github.com/sirupsen/logrus v1.2.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo= -github.com/sirupsen/logrus v1.4.2/go.mod h1:tLMulIdttU9McNUspp0xgXVQah82FyeX6MwdIuYE2rE= -github.com/sirupsen/logrus v1.6.0/go.mod h1:7uNnSEd1DgxDLC74fIahvMZmmYsHGZGEOFrfsX/uA88= -github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d/go.mod h1:OnSkiWE9lh6wB0YB77sQom3nweQdgAjqCqsofrRNTgc= -github.com/smartystreets/goconvey v1.6.4/go.mod h1:syvi0/a8iFYH4r/RixwvyeAJjdLS9QV7WQ/tjFTllLA= -github.com/spaolacci/murmur3 v0.0.0-20180118202830-f09979ecbc72/go.mod h1:JwIasOWyU6f++ZhiEuf87xNszmSA2myDM2Kzu9HwQUA= -github.com/spf13/afero v1.2.2/go.mod h1:9ZxEEn6pIJ8Rxe320qSDBk6AsU0r9pR7Q4OcevTdifk= -github.com/spf13/afero v1.6.0/go.mod h1:Ai8FlHk4v/PARR026UzYexafAt9roJ7LcLMAmO6Z93I= -github.com/spf13/cast v1.3.1/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE= -github.com/spf13/cobra v1.2.1/go.mod h1:ExllRjgxM/piMAM+3tAZvg8fsklGAf3tPfi+i8t68Nk= -github.com/spf13/cobra v1.4.0 h1:y+wJpx64xcgO1V+RcnwW0LEHxTKRi2ZDPSBjWnrg88Q= -github.com/spf13/cobra v1.4.0/go.mod h1:Wo4iy3BUC+X2Fybo0PDqwJIv3dNRiZLHQymsfxlB84g= -github.com/spf13/jwalterweatherman v1.1.0/go.mod h1:aNWZUN0dPAAO/Ljvb5BEdw96iTZ0EXowPYD95IqWIGo= -github.com/spf13/pflag v0.0.0-20170130214245-9ff6c6923cff/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4= -github.com/spf13/pflag v1.0.3/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4= +github.com/spf13/cobra v1.8.1 h1:e5/vxKd/rZsfSJMUX1agtjeTDf+qv1/JdBF8gg5k9ZM= +github.com/spf13/cobra v1.8.1/go.mod h1:wHxEcudfqmLYa8iTfL+OuZPbBZkmvliBWKIezN3kD9Y= github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA= github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= -github.com/spf13/viper v1.8.1/go.mod h1:o0Pch8wJ9BVSWGQMbra6iw0oQ5oktSIBaujf1rJH9Ns= -github.com/stoewer/go-strcase v1.2.0/go.mod h1:IBiWB2sKIp3wVVQ3Y035++gc+knqhUQag1KpM8ahLw8= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= -github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= -github.com/stretchr/objx v0.2.0/go.mod h1:qt09Ya8vawLte6SNmTgCsAVtYtaKzEcn8ATUoHMkEqE= github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw= -github.com/stretchr/objx v0.5.0 h1:1zr/of2m5FGMsad5YfcqgdqdWrIhu+EBEJRhR1U7z/c= github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo= -github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= +github.com/stretchr/objx v0.5.2 h1:xuMeJ0Sdp5ZMRXx/aWO6RZxdr3beISkG5/G/aIRr3pY= github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= -github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= -github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA= -github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= -github.com/stretchr/testify v1.8.2 h1:+h33VjcLVPDHtOdpUCuF+7gSuG3yGIftsP1YvFihtJ8= -github.com/stretchr/testify v1.8.2/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= -github.com/subosito/gotenv v1.2.0/go.mod h1:N0PQaV/YGNqwC0u51sEeR/aUtSLEXKX9iv69rRypqCw= -github.com/xlab/treeprint v0.0.0-20181112141820-a009c3971eca h1:1CFlNzQhALwjS9mBAUkycX616GzgsuYUOCHA5+HSlXI= -github.com/xlab/treeprint v0.0.0-20181112141820-a009c3971eca/go.mod h1:ce1O1j6UtZfjr22oyGxGLbauSBp2YVXpARAosm7dHBg= -github.com/yuin/goldmark v1.1.25/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= +github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= +github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg= +github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= +github.com/xlab/treeprint v1.2.0 h1:HzHnuAF1plUN2zGlAFHbSQP2qJ0ZAD3XF5XD7OesXRQ= +github.com/xlab/treeprint v1.2.0/go.mod h1:gj5Gd3gPdKtR1ikdDK6fnFLdmIS0X30kTTuNd/WEJu0= github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= -github.com/yuin/goldmark v1.1.32/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= -github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= -github.com/yuin/goldmark v1.4.1/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= -go.etcd.io/etcd/api/v3 v3.5.0/go.mod h1:cbVKeC6lCfl7j/8jBhAK6aIYO9XOjdptoxU/nLQcPvs= -go.etcd.io/etcd/client/pkg/v3 v3.5.0/go.mod h1:IJHfcCEKxYu1Os13ZdwCwIUTUVGYTSAM3YSwc9/Ac1g= -go.etcd.io/etcd/client/v2 v2.305.0/go.mod h1:h9puh54ZTgAKtEbut2oe9P4L/oqKCVB6xsXlzd7alYQ= -go.opencensus.io v0.21.0/go.mod h1:mSImk1erAIZhrmZN+AvHh14ztQfjbGwt4TtuofqLduU= -go.opencensus.io v0.22.0/go.mod h1:+kGneAE2xo2IficOXnaByMWTGM9T73dGwxeWcUqIpI8= -go.opencensus.io v0.22.2/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= -go.opencensus.io v0.22.3/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= -go.opencensus.io v0.22.4/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= -go.opencensus.io v0.22.5/go.mod h1:5pWMHQbX5EPX2/62yrJeAkowc+lfs/XD7Uxpq3pI6kk= -go.opencensus.io v0.23.0/go.mod h1:XItmlyltB5F7CS4xOC1DcqMoFqwtC6OG2xF7mCv7P7E= -go.opentelemetry.io/contrib v0.20.0/go.mod h1:G/EtFaa6qaN7+LxqfIAT3GiZa7Wv5DTBUzl5H4LY0Kc= -go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.20.0/go.mod h1:2AboqHi0CiIZU0qwhtUfCYD1GeUzvvIXWNkhDt7ZMG4= -go.opentelemetry.io/otel v0.20.0/go.mod h1:Y3ugLH2oa81t5QO+Lty+zXf8zC9L26ax4Nzoxm/dooo= -go.opentelemetry.io/otel/exporters/otlp v0.20.0/go.mod h1:YIieizyaN77rtLJra0buKiNBOm9XQfkPEKBeuhoMwAM= -go.opentelemetry.io/otel/metric v0.20.0/go.mod h1:598I5tYlH1vzBjn+BTuhzTCSb/9debfNp6R3s7Pr1eU= -go.opentelemetry.io/otel/oteltest v0.20.0/go.mod h1:L7bgKf9ZB7qCwT9Up7i9/pn0PWIa9FqQ2IQ8LoxiGnw= -go.opentelemetry.io/otel/sdk v0.20.0/go.mod h1:g/IcepuwNsoiX5Byy2nNV0ySUF1em498m7hBWC279Yc= -go.opentelemetry.io/otel/sdk/export/metric v0.20.0/go.mod h1:h7RBNMsDJ5pmI1zExLi+bJK+Dr8NQCh0qGhm1KDnNlE= -go.opentelemetry.io/otel/sdk/metric v0.20.0/go.mod h1:knxiS8Xd4E/N+ZqKmUPf3gTTZ4/0TjTXukfxjzSTpHE= -go.opentelemetry.io/otel/trace v0.20.0/go.mod h1:6GjCW8zgDjwGHGa6GkyeB8+/5vjT16gUEi0Nf1iBdgw= -go.opentelemetry.io/proto/otlp v0.7.0/go.mod h1:PqfVotwruBrMGOCsRd/89rSnXhoiJIqeYNgFYFoEGnI= -go.starlark.net v0.0.0-20200306205701-8dd3e2ee1dd5 h1:+FNtrFTmVw0YZGpBGX56XDee331t6JAXeK2bcyhLOOc= -go.starlark.net v0.0.0-20200306205701-8dd3e2ee1dd5/go.mod h1:nmDLcffg48OtT/PSW0Hg7FvpRQsQh5OSqIylirxKC7o= -go.uber.org/atomic v1.7.0 h1:ADUqmZGgLDDfbSL9ZmPxKTybcoEYHgpYfELNoN+7hsw= -go.uber.org/atomic v1.7.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc= -go.uber.org/goleak v1.1.10/go.mod h1:8a7PlsEVH3e/a/GLqe5IIrQx6GzcnRmZEufDUTk4A7A= -go.uber.org/multierr v1.6.0 h1:y6IPFStTAIT5Ytl7/XYmHvzXQ7S3g/IeZW9hyZ5thw4= -go.uber.org/multierr v1.6.0/go.mod h1:cdWPpRnG4AhwMwsgIHip0KRBQjJy5kYEpYjJxpXp9iU= -go.uber.org/zap v1.17.0/go.mod h1:MXVU+bhUf/A7Xi2HNOnopQOrmycQ5Ih87HtOu4q5SSo= -go.uber.org/zap v1.19.0/go.mod h1:xg/QME4nWcxGxrpdeYfq7UvYrLh66cuVKdrbD1XF/NI= -go.uber.org/zap v1.19.1 h1:ue41HOKd1vGURxrmeKIgELGb3jPW9DMUDGtsinblHwI= -golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= -golang.org/x/crypto v0.0.0-20181029021203-45a5f77698d3/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= +go.starlark.net v0.0.0-20230525235612-a134d8f9ddca h1:VdD38733bfYv5tUZwEIskMM93VanwNIi5bIKnDrJdEY= +go.starlark.net v0.0.0-20230525235612-a134d8f9ddca/go.mod h1:jxU+3+j+71eXOW14274+SmmuW82qJzl6iZSeqEtTGds= +go.uber.org/multierr v1.11.0 h1:blXXJkSxSSfBVBlC76pxqeO+LN3aDfLQo+309xJstO0= +go.uber.org/zap v1.25.0 h1:4Hvk6GtkucQ790dqmj7l1eEnRdKm3k3ZUrUMS2d5+5c= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= -golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/crypto v0.0.0-20190605123033-f99c8df09eb5/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/crypto v0.0.0-20190820162420-60c769a6c586/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= -golang.org/x/crypto v0.0.0-20201002170205-7f63de1d35b0/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= -golang.org/x/crypto v0.0.0-20220214200702-86341886e292/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= -golang.org/x/crypto v0.6.0/go.mod h1:OFC/31mSvZgRz0V1QTNCzfAI1aIRzbiufJtkMIlEp58= -golang.org/x/crypto v0.21.0 h1:X31++rzVUdKhX5sWmSOFZxx8UW/ldWx55cbf08iNAMA= -golang.org/x/crypto v0.21.0/go.mod h1:0BP7YvVV9gBbVKyeTG0Gyn+gZm94bibOW5BjDEYAOMs= golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= -golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= -golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8= -golang.org/x/exp v0.0.0-20190829153037-c13cbed26979/go.mod h1:86+5VVa7VpoJ4kLfm080zCjGlMRFzhUhsZKEZO7MGek= -golang.org/x/exp v0.0.0-20191030013958-a1ab85dbe136/go.mod h1:JXzH8nQsPlswgeRAPE3MuO9GYsAcnJvJ4vnMwN/5qkY= -golang.org/x/exp v0.0.0-20191129062945-2f5052295587/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= -golang.org/x/exp v0.0.0-20191227195350-da58074b4299/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= -golang.org/x/exp v0.0.0-20200119233911-0405dc783f0a/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= -golang.org/x/exp v0.0.0-20200207192155-f17229e696bd/go.mod h1:J/WKrq2StrnmMY6+EHIKF9dgMWnmCNThgcyBT1FY9mM= -golang.org/x/exp v0.0.0-20200224162631-6cc2880d07d6/go.mod h1:3jZMyOhIsHpP37uCMkUooju7aAi5cS1Q23tOzKc+0MU= -golang.org/x/image v0.0.0-20190227222117-0694c2d4d067/go.mod h1:kZ7UVZpmo3dzQBMxlp+ypCbDeSB+sBbTgSJuh5dn5js= -golang.org/x/image v0.0.0-20190802002840-cff245a6509b/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0= +golang.org/x/exp v0.0.0-20220722155223-a9213eeb770e h1:+WEEuIdZHnUeJJmEUjyYC2gfUMj69yZXw17EnHg/otA= +golang.org/x/exp v0.0.0-20220722155223-a9213eeb770e/go.mod h1:Kr81I6Kryrl9sr8s2FK3vxD90NdsKWRuOIl2O4CvYbA= golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod h1:wehouNa3lNwaWXcvxsM5YxQ5yQlVC4a0KAMCusXpPoU= -golang.org/x/lint v0.0.0-20190301231843-5614ed5bae6f/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= -golang.org/x/lint v0.0.0-20190409202823-959b441ac422/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= -golang.org/x/lint v0.0.0-20190909230951-414d861bb4ac/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= -golang.org/x/lint v0.0.0-20190930215403-16217165b5de/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= -golang.org/x/lint v0.0.0-20191125180803-fdd1cda4f05f/go.mod h1:5qLYkcX4OjUUV8bRuDixDT3tpyyb+LUpUlRWLxfhWrs= -golang.org/x/lint v0.0.0-20200130185559-910be7a94367/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= -golang.org/x/lint v0.0.0-20200302205851-738671d3881b/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= -golang.org/x/lint v0.0.0-20201208152925-83fdc39ff7b5/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= -golang.org/x/lint v0.0.0-20210508222113-6edffad5e616/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= -golang.org/x/mobile v0.0.0-20190312151609-d3739f865fa6/go.mod h1:z+o9i4GpDbdi3rU15maQ/Ox0txvL9dWGYEHz965HBQE= -golang.org/x/mobile v0.0.0-20190719004257-d2bd2a29d028/go.mod h1:E/iHnbuqvinMTCcRqshq8CkpyQDoeVncDDYHnLhea+o= -golang.org/x/mod v0.0.0-20190513183733-4bf6d317e70e/go.mod h1:mXi4GBBbnImb6dmsKGUJ2LatrhH/nqhxcFungHvyanc= -golang.org/x/mod v0.1.0/go.mod h1:0QHyrYULN0/3qlju5TqG8bIK38QM8yzMo5ekMj3DlcY= -golang.org/x/mod v0.1.1-0.20191105210325-c90efee705ee/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= -golang.org/x/mod v0.1.1-0.20191107180719-034126e5016b/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= -golang.org/x/mod v0.4.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= -golang.org/x/mod v0.4.1/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= -golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= -golang.org/x/mod v0.6.0-dev.0.20220106191415-9b9b3d81d5e3/go.mod h1:3p9vT2HGsQu2K1YbXdKPJLVgG5VJdoTa1poYQBtP1AY= golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4= golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20181023162649-9b4f9f5ad519/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20181114220301-adae6a3d119a/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20181201002055-351d144fa1fc/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= -golang.org/x/net v0.0.0-20190501004415-9ce7a6920f09/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= -golang.org/x/net v0.0.0-20190503192946-f4e77d36d62c/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= -golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= -golang.org/x/net v0.0.0-20190613194153-d28f0bde5980/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20190628185345-da137c7871d7/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20190724013045-ca1201d0de80/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20190827160401-ba9fcec4b297/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20191209160850-c0dbc17a3553/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20200114155413-6afb5195e5aa/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20200202094626-16171245cfb2/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20200222125558-5a598a2470a0/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20200301022130-244492dfa37a/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20200324143707-d3edc9973b7e/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= -golang.org/x/net v0.0.0-20200501053045-e0ff5e5a1de5/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= -golang.org/x/net v0.0.0-20200506145744-7e3656a0809f/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= -golang.org/x/net v0.0.0-20200513185701-a91f0712d120/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= -golang.org/x/net v0.0.0-20200520004742-59133d7f0dd7/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= -golang.org/x/net v0.0.0-20200520182314-0ba52f642ac2/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= -golang.org/x/net v0.0.0-20200625001655-4c5254603344/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= -golang.org/x/net v0.0.0-20200707034311-ab3426394381/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= -golang.org/x/net v0.0.0-20200822124328-c89045814202/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= -golang.org/x/net v0.0.0-20201031054903-ff519b6c9102/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= -golang.org/x/net v0.0.0-20201110031124-69a78807bb2b/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= -golang.org/x/net v0.0.0-20201209123823-ac852fbbde11/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= -golang.org/x/net v0.0.0-20210119194325-5f4716e94777/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= -golang.org/x/net v0.0.0-20210316092652-d523dce5a7f4/go.mod h1:RBQZq4jEuRlivfhVLdyRGr576XBO4/greRjx4P4O3yc= -golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM= -golang.org/x/net v0.0.0-20210525063256-abc453219eb5/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= -golang.org/x/net v0.0.0-20211015210444-4f30a5c0130f/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= -golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= -golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= -golang.org/x/net v0.6.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= -golang.org/x/net v0.23.0 h1:7EYJ93RZ9vYSZAIb2x3lnuvqO5zneoD6IvWjuhfxjTs= -golang.org/x/net v0.23.0/go.mod h1:JKghWKKOSdJwpW2GEx0Ja7fmaKnMsbu+MWVZTokSYmg= +golang.org/x/net v0.24.0 h1:1PcaxkF854Fu3+lvBIx5SYn9wRlBzzcnHZSiaFFAb0w= +golang.org/x/net v0.24.0/go.mod h1:2Q7sJY5mzlzWjKtYUEXSlBWCdyaioyXzRB2RtU8KVE8= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= -golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= -golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= -golang.org/x/oauth2 v0.0.0-20191202225959-858c2ad4c8b6/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= -golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= -golang.org/x/oauth2 v0.0.0-20200902213428-5d25da1a8d43/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= -golang.org/x/oauth2 v0.0.0-20201109201403-9fd604954f58/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= -golang.org/x/oauth2 v0.0.0-20201208152858-08078c50e5b5/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= -golang.org/x/oauth2 v0.0.0-20210218202405-ba52d332ba99/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= -golang.org/x/oauth2 v0.0.0-20210220000619-9bb904979d93/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= -golang.org/x/oauth2 v0.0.0-20210313182246-cd4f82c27b84/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= -golang.org/x/oauth2 v0.0.0-20210402161424-2e8d93401602/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= -golang.org/x/oauth2 v0.0.0-20210514164344-f6687ab2804c/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= -golang.org/x/oauth2 v0.0.0-20211104180415-d3ed0bb246c8/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= -golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b h1:clP8eMhB30EHdc0bd2Twtq6kgU7yl5ub2cQLSdrv1Dg= -golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= +golang.org/x/oauth2 v0.17.0 h1:6m3ZPmLEFdVxKKWnKq4VqZ60gutO35zm+zrAHVmHyDQ= +golang.org/x/oauth2 v0.17.0/go.mod h1:OzPDGQiuQMguemayvdylqddI7qcD9lnSDb+1FiwQ5HA= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20200317015054-43a5402ce75a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20200625203802-6e8e738ad208/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20201207232520-09787c993a3a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sys v0.0.0-20180823144017-11551d06cbcc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sync v0.5.0 h1:60k92dhOjHxJkrqnwsfl8KuaHbn/5dl0lUPUklKo3qE= +golang.org/x/sync v0.5.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20181026203630-95b1ffbd15a5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20181116152217-5ac8a444bdc5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20190312061237-fead79001313/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190422165155-953cdadca894/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190502145724-3ef323f4f1fd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190507160741-ecd444e8653b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190606165138-5da285871e9c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190624142023-c5567b49c5d0/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190726091711-fc99dfbffb4e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190904154756-749cb33beabd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20191001151750-bb3f8db39f24/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20191002063906-3421d5a6bb1c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20191005200804-aed5e4c7ecf9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20191120155948-bd437916bb0e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20191204072324-ce4227a45e2e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20191228213918-04cbcbbfeed8/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200106162015-b016eb3dc98e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200113162924-86b910548bc1/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200122134326-e047566fdf82/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200202164722-d101bd2416d5/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200212091648-12a6c2dcc1e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200302150141-5c8b2ff67527/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200331124033-c3d80250170d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200501052902-10377860bb8e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200511232937-7e40ca221e25/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200515095857-1151b9dac4a9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200519105757-fe76b779f299/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200523222454-059865788121/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200615200032-f1bc736245b1/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200625212154-ddb9806d33ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200803210538-64077c9b5642/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200905004654-be1d3432aa8f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20201201145000-ef89a241ccb3/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210104204734-6f8348627aad/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210119212857-b64e53b001e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210220050731-9a76102bfb43/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210305230114-8fe3ee5dd75b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210315160823-c6e025ad8005/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210320140829-1e4c9ba3b0c4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210330210617-4fbd30eecc44/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210403161142-5e06dd20ab57/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210510120138-977fb7262007/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20210603081109-ebe580a85c40/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210616094352-59db8d763f22/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20211019181941-9d821ace8654/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220114195835-da31bd327af9/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220209214540-3681064d5158/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.18.0 h1:DBdB3niSjOA/O0blCZBqDefyWNYveAYMNF1Wum0DYQ4= -golang.org/x/sys v0.18.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.19.0 h1:q5f1RH2jigJ1MoAWp2KTp3gm5zAGFUTarQZ5U386+4o= +golang.org/x/sys v0.19.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= -golang.org/x/term v0.5.0/go.mod h1:jMB1sMXY+tzblOD4FWmEbocvup2/aLOaQEp7JmGp78k= -golang.org/x/term v0.18.0 h1:FcHjZXDMxI8mM3nwhX9HlKop4C0YQvCVCdwYl2wOtE8= -golang.org/x/term v0.18.0/go.mod h1:ILwASektA3OnRv7amZ1xhE/KTR+u50pbXfZ03+6Nx58= -golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +golang.org/x/term v0.0.0-20220526004731-065cf7ba2467/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= +golang.org/x/term v0.19.0 h1:+ThwsDv+tYfnJFhF4L8jITxu1tdTWRTZpdsWgEgjL6Q= +golang.org/x/term v0.19.0/go.mod h1:2CuTdWZ7KHSQwUzKva0cbMg6q2DMI3Mmxp+gKJbskEk= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= -golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= -golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.3.4/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.3.5/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= -golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.3.8/go.mod h1:E6s5w1FMmriuDzIBO73fBruAKo1PCIq6d2Q6DHfQ8WQ= golang.org/x/text v0.14.0 h1:ScX5w1eTa3QqT8oi6+ziP7dTV1S2+ALU0bI+0zXKWiQ= golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= -golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= -golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= -golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= -golang.org/x/time v0.0.0-20220210224613-90d013bbcef8 h1:vVKdlvoWBphwdxWKrFZEuM0kGgGLxUOYcY4U/2Vjg44= -golang.org/x/time v0.0.0-20220210224613-90d013bbcef8/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= +golang.org/x/time v0.3.0 h1:rg5rLMjNzMS1RkNLzCG38eapWhnYLFYXDXj2gOlr8j4= +golang.org/x/time v0.3.0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY= golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= -golang.org/x/tools v0.0.0-20190312151545-0bb0c0a6e846/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= -golang.org/x/tools v0.0.0-20190312170243-e65039ee4138/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= -golang.org/x/tools v0.0.0-20190328211700-ab21143f2384/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= -golang.org/x/tools v0.0.0-20190425150028-36563e24a262/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= -golang.org/x/tools v0.0.0-20190506145303-2d16b83fe98c/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= -golang.org/x/tools v0.0.0-20190606124116-d0a3d012864b/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= -golang.org/x/tools v0.0.0-20190621195816-6e04913cbbac/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= -golang.org/x/tools v0.0.0-20190624222133-a101b041ded4/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= -golang.org/x/tools v0.0.0-20190628153133-6cdbf07be9d0/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= -golang.org/x/tools v0.0.0-20190816200558-6889da9d5479/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20190911174233-4f2ddba30aff/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191012152004-8de300cfc20a/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191108193012-7d206e10da11/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191112195655-aa38f8e97acc/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191113191852-77e3bb0ad9e7/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191115202509-3a792d9c32b2/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191125144606-a911d9008d1f/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191130070609-6e064ea0cf2d/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191216173652-a0e659d51361/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20191227053925-7b8e75db28f4/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200117161641-43d50277825c/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200122220014-bf1340f18c4a/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200130002326-2f3ba24bd6e7/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200204074204-1cc6d1ef6c74/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200207183749-b753a1ba74fa/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200212150539-ea181f53ac56/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200224181240-023911ca70b2/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200227222343-706bc42d1f0d/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200304193943-95d2e580d8eb/go.mod h1:o4KQGtdN14AW+yjsvvwRTJJuXz8XRtIHtEnmAXLyFUw= -golang.org/x/tools v0.0.0-20200312045724-11d5b4c81c7d/go.mod h1:o4KQGtdN14AW+yjsvvwRTJJuXz8XRtIHtEnmAXLyFUw= -golang.org/x/tools v0.0.0-20200331025713-a30bf2db82d4/go.mod h1:Sl4aGygMT6LrqrWclx+PTx3U+LnKx/seiNR+3G19Ar8= -golang.org/x/tools v0.0.0-20200501065659-ab2804fb9c9d/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= -golang.org/x/tools v0.0.0-20200505023115-26f46d2f7ef8/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= -golang.org/x/tools v0.0.0-20200512131952-2bc93b1c0c88/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= -golang.org/x/tools v0.0.0-20200515010526-7d3b6ebf133d/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= -golang.org/x/tools v0.0.0-20200618134242-20370b0cb4b2/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= -golang.org/x/tools v0.0.0-20200729194436-6467de6f59a7/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= -golang.org/x/tools v0.0.0-20200804011535-6c149bb5ef0d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= -golang.org/x/tools v0.0.0-20200825202427-b303f430e36d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= -golang.org/x/tools v0.0.0-20200904185747-39188db58858/go.mod h1:Cj7w3i3Rnn0Xh82ur9kSqwfTHTeVxaDqrfMjpcNT6bE= -golang.org/x/tools v0.0.0-20201110124207-079ba7bd75cd/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= -golang.org/x/tools v0.0.0-20201201161351-ac6f37ff4c2a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= -golang.org/x/tools v0.0.0-20201208233053-a543418bbed2/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= -golang.org/x/tools v0.0.0-20210105154028-b0ab187a4818/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= -golang.org/x/tools v0.1.0/go.mod h1:xkSsbof2nBLbhDlRMhhhyNLN/zl3eTqcnHD5viDpcZ0= -golang.org/x/tools v0.1.2/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= -golang.org/x/tools v0.1.5/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= -golang.org/x/tools v0.1.10-0.20220218145154-897bd77cd717/go.mod h1:Uh6Zz+xoGYZom868N8YTex3t7RhtHDBrE8Gzo9bV56E= golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc= +golang.org/x/tools v0.20.0 h1:hz/CVckiOxybQvFw6h7b/q80NTr9IUQb4s1IIzW7KNY= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -gomodules.xyz/jsonpatch/v2 v2.2.0 h1:4pT439QV83L+G9FkcCriY6EkpcK6r6bK+A5FBUMI7qY= -google.golang.org/api v0.4.0/go.mod h1:8k5glujaEP+g9n7WNsDg8QP6cUVNI86fCNMcbazEtwE= -google.golang.org/api v0.7.0/go.mod h1:WtwebWUNSVBH/HAw79HIFXZNqEvBhG+Ra+ax0hx3E3M= -google.golang.org/api v0.8.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= -google.golang.org/api v0.9.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= -google.golang.org/api v0.13.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= -google.golang.org/api v0.14.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= -google.golang.org/api v0.15.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= -google.golang.org/api v0.17.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= -google.golang.org/api v0.18.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= -google.golang.org/api v0.19.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= -google.golang.org/api v0.20.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= -google.golang.org/api v0.22.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= -google.golang.org/api v0.24.0/go.mod h1:lIXQywCXRcnZPGlsd8NbLnOjtAoL6em04bJ9+z0MncE= -google.golang.org/api v0.28.0/go.mod h1:lIXQywCXRcnZPGlsd8NbLnOjtAoL6em04bJ9+z0MncE= -google.golang.org/api v0.29.0/go.mod h1:Lcubydp8VUV7KeIHD9z2Bys/sm/vGKnG1UHuDBSrHWM= -google.golang.org/api v0.30.0/go.mod h1:QGmEvQ87FHZNiUVJkT14jQNYJ4ZJjdRF23ZXz5138Fc= -google.golang.org/api v0.35.0/go.mod h1:/XrVsuzM0rZmrsbjJutiuftIzeuTQcEeaYcSk/mQ1dg= -google.golang.org/api v0.36.0/go.mod h1:+z5ficQTmoYpPn8LCUNVpK5I7hwkpjbcgqA7I34qYtE= -google.golang.org/api v0.40.0/go.mod h1:fYKFpnQN0DsDSKRVRcQSDQNtqWPfM9i+zNPxepjRCQ8= -google.golang.org/api v0.41.0/go.mod h1:RkxM5lITDfTzmyKFPt+wGrCJbVfniCr2ool8kTBzRTU= -google.golang.org/api v0.43.0/go.mod h1:nQsDGjRXMo4lvh5hP0TKqF244gqhGcr/YSIykhUk/94= -google.golang.org/api v0.44.0/go.mod h1:EBOGZqzyhtvMDoxwS97ctnh0zUmYY6CxqXsc1AvkYD8= +gomodules.xyz/jsonpatch/v2 v2.4.0 h1:Ci3iUJyx9UeRx7CeFN8ARgGbkESwJK+KB9lLcWxY/Zw= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= -google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= -google.golang.org/appengine v1.6.1/go.mod h1:i06prIuMbXzDqacNJfV5OdTW448YApPu5ww/cMBSeb0= -google.golang.org/appengine v1.6.5/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= -google.golang.org/appengine v1.6.6/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= -google.golang.org/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= -google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= +google.golang.org/appengine v1.6.8 h1:IhEN5q69dyKagZPYMSdIjS2HqprW324FRQZJcGqPAsM= +google.golang.org/appengine v1.6.8/go.mod h1:1jJ3jBArFh5pcgW8gCtRJnepW8FzD1V44FJffLiz/Ds= google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= -google.golang.org/genproto v0.0.0-20190307195333-5fe7a883aa19/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= -google.golang.org/genproto v0.0.0-20190418145605-e7d98fc518a7/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= -google.golang.org/genproto v0.0.0-20190425155659-357c62f0e4bb/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= -google.golang.org/genproto v0.0.0-20190502173448-54afdca5d873/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= -google.golang.org/genproto v0.0.0-20190801165951-fa694d86fc64/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= -google.golang.org/genproto v0.0.0-20190911173649-1774047e7e51/go.mod h1:IbNlFCBrqXvoKpeg0TB2l7cyZUmoaFKYIwrEpbDKLA8= -google.golang.org/genproto v0.0.0-20191108220845-16a3f7862a1a/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= -google.golang.org/genproto v0.0.0-20191115194625-c23dd37a84c9/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= -google.golang.org/genproto v0.0.0-20191216164720-4f79533eabd1/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= -google.golang.org/genproto v0.0.0-20191230161307-f3c370f40bfb/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= -google.golang.org/genproto v0.0.0-20200115191322-ca5a22157cba/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= -google.golang.org/genproto v0.0.0-20200122232147-0452cf42e150/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= -google.golang.org/genproto v0.0.0-20200204135345-fa8e72b47b90/go.mod h1:GmwEX6Z4W5gMy59cAlVYjN9JhxgbQH6Gn+gFDQe2lzA= -google.golang.org/genproto v0.0.0-20200212174721-66ed5ce911ce/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= -google.golang.org/genproto v0.0.0-20200224152610-e50cd9704f63/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= -google.golang.org/genproto v0.0.0-20200228133532-8c2c7df3a383/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= -google.golang.org/genproto v0.0.0-20200305110556-506484158171/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= -google.golang.org/genproto v0.0.0-20200312145019-da6875a35672/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= -google.golang.org/genproto v0.0.0-20200331122359-1ee6d9798940/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= -google.golang.org/genproto v0.0.0-20200430143042-b979b6f78d84/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= -google.golang.org/genproto v0.0.0-20200511104702-f5ebc3bea380/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= -google.golang.org/genproto v0.0.0-20200513103714-09dca8ec2884/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= -google.golang.org/genproto v0.0.0-20200515170657-fc4c6c6a6587/go.mod h1:YsZOwe1myG/8QRHRsmBRE1LrgQY60beZKjly0O1fX9U= google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto v0.0.0-20200618031413-b414f8b61790/go.mod h1:jDfRM7FcilCzHH/e9qn6dsT145K34l5v+OpcnNgKAAA= -google.golang.org/genproto v0.0.0-20200729003335-053ba62fc06f/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20200804131852-c06518451d9c/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20200825200019-8632dd797987/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20200904004341-0bd0a958aa1d/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20201019141844-1ed22bb0c154/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20201109203340-2640f1f9cdfb/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20201201144952-b05cb90ed32e/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20201210142538-e3217bee35cc/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20201214200347-8c77b98c765d/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20210222152913-aa3ee6e6a81c/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20210303154014-9728d6b83eeb/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20210310155132-4ce2db91004e/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20210319143718-93e7006c17a6/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20210402141018-6c239bbf2bb1/go.mod h1:9lPAdzaEmUacj36I+k7YKbEc5CXzPIeORRgDAUOu28A= -google.golang.org/genproto v0.0.0-20210602131652-f16073e35f0c/go.mod h1:UODoCrxHCcBojKKwX1terBiRUaqAsFqJiF615XL43r0= -google.golang.org/genproto v0.0.0-20220107163113-42d7afdf6368/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= -google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= -google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= -google.golang.org/grpc v1.25.1/go.mod h1:c3i+UQWmh7LiEpx4sFZnkU36qjEYZ0imhYfXVyQciAY= -google.golang.org/grpc v1.26.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= google.golang.org/grpc v1.27.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= -google.golang.org/grpc v1.27.1/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= -google.golang.org/grpc v1.28.0/go.mod h1:rpkK4SK4GF4Ach/+MFLZUBavHOvF2JJB5uozKKal+60= -google.golang.org/grpc v1.29.1/go.mod h1:itym6AZVZYACWQqET3MqgPpjcuV5QH3BxFS3IjizoKk= -google.golang.org/grpc v1.30.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= -google.golang.org/grpc v1.31.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= -google.golang.org/grpc v1.31.1/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= -google.golang.org/grpc v1.33.1/go.mod h1:fr5YgcSWrqhRRxogOsw7RzIpsmvOZ6IcH4kBYTpR3n0= -google.golang.org/grpc v1.33.2/go.mod h1:JMHMWHQWaTccqQQlmk3MJZS+GWXOdAesneDmEnv2fbc= -google.golang.org/grpc v1.34.0/go.mod h1:WotjhfgOW/POjDeRt8vscBtXq+2VjORFy659qA51WJ8= -google.golang.org/grpc v1.35.0/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAGRRjU= -google.golang.org/grpc v1.36.0/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAGRRjU= -google.golang.org/grpc v1.36.1/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAGRRjU= -google.golang.org/grpc v1.37.0/go.mod h1:NREThFqKR1f3iQ6oBuvc5LadQuXVGo9rkm5ZGrQdJfM= -google.golang.org/grpc v1.38.0/go.mod h1:NREThFqKR1f3iQ6oBuvc5LadQuXVGo9rkm5ZGrQdJfM= -google.golang.org/grpc v1.40.0/go.mod h1:ogyxbiOoUXAkP+4+xa6PZSE9DZgIHtSpzjDTB9KAK34= google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM= google.golang.org/protobuf v1.20.1-0.20200309200217-e05f789c0967/go.mod h1:A+miEFZTKqfCUM6K7xSMQL9OKL/b6hQv+e19PK+JZNE= google.golang.org/protobuf v1.21.0/go.mod h1:47Nbq4nVaFHyn7ilMalzfO3qCViNmqZ2kzikPIcrTAo= google.golang.org/protobuf v1.22.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= -google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= google.golang.org/protobuf v1.23.1-0.20200526195155-81db48ad09cc/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= -google.golang.org/protobuf v1.24.0/go.mod h1:r/3tXBNzIEhYS9I1OUVjXDlt8tc493IdKGjtUeSXeh4= google.golang.org/protobuf v1.25.0/go.mod h1:9JNX74DMeImyA3h4bdi1ymwjUzf21/xIlbajtzgsN7c= google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= -google.golang.org/protobuf v1.27.1/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= -google.golang.org/protobuf v1.28.1 h1:d0NfwRgPtno5B1Wa6L2DAG+KivqkdutMf1UhdNx175w= -google.golang.org/protobuf v1.28.1/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= -gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw= +google.golang.org/protobuf v1.33.0 h1:uNO2rsAINq/JlFpSdYEKIZ0uKD/R9cpdv0T+yoGwGmI= +google.golang.org/protobuf v1.33.0/go.mod h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHhKbcUYpos= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= -gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= -gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= -gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f h1:BLraFXnmrev5lT+xlilqcH8XK9/i0At2xKjWk4p6zsU= -gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= -gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI= -gopkg.in/fsnotify.v1 v1.4.7/go.mod h1:Tz8NjZHkW78fSQdbUxIjBTcgA1z1m8ZHf0WmKUhAMys= +gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk= +gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q= gopkg.in/inf.v0 v0.9.1 h1:73M5CoZyi3ZLMOyDlQh031Cx6N9NDJ2Vvfl76EDAgDc= gopkg.in/inf.v0 v0.9.1/go.mod h1:cWUDdTG/fYaXco+Dcufb5Vnc6Gp2YChqWtbxRZE0mXw= -gopkg.in/ini.v1 v1.62.0/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k= -gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 h1:uRGJdciOHaEIrze2W8Q3AKkepLTh2hOroT7a+7czfdQ= -gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod h1:dt/ZhP58zS4L8KSrWDmTeBkI65Dw0HsyUHuEVlX15mw= -gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= -gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= -gopkg.in/yaml.v2 v2.2.3/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= -gopkg.in/yaml.v2 v2.2.4/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= -gopkg.in/yaml.v2 v2.2.5/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.3.0/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY= gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ= gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= -gopkg.in/yaml.v3 v3.0.0-20200615113413-eeeca48fe776/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= -gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= -gotest.tools/v3 v3.0.2/go.mod h1:3SzNCllyD9/Y+b5r9JIKQ474KzkZyqLqEfYqMsX94Bk= -gotest.tools/v3 v3.0.3 h1:4AuOwCGf4lLR9u3YOe2awrHygurzhO/HeQ6laiA6Sx0= -gotest.tools/v3 v3.0.3/go.mod h1:Z7Lb0S5l+klDB31fvDQX8ss/FlKDxtlFlw3Oa8Ymbl8= honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= -honnef.co/go/tools v0.0.0-20190106161140-3f1c8253044a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= -honnef.co/go/tools v0.0.0-20190418001031-e561f6794a2a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= -honnef.co/go/tools v0.0.1-2019.2.3/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt0JzvZhAg= -honnef.co/go/tools v0.0.1-2020.1.3/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= -honnef.co/go/tools v0.0.1-2020.1.4/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= -k8s.io/api v0.24.0/go.mod h1:5Jl90IUrJHUJYEMANRURMiVvJ0g7Ax7r3R1bqO8zx8I= -k8s.io/api v0.24.1/go.mod h1:JhoOvNiLXKTPQ60zh2g0ewpA+bnEYf5q44Flhquh4vQ= -k8s.io/api v0.24.16 h1:9G8eHAtCvY8dLmTmRI/+O1/7alkcz29UKGyLkeMSRw8= -k8s.io/api v0.24.16/go.mod h1:lNKdTj0W2upnaS9S5kvHTU5T/NTHnDdmQjUjODC8JZs= -k8s.io/apiextensions-apiserver v0.24.1 h1:5yBh9+ueTq/kfnHQZa0MAo6uNcPrtxPMpNQgorBaKS0= -k8s.io/apimachinery v0.24.0/go.mod h1:82Bi4sCzVBdpYjyI4jY6aHX+YCUchUIrZrXKedjd2UM= -k8s.io/apimachinery v0.24.1/go.mod h1:82Bi4sCzVBdpYjyI4jY6aHX+YCUchUIrZrXKedjd2UM= -k8s.io/apimachinery v0.24.16 h1:3u2XdCZcV0PUagOuH1+b0vVfZwnOhVwSauuVlIYH278= -k8s.io/apimachinery v0.24.16/go.mod h1:kSzhCwldu9XB172NDdLffRN0sJ3x95RR7Bmyc4SHhs0= -k8s.io/cli-runtime v0.24.0 h1:ot3Qf49T852uEyNApABO1UHHpFIckKK/NqpheZYN2gM= -k8s.io/cli-runtime v0.24.0/go.mod h1:9XxoZDsEkRFUThnwqNviqzljtT/LdHtNWvcNFrAXl0A= -k8s.io/client-go v0.24.0/go.mod h1:VFPQET+cAFpYxh6Bq6f4xyMY80G6jKKktU6G0m00VDw= -k8s.io/client-go v0.24.1 h1:w1hNdI9PFrzu3OlovVeTnf4oHDt+FJLd9Ndluvnb42E= -k8s.io/client-go v0.24.1/go.mod h1:f1kIDqcEYmwXS/vTbbhopMUbhKp2JhOeVTfxgaCIlF8= -k8s.io/code-generator v0.24.0/go.mod h1:dpVhs00hTuTdTY6jvVxvTFCk6gSMrtfRydbhZwHI15w= -k8s.io/component-base v0.24.0 h1:h5jieHZQoHrY/lHG+HyrSbJeyfuitheBvqvKwKHVC0g= -k8s.io/component-base v0.24.0/go.mod h1:Dgazgon0i7KYUsS8krG8muGiMVtUZxG037l1MKyXgrA= -k8s.io/component-helpers v0.24.0/go.mod h1:Q2SlLm4h6g6lPTC9GMMfzdywfLSvJT2f1hOnnjaWD8c= -k8s.io/gengo v0.0.0-20200413195148-3a45101e95ac/go.mod h1:ezvh/TsK7cY6rbqRK0oQQ8IAqLxYwwyPxAX1Pzy0ii0= -k8s.io/gengo v0.0.0-20210813121822-485abfe95c7c/go.mod h1:FiNAH4ZV3gBg2Kwh89tzAEV2be7d5xI0vBa/VySYy3E= -k8s.io/gengo v0.0.0-20211129171323-c02415ce4185/go.mod h1:FiNAH4ZV3gBg2Kwh89tzAEV2be7d5xI0vBa/VySYy3E= -k8s.io/klog/v2 v2.0.0/go.mod h1:PBfzABfn139FHAV07az/IF9Wp1bkk3vpT2XSJ76fSDE= -k8s.io/klog/v2 v2.2.0/go.mod h1:Od+F08eJP+W3HUb4pSrPpgp9DGU4GzlpG/TmITuYh/Y= -k8s.io/klog/v2 v2.60.1/go.mod h1:y1WjHnz7Dj687irZUWR/WLkLc5N1YHtjLdmgWjndZn0= -k8s.io/klog/v2 v2.80.1 h1:atnLQ121W371wYYFawwYx1aEY2eUfs4l3J72wtgAwV4= -k8s.io/klog/v2 v2.80.1/go.mod h1:y1WjHnz7Dj687irZUWR/WLkLc5N1YHtjLdmgWjndZn0= -k8s.io/kube-openapi v0.0.0-20210421082810-95288971da7e/go.mod h1:vHXdDvt9+2spS2Rx9ql3I8tycm3H9FDfdUoIuKCefvw= -k8s.io/kube-openapi v0.0.0-20220328201542-3ee0da9b0b42 h1:Gii5eqf+GmIEwGNKQYQClCayuJCe2/4fZUvF7VG99sU= -k8s.io/kube-openapi v0.0.0-20220328201542-3ee0da9b0b42/go.mod h1:Z/45zLw8lUo4wdiUkI+v/ImEGAvu3WatcZl3lPMR4Rk= -k8s.io/kubectl v0.24.0 h1:nA+WtMLVdXUs4wLogGd1mPTAesnLdBpCVgCmz3I7dXo= -k8s.io/kubectl v0.24.0/go.mod h1:pdXkmCyHiRTqjYfyUJiXtbVNURhv0/Q1TyRhy2d5ic0= -k8s.io/metrics v0.24.0/go.mod h1:jrLlFGdKl3X+szubOXPG0Lf2aVxuV3QJcbsgVRAM6fI= -k8s.io/utils v0.0.0-20210802155522-efc7438f0176/go.mod h1:jPW/WVKK9YHAvNhRxK0md/EJ228hCsBRufyofKtW8HA= -k8s.io/utils v0.0.0-20220210201930-3a6ce19ff2f9/go.mod h1:jPW/WVKK9YHAvNhRxK0md/EJ228hCsBRufyofKtW8HA= -k8s.io/utils v0.0.0-20221107191617-1a15be271d1d h1:0Smp/HP1OH4Rvhe+4B8nWGERtlqAGSftbSbbmm45oFs= -k8s.io/utils v0.0.0-20221107191617-1a15be271d1d/go.mod h1:OLgZIPagt7ERELqWJFomSt595RzquPNLL48iOWgYOg0= -rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8= -rsc.io/quote/v3 v3.1.0/go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0= -rsc.io/sampler v1.3.0/go.mod h1:T1hPZKmBbMNahiBKFy5HrXp6adAjACjK9JXDnKaTXpA= -sigs.k8s.io/controller-runtime v0.12.1 h1:4BJY01xe9zKQti8oRjj/NeHKRXthf1YkYJAgLONFFoI= -sigs.k8s.io/controller-runtime v0.12.1/go.mod h1:BKhxlA4l7FPK4AQcsuL4X6vZeWnKDXez/vp1Y8dxTU0= +k8s.io/api v0.28.9 h1:E7VEXXCAlSrp+08zq4zgd+ko6Ttu0Mw+XoXlIkDTVW0= +k8s.io/api v0.28.9/go.mod h1:AnCsDYf3SHjfa8mPG5LGYf+iF4mie+3peLQR51MMCgw= +k8s.io/apiextensions-apiserver v0.28.9 h1:yzPHp+4IASHeu7XIPkAKJrY4UjWdjiAjOcQMd6oNKj0= +k8s.io/apimachinery v0.28.9 h1:aXz4Zxsw+Pk4KhBerAtKRxNN1uSMWKfciL/iOdBfXvA= +k8s.io/apimachinery v0.28.9/go.mod h1:zUG757HaKs6Dc3iGtKjzIpBfqTM4yiRsEe3/E7NX15o= +k8s.io/cli-runtime v0.28.9 h1:TfEV/UgCiXewliUHOHsUMZ1bfENhqcqKkA/hqQ/HwvQ= +k8s.io/cli-runtime v0.28.9/go.mod h1:PgxW97xCDbtWgsuo2nahMc2/MxcSDgscdwm8XZ7973A= +k8s.io/client-go v0.28.9 h1:mmMvejwc/KDjMLmDpyaxkWNzlWRCJ6ht7Qsbsnwn39Y= +k8s.io/client-go v0.28.9/go.mod h1:GFDy3rUNId++WGrr0hRaBrs+y1eZz5JtVZODEalhRMo= +k8s.io/component-base v0.28.9 h1:ySM2PR8Z/xaUSG1Akd3yM6dqUezTltI7S5aV41MMuuc= +k8s.io/component-base v0.28.9/go.mod h1:QtWzscEhCKRfHV24/S+11BwWjVxhC6fd3RYoEgZcWFU= +k8s.io/klog/v2 v2.120.1 h1:QXU6cPEOIslTGvZaXvFWiP9VKyeet3sawzTOvdXb4Vw= +k8s.io/klog/v2 v2.120.1/go.mod h1:3Jpz1GvMt720eyJH1ckRHK1EDfpxISzJ7I9OYgaDtPE= +k8s.io/kube-openapi v0.0.0-20230717233707-2695361300d9 h1:LyMgNKD2P8Wn1iAwQU5OhxCKlKJy0sHc+PcDwFB24dQ= +k8s.io/kube-openapi v0.0.0-20230717233707-2695361300d9/go.mod h1:wZK2AVp1uHCp4VamDVgBP2COHZjqD1T68Rf0CM3YjSM= +k8s.io/kubectl v0.28.9 h1:FTf/aapuuFxPmt8gYUeqUmcsgG0gKC2ei6n+TO5sGOw= +k8s.io/kubectl v0.28.9/go.mod h1:ip/zTUr1MM/H2M+YbPHnSKLt0x6kb85SJtRSjwEGDfs= +k8s.io/utils v0.0.0-20230726121419-3b25d923346b h1:sgn3ZU783SCgtaSJjpcVVlRqd6GSnlTLKgpAAttJvpI= +k8s.io/utils v0.0.0-20230726121419-3b25d923346b/go.mod h1:OLgZIPagt7ERELqWJFomSt595RzquPNLL48iOWgYOg0= +sigs.k8s.io/controller-runtime v0.16.6 h1:FiXwTuFF5ZJKmozfP2Z0j7dh6kmxP4Ou1KLfxgKKC3I= +sigs.k8s.io/controller-runtime v0.16.6/go.mod h1:+dQzkZxnylD0u49e0a+7AR+vlibEBaThmPca7lTyUsI= sigs.k8s.io/gateway-api v0.5.1 h1:EqzgOKhChzyve9rmeXXbceBYB6xiM50vDfq0kK5qpdw= sigs.k8s.io/gateway-api v0.5.1/go.mod h1:x0AP6gugkFV8fC/oTlnOMU0pnmuzIR8LfIPRVUjxSqA= -sigs.k8s.io/json v0.0.0-20211208200746-9f7c6b3444d2 h1:kDi4JBNAsJWfz1aEXhO8Jg87JJaPNLh5tIzYHgStQ9Y= -sigs.k8s.io/json v0.0.0-20211208200746-9f7c6b3444d2/go.mod h1:B+TnT182UBxE84DiCz4CVE26eOSDAeYCpfDnC2kdKMY= -sigs.k8s.io/kustomize/api v0.11.4 h1:/0Mr3kfBBNcNPOW5Qwk/3eb8zkswCwnqQxxKtmrTkRo= -sigs.k8s.io/kustomize/api v0.11.4/go.mod h1:k+8RsqYbgpkIrJ4p9jcdPqe8DprLxFUUO0yNOq8C+xI= -sigs.k8s.io/kustomize/cmd/config v0.10.6/go.mod h1:/S4A4nUANUa4bZJ/Edt7ZQTyKOY9WCER0uBS1SW2Rco= -sigs.k8s.io/kustomize/kustomize/v4 v4.5.4 h1:rzGrL+DA4k8bT6SMz7/U+2z3iiZf1t2RaYJWx8OeTmE= -sigs.k8s.io/kustomize/kustomize/v4 v4.5.4/go.mod h1:Zo/Xc5FKD6sHl0lilbrieeGeZHVYCA4BzxeAaLI05Bg= -sigs.k8s.io/kustomize/kyaml v0.13.6 h1:eF+wsn4J7GOAXlvajv6OknSunxpcOBQQqsnPxObtkGs= -sigs.k8s.io/kustomize/kyaml v0.13.6/go.mod h1:yHP031rn1QX1lr/Xd934Ri/xdVNG8BE2ECa78Ht/kEg= -sigs.k8s.io/structured-merge-diff/v4 v4.0.2/go.mod h1:bJZC9H9iH24zzfZ/41RGcq60oK1F7G282QMXDPYydCw= -sigs.k8s.io/structured-merge-diff/v4 v4.2.1/go.mod h1:j/nl6xW8vLS49O8YvXW1ocPhZawJtm+Yrr7PPRQ0Vg4= -sigs.k8s.io/structured-merge-diff/v4 v4.2.3 h1:PRbqxJClWWYMNV1dhaG4NsibJbArud9kFxnAMREiWFE= -sigs.k8s.io/structured-merge-diff/v4 v4.2.3/go.mod h1:qjx8mGObPmV2aSZepjQjbmb2ihdVs8cGKBraizNC69E= -sigs.k8s.io/yaml v1.2.0/go.mod h1:yfXDCHCao9+ENCvLSE62v9VSji2MKu5jeNfTrofGhJc= -sigs.k8s.io/yaml v1.3.0 h1:a2VclLzOGrwOHDiV8EfBGhvjHvP46CtW5j6POvhYGGo= -sigs.k8s.io/yaml v1.3.0/go.mod h1:GeOyir5tyXNByN85N/dRIT9es5UQNerPYEKK56eTBm8= +sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd h1:EDPBXCAspyGV4jQlpZSudPeMmr1bNJefnuqLsRAsHZo= +sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd/go.mod h1:B8JuhiUyNFVKdsE8h686QcCxMaH6HrOAZj4vswFpcB0= +sigs.k8s.io/kustomize/api v0.13.5-0.20230601165947-6ce0bf390ce3 h1:XX3Ajgzov2RKUdc5jW3t5jwY7Bo7dcRm+tFxT+NfgY0= +sigs.k8s.io/kustomize/api v0.13.5-0.20230601165947-6ce0bf390ce3/go.mod h1:9n16EZKMhXBNSiUC5kSdFQJkdH3zbxS/JoO619G1VAY= +sigs.k8s.io/kustomize/kustomize/v5 v5.0.4-0.20230601165947-6ce0bf390ce3 h1:vq2TtoDcQomhy7OxXLUOzSbHMuMYq0Bjn93cDtJEdKw= +sigs.k8s.io/kustomize/kustomize/v5 v5.0.4-0.20230601165947-6ce0bf390ce3/go.mod h1:/d88dHCvoy7d0AKFT0yytezSGZKjsZBVs9YTkBHSGFk= +sigs.k8s.io/kustomize/kyaml v0.14.3-0.20230601165947-6ce0bf390ce3 h1:W6cLQc5pnqM7vh3b7HvGNfXrJ/xL6BDMS0v1V/HHg5U= +sigs.k8s.io/kustomize/kyaml v0.14.3-0.20230601165947-6ce0bf390ce3/go.mod h1:JWP1Fj0VWGHyw3YUPjXSQnRnrwezrZSrApfX5S0nIag= +sigs.k8s.io/structured-merge-diff/v4 v4.4.1 h1:150L+0vs/8DA78h1u02ooW1/fFq/Lwr+sGiqlzvrtq4= +sigs.k8s.io/structured-merge-diff/v4 v4.4.1/go.mod h1:N8hJocpFajUSSeSJ9bOZ77VzejKZaXsTtZo4/u7Io08= +sigs.k8s.io/yaml v1.4.0 h1:Mk1wCc2gy/F0THH0TAp1QYyJNzRm2KCLy3o5ASXVI5E= +sigs.k8s.io/yaml v1.4.0/go.mod h1:Ejl7/uTz7PSA4eKMyQCUTnhZYNmLIl+5c2lQPGR2BPY= diff --git a/pkg/api/api.go b/pkg/api/api.go index 740620a..001f139 100644 --- a/pkg/api/api.go +++ b/pkg/api/api.go @@ -19,7 +19,8 @@ package api import ( kruiseappsv1alpha1 "github.com/openkruise/kruise-api/apps/v1alpha1" kruiseappsv1beta1 "github.com/openkruise/kruise-api/apps/v1beta1" - kruiserolloutsv1apha1 "github.com/openkruise/kruise-rollout-api/rollouts/v1beta1" + kruiserolloutsv1alpha1 "github.com/openkruise/kruise-rollout-api/rollouts/v1alpha1" + kruiserolloutsv1beta1 "github.com/openkruise/kruise-rollout-api/rollouts/v1beta1" apps "k8s.io/api/apps/v1" "k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/runtime/schema" @@ -39,7 +40,8 @@ func init() { _ = clientgoscheme.AddToScheme(Scheme) _ = kruiseappsv1alpha1.AddToScheme(Scheme) _ = kruiseappsv1beta1.AddToScheme(Scheme) - _ = kruiserolloutsv1apha1.AddToScheme(Scheme) + _ = kruiserolloutsv1alpha1.AddToScheme(Scheme) + _ = kruiserolloutsv1beta1.AddToScheme(Scheme) } func GetScheme() *runtime.Scheme { diff --git a/pkg/cmd/auto_completion.go b/pkg/cmd/auto_completion.go new file mode 100644 index 0000000..1269064 --- /dev/null +++ b/pkg/cmd/auto_completion.go @@ -0,0 +1,49 @@ +package cmd + +import ( + "fmt" + "os" + + "github.com/spf13/cobra" +) + +func NewAutoCompleteCommand() *cobra.Command { + var completionCmd = &cobra.Command{ + Use: "completion [bash|zsh|fish|powershell]", + Short: "Generate completion script", + Long: `To load completions: + +Bash: + $ source <(kubectl-kruise completion bash) + +Zsh: + # If shell completion is not already enabled in your environment, + # you will need to enable it. You can execute the following once: + $ echo "autoload -U compinit; compinit" >> ~/.zshrc + + # To load completions for each session, execute once: + $ kubectl-kruise completion zsh > "${fpath[1]}/_kubectl-kruise" + +Fish: + $ kubectl-kruise completion fish | source + +PowerShell: + PS> kubectl-kruise completion powershell | Out-String | Invoke-Expression +`, + RunE: func(cmd *cobra.Command, args []string) error { + switch args[0] { + case "bash": + return cmd.Root().GenBashCompletion(os.Stdout) + case "zsh": + return cmd.Root().GenZshCompletion(os.Stdout) + case "fish": + return cmd.Root().GenFishCompletion(os.Stdout, true) + case "powershell": + return cmd.Root().GenPowerShellCompletion(os.Stdout) + default: + return fmt.Errorf("unsupported shell type %q", args[0]) + } + }, + } + return completionCmd +} diff --git a/pkg/cmd/cmd.go b/pkg/cmd/cmd.go index 5833559..d5543b1 100644 --- a/pkg/cmd/cmd.go +++ b/pkg/cmd/cmd.go @@ -21,14 +21,16 @@ import ( "io" "os" + "github.com/spf13/cobra" + "github.com/openkruise/kruise-tools/pkg/cmd/create" + "github.com/openkruise/kruise-tools/pkg/cmd/describe" cmdexec "github.com/openkruise/kruise-tools/pkg/cmd/exec" "github.com/openkruise/kruise-tools/pkg/cmd/expose" "github.com/openkruise/kruise-tools/pkg/cmd/migrate" krollout "github.com/openkruise/kruise-tools/pkg/cmd/rollout" "github.com/openkruise/kruise-tools/pkg/cmd/scaledown" kset "github.com/openkruise/kruise-tools/pkg/cmd/set" - "github.com/spf13/cobra" "k8s.io/cli-runtime/pkg/genericclioptions" _ "k8s.io/client-go/plugin/pkg/client/auth" @@ -440,6 +442,9 @@ func NewKubectlCommand(in io.Reader, out, err io.Writer) *cobra.Command { } cmds.AddCommand(alpha) + cmds.AddCommand(NewCmdGenerateDocs(f, ioStreams)) + cmds.AddCommand(NewAutoCompleteCommand()) + cmds.AddCommand(describe.NewCmdDescibe(f, ioStreams)) cmds.AddCommand(cmdconfig.NewCmdConfig(clientcmd.NewDefaultPathOptions(), ioStreams)) cmds.AddCommand(plugin.NewCmdPlugin(ioStreams)) cmds.AddCommand(version.NewCmdVersion(f, ioStreams)) diff --git a/pkg/cmd/create/create.go b/pkg/cmd/create/create.go index be1d6be..3a9709e 100644 --- a/pkg/cmd/create/create.go +++ b/pkg/cmd/create/create.go @@ -53,10 +53,8 @@ type CreateOptions struct { RecordFlags *genericclioptions.RecordFlags DryRunStrategy cmdutil.DryRunStrategy - DryRunVerifier *resource.QueryParamVerifier - FieldValidationVerifier *resource.QueryParamVerifier - ValidationDirective string + ValidationDirective string fieldManager string @@ -193,12 +191,6 @@ func (o *CreateOptions) Complete(f cmdutil.Factory, cmd *cobra.Command) error { return err } cmdutil.PrintFlagsWithDryRunStrategy(o.PrintFlags, o.DryRunStrategy) - dynamicClient, err := f.DynamicClient() - if err != nil { - return err - } - o.DryRunVerifier = resource.NewQueryParamVerifier(dynamicClient, f.OpenAPIGetter(), resource.QueryParamDryRun) - o.FieldValidationVerifier = resource.NewQueryParamVerifier(dynamicClient, f.OpenAPIGetter(), resource.QueryParamFieldValidation) o.ValidationDirective, err = cmdutil.GetValidationDirective(cmd) if err != nil { @@ -231,7 +223,7 @@ func (o *CreateOptions) RunCreate(f cmdutil.Factory, cmd *cobra.Command) error { if o.EditBeforeCreate { return RunEditOnCreate(f, o.PrintFlags, o.RecordFlags, o.IOStreams, cmd, &o.FilenameOptions, o.fieldManager) } - schema, err := f.Validator(o.ValidationDirective, o.FieldValidationVerifier) + schema, err := f.Validator(o.ValidationDirective) if err != nil { return err @@ -270,11 +262,6 @@ func (o *CreateOptions) RunCreate(f cmdutil.Factory, cmd *cobra.Command) error { } if o.DryRunStrategy != cmdutil.DryRunClient { - if o.DryRunStrategy == cmdutil.DryRunServer { - if err := o.DryRunVerifier.HasSupport(info.Mapping.GroupVersionKind); err != nil { - return cmdutil.AddSourceToErr("creating", info.Source, err) - } - } obj, err := resource. NewHelper(info.Client, info.Mapping). DryRun(o.DryRunStrategy == cmdutil.DryRunServer). @@ -344,7 +331,6 @@ type CreateSubcommandOptions struct { // StructuredGenerator is the resource generator for the object being created StructuredGenerator generate.StructuredGenerator DryRunStrategy cmdutil.DryRunStrategy - DryRunVerifier *resource.QueryParamVerifier CreateAnnotation bool FieldManager string @@ -380,11 +366,6 @@ func (o *CreateSubcommandOptions) Complete(f cmdutil.Factory, cmd *cobra.Command if err != nil { return err } - dynamicClient, err := f.DynamicClient() - if err != nil { - return err - } - o.DryRunVerifier = resource.NewQueryParamVerifier(dynamicClient, f.OpenAPIGetter(), resource.QueryParamDryRun) o.CreateAnnotation = cmdutil.GetFlagBool(cmd, cmdutil.ApplyAnnotationsFlag) cmdutil.PrintFlagsWithDryRunStrategy(o.PrintFlags, o.DryRunStrategy) @@ -448,9 +429,6 @@ func (o *CreateSubcommandOptions) Run() error { createOptions.FieldManager = o.FieldManager } if o.DryRunStrategy == cmdutil.DryRunServer { - if err := o.DryRunVerifier.HasSupport(mapping.GroupVersionKind); err != nil { - return err - } createOptions.DryRun = []string{metav1.DryRunAll} } actualObject, err := o.DynamicClient.Resource(mapping.Resource).Namespace(o.Namespace).Create(context.TODO(), asUnstructured, createOptions) diff --git a/pkg/cmd/create/create_broadcast_job.go b/pkg/cmd/create/create_broadcast_job.go index de5a675..1c9826f 100644 --- a/pkg/cmd/create/create_broadcast_job.go +++ b/pkg/cmd/create/create_broadcast_job.go @@ -69,7 +69,6 @@ type CreateBroadcastJobOptions struct { EnforceNamespace bool kruisev1alpha1Client kruiseclientsets.Interface DryRunStrategy cmdutil.DryRunStrategy - DryRunVerifier *resource.QueryParamVerifier Builder *resource.Builder FieldManager string CreateAnnotation bool @@ -144,11 +143,6 @@ func (o *CreateBroadcastJobOptions) Complete(f cmdutil.Factory, cmd *cobra.Comma if err != nil { return err } - dynamicClient, err := f.DynamicClient() - if err != nil { - return err - } - o.DryRunVerifier = resource.NewQueryParamVerifier(dynamicClient, f.OpenAPIGetter(), resource.QueryParamDryRun) cmdutil.PrintFlagsWithDryRunStrategy(o.PrintFlags, o.DryRunStrategy) printer, err := o.PrintFlags.ToPrinter() if err != nil { @@ -214,9 +208,6 @@ func (o *CreateBroadcastJobOptions) Run() error { createOptions.FieldManager = o.FieldManager } if o.DryRunStrategy == cmdutil.DryRunServer { - if err := o.DryRunVerifier.HasSupport(job.GroupVersionKind()); err != nil { - return err - } createOptions.DryRun = []string{metav1.DryRunAll} } var err error diff --git a/pkg/cmd/create/create_crr.go b/pkg/cmd/create/create_crr.go index f57bf59..935e917 100644 --- a/pkg/cmd/create/create_crr.go +++ b/pkg/cmd/create/create_crr.go @@ -86,7 +86,6 @@ type CreateCRROptions struct { ClientSet kubernetes.Interface EnforceNamespace bool DryRunStrategy cmdutil.DryRunStrategy - DryRunVerifier *resource.QueryParamVerifier Builder *resource.Builder FieldManager string CreateAnnotation bool @@ -175,11 +174,6 @@ func (o *CreateCRROptions) Complete(f cmdutil.Factory, cmd *cobra.Command, args if err != nil { return err } - dynamicClient, err := f.DynamicClient() - if err != nil { - return err - } - o.DryRunVerifier = resource.NewQueryParamVerifier(dynamicClient, f.OpenAPIGetter(), resource.QueryParamDryRun) cmdutil.PrintFlagsWithDryRunStrategy(o.PrintFlags, o.DryRunStrategy) printer, err := o.PrintFlags.ToPrinter() if err != nil { @@ -224,9 +218,6 @@ func (o *CreateCRROptions) Run() error { createOptions.FieldManager = o.FieldManager } if o.DryRunStrategy == cmdutil.DryRunServer { - if err := o.DryRunVerifier.HasSupport(crr.GroupVersionKind()); err != nil { - return err - } createOptions.DryRun = []string{metav1.DryRunAll} } var err error diff --git a/pkg/cmd/create/create_job.go b/pkg/cmd/create/create_job.go index 0a5e0cf..635b98c 100644 --- a/pkg/cmd/create/create_job.go +++ b/pkg/cmd/create/create_job.go @@ -70,7 +70,6 @@ type CreateJobOptions struct { EnforceNamespace bool Client batchv1client.BatchV1Interface DryRunStrategy cmdutil.DryRunStrategy - DryRunVerifier *resource.QueryParamVerifier Builder *resource.Builder FieldManager string CreateAnnotation bool @@ -145,11 +144,6 @@ func (o *CreateJobOptions) Complete(f cmdutil.Factory, cmd *cobra.Command, args if err != nil { return err } - dynamicClient, err := f.DynamicClient() - if err != nil { - return err - } - o.DryRunVerifier = resource.NewQueryParamVerifier(dynamicClient, f.OpenAPIGetter(), resource.QueryParamDryRun) cmdutil.PrintFlagsWithDryRunStrategy(o.PrintFlags, o.DryRunStrategy) printer, err := o.PrintFlags.ToPrinter() if err != nil { @@ -219,9 +213,6 @@ func (o *CreateJobOptions) Run() error { createOptions.FieldManager = o.FieldManager } if o.DryRunStrategy == cmdutil.DryRunServer { - if err := o.DryRunVerifier.HasSupport(job.GroupVersionKind()); err != nil { - return err - } createOptions.DryRun = []string{metav1.DryRunAll} } var err error diff --git a/pkg/cmd/describe/describe.go b/pkg/cmd/describe/describe.go new file mode 100644 index 0000000..9b57a79 --- /dev/null +++ b/pkg/cmd/describe/describe.go @@ -0,0 +1,50 @@ +package describe + +/* +Copyright 2021 The Kruise Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +import ( + "github.com/spf13/cobra" + "k8s.io/cli-runtime/pkg/genericclioptions" + cmdutil "k8s.io/kubectl/pkg/cmd/util" + "k8s.io/kubectl/pkg/util/i18n" + "k8s.io/kubectl/pkg/util/templates" +) + +var ( + describeLong = templates.LongDesc(i18n.T(` + Show details of a rollout.`)) + + describeExample = templates.Examples(` + # Describe the rollout named rollout-demo + kubectl-kruise describe rollout rollout-demo`) +) + +// NewCmdRollout returns a Command instance for 'rollout' sub command +func NewCmdDescibe(f cmdutil.Factory, streams genericclioptions.IOStreams) *cobra.Command { + cmd := &cobra.Command{ + Use: "describe SUBCOMMAND", + DisableFlagsInUseLine: true, + Short: i18n.T("Show details of a specific resource or group of resources"), + Long: describeLong, + Example: describeExample, + Run: cmdutil.DefaultSubCommandRun(streams.Out), + } + // subcommands + cmd.AddCommand(NewCmdDescribeRollout(f, streams)) + + return cmd +} diff --git a/pkg/cmd/describe/describe_rollout.go b/pkg/cmd/describe/describe_rollout.go new file mode 100644 index 0000000..50294b5 --- /dev/null +++ b/pkg/cmd/describe/describe_rollout.go @@ -0,0 +1,597 @@ +/* +Copyright 2024 The Kruise Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package describe + +import ( + "context" + "fmt" + "reflect" + "sort" + "strconv" + "strings" + "text/tabwriter" + "time" + + kruiseappsv1alpha1 "github.com/openkruise/kruise-api/apps/v1alpha1" + kruiseappsv1beta1 "github.com/openkruise/kruise-api/apps/v1beta1" + rolloutsv1beta1 "github.com/openkruise/kruise-rollout-api/client/clientset/versioned" + rolloutsv1beta1types "github.com/openkruise/kruise-rollout-api/client/clientset/versioned/typed/rollouts/v1beta1" + rolloutsapi "github.com/openkruise/kruise-rollout-api/rollouts/v1beta1" + internalapi "github.com/openkruise/kruise-tools/pkg/api" + internalpolymorphichelpers "github.com/openkruise/kruise-tools/pkg/internal/polymorphichelpers" + "github.com/spf13/cobra" + appsv1 "k8s.io/api/apps/v1" + corev1 "k8s.io/api/core/v1" + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + "k8s.io/apimachinery/pkg/runtime" + "k8s.io/apimachinery/pkg/util/duration" + "k8s.io/apimachinery/pkg/watch" + "k8s.io/cli-runtime/pkg/genericclioptions" + "k8s.io/cli-runtime/pkg/resource" + "k8s.io/client-go/kubernetes/scheme" + cmdutil "k8s.io/kubectl/pkg/cmd/util" + "k8s.io/kubectl/pkg/util/i18n" + "k8s.io/kubectl/pkg/util/templates" +) + +const ( + tableFormat = "%-19s%v\n" +) + +var ( + rolloutLong = templates.LongDesc(i18n.T(` + Get details about and visual representation of a rollout.`)) + + rolloutExample = templates.Examples(` + # Describe the rollout named rollout-demo within namespace default + kubectl-kruise describe rollout rollout-demo/default + + # Watch for changes to the rollout named rollout-demo + kubectl-kruise describe rollout rollout-demo/default -w`) +) + +type DescribeRolloutOptions struct { + genericclioptions.IOStreams + Builder func() *resource.Builder + Namespace string + EnforceNamespace bool + Resources []string + RolloutViewerFn func(runtime.Object) (*rolloutsapi.Rollout, error) + Watch bool + NoColor bool + TimeoutSeconds int + RolloutsClient rolloutsv1beta1types.RolloutInterface +} + +type WorkloadInfo struct { + Name string + Kind string + Images []string + Replicas struct { + Desired int32 + Current int32 + Updated int32 + Ready int32 + Available int32 + } + Pod []struct { + Name string + BatchID string + Status string + Ready string + Age string + Restarts string + Revision string + } + CurrentRevision string + UpdateRevision string +} + +func NewCmdDescribeRollout(f cmdutil.Factory, streams genericclioptions.IOStreams) *cobra.Command { + o := &DescribeRolloutOptions{IOStreams: streams} + cmd := &cobra.Command{ + Use: "rollout SUBCOMMAND", + DisableFlagsInUseLine: true, + Short: i18n.T("Get details about a rollout"), + Long: rolloutLong, + Example: rolloutExample, + Aliases: []string{"rollouts", "ro"}, + Run: func(cmd *cobra.Command, args []string) { + cmdutil.CheckErr(o.Complete(f, args)) + cmdutil.CheckErr(o.Run()) + }, + } + + cmd.Flags().BoolVarP(&o.Watch, "watch", "w", false, "Watch for changes to the rollout") + cmd.Flags().BoolVar(&o.NoColor, "no-color", false, "If true, print output without color") + cmd.Flags().IntVar(&o.TimeoutSeconds, "timeout", 0, "Timeout after specified seconds") + + return cmd +} + +func (o *DescribeRolloutOptions) Complete(f cmdutil.Factory, args []string) error { + var err error + + if len(args) == 0 { + return fmt.Errorf("required rollout name not specified") + } + + o.Resources = args + o.Namespace, o.EnforceNamespace, err = f.ToRawKubeConfigLoader().Namespace() + + if err != nil { + return err + } + + parts := strings.Split(args[0], "/") + if len(parts) == 2 { + o.Resources = []string{parts[0]} + o.Namespace = parts[1] + } + + o.RolloutViewerFn = internalpolymorphichelpers.RolloutViewerFn + o.Builder = f.NewBuilder + + config, err := f.ToRESTConfig() + if err != nil { + return err + } + + rolloutsClientset, err := rolloutsv1beta1.NewForConfig(config) + if err != nil { + return err + } + o.RolloutsClient = rolloutsClientset.RolloutsV1beta1().Rollouts(o.Namespace) + + return nil +} + +func (o *DescribeRolloutOptions) Run() error { + rolloutName := o.Resources[0] + + r := o.Builder(). + WithScheme(internalapi.GetScheme(), scheme.Scheme.PrioritizedVersionsAllGroups()...). + NamespaceParam(o.Namespace).DefaultNamespace(). + ResourceNames("rollouts.rollouts.kruise.io", rolloutName). + ContinueOnError(). + Latest(). + Flatten(). + Do() + + if err := r.Err(); err != nil { + return err + } + + if !o.Watch { + return r.Visit(o.describeRollout) + } + + return o.watchRollout(r) +} + +func (o *DescribeRolloutOptions) describeRollout(info *resource.Info, err error) error { + if err != nil { + return err + } + + rollout, err := o.RolloutViewerFn(info.Object) + if err != nil { + return err + } + + o.printRolloutInfo(rollout) + return nil +} + +func (o *DescribeRolloutOptions) watchRollout(r *resource.Result) error { + infos, err := r.Infos() + if err != nil { + return err + } + if len(infos) != 1 { + return fmt.Errorf("watch is only supported on a single rollout") + } + info := infos[0] + + watcher, err := o.RolloutsClient.Watch(context.TODO(), metav1.ListOptions{ + FieldSelector: "metadata.name=" + info.Name, + }) + + if err != nil { + return err + } + defer watcher.Stop() + + ctx, cancel := context.WithCancel(context.Background()) + defer cancel() + + if o.TimeoutSeconds > 0 { + ctx, cancel = context.WithTimeout(ctx, time.Duration(o.TimeoutSeconds)*time.Second) + defer cancel() + } + + return o.watchRolloutUpdates(ctx, watcher) +} + +func (o *DescribeRolloutOptions) watchRolloutUpdates(ctx context.Context, watcher watch.Interface) error { + for { + select { + case event, ok := <-watcher.ResultChan(): + if !ok { + return nil + } + if event.Type == watch.Added || event.Type == watch.Modified { + if rollout, ok := event.Object.(*rolloutsapi.Rollout); ok { + o.clearScreen() + o.printRolloutInfo(rollout) + } + } + case <-ctx.Done(): + return ctx.Err() + } + } +} + +func (o *DescribeRolloutOptions) clearScreen() { + fmt.Fprint(o.Out, "\033[2J\033[H") +} + +func (o *DescribeRolloutOptions) GetResources(rollout *rolloutsapi.Rollout) (*WorkloadInfo, error) { + resources := []string{rollout.Spec.WorkloadRef.Kind + "/" + rollout.Spec.WorkloadRef.Name} + r := o.Builder(). + WithScheme(internalapi.GetScheme(), scheme.Scheme.PrioritizedVersionsAllGroups()...). + NamespaceParam(o.Namespace).DefaultNamespace(). + ResourceTypeOrNameArgs(true, resources...). + ContinueOnError(). + Latest(). + Flatten(). + Do() + + if err := r.Err(); err != nil { + return nil, err + } + + obj, err := r.Object() + if err != nil { + return nil, err + } + + workloadInfo := &WorkloadInfo{} + objValue := reflect.ValueOf(obj).Elem() + workloadInfo.Name = objValue.FieldByName("Name").String() + workloadInfo.Kind = objValue.Type().Name() + + podTemplateSpec := objValue.FieldByName("Spec").FieldByName("Template").FieldByName("Spec") + containers := podTemplateSpec.FieldByName("Containers") + for i := 0; i < containers.Len(); i++ { + container := containers.Index(i) + workloadInfo.Images = append(workloadInfo.Images, container.FieldByName("Image").String()) + } + + // Deployment,StatefulSet,CloneSet,Advanced StatefulSet,Advanced DaemonSet + + switch o := obj.(type) { + case *appsv1.Deployment: + workloadInfo.Replicas.Desired = *o.Spec.Replicas + workloadInfo.Replicas.Current = o.Status.Replicas + workloadInfo.Replicas.Updated = o.Status.UpdatedReplicas + workloadInfo.Replicas.Ready = o.Status.ReadyReplicas + workloadInfo.Replicas.Available = o.Status.AvailableReplicas + case *appsv1.StatefulSet: + workloadInfo.Replicas.Desired = *o.Spec.Replicas + workloadInfo.Replicas.Current = o.Status.Replicas + workloadInfo.Replicas.Updated = o.Status.UpdatedReplicas + workloadInfo.Replicas.Ready = o.Status.ReadyReplicas + workloadInfo.Replicas.Available = o.Status.AvailableReplicas + case *kruiseappsv1alpha1.DaemonSet: + workloadInfo.Replicas.Desired = o.Spec.BurstReplicas.IntVal + workloadInfo.Replicas.Current = o.Status.CurrentNumberScheduled + workloadInfo.Replicas.Updated = o.Status.UpdatedNumberScheduled + workloadInfo.Replicas.Ready = o.Status.NumberReady + workloadInfo.Replicas.Available = o.Status.NumberAvailable + case *kruiseappsv1beta1.StatefulSet: + workloadInfo.Replicas.Desired = *o.Spec.Replicas + workloadInfo.Replicas.Current = o.Status.Replicas + workloadInfo.Replicas.Updated = o.Status.UpdatedReplicas + workloadInfo.Replicas.Ready = o.Status.ReadyReplicas + workloadInfo.Replicas.Available = o.Status.AvailableReplicas + case *kruiseappsv1alpha1.CloneSet: + workloadInfo.Replicas.Desired = *o.Spec.Replicas + workloadInfo.Replicas.Current = o.Status.Replicas + workloadInfo.Replicas.Updated = o.Status.UpdatedReplicas + workloadInfo.Replicas.Ready = o.Status.ReadyReplicas + workloadInfo.Replicas.Available = o.Status.AvailableReplicas + default: + return nil, fmt.Errorf("unsupported workload kind %T", obj) + } + + workloadInfo.CurrentRevision = rollout.Status.CanaryStatus.StableRevision + workloadInfo.UpdateRevision = rollout.Status.CanaryStatus.CanaryRevision + + var labelSelectorParam string + switch obj.(type) { + case *appsv1.Deployment: + labelSelectorParam = "pod-template-hash" + default: + labelSelectorParam = "controller-revision-hash" + } + + SelectorParam := rollout.Status.CanaryStatus.PodTemplateHash + if SelectorParam == "" { + SelectorParam = rollout.Status.CanaryStatus.StableRevision + } + + // Fetch pods + r2 := o.Builder(). + WithScheme(internalapi.GetScheme(), scheme.Scheme.PrioritizedVersionsAllGroups()...). + NamespaceParam(o.Namespace).DefaultNamespace(). + ResourceTypes("pods"). + LabelSelectorParam(fmt.Sprintf("%s=%s", labelSelectorParam, SelectorParam)). + Latest(). + Flatten(). + Do() + + if err := r2.Err(); err != nil { + return nil, err + } + + err = r2.Visit(func(info *resource.Info, err error) error { + if err != nil { + return err + } + + pod, ok := info.Object.(*corev1.Pod) + if !ok { + return fmt.Errorf("expected *corev1.Pod, got %T", info.Object) + } + + podInfo := struct { + Name string + BatchID string + Status string + Ready string + Age string + Restarts string + Revision string + }{ + Name: pod.Name, + BatchID: pod.Labels["rollouts.kruise.io/rollout-batch-id"], + Status: string(pod.Status.Phase), + Age: duration.HumanDuration(time.Since(pod.CreationTimestamp.Time)), + Restarts: "0", + } + + if pod.DeletionTimestamp != nil { + podInfo.Status = "Terminating" + } + + if len(pod.Status.ContainerStatuses) > 0 { + restartCount := 0 + for _, containerStatus := range pod.Status.ContainerStatuses { + restartCount += int(containerStatus.RestartCount) + } + + podInfo.Restarts = fmt.Sprintf("%v", strconv.Itoa(int(restartCount))) + } + + // Calculate ready status + readyContainers := 0 + for _, containerStatus := range pod.Status.ContainerStatuses { + if containerStatus.Ready { + readyContainers++ + } + } + podInfo.Ready = fmt.Sprintf("%d/%d", readyContainers, len(pod.Spec.Containers)) + + // Calculate revision + if pod.Labels["pod-template-hash"] != "" { + podInfo.Revision = pod.Labels["pod-template-hash"] + } else if pod.Labels["controller-revision-hash"] != "" { + podInfo.Revision = pod.Labels["controller-revision-hash"] + } + + workloadInfo.Pod = append(workloadInfo.Pod, podInfo) + return nil + }) + + if err != nil { + return nil, err + } + + // Sort pods by batch ID and ready count + sort.Slice(workloadInfo.Pod, func(i, j int) bool { + if workloadInfo.Pod[i].BatchID != workloadInfo.Pod[j].BatchID { + return workloadInfo.Pod[i].BatchID < workloadInfo.Pod[j].BatchID + } + + iReady := strings.Split(workloadInfo.Pod[i].Ready, "/") + jReady := strings.Split(workloadInfo.Pod[j].Ready, "/") + + iReadyCount, _ := strconv.Atoi(iReady[0]) + jReadyCount, _ := strconv.Atoi(jReady[0]) + + return iReadyCount > jReadyCount + }) + + return workloadInfo, nil +} + +func (o *DescribeRolloutOptions) colorizeIcon(phase string) string { + if o.NoColor || phase == "" { + return "" + } + switch phase { + case string(rolloutsapi.RolloutPhaseHealthy), string(corev1.PodRunning): + return "\033[32m✔\033[0m" + case string(rolloutsapi.RolloutPhaseProgressing), string(corev1.PodPending): + return "\033[33m⚠\033[0m" + case string(rolloutsapi.RolloutPhaseDisabled), string(corev1.PodUnknown), string(rolloutsapi.RolloutPhaseTerminating), string(rolloutsapi.RolloutPhaseDisabling), string(corev1.PodFailed): + return "\033[31m✘\033[0m" + case string(rolloutsapi.RolloutPhaseInitial): + return "\033[33m⚠\033[0m" + default: + return "" + } +} + +func (o *DescribeRolloutOptions) printTrafficRouting(trafficRouting []rolloutsapi.TrafficRoutingRef) { + fmt.Fprint(o.Out, "Traffic Routings:\n") + for _, trafficRouting := range trafficRouting { + fmt.Fprintf(o.Out, tableFormat, " - Service: ", trafficRouting.Service) + if trafficRouting.Ingress != nil { + fmt.Fprintln(o.Out, ` Ingress: `) + fmt.Fprintf(o.Out, tableFormat, " classType: ", trafficRouting.Ingress.ClassType) + fmt.Fprintf(o.Out, tableFormat, " name: ", trafficRouting.Ingress.Name) + } + if trafficRouting.Gateway != nil { + fmt.Fprintln(o.Out, ` Gateway: `) + fmt.Fprintf(o.Out, tableFormat, " HttpRouteName: ", trafficRouting.Gateway.HTTPRouteName) + } + if trafficRouting.CustomNetworkRefs != nil { + fmt.Fprintln(o.Out, ` CustomNetworkRefs: `) + for _, customNetworkRef := range trafficRouting.CustomNetworkRefs { + fmt.Fprintf(o.Out, tableFormat, " name: ", customNetworkRef.Name) + fmt.Fprintf(o.Out, tableFormat, " kind: ", customNetworkRef.Kind) + fmt.Fprintf(o.Out, tableFormat, " apiVersion: ", customNetworkRef.APIVersion) + } + } + } +} + +func (o *DescribeRolloutOptions) printRolloutInfo(rollout *rolloutsapi.Rollout) { + // Name, Namespace, Status, Message + fmt.Fprintf(o.Out, tableFormat, "Name:", rollout.Name) + fmt.Fprintf(o.Out, tableFormat, "Namespace:", rollout.Namespace) + if rollout.Status.ObservedGeneration == rollout.GetObjectMeta().GetGeneration() { + fmt.Fprintf(o.Out, tableFormat, "Status:", o.colorizeIcon(string(rollout.Status.Phase))+" "+string(rollout.Status.Phase)) + + if rollout.Status.Message != "" { + fmt.Fprintf(o.Out, tableFormat, "Message:", rollout.Status.Message) + } + } + + // Strategy + fmt.Fprintf(o.Out, tableFormat, "Strategy:", "Canary") + + if canary := rollout.Spec.Strategy.Canary; canary != nil { + fmt.Fprintf(o.Out, tableFormat, " Step:", strconv.Itoa(int(rollout.Status.CanaryStatus.CurrentStepIndex))+"/"+strconv.Itoa(len(canary.Steps))) + fmt.Fprint(o.Out, " Steps:\n") + currentStepIndex := int(rollout.Status.CanaryStatus.CurrentStepIndex) + for i, step := range canary.Steps { + isCurrentStep := (i + 1) == currentStepIndex + if isCurrentStep { + fmt.Fprint(o.Out, "\033[32m") + } + + if step.Replicas != nil { + fmt.Fprintf(o.Out, tableFormat, " - Replicas: ", step.Replicas) + } + if step.Traffic != nil { + fmt.Fprintf(o.Out, tableFormat, " Traffic: ", *step.Traffic) + } + + if step.Matches != nil { + fmt.Fprintln(o.Out, " Matches: ") + for _, match := range step.Matches { + fmt.Fprintln(o.Out, " - Headers: ") + for _, path := range match.Headers { + fmt.Fprintf(o.Out, tableFormat, " - Name:", path.Name) + fmt.Fprintf(o.Out, tableFormat, " Value:", path.Value) + fmt.Fprintf(o.Out, tableFormat, " Type:", *path.Type) + } + } + } + + if isCurrentStep { + fmt.Fprintf(o.Out, tableFormat, " State:", rollout.Status.CanaryStatus.CurrentStepState) + fmt.Fprint(o.Out, "\033[0m") // Reset color + } + } + + // Traffic Routings + if len(rollout.Spec.Strategy.Canary.TrafficRoutings) > 0 { + o.printTrafficRouting(rollout.Spec.Strategy.Canary.TrafficRoutings) + } + + if rollout.Spec.Strategy.Canary.TrafficRoutingRef != "" { + // r := o.Builder(). + // WithScheme(internalapi.GetScheme(), scheme.Scheme.PrioritizedVersionsAllGroups()...). + // NamespaceParam(o.Namespace).DefaultNamespace(). + // ResourceNames("trafficrouting.rollouts.kruise.io", rollout.Spec.Strategy.Canary.TrafficRoutingRef). + // ContinueOnError(). + // Latest(). + // Flatten(). + // Do() + + // if err := r.Err(); err != nil { + // fmt.Fprintf(o.Out, "Error getting TrafficRoutingRef: %v\n", err) + // return + // } + + } + } + + // Workload + info, err := o.GetResources(rollout) + if err != nil { + fmt.Fprintf(o.Out, "Error getting resources: %v\n", err) + return + } + + // Images + for i, image := range info.Images { + if i == 0 { + fmt.Fprintf(o.Out, tableFormat, "Images:", image) + } else { + fmt.Fprintf(o.Out, tableFormat, "", image) + } + } + + // Revisions + fmt.Fprintf(o.Out, tableFormat, "Current Revision:", info.CurrentRevision) + fmt.Fprintf(o.Out, tableFormat, "Update Revision:", info.UpdateRevision) + + // Replicas + if rollout.Status.ObservedGeneration == rollout.GetObjectMeta().GetGeneration() { + fmt.Fprint(o.Out, "Replicas:\n") + fmt.Fprintf(o.Out, tableFormat, " Desired:", info.Replicas.Desired) + fmt.Fprintf(o.Out, tableFormat, " Updated:", info.Replicas.Updated) + fmt.Fprintf(o.Out, tableFormat, " Current:", info.Replicas.Current) + fmt.Fprintf(o.Out, tableFormat, " Ready:", info.Replicas.Ready) + fmt.Fprintf(o.Out, tableFormat, " Available:", info.Replicas.Available) + } + + if len(info.Pod) > 0 { + w := tabwriter.NewWriter(o.Out, 0, 0, 2, ' ', 0) + fmt.Fprintln(w, "NAME\tREADY\tBATCH ID\tREVISION\tAGE\tRESTARTS\tSTATUS") + + for _, pod := range info.Pod { + fmt.Fprintf(w, "%s\t%s\t%s\t%s\t%s\t%s\t%s %s\n", + pod.Name, + pod.Ready, + pod.BatchID, + pod.Revision, + pod.Age, + pod.Restarts, + o.colorizeIcon(pod.Status), + pod.Status, + ) + } + w.Flush() + } + +} diff --git a/pkg/cmd/expose/expose.go b/pkg/cmd/expose/expose.go index ef04d3c..9284cbd 100644 --- a/pkg/cmd/expose/expose.go +++ b/pkg/cmd/expose/expose.go @@ -92,7 +92,6 @@ type ExposeServiceOptions struct { PrintObj printers.ResourcePrinterFunc DryRunStrategy cmdutil.DryRunStrategy - DryRunVerifier *resource.QueryParamVerifier EnforceNamespace bool fieldManager string @@ -178,11 +177,6 @@ func (o *ExposeServiceOptions) Complete(f cmdutil.Factory, cmd *cobra.Command) e if err != nil { return err } - dynamicClient, err := f.DynamicClient() - if err != nil { - return err - } - o.DryRunVerifier = resource.NewQueryParamVerifier(dynamicClient, f.OpenAPIGetter(), resource.QueryParamDryRun) cmdutil.PrintFlagsWithDryRunStrategy(o.PrintFlags, o.DryRunStrategy) printer, err := o.PrintFlags.ToPrinter() @@ -356,11 +350,6 @@ func (o *ExposeServiceOptions) RunExpose(cmd *cobra.Command, args []string) erro if err != nil { return err } - if o.DryRunStrategy == cmdutil.DryRunServer { - if err := o.DryRunVerifier.HasSupport(objMapping.GroupVersionKind); err != nil { - return err - } - } // Serialize the object with the annotation applied. client, err := o.ClientForMapping(objMapping) if err != nil { diff --git a/pkg/cmd/generate-docs.go b/pkg/cmd/generate-docs.go new file mode 100644 index 0000000..db3298f --- /dev/null +++ b/pkg/cmd/generate-docs.go @@ -0,0 +1,106 @@ +/* +Copyright 2021 The Kruise Authors. +Copyright 2017 The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package cmd + +import ( + "fmt" + "os" + "path/filepath" + + "github.com/spf13/cobra" + "github.com/spf13/cobra/doc" + "k8s.io/cli-runtime/pkg/genericclioptions" + cmdutil "k8s.io/kubectl/pkg/cmd/util" +) + +var ( + defaultDocDir = "docs" + yamlDir = "yaml" +) + +func NewCmdGenerateDocs(f cmdutil.Factory, streams genericclioptions.IOStreams) *cobra.Command { + cmd := &cobra.Command{ + Use: "generate-docs", + Short: "Generate documentation for kruise", + Long: "Generate documentation for kruise", + Run: func(cmd *cobra.Command, args []string) { + cmdutil.CheckErr(generateDocs(cmd)) + }, + Hidden: true, + } + + cmd.Flags().String("directory", "", "The directory to write the generated docs to") + return cmd + +} + +func generateDocs(cmd *cobra.Command) error { + directory, err := cmd.Flags().GetString("directory") + if err != nil { + return err + } + if directory == "" { + directory = defaultDocDir + } + // Remove the commands from the root command tree + removeCmds(cmd.Root(), []string{"exec", "apply", "wait", "diff", "options", "help", "api-resources", "api-versions", "patch", "plugin", "scale", "replace", "options", "kustomize", "version", "config", "completion"}) + + err = os.MkdirAll(directory, os.ModePerm) + if err != nil { + return err + } + err = os.MkdirAll(filepath.Join(directory, yamlDir), os.ModePerm) + if err != nil { + return err + } + err = doc.GenMarkdownTree(cmd.Root(), directory) + if err != nil { + return err + } + err = doc.GenYamlTree(cmd.Root(), filepath.Join(directory, yamlDir)) + if err != nil { + return err + } + fmt.Println("documentation generated successfully") + return nil +} + +func removeCmds(rootCmd *cobra.Command, cmdsToRemove []string) { + // Keep track of command names to detect duplicates + encountered := make(map[string]bool) + + for _, cmdName := range cmdsToRemove { + for _, cmd := range rootCmd.Commands() { + if cmd.Name() == cmdName { + rootCmd.RemoveCommand(cmd) + } + } + } + + // Remove duplicates + var uniqueCmds []*cobra.Command + for _, cmd := range rootCmd.Commands() { + if encountered[cmd.Name()] { + continue + } + encountered[cmd.Name()] = true + uniqueCmds = append(uniqueCmds, cmd) + } + rootCmd.ResetCommands() + rootCmd.AddCommand(uniqueCmds...) +} diff --git a/pkg/cmd/rollout/rollout_approve.go b/pkg/cmd/rollout/rollout_approve.go index e13e60a..b9fbccc 100644 --- a/pkg/cmd/rollout/rollout_approve.go +++ b/pkg/cmd/rollout/rollout_approve.go @@ -19,9 +19,6 @@ package rollout import ( "fmt" - internalapi "github.com/openkruise/kruise-tools/pkg/api" - "github.com/openkruise/kruise-tools/pkg/cmd/util" - internalpolymorphichelpers "github.com/openkruise/kruise-tools/pkg/internal/polymorphichelpers" "github.com/spf13/cobra" "k8s.io/apimachinery/pkg/types" utilerrors "k8s.io/apimachinery/pkg/util/errors" @@ -33,6 +30,10 @@ import ( "k8s.io/kubectl/pkg/scheme" "k8s.io/kubectl/pkg/util/i18n" "k8s.io/kubectl/pkg/util/templates" + + internalapi "github.com/openkruise/kruise-tools/pkg/api" + "github.com/openkruise/kruise-tools/pkg/cmd/util" + internalpolymorphichelpers "github.com/openkruise/kruise-tools/pkg/internal/polymorphichelpers" ) // ApproveOptions is the start of the data required to perform the operation. As new fields are added, add them here instead of @@ -63,7 +64,7 @@ var ( ApproveExample = templates.Examples(` # approve a kruise rollout resource named "rollout-demo" in "ns-demo" namespace - kubectl-kruise rollout approve rollout-demo -n ns-demo`) + kubectl-kruise rollout approve rollout/rollout-demo -n ns-demo`) ) // NewRolloutApproveOptions returns an initialized ApproveOptions instance diff --git a/pkg/cmd/rollout/rollout_undo.go b/pkg/cmd/rollout/rollout_undo.go index 590969b..7849110 100644 --- a/pkg/cmd/rollout/rollout_undo.go +++ b/pkg/cmd/rollout/rollout_undo.go @@ -44,7 +44,6 @@ type UndoOptions struct { Builder func() *resource.Builder ToRevision int64 DryRunStrategy cmdutil.DryRunStrategy - DryRunVerifier *resource.QueryParamVerifier Resources []string Namespace string EnforceNamespace bool @@ -120,11 +119,6 @@ func (o *UndoOptions) Complete(f cmdutil.Factory, cmd *cobra.Command, args []str if err != nil { return err } - dynamicClient, err := f.DynamicClient() - if err != nil { - return err - } - o.DryRunVerifier = resource.NewQueryParamVerifier(dynamicClient, f.OpenAPIGetter(), resource.QueryParamDryRun) if o.Namespace, o.EnforceNamespace, err = f.ToRawKubeConfigLoader().Namespace(); err != nil { return err @@ -173,11 +167,6 @@ func (o *UndoOptions) RunUndo() error { return err } - if o.DryRunStrategy == cmdutil.DryRunServer { - if err := o.DryRunVerifier.HasSupport(info.Mapping.GroupVersionKind); err != nil { - return err - } - } result, err := rollbacker.Rollback(info.Object, nil, o.ToRevision, o.DryRunStrategy) if err != nil { return err diff --git a/pkg/cmd/set/set_env.go b/pkg/cmd/set/set_env.go index 9ed5936..5a54747 100644 --- a/pkg/cmd/set/set_env.go +++ b/pkg/cmd/set/set_env.go @@ -123,7 +123,6 @@ type EnvOptions struct { resources []string output string dryRunStrategy cmdutil.DryRunStrategy - dryRunVerifier *resource.QueryParamVerifier builder func() *resource.Builder updatePodSpecForObject polymorphichelpers.UpdatePodSpecForObjectFunc namespace string @@ -226,11 +225,6 @@ func (o *EnvOptions) Complete(f cmdutil.Factory, cmd *cobra.Command, args []stri if err != nil { return err } - dynamicClient, err := f.DynamicClient() - if err != nil { - return err - } - o.dryRunVerifier = resource.NewQueryParamVerifier(dynamicClient, f.OpenAPIGetter(), resource.QueryParamDryRun) cmdutil.PrintFlagsWithDryRunStrategy(o.PrintFlags, o.dryRunStrategy) printer, err := o.PrintFlags.ToPrinter() @@ -781,13 +775,6 @@ func (o *EnvOptions) RunEnv() error { continue } - if o.dryRunStrategy == cmdutil.DryRunServer { - if err := o.dryRunVerifier.HasSupport(info.Mapping.GroupVersionKind); err != nil { - allErrs = append(allErrs, err) - continue - } - } - actual, err := resource. NewHelper(info.Client, info.Mapping). DryRun(o.dryRunStrategy == cmdutil.DryRunServer). diff --git a/pkg/cmd/set/set_image.go b/pkg/cmd/set/set_image.go index cb4328f..2911153 100644 --- a/pkg/cmd/set/set_image.go +++ b/pkg/cmd/set/set_image.go @@ -47,7 +47,6 @@ type SetImageOptions struct { Infos []*resource.Info Selector string DryRunStrategy cmdutil.DryRunStrategy - DryRunVerifier *resource.QueryParamVerifier All bool Output string Local bool @@ -147,11 +146,6 @@ func (o *SetImageOptions) Complete(f cmdutil.Factory, cmd *cobra.Command, args [ if err != nil { return err } - dynamicClient, err := f.DynamicClient() - if err != nil { - return err - } - o.DryRunVerifier = resource.NewQueryParamVerifier(dynamicClient, f.OpenAPIGetter(), resource.QueryParamDryRun) o.Output = cmdutil.GetFlagString(cmd, "output") o.ResolveImage = resolveImageFunc @@ -283,12 +277,6 @@ func (o *SetImageOptions) Run() error { continue } - if o.DryRunStrategy == cmdutil.DryRunServer { - if err := o.DryRunVerifier.HasSupport(info.Mapping.GroupVersionKind); err != nil { - return err - } - } - // patch the change actual, err := resource. NewHelper(info.Client, info.Mapping). diff --git a/pkg/cmd/set/set_resources.go b/pkg/cmd/set/set_resources.go index 2a1c1eb..4e64057 100644 --- a/pkg/cmd/set/set_resources.go +++ b/pkg/cmd/set/set_resources.go @@ -93,7 +93,6 @@ type SetResourcesOptions struct { UpdatePodSpecForObject polymorphichelpers.UpdatePodSpecForObjectFunc Resources []string - DryRunVerifier *resource.QueryParamVerifier genericclioptions.IOStreams } @@ -167,11 +166,6 @@ func (o *SetResourcesOptions) Complete(f cmdutil.Factory, cmd *cobra.Command, ar if err != nil { return err } - dynamicClient, err := f.DynamicClient() - if err != nil { - return err - } - o.DryRunVerifier = resource.NewQueryParamVerifier(dynamicClient, f.OpenAPIGetter(), resource.QueryParamDryRun) cmdutil.PrintFlagsWithDryRunStrategy(o.PrintFlags, o.DryRunStrategy) printer, err := o.PrintFlags.ToPrinter() @@ -431,13 +425,6 @@ func (o *SetResourcesOptions) Run() error { continue } - if o.DryRunStrategy == cmdutil.DryRunServer { - if err := o.DryRunVerifier.HasSupport(info.Mapping.GroupVersionKind); err != nil { - allErrs = append(allErrs, fmt.Errorf("failed to patch resources update to pod template %v", err)) - continue - } - } - actual, err := resource. NewHelper(info.Client, info.Mapping). DryRun(o.DryRunStrategy == cmdutil.DryRunServer). diff --git a/pkg/cmd/set/set_selector.go b/pkg/cmd/set/set_selector.go index 0d7d21a..2c7590d 100644 --- a/pkg/cmd/set/set_selector.go +++ b/pkg/cmd/set/set_selector.go @@ -45,7 +45,6 @@ type SetSelectorOptions struct { PrintFlags *genericclioptions.PrintFlags RecordFlags *genericclioptions.RecordFlags dryRunStrategy cmdutil.DryRunStrategy - dryRunVerifier *resource.QueryParamVerifier // set by args resources []string @@ -134,11 +133,6 @@ func (o *SetSelectorOptions) Complete(f cmdutil.Factory, cmd *cobra.Command, arg if err != nil { return err } - dynamicClient, err := f.DynamicClient() - if err != nil { - return err - } - o.dryRunVerifier = resource.NewQueryParamVerifier(dynamicClient, f.OpenAPIGetter(), resource.QueryParamDryRun) o.resources, o.selector, err = getResourcesAndSelector(args) if err != nil { @@ -211,11 +205,6 @@ func (o *SetSelectorOptions) RunSelector() error { if !o.WriteToServer { return o.PrintObj(info.Object, o.Out) } - if o.dryRunStrategy == cmdutil.DryRunServer { - if err := o.dryRunVerifier.HasSupport(info.Mapping.GroupVersionKind); err != nil { - return err - } - } actual, err := resource. NewHelper(info.Client, info.Mapping). diff --git a/pkg/cmd/set/set_serviceaccount.go b/pkg/cmd/set/set_serviceaccount.go index ae11bff..74f5948 100644 --- a/pkg/cmd/set/set_serviceaccount.go +++ b/pkg/cmd/set/set_serviceaccount.go @@ -63,7 +63,6 @@ type SetServiceAccountOptions struct { fileNameOptions resource.FilenameOptions dryRunStrategy cmdutil.DryRunStrategy - dryRunVerifier *resource.QueryParamVerifier shortOutput bool all bool output string @@ -136,11 +135,6 @@ func (o *SetServiceAccountOptions) Complete(f cmdutil.Factory, cmd *cobra.Comman if o.local && o.dryRunStrategy == cmdutil.DryRunServer { return fmt.Errorf("cannot specify --local and --dry-run=server - did you mean --dry-run=client?") } - dynamicClient, err := f.DynamicClient() - if err != nil { - return err - } - o.dryRunVerifier = resource.NewQueryParamVerifier(dynamicClient, f.OpenAPIGetter(), resource.QueryParamDryRun) o.output = cmdutil.GetFlagString(cmd, "output") o.updatePodSpecForObject = polymorphichelpers.UpdatePodSpecForObjectFn @@ -212,12 +206,6 @@ func (o *SetServiceAccountOptions) Run() error { } continue } - if o.dryRunStrategy == cmdutil.DryRunServer { - if err := o.dryRunVerifier.HasSupport(info.Mapping.GroupVersionKind); err != nil { - patchErrs = append(patchErrs, err) - continue - } - } actual, err := resource. NewHelper(info.Client, info.Mapping). DryRun(o.dryRunStrategy == cmdutil.DryRunServer). diff --git a/pkg/cmd/set/set_subject.go b/pkg/cmd/set/set_subject.go index bc80e28..08be4b6 100644 --- a/pkg/cmd/set/set_subject.go +++ b/pkg/cmd/set/set_subject.go @@ -66,7 +66,6 @@ type SubjectOptions struct { Output string All bool DryRunStrategy cmdutil.DryRunStrategy - DryRunVerifier *resource.QueryParamVerifier Local bool Users []string @@ -126,11 +125,6 @@ func (o *SubjectOptions) Complete(f cmdutil.Factory, cmd *cobra.Command, args [] if err != nil { return err } - dynamicClient, err := f.DynamicClient() - if err != nil { - return err - } - o.DryRunVerifier = resource.NewQueryParamVerifier(dynamicClient, f.OpenAPIGetter(), resource.QueryParamDryRun) cmdutil.PrintFlagsWithDryRunStrategy(o.PrintFlags, o.DryRunStrategy) printer, err := o.PrintFlags.ToPrinter() @@ -268,12 +262,6 @@ func (o *SubjectOptions) Run(fn updateSubjects) error { continue } - if o.DryRunStrategy == cmdutil.DryRunServer { - if err := o.DryRunVerifier.HasSupport(info.Mapping.GroupVersionKind); err != nil { - allErrs = append(allErrs, err) - continue - } - } actual, err := resource. NewHelper(info.Client, info.Mapping). DryRun(o.DryRunStrategy == cmdutil.DryRunServer). diff --git a/pkg/creation/cloneset/cloneset_creation.go b/pkg/creation/cloneset/cloneset_creation.go index c11de84..0d68964 100644 --- a/pkg/creation/cloneset/cloneset_creation.go +++ b/pkg/creation/cloneset/cloneset_creation.go @@ -38,7 +38,11 @@ type control struct { func NewControl(cfg *rest.Config) (creation.Control, error) { scheme := api.GetScheme() - mapper, err := apiutil.NewDynamicRESTMapper(cfg) + c, err := rest.HTTPClientFor(cfg) + if err != nil { + return nil, err + } + mapper, err := apiutil.NewDynamicRESTMapper(cfg, c) if err != nil { return nil, err } diff --git a/pkg/internal/polymorphichelpers/describe_rollout.go b/pkg/internal/polymorphichelpers/describe_rollout.go new file mode 100644 index 0000000..072e5be --- /dev/null +++ b/pkg/internal/polymorphichelpers/describe_rollout.go @@ -0,0 +1,8 @@ +package polymorphichelpers + +import ( + rolloutschema "github.com/openkruise/kruise-rollout-api/rollouts/v1beta1" + "k8s.io/apimachinery/pkg/runtime" +) + +type RolloutViewer func(obj runtime.Unstructured) (*rolloutschema.Rollout, error) diff --git a/pkg/internal/polymorphichelpers/interface.go b/pkg/internal/polymorphichelpers/interface.go index f6e65f3..eedf74b 100644 --- a/pkg/internal/polymorphichelpers/interface.go +++ b/pkg/internal/polymorphichelpers/interface.go @@ -19,6 +19,7 @@ package polymorphichelpers import ( "time" + rolloutsapi "github.com/openkruise/kruise-rollout-api/rollouts/v1beta1" v1 "k8s.io/api/core/v1" "k8s.io/apimachinery/pkg/api/meta" "k8s.io/apimachinery/pkg/runtime" @@ -51,6 +52,10 @@ type StatusViewerFunc func(mapping *meta.RESTMapping) (StatusViewer, error) // StatusViewerFn gives a way to easily override the function for unit testing if needed var StatusViewerFn StatusViewerFunc = statusViewer +type RolloutViewerFunc func(obj runtime.Object) (*rolloutsapi.Rollout, error) + +var RolloutViewerFn RolloutViewerFunc = rolloutViewer + // UpdatePodSpecForObjectFunc will call the provided function on the pod spec this object supports, // return false if no pod spec is supported, or return an error. type UpdatePodSpecForObjectFunc func(obj runtime.Object, fn func(*v1.PodSpec) error) (bool, error) diff --git a/pkg/internal/polymorphichelpers/objectapprover.go b/pkg/internal/polymorphichelpers/objectapprover.go index 58aa5df..8bd3c8a 100644 --- a/pkg/internal/polymorphichelpers/objectapprover.go +++ b/pkg/internal/polymorphichelpers/objectapprover.go @@ -20,7 +20,8 @@ import ( "errors" "fmt" - rolloutsapi "github.com/openkruise/kruise-rollout-api/rollouts/v1beta1" + rolloutsapiv1alpha1 "github.com/openkruise/kruise-rollout-api/rollouts/v1alpha1" + rolloutsapiv1beta1 "github.com/openkruise/kruise-rollout-api/rollouts/v1beta1" "k8s.io/apimachinery/pkg/runtime" "k8s.io/kubectl/pkg/scheme" ) @@ -28,12 +29,18 @@ import ( // defaultObjectApprover currently only support Kruise Rollout. func defaultObjectApprover(obj runtime.Object) ([]byte, error) { switch obj := obj.(type) { - case *rolloutsapi.Rollout: - if obj.Status.CanaryStatus == nil || obj.Status.CanaryStatus.CurrentStepState != rolloutsapi.CanaryStepStatePaused { + case *rolloutsapiv1alpha1.Rollout: + if obj.Status.CanaryStatus == nil || obj.Status.CanaryStatus.CurrentStepState != rolloutsapiv1alpha1.CanaryStepStatePaused { return nil, errors.New("does not allow to approve, because current canary state is not 'StepPaused'") } - obj.Status.CanaryStatus.CurrentStepState = rolloutsapi.CanaryStepStateReady - return runtime.Encode(scheme.Codecs.LegacyCodec(rolloutsapi.GroupVersion), obj) + obj.Status.CanaryStatus.CurrentStepState = rolloutsapiv1alpha1.CanaryStepStateReady + return runtime.Encode(scheme.Codecs.LegacyCodec(rolloutsapiv1alpha1.GroupVersion), obj) + case *rolloutsapiv1beta1.Rollout: + if obj.Status.CanaryStatus == nil || obj.Status.CanaryStatus.CurrentStepState != rolloutsapiv1beta1.CanaryStepStatePaused { + return nil, errors.New("does not allow to approve, because current canary state is not 'StepPaused'") + } + obj.Status.CanaryStatus.CurrentStepState = rolloutsapiv1beta1.CanaryStepStateReady + return runtime.Encode(scheme.Codecs.LegacyCodec(rolloutsapiv1beta1.GroupVersion), obj) default: return nil, fmt.Errorf("approving is not supported") diff --git a/pkg/internal/polymorphichelpers/rolloutviewer.go b/pkg/internal/polymorphichelpers/rolloutviewer.go new file mode 100644 index 0000000..8d79efb --- /dev/null +++ b/pkg/internal/polymorphichelpers/rolloutviewer.go @@ -0,0 +1,34 @@ +/* +Copyright 2018 The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package polymorphichelpers + +import ( + "fmt" + + "k8s.io/apimachinery/pkg/runtime" + + rolloutschema "github.com/openkruise/kruise-rollout-api/rollouts/v1beta1" +) + +// statusViewer returns a StatusViewer for printing rollout status. +func rolloutViewer(obj runtime.Object) (*rolloutschema.Rollout, error) { + rollout, ok := obj.(*rolloutschema.Rollout) + if !ok { + return nil, fmt.Errorf("Object is not a rollout") + } + return rollout, nil +} diff --git a/pkg/migration/cloneset/cloneset_migration.go b/pkg/migration/cloneset/cloneset_migration.go index 638c35e..76c1a37 100644 --- a/pkg/migration/cloneset/cloneset_migration.go +++ b/pkg/migration/cloneset/cloneset_migration.go @@ -77,7 +77,11 @@ var _ migration.Control = &control{} func NewControl(cfg *rest.Config, stopChan <-chan struct{}) (migration.Control, error) { scheme := api.GetScheme() - mapper, err := apiutil.NewDiscoveryRESTMapper(cfg) + c, err := rest.HTTPClientFor(cfg) + if err != nil { + return nil, err + } + mapper, err := apiutil.NewDiscoveryRESTMapper(cfg, c) if err != nil { return nil, err } diff --git a/pkg/migration/cloneset/event_handlers.go b/pkg/migration/cloneset/event_handlers.go index e770025..f37e0cc 100644 --- a/pkg/migration/cloneset/event_handlers.go +++ b/pkg/migration/cloneset/event_handlers.go @@ -30,7 +30,7 @@ type cloneSetHandler struct { var _ toolscache.ResourceEventHandler = &cloneSetHandler{} -func (ch *cloneSetHandler) OnAdd(obj interface{}) { +func (ch *cloneSetHandler) OnAdd(obj interface{}, isInInitialList bool) { d, ok := obj.(*appsv1alpha1.CloneSet) if !ok { return @@ -94,7 +94,7 @@ type deploymentHandler struct { var _ toolscache.ResourceEventHandler = &deploymentHandler{} -func (dh *deploymentHandler) OnAdd(obj interface{}) { +func (dh *deploymentHandler) OnAdd(obj interface{}, isInInitialList bool) { d, ok := obj.(*apps.Deployment) if !ok { return From 21a143b6189907b2c79c33877ca5dbded4d270ad Mon Sep 17 00:00:00 2001 From: maanugh Date: Fri, 8 Nov 2024 08:48:04 -0500 Subject: [PATCH 2/2] fix the panic of cli Signed-off-by: maanugh --- pkg/cmd/cmd.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/pkg/cmd/cmd.go b/pkg/cmd/cmd.go index c7dd0db..d5543b1 100644 --- a/pkg/cmd/cmd.go +++ b/pkg/cmd/cmd.go @@ -23,8 +23,6 @@ import ( "github.com/spf13/cobra" - "github.com/spf13/cobra" - "github.com/openkruise/kruise-tools/pkg/cmd/create" "github.com/openkruise/kruise-tools/pkg/cmd/describe" cmdexec "github.com/openkruise/kruise-tools/pkg/cmd/exec"