diff --git a/.github/workflows/actions.yml b/.github/workflows/actions.yml deleted file mode 100644 index 56e8955..0000000 --- a/.github/workflows/actions.yml +++ /dev/null @@ -1,404 +0,0 @@ -name: Actions - -on: - push: - branches: - - main - tags: - - 'v*' - pull_request: - branches: - - main - -defaults: - run: - shell: bash - -jobs: - - go_unit_tests: - name: Go Unit Tests - runs-on: ubuntu-20.04 - container: - image: golang:1.17.7 - steps: - - name: Checkout Code - uses: actions/checkout@v2 - - - name: Test - run: go test -race -mod=readonly -cover -v ./... - - go_lint: - name: Go Lint - runs-on: ubuntu-20.04 - container: - image: golang:1.17.7 - steps: - - name: Checkout Code - uses: actions/checkout@v2 - - - name: Lint - run: bin/lint - - build_cli: - name: Build CLI - runs-on: ubuntu-20.04 - strategy: - matrix: - include: - - platform: linux-amd64 - goos: linux - goarch: amd64 - exe: "" - - platform: linux-arm64 - goos: linux - goarch: arm64 - exe: "" - - platform: linux-arm - goos: linux - goarch: arm - exe: "" - - platform: darwin-amd64 - goos: darwin - goarch: amd64 - exe: "" - - platform: darwin-arm64 - goos: darwin - goarch: arm64 - exe: "" - - platform: windows - goos: windows - goarch: "" - exe: .exe - container: - image: golang:1.17.7 - steps: - - name: Checkout Code - uses: actions/checkout@v2 - - - name: Parse GITHUB_REF - run: echo "tag=${GITHUB_REF##*/}" >> $GITHUB_ENV - - - name: Generate linkerd-buoyant name - run: echo "linkerd-buoyant-bin=linkerd-buoyant-${{ env.tag }}-${{ matrix.platform }}${{ matrix.exe }}" >> $GITHUB_ENV - - - name: Build CLI - run: CGO_ENABLED=0 GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} go build -o ${{ env.linkerd-buoyant-bin }} -mod=readonly -ldflags "-s -w -X github.com/buoyantio/linkerd-buoyant/cli/pkg/version.Version=${{ env.tag }}" cli/main.go - - - name: Upload CLI Executable - uses: actions/upload-artifact@v2 - with: - name: ${{ env.linkerd-buoyant-bin }} - path: ${{ env.linkerd-buoyant-bin }} - - smoke_test_cli: - name: Smoke Test CLI - needs: - - build_cli - strategy: - matrix: - include: - # no arm runner available, skip linux-arm64, linux-arm, and darwin-arm64 - - platform: linux-amd64 - os: ubuntu-20.04 - exe: "" - - platform: darwin-amd64 - os: macos-10.15 - exe: "" - - platform: windows - os: windows-2019 - exe: .exe - runs-on: ${{ matrix.os }} - steps: - - name: Parse GITHUB_REF - run: echo "tag=${GITHUB_REF##*/}" >> $GITHUB_ENV - - - name: Generate linkerd-buoyant name - run: echo "linkerd-buoyant-bin=linkerd-buoyant-${{ env.tag }}-${{ matrix.platform }}${{ matrix.exe }}" >> $GITHUB_ENV - - - name: Download CLI Executable - uses: actions/download-artifact@v2 - with: - name: ${{ env.linkerd-buoyant-bin }} - - - name: Run CLI - run: | - ls -R - chmod +x ${{ env.linkerd-buoyant-bin }} - ./${{ env.linkerd-buoyant-bin }} version --cli - - helm_tests: - name: Helm Tests - runs-on: ubuntu-20.04 - steps: - - name: Checkout - uses: actions/checkout@v2 - with: - fetch-depth: 0 - - - name: Set up Helm - uses: azure/setup-helm@v1 - with: - version: v3.8.0 - - - uses: actions/setup-python@v2 - with: - python-version: 3.7 - - - name: Set up chart-testing - uses: helm/chart-testing-action@v2.2.0 - - - name: Validate chart README.md is up to date - run: | - bin/helm-docs --chart-search-root=charts - git diff --exit-code charts/linkerd-buoyant/README.md - - - name: Update Chart version - run: | - sed -i "s/0.0.0-undefined/0.0.0/g" charts/linkerd-buoyant/Chart.yaml - - - name: Run chart-testing (list-changed) - id: list-changed - run: | - changed=$(ct list-changed --config charts/ct.yaml) - if [[ -n "$changed" ]]; then - echo "::set-output name=changed::true" - fi - - - name: Run chart-testing (lint) - run: ct lint --config charts/ct.yaml - - - name: Create kind cluster - uses: helm/kind-action@v1.2.0 - if: steps.list-changed.outputs.changed == 'true' - - - name: Create buoyant-cloud namespace - run: | - kubectl create ns buoyant-cloud - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v1 - - - name: Cache Docker layers - uses: actions/cache@v2 - with: - path: /tmp/.buildx-cache - key: ${{ runner.os }}-buildx-${{ github.sha }} - restore-keys: | - ${{ runner.os }}-buildx- - - - name: Build agent image - uses: docker/build-push-action@v2 - with: - context: . - file: agent/Dockerfile - platforms: linux/amd64 - push: false - load: true - tags: ghcr.io/buoyantio/linkerd-buoyant:ci-run - cache-from: type=local,src=/tmp/.buildx-cache - cache-to: type=local,dest=/tmp/.buildx-cache-new - - - name: Move cache - # Temp fix - # https://github.com/docker/build-push-action/issues/252 - # https://github.com/moby/buildkit/issues/1896 - run: | - rm -rf /tmp/.buildx-cache - mv /tmp/.buildx-cache-new /tmp/.buildx-cache - - - name: Load agent image - run: | - kind load docker-image ghcr.io/buoyantio/linkerd-buoyant:ci-run --name=chart-testing - - - name: Run chart-testing (install) - run: ct install --config charts/ct.yaml - - # everything below here for main merges or releases (tags) - docker_build_and_push: - name: Docker Build and Push - if: startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/main' - needs: - - go_unit_tests - - go_lint - runs-on: ubuntu-20.04 - steps: - - name: Checkout - uses: actions/checkout@v2 - - name: Set up QEMU - uses: docker/setup-qemu-action@v1 - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v1 - - - name: Cache Docker layers - uses: actions/cache@v2 - with: - path: /tmp/.buildx-cache - key: ${{ runner.os }}-buildx-${{ github.sha }} - restore-keys: | - ${{ runner.os }}-buildx- - - - name: Login to GHCR - uses: docker/login-action@v1 - with: - registry: ghcr.io - username: ${{ github.repository_owner }} - password: ${{ secrets.GITHUB_TOKEN }} - - - name: Generate Docker tags (for main) - if: github.ref == 'refs/heads/main' - run: | - echo "platforms=linux/amd64" >> $GITHUB_ENV - echo "docker_tags=ghcr.io/buoyantio/linkerd-buoyant:latest" >> $GITHUB_ENV - - name: Generate Docker tags (for tagged release) - if: startsWith(github.ref, 'refs/tags/v') - run: | - echo "platforms=linux/amd64,linux/arm64,linux/arm/v6,linux/arm/v7" >> $GITHUB_ENV - echo "docker_tags=ghcr.io/buoyantio/linkerd-buoyant:latest,ghcr.io/buoyantio/linkerd-buoyant:${GITHUB_REF##*/}" >> $GITHUB_ENV - - - name: Build and push - uses: docker/build-push-action@v2 - with: - context: . - file: agent/Dockerfile - platforms: ${{ env.platforms }} - push: true - tags: ${{ env.docker_tags }} - cache-from: type=local,src=/tmp/.buildx-cache - cache-to: type=local,dest=/tmp/.buildx-cache-new - - name: Move cache - # Temp fix - # https://github.com/docker/build-push-action/issues/252 - # https://github.com/moby/buildkit/issues/1896 - run: | - rm -rf /tmp/.buildx-cache - mv /tmp/.buildx-cache-new /tmp/.buildx-cache - - # everything below here for releases (tags) - create_release: - if: startsWith(github.ref, 'refs/tags/v') - name: Create Release - needs: - - go_unit_tests - - go_lint - - smoke_test_cli - - helm_tests - - docker_build_and_push - runs-on: ubuntu-20.04 - outputs: - upload_url: ${{ steps.create_release.outputs.upload_url }} - steps: - - name: Create Release - id: create_release - uses: actions/create-release@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - tag_name: ${{ github.ref }} - release_name: ${{ github.ref }} - draft: false - prerelease: false - - upload_release_assets: - if: startsWith(github.ref, 'refs/tags/v') - name: Upload Release Assets - needs: - - create_release - strategy: - matrix: - include: - - platform: linux-amd64 - exe: "" - - platform: linux-arm64 - exe: "" - - platform: linux-arm - exe: "" - - platform: darwin-amd64 - exe: "" - - platform: darwin-arm64 - exe: "" - - platform: windows - exe: .exe - runs-on: ubuntu-20.04 - steps: - - name: Parse GITHUB_REF - run: echo "tag=${GITHUB_REF##*/}" >> $GITHUB_ENV - - - name: Generate linkerd-buoyant name - run: echo "linkerd-buoyant-bin=linkerd-buoyant-${{ env.tag }}-${{ matrix.platform }}${{ matrix.exe }}" >> $GITHUB_ENV - - - name: Download CLI Executable - uses: actions/download-artifact@v2 - with: - name: ${{ env.linkerd-buoyant-bin }} - - - name: Upload Release Asset - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ needs.create_release.outputs.upload_url }} - asset_path: ./${{ env.linkerd-buoyant-bin }} - asset_name: ${{ env.linkerd-buoyant-bin }} - asset_content_type: application/octet-stream - - create_helm_release: - if: startsWith(github.ref, 'refs/tags/v') - name: Create Helm Release - needs: - - create_release - - upload_release_assets - runs-on: ubuntu-20.04 - steps: - - name: Checkout - uses: actions/checkout@v2 - with: - fetch-depth: 0 - - - name: Set Helm tag version - run: | - echo "helm_tag=${GITHUB_REF##*/v}" >> $GITHUB_ENV - - - name: Set Helm package name - run: echo "helm_package=linkerd-buoyant-${{ env.helm_tag }}.tgz" >> $GITHUB_ENV - - # this step modifies the Helm chart in-place, in preparation for release - - name: Update Chart version - env: - helm_tag: ${{ env.helm_tag }} - run: | - sed -i "s/0.0.0-undefined/$helm_tag/g" charts/linkerd-buoyant/Chart.yaml - - - name: Set up Helm - uses: azure/setup-helm@v1 - with: - version: v3.8.0 - - - name: Package Helm chart - run: | - bin/cr package charts/linkerd-buoyant --config charts/cr.yaml - - - name: Upload Helm chart package to GitHub Release - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ needs.create_release.outputs.upload_url }} - asset_path: ./.cr-release-packages/${{ env.helm_package }} - asset_name: ${{ env.helm_package }} - asset_content_type: application/octet-stream - - - name: Configure Git - run: | - git config user.name "Helm Releaser" - git config user.email info@buoyant.io - - # TODO: `cr index` downloads the helm package from the GitHub Release. It - # attempts to unpack the first asset it sees. This only works for us because - # our Helm package is listed first alphabetically in the GitHub Release. - - name: Update Helm chart index.yaml - env: - CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" - run: | - mkdir .cr-index - bin/cr index --config charts/cr.yaml diff --git a/.gitignore b/.gitignore deleted file mode 100644 index 87c4c2e..0000000 --- a/.gitignore +++ /dev/null @@ -1,4 +0,0 @@ -.cr-index -.cr-release-packages -.gorun -target diff --git a/.golangci.yml b/.golangci.yml deleted file mode 100644 index 90d2366..0000000 --- a/.golangci.yml +++ /dev/null @@ -1,69 +0,0 @@ -# This file specifies which linters golangci-lint should run. -# -# For descriptions of all available linters, run: -# ./target/bin/.golangci-lint-1.44.2 linters -# or browse to: -# https://github.com/golangci/golangci-lint#supported-linters - -run: - deadline: 5m -issues: - exclude-use-default: false -linters: - enable: - - asciicheck - - bodyclose - - deadcode - - depguard - - dogsled - - errname - - exportloopref - - goconst - - goheader - - goimports - - gomodguard - - goprintffuncname - - gosimple - - govet - - ineffassign - - misspell - - nakedret - - nolintlint - - rowserrcheck - - sqlclosecheck - - structcheck - - typecheck - - unconvert - - unparam - - unused - - varcheck - - whitespace - # TODO: enable more linters! - # - dupl - # - exhaustive - # - funlen - # - gci - # - gochecknoglobals - # - gochecknoinits - # - gocognit - # - gocritic - # - gocyclo - # - godot - # - godox - # - goerr113 - # - gofmt - # - gofumpt - # - golint - # - gomnd - # - gosec - # - lll - # - nestif - # - nlreturn - # - noctx - # - prealloc - # - stylecheck - # - testpackage - # - wsl - disable: - - errcheck - - staticcheck diff --git a/CNAME b/CNAME deleted file mode 100644 index 5531be5..0000000 --- a/CNAME +++ /dev/null @@ -1 +0,0 @@ -helm.buoyant.cloud \ No newline at end of file diff --git a/LICENSE b/LICENSE deleted file mode 100644 index 6f75635..0000000 --- a/LICENSE +++ /dev/null @@ -1,201 +0,0 @@ - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright [yyyy] [name of copyright owner] - - 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. diff --git a/README.md b/README.md index bd105ae..f8f74b1 100644 --- a/README.md +++ b/README.md @@ -1,184 +1,9 @@ # linkerd-buoyant -[![Actions](https://github.com/BuoyantIO/linkerd-buoyant/actions/workflows/actions.yml/badge.svg)](https://github.com/BuoyantIO/linkerd-buoyant/actions/workflows/actions.yml) -[![Go Report Card](https://goreportcard.com/badge/github.com/buoyantio/linkerd-buoyant)](https://goreportcard.com/report/github.com/buoyantio/linkerd-buoyant) -[![GitHub license](https://img.shields.io/github/license/buoyantio/linkerd-buoyant.svg)](LICENSE) +This repository is no longer maintained. -The Linkerd Buoyant extension connects your -[Linkerd](https://linkerd.io)-enabled Kubernetes cluster to -[Buoyant Cloud](https://buoyant.io/cloud), the global platform health dashboard for -Linkerd. - -This repo consists of two components: -- [`agent`](agent): Runs on your Kubernetes cluster. -- [`cli`](cli): Runs locally or wherever you install the Linkerd CLI. - -## Install CLI - -To install the CLI, run: - -```bash -curl -sL https://buoyant.cloud/install | sh -``` - -Alternatively, you can download the CLI directly via the -[releases page](https://github.com/BuoyantIO/linkerd-buoyant/releases). - -### Usage - -```bash -$ linkerd-buoyant -linkerd-buoyant manages the Buoyant Cloud agent. - -It enables operational control over the Buoyant Cloud agent, providing install, -upgrade, and delete functionality. - -Usage: - linkerd-buoyant [command] - -Available Commands: - check Check the Buoyant Cloud agent installation for potential problems - completion Generate the autocompletion script for the specified shell - dashboard Open the Buoyant Cloud dashboard - help Help about any command - install Output Buoyant Cloud agent manifest for installation - uninstall Output Kubernetes manifest to uninstall the Buoyant Cloud agent - version Print the CLI and agent version information - -Flags: - --context string The name of the kubeconfig context to use - -h, --help help for linkerd-buoyant - --kubeconfig string Path to the kubeconfig file to use for CLI requests (default "/home/sig/.kube/config") - -v, --verbose Turn on debug logging - -Use "linkerd-buoyant [command] --help" for more information about a command. -``` - -## Development - -### Agent - -#### Setup credentials and env vars - -``` -export BUOYANT_CLOUD_CLIENT_ID="org-client-id" -export BUOYANT_CLOUD_CLIENT_SECRET="org-client-secret" -export AGENT_NAME="agent-name" -``` - -#### Build and run agent registrator -```bash -# Create agent-metadata config map with the desired agent name -cat <= len(tc.commandsFromApi) { - break out - } - case <-timeout: - t.Fatal("test timed out") - } - } - - if len(receivedCommands) != len(tc.commandsFromApi) { - t.Fatalf("Expected to receive %d commands, got: %d", len(tc.commandsFromApi), len(receivedCommands)) - } - - for i, expectedCommand := range tc.commandsFromApi { - actualCommand := receivedCommands[i] - if !reflect.DeepEqual(expectedCommand, actualCommand) { - t.Fatalf("Expected command %d to be %+v, got %+v", i, expectedCommand, actualCommand) - } - } - }) - } - }) -} - -func createDiagnosticCommand(diagnosticID, podName string, podNamespace string) *pb.AgentCommand { - return &pb.AgentCommand{ - Command: &pb.AgentCommand_GetProxyDiagnostics{ - GetProxyDiagnostics: &pb.GetProxyDiagnostics{ - DiagnosticId: diagnosticID, - PodName: podName, - PodNamespace: podNamespace, - }, - }, - } -} - -func createLogsCommand(podName string, podNamespace string, numLines int64) *pb.AgentCommand { - return &pb.AgentCommand{ - Command: &pb.AgentCommand_GetProxyLogs{ - GetProxyLogs: &pb.GetProxyLogs{ - PodName: podName, - PodNamespace: podNamespace, - NumLines: int32(numLines), - }, - }, - } -} diff --git a/agent/pkg/api/proxy_diagnostics.go b/agent/pkg/api/proxy_diagnostics.go deleted file mode 100644 index bc6da36..0000000 --- a/agent/pkg/api/proxy_diagnostics.go +++ /dev/null @@ -1,32 +0,0 @@ -package api - -import ( - "context" - - pb "github.com/buoyantio/linkerd-buoyant/gen/bcloud" - "google.golang.org/protobuf/encoding/prototext" -) - -// ProxyDiagnostics wraps the Buoyant Cloud API ProxyDiagnostics gRPC unary endpoint. -func (c *Client) ProxyDiagnostics( - diagnosticID string, - logs []byte, - metrics [][]byte, - podManifest *pb.Pod, - linkerdConfigMap *pb.ConfigMap, - nodes []*pb.Node, - k8sServiceManifest *pb.Service) error { - diagnostic := &pb.ProxyDiagnostic{ - DiagnosticId: diagnosticID, - Logs: logs, - Metrics: metrics, - PodManifest: podManifest, - LinkerdConfigMap: linkerdConfigMap, - Nodes: nodes, - K8SServiceManifest: k8sServiceManifest, - } - c.log.Tracef("ProxyDiagnostics: %s", prototext.Format(diagnostic)) - - _, err := c.client.ProxyDiagnostics(context.Background(), diagnostic) - return err -} diff --git a/agent/pkg/api/proxy_diagnostics_test.go b/agent/pkg/api/proxy_diagnostics_test.go deleted file mode 100644 index 0224644..0000000 --- a/agent/pkg/api/proxy_diagnostics_test.go +++ /dev/null @@ -1,64 +0,0 @@ -package api - -import ( - "errors" - "testing" - - pb "github.com/buoyantio/linkerd-buoyant/gen/bcloud" -) - -func TestProxyDiagnostic(t *testing.T) { - t.Run("calls the api and gets a response", func(t *testing.T) { - fixtures := []*struct { - testName string - diagnosticId string - logs []byte - metrics [][]byte - podManifest *pb.Pod - configMap *pb.ConfigMap - nodes []*pb.Node - k8sSvcManifest *pb.Service - err error - }{ - { - "bad API response", - "diagnosticId", - []byte("logs"), - [][]byte{[]byte("snapshot1"), []byte("snapshot2")}, - &pb.Pod{Pod: []byte("pod")}, - &pb.ConfigMap{ConfigMap: []byte("cm")}, - []*pb.Node{{Node: []byte("node1")}, {Node: []byte("node2")}}, - &pb.Service{Service: []byte("svc")}, - errors.New("bad response"), - }, - { - "ok rsp", - "diagnosticId", - []byte("logs"), - [][]byte{[]byte("snapshot1"), []byte("snapshot2")}, - &pb.Pod{Pod: []byte("pod")}, - &pb.ConfigMap{ConfigMap: []byte("cm")}, - []*pb.Node{{Node: []byte("node1")}, {Node: []byte("node2")}}, - &pb.Service{Service: []byte("svc")}, - nil, - }, - } - - for _, tc := range fixtures { - tc := tc - t.Run(tc.testName, func(t *testing.T) { - m := &MockBcloudClient{err: tc.err} - c := NewClient(m) - - err := c.ProxyDiagnostics(tc.diagnosticId, tc.logs, tc.metrics, tc.podManifest, tc.configMap, tc.nodes, tc.k8sSvcManifest) - if tc.err != err { - t.Errorf("Expected %s, got %s", tc.err, err) - } - - if len(m.ProxyDiagnosticMessages()) != 1 { - t.Errorf("Expected 1 message, got %d", len(m.ProxyDiagnosticMessages())) - } - }) - } - }) -} diff --git a/agent/pkg/api/proxy_logs.go b/agent/pkg/api/proxy_logs.go deleted file mode 100644 index 1200efb..0000000 --- a/agent/pkg/api/proxy_logs.go +++ /dev/null @@ -1,31 +0,0 @@ -package api - -import ( - "context" - "time" - - pb "github.com/buoyantio/linkerd-buoyant/gen/bcloud" - "google.golang.org/protobuf/encoding/prototext" - "google.golang.org/protobuf/types/known/timestamppb" -) - -// ProxyLogs wraps the Buoyant Cloud API ProxyLogs gRPC unary endpoint. -func (c *Client) ProxyLogs( - podName string, - namespace string, - logs []byte) error { - now := time.Now() - logMessage := &pb.ProxyLog{ - PodName: podName, - PodNamespace: namespace, - Lines: logs, - Timestamp: ×tamppb.Timestamp{ - Seconds: now.Unix(), - Nanos: int32(now.Nanosecond()), - }, - } - c.log.Tracef("ProxyLogs: %s", prototext.Format(logMessage)) - - _, err := c.client.ProxyLogs(context.Background(), logMessage) - return err -} diff --git a/agent/pkg/api/proxy_logs_test.go b/agent/pkg/api/proxy_logs_test.go deleted file mode 100644 index 40cc1b7..0000000 --- a/agent/pkg/api/proxy_logs_test.go +++ /dev/null @@ -1,50 +0,0 @@ -package api - -import ( - "errors" - "testing" -) - -func TestProxyLogs(t *testing.T) { - t.Run("calls the api and gets a response", func(t *testing.T) { - fixtures := []*struct { - testName string - podNamespace string - podName string - logs []byte - err error - }{ - { - "bad API response", - "ns", - "pod", - []byte("logs"), - errors.New("bad response"), - }, - { - "ok rsp", - "ns", - "pod", - []byte("logs"), - nil, - }, - } - - for _, tc := range fixtures { - tc := tc - t.Run(tc.testName, func(t *testing.T) { - m := &MockBcloudClient{err: tc.err} - c := NewClient(m) - - err := c.ProxyLogs(tc.podName, tc.podNamespace, tc.logs) - if tc.err != err { - t.Errorf("Expected %s, got %s", tc.err, err) - } - - if len(m.ProxyLogsMessages()) != 1 { - t.Errorf("Expected 1 message, got %d", len(m.ProxyDiagnosticMessages())) - } - }) - } - }) -} diff --git a/agent/pkg/api/test_helpers.go b/agent/pkg/api/test_helpers.go deleted file mode 100644 index 6ebb4d2..0000000 --- a/agent/pkg/api/test_helpers.go +++ /dev/null @@ -1,191 +0,0 @@ -package api - -import ( - "context" - "fmt" - "sync" - - pb "github.com/buoyantio/linkerd-buoyant/gen/bcloud" - "google.golang.org/grpc" - "google.golang.org/grpc/metadata" -) - -type MockAPI_ManageAgentClient struct { - agentCommandMessages []*pb.AgentCommand - grpc.ClientStream - - // protects state - sync.Mutex -} - -func (c *MockAPI_ManageAgentClient) Recv() (*pb.AgentCommand, error) { - c.Lock() - defer c.Unlock() - - if len(c.agentCommandMessages) == 0 { - return nil, fmt.Errorf("no more messages") - } - - command := c.agentCommandMessages[0] - if len(c.agentCommandMessages) > 1 { - c.agentCommandMessages = c.agentCommandMessages[1:] - } else { - c.agentCommandMessages = make([]*pb.AgentCommand, 0) - } - - return command, nil -} - -func (c *MockAPI_ManageAgentClient) CloseSend() error { - return nil // noop -} - -// MockBcloudClient satisfies the bcloud.ApiClient and -// bcloud.Api_WorkloadStreamClient interfaces, and saves all params and messages -// passed to it. -type MockBcloudClient struct { - // input - err error - - // output - messages []*pb.WorkloadMessage - events []*pb.Event - linkerdMessages []*pb.LinkerdMessage - proxyDiagnosticMessages []*pb.ProxyDiagnostic - proxyLogMessages []*pb.ProxyLog - - // simulates commands received from bcloud-api - agentCommandMessages []*pb.AgentCommand - - // protects messages and events - sync.Mutex -} - -// -// MockBcloudClient methods -// - -func (m *MockBcloudClient) Events() []*pb.Event { - m.Lock() - defer m.Unlock() - return m.events -} - -func (m *MockBcloudClient) Messages() []*pb.WorkloadMessage { - m.Lock() - defer m.Unlock() - return m.messages -} - -func (m *MockBcloudClient) LinkerdMessages() []*pb.LinkerdMessage { - m.Lock() - defer m.Unlock() - return m.linkerdMessages -} - -func (m *MockBcloudClient) ProxyDiagnosticMessages() []*pb.ProxyDiagnostic { - m.Lock() - defer m.Unlock() - return m.proxyDiagnosticMessages -} - -func (m *MockBcloudClient) ProxyLogsMessages() []*pb.ProxyLog { - m.Lock() - defer m.Unlock() - return m.proxyLogMessages -} - -// -// bcloud.ApiClient methods -// - -func (m *MockBcloudClient) WorkloadStream( - ctx context.Context, _ ...grpc.CallOption, -) (pb.Api_WorkloadStreamClient, error) { - return m, m.err -} - -func (m *MockBcloudClient) AddEvent( - ctx context.Context, event *pb.Event, _ ...grpc.CallOption, -) (*pb.Empty, error) { - m.Lock() - defer m.Unlock() - - m.events = append(m.events, event) - return nil, m.err -} - -func (m *MockBcloudClient) LinkerdInfo( - ctx context.Context, message *pb.LinkerdMessage, _ ...grpc.CallOption, -) (*pb.Empty, error) { - m.Lock() - defer m.Unlock() - - m.linkerdMessages = append(m.linkerdMessages, message) - return nil, m.err -} - -func (m *MockBcloudClient) ManageAgent( - ctx context.Context, auth *pb.Auth, opts ...grpc.CallOption) (pb.Api_ManageAgentClient, error) { - m.Lock() - defer m.Unlock() - stream := &MockAPI_ManageAgentClient{ - agentCommandMessages: m.agentCommandMessages, - } - return stream, nil -} - -func (m *MockBcloudClient) ProxyDiagnostics(ctx context.Context, message *pb.ProxyDiagnostic, opts ...grpc.CallOption) (*pb.Empty, error) { - m.Lock() - defer m.Unlock() - - m.proxyDiagnosticMessages = append(m.proxyDiagnosticMessages, message) - return nil, m.err -} - -func (m *MockBcloudClient) ProxyLogs(ctx context.Context, message *pb.ProxyLog, opts ...grpc.CallOption) (*pb.Empty, error) { - m.Lock() - defer m.Unlock() - - m.proxyLogMessages = append(m.proxyLogMessages, message) - return nil, m.err -} - -// -// bcloud.Api_WorkloadStreamClient methods -// - -func (m *MockBcloudClient) Send(msg *pb.WorkloadMessage) error { - m.Lock() - defer m.Unlock() - - m.messages = append(m.messages, msg) - return nil -} - -func (m *MockBcloudClient) CloseAndRecv() (*pb.Empty, error) { - return nil, nil -} - -// -// grpc.ClientStream methods -// - -func (m *MockBcloudClient) Header() (metadata.MD, error) { - return nil, nil -} -func (m *MockBcloudClient) Trailer() metadata.MD { - return nil -} -func (m *MockBcloudClient) CloseSend() error { - return nil -} -func (m *MockBcloudClient) Context() context.Context { - return nil -} -func (m *MockBcloudClient) SendMsg(_ interface{}) error { - return nil -} -func (m *MockBcloudClient) RecvMsg(_ interface{}) error { - return nil -} diff --git a/agent/pkg/api/workload.go b/agent/pkg/api/workload.go deleted file mode 100644 index 9fb67ed..0000000 --- a/agent/pkg/api/workload.go +++ /dev/null @@ -1,12 +0,0 @@ -package api - -import ( - pb "github.com/buoyantio/linkerd-buoyant/gen/bcloud" -) - -// SendWorkloadMessage sends a message via the Buoyant Cloud API WorkloadStream gRPC -// endpoint. It abstracts away the details around managing and protecting -// the client-side stream -func (c *Client) SendWorkloadMessage(msg *pb.WorkloadMessage) error { - return c.workloadStream.send(msg) -} diff --git a/agent/pkg/api/workload_stream.go b/agent/pkg/api/workload_stream.go deleted file mode 100644 index e5f68d9..0000000 --- a/agent/pkg/api/workload_stream.go +++ /dev/null @@ -1,86 +0,0 @@ -package api - -import ( - "context" - "io" - "sync" - "time" - - pb "github.com/buoyantio/linkerd-buoyant/gen/bcloud" - log "github.com/sirupsen/logrus" -) - -// WorkloadStream wraps the Buoyant Cloud API WorkloadStream gRPC endpoint, and -// manages the client-side stream. -type workloadStream struct { - client pb.ApiClient - stream pb.Api_WorkloadStreamClient - log *log.Entry - - // protects stream - sync.Mutex -} - -func newWorkloadStream(client pb.ApiClient) *workloadStream { - return &workloadStream{ - client: client, - log: log.WithField("stream", "WorkloadStream"), - } -} - -func (s *workloadStream) send(msg *pb.WorkloadMessage) error { - // loop and reset the stream if it has been closed - for { - err := s.sendMessage(msg) - if err == io.EOF { - s.log.Info("WorkloadStream closed") - s.resetStream() - continue - } else if err != nil { - s.log.Errorf("WorkloadStream failed to send: %s", err) - } - - return err - } -} - -func (s *workloadStream) sendMessage(msg *pb.WorkloadMessage) error { - s.Lock() - defer s.Unlock() - if s.stream == nil { - s.stream = s.newStream() - } - - return s.stream.Send(msg) -} - -func (s *workloadStream) newStream() pb.Api_WorkloadStreamClient { - var stream pb.Api_WorkloadStreamClient - - // loop until the request to initiate a stream succeeds - for { - var err error - stream, err = s.client.WorkloadStream(context.Background()) - if err != nil { - s.log.Errorf("failed to initiate stream: %s", err) - time.Sleep(100 * time.Millisecond) - continue - } - - s.log.Info("WorkloadStream opened") - - break - } - - s.log.Info("WorkloadStream connected") - return stream -} - -func (s *workloadStream) resetStream() { - s.Lock() - defer s.Unlock() - if s.stream != nil { - s.stream.CloseSend() - s.stream = nil - } -} diff --git a/agent/pkg/api/workload_test.go b/agent/pkg/api/workload_test.go deleted file mode 100644 index 72d0ba9..0000000 --- a/agent/pkg/api/workload_test.go +++ /dev/null @@ -1,52 +0,0 @@ -package api - -import ( - "testing" - - pb "github.com/buoyantio/linkerd-buoyant/gen/bcloud" -) - -func TestWorkloadStream(t *testing.T) { - t.Run("streams a workload message", func(t *testing.T) { - fixtures := []*struct { - testName string - msgs []*pb.WorkloadMessage - msgCount int - }{ - { - "no workload messages", - nil, - 0, - }, - { - "one workload message", - []*pb.WorkloadMessage{{}}, - 1, - }, - { - "two workload message", - []*pb.WorkloadMessage{{}, {}}, - 2, - }, - } - - for _, tc := range fixtures { - tc := tc - t.Run(tc.testName, func(t *testing.T) { - m := &MockBcloudClient{} - c := NewClient(m) - - for _, msg := range tc.msgs { - err := c.SendWorkloadMessage(msg) - if err != nil { - t.Error(err) - } - } - - if len(m.Messages()) != tc.msgCount { - t.Errorf("Expected %d message, got %d", tc.msgCount, len(m.Messages())) - } - }) - } - }) -} diff --git a/agent/pkg/bcloudapi/client.go b/agent/pkg/bcloudapi/client.go deleted file mode 100644 index 8a3c063..0000000 --- a/agent/pkg/bcloudapi/client.go +++ /dev/null @@ -1,208 +0,0 @@ -package bcloudapi - -import ( - "context" - "encoding/json" - "errors" - "fmt" - "io" - "net/http" - "net/url" - - "github.com/buoyantio/linkerd-buoyant/agent/pkg/k8s" - "golang.org/x/oauth2" - "golang.org/x/oauth2/clientcredentials" - "google.golang.org/grpc/credentials" -) - -const ( - agentTokenEndpoint = "/agent-token" - tokenEndpoint = "/token" - registerAgentEndpoint = "/register-agent" - agentManifestEndpoint = "/agent.yaml" -) - -type jsonError struct { - Error string `json:"error"` -} - -// AgentIdentifier identifies an agent when calling the manifest rendering API -type AgentIdentifier interface { - Value() string -} - -// AgentID identifies an agent with its ID. -type AgentID string - -func (id AgentID) Value() string { - return string(id) -} - -// AgentName identifies an agent with its name. -type AgentName string - -func (name AgentName) Value() string { - return string(name) -} - -// AgentInfo contains all data to describe an agent that has been -// registered in Bcloud. -type AgentInfo struct { - AgentName string `json:"agent_name"` - AgentID string `json:"agent_id"` - IsNewAgent bool `json:"is_new_agent"` -} - -type Client interface { - RegisterAgent(ctx context.Context, agentName string) (*AgentInfo, error) - Credentials(ctx context.Context, agentID string) credentials.PerRPCCredentials - GetAgentManifest(ctx context.Context, identifier AgentIdentifier) (string, error) -} - -type client struct { - clientID string - clientSecret string - tokenAuthConfig *clientcredentials.Config - base url.URL - noTLS bool -} - -// New creates a new ApiClient -func New(clientID, clientSecret, apiAddr string, noTLS bool) Client { - addrScheme := "https" - if noTLS { - addrScheme = "http" - } - - base := url.URL{Scheme: addrScheme, Host: apiAddr} - - tokenURL := base - tokenURL.Path = tokenEndpoint - - tokenAuthConfig := &clientcredentials.Config{ - ClientID: clientID, - ClientSecret: clientSecret, - TokenURL: tokenURL.String(), - AuthStyle: oauth2.AuthStyleInHeader, - } - - return &client{ - clientID: clientID, - clientSecret: clientSecret, - tokenAuthConfig: tokenAuthConfig, - base: base, - noTLS: noTLS, - } -} - -// RegisterAgent registers the agent with Bcloud -func (c *client) RegisterAgent(ctx context.Context, agentName string) (*AgentInfo, error) { - client := c.tokenAuthConfig.Client(ctx) - - registerURL := c.base - registerURL.Path = registerAgentEndpoint - registerURL.RawQuery = url.Values{k8s.AgentNameKey: []string{agentName}}.Encode() - - req, err := http.NewRequest(http.MethodPut, registerURL.String(), nil) - if err != nil { - return nil, err - } - rsp, err := client.Do(req) - if err != nil { - return nil, err - } - defer rsp.Body.Close() - - if rsp.StatusCode != http.StatusOK { - if apiErr := extractErrorFromResponse(rsp); apiErr != nil { - return nil, apiErr - } - - return nil, fmt.Errorf("agent registration api returned: %d", rsp.StatusCode) - } - - data, err := io.ReadAll(rsp.Body) - if err != nil { - return nil, err - } - - info := &AgentInfo{} - if err := json.Unmarshal(data, info); err != nil { - return nil, err - } - - return info, nil -} - -// GetAgentManifest renders a manifest for an agent -func (c *client) GetAgentManifest(ctx context.Context, identifier AgentIdentifier) (string, error) { - client := c.tokenAuthConfig.Client(ctx) - - manifestURL := c.base - manifestURL.Path = agentManifestEndpoint - - var queryKey string - switch identifier.(type) { - case AgentID: - queryKey = k8s.AgentIDKey - case AgentName: - queryKey = k8s.AgentNameKey - default: - return "", fmt.Errorf("invalid agent identifier %+v", identifier) - } - - manifestURL.RawQuery = url.Values{queryKey: []string{identifier.Value()}}.Encode() - - req, err := http.NewRequest(http.MethodGet, manifestURL.String(), nil) - if err != nil { - return "", err - } - rsp, err := client.Do(req) - if err != nil { - return "", err - } - defer rsp.Body.Close() - - if rsp.StatusCode != http.StatusOK { - return "", fmt.Errorf("agent manifest rendering api returned: %d", rsp.StatusCode) - } - - data, err := io.ReadAll(rsp.Body) - if err != nil { - return "", err - } - - return string(data), nil -} - -// Credentials returns a token source for a particular agent -func (c *client) Credentials(ctx context.Context, agentID string) credentials.PerRPCCredentials { - agentTokenURL := c.base - agentTokenURL.Path = agentTokenEndpoint - agentTokenURL.RawQuery = url.Values{k8s.AgentIDKey: []string{agentID}}.Encode() - - authConfig := &clientcredentials.Config{ - ClientID: c.clientID, - ClientSecret: c.clientSecret, - TokenURL: agentTokenURL.String(), - AuthStyle: oauth2.AuthStyleInHeader, - } - - ts := authConfig.TokenSource(ctx) - - return newTokenPerRPCCreds(ts, c.noTLS) -} - -func extractErrorFromResponse(resp *http.Response) error { - // we will try and parse the json error object here - data, err := io.ReadAll(resp.Body) - if err != nil { - return nil - } - jsonErr := &jsonError{} - if err := json.Unmarshal(data, jsonErr); err != nil { - return nil - } - - return errors.New(jsonErr.Error) -} diff --git a/agent/pkg/bcloudapi/creds.go b/agent/pkg/bcloudapi/creds.go deleted file mode 100644 index d7a709d..0000000 --- a/agent/pkg/bcloudapi/creds.go +++ /dev/null @@ -1,44 +0,0 @@ -package bcloudapi - -import ( - "context" - - "golang.org/x/oauth2" - "google.golang.org/grpc/credentials" - "google.golang.org/grpc/credentials/oauth" -) - -// tokenPerRPCCreds satisfies the credentials.PerRPCCredentials interface -// attaching an up to date token to each RPC request in the GRPC pipeline. -// When the token is expired a new token is requested by using the client -// credentials flow. -type tokenPerRPCCreds struct { - noTLS bool - ts oauth.TokenSource -} - -func newTokenPerRPCCreds(ts oauth2.TokenSource, noTLS bool) credentials.PerRPCCredentials { - return &tokenPerRPCCreds{ - ts: oauth.TokenSource{TokenSource: ts}, - noTLS: noTLS, - } -} - -func (t *tokenPerRPCCreds) GetRequestMetadata(ctx context.Context, uri ...string) (map[string]string, error) { - if t.noTLS { - token, err := t.ts.Token() - if err != nil { - return nil, err - } - - return map[string]string{ - "authorization": token.Type() + " " + token.AccessToken, - }, nil - } - - return t.ts.GetRequestMetadata(ctx, uri...) -} - -func (t *tokenPerRPCCreds) RequireTransportSecurity() bool { - return !t.noTLS -} diff --git a/agent/pkg/bcloudapi/mock_api_server.go b/agent/pkg/bcloudapi/mock_api_server.go deleted file mode 100644 index c624aa6..0000000 --- a/agent/pkg/bcloudapi/mock_api_server.go +++ /dev/null @@ -1,119 +0,0 @@ -package bcloudapi - -import ( - "encoding/json" - "fmt" - "net/http" - "net/http/httptest" - "strings" - "sync" - - "github.com/buoyantio/linkerd-buoyant/agent/pkg/k8s" -) - -type token struct { - AccessToken string `json:"access_token"` - ExpiresIn int64 `json:"expires_in"` -} - -// MockAPIServer is used to mock the Bcloud client API -type MockAPIServer struct { - tokenRequests int - registrationRequests int - sync.Mutex - err error - expectedClientID string - expectedSecret string - expectedAccessToken string - expectedName string - expectedNewAgentID string - srv *httptest.Server -} - -// NewMockApiSrv creates a new MockAPIServer. -func NewMockApiSrv(expectedClientID, expectedSecret, expectedAccessToken, expectedName, expectedNewAgentID string) *MockAPIServer { - return &MockAPIServer{ - expectedClientID: expectedClientID, - expectedSecret: expectedSecret, - expectedAccessToken: expectedAccessToken, - expectedName: expectedName, - expectedNewAgentID: expectedNewAgentID, - } -} - -// Start starts the mock server and returns its address. -func (mas *MockAPIServer) Start() string { - mas.srv = httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - mas.Lock() - defer mas.Unlock() - if r.URL.String() == tokenEndpoint { - id, secret, _ := r.BasicAuth() - if id != mas.expectedClientID { - mas.err = fmt.Errorf("wrong client id: %s", id) - return - } - - if secret != mas.expectedSecret { - mas.err = fmt.Errorf("wrong client secret: %s", secret) - return - } - - data, _ := json.Marshal(&token{AccessToken: mas.expectedAccessToken, ExpiresIn: 3600}) - mas.tokenRequests += 1 - w.Header().Set("Content-Type", "application/json") - w.Write(data) - return - } else if strings.Contains(r.URL.String(), registerAgentEndpoint) { - auth := r.Header.Get("Authorization") - expectedAuth := fmt.Sprintf("Bearer %s", mas.expectedAccessToken) - if auth != expectedAuth { - mas.err = fmt.Errorf("expected Authorization header: %s but got: %s", expectedAuth, auth) - return - } - - expectedName := mas.expectedName - actualName := r.URL.Query().Get(k8s.AgentNameKey) - - if expectedName != actualName { - mas.err = fmt.Errorf("expected to register agent with name: %s but got name: %s", expectedName, actualName) - return - } - - data, _ := json.Marshal(&AgentInfo{AgentName: actualName, AgentID: mas.expectedNewAgentID, IsNewAgent: true}) - mas.registrationRequests += 1 - w.Header().Set("Content-Type", "application/json") - w.Write(data) - return - } else { - mas.err = fmt.Errorf("unexpected request: %s", r.URL.String()) - } - })) - - return mas.srv.Listener.Addr().String() -} - -// Stop stops the server -func (mas *MockAPIServer) Stop() { - mas.srv.Close() -} - -// GetTokenRequests returns the number of token requests that the server has received. -func (mas *MockAPIServer) GetTokenRequests() int { - mas.Lock() - defer mas.Unlock() - return mas.tokenRequests -} - -// GetRegistrationRequests returns the number of agent registration requests that the server has received. -func (mas *MockAPIServer) GetRegistrationRequests() int { - mas.Lock() - defer mas.Unlock() - return mas.registrationRequests -} - -// GetError returns any error that the server has encountered while processing requests. -func (mas *MockAPIServer) GetError() error { - mas.Lock() - defer mas.Unlock() - return mas.err -} diff --git a/agent/pkg/flags/flags.go b/agent/pkg/flags/flags.go deleted file mode 100644 index 4fe717a..0000000 --- a/agent/pkg/flags/flags.go +++ /dev/null @@ -1,70 +0,0 @@ -package flags - -import ( - "flag" - "os" - - log "github.com/sirupsen/logrus" - "k8s.io/klog/v2" -) - -// ConfigureAndParse adds flags that are common to all agent go processes. This -// func calls flag.Parse(), so it should be called after all other flags have -// been configured. On success it returns the clientID and clientSecret credentials -// the are needed for the agent to communicate with the Bcloud API -func ConfigureAndParseAgentParams(cmd *flag.FlagSet, args []string) (string, string) { - // klog flags - klog.InitFlags(nil) - flag.Set("stderrthreshold", "FATAL") - flag.Set("logtostderr", "true") - flag.Set("v", "0") - - logLevel := cmd.String("log-level", log.InfoLevel.String(), - "log level, must be one of: panic, fatal, error, warn, info, debug") - clientID := cmd.String("client-id", "", "bcloud client id, takes precedence over BUOYANT_CLOUD_CLIENT_ID env var") - clientSecret := cmd.String("client-secret", "", "bcloud client secret, takes precedence over BUOYANT_CLOUD_CLIENT_SECRET env var") - - cmd.Parse(args) - setLogLevel(*logLevel) - return credentials(clientID, clientSecret) -} - -// credentials ensures that client id and client secret credentials are -// provided in either via command line parameters or env varibles, giving -// preference to the former. -func credentials(clientID, clientSecret *string) (string, string) { - id := os.Getenv("BUOYANT_CLOUD_CLIENT_ID") - if *clientID != "" { - id = *clientID - } - if id == "" { - log.Fatal("missing client id! set -client-id flag or BUOYANT_CLOUD_CLIENT_ID env var") - } - log.Debugf("using bcloud client id %s", id) - - secret := os.Getenv("BUOYANT_CLOUD_CLIENT_SECRET") - if *clientSecret != "" { - secret = *clientSecret - } - if secret == "" { - log.Fatal("missing bcloud client secret! set -client-secret flag or BUOYANT_CLOUD_CLIENT_SECRET env var") - } - return id, secret -} - -func setLogLevel(logLevel string) { - level, err := log.ParseLevel(logLevel) - if err != nil { - log.Fatalf("invalid log-level: %s", logLevel) - } - log.SetLevel(level) - log.SetFormatter(&log.TextFormatter{FullTimestamp: true}) - - // klog flags for debugging - if level >= log.DebugLevel { - flag.Set("stderrthreshold", "INFO") - flag.Set("v", "6") // At 7 and higher, authorization tokens get logged. - } - // pipe klog entries to logrus - klog.SetOutput(log.StandardLogger().Writer()) -} diff --git a/agent/pkg/handler/event.go b/agent/pkg/handler/event.go deleted file mode 100644 index 08fbd70..0000000 --- a/agent/pkg/handler/event.go +++ /dev/null @@ -1,65 +0,0 @@ -package handler - -import ( - "github.com/buoyantio/linkerd-buoyant/agent/pkg/api" - "github.com/buoyantio/linkerd-buoyant/agent/pkg/k8s" - log "github.com/sirupsen/logrus" - v1 "k8s.io/api/core/v1" - "k8s.io/client-go/informers" - "k8s.io/client-go/tools/cache" -) - -// Event listens to the k8s API for events, and forwards them to the Buoyant -// Cloud API. -type Event struct { - api *api.Client - k8s *k8s.Client - log *log.Entry -} - -// NewEvent instantiates a new k8s event handler. -func NewEvent(k8sClient *k8s.Client, apiClient *api.Client) *Event { - log := log.WithField("handler", "event") - log.Debug("initializing") - - return &Event{ - api: apiClient, - k8s: k8sClient, - log: log, - } -} - -// Start initiates listening to a k8s event handler. -func (h *Event) Start(sharedInformers informers.SharedInformerFactory) { - sharedInformers.Core().V1().Events().Informer().AddEventHandler( - cache.ResourceEventHandlerFuncs{ - AddFunc: func(obj interface{}) { - event := obj.(*v1.Event) - h.handleEvent(event) - }, - }, - ) -} - -func (h *Event) handleEvent(event *v1.Event) error { - h.log.Tracef("handleEvent: %+v\n", event) - - e, err := h.k8s.EventToPB(event) - if err != nil { - h.log.Errorf("Failed to create event: %s", err) - return err - } - - if e == nil { - h.log.Tracef("non-workload event, skipping: [%+v]", event) - return nil - } - - err = h.api.AddEvent(e) - if err != nil { - h.log.Errorf("Failed to send event: %s", err) - return err - } - - return nil -} diff --git a/agent/pkg/handler/event_test.go b/agent/pkg/handler/event_test.go deleted file mode 100644 index 3eaf6a3..0000000 --- a/agent/pkg/handler/event_test.go +++ /dev/null @@ -1,175 +0,0 @@ -package handler - -import ( - "context" - "testing" - "time" - - "github.com/buoyantio/linkerd-buoyant/agent/pkg/api" - "github.com/buoyantio/linkerd-buoyant/agent/pkg/k8s" - l5dk8s "github.com/linkerd/linkerd2/pkg/k8s" - 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/client-go/informers" - "k8s.io/client-go/kubernetes/fake" -) - -func TestEvent(t *testing.T) { - dsName := "fake-ds" - dsNamespace := "fake-ds-ns" - deployName := "fake-deploy" - deployNamespace := "fake-deploy-ns" - - fixtures := []*struct { - testName string - events []*corev1.Event - objs []runtime.Object - expEvents int - }{ - { - "no events", - nil, - nil, - 0, - }, - { - "one event", - []*corev1.Event{ - { - ObjectMeta: metav1.ObjectMeta{ - Name: "my-event", - }, - InvolvedObject: corev1.ObjectReference{ - Kind: k8s.DaemonSet, - Name: dsName, - Namespace: dsNamespace, - }, - }, - }, - []runtime.Object{ - &appsv1.DaemonSet{ - ObjectMeta: metav1.ObjectMeta{ - Name: dsName, - Namespace: dsNamespace, - }, - Spec: appsv1.DaemonSetSpec{ - Selector: &metav1.LabelSelector{}, - }, - }, - }, - 1, - }, - { - "one daemonset event and one deployment event", - []*corev1.Event{ - { - ObjectMeta: metav1.ObjectMeta{ - Name: "ds-event", - }, - InvolvedObject: corev1.ObjectReference{ - Kind: k8s.DaemonSet, - Name: dsName, - Namespace: dsNamespace, - }, - }, - { - ObjectMeta: metav1.ObjectMeta{ - Name: "deploy-event", - }, - InvolvedObject: corev1.ObjectReference{ - Kind: k8s.Deployment, - Name: deployName, - Namespace: deployNamespace, - }, - }, - }, - []runtime.Object{ - &appsv1.DaemonSet{ - ObjectMeta: metav1.ObjectMeta{ - Name: dsName, - Namespace: dsNamespace, - }, - Spec: appsv1.DaemonSetSpec{ - Selector: &metav1.LabelSelector{}, - }, - }, - &appsv1.Deployment{ - ObjectMeta: metav1.ObjectMeta{ - Name: deployName, - Namespace: deployNamespace, - }, - Spec: appsv1.DeploymentSpec{ - Selector: &metav1.LabelSelector{}, - }, - }, - }, - 2, - }, - { - "one event without an owner", - []*corev1.Event{ - { - ObjectMeta: metav1.ObjectMeta{ - Name: "my-event", - }, - InvolvedObject: corev1.ObjectReference{ - Kind: k8s.DaemonSet, - Name: dsName, - Namespace: dsNamespace, - }, - }, - }, - nil, - 0, - }, - } - - for _, tc := range fixtures { - tc := tc - t.Run(tc.testName, func(t *testing.T) { - cs := fake.NewSimpleClientset(tc.objs...) - sharedInformers := informers.NewSharedInformerFactory(cs, 10*time.Minute) - k8sApi := &l5dk8s.KubernetesAPI{ - Interface: cs, - } - k8sClient := k8s.NewClient(sharedInformers, k8sApi, nil, nil, false) - - m := &api.MockBcloudClient{} - apiClient := api.NewClient(m) - - eh := NewEvent(k8sClient, apiClient) - if len(m.Events()) != 0 { - t.Errorf("Expected no events sent, got %d", len(m.Events())) - } - eh.Start(sharedInformers) - err := k8sClient.Sync(nil, time.Second) - if err != nil { - t.Error(err) - } - - for _, e := range tc.events { - _, err = cs.CoreV1().Events(dsNamespace).Create(context.TODO(), e, metav1.CreateOptions{}) - if err != nil { - t.Errorf("Error injecting event: %v", err) - } - } - - ctx, cancel := context.WithTimeout(context.Background(), time.Second) - defer cancel() - for { - if len(m.Events()) == tc.expEvents { - break - } - - select { - case <-time.After(10 * time.Millisecond): - case <-ctx.Done(): - t.Errorf("Expected %d event(s) sent to API, got %d", tc.expEvents, len(m.Events())) - return - } - } - }) - } -} diff --git a/agent/pkg/handler/linkerd_info.go b/agent/pkg/handler/linkerd_info.go deleted file mode 100644 index 2cb3ec8..0000000 --- a/agent/pkg/handler/linkerd_info.go +++ /dev/null @@ -1,182 +0,0 @@ -package handler - -import ( - "context" - "time" - - "github.com/buoyantio/linkerd-buoyant/agent/pkg/api" - "github.com/buoyantio/linkerd-buoyant/agent/pkg/k8s" - pb "github.com/buoyantio/linkerd-buoyant/gen/bcloud" - log "github.com/sirupsen/logrus" - "google.golang.org/protobuf/encoding/prototext" -) - -const ( - linkerdInfoInterval = time.Minute -) - -// LinkerdInfo is responsible for obtaining Linkerd related -// data and sending it to the Bcloud API in the form of -// `LinkerdMessage` objects -type LinkerdInfo struct { - api *api.Client - k8s *k8s.Client - log *log.Entry - stopCh chan struct{} -} - -// NewLinkerdInfo instantiates a new k8s event handler. -func NewLinkerdInfo(k8sClient *k8s.Client, apiClient *api.Client) *LinkerdInfo { - log := log.WithField("handler", "linkerd_info") - log.Debug("initializing") - - return &LinkerdInfo{ - api: apiClient, - k8s: k8sClient, - log: log, - stopCh: make(chan struct{}), - } -} - -// Start initiates linkerd info handler -func (h *LinkerdInfo) Start() { - ticker := time.NewTicker(linkerdInfoInterval) - for { - select { - case <-ticker.C: - h.handleCertsInfo(context.Background()) - h.handleAuthPolicyInfo(context.Background()) - h.handleMulticluster(context.Background()) - h.handleServiceProfiles(context.Background()) - h.handleTrafficSplits(context.Background()) - case <-h.stopCh: - return - } - } -} - -// Stop terminates the handler. -func (h *LinkerdInfo) Stop() { - h.log.Info("shutting down") - close(h.stopCh) -} - -func (h *LinkerdInfo) handleTrafficSplits(ctx context.Context) { - trafficSplits, err := h.k8s.GetTrafficSplits(ctx) - if err != nil { - h.log.Errorf("error getting traffic splits: %s", err) - return - } - - m := &pb.TrafficSplitInfo{ - TrafficSplits: trafficSplits, - } - h.log.Tracef("handleTrafficSplits: %s", prototext.Format(m)) - - err = h.api.TrafficSplitInfo(m) - if err != nil { - h.log.Errorf("error sending TrafficSplitInfo message: %s", err) - } -} - -func (h *LinkerdInfo) handleServiceProfiles(ctx context.Context) { - serviceProfiles, err := h.k8s.GetServiceProfiles(ctx) - if err != nil { - h.log.Errorf("error getting service profiles: %s", err) - return - } - - m := &pb.ServiceProfileInfo{ - ServiceProfiles: serviceProfiles, - } - h.log.Tracef("handleServiceProfiles: %s", prototext.Format(m)) - - err = h.api.SPInfo(m) - if err != nil { - h.log.Errorf("error sending ServiceProfileInfo message: %s", err) - } -} - -func (h *LinkerdInfo) handleMulticluster(ctx context.Context) { - links, err := h.k8s.GetMulticlusterLinks(ctx) - if err != nil { - h.log.Errorf("error getting MC links: %s", err) - return - } - - m := &pb.MulticlusterInfo{ - MulticlusterLinks: links, - } - h.log.Tracef("handleMulticluster: %s", prototext.Format(m)) - - err = h.api.MCInfo(m) - if err != nil { - h.log.Errorf("error sending MulticlusterInfo message: %s", err) - } -} - -func (h *LinkerdInfo) handleAuthPolicyInfo(ctx context.Context) { - servers, err := h.k8s.GetServers(ctx) - if err != nil { - h.log.Errorf("error getting servers: %s", err) - return - } - - serverAuths, err := h.k8s.GetServerAuths(ctx) - if err != nil { - h.log.Errorf("error getting server authorizations: %s", err) - return - } - - authPolicies, err := h.k8s.GetAuthorizationPolicies(ctx) - if err != nil { - h.log.Errorf("error getting authorization policies: %s", err) - return - } - - meshTlsAuthentications, err := h.k8s.GetMeshTLSAuthentications(ctx) - if err != nil { - h.log.Errorf("error getting mesh tls authentications: %s", err) - return - } - - networkAuthentications, err := h.k8s.GetNetworkAuthentications(ctx) - if err != nil { - h.log.Errorf("error getting network authentications: %s", err) - return - } - - m := &pb.AuthPolicyInfo{ - Servers: servers, - ServerAuthorizations: serverAuths, - AuthorizationPolicies: authPolicies, - MeshTlsAuthentications: meshTlsAuthentications, - NetworkAuthentications: networkAuthentications, - } - h.log.Tracef("handleAuthPolicyInfo: %s", prototext.Format(m)) - - err = h.api.AuthPolicyInfo(m) - if err != nil { - h.log.Errorf("error sending AuthPolicyInfo message: %s", err) - } -} - -func (h *LinkerdInfo) handleCertsInfo(ctx context.Context) { - certs, err := h.k8s.GetControlPlaneCerts(ctx) - if err != nil { - h.log.Errorf("error getting control plane certs: %s", err) - return - } - - m := &pb.CertificateInfo{ - Info: &pb.CertificateInfo_ControlPlane{ - ControlPlane: certs, - }, - } - h.log.Tracef("handleCertsInfo: %s", prototext.Format(m)) - - err = h.api.CrtInfo(m) - if err != nil { - h.log.Errorf("error sending CertificateInfo message: %s", err) - } -} diff --git a/agent/pkg/handler/manage_agent.go b/agent/pkg/handler/manage_agent.go deleted file mode 100644 index 16cbc32..0000000 --- a/agent/pkg/handler/manage_agent.go +++ /dev/null @@ -1,118 +0,0 @@ -package handler - -import ( - "context" - - "github.com/buoyantio/linkerd-buoyant/agent/pkg/api" - "github.com/buoyantio/linkerd-buoyant/agent/pkg/k8s" - pb "github.com/buoyantio/linkerd-buoyant/gen/bcloud" - log "github.com/sirupsen/logrus" -) - -type ManageAgent struct { - api *api.Client - k8s *k8s.Client - log *log.Entry - stopCh chan struct{} -} - -// NewManageAgent instantiates a new agent commands handler -func NewManageAgent(k8sClient *k8s.Client, apiClient *api.Client) *ManageAgent { - log := log.WithField("handler", "manage_agent") - log.Debug("initializing") - - return &ManageAgent{ - api: apiClient, - k8s: k8sClient, - log: log, - stopCh: make(chan struct{}), - } -} - -// Start initiates ManageAgent handler -func (h *ManageAgent) Start() { - h.log.Info("Starting manage agent handler") - for { - select { - case <-h.stopCh: - return - case agentCommand := <-h.api.AgentCommands(): - switch command := agentCommand.Command.(type) { - case *pb.AgentCommand_GetProxyDiagnostics: - proxyDiagnostic := command.GetProxyDiagnostics - go h.handleProxyDiagnostics(context.Background(), proxyDiagnostic.PodName, proxyDiagnostic.PodNamespace, proxyDiagnostic.DiagnosticId) - case *pb.AgentCommand_GetProxyLogs: - proxyLogs := command.GetProxyLogs - go h.handleGetProxyLogs(context.Background(), proxyLogs.PodName, proxyLogs.PodNamespace, int64(proxyLogs.NumLines)) - } - } - } -} - -// Stop terminates the handler. -func (h *ManageAgent) Stop() { - h.log.Info("shutting down") - close(h.stopCh) -} - -func (h *ManageAgent) handleProxyDiagnostics(ctx context.Context, podName, namespace, diagnosticID string) { - logs, err := h.k8s.GetProxyLogs(ctx, podName, namespace, false, nil) - if err != nil { - h.log.Errorf("cannot obtain proxy logs for diagnosticID %s: %s", diagnosticID, err) - } else { - h.log.Debugf("Successfully obtained proxy logs for diagnosticID: %s", diagnosticID) - } - - podSpec, err := h.k8s.GetPodSpec(ctx, podName, namespace) - if err != nil { - h.log.Errorf("cannot obtain pod manifest for diagnosticID %s: %s", diagnosticID, err) - } else { - h.log.Debugf("Successfully obtained pod manifest for diagnosticID: %s", diagnosticID) - } - - metrics, err := h.k8s.GetPrometheusScrape(ctx, podName, namespace) - if err != nil { - h.log.Errorf("cannot obtain proxy metrics for diagnosticID %s: %s", diagnosticID, err) - } else { - h.log.Debugf("Successfully obtained proxy metrics for diagnosticID: %s", diagnosticID) - } - - l5dConfigMap, err := h.k8s.GetLinkerdConfigMap(ctx) - if err != nil { - h.log.Errorf("cannot Linkerd config map for diagnosticID %s: %s", diagnosticID, err) - } else { - h.log.Debugf("Successfully obtained Linkerd config map for for diagnosticID: %s", diagnosticID) - } - - nodes, err := h.k8s.GetNodeManifests(ctx) - if err != nil { - h.log.Errorf("cannot obtain nodes for diagnosticID %s: %s", diagnosticID, err) - } else { - h.log.Debugf("Successfully obtained nodes for diagnosticID: %s", diagnosticID) - } - - svcManifest, err := h.k8s.GetK8sServiceManifest(ctx) - if err != nil { - h.log.Errorf("cannot obtain K8s svc manifest for diagnosticID %s: %s", diagnosticID, err) - } else { - h.log.Debugf("Successfully obtained K8s svc manifest for diagnosticID: %s", diagnosticID) - } - - err = h.api.ProxyDiagnostics(diagnosticID, logs, metrics, podSpec, l5dConfigMap, nodes, svcManifest) - if err != nil { - h.log.Errorf("error sending ProxyDiagnostics message: %s", err) - } -} - -func (h *ManageAgent) handleGetProxyLogs(ctx context.Context, podName, namespace string, lines int64) { - logs, err := h.k8s.GetProxyLogs(ctx, podName, namespace, true, &lines) - if err != nil { - h.log.Errorf("cannot obtain logs for proxy %s/%s", namespace, podName) - return - } - - err = h.api.ProxyLogs(podName, namespace, logs) - if err != nil { - h.log.Errorf("error sending ProxyLog message: %s", err) - } -} diff --git a/agent/pkg/handler/workload.go b/agent/pkg/handler/workload.go deleted file mode 100644 index 12b992d..0000000 --- a/agent/pkg/handler/workload.go +++ /dev/null @@ -1,276 +0,0 @@ -package handler - -import ( - "time" - - "github.com/buoyantio/linkerd-buoyant/agent/pkg/api" - "github.com/buoyantio/linkerd-buoyant/agent/pkg/k8s" - pb "github.com/buoyantio/linkerd-buoyant/gen/bcloud" - log "github.com/sirupsen/logrus" - "google.golang.org/protobuf/encoding/prototext" - "google.golang.org/protobuf/types/known/timestamppb" - appsv1 "k8s.io/api/apps/v1" - "k8s.io/client-go/informers" - "k8s.io/client-go/tools/cache" -) - -const ( - workloadsRefreshInterval = 10 * time.Minute -) - -// Workload listens to the k8s API for DaemonSet, Deployment, and StatefulSet -// changes, and forwards them to the Buoyant Cloud API. -type Workload struct { - log *log.Entry - api *api.Client - k8s *k8s.Client - stopCh chan struct{} -} - -// NewWorkload instantiates a new k8s workload handler. -func NewWorkload(k8sClient *k8s.Client, apiClient *api.Client) *Workload { - log := log.WithField("handler", "workload") - log.Debug("initializing") - - handler := &Workload{ - log: log, - api: apiClient, - k8s: k8sClient, - stopCh: make(chan struct{}), - } - - return handler -} - -// -// Workload -// - -// Start begins a polling loop, periodically resyncing all k8s objects with the -// Buoyant Cloud API. This syncing operation runs independently from the k8s -// handlers, but messages are syncronized via the WorkloadStream. -func (h *Workload) Start(sharedInformers informers.SharedInformerFactory) { - sharedInformers.Apps().V1().Deployments().Informer().AddEventHandler( - cache.ResourceEventHandlerFuncs{ - AddFunc: h.handleDeployAdd, - UpdateFunc: h.handleDeployUpdate, - DeleteFunc: h.handleDeployDelete, - }, - ) - sharedInformers.Apps().V1().DaemonSets().Informer().AddEventHandler( - cache.ResourceEventHandlerFuncs{ - AddFunc: h.handleDSAdd, - UpdateFunc: h.handleDSUpdate, - DeleteFunc: h.handleDSDelete, - }, - ) - sharedInformers.Apps().V1().StatefulSets().Informer().AddEventHandler( - cache.ResourceEventHandlerFuncs{ - AddFunc: h.handleSTSAdd, - UpdateFunc: h.handleSTSUpdate, - DeleteFunc: h.handleSTSDelete, - }, - ) - - ticker := time.NewTicker(workloadsRefreshInterval) - for { - select { - case <-ticker.C: - h.handleWorkloadList() - case <-h.stopCh: - return - } - } -} - -// Stop terminates the WorkloadStream resync loop. -func (h *Workload) Stop() { - h.log.Info("shutting down") - close(h.stopCh) -} - -// -// Deployments -// - -func (h *Workload) handleDeployAdd(obj interface{}) { - deploy := obj.(*appsv1.Deployment) - h.log.Debugf("adding Deployment %s/%s", deploy.Namespace, deploy.Name) - h.handleAdd(h.k8s.DeployToWorkload(deploy)) -} - -func (h *Workload) handleDeployUpdate(oldObj, newObj interface{}) { - oldDeploy := oldObj.(*appsv1.Deployment) - newDeploy := newObj.(*appsv1.Deployment) - h.log.Debugf("updating Deployment %s/%s", newDeploy.Namespace, newDeploy.Name) - h.handleUpdate(h.k8s.DeployToWorkload(oldDeploy), h.k8s.DeployToWorkload(newDeploy)) -} - -func (h *Workload) handleDeployDelete(obj interface{}) { - deploy, ok := obj.(*appsv1.Deployment) - if !ok { - tombstone, ok := obj.(cache.DeletedFinalStateUnknown) - if !ok { - h.log.Errorf("couldn't get object from tombstone %+v", obj) - return - } - deploy, ok = tombstone.Obj.(*appsv1.Deployment) - if !ok { - h.log.Errorf("tombstone contained object that is not a Deployment %+v", obj) - return - } - } - - h.log.Debugf("deleting Deployment %s/%s", deploy.Namespace, deploy.Name) - - h.handleDelete(h.k8s.DeployToWorkload(deploy)) -} - -// -// DaemonSets -// - -func (h *Workload) handleDSAdd(obj interface{}) { - ds := obj.(*appsv1.DaemonSet) - h.log.Debugf("adding DaemonSet %s/%s", ds.Namespace, ds.Name) - h.handleAdd(h.k8s.DSToWorkload(ds)) -} - -func (h *Workload) handleDSUpdate(oldObj, newObj interface{}) { - oldDS := oldObj.(*appsv1.DaemonSet) - newDS := newObj.(*appsv1.DaemonSet) - h.log.Debugf("updating DaemonSet %s/%s", newDS.Namespace, newDS.Name) - h.handleUpdate(h.k8s.DSToWorkload(oldDS), h.k8s.DSToWorkload(newDS)) -} - -func (h *Workload) handleDSDelete(obj interface{}) { - ds, ok := obj.(*appsv1.DaemonSet) - if !ok { - tombstone, ok := obj.(cache.DeletedFinalStateUnknown) - if !ok { - h.log.Errorf("couldn't get object from tombstone %+v", obj) - return - } - ds, ok = tombstone.Obj.(*appsv1.DaemonSet) - if !ok { - h.log.Errorf("tombstone contained object that is not a daemonset %+v", obj) - return - } - } - - h.log.Debugf("deleting DaemonSet %s/%s", ds.Namespace, ds.Name) - - h.handleDelete(h.k8s.DSToWorkload(ds)) -} - -// -// StatefulSets -// - -func (h *Workload) handleSTSAdd(obj interface{}) { - ds := obj.(*appsv1.StatefulSet) - h.log.Debugf("adding StatefulSet %s/%s", ds.Namespace, ds.Name) - h.handleAdd(h.k8s.STSToWorkload(ds)) -} - -func (h *Workload) handleSTSUpdate(oldObj, newObj interface{}) { - oldSTS := oldObj.(*appsv1.StatefulSet) - newSTS := newObj.(*appsv1.StatefulSet) - h.log.Debugf("updating StatefulSet %s/%s", newSTS.Namespace, newSTS.Name) - h.handleUpdate(h.k8s.STSToWorkload(oldSTS), h.k8s.STSToWorkload(newSTS)) -} - -func (h *Workload) handleSTSDelete(obj interface{}) { - sts, ok := obj.(*appsv1.StatefulSet) - if !ok { - tombstone, ok := obj.(cache.DeletedFinalStateUnknown) - if !ok { - h.log.Errorf("couldn't get object from tombstone %+v", obj) - return - } - sts, ok = tombstone.Obj.(*appsv1.StatefulSet) - if !ok { - h.log.Errorf("tombstone contained object that is not a StatefulSet %+v", obj) - return - } - } - - h.log.Debugf("deleting StatefulSet %s/%s", sts.Namespace, sts.Name) - - h.handleDelete(h.k8s.STSToWorkload(sts)) -} - -// -// Generic workload handlers -// - -func (h *Workload) handleAdd(workload *pb.Workload) { - m := &pb.WorkloadMessage{ - Message: &pb.WorkloadMessage_Added{ - Added: &pb.AddWorkload{Workload: workload}, - }, - } - h.log.Tracef("handleAdd: %s", prototext.Format(m)) - - err := h.api.SendWorkloadMessage(m) - if err != nil { - h.log.Errorf("error sending add message: %s", err) - } -} - -func (h *Workload) handleUpdate(oldWorkload *pb.Workload, newWorkload *pb.Workload) { - now := time.Now() - m := &pb.WorkloadMessage{ - Message: &pb.WorkloadMessage_Updated{ - Updated: &pb.UpdateWorkload{ - OldWorkload: oldWorkload, - NewWorkload: newWorkload, - Timestamp: ×tamppb.Timestamp{ - Seconds: now.Unix(), - Nanos: int32(now.Nanosecond()), - }, - }, - }, - } - h.log.Tracef("handleUpdate: %s", prototext.Format(m)) - - err := h.api.SendWorkloadMessage(m) - if err != nil { - h.log.Errorf("error sending update message: %s", err) - } -} - -func (h *Workload) handleDelete(workload *pb.Workload) { - m := &pb.WorkloadMessage{ - Message: &pb.WorkloadMessage_Deleted{ - Deleted: &pb.DeleteWorkload{Workload: workload}, - }, - } - - h.log.Tracef("handleDelete: %s", prototext.Format(m)) - - err := h.api.SendWorkloadMessage(m) - if err != nil { - h.log.Errorf("error sending delete message: %s", err) - } -} - -func (h *Workload) handleWorkloadList() { - workloads, err := h.k8s.ListWorkloads() - if err != nil { - h.log.Errorf("error listing all workloads: %s", err) - return - } - - m := &pb.WorkloadMessage{ - Message: &pb.WorkloadMessage_List{ - List: &pb.ListWorkloads{Workloads: workloads}, - }, - } - h.log.Tracef("handleWorkloadList: %s", prototext.Format(m)) - - err = h.api.SendWorkloadMessage(m) - if err != nil { - h.log.Errorf("error sending list message: %s", err) - } -} diff --git a/agent/pkg/handler/workload_test.go b/agent/pkg/handler/workload_test.go deleted file mode 100644 index dbc5892..0000000 --- a/agent/pkg/handler/workload_test.go +++ /dev/null @@ -1,321 +0,0 @@ -package handler - -import ( - "context" - "testing" - "time" - - "github.com/buoyantio/linkerd-buoyant/agent/pkg/api" - "github.com/buoyantio/linkerd-buoyant/agent/pkg/k8s" - l5dk8s "github.com/linkerd/linkerd2/pkg/k8s" - appsv1 "k8s.io/api/apps/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "k8s.io/apimachinery/pkg/runtime" - "k8s.io/client-go/informers" - "k8s.io/client-go/kubernetes/fake" -) - -func TestWorkloadStream(t *testing.T) { - workloadName := "fake-workload" - workloadNS := "fake-ns" - - ds1 := &appsv1.DaemonSet{ - ObjectMeta: metav1.ObjectMeta{ - Name: workloadName + "-1", - Namespace: workloadNS + "-1", - }, - Spec: appsv1.DaemonSetSpec{ - Selector: &metav1.LabelSelector{}, - }, - } - ds2 := &appsv1.DaemonSet{ - ObjectMeta: metav1.ObjectMeta{ - Name: workloadName + "-2", - Namespace: workloadNS + "-2", - }, - Spec: appsv1.DaemonSetSpec{ - Selector: &metav1.LabelSelector{}, - }, - } - deploy1 := &appsv1.Deployment{ - ObjectMeta: metav1.ObjectMeta{ - Name: workloadName + "-1", - Namespace: workloadNS + "-1", - }, - Spec: appsv1.DeploymentSpec{ - Selector: &metav1.LabelSelector{}, - }, - } - deploy2 := &appsv1.Deployment{ - ObjectMeta: metav1.ObjectMeta{ - Name: workloadName + "-2", - Namespace: workloadNS + "-2", - }, - Spec: appsv1.DeploymentSpec{ - Selector: &metav1.LabelSelector{}, - }, - } - sts1 := &appsv1.StatefulSet{ - ObjectMeta: metav1.ObjectMeta{ - Name: workloadName + "-1", - Namespace: workloadNS + "-1", - }, - Spec: appsv1.StatefulSetSpec{ - Selector: &metav1.LabelSelector{}, - }, - } - sts2 := &appsv1.StatefulSet{ - ObjectMeta: metav1.ObjectMeta{ - Name: workloadName + "-2", - Namespace: workloadNS + "-2", - }, - Spec: appsv1.StatefulSetSpec{ - Selector: &metav1.LabelSelector{}, - }, - } - - fixtures := []*struct { - testName string - existingWorkloads map[string][]runtime.Object - createWorkloads map[string][]runtime.Object - updateWorkloads map[string][]runtime.Object - deleteWorkloads map[string][]runtime.Object - expMessages int - }{ - { - "no workloads", - nil, - nil, - nil, - nil, - 0, - }, - { - "three existing workloads", - map[string][]runtime.Object{ - k8s.DaemonSet: {ds1}, - k8s.Deployment: {deploy1}, - k8s.StatefulSet: {sts1}, - }, - nil, - nil, - nil, - 3, - }, - { - "three create workloads", - nil, - map[string][]runtime.Object{ - k8s.DaemonSet: {ds1}, - k8s.Deployment: {deploy1}, - k8s.StatefulSet: {sts1}, - }, - nil, - nil, - 3, - }, - { - "three existing and three create workloads", - map[string][]runtime.Object{ - k8s.DaemonSet: {ds1}, - k8s.Deployment: {deploy1}, - k8s.StatefulSet: {sts1}, - }, - map[string][]runtime.Object{ - k8s.DaemonSet: {ds2}, - k8s.Deployment: {deploy2}, - k8s.StatefulSet: {sts2}, - }, - nil, - nil, - 6, - }, - { - "three existing and three update workloads", - map[string][]runtime.Object{ - k8s.DaemonSet: {ds1}, - k8s.Deployment: {deploy1}, - k8s.StatefulSet: {sts1}, - }, - nil, - map[string][]runtime.Object{ - k8s.DaemonSet: {ds1}, - k8s.Deployment: {deploy1}, - k8s.StatefulSet: {sts1}, - }, - nil, - 6, - }, - { - "three existing and three delete workloads", - map[string][]runtime.Object{ - k8s.DaemonSet: {ds1}, - k8s.Deployment: {deploy1}, - k8s.StatefulSet: {sts1}, - }, - nil, - nil, - map[string][]runtime.Object{ - k8s.DaemonSet: {ds1}, - k8s.Deployment: {deploy1}, - k8s.StatefulSet: {sts1}, - }, - 6, - }, - } - - for _, tc := range fixtures { - tc := tc - t.Run(tc.testName, func(t *testing.T) { - objs := []runtime.Object{} - for _, wrks := range tc.existingWorkloads { - objs = append(objs, wrks...) - } - cs := fake.NewSimpleClientset(objs...) - sharedInformers := informers.NewSharedInformerFactory(cs, 10*time.Minute) - k8sApi := &l5dk8s.KubernetesAPI{ - Interface: cs, - } - k8sClient := k8s.NewClient(sharedInformers, k8sApi, nil, nil, false) - - m := &api.MockBcloudClient{} - apiClient := api.NewClient(m) - - wh := NewWorkload(k8sClient, apiClient) - if len(m.Messages()) != 0 { - t.Errorf("Expected no messages sent, got %d", len(m.Messages())) - } - go wh.Start(sharedInformers) - err := k8sClient.Sync(nil, time.Second) - if err != nil { - t.Error(err) - } - - for k, objs := range tc.createWorkloads { - for _, o := range objs { - switch k { - case k8s.DaemonSet: - ds, ok := o.(*appsv1.DaemonSet) - if !ok { - t.Errorf("failed type assertion to appsv1.DaemonSet: %+v", o) - } - - _, err = cs.AppsV1().DaemonSets(ds.Namespace).Create(context.TODO(), ds, metav1.CreateOptions{}) - if err != nil { - t.Errorf("Error injecting appsv1.DaemonSet: %v", err) - } - case k8s.Deployment: - deploy, ok := o.(*appsv1.Deployment) - if !ok { - t.Errorf("failed type assertion to appsv1.Deployment: %+v", o) - } - - _, err = cs.AppsV1().Deployments(deploy.Namespace).Create(context.TODO(), deploy, metav1.CreateOptions{}) - if err != nil { - t.Errorf("Error injecting appsv1.Deployment: %v", err) - } - case k8s.StatefulSet: - sts, ok := o.(*appsv1.StatefulSet) - if !ok { - t.Errorf("failed type assertion to appsv1.StatefulSet: %+v", o) - } - - _, err = cs.AppsV1().StatefulSets(sts.Namespace).Create(context.TODO(), sts, metav1.CreateOptions{}) - if err != nil { - t.Errorf("Error injecting appsv1.StatefulSet: %v", err) - } - } - } - } - - for k, objs := range tc.updateWorkloads { - for _, o := range objs { - switch k { - case k8s.DaemonSet: - ds, ok := o.(*appsv1.DaemonSet) - if !ok { - t.Errorf("failed type assertion to appsv1.DaemonSet: %+v", o) - } - - _, err = cs.AppsV1().DaemonSets(ds.Namespace).Update(context.TODO(), ds, metav1.UpdateOptions{}) - if err != nil { - t.Errorf("Error injecting appsv1.DaemonSet: %v", err) - } - case k8s.Deployment: - deploy, ok := o.(*appsv1.Deployment) - if !ok { - t.Errorf("failed type assertion to appsv1.Deployment: %+v", o) - } - - _, err = cs.AppsV1().Deployments(deploy.Namespace).Update(context.TODO(), deploy, metav1.UpdateOptions{}) - if err != nil { - t.Errorf("Error injecting appsv1.Deployment: %v", err) - } - case k8s.StatefulSet: - sts, ok := o.(*appsv1.StatefulSet) - if !ok { - t.Errorf("failed type assertion to appsv1.StatefulSet: %+v", o) - } - - _, err = cs.AppsV1().StatefulSets(sts.Namespace).Update(context.TODO(), sts, metav1.UpdateOptions{}) - if err != nil { - t.Errorf("Error injecting appsv1.StatefulSet: %v", err) - } - } - } - } - - for k, objs := range tc.deleteWorkloads { - for _, o := range objs { - switch k { - case k8s.DaemonSet: - ds, ok := o.(*appsv1.DaemonSet) - if !ok { - t.Errorf("failed type assertion to appsv1.DaemonSet: %+v", o) - } - - err = cs.AppsV1().DaemonSets(ds.Namespace).Delete(context.TODO(), ds.GetName(), metav1.DeleteOptions{}) - if err != nil { - t.Errorf("Error injecting appsv1.DaemonSet: %v", err) - } - case k8s.Deployment: - deploy, ok := o.(*appsv1.Deployment) - if !ok { - t.Errorf("failed type assertion to appsv1.Deployment: %+v", o) - } - - err = cs.AppsV1().Deployments(deploy.Namespace).Delete(context.TODO(), deploy.GetName(), metav1.DeleteOptions{}) - if err != nil { - t.Errorf("Error injecting appsv1.Deployment: %v", err) - } - case k8s.StatefulSet: - sts, ok := o.(*appsv1.StatefulSet) - if !ok { - t.Errorf("failed type assertion to appsv1.StatefulSet: %+v", o) - } - - err = cs.AppsV1().StatefulSets(sts.Namespace).Delete(context.TODO(), sts.GetName(), metav1.DeleteOptions{}) - if err != nil { - t.Errorf("Error injecting appsv1.StatefulSet: %v", err) - } - } - } - } - - ctx, cancel := context.WithTimeout(context.Background(), time.Second) - defer cancel() - for { - if len(m.Messages()) == tc.expMessages { - break - } - - select { - case <-time.After(10 * time.Millisecond): - case <-ctx.Done(): - t.Errorf("Expected %d messages(s) sent to API, got %d", tc.expMessages, len(m.Messages())) - return - } - } - }) - } -} diff --git a/agent/pkg/k8s/certificates.go b/agent/pkg/k8s/certificates.go deleted file mode 100644 index abb29c9..0000000 --- a/agent/pkg/k8s/certificates.go +++ /dev/null @@ -1,218 +0,0 @@ -package k8s - -import ( - "context" - "crypto/tls" - "fmt" - "net" - "strings" - "time" - - pb "github.com/buoyantio/linkerd-buoyant/gen/bcloud" - "github.com/linkerd/linkerd2/pkg/identity" - l5dk8s "github.com/linkerd/linkerd2/pkg/k8s" - ldTls "github.com/linkerd/linkerd2/pkg/tls" - v1 "k8s.io/api/core/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "k8s.io/apimachinery/pkg/labels" -) - -const ( - identityComponentName = "identity" - linkerdNsEnvVarName = "_l5d_ns" - linkerdTrustDomainEnvVarName = "_l5d_trustdomain" - linkerdProxyIdentityEnvVarName = "LINKERD2_PROXY_IDENTITY_LOCAL_NAME" - trustRootsConfigMapName = "linkerd-identity-trust-roots" - trustRootsConfigMapKeyName = "ca-bundle.crt" -) - -func (c *Client) GetControlPlaneCerts(ctx context.Context) (*pb.ControlPlaneCerts, error) { - identityPod, err := c.getControlPlaneComponentPod(identityComponentName) - if err != nil { - return nil, err - } - - container, err := getProxyContainer(identityPod) - if err != nil { - return nil, err - } - - rootCerts, err := c.extractRootsCerts(ctx, container, identityPod.Namespace) - if err != nil { - return nil, err - } - - issuerCerts, err := c.extractIssuerCertChain(identityPod, container) - if err != nil { - return nil, err - } - - cpCerts := &pb.ControlPlaneCerts{ - IssuerCrtChain: issuerCerts, - Roots: rootCerts, - } - - return cpCerts, nil -} - -func (c *Client) getControlPlaneComponentPod(component string) (*v1.Pod, error) { - selector := labels.Set(map[string]string{ - l5dk8s.ControllerComponentLabel: component, - }).AsSelector() - - pods, err := c.podLister.List(selector) - if err != nil { - c.log.Errorf("error listing pod: %s", err) - return nil, err - } - - if len(pods) == 0 { - return nil, fmt.Errorf("could not find linkerd-%s pod", component) - } - - for _, p := range pods { - if p.Status.Phase == v1.PodRunning { - return p, nil - } - } - - return nil, fmt.Errorf("could not find running pod for linkerd-%s", component) -} - -func getServerName(podsa string, podns string, container *v1.Container) (string, error) { - var l5dns string - var l5dtrustdomain string - var localName string - - for _, env := range container.Env { - if env.Name == linkerdNsEnvVarName { - l5dns = env.Value - } - if env.Name == linkerdTrustDomainEnvVarName { - l5dtrustdomain = env.Value - } - - if env.Name == linkerdProxyIdentityEnvVarName { - localName = env.Value - } - } - - if l5dns == "" && l5dtrustdomain == "" { - // on newer versions of Linkerd these are not set and the shape of the - // LINKERD2_PROXY_IDENTITY_LOCAL_NAME is different: - // - // edge-21.12.2 - // _l5d_ns: linkerd - // _l5d_trustdomain: cluster.local - // LINKERD2_PROXY_IDENTITY_LOCAL_NAME: $(_pod_sa).$(_pod_ns).serviceaccount.identity.$(_l5d_ns).$(_l5d_trustdomain) - // - // edge-21.12.3 - // LINKERD2_PROXY_IDENTITY_LOCAL_NAME: $(_pod_sa).$(_pod_ns).serviceaccount.identity.linkerd.cluster.local - if localName == "" { - return "", fmt.Errorf("could not find %s env var on proxy container [%s]", linkerdProxyIdentityEnvVarName, container.Name) - } - - withSa := strings.Replace(localName, "$(_pod_sa)", podsa, 1) - withNs := strings.Replace(withSa, "$(_pod_ns)", podns, 1) - - return withNs, nil - } - - if l5dns == "" { - return "", fmt.Errorf("could not find %s env var on proxy container [%s]", linkerdNsEnvVarName, container.Name) - } - - if l5dtrustdomain == "" { - return "", fmt.Errorf("could not find %s env var on proxy container [%s]", linkerdTrustDomainEnvVarName, container.Name) - } - - return fmt.Sprintf("%s.%s.serviceaccount.identity.%s.%s", podsa, podns, l5dns, l5dtrustdomain), nil -} - -func (c *Client) extractRootsCerts(ctx context.Context, container *v1.Container, namespace string) ([]*pb.CertData, error) { - for _, ev := range container.Env { - if ev.Name != identity.EnvTrustAnchors { - continue - } - - rootsValue := ev.Value - if rootsValue == "" { - // in this case we need to check for a reference to a config map - if ev.ValueFrom == nil || ev.ValueFrom.ConfigMapKeyRef == nil { - return nil, fmt.Errorf("neither a Value nor a ConfigMapKeyRef for the %s env var are present on proxy container [%s]", identity.EnvTrustAnchors, container.Name) - } - cmName := ev.ValueFrom.ConfigMapKeyRef.Name - cm, err := c.k8sClient.CoreV1().ConfigMaps(namespace).Get(ctx, cmName, metav1.GetOptions{}) - if err != nil { - return nil, fmt.Errorf("cannot obtain config map %s/%s: %w", namespace, cmName, err) - } - - var ok bool - rootsValue, ok = cm.Data[trustRootsConfigMapKeyName] - if !ok { - return nil, fmt.Errorf("config map %s/%s does not have %s key", namespace, cmName, trustRootsConfigMapKeyName) - } - } - - certificates, err := ldTls.DecodePEMCertificates(rootsValue) - if err != nil { - return nil, err - } - - certsData := make([]*pb.CertData, len(certificates)) - for i, crt := range certificates { - encoded := ldTls.EncodeCertificatesPEM(crt) - certsData[i] = &pb.CertData{Raw: []byte(encoded)} - } - - return certsData, nil - } - - return nil, fmt.Errorf("could not find env var with name %s on proxy container [%s]", identity.EnvTrustAnchors, container.Name) -} - -func (c *Client) extractIssuerCertChain(pod *v1.Pod, container *v1.Container) ([]*pb.CertData, error) { - sn, err := getServerName(pod.Spec.ServiceAccountName, pod.ObjectMeta.Namespace, container) - if err != nil { - return nil, err - } - - proxyConnection, err := c.getContainerConnection(pod, container, l5dk8s.ProxyAdminPortName) - if err != nil { - return nil, err - } - defer proxyConnection.cleanup() - - conn, err := tls.DialWithDialer( - &net.Dialer{Timeout: 5 * time.Second}, - "tcp", - proxyConnection.host, - &tls.Config{ - // we want to subvert TLS verification as we do not need - // to verify that we actually trust these certs. We just - // want the certificates and are not sending any data here. - // Therefore `InsecureSkipVerify` is just fine. An added - // benefit is that we save on some CPU cycles that would be - // wasted doing TLS cert verification - InsecureSkipVerify: true, - ServerName: sn, - }) - if err != nil { - return nil, err - } - - // skip the end cert - certs := conn.ConnectionState().PeerCertificates - if len(certs) < 2 { - return nil, fmt.Errorf("expected to get at least 2 peer certs, got %d", len(certs)) - } - - certificates := certs[1:] - certsData := make([]*pb.CertData, len(certificates)) - for i, crt := range certificates { - encoded := ldTls.EncodeCertificatesPEM(crt) - certsData[i] = &pb.CertData{Raw: []byte(encoded)} - } - - return certsData, nil -} diff --git a/agent/pkg/k8s/certificates_test.go b/agent/pkg/k8s/certificates_test.go deleted file mode 100644 index 8082f01..0000000 --- a/agent/pkg/k8s/certificates_test.go +++ /dev/null @@ -1,491 +0,0 @@ -package k8s - -import ( - "context" - "crypto/x509" - "errors" - "fmt" - "testing" - "time" - - "github.com/linkerd/linkerd2/pkg/identity" - l5dk8s "github.com/linkerd/linkerd2/pkg/k8s" - ldTls "github.com/linkerd/linkerd2/pkg/tls" - v1 "k8s.io/api/core/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "k8s.io/apimachinery/pkg/runtime" -) - -func TestFindIdentityPod(t *testing.T) { - fixtures := []*struct { - testName string - pods []runtime.Object - expectedErr error - }{ - { - "can find identity pod", - []runtime.Object{ - &v1.Pod{ - ObjectMeta: metav1.ObjectMeta{ - Name: "linkerd-identity", - Namespace: "linkerd", - Labels: map[string]string{ - l5dk8s.ControllerComponentLabel: identityComponentName, - }, - }, - Status: v1.PodStatus{ - Phase: v1.PodRunning, - }, - }, - &v1.Pod{ - ObjectMeta: metav1.ObjectMeta{ - Name: "linkerd-destination", - Namespace: "linkerd", - }, - }, - }, - nil, - }, - { - "cannot find a running identitiy pod", - []runtime.Object{ - &v1.Pod{ - ObjectMeta: metav1.ObjectMeta{ - Name: "linkerd-identity", - Namespace: "linkerd", - Labels: map[string]string{ - l5dk8s.ControllerComponentLabel: identityComponentName, - }, - }, - Status: v1.PodStatus{ - Phase: v1.PodPending, - }, - }, - &v1.Pod{ - ObjectMeta: metav1.ObjectMeta{ - Name: "linkerd-destination", - Namespace: "linkerd", - }, - }, - }, - errors.New("could not find running pod for linkerd-identity"), - }, - { - "cannot find a running identitiy pod", - []runtime.Object{ - &v1.Pod{ - ObjectMeta: metav1.ObjectMeta{ - Name: "linkerd-destination", - Namespace: "linkerd", - }, - }, - }, - errors.New("could not find linkerd-identity pod"), - }, - } - - for _, tc := range fixtures { - tc := tc - t.Run(tc.testName, func(t *testing.T) { - c := fakeClient(tc.pods...) - c.Sync(nil, time.Second) - client := NewClient(c.sharedInformers, nil, nil, nil, false) - - pod, err := client.getControlPlaneComponentPod(identityComponentName) - if tc.expectedErr != nil { - if tc.expectedErr.Error() != err.Error() { - t.Fatalf("exepected err %s, got %s", tc.expectedErr, err) - } - } else { - if pod.Name != "linkerd-identity" { - t.Fatalf("exepected pod with name linkerd-identity, got %s", pod.Name) - } - } - }) - } -} - -func TestGetProxyContainer(t *testing.T) { - fixtures := []*struct { - testName string - pod *v1.Pod - expectedErr error - }{ - { - "meshed pod", - &v1.Pod{ - ObjectMeta: metav1.ObjectMeta{ - Name: "linkerd-identity", - Namespace: "linkerd", - }, - Spec: v1.PodSpec{ - Containers: []v1.Container{ - { - Name: l5dk8s.ProxyContainerName, - }, - { - Name: "some-other-container", - }, - }, - }, - }, - nil, - }, - { - "unmeshed pod", - &v1.Pod{ - ObjectMeta: metav1.ObjectMeta{ - Name: "linkerd-identity", - Namespace: "linkerd", - }, - Spec: v1.PodSpec{ - Containers: []v1.Container{ - { - Name: "some-other-container", - }, - }, - }, - }, - errors.New("could not find proxy container in pod linkerd/linkerd-identity"), - }, - } - - for _, tc := range fixtures { - tc := tc - t.Run(tc.testName, func(t *testing.T) { - container, err := getProxyContainer(tc.pod) - if tc.expectedErr != nil { - if tc.expectedErr.Error() != err.Error() { - t.Fatalf("exepected err %s, got %s", tc.expectedErr, err) - } - } else { - if container.Name != l5dk8s.ProxyContainerName { - t.Fatalf("exepected container with name %s, got %s", l5dk8s.ProxyContainerName, container.Name) - } - } - }) - } -} - -func TestGetAdminPort(t *testing.T) { - fixtures := []*struct { - testName string - container *v1.Container - expectedPort int32 - expectedErr error - }{ - { - "container with admin port", - &v1.Container{ - Name: l5dk8s.ProxyContainerName, - Ports: []v1.ContainerPort{ - { - Name: l5dk8s.ProxyAdminPortName, - ContainerPort: 555, - }, - { - Name: "another port", - ContainerPort: 444, - }, - }, - }, - 555, - nil, - }, - { - "container without admin port", - &v1.Container{ - Name: l5dk8s.ProxyContainerName, - Ports: []v1.ContainerPort{ - { - Name: "another port", - ContainerPort: 444, - }, - }, - }, - 0, - fmt.Errorf("could not find port linkerd-admin on container [linkerd-proxy]"), - }, - } - - for _, tc := range fixtures { - tc := tc - t.Run(tc.testName, func(t *testing.T) { - port, err := getContainerPort(tc.container, l5dk8s.ProxyAdminPortName) - if tc.expectedErr != nil { - if tc.expectedErr.Error() != err.Error() { - t.Fatalf("exepected err %s, got %s", tc.expectedErr, err) - } - } else { - if port != tc.expectedPort { - t.Fatalf("exepected port %d, got %d", tc.expectedPort, port) - } - } - }) - } -} - -func TestGetServerName(t *testing.T) { - podSa := "some-sa" - podNs := "some-ns" - - fixtures := []*struct { - testName string - container *v1.Container - expectedName string - expectedErr error - }{ - { - "gets correct name (_l5d_ns and _l5d_trustdomain env vars)", - &v1.Container{ - Name: l5dk8s.ProxyContainerName, - Env: []v1.EnvVar{ - { - Name: linkerdNsEnvVarName, - Value: "linkerd", - }, - { - Name: linkerdTrustDomainEnvVarName, - Value: "cluster.local", - }, - }, - }, - fmt.Sprintf("%s.%s.serviceaccount.identity.linkerd.cluster.local", podSa, podNs), - nil, - }, - { - "gets correct name (LINKERD2_PROXY_IDENTITY_LOCAL_NAME env var)", - &v1.Container{ - Name: l5dk8s.ProxyContainerName, - Env: []v1.EnvVar{ - { - Name: linkerdProxyIdentityEnvVarName, - Value: "$(_pod_sa).$(_pod_ns).serviceaccount.identity.linkerd.cluster.local", - }, - }, - }, - fmt.Sprintf("%s.%s.serviceaccount.identity.linkerd.cluster.local", podSa, podNs), - nil, - }, - { - "no env vars", - &v1.Container{ - Name: l5dk8s.ProxyContainerName, - Env: []v1.EnvVar{ - {}, - }, - }, - "", - fmt.Errorf("could not find %s env var on proxy container [%s]", linkerdProxyIdentityEnvVarName, l5dk8s.ProxyContainerName), - }, - { - "missing ns env var", - &v1.Container{ - Name: l5dk8s.ProxyContainerName, - Env: []v1.EnvVar{ - { - Name: linkerdTrustDomainEnvVarName, - Value: "cluster.local", - }, - }, - }, - "", - fmt.Errorf("could not find %s env var on proxy container [%s]", linkerdNsEnvVarName, l5dk8s.ProxyContainerName), - }, - { - "missing trust domain env var", - &v1.Container{ - Name: l5dk8s.ProxyContainerName, - Env: []v1.EnvVar{ - { - Name: linkerdNsEnvVarName, - Value: "linkerd", - }, - }, - }, - "", - fmt.Errorf("could not find %s env var on proxy container [%s]", linkerdTrustDomainEnvVarName, l5dk8s.ProxyContainerName), - }, - } - - for _, tc := range fixtures { - tc := tc - t.Run(tc.testName, func(t *testing.T) { - name, err := getServerName(podSa, podNs, tc.container) - if tc.expectedErr != nil { - if tc.expectedErr.Error() != err.Error() { - t.Fatalf("exepected err %s, got %s", tc.expectedErr, err) - } - } else { - if name != tc.expectedName { - t.Fatalf("exepected name %s, got %s", tc.expectedName, name) - } - } - }) - } -} - -func TestExtractRootCerts(t *testing.T) { - expectedRoots := `-----BEGIN CERTIFICATE----- -MIIBwDCCAWegAwIBAgIRAJRIgZ8RtO8Ewg1Xepf8T44wCgYIKoZIzj0EAwIwKTEn -MCUGA1UEAxMeaWRlbnRpdHkubGlua2VyZC5jbHVzdGVyLmxvY2FsMB4XDTIwMDgy -ODA3MTM0N1oXDTMwMDgyNjA3MTM0N1owKTEnMCUGA1UEAxMeaWRlbnRpdHkubGlu -a2VyZC5jbHVzdGVyLmxvY2FsMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE1/Fp -fcRnDcedL6AjUaXYPv4DIMBaJufOI5NWty+XSX7JjXgZtM72dQvRaYanuxD36Dt1 -2/JxyiSgxKWRdoay+aNwMG4wDgYDVR0PAQH/BAQDAgEGMBIGA1UdEwEB/wQIMAYB -Af8CAQAwHQYDVR0OBBYEFI1WnrqMYKaHHOo+zpyiiDq2pO0KMCkGA1UdEQQiMCCC -HmlkZW50aXR5LmxpbmtlcmQuY2x1c3Rlci5sb2NhbDAKBggqhkjOPQQDAgNHADBE -AiAtuoI5XuCtrGVRzSmRTl2ra28aV9MyTU7d5qnTAFHKSgIgRKCvluOSgA5O21p5 -51tdrmkHEZRr0qlLSJdHYgEfMzk= ------END CERTIFICATE----- -` - - fixtures := []*struct { - testName string - container *v1.Container - crtConfigMap *v1.ConfigMap - expectedCerts string - expectedErr error - }{ - { - "gets correct cert from env value", - &v1.Container{ - Name: l5dk8s.ProxyContainerName, - Env: []v1.EnvVar{ - { - Name: identity.EnvTrustAnchors, - Value: expectedRoots, - }, - }, - }, - nil, - expectedRoots, - nil, - }, - { - "gets correct cert from config map", - &v1.Container{ - Name: l5dk8s.ProxyContainerName, - Env: []v1.EnvVar{ - { - Name: identity.EnvTrustAnchors, - ValueFrom: &v1.EnvVarSource{ - ConfigMapKeyRef: &v1.ConfigMapKeySelector{ - LocalObjectReference: v1.LocalObjectReference{ - Name: trustRootsConfigMapName, - }, - Key: trustRootsConfigMapKeyName, - }, - }, - }, - }, - }, - &v1.ConfigMap{ - ObjectMeta: metav1.ObjectMeta{ - Name: trustRootsConfigMapName, - Namespace: "linkerd", - }, - Data: map[string]string{ - trustRootsConfigMapKeyName: expectedRoots, - }, - }, - expectedRoots, - nil, - }, - { - "errors when config map not present", - &v1.Container{ - Name: l5dk8s.ProxyContainerName, - Env: []v1.EnvVar{ - { - Name: identity.EnvTrustAnchors, - ValueFrom: &v1.EnvVarSource{ - ConfigMapKeyRef: &v1.ConfigMapKeySelector{ - LocalObjectReference: v1.LocalObjectReference{ - Name: trustRootsConfigMapName, - }, - Key: trustRootsConfigMapKeyName, - }, - }, - }, - }, - }, - nil, - expectedRoots, - fmt.Errorf("cannot obtain config map linkerd/%s: configmaps \"%s\" not found", trustRootsConfigMapName, trustRootsConfigMapName), - }, - { - "errors when config map key not present", - &v1.Container{ - Name: l5dk8s.ProxyContainerName, - Env: []v1.EnvVar{ - { - Name: identity.EnvTrustAnchors, - ValueFrom: &v1.EnvVarSource{ - ConfigMapKeyRef: &v1.ConfigMapKeySelector{ - LocalObjectReference: v1.LocalObjectReference{ - Name: trustRootsConfigMapName, - }, - Key: trustRootsConfigMapKeyName, - }, - }, - }, - }, - }, - &v1.ConfigMap{ - ObjectMeta: metav1.ObjectMeta{ - Name: trustRootsConfigMapName, - Namespace: "linkerd", - }, - Data: map[string]string{ - "nonsense.key": expectedRoots, - }, - }, - expectedRoots, - fmt.Errorf("config map linkerd/%s does not have %s key", trustRootsConfigMapName, trustRootsConfigMapKeyName), - }, - { - "no roots env var", - &v1.Container{ - Name: l5dk8s.ProxyContainerName, - Env: []v1.EnvVar{}, - }, - nil, - "", - fmt.Errorf("could not find env var with name %s on proxy container [linkerd-proxy]", identity.EnvTrustAnchors), - }, - } - - for _, tc := range fixtures { - tc := tc - t.Run(tc.testName, func(t *testing.T) { - c := fakeClient() - if tc.crtConfigMap != nil { - c = fakeClient(tc.crtConfigMap) - } - - c.Sync(nil, time.Second) - client := NewClient(c.sharedInformers, c.k8sClient, nil, nil, false) - - roots, err := client.extractRootsCerts(context.Background(), tc.container, "linkerd") - if tc.expectedErr != nil { - if tc.expectedErr.Error() != err.Error() { - t.Fatalf("exepected err %s, got %s", tc.expectedErr, err) - } - } else { - certificates := make([]*x509.Certificate, len(roots)) - for i, c := range roots { - decoded, err := ldTls.DecodePEMCertificates(string(c.Raw)) - if err != nil { - t.Fatal(err) - } - certificates[i] = decoded[0] - } - rootString := ldTls.EncodeCertificatesPEM(certificates...) - if rootString != tc.expectedCerts { - t.Fatalf("exepected roots %s, got %s", tc.expectedCerts, rootString) - } - } - }) - } -} diff --git a/agent/pkg/k8s/diagnostics.go b/agent/pkg/k8s/diagnostics.go deleted file mode 100644 index 137d21a..0000000 --- a/agent/pkg/k8s/diagnostics.go +++ /dev/null @@ -1,131 +0,0 @@ -package k8s - -import ( - "bytes" - "context" - "fmt" - "io" - "io/ioutil" - "net/http" - "time" - - pb "github.com/buoyantio/linkerd-buoyant/gen/bcloud" - l5dk8s "github.com/linkerd/linkerd2/pkg/k8s" - v1 "k8s.io/api/core/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -const linkerdNamespace = "linkerd" -const k8sServiceName = "kubernetes" - -// GetProxyLogs retrieves the proxy logs of a pod -func (c *Client) GetProxyLogs(ctx context.Context, podName, namespace string, includeTimestamps bool, tailLines *int64) ([]byte, error) { - podLogOptions := &v1.PodLogOptions{Container: l5dk8s.ProxyContainerName, Timestamps: includeTimestamps, TailLines: tailLines} - req := c.k8sClient.CoreV1().Pods(namespace).GetLogs(podName, podLogOptions) - logs, err := req.Stream(ctx) - if err != nil { - return nil, err - } - defer logs.Close() - - buf := new(bytes.Buffer) - _, err = io.Copy(buf, logs) - if err != nil { - return nil, err - } - return buf.Bytes(), nil -} - -// GetPrometheusScrape retrieves the raw prom scrape from the proxy of a pod -func (c *Client) GetPrometheusScrape(ctx context.Context, podName, namespace string) ([][]byte, error) { - // first get the pod - pod, err := c.k8sClient.CoreV1().Pods(namespace).Get(ctx, podName, metav1.GetOptions{}) - if err != nil { - return nil, err - } - - if pod.Status.Phase != v1.PodRunning { - return nil, fmt.Errorf("pod not running: %s/%s", namespace, podName) - } - - if pod.Status.PodIP == "" { - return nil, fmt.Errorf("pod IP not allocated: %s/%s", namespace, podName) - } - - proxyContainer, err := getProxyContainer(pod) - if err != nil { - return nil, err - } - - proxyConnection, err := c.getContainerConnection(pod, proxyContainer, l5dk8s.ProxyAdminPortName) - if err != nil { - return nil, err - } - defer proxyConnection.cleanup() - - metricsUrl := fmt.Sprintf("http://%s/metrics", proxyConnection.host) - data := [][]byte{} - for { - resp, err := http.Get(metricsUrl) - if err != nil { - return nil, err - } - - sample, err := ioutil.ReadAll(resp.Body) - if err != nil { - return nil, err - } - resp.Body.Close() - data = append(data, sample) - if len(data) == 6 { - break - } - time.Sleep(time.Second * 10) - } - - return data, nil -} - -// GetPodSpec retrieves pod manifest -func (c *Client) GetPodSpec(ctx context.Context, podName, namespace string) (*pb.Pod, error) { - pod, err := c.k8sClient.CoreV1().Pods(namespace).Get(ctx, podName, metav1.GetOptions{}) - if err != nil { - return nil, err - } - - return &pb.Pod{Pod: c.serialize(pod, v1.SchemeGroupVersion)}, nil -} - -// GetLinkerdConfigMap retrieves Linkerd config map -func (c *Client) GetLinkerdConfigMap(ctx context.Context) (*pb.ConfigMap, error) { - cm, err := c.k8sClient.CoreV1().ConfigMaps(linkerdNamespace).Get(ctx, l5dk8s.ConfigConfigMapName, metav1.GetOptions{}) - if err != nil { - return nil, err - } - - return &pb.ConfigMap{ConfigMap: c.serialize(cm, v1.SchemeGroupVersion)}, nil -} - -// GetNodeManifests retrieves all nodes in the cluster -func (c *Client) GetNodeManifests(ctx context.Context) ([]*pb.Node, error) { - nodes, err := c.k8sClient.CoreV1().Nodes().List(ctx, metav1.ListOptions{}) - if err != nil { - return nil, err - } - - data := make([]*pb.Node, len(nodes.Items)) - for i, node := range nodes.Items { - data[i] = &pb.Node{Node: c.serialize(&node, v1.SchemeGroupVersion)} - } - - return data, nil -} - -// GetK8sServiceManifest the manifest of the kubernetes service residing in the default namespace -func (c *Client) GetK8sServiceManifest(ctx context.Context) (*pb.Service, error) { - svc, err := c.k8sClient.CoreV1().Services(v1.NamespaceDefault).Get(ctx, k8sServiceName, metav1.GetOptions{}) - if err != nil { - return nil, err - } - return &pb.Service{Service: c.serialize(svc, v1.SchemeGroupVersion)}, nil -} diff --git a/agent/pkg/k8s/event.go b/agent/pkg/k8s/event.go deleted file mode 100644 index b448c8d..0000000 --- a/agent/pkg/k8s/event.go +++ /dev/null @@ -1,127 +0,0 @@ -package k8s - -import ( - "fmt" - - pb "github.com/buoyantio/linkerd-buoyant/gen/bcloud" - v1 "k8s.io/api/core/v1" -) - -// EventToPB converts a Kubernetes event to a bcloud protobuf event. If the -// owner of the event is not a DeamonSet, Deployment, or StatefulSet, return a -// nil event without error. -func (c *Client) EventToPB(event *v1.Event) (*pb.Event, error) { - involvedObj := event.InvolvedObject - name := involvedObj.Name - kind := involvedObj.Kind - - switch involvedObj.Kind { - case ReplicaSet: - var err error - name, err = c.rsToDeploy(involvedObj.Name, involvedObj.Namespace) - if err != nil { - c.log.Debugf("Failed to get owner for ReplicaSet event [%s/%s]: %s", involvedObj.Namespace, involvedObj.Name, err) - return nil, err - } - kind = Deployment - case Pod: - var err error - name, kind, err = c.podToWorkload(involvedObj.Name, involvedObj.Namespace) - if err != nil { - c.log.Debugf("Failed to get owner for Pod event [%s/%s]: %s", involvedObj.Namespace, involvedObj.Name, err) - return nil, err - } - } - - if !isValidWorkloadKind(kind) { - c.log.Tracef("invalid workload kind: %s", kind) - return nil, nil - } - - workload, err := c.createWorkload(name, involvedObj.Namespace, kind) - if err != nil { - c.log.Errorf("Failed to create workload for [%s/%s/%s]: %s", kind, involvedObj.Namespace, name, err) - return nil, err - } - - return &pb.Event{ - Event: c.serialize(event, v1.SchemeGroupVersion), - Owner: workload, - }, nil -} - -func (c *Client) rsToDeploy(replicaSetName, namespace string) (string, error) { - deployName := "" - rs, err := c.rsLister.ReplicaSets(namespace).Get(replicaSetName) - if err != nil { - return deployName, err - } - rsOwners := rs.GetOwnerReferences() - if len(rsOwners) > 0 { - deployName = rsOwners[0].Name - } - return deployName, nil -} - -func (c *Client) podToWorkload(podName, namespace string) (string, string, error) { - p, err := c.podLister.Pods(namespace).Get(podName) - if err != nil { - return "", "", err - } - - var workloadName, workloadKind string - - podOwners := p.GetOwnerReferences() - if len(podOwners) > 0 { - ownerRs := podOwners[0] - if ownerRs.Kind == ReplicaSet { - workloadKind = Deployment - workloadName, err = c.rsToDeploy(ownerRs.Name, namespace) - if err != nil { - return "", "", err - } - } else { - workloadKind = ownerRs.Kind - workloadName = ownerRs.Name - } - } - return workloadName, workloadKind, nil -} - -func (c *Client) createWorkload(name, namespace, kind string) (*pb.Workload, error) { - if !isValidWorkloadKind(kind) { - return nil, fmt.Errorf("can't handle events for unsupported resource kind %s", kind) - } - - var workload *pb.Workload - switch kind { - case DaemonSet: - ds, err := c.dsLister.DaemonSets(namespace).Get(name) - if err != nil { - return nil, err - } - workload = c.DSToWorkload(ds) - - case Deployment: - deploy, err := c.deployLister.Deployments(namespace).Get(name) - if err != nil { - return nil, err - } - workload = c.DeployToWorkload(deploy) - - case StatefulSet: - sts, err := c.stsLister.StatefulSets(namespace).Get(name) - if err != nil { - return nil, err - } - workload = c.STSToWorkload(sts) - } - - return workload, nil -} - -// isValidWorkloadKind returns true if the given kind is one of daemonSet, -// deployment, or statefulset. Otherwise, it returns false. -func isValidWorkloadKind(kind string) bool { - return kind == DaemonSet || kind == Deployment || kind == StatefulSet -} diff --git a/agent/pkg/k8s/event_test.go b/agent/pkg/k8s/event_test.go deleted file mode 100644 index 96ebf49..0000000 --- a/agent/pkg/k8s/event_test.go +++ /dev/null @@ -1,111 +0,0 @@ -package k8s - -import ( - "testing" - "time" - - appsv1 "k8s.io/api/apps/v1" - corev1 "k8s.io/api/core/v1" - k8serrors "k8s.io/apimachinery/pkg/api/errors" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "k8s.io/apimachinery/pkg/runtime" - "k8s.io/apimachinery/pkg/runtime/schema" -) - -func TestEventToPB(t *testing.T) { - fixtures := []*struct { - testName string - event *corev1.Event - objs []runtime.Object - err error - }{ - { - "empty event", - &corev1.Event{}, - nil, - nil, - }, - { - "missing daemonset event", - &corev1.Event{ - InvolvedObject: corev1.ObjectReference{ - Kind: DaemonSet, - Name: "test-ds", - Namespace: "test-ns", - }, - }, - nil, - k8serrors.NewNotFound(schema.GroupResource{Group: "apps", Resource: "daemonset"}, "test-ds"), - }, - { - "daemonset event", - &corev1.Event{ - InvolvedObject: corev1.ObjectReference{ - Kind: DaemonSet, - Name: "test-ds", - Namespace: "test-ns", - }, - }, - []runtime.Object{ - &appsv1.DaemonSet{ - ObjectMeta: metav1.ObjectMeta{ - Name: "test-ds", - Namespace: "test-ns", - }, - Spec: appsv1.DaemonSetSpec{ - Selector: &metav1.LabelSelector{}, - }, - }, - }, - nil, - }, - { - "deployment event", - &corev1.Event{ - InvolvedObject: corev1.ObjectReference{ - Kind: Deployment, - Name: "test-deploy", - Namespace: "test-deploy-ns", - }, - }, - []runtime.Object{ - &appsv1.Deployment{ - ObjectMeta: metav1.ObjectMeta{ - Name: "test-deploy", - Namespace: "test-deploy-ns", - }, - Spec: appsv1.DeploymentSpec{ - Selector: &metav1.LabelSelector{}, - }, - }, - }, - nil, - }, - } - - for _, tc := range fixtures { - tc := tc - t.Run(tc.testName, func(t *testing.T) { - c := fakeClient(tc.objs...) - err := c.Sync(nil, time.Second) - if err != nil { - t.Error(err) - } - - _, err = c.EventToPB(tc.event) - errCmp(t, tc.err, err) - }) - } -} - -func errCmp(t *testing.T, expErr, err error) { - if expErr == nil && err == nil { - return - } - - if expErr == nil && err != nil || - expErr != nil && err == nil || - expErr.Error() != err.Error() { - t.Errorf("Unexpected error: [%s], Expected: [%s]", err, expErr) - } -} diff --git a/agent/pkg/k8s/helpers_test.go b/agent/pkg/k8s/helpers_test.go deleted file mode 100644 index 02c7f99..0000000 --- a/agent/pkg/k8s/helpers_test.go +++ /dev/null @@ -1,59 +0,0 @@ -package k8s - -import ( - "time" - - l5dClient "github.com/linkerd/linkerd2/controller/gen/client/clientset/versioned" - l5dFake "github.com/linkerd/linkerd2/controller/gen/client/clientset/versioned/fake" - l5dScheme "github.com/linkerd/linkerd2/controller/gen/client/clientset/versioned/scheme" - l5dk8s "github.com/linkerd/linkerd2/pkg/k8s" - tsclient "github.com/servicemeshinterface/smi-sdk-go/pkg/gen/client/split/clientset/versioned" - tsfake "github.com/servicemeshinterface/smi-sdk-go/pkg/gen/client/split/clientset/versioned/fake" - tsscheme "github.com/servicemeshinterface/smi-sdk-go/pkg/gen/client/split/clientset/versioned/scheme" - "k8s.io/apimachinery/pkg/runtime" - "k8s.io/client-go/informers" - "k8s.io/client-go/kubernetes" - "k8s.io/client-go/kubernetes/fake" - "k8s.io/kubectl/pkg/scheme" -) - -func fakeClient(objects ...runtime.Object) *Client { - cs, l5dApiClient, ts := fakeClientSets(objects...) - - sharedInformers := informers.NewSharedInformerFactory(cs, 10*time.Minute) - - k8sApi := &l5dk8s.KubernetesAPI{ - Interface: cs, - } - - client := NewClient(sharedInformers, k8sApi, l5dApiClient, ts, false) - client.ignoreCRDSupportCheck = true - return client -} - -func fakeClientSets(objects ...runtime.Object) (kubernetes.Interface, l5dClient.Interface, tsclient.Interface) { - l5dScheme.AddToScheme(scheme.Scheme) - tsscheme.AddToScheme(scheme.Scheme) - - objs := []runtime.Object{} - l5dObjects := []runtime.Object{} - tsObjs := []runtime.Object{} - - for _, obj := range objects { - switch obj.GetObjectKind().GroupVersionKind().Kind { - case "ServiceProfile", "ServerAuthorization", "Server", "AuthorizationPolicy", - "MeshTLSAuthentication", "NetworkAuthentication", "Link": - l5dObjects = append(l5dObjects, obj) - case "TrafficSplit": - tsObjs = append(tsObjs, obj) - default: - objs = append(objs, obj) - } - } - - cs := fake.NewSimpleClientset(objs...) - - return cs, - l5dFake.NewSimpleClientset(l5dObjects...), - tsfake.NewSimpleClientset(tsObjs...) -} diff --git a/agent/pkg/k8s/k8s.go b/agent/pkg/k8s/k8s.go deleted file mode 100644 index 9f3d490..0000000 --- a/agent/pkg/k8s/k8s.go +++ /dev/null @@ -1,301 +0,0 @@ -package k8s - -import ( - "context" - "errors" - "fmt" - "net/url" - "time" - - link "github.com/linkerd/linkerd2/controller/gen/apis/link/v1alpha1" - policy "github.com/linkerd/linkerd2/controller/gen/apis/policy/v1alpha1" - server "github.com/linkerd/linkerd2/controller/gen/apis/server/v1beta1" - serverAuthorization "github.com/linkerd/linkerd2/controller/gen/apis/serverauthorization/v1beta1" - sp "github.com/linkerd/linkerd2/controller/gen/apis/serviceprofile/v1alpha2" - l5dApi "github.com/linkerd/linkerd2/controller/gen/client/clientset/versioned" - l5dscheme "github.com/linkerd/linkerd2/controller/gen/client/clientset/versioned/scheme" - l5dk8s "github.com/linkerd/linkerd2/pkg/k8s" - ts "github.com/servicemeshinterface/smi-sdk-go/pkg/apis/split/v1alpha1" - tsclient "github.com/servicemeshinterface/smi-sdk-go/pkg/gen/client/split/clientset/versioned" - tsscheme "github.com/servicemeshinterface/smi-sdk-go/pkg/gen/client/split/clientset/versioned/scheme" - log "github.com/sirupsen/logrus" - appsv1 "k8s.io/api/apps/v1" - v1 "k8s.io/api/core/v1" - kerrors "k8s.io/apimachinery/pkg/api/errors" - "k8s.io/apimachinery/pkg/runtime" - "k8s.io/apimachinery/pkg/runtime/schema" - "k8s.io/apimachinery/pkg/runtime/serializer/protobuf" - "k8s.io/client-go/informers" - corev1informers "k8s.io/client-go/informers/core/v1" - appsv1listers "k8s.io/client-go/listers/apps/v1" - corev1listers "k8s.io/client-go/listers/core/v1" - "k8s.io/client-go/tools/cache" - "k8s.io/kubectl/pkg/scheme" -) - -type Client struct { - k8sClient *l5dk8s.KubernetesAPI - l5dClient l5dApi.Interface - tsClient tsclient.Interface - - encoders map[runtime.GroupVersioner]runtime.Encoder - - sharedInformers informers.SharedInformerFactory - - podLister corev1listers.PodLister - rsLister appsv1listers.ReplicaSetLister - dsLister appsv1listers.DaemonSetLister - deployLister appsv1listers.DeploymentLister - stsLister appsv1listers.StatefulSetLister - - podSynced cache.InformerSynced - rsSynced cache.InformerSynced - dsSynced cache.InformerSynced - deploySynced cache.InformerSynced - stsSynced cache.InformerSynced - - eventInformer corev1informers.EventInformer - eventSynced cache.InformerSynced - - log *log.Entry - local bool - - // for testing - ignoreCRDSupportCheck bool -} - -type containerConnection struct { - host string - cleanup func() -} - -const ( - DaemonSet = "DaemonSet" - Deployment = "Deployment" - Namespace = "Namespace" - Pod = "Pod" - ReplicaSet = "ReplicaSet" - StatefulSet = "StatefulSet" - - // AgentNamespace is the namespace where the Buoyant Cloud agent is installed. - AgentNamespace = "buoyant-cloud" - // AgentIDKey is the key for the agent id in the agent metadata config map - AgentIDKey = "agent_id" - // AgentNameKey is the key for the agent name in the agent metadata config map - AgentNameKey = "agent_name" -) - -var errSyncCache = errors.New("failed to sync caches") - -func NewClient(sharedInformers informers.SharedInformerFactory, k8sClient *l5dk8s.KubernetesAPI, l5dClient l5dApi.Interface, tsClient tsclient.Interface, local bool) *Client { - log := log.WithField("client", "k8s") - log.Debug("initializing") - - l5dscheme.AddToScheme(scheme.Scheme) - tsscheme.AddToScheme(scheme.Scheme) - - protoSerializer := protobuf.NewSerializer(scheme.Scheme, scheme.Scheme) - jsonSerializer := scheme.DefaultJSONEncoder() - - // We handle the CRDs differently depending on whether we have a typed client provided - // For types that we do not have a cleint for we use the `unstructured` package. As we - // also do not have proto definitions for these CRDs, we serialize them to JSON. - // - // +-------------------------+----------------------+-----------+------------+ - // | Group | Kind | Client | Serializer | - // +-------------------------+----------------------+-----------+------------+ - // | policy.linkerd.io | serverAuthorizations | l5dClient | json | - // | policy.linkerd.io | servers | l5dClient | json | - // | multicluster.linkerd.io | links | l5dClient | json | - // | linkerd.io | serviceprofiles | l5dClient | json | - // | split.smi-spec.io | trafficsplits | tsclient | json | - // +-------------------------+----------------------+-----------+------------+ - - encoders := map[runtime.GroupVersioner]runtime.Encoder{ - v1.SchemeGroupVersion: scheme.Codecs.EncoderForVersion(protoSerializer, v1.SchemeGroupVersion), - appsv1.SchemeGroupVersion: scheme.Codecs.EncoderForVersion(protoSerializer, appsv1.SchemeGroupVersion), - ts.SchemeGroupVersion: scheme.Codecs.EncoderForVersion(jsonSerializer, ts.SchemeGroupVersion), - sp.SchemeGroupVersion: scheme.Codecs.EncoderForVersion(jsonSerializer, sp.SchemeGroupVersion), - link.SchemeGroupVersion: scheme.Codecs.EncoderForVersion(jsonSerializer, link.SchemeGroupVersion), - serverAuthorization.SchemeGroupVersion: scheme.Codecs.EncoderForVersion(jsonSerializer, serverAuthorization.SchemeGroupVersion), - server.SchemeGroupVersion: scheme.Codecs.EncoderForVersion(jsonSerializer, server.SchemeGroupVersion), - policy.SchemeGroupVersion: scheme.Codecs.EncoderForVersion(jsonSerializer, policy.SchemeGroupVersion), - } - - podInformer := sharedInformers.Core().V1().Pods() - podInformerSynced := podInformer.Informer().HasSynced - - rsInformer := sharedInformers.Apps().V1().ReplicaSets() - rsInformerSynced := rsInformer.Informer().HasSynced - - dsInformer := sharedInformers.Apps().V1().DaemonSets() - dsInformerSynced := dsInformer.Informer().HasSynced - - deployInformer := sharedInformers.Apps().V1().Deployments() - deployInformerSynced := deployInformer.Informer().HasSynced - - stsInformer := sharedInformers.Apps().V1().StatefulSets() - stsInformerSynced := stsInformer.Informer().HasSynced - - eventInformer := sharedInformers.Core().V1().Events() - eventInformerSynced := eventInformer.Informer().HasSynced - - return &Client{ - encoders: encoders, - - sharedInformers: sharedInformers, - - tsClient: tsClient, - - podLister: podInformer.Lister(), - rsLister: rsInformer.Lister(), - dsLister: dsInformer.Lister(), - deployLister: deployInformer.Lister(), - stsLister: stsInformer.Lister(), - - podSynced: podInformerSynced, - rsSynced: rsInformerSynced, - dsSynced: dsInformerSynced, - deploySynced: deployInformerSynced, - stsSynced: stsInformerSynced, - - eventInformer: eventInformer, - eventSynced: eventInformerSynced, - - k8sClient: k8sClient, - l5dClient: l5dClient, - log: log, - local: local, - } -} - -func (c *Client) Sync(stopCh <-chan struct{}, timeout time.Duration) error { - c.sharedInformers.Start(stopCh) - - ctx, cancel := context.WithTimeout(context.Background(), timeout) - defer cancel() - - c.log.Infof("waiting for caches to sync") - if !cache.WaitForCacheSync( - ctx.Done(), - c.rsSynced, - c.podSynced, - c.dsSynced, - c.deploySynced, - c.stsSynced, - c.eventSynced, - ) { - c.log.Error(errSyncCache) - return errSyncCache - } - c.log.Infof("caches synced") - - return nil -} - -// Serialize takes a k8s object and serializes it into a byte slice. -// For more info on k8s serialization: -// https://github.com/kubernetes/api#recommended-use -func (c *Client) serialize(obj runtime.Object, gv runtime.GroupVersioner) []byte { - encoder, ok := c.encoders[gv] - if !ok { - c.log.Errorf("Unsupported GroupVersioner: %v", gv) - return nil - } - - buf, err := runtime.Encode(encoder, obj.DeepCopyObject()) - if err != nil { - c.log.Errorf("Encode failed: %s", err) - return nil - } - return buf -} - -func (c *Client) localMode() bool { - return c.local -} - -// this method establishes a connection to a specific container in a pod -// and gives you the host addr. This logic is abstracted away in order to -// enable running this agent outside of a K8s cluster for the purpose of -// local development. The `containerConnection` struct returned contains -// a `cleanup()` function that must be called when this connection is not -// needed anymore -func (c *Client) getContainerConnection(pod *v1.Pod, container *v1.Container, portName string) (*containerConnection, error) { - if c.localMode() { - // running in local mode, we need a port forward - pf, err := l5dk8s.NewContainerMetricsForward(c.k8sClient, *pod, *container, false, l5dk8s.ProxyAdminPortName) - if err != nil { - return nil, err - } - - // not very elegant... We need a way to get the port and host from PortForward - httpUrl, err := url.Parse(pf.URLFor("")) - if err != nil { - return nil, err - } - - if err = pf.Init(); err != nil { - return nil, err - } - - return &containerConnection{ - host: httpUrl.Host, - cleanup: func() { pf.Stop() }, - }, nil - } else { - port, err := getContainerPort(container, portName) - if err != nil { - return nil, err - } - - return &containerConnection{ - host: fmt.Sprintf("%s:%d", pod.Status.PodIP, port), - cleanup: func() {}, // noop - }, nil - } -} - -func (c *Client) resourceSupported(gvr schema.GroupVersionResource) (bool, error) { - if c.ignoreCRDSupportCheck { - return true, nil - } - - gv := gvr.GroupVersion().String() - res, err := c.k8sClient.Discovery().ServerResourcesForGroupVersion(gv) - if err != nil && !kerrors.IsNotFound(err) { - return false, err - } - - if res != nil && res.GroupVersion == gv { - for _, apiRes := range res.APIResources { - if apiRes.Name == gvr.Resource { - return true, nil - } - } - } - - c.log.Debugf("Resource %+v not supported", gvr) - return false, nil -} - -func getContainerPort(container *v1.Container, portName string) (int32, error) { - for _, p := range container.Ports { - if p.Name == portName { - return p.ContainerPort, nil - } - } - - return 0, fmt.Errorf("could not find port %s on container [%s]", portName, container.Name) -} - -func getProxyContainer(pod *v1.Pod) (*v1.Container, error) { - for _, c := range pod.Spec.Containers { - if c.Name == l5dk8s.ProxyContainerName { - container := c - return &container, nil - } - } - - return nil, fmt.Errorf("could not find proxy container in pod %s/%s", pod.Namespace, pod.Name) -} diff --git a/agent/pkg/k8s/k8s_test.go b/agent/pkg/k8s/k8s_test.go deleted file mode 100644 index 65394b2..0000000 --- a/agent/pkg/k8s/k8s_test.go +++ /dev/null @@ -1,80 +0,0 @@ -package k8s - -import ( - "testing" - "time" - - corev1 "k8s.io/api/core/v1" - "k8s.io/apimachinery/pkg/runtime" -) - -func TestNewClient(t *testing.T) { - fixtures := []*struct { - testName string - objects []runtime.Object - }{ - { - "no objects", - nil, - }, - { - "one pod", - []runtime.Object{ - &corev1.Pod{}, - }, - }, - } - - for _, tc := range fixtures { - tc := tc - t.Run(tc.testName, func(t *testing.T) { - c := fakeClient(tc.objects...) - c.Sync(nil, time.Second) - }) - } -} - -func TestSync(t *testing.T) { - openCh := make(chan struct{}) - bufferedCh := make(chan struct{}, 10) - closedCh := make(chan struct{}) - close(closedCh) - - fixtures := []*struct { - testName string - stopCh <-chan struct{} - err error - }{ - { - "nil channel", - nil, - nil, - }, - { - "open channel", - openCh, - nil, - }, - { - "buffered channel", - bufferedCh, - nil, - }, - { - "closed channel", - closedCh, - errSyncCache, - }, - } - - for _, tc := range fixtures { - tc := tc - t.Run(tc.testName, func(t *testing.T) { - c := fakeClient() - err := c.Sync(tc.stopCh, time.Second) - if err != tc.err { - t.Errorf("Expected %s, got %s", tc.err, err) - } - }) - } -} diff --git a/agent/pkg/k8s/mc_link.go b/agent/pkg/k8s/mc_link.go deleted file mode 100644 index 9b57af1..0000000 --- a/agent/pkg/k8s/mc_link.go +++ /dev/null @@ -1,35 +0,0 @@ -package k8s - -import ( - "context" - - pb "github.com/buoyantio/linkerd-buoyant/gen/bcloud" - link "github.com/linkerd/linkerd2/controller/gen/apis/link/v1alpha1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -func (c *Client) GetMulticlusterLinks(ctx context.Context) ([]*pb.MulticlusterLink, error) { - supported, err := c.resourceSupported(link.SchemeGroupVersion.WithResource("links")) - if err != nil { - return nil, err - } - - if !supported { - return nil, nil - } - - links, err := c.l5dClient.LinkV1alpha1().Links(metav1.NamespaceAll).List(ctx, metav1.ListOptions{}) - if err != nil { - return nil, err - } - - results := make([]*pb.MulticlusterLink, len(links.Items)) - for i, l := range links.Items { - l := l - results[i] = &pb.MulticlusterLink{ - MulticlusterLink: c.serialize(&l, link.SchemeGroupVersion), - } - } - - return results, nil -} diff --git a/agent/pkg/k8s/mc_link_test.go b/agent/pkg/k8s/mc_link_test.go deleted file mode 100644 index f73af5b..0000000 --- a/agent/pkg/k8s/mc_link_test.go +++ /dev/null @@ -1,62 +0,0 @@ -package k8s - -import ( - "bytes" - "context" - "testing" - - link "github.com/linkerd/linkerd2/controller/gen/apis/link/v1alpha1" - l5dk8s "github.com/linkerd/linkerd2/pkg/k8s" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "k8s.io/apimachinery/pkg/labels" - "k8s.io/kubectl/pkg/scheme" -) - -func TestGetMcLinks(t *testing.T) { - mcLink := link.Link{ - TypeMeta: metav1.TypeMeta{ - APIVersion: link.SchemeGroupVersion.Identifier(), - Kind: l5dk8s.LinkKind, - }, - ObjectMeta: metav1.ObjectMeta{ - Name: "linkname", - Namespace: "linkns", - }, - - Spec: link.LinkSpec{ - TargetClusterName: "tcn", - TargetClusterDomain: "tcd", - TargetClusterLinkerdNamespace: "tcln", - ClusterCredentialsSecret: "ccs", - GatewayAddress: "ga", - GatewayPort: "555", - GatewayIdentity: "identity", - ProbeSpec: link.ProbeSpec{ - Path: "pth", - Port: "80", - Period: "8s", - }, - Selector: *metav1.SetAsLabelSelector(labels.Set(map[string]string{"l": "v"})), - }, - } - - client := fakeClient(&mcLink) - - result, err := client.GetMulticlusterLinks(context.Background()) - if err != nil { - t.Error(err) - } - - var buf bytes.Buffer - jsonSerializer := scheme.DefaultJSONEncoder() - if err := jsonSerializer.Encode(&mcLink, &buf); err != nil { - t.Error(err) - } - - expected := buf.String() - actual := string(result[0].MulticlusterLink) - - if expected != actual { - t.Fatalf("exepected %s, got %s", expected, actual) - } -} diff --git a/agent/pkg/k8s/policy.go b/agent/pkg/k8s/policy.go deleted file mode 100644 index 7e46e3a..0000000 --- a/agent/pkg/k8s/policy.go +++ /dev/null @@ -1,149 +0,0 @@ -package k8s - -import ( - "context" - - pb "github.com/buoyantio/linkerd-buoyant/gen/bcloud" - policy "github.com/linkerd/linkerd2/controller/gen/apis/policy/v1alpha1" - server "github.com/linkerd/linkerd2/controller/gen/apis/server/v1beta1" - serverAuthorization "github.com/linkerd/linkerd2/controller/gen/apis/serverauthorization/v1beta1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -var ( - sazGVR = serverAuthorization.SchemeGroupVersion.WithResource("serverauthorizations") - serverGVR = server.SchemeGroupVersion.WithResource("servers") - authPolicyGVR = policy.SchemeGroupVersion.WithResource("authorizationpolicies") - meshTLSAuthGVR = policy.SchemeGroupVersion.WithResource("meshtlsauthentications") - netwrokAuthGVR = policy.SchemeGroupVersion.WithResource("networkauthentications") -) - -func (c *Client) GetServers(ctx context.Context) ([]*pb.Server, error) { - supported, err := c.resourceSupported(serverGVR) - if err != nil { - return nil, err - } - - if !supported { - return nil, nil - } - - servers, err := c.l5dClient.ServerV1beta1().Servers(metav1.NamespaceAll).List(ctx, metav1.ListOptions{}) - if err != nil { - return nil, err - } - - results := make([]*pb.Server, len(servers.Items)) - for i, s := range servers.Items { - s := s - results[i] = &pb.Server{ - Server: c.serialize(&s, server.SchemeGroupVersion), - } - } - - return results, nil -} - -func (c *Client) GetServerAuths(ctx context.Context) ([]*pb.ServerAuthorization, error) { - supported, err := c.resourceSupported(sazGVR) - if err != nil { - return nil, err - } - - if !supported { - return nil, nil - } - - serverAuths, err := c.l5dClient.ServerauthorizationV1beta1().ServerAuthorizations(metav1.NamespaceAll).List(ctx, metav1.ListOptions{}) - if err != nil { - return nil, err - } - - results := make([]*pb.ServerAuthorization, len(serverAuths.Items)) - for i, s := range serverAuths.Items { - s := s - results[i] = &pb.ServerAuthorization{ - ServerAuthorization: c.serialize(&s, serverAuthorization.SchemeGroupVersion), - } - } - - return results, nil -} - -func (c *Client) GetAuthorizationPolicies(ctx context.Context) ([]*pb.AuthorizationPolicy, error) { - supported, err := c.resourceSupported(authPolicyGVR) - if err != nil { - return nil, err - } - - if !supported { - return nil, nil - } - - policies, err := c.l5dClient.PolicyV1alpha1().AuthorizationPolicies(metav1.NamespaceAll).List(ctx, metav1.ListOptions{}) - if err != nil { - return nil, err - } - - results := make([]*pb.AuthorizationPolicy, len(policies.Items)) - for i, s := range policies.Items { - s := s - results[i] = &pb.AuthorizationPolicy{ - AuthorizationPolicy: c.serialize(&s, policy.SchemeGroupVersion), - } - } - - return results, nil -} - -func (c *Client) GetMeshTLSAuthentications(ctx context.Context) ([]*pb.MeshTLSAuthentication, error) { - supported, err := c.resourceSupported(meshTLSAuthGVR) - if err != nil { - return nil, err - } - - if !supported { - return nil, nil - } - - meshAuths, err := c.l5dClient.PolicyV1alpha1().MeshTLSAuthentications(metav1.NamespaceAll).List(ctx, metav1.ListOptions{}) - if err != nil { - return nil, err - } - - results := make([]*pb.MeshTLSAuthentication, len(meshAuths.Items)) - for i, s := range meshAuths.Items { - s := s - results[i] = &pb.MeshTLSAuthentication{ - MeshTlsAuthentication: c.serialize(&s, policy.SchemeGroupVersion), - } - } - - return results, nil -} - -func (c *Client) GetNetworkAuthentications(ctx context.Context) ([]*pb.NetworkAuthentication, error) { - supported, err := c.resourceSupported(netwrokAuthGVR) - if err != nil { - return nil, err - } - - if !supported { - return nil, nil - } - - networkAuths, err := c.l5dClient.PolicyV1alpha1().NetworkAuthentications(metav1.NamespaceAll).List(ctx, metav1.ListOptions{}) - if err != nil { - return nil, err - } - - results := make([]*pb.NetworkAuthentication, len(networkAuths.Items)) - for i, s := range networkAuths.Items { - s := s - results[i] = &pb.NetworkAuthentication{ - NetworkAuthentication: c.serialize(&s, policy.SchemeGroupVersion), - } - } - - return results, nil -} diff --git a/agent/pkg/k8s/policy_test.go b/agent/pkg/k8s/policy_test.go deleted file mode 100644 index 7f87014..0000000 --- a/agent/pkg/k8s/policy_test.go +++ /dev/null @@ -1,240 +0,0 @@ -package k8s - -import ( - "bytes" - "context" - "testing" - - policy "github.com/linkerd/linkerd2/controller/gen/apis/policy/v1alpha1" - server "github.com/linkerd/linkerd2/controller/gen/apis/server/v1beta1" - serverauthorization "github.com/linkerd/linkerd2/controller/gen/apis/serverauthorization/v1beta1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "k8s.io/apimachinery/pkg/util/intstr" - "k8s.io/kubectl/pkg/scheme" - gatewayapiv1alpha2 "sigs.k8s.io/gateway-api/apis/v1alpha2" -) - -func TestGetServers(t *testing.T) { - srv := &server.Server{ - TypeMeta: metav1.TypeMeta{ - APIVersion: server.SchemeGroupVersion.Identifier(), - Kind: "Server", - }, - ObjectMeta: metav1.ObjectMeta{ - Name: "srv", - Namespace: "srvns", - }, - Spec: server.ServerSpec{ - Port: intstr.FromString("http"), - ProxyProtocol: "HTTP/1", - }, - } - - client := fakeClient(srv) - - result, err := client.GetServers(context.Background()) - if err != nil { - t.Error(err) - } - - var buf bytes.Buffer - jsonSerializer := scheme.DefaultJSONEncoder() - if err := jsonSerializer.Encode(srv, &buf); err != nil { - t.Error(err) - } - - expected := buf.String() - actual := string(result[0].Server) - - if expected != actual { - t.Fatalf("exepected %s, got %s", expected, actual) - } -} - -func TestGetServerAuths(t *testing.T) { - srvAuth := &serverauthorization.ServerAuthorization{ - TypeMeta: metav1.TypeMeta{ - APIVersion: serverauthorization.SchemeGroupVersion.Identifier(), - Kind: "ServerAuthorization", - }, - ObjectMeta: metav1.ObjectMeta{ - Name: "saz", - Namespace: "sazns", - }, - - Spec: serverauthorization.ServerAuthorizationSpec{ - Server: serverauthorization.Server{ - Name: "web-http", - }, - Client: serverauthorization.Client{ - Unauthenticated: true, - }, - }, - } - - client := fakeClient(srvAuth) - - result, err := client.GetServerAuths(context.Background()) - if err != nil { - t.Error(err) - } - - var buf bytes.Buffer - jsonSerializer := scheme.DefaultJSONEncoder() - if err := jsonSerializer.Encode(srvAuth, &buf); err != nil { - t.Error(err) - } - - expected := buf.String() - actual := string(result[0].ServerAuthorization) - - if expected != actual { - t.Fatalf("exepected %s, got %s", expected, actual) - } -} - -var ns = gatewayapiv1alpha2.Namespace("ns") -var refs = []gatewayapiv1alpha2.PolicyTargetReference{ - { - Group: "group-2", - Kind: "kind-2", - Name: "name-2", - Namespace: &ns, - }, - { - Group: "group-3", - Kind: "kind-3", - Name: "name-3", - Namespace: &ns, - }, - { - Group: "group-4", - Kind: "kind-4", - Name: "name-4", - Namespace: &ns, - }, -} - -func TestGetAuthorizationPolicies(t *testing.T) { - ap := &policy.AuthorizationPolicy{ - TypeMeta: metav1.TypeMeta{ - APIVersion: policy.SchemeGroupVersion.Identifier(), - Kind: "AuthorizationPolicy", - }, - ObjectMeta: metav1.ObjectMeta{ - Name: "authpol", - Namespace: "authpolns", - }, - Spec: policy.AuthorizationPolicySpec{ - TargetRef: gatewayapiv1alpha2.PolicyTargetReference{ - Group: "group-1", - Kind: "kind-1", - Name: "name-1", - Namespace: &ns, - }, - RequiredAuthenticationRefs: refs, - }, - } - - client := fakeClient(ap) - - result, err := client.GetAuthorizationPolicies(context.Background()) - if err != nil { - t.Error(err) - } - - var buf bytes.Buffer - jsonSerializer := scheme.DefaultJSONEncoder() - if err := jsonSerializer.Encode(ap, &buf); err != nil { - t.Error(err) - } - - expected := buf.String() - actual := string(result[0].AuthorizationPolicy) - - if expected != actual { - t.Fatalf("exepected %s, got %s", expected, actual) - } -} - -func TestGetMeshTLSAuthentications(t *testing.T) { - tls := &policy.MeshTLSAuthentication{ - TypeMeta: metav1.TypeMeta{ - APIVersion: policy.SchemeGroupVersion.Identifier(), - Kind: "MeshTLSAuthentication", - }, - ObjectMeta: metav1.ObjectMeta{ - Name: "tls", - Namespace: "tlsns", - }, - Spec: policy.MeshTLSAuthenticationSpec{ - Identities: []string{"id1", "id2"}, - IdentityRefs: refs, - }, - } - - client := fakeClient(tls) - - result, err := client.GetMeshTLSAuthentications(context.Background()) - if err != nil { - t.Error(err) - } - - var buf bytes.Buffer - jsonSerializer := scheme.DefaultJSONEncoder() - if err := jsonSerializer.Encode(tls, &buf); err != nil { - t.Error(err) - } - - expected := buf.String() - actual := string(result[0].MeshTlsAuthentication) - - if expected != actual { - t.Fatalf("exepected %s, got %s", expected, actual) - } -} - -func TestGetNetworkAuthentications(t *testing.T) { - net := &policy.NetworkAuthentication{ - TypeMeta: metav1.TypeMeta{ - APIVersion: policy.SchemeGroupVersion.Identifier(), - Kind: "NetworkAuthentication", - }, - ObjectMeta: metav1.ObjectMeta{ - Name: "net", - Namespace: "netns", - }, - Spec: policy.NetworkAuthenticationSpec{ - Networks: []*policy.Network{ - { - Cidr: "cird1", - Except: []string{"ex-1-1", "ex-1-2"}, - }, - { - Cidr: "cird2", - Except: []string{"ex-2-1", "ex-2-2"}, - }, - }, - }, - } - - client := fakeClient(net) - - results, err := client.GetNetworkAuthentications(context.Background()) - if err != nil { - t.Error(err) - } - - var buf bytes.Buffer - jsonSerializer := scheme.DefaultJSONEncoder() - if err := jsonSerializer.Encode(net, &buf); err != nil { - t.Error(err) - } - - expected := buf.String() - actual := string(results[0].NetworkAuthentication) - - if expected != actual { - t.Fatalf("exepected %s, got %s", expected, actual) - } -} diff --git a/agent/pkg/k8s/service_profiles.go b/agent/pkg/k8s/service_profiles.go deleted file mode 100644 index a0420a6..0000000 --- a/agent/pkg/k8s/service_profiles.go +++ /dev/null @@ -1,35 +0,0 @@ -package k8s - -import ( - "context" - - pb "github.com/buoyantio/linkerd-buoyant/gen/bcloud" - sp "github.com/linkerd/linkerd2/controller/gen/apis/serviceprofile/v1alpha2" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -func (c *Client) GetServiceProfiles(ctx context.Context) ([]*pb.ServiceProfile, error) { - supported, err := c.resourceSupported(sp.SchemeGroupVersion.WithResource("serviceprofiles")) - if err != nil { - return nil, err - } - - if !supported { - return nil, nil - } - - spses, err := c.l5dClient.LinkerdV1alpha2().ServiceProfiles(metav1.NamespaceAll).List(ctx, metav1.ListOptions{}) - if err != nil { - return nil, err - } - - results := make([]*pb.ServiceProfile, len(spses.Items)) - for i, s := range spses.Items { - s := s - results[i] = &pb.ServiceProfile{ - ServiceProfile: c.serialize(&s, sp.SchemeGroupVersion), - } - } - - return results, nil -} diff --git a/agent/pkg/k8s/service_profiles_test.go b/agent/pkg/k8s/service_profiles_test.go deleted file mode 100644 index ac07bd9..0000000 --- a/agent/pkg/k8s/service_profiles_test.go +++ /dev/null @@ -1,63 +0,0 @@ -package k8s - -import ( - "bytes" - "context" - "testing" - - sp "github.com/linkerd/linkerd2/controller/gen/apis/serviceprofile/v1alpha2" - l5dk8s "github.com/linkerd/linkerd2/pkg/k8s" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "k8s.io/kubectl/pkg/scheme" -) - -func TestGetServiceProfile(t *testing.T) { - serviceProfile := sp.ServiceProfile{ - TypeMeta: metav1.TypeMeta{ - APIVersion: sp.SchemeGroupVersion.Identifier(), - Kind: l5dk8s.ServiceProfileKind, - }, - ObjectMeta: metav1.ObjectMeta{ - Name: "spname", - Namespace: "spns", - }, - Spec: sp.ServiceProfileSpec{ - Routes: []*sp.RouteSpec{ - { - Name: "GET /my/path/hi", - Condition: &sp.RequestMatch{ - PathRegex: `/my/path/hi`, - Method: "GET", - }, - }, - { - Name: "POST /emojivoto.v1.VotingService/VoteFire", - Condition: &sp.RequestMatch{ - PathRegex: `/emojivoto\.v1\.VotingService/VoteFire`, - Method: "POST", - }, - }, - }, - }, - } - - client := fakeClient(&serviceProfile) - - result, err := client.GetServiceProfiles(context.Background()) - if err != nil { - t.Error(err) - } - - var buf bytes.Buffer - jsonSerializer := scheme.DefaultJSONEncoder() - if err := jsonSerializer.Encode(&serviceProfile, &buf); err != nil { - t.Error(err) - } - - expected := buf.String() - actual := string(result[0].ServiceProfile) - - if expected != actual { - t.Fatalf("exepected %s, got %s", expected, actual) - } -} diff --git a/agent/pkg/k8s/traffic_split.go b/agent/pkg/k8s/traffic_split.go deleted file mode 100644 index 0f5b8d7..0000000 --- a/agent/pkg/k8s/traffic_split.go +++ /dev/null @@ -1,35 +0,0 @@ -package k8s - -import ( - "context" - - pb "github.com/buoyantio/linkerd-buoyant/gen/bcloud" - ts "github.com/servicemeshinterface/smi-sdk-go/pkg/apis/split/v1alpha1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -func (c *Client) GetTrafficSplits(ctx context.Context) ([]*pb.TrafficSplit, error) { - supported, err := c.resourceSupported(ts.SchemeGroupVersion.WithResource("trafficsplits")) - if err != nil { - return nil, err - } - - if !supported { - return nil, nil - } - - splits, err := c.tsClient.SplitV1alpha1().TrafficSplits(metav1.NamespaceAll).List(ctx, metav1.ListOptions{}) - if err != nil { - return nil, err - } - - results := make([]*pb.TrafficSplit, len(splits.Items)) - for i, t := range splits.Items { - t := t - results[i] = &pb.TrafficSplit{ - TrafficSplit: c.serialize(&t, ts.SchemeGroupVersion), - } - } - - return results, nil -} diff --git a/agent/pkg/k8s/traffic_split_test.go b/agent/pkg/k8s/traffic_split_test.go deleted file mode 100644 index 8c0d762..0000000 --- a/agent/pkg/k8s/traffic_split_test.go +++ /dev/null @@ -1,59 +0,0 @@ -package k8s - -import ( - "bytes" - "context" - "testing" - - ts "github.com/servicemeshinterface/smi-sdk-go/pkg/apis/split/v1alpha1" - "k8s.io/apimachinery/pkg/api/resource" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "k8s.io/kubectl/pkg/scheme" -) - -func TestGetTrafficSplits(t *testing.T) { - weight := resource.MustParse("500m") - trafficSplit := &ts.TrafficSplit{ - TypeMeta: metav1.TypeMeta{ - APIVersion: ts.SchemeGroupVersion.Identifier(), - Kind: "TrafficSplit", - }, - ObjectMeta: metav1.ObjectMeta{ - Name: "split", - Namespace: "ns", - }, - Spec: ts.TrafficSplitSpec{ - Service: "foo", - Backends: []ts.TrafficSplitBackend{ - { - Service: "foo-v1", - Weight: &weight, - }, - { - Service: "foo-v2", - Weight: &weight, - }, - }, - }, - } - - client := fakeClient(trafficSplit) - - result, err := client.GetTrafficSplits(context.Background()) - if err != nil { - t.Error(err) - } - - var buf bytes.Buffer - jsonSerializer := scheme.DefaultJSONEncoder() - if err := jsonSerializer.Encode(trafficSplit, &buf); err != nil { - t.Error(err) - } - - expected := buf.String() - actual := string(result[0].TrafficSplit) - - if expected != actual { - t.Fatalf("exepected %s, got %s", expected, actual) - } -} diff --git a/agent/pkg/k8s/workload.go b/agent/pkg/k8s/workload.go deleted file mode 100644 index 8bb14eb..0000000 --- a/agent/pkg/k8s/workload.go +++ /dev/null @@ -1,159 +0,0 @@ -package k8s - -import ( - pb "github.com/buoyantio/linkerd-buoyant/gen/bcloud" - appsv1 "k8s.io/api/apps/v1" - v1 "k8s.io/api/core/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "k8s.io/apimachinery/pkg/labels" - "k8s.io/apimachinery/pkg/runtime" - "k8s.io/apimachinery/pkg/types" -) - -// DSToWorkload serializes a k8s DaemonSet object and wraps it in a bcloud API -// proto message. -func (c *Client) DSToWorkload(ds *appsv1.DaemonSet) *pb.Workload { - return &pb.Workload{ - Workload: &pb.Workload_Daemonset{ - Daemonset: &pb.DaemonSet{ - DaemonSet: c.serialize(ds, appsv1.SchemeGroupVersion), - Pods: c.getPodsFor(ds), - }, - }, - } -} - -// DeployToWorkload serializes a k8s Deployment object and wraps it in a bcloud -// API proto message. -func (c *Client) DeployToWorkload(deploy *appsv1.Deployment) *pb.Workload { - return &pb.Workload{ - Workload: &pb.Workload_Deployment{ - Deployment: &pb.Deployment{ - Deployment: c.serialize(deploy, appsv1.SchemeGroupVersion), - ReplicaSets: c.deployToRS(deploy), - }, - }, - } -} - -// STSToWorkload serializes a k8s StatefulSet object and wraps it in a bcloud -// API proto message. -func (c *Client) STSToWorkload(sts *appsv1.StatefulSet) *pb.Workload { - return &pb.Workload{ - Workload: &pb.Workload_Statefulset{ - Statefulset: &pb.StatefulSet{ - StatefulSet: c.serialize(sts, appsv1.SchemeGroupVersion), - Pods: c.getPodsFor(sts), - }, - }, - } -} - -func (c *Client) ListWorkloads() ([]*pb.Workload, error) { - workloads := []*pb.Workload{} - - dsList, err := c.dsLister.List(labels.Everything()) - if err != nil { - c.log.Errorf("error listing all DeamonSets: %s", err) - return nil, err - } - for _, ds := range dsList { - workloads = append(workloads, c.DSToWorkload(ds)) - } - - deployList, err := c.deployLister.List(labels.Everything()) - if err != nil { - c.log.Errorf("error listing all deployments: %s", err) - return nil, err - } - for _, deploy := range deployList { - workloads = append(workloads, c.DeployToWorkload(deploy)) - } - - stsList, err := c.stsLister.List(labels.Everything()) - if err != nil { - c.log.Errorf("error listing all StatefulSets: %s", err) - return nil, err - } - for _, sts := range stsList { - workloads = append(workloads, c.STSToWorkload(sts)) - } - - return workloads, nil -} - -func (c *Client) deployToRS(deploy *appsv1.Deployment) []*pb.ReplicaSet { - rsSelector := labels.Set(deploy.Spec.Selector.MatchLabels).AsSelector() - replicaSets, err := c.rsLister.ReplicaSets(deploy.GetNamespace()).List(rsSelector) - if err != nil { - c.log.Errorf("failed to retrieve ReplicaSets for %s/%s", deploy.GetNamespace(), deploy.GetName()) - return nil - } - - pbReplicaSets := make([]*pb.ReplicaSet, len(replicaSets)) - for i, rs := range replicaSets { - pbReplicaSets[i] = &pb.ReplicaSet{ - ReplicaSet: c.serialize(rs, appsv1.SchemeGroupVersion), - Pods: c.getPodsFor(rs), - } - } - - return pbReplicaSets -} - -// based on github.com/linkerd/linkerd2/controller/k8s/api.go -func (c *Client) getPodsFor( - obj runtime.Object, -) []*pb.Pod { - var namespace string - var selector labels.Selector - var ownerUID types.UID - var err error - - switch typed := obj.(type) { - case *appsv1.DaemonSet: - namespace = typed.Namespace - selector = labels.Set(typed.Spec.Selector.MatchLabels).AsSelector() - ownerUID = typed.UID - - case *appsv1.ReplicaSet: - namespace = typed.Namespace - selector = labels.Set(typed.Spec.Selector.MatchLabels).AsSelector() - ownerUID = typed.UID - - case *appsv1.StatefulSet: - namespace = typed.Namespace - selector = labels.Set(typed.Spec.Selector.MatchLabels).AsSelector() - ownerUID = typed.UID - - default: - c.log.Errorf("unrecognized runtime object: %v", obj) - return nil - } - - pods, err := c.podLister.Pods(namespace).List(selector) - if err != nil { - c.log.Errorf("failed to get pods for %s/%v", namespace, selector) - return nil - } - - pbPods := []*pb.Pod{} - for _, pod := range pods { - if isOwner(ownerUID, pod.GetOwnerReferences()) { - pbPods = append(pbPods, &pb.Pod{ - Pod: c.serialize(pod, v1.SchemeGroupVersion), - }) - } - } - - return pbPods -} - -func isOwner(u types.UID, ownerRefs []metav1.OwnerReference) bool { - for _, or := range ownerRefs { - if u == or.UID { - return true - } - } - return false -} diff --git a/agent/pkg/k8s/workload_test.go b/agent/pkg/k8s/workload_test.go deleted file mode 100644 index 5e1eb5d..0000000 --- a/agent/pkg/k8s/workload_test.go +++ /dev/null @@ -1,374 +0,0 @@ -package k8s - -import ( - "testing" - "time" - - appsv1 "k8s.io/api/apps/v1" - corev1 "k8s.io/api/core/v1" - "k8s.io/apimachinery/pkg/api/equality" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "k8s.io/apimachinery/pkg/runtime" - "k8s.io/apimachinery/pkg/runtime/schema" - "k8s.io/apimachinery/pkg/types" - "k8s.io/client-go/kubernetes/scheme" -) - -var ( - ownerUID = types.UID("owner") - ownerRefs = []metav1.OwnerReference{{UID: ownerUID}} - - template = corev1.PodTemplateSpec{ - ObjectMeta: metav1.ObjectMeta{ - Name: "template-name", - Namespace: "template-namespace", - }, - Spec: corev1.PodSpec{ - Containers: []corev1.Container{ - {Name: "container-name"}, - }, - }, - } - lbls = map[string]string{"appname": "app"} -) - -func objectMeta(name string, owners []metav1.OwnerReference) metav1.ObjectMeta { - return metav1.ObjectMeta{ - Name: name, - Namespace: "namespace", - UID: ownerUID, - Labels: lbls, - OwnerReferences: owners, - } -} - -func TestDSToWorkload(t *testing.T) { - fixtures := []*struct { - testName string - ds *appsv1.DaemonSet - pods []runtime.Object - }{ - { - "empty object", - &appsv1.DaemonSet{ - TypeMeta: metav1.TypeMeta{ - APIVersion: appsv1.SchemeGroupVersion.Identifier(), - Kind: "DaemonSet", - }, - Spec: appsv1.DaemonSetSpec{ - Selector: &metav1.LabelSelector{}, - }, - }, - nil, - }, - { - "populated object", - &appsv1.DaemonSet{ - TypeMeta: metav1.TypeMeta{ - APIVersion: appsv1.SchemeGroupVersion.Identifier(), - Kind: "DaemonSet", - }, - ObjectMeta: objectMeta("ds", nil), - Spec: appsv1.DaemonSetSpec{ - Template: template, - Selector: &metav1.LabelSelector{MatchLabels: lbls}, - }, - }, - []runtime.Object{ - &corev1.Pod{ - TypeMeta: metav1.TypeMeta{ - APIVersion: corev1.SchemeGroupVersion.Identifier(), - Kind: "Pod", - }, - ObjectMeta: objectMeta("pod", ownerRefs), - }, - }, - }, - } - - for _, tc := range fixtures { - tc := tc - t.Run(tc.testName, func(t *testing.T) { - client := fakeClient(tc.pods...) - err := client.Sync(nil, time.Second) - if err != nil { - t.Error(err) - } - workload := client.DSToWorkload(tc.ds) - - nonEmptyPods := 0 - for _, p := range workload.GetDaemonset().Pods { - if p.Pod != nil { - nonEmptyPods = nonEmptyPods + 1 - } - } - - if nonEmptyPods != len(tc.pods) { - t.Errorf("Expected: [%d] pods, got: [%d]", len(tc.pods), len(workload.GetDaemonset().Pods)) - } - - obj, gvk, err := deserialize( - workload.GetDaemonset().DaemonSet, - ) - if err != nil { - t.Error(err) - } - ds, ok := obj.(*appsv1.DaemonSet) - if !ok { - t.Errorf("failed type assertion to appsv1.DaemonSet: %+v", obj) - } - - if !equality.Semantic.DeepEqual(ds.String(), tc.ds.String()) { - t.Errorf("Expected: [%+v], got: [%+v]", tc.ds.String(), ds.String()) - } - - expectedGVK := schema.GroupVersionKind{Group: "apps", Version: "v1", Kind: DaemonSet} - if gvk.String() != expectedGVK.String() { - t.Errorf("Expected: [%s], got: [%s]", expectedGVK, gvk) - } - }) - } -} - -func TestDeployToWorkload(t *testing.T) { - fixtures := []*struct { - testName string - deploy *appsv1.Deployment - pods []runtime.Object - rs []runtime.Object - }{ - { - "empty object", - &appsv1.Deployment{ - TypeMeta: metav1.TypeMeta{ - APIVersion: appsv1.SchemeGroupVersion.Identifier(), - Kind: "Deployment", - }, - Spec: appsv1.DeploymentSpec{ - Selector: &metav1.LabelSelector{}, - }, - }, - nil, - nil, - }, - { - "populated object", - &appsv1.Deployment{ - ObjectMeta: objectMeta("deploy", nil), - TypeMeta: metav1.TypeMeta{ - APIVersion: appsv1.SchemeGroupVersion.Identifier(), - Kind: "Deployment", - }, - Spec: appsv1.DeploymentSpec{ - Template: template, - Selector: &metav1.LabelSelector{MatchLabels: lbls}, - }, - }, - []runtime.Object{ - &corev1.Pod{ - TypeMeta: metav1.TypeMeta{ - APIVersion: corev1.SchemeGroupVersion.Identifier(), - Kind: "Pod", - }, - ObjectMeta: objectMeta("pod", ownerRefs), - }, - }, - []runtime.Object{ - &appsv1.ReplicaSet{ - TypeMeta: metav1.TypeMeta{ - APIVersion: appsv1.SchemeGroupVersion.Identifier(), - Kind: "ReplicaSet", - }, - ObjectMeta: objectMeta("rs", nil), - Spec: appsv1.ReplicaSetSpec{ - Selector: &metav1.LabelSelector{MatchLabels: lbls}, - }, - }, - }, - }, - } - - for _, tc := range fixtures { - tc := tc - t.Run(tc.testName, func(t *testing.T) { - objs := []runtime.Object{} - objs = append(objs, tc.rs...) - objs = append(objs, tc.pods...) - - client := fakeClient(objs...) - err := client.Sync(nil, time.Second) - if err != nil { - t.Error(err) - } - workload := client.DeployToWorkload(tc.deploy) - - nonEmptyPods := 0 - for _, rs := range workload.GetDeployment().ReplicaSets { - for _, p := range rs.Pods { - if p.Pod != nil { - nonEmptyPods = nonEmptyPods + 1 - } - } - } - - if nonEmptyPods != len(tc.pods) { - t.Errorf("Expected: [%d] pods, got: [%d]", len(tc.pods), nonEmptyPods) - } - - obj, gvk, err := deserialize( - workload.GetDeployment().Deployment, - ) - if err != nil { - t.Error(err) - } - deploy, ok := obj.(*appsv1.Deployment) - if !ok { - t.Errorf("failed type assertion to appsv1.Deployment: %+v", obj) - } - - if !equality.Semantic.DeepEqual(deploy.String(), tc.deploy.String()) { - t.Errorf("Expected: [%+v], got: [%+v]", tc.deploy.String(), deploy.String()) - } - - expectedGVK := schema.GroupVersionKind{Group: "apps", Version: "v1", Kind: Deployment} - if gvk.String() != expectedGVK.String() { - t.Errorf("Expected: [%s], got: [%s]", expectedGVK, gvk) - } - }) - } -} - -func TestSTSToWorkload(t *testing.T) { - fixtures := []*struct { - testName string - sts *appsv1.StatefulSet - pods []runtime.Object - }{ - { - "empty object", - &appsv1.StatefulSet{ - TypeMeta: metav1.TypeMeta{ - APIVersion: appsv1.SchemeGroupVersion.Identifier(), - Kind: "StatefulSet", - }, - Spec: appsv1.StatefulSetSpec{ - Selector: &metav1.LabelSelector{}, - }, - }, - nil, - }, - { - "populated object", - &appsv1.StatefulSet{ - ObjectMeta: objectMeta("ss", nil), - TypeMeta: metav1.TypeMeta{ - APIVersion: appsv1.SchemeGroupVersion.Identifier(), - Kind: "StatefulSet", - }, - Spec: appsv1.StatefulSetSpec{ - Template: template, - Selector: &metav1.LabelSelector{MatchLabels: lbls}, - }, - }, - []runtime.Object{ - &corev1.Pod{ - TypeMeta: metav1.TypeMeta{ - APIVersion: corev1.SchemeGroupVersion.Identifier(), - Kind: "Pod", - }, - ObjectMeta: objectMeta("pod", ownerRefs), - }, - }, - }, - } - - for _, tc := range fixtures { - tc := tc - t.Run(tc.testName, func(t *testing.T) { - client := fakeClient(tc.pods...) - err := client.Sync(nil, time.Second) - if err != nil { - t.Error(err) - } - workload := client.STSToWorkload(tc.sts) - - nonEmptyPods := 0 - for _, p := range workload.GetStatefulset().Pods { - if p.Pod != nil { - nonEmptyPods = nonEmptyPods + 1 - } - } - obj, gvk, err := deserialize( - workload.GetStatefulset().StatefulSet, - ) - if err != nil { - t.Error(err) - } - sts, ok := obj.(*appsv1.StatefulSet) - if !ok { - t.Errorf("failed type assertion to appsv1.StatefulSet: %+v", obj) - } - - if !equality.Semantic.DeepEqual(sts.String(), tc.sts.String()) { - t.Errorf("Expected: [%+v], got: [%+v]", tc.sts.String(), sts.String()) - } - - expectedGVK := schema.GroupVersionKind{Group: "apps", Version: "v1", Kind: StatefulSet} - if gvk.String() != expectedGVK.String() { - t.Errorf("Expected: [%s], got: [%s]", expectedGVK, gvk) - } - }) - } -} - -func TestListWorkloads(t *testing.T) { - objects := []runtime.Object{ - &appsv1.DaemonSet{ - ObjectMeta: metav1.ObjectMeta{ - Name: "ds-1", - }, - Spec: appsv1.DaemonSetSpec{ - Selector: &metav1.LabelSelector{}, - }, - }, - &appsv1.DaemonSet{ - ObjectMeta: metav1.ObjectMeta{ - Name: "ds-2", - }, - Spec: appsv1.DaemonSetSpec{ - Selector: &metav1.LabelSelector{}, - }, - }, - &appsv1.Deployment{ - Spec: appsv1.DeploymentSpec{ - Selector: &metav1.LabelSelector{}, - }, - }, - &appsv1.StatefulSet{ - Spec: appsv1.StatefulSetSpec{ - Selector: &metav1.LabelSelector{}, - }, - }, - &corev1.Endpoints{}, - &corev1.Pod{}, - } - c := fakeClient(objects...) - c.Sync(nil, time.Second) - - workloads, err := c.ListWorkloads() - if err != nil { - t.Error(err) - } - - if len(workloads) != 4 { - t.Errorf("Expected [4] workloads, got [%d]: %+v", len(workloads), workloads) - } -} - -// -// test helpers -// - -func deserialize(b []byte) (runtime.Object, *schema.GroupVersionKind, error) { - return scheme.Codecs.UniversalDeserializer().Decode(b, nil, nil) -} diff --git a/agent/pkg/registrator/registrator.go b/agent/pkg/registrator/registrator.go deleted file mode 100644 index 31de089..0000000 --- a/agent/pkg/registrator/registrator.go +++ /dev/null @@ -1,82 +0,0 @@ -package registrator - -import ( - "context" - "fmt" - - "github.com/buoyantio/linkerd-buoyant/agent/pkg/bcloudapi" - pkgk8s "github.com/buoyantio/linkerd-buoyant/agent/pkg/k8s" - "github.com/linkerd/linkerd2/pkg/k8s" - log "github.com/sirupsen/logrus" - kerrors "k8s.io/apimachinery/pkg/api/errors" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -// Registrator is used to ensure that the agent that will be running on the -// cluster is fully registered. If the agent is not it will perform an automatic -// agent registration using the provided client id and client secret -// credentials. -type Registrator struct { - bcloudApiClient bcloudapi.Client - k8sAPI *k8s.KubernetesAPI - agentMetadataConfigMap string -} - -// New creates a new Registrator. -func New(bcloudApiClient bcloudapi.Client, k8sAPI *k8s.KubernetesAPI, agentMetadataConfigMap string) *Registrator { - return &Registrator{ - bcloudApiClient: bcloudApiClient, - k8sAPI: k8sAPI, - agentMetadataConfigMap: agentMetadataConfigMap, - } -} - -// EnsureRegistered performes agent registration if necessary. It inspects the -// config map containing the agent metadata and decides whether this is a new agent -// that needs to be registered. -func (ar *Registrator) EnsureRegistered(ctx context.Context) (*bcloudapi.AgentInfo, error) { - cm, err := ar.k8sAPI. - CoreV1(). - ConfigMaps(pkgk8s.AgentNamespace). - Get(ctx, ar.agentMetadataConfigMap, metav1.GetOptions{}) - if err != nil { - if kerrors.IsNotFound(err) { - return nil, fmt.Errorf("could not find %s config map", ar.agentMetadataConfigMap) - } - return nil, err - } - - agentID, hasAgentID := cm.Data[pkgk8s.AgentIDKey] - agentName, hasAgentName := cm.Data[pkgk8s.AgentNameKey] - - if !hasAgentName { - return nil, fmt.Errorf("%s config map needs to have an %s key", ar.agentMetadataConfigMap, pkgk8s.AgentNameKey) - } - - if hasAgentID { - log.Debugf("Agent with ID %s already registered", agentID) - ai := &bcloudapi.AgentInfo{ - AgentName: agentName, - AgentID: agentID, - IsNewAgent: false, - } - - return ai, nil - } - - info, err := ar.bcloudApiClient.RegisterAgent(ctx, agentName) - if err != nil { - return nil, fmt.Errorf("agent registration failed: %w", err) - } - - cm.Data[pkgk8s.AgentIDKey] = info.AgentID - _, err = ar.k8sAPI. - CoreV1(). - ConfigMaps(pkgk8s.AgentNamespace). - Update(ctx, cm, metav1.UpdateOptions{}) - if err != nil { - return nil, fmt.Errorf("failed to update %s config map: %w", ar.agentMetadataConfigMap, err) - } - - return info, nil -} diff --git a/agent/pkg/registrator/registrator_test.go b/agent/pkg/registrator/registrator_test.go deleted file mode 100644 index a7c8363..0000000 --- a/agent/pkg/registrator/registrator_test.go +++ /dev/null @@ -1,173 +0,0 @@ -package registrator - -import ( - "context" - "fmt" - "reflect" - "testing" - - "k8s.io/client-go/kubernetes/fake" - k8stest "k8s.io/client-go/testing" - - "github.com/buoyantio/linkerd-buoyant/agent/pkg/bcloudapi" - "github.com/buoyantio/linkerd-buoyant/agent/pkg/k8s" - l5dk8s "github.com/linkerd/linkerd2/pkg/k8s" - corev1 "k8s.io/api/core/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "k8s.io/apimachinery/pkg/runtime" -) - -const ( - clientID = "client-id" - clientSecret = "client-secret" - accessToken = "eyJhbGciOiJIUzI6IkpXVCJ9.eyJzdWIiOiIxMjMNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2Q6yJV_adQssw5c" - newAgentID = "new-agent-id" - configMapName = "agent-metadata-map-name" -) - -func TestRegistrator(t *testing.T) { - fixtures := []*struct { - testName string - configMap *corev1.ConfigMap - expInfo *bcloudapi.AgentInfo - expErr error - expectRegistration bool - }{ - { - "manifest fully hydrated (does not perform registration)", - &corev1.ConfigMap{ - ObjectMeta: metav1.ObjectMeta{ - Name: configMapName, - Namespace: k8s.AgentNamespace, - }, - Data: map[string]string{ - k8s.AgentIDKey: "agent-id", - k8s.AgentNameKey: "agent-name", - }, - }, - &bcloudapi.AgentInfo{ - AgentName: "agent-name", - AgentID: "agent-id", - IsNewAgent: false, - }, - nil, - false, - }, - { - "only name present (performs registration)", - &corev1.ConfigMap{ - ObjectMeta: metav1.ObjectMeta{ - Name: configMapName, - Namespace: k8s.AgentNamespace, - }, - Data: map[string]string{ - k8s.AgentNameKey: "agent-name", - }, - }, - &bcloudapi.AgentInfo{ - AgentName: "agent-name", - AgentID: newAgentID, - IsNewAgent: true, - }, - nil, - true, - }, - { - "missing agent name", - &corev1.ConfigMap{ - ObjectMeta: metav1.ObjectMeta{ - Name: configMapName, - Namespace: k8s.AgentNamespace, - }, - Data: map[string]string{ - k8s.AgentIDKey: "agent-id", - }, - }, - nil, - fmt.Errorf("%s config map needs to have an agent_name key", configMapName), - false, - }, - { - "missing config map", - nil, - nil, - fmt.Errorf("could not find %s config map", configMapName), - false, - }, - } - - for _, tc := range fixtures { - tc := tc - t.Run(tc.testName, func(t *testing.T) { - objs := []runtime.Object{} - if tc.configMap != nil { - objs = append(objs, tc.configMap) - } - cs := fake.NewSimpleClientset(objs...) - k8sApi := &l5dk8s.KubernetesAPI{ - Interface: cs, - } - - expectedAgentName := "" - if tc.configMap != nil { - expectedAgentName = tc.configMap.Data[k8s.AgentNameKey] - } - - mockApiSrv := bcloudapi.NewMockApiSrv( - clientID, - clientSecret, - accessToken, - expectedAgentName, - newAgentID, - ) - - apiAddr := mockApiSrv.Start() - defer mockApiSrv.Stop() - - apiClient := bcloudapi.New(clientID, clientSecret, apiAddr, true) - registrator := New(apiClient, k8sApi, configMapName) - info, err := registrator.EnsureRegistered(context.Background()) - if err != nil { - if tc.expErr == nil { - t.Fatalf("Got unexpected error: %s", err) - } - - if tc.expErr.Error() != err.Error() { - t.Fatalf("Expected error: %s, got %s", tc.expErr, err) - } - } - - if err := mockApiSrv.GetError(); err != nil { - t.Fatalf("Got unexpected error: %s", err) - } - - if !reflect.DeepEqual(tc.expInfo, info) { - t.Errorf("Expected info: %+v, got %+v", tc.expInfo, info) - } - - if tc.expectRegistration { - if mockApiSrv.GetTokenRequests() != 1 { - t.Errorf("Expected 1 token request, got %d", mockApiSrv.GetTokenRequests()) - } - - if mockApiSrv.GetRegistrationRequests() != 1 { - t.Errorf("Expected 1 registrationRequests request, got %d", mockApiSrv.GetRegistrationRequests()) - } - - found := false - for _, action := range cs.Fake.Actions() { - upd, ok := action.(k8stest.UpdateAction) - if ok { - cm, ok := upd.GetObject().(*corev1.ConfigMap) - if ok { - found = cm.Name == configMapName && cm.Namespace == k8s.AgentNamespace - } - } - } - if !found { - t.Error("Expected config map to be updated") - } - } - }) - } -} diff --git a/bin/cr b/bin/cr deleted file mode 100755 index 3bfbb89..0000000 --- a/bin/cr +++ /dev/null @@ -1,52 +0,0 @@ -#!/usr/bin/env sh - -set -eu - -crv=1.3.0 -bindir=$( cd "${0%/*}" && pwd ) # Change to script dir and set bin dir to this -targetbin=$( cd "$bindir"/.. && pwd )/target/bin -crbin=$targetbin/cr-$crv -os="" -arch="" - -if [ ! -f "$crbin" ]; then - case $(uname | tr '[:upper:]' '[:lower:]') in - darwin*) - os=darwin - case $(uname -m) in - x86_64) arch=amd64 ;; - amd64) arch=amd64 ;; - arm64) arch=arm64 ;; - esac - ;; - linux*) - os=linux - case $(uname -m) in - x86_64) arch=amd64 ;; - amd64) arch=amd64 ;; - arm) arch=arm64 ;; - esac - ;; - msys*) - os=windows - arch=amd64 - ;; - esac - - if [ -z "$os" ]; then - echo "Couldn't find a matching binary" - exit 126 - fi - crcurl="https://github.com/helm/chart-releaser/releases/download/v$crv/chart-releaser_${crv}_${os}_${arch}.tar.gz" - tmp=$(mktemp -d -t cr.XXX) - mkdir -p "$targetbin" - ( - cd "$tmp" - curl -Lsf -o "./cr.tar.gz" "$crcurl" - tar zf "./cr.tar.gz" -x "cr" - chmod +x "cr" - ) - mv "$tmp/cr" "$crbin" -fi - -"$crbin" "$@" diff --git a/bin/gen-proto b/bin/gen-proto deleted file mode 100755 index 7e76ecb..0000000 --- a/bin/gen-proto +++ /dev/null @@ -1,34 +0,0 @@ -#!/usr/bin/env bash - -set -e - -# keep in sync with bin/proto -protocversion=3.19.4 - -# keep in sync with go.mod -protoc_gen_go_version=v1.27.1 -protoc_gen_go_grpc_version=v1.2.0 - -# fetch tools and dependencies - -go get google.golang.org/protobuf/cmd/protoc-gen-go@$protoc_gen_go_version -go get google.golang.org/grpc/cmd/protoc-gen-go-grpc@$protoc_gen_go_grpc_version - -deps=$(mktemp -d -t deps.XXX) - -mkdir -p $deps/google/protobuf -curl -sL https://raw.githubusercontent.com/protocolbuffers/protobuf/v$protocversion/src/google/protobuf/timestamp.proto > $deps/google/protobuf/timestamp.proto - -# build protobuf - -basedir=$(cd "$(dirname "$0")"/..; pwd) -outdir="$basedir"/gen/bcloud -mkdir -p $outdir -"$basedir"/bin/protoc \ - --proto_path="$basedir"/proto \ - --proto_path=$deps \ - --go_out=$outdir \ - --go_opt=paths=source_relative \ - --go-grpc_out=$outdir \ - --go-grpc_opt=paths=source_relative \ - "$basedir"/proto/buoyant-cloud-api.proto diff --git a/bin/go-run b/bin/go-run deleted file mode 100755 index 1be34b1..0000000 --- a/bin/go-run +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/bash - -set -eu -cd "$(pwd -P)" - -bindir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" - -if [ "$#" -eq 0 ]; then - echo "Usage: bin/go-run path/to/main [args]" >&2 - exit 1 -fi - -go build -v -race -o .gorun "./$1" -shift -exec ./.gorun "$@" diff --git a/bin/helm-docs b/bin/helm-docs deleted file mode 100755 index 09be135..0000000 --- a/bin/helm-docs +++ /dev/null @@ -1,57 +0,0 @@ -#!/usr/bin/env sh - -set -eu - -helmdocsv=1.7.0 -bindir=$( cd "${0%/*}" && pwd ) # Change to script dir and set bin dir to this -targetbin=$( cd "$bindir"/.. && pwd )/target/bin -helmdocsbin=$targetbin/helm-docs-$helmdocsv -os="" -arch="" - -if [ ! -f "$helmdocsbin" ]; then - case $(uname | tr '[:upper:]' '[:lower:]') in - darwin*) - os=darwin - arch=x86_64 - ;; - linux*) - os=linux - case $(uname -m) in - x86_64) arch=x86_64 ;; - amd64) arch=amd64 ;; - arm) - tmp=$(dpkg --print-architecture) - if echo "$tmp" | grep -q arm64; then - arch=arm64 - elif echo "$tmp" | grep -q armv7; then - arch=armv7 - elif echo "$tmp" | grep -q armv6; then - arch=armv6 - fi - ;; - esac - ;; - msys*) - os=windows - arch=x86_64 - ;; - esac - - if [ -z "$os" ]; then - echo "Couldn't find a matching binary" - exit 126 - fi - helmdocscurl="https://github.com/norwoodj/helm-docs/releases/download/v$helmdocsv/helm-docs_${helmdocsv}_${os}_${arch}.tar.gz" - tmp=$(mktemp -d -t helm-docs.XXX) - mkdir -p "$targetbin" - ( - cd "$tmp" - curl -Lsf -o "./helm-docs.tar.gz" "$helmdocscurl" - tar zf "./helm-docs.tar.gz" -x "helm-docs" - chmod +x "helm-docs" - ) - mv "$tmp/helm-docs" "$helmdocsbin" -fi - -"$helmdocsbin" "$@" diff --git a/bin/lint b/bin/lint deleted file mode 100755 index 9633d8b..0000000 --- a/bin/lint +++ /dev/null @@ -1,31 +0,0 @@ -#!/usr/bin/env sh - -set -eu - -lintversion=1.45.2 - -cd "$(pwd -P)" - -bindir=$( cd "${0%/*}" && pwd ) -rootdir=$( cd "$bindir"/.. && pwd ) -targetbin=$rootdir/target/bin - -cd "$rootdir" - -exe= -if [ "$(uname -s)" = Darwin ]; then - # Darwin's uname doesn't support the -o flag so we short circuit here. - :; -elif [ "$(uname -o)" = Msys ]; then - exe=.exe -fi - -lintbin=$targetbin/.golangci-lint-$lintversion$exe - -if [ ! -f "$lintbin" ]; then - mkdir -p "$targetbin" - curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/v$lintversion/install.sh | sh -s -- -b . v$lintversion - mv ./golangci-lint$exe "$lintbin" -fi - -"$lintbin" run "$@" diff --git a/bin/protoc b/bin/protoc deleted file mode 100755 index 0c9ea78..0000000 --- a/bin/protoc +++ /dev/null @@ -1,31 +0,0 @@ -#!/usr/bin/env bash - -set -eu - -if [ "$(uname -s)" = "Darwin" ]; then - os=osx -else - os=linux -fi -arch=$(uname -m) - -# keep in sync with bin/gen-proto -protocversion=3.19.4 -targetbin=target/bin -protocbin=$targetbin/protoc-${protocversion} -protocurl="https://github.com/protocolbuffers/protobuf/releases/download/v${protocversion}/protoc-${protocversion}-${os}-${arch}.zip" - -if [ ! -f "$protocbin" ]; then - tmp=$(mktemp -d -t protoc.XXX) - mkdir -p $targetbin - ( - cd "$tmp" - curl -L --silent --fail -o "./protoc.zip" "$protocurl" - unzip -q "./protoc.zip" bin/protoc - chmod +x bin/protoc - ) - mv "$tmp/bin/protoc" "$protocbin" - rm -rf "$tmp" -fi - -./$protocbin "$@" diff --git a/charts/chart_schema.yaml b/charts/chart_schema.yaml deleted file mode 100644 index cfb0290..0000000 --- a/charts/chart_schema.yaml +++ /dev/null @@ -1,37 +0,0 @@ -name: str() -home: str(required=False) -version: str() -apiVersion: str() -appVersion: any(str(), num(), required=False) -description: str() -keywords: list(str(), required=False) -sources: list(str(), required=False) -maintainers: list(include('maintainer'), required=False) -dependencies: list(include('dependency'), required=False) -icon: str(required=False) -engine: str(required=False) -condition: str(required=False) -tags: str(required=False) -deprecated: bool(required=False) -kubeVersion: str(required=False) -annotations: map(str(), str(), required=False) -type: str(required=False) ---- -maintainer: - name: str() - email: str(required=False) - url: str(required=False) ---- -dependency: - name: str() - version: str() - repository: str(required=False) - condition: str(required=False) - tags: list(str(), required=False) - enabled: bool(required=False) - import-values: any(list(str()), list(include('import-value')), required=False) - alias: str(required=False) ---- -import-value: - child: str() - parent: str() diff --git a/charts/cr.yaml b/charts/cr.yaml deleted file mode 100644 index c32c8f5..0000000 --- a/charts/cr.yaml +++ /dev/null @@ -1,11 +0,0 @@ -owner: BuoyantIO -git-repo: linkerd-buoyant -charts-repo: https://helm.buoyant.cloud -index-path: .cr-index/index.yaml -package-path: .cr-release-packages -git-base-url: https://api.github.com/ -git-upload-url: https://uploads.github.com/ -push: true -remote: origin -release-name-template: "v{{ .Version }}" -skip-existing: true diff --git a/charts/ct.yaml b/charts/ct.yaml deleted file mode 100644 index 9afe603..0000000 --- a/charts/ct.yaml +++ /dev/null @@ -1,5 +0,0 @@ -chart-yaml-schema: charts/chart_schema.yaml -lint-conf: charts/lintconf.yaml -namespace: buoyant-cloud -release-label: test-release-label -target-branch: main diff --git a/charts/linkerd-buoyant/Chart.yaml b/charts/linkerd-buoyant/Chart.yaml deleted file mode 100644 index 93929df..0000000 --- a/charts/linkerd-buoyant/Chart.yaml +++ /dev/null @@ -1,19 +0,0 @@ -apiVersion: v2 -appVersion: 0.0.0-undefined -description: The Linkerd Buoyant extension connects your Linkerd-enabled Kubernetes cluster to Buoyant Cloud, the global platform health dashboard for Linkerd. -home: https://buoyant.io/cloud -icon: https://buoyant.io/images/buoyant-icon.svg -keywords: -- linkerd -- Buoyant -- Service Mesh -kubeVersion: '>=1.20.0-0' -maintainers: -- email: info@buoyant.io - name: BuoyantIO - url: https://buoyant.io/cloud -name: linkerd-buoyant -sources: -- https://github.com/BuoyantIO/linkerd-buoyant -type: application -version: 0.0.0-undefined diff --git a/charts/linkerd-buoyant/README.md b/charts/linkerd-buoyant/README.md deleted file mode 100644 index 7f076bc..0000000 --- a/charts/linkerd-buoyant/README.md +++ /dev/null @@ -1,43 +0,0 @@ -# linkerd-buoyant - -![Version: 0.0.0-undefined](https://img.shields.io/badge/Version-0.0.0--undefined-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.0.0-undefined](https://img.shields.io/badge/AppVersion-0.0.0--undefined-informational?style=flat-square) - -The Linkerd Buoyant extension connects your Linkerd-enabled Kubernetes cluster to Buoyant Cloud, the global platform health dashboard for Linkerd. - -**Homepage:** - -## Maintainers - -| Name | Email | Url | -| ---- | ------ | --- | -| BuoyantIO | info@buoyant.io | https://buoyant.io/cloud | - -## Source Code - -* - -## Requirements - -Kubernetes: `>=1.20.0-0` - -## Values - -| Key | Type | Default | Description | -|-----|------|---------|-------------| -| agent.apiAddress | string | `"api.buoyant.cloud:443"` | API address for Buoyant Cloud | -| agent.image | string | `"ghcr.io/buoyantio/linkerd-buoyant"` | image of the buoyant-cloud-agent pod | -| agent.imageVersion | string | `nil` | imageVersion of the buoyant-cloud-agent pod | -| agent.logLevel | string | `"info"` | Log level for the buoyant-cloud-agent pod | -| agent.noTLS | bool | `false` | Disable TLS. Only use for testing. | -| api.apiAddress | string | `"api.buoyant.cloud:443"` | API address for Buoyant Cloud | -| api.clientID | string | `nil` | The client id. Required. | -| api.clientSecret | string | `nil` | The client secret. Required. | -| api.noTLS | bool | `false` | Disable TLS. Only use for testing. | -| metadata.agentID | string | `nil` | The ID for this agent | -| metadata.agentName | string | `nil` | The name for this agent. Required. | -| metrics.apiAddress | string | `"api.buoyant.cloud:443"` | API address for Buoyant Cloud | -| metrics.logLevel | string | `"info"` | Log level for the buoyant-cloud-metrics pod | -| metrics.noTLS | bool | `false` | Disable TLS. Only use for testing. | - ----------------------------------------------- -Autogenerated from chart metadata using [helm-docs v1.7.0](https://github.com/norwoodj/helm-docs/releases/v1.7.0) diff --git a/charts/linkerd-buoyant/ci/dev-values.yaml b/charts/linkerd-buoyant/ci/dev-values.yaml deleted file mode 100644 index 50e9a78..0000000 --- a/charts/linkerd-buoyant/ci/dev-values.yaml +++ /dev/null @@ -1,17 +0,0 @@ -metadata: - agentID: fake-agent-id - agentName: fake-agent-name -api: - apiAddress: dockerhost:8082 - noTLS: true - clientID: fake-client-id - clientSecret: fake-client-secret -agent: - apiAddress: dockerhost:8086 - noTLS: true - imageVersion: ci-run - logLevel: debug -metrics: - apiAddress: dockerhost:8087 - noTLS: true - logLevel: debug diff --git a/charts/linkerd-buoyant/ci/fake-values.yaml b/charts/linkerd-buoyant/ci/fake-values.yaml deleted file mode 100644 index 391548a..0000000 --- a/charts/linkerd-buoyant/ci/fake-values.yaml +++ /dev/null @@ -1,8 +0,0 @@ -metadata: - agentID: fake-agent-id - agentName: fake-agent-name -api: - clientID: fake-client-id - clientSecret: fake-client-secret -agent: - imageVersion: ci-run diff --git a/charts/linkerd-buoyant/templates/NOTES.txt b/charts/linkerd-buoyant/templates/NOTES.txt deleted file mode 100644 index 63a02e9..0000000 --- a/charts/linkerd-buoyant/templates/NOTES.txt +++ /dev/null @@ -1,22 +0,0 @@ -Thank you for installing {{ .Chart.Name }}. - -Your release is named {{ .Release.Name }}. - -To help you manage your Buoyant Cloud agent, you can install the CLI extension -by running: - - curl -sL https://buoyant.cloud/install | sh - -Alternatively, you can download the CLI directly via the linkerd-buoyant -releases page: - - https://github.com/BuoyantIO/linkerd-buoyant/releases - -To make sure everything works as expected, run the following: - - linkerd-buoyant check - -Need help? Message us in the #buoyant-cloud Slack channel: -https://linkerd.slack.com/archives/C01QSTM20BY - -Looking for more? Visit https://buoyant.io/cloud/ diff --git a/charts/linkerd-buoyant/templates/bcloud-agent.yaml b/charts/linkerd-buoyant/templates/bcloud-agent.yaml deleted file mode 100644 index fd7513c..0000000 --- a/charts/linkerd-buoyant/templates/bcloud-agent.yaml +++ /dev/null @@ -1,108 +0,0 @@ -# -# Buoyant Cloud Agent -# -apiVersion: apps/v1 -kind: Deployment -metadata: - name: buoyant-cloud-agent - {{- if eq .Release.Service "Buoyant Cloud" }} - namespace: {{.Release.Namespace}} - {{- end }} - annotations: - buoyant.cloud/is-agent: "true" - buoyant.cloud/version: v{{ .Chart.Version }} - buoyant.cloud/service-name: agent - labels: - app.kubernetes.io/name: agent - app.kubernetes.io/version: v{{ .Chart.Version }} - app.kubernetes.io/part-of: buoyant-cloud - linkerd.io/extension: buoyant -spec: - replicas: 1 - selector: - matchLabels: - app: buoyant-cloud-agent - template: - metadata: - labels: - app: buoyant-cloud-agent - annotations: - config.linkerd.io/skip-outbound-ports: "4191" - spec: - securityContext: - fsGroup: 1000 - serviceAccount: buoyant-cloud-agent - containers: - - name: buoyant-cloud-agent - image: {{ .Values.agent.image }}:{{ default (printf "v%s" .Chart.Version) .Values.agent.imageVersion }} - args: - - "agent" - - "-grpc-addr={{ .Values.agent.apiAddress }}" - - "-log-level={{ .Values.agent.logLevel }}" - - "-api-addr={{ .Values.api.apiAddress }}" - - "-agent-id=$(AGENT_ID)" - {{- if .Values.agent.noTLS }} - - "-no-tls" - {{- end }} - env: - - name: BUOYANT_CLOUD_CLIENT_ID - valueFrom: - secretKeyRef: - key: client_id - name: buoyant-cloud-org-credentials - - name: BUOYANT_CLOUD_CLIENT_SECRET - valueFrom: - secretKeyRef: - key: client_secret - name: buoyant-cloud-org-credentials - - name: AGENT_ID - valueFrom: - configMapKeyRef: - key: agent_id - name: agent-metadata - ports: - - name: admin - containerPort: 9990 - livenessProbe: - httpGet: - path: /ping - port: 9990 - readinessProbe: - httpGet: - path: /ready - port: 9990 - resources: - requests: - cpu: 10m - memory: 10Mi - limits: - cpu: "2" - memory: 5000Mi - securityContext: - allowPrivilegeEscalation: false - privileged: false - readOnlyRootFilesystem: true - runAsGroup: 1000 - runAsNonRoot: true - runAsUser: 1000 - initContainers: - - name: buoyant-cloud-agent-registrator - image: {{ .Values.agent.image }}:{{ default (printf "v%s" .Chart.Version) .Values.agent.imageVersion }} - args: - - "registrator" - - "-log-level={{ .Values.agent.logLevel }}" - - "-api-addr={{ .Values.api.apiAddress }}" - {{- if .Values.agent.noTLS }} - - "-no-tls" - {{- end }} - env: - - name: BUOYANT_CLOUD_CLIENT_ID - valueFrom: - secretKeyRef: - key: client_id - name: buoyant-cloud-org-credentials - - name: BUOYANT_CLOUD_CLIENT_SECRET - valueFrom: - secretKeyRef: - key: client_secret - name: buoyant-cloud-org-credentials diff --git a/charts/linkerd-buoyant/templates/config.yaml b/charts/linkerd-buoyant/templates/config.yaml deleted file mode 100644 index 6a57764..0000000 --- a/charts/linkerd-buoyant/templates/config.yaml +++ /dev/null @@ -1,31 +0,0 @@ -kind: ConfigMap -metadata: - name: agent-metadata - {{- if eq .Release.Service "Buoyant Cloud" }} - namespace: {{.Release.Namespace}} - {{- end }} - labels: - app.kubernetes.io/part-of: buoyant-cloud -apiVersion: v1 -data: - agent_name: {{required "Please provide the agent name in the metadata.agentName value" .Values.metadata.agentName}} - {{- if .Values.metadata.agentID }} - agent_id: {{.Values.metadata.agentID}} - {{- end }} ---- -# -# Secret containing the org credentials for the org -# -kind: Secret -apiVersion: v1 -metadata: - name: buoyant-cloud-org-credentials - {{- if eq .Release.Service "Buoyant Cloud" }} - namespace: {{.Release.Namespace}} - {{- end }} - labels: - app.kubernetes.io/part-of: buoyant-cloud -type: Opaque -data: - client_id: {{ b64enc (required "Please provide the client ID for this org in the api.clientID value" .Values.api.clientID | trim) }} - client_secret: {{ b64enc (required "Please provide the client secret for this org in the api.clientSecret value" .Values.api.clientSecret | trim) }} diff --git a/charts/linkerd-buoyant/templates/metrics-agent.yaml b/charts/linkerd-buoyant/templates/metrics-agent.yaml deleted file mode 100644 index a1ffecd..0000000 --- a/charts/linkerd-buoyant/templates/metrics-agent.yaml +++ /dev/null @@ -1,455 +0,0 @@ -# -# Metrics Agent config -# -kind: ConfigMap -metadata: - name: buoyant-cloud-metrics - {{- if eq .Release.Service "Buoyant Cloud" }} - namespace: {{.Release.Namespace}} - {{- end }} - labels: - app.kubernetes.io/part-of: buoyant-cloud -apiVersion: v1 -data: - agent.yml: | - server: - log_level: {{ .Values.metrics.logLevel }} - http_listen_port: 9991 - metrics: - wal_directory: /tmp/wal - global: - scrape_interval: 10s - external_labels: - cluster_id: ${AGENT_ID} - cluster_name: ${AGENT_NAME} - configs: - - host_filter: true - name: buoyant-cloud-metrics - wal_truncate_frequency: "1m" - remote_write: - - url: http{{- if not .Values.metrics.noTLS}}s{{- end}}://{{.Values.metrics.apiAddress}}/remote-write - oauth2: - client_id: ${BUOYANT_CLOUD_CLIENT_ID} - client_secret: ${BUOYANT_CLOUD_CLIENT_SECRET} - token_url: http{{- if not .Values.api.noTLS}}s{{- end}}://{{.Values.api.apiAddress}}/agent-token?agent_id=${AGENT_ID} - queue_config: - capacity: 1500 - max_shards: 20 - max_backoff: 10s - - scrape_configs: - - - job_name: 'buoyant-cloud-agent' - kubernetes_sd_configs: - - role: pod - namespaces: - names: - - 'buoyant-cloud' - relabel_configs: - - source_labels: [__meta_kubernetes_pod_container_port_name] - regex: ^admin$ - action: keep - - source_labels: [__meta_kubernetes_pod_container_name] - regex: ^buoyant-cloud-agent|buoyant-cloud-metrics$ - action: keep - - source_labels: [__meta_kubernetes_namespace] - action: replace - target_label: namespace - - source_labels: [__meta_kubernetes_pod_name] - action: replace - target_label: pod - - action: labelmap - regex: __meta_kubernetes_pod_label_(.+) - - metric_relabel_configs: - - source_labels: [__name__] - regex: ^go_memstats_alloc_bytes|go_memstats_alloc_bytes_total|go_memstats_heap_inuse_bytes|go_memstats_stack_inuse_bytes|process_resident_memory_bytes|process_virtual_memory_bytes|up$ - action: keep - - # scrape_configs copied from `linkerd install` - - - job_name: 'kubernetes-nodes-cadvisor' - scheme: https - tls_config: - ca_file: /var/run/secrets/kubernetes.io/serviceaccount/ca.crt - insecure_skip_verify: true - bearer_token_file: /var/run/secrets/kubernetes.io/serviceaccount/token - kubernetes_sd_configs: - - role: node - relabel_configs: - - action: labelmap - regex: __meta_kubernetes_node_label_(.+) - - target_label: __address__ - replacement: kubernetes.default.svc:443 - - source_labels: [__meta_kubernetes_node_name] - regex: (.+) - target_label: __metrics_path__ - replacement: /api/v1/nodes/$1/proxy/metrics/cadvisor - metric_relabel_configs: - - source_labels: [__name__] - regex: ^container_cpu_usage_seconds_total|container_memory_working_set_bytes|machine_cpu_cores|machine_memory_bytes$ - action: keep - - source_labels: [pod] - target_label: workload_kind - regex: ^(.*)-[bcdfghjklmnpqrstvwxz2456789]{5,15}$ - action: replace - replacement: Deployment - - source_labels: [pod] - target_label: workload_kind - regex: ^(.*)-[0-9]+$ - action: replace - replacement: StatefulSet - - source_labels: [pod] - target_label: workload_kind - regex: ^(.*)-[bcdfghjklmnpqrstvwxz2456789]{5}$ - action: replace - replacement: DaemonSet - - source_labels: [pod] - target_label: workload_kind - regex: ^(.*)-[456789bcdf]{1,10}-[bcdfghjklmnpqrstvwxz2456789]{5}$ - action: replace - replacement: Deployment - - source_labels: [pod] - target_label: workload_name - regex: ^(.*)-[bcdfghjklmnpqrstvwxz2456789]{5,15}$ - action: replace - replacement: $1 - - source_labels: [pod] - target_label: workload_name - regex: ^(.*)-[0-9]+$ - action: replace - replacement: $1 - - source_labels: [pod] - target_label: workload_name - regex: ^(.*)-[bcdfghjklmnpqrstvwxz2456789]{5}$ - action: replace - replacement: $1 - - source_labels: [pod] - target_label: workload_name - regex: ^(.*)-[456789bcdf]{1,10}-[bcdfghjklmnpqrstvwxz2456789]{5}$ - action: replace - replacement: $1 - - - job_name: 'linkerd-proxy' - kubernetes_sd_configs: - - role: pod - relabel_configs: - - source_labels: - - __meta_kubernetes_pod_container_name - - __meta_kubernetes_pod_container_port_name - action: keep - regex: ^linkerd-proxy;linkerd-admin$ - - source_labels: [__meta_kubernetes_namespace] - action: replace - target_label: namespace - - source_labels: [__meta_kubernetes_pod_name] - action: replace - target_label: pod - # special case k8s' "job" label, to not interfere with prometheus' "job" - # label - # __meta_kubernetes_pod_label_linkerd_io_proxy_job=foo => - # k8s_job=foo - - source_labels: [__meta_kubernetes_pod_label_linkerd_io_proxy_job] - action: replace - target_label: k8s_job - # drop __meta_kubernetes_pod_label_linkerd_io_proxy_job - - action: labeldrop - regex: __meta_kubernetes_pod_label_linkerd_io_proxy_job - # __meta_kubernetes_pod_label_linkerd_io_proxy_deployment=foo => - # deployment=foo - - action: labelmap - regex: __meta_kubernetes_pod_label_linkerd_io_proxy_(.+) - # drop all labels that we just made copies of in the previous labelmap - - action: labeldrop - regex: __meta_kubernetes_pod_label_linkerd_io_proxy_(.+) - # __meta_kubernetes_pod_label_linkerd_io_foo=bar => - # foo=bar - - action: labelmap - regex: __meta_kubernetes_pod_label_linkerd_io_(.+) - - # __meta_kubernetes_pod_controller_kind=DaemonSet => workload_kind=DaemonSet - # __meta_kubernetes_pod_controller_name=foo => workload_name=foo - - source_labels: [__meta_kubernetes_pod_controller_kind] - action: replace - target_label: workload_kind - - source_labels: [__meta_kubernetes_pod_controller_name] - action: replace - target_label: workload_name - - # __meta_kubernetes_pod_controller_kind=ReplicaSet => workload_kind=Deployment - # __meta_kubernetes_pod_controller_name=foo-bar-123 => workload_name=foo-bar - - source_labels: [__meta_kubernetes_pod_controller_kind] - action: replace - regex: ^ReplicaSet$ - target_label: workload_kind - replacement: Deployment - - source_labels: - - __meta_kubernetes_pod_controller_kind - - __meta_kubernetes_pod_controller_name - action: replace - regex: ^ReplicaSet;(.*)-[^-]+$ - target_label: workload_name - - metric_relabel_configs: - - # keep linkerd metrics relevant to buoyant cloud - - source_labels: [__name__] - regex: ^response_total|response_latency_ms_bucket|route_response_total|route_response_latency_ms_bucket|tcp_open_connections|tcp_read_bytes_total|tcp_write_bytes_total|inbound_http_authz_allow_total|inbound_http_authz_deny_total|inbound_tcp_authz_allow_total|inbound_tcp_authz_deny_total$ - action: keep - - # drop high-cardinality outbound latency histograms - - source_labels: - - __name__ - - direction - regex: 'response_latency_ms_bucket;outbound' - action: drop - - # drop some latency buckets - - source_labels: - - le - regex: ^2.*|3.*|4.*$ - action: drop - - # drop high-cardinality outbound tcp open connections - - source_labels: - - __name__ - - direction - regex: 'tcp_open_connections;outbound' - action: drop - - # drop high-cardinality outbound tcp read bytes - - source_labels: - - __name__ - - direction - regex: 'tcp_read_bytes_total;outbound' - action: drop - - # drop high-cardinality outbound tcp write bytes - - source_labels: - - __name__ - - direction - regex: 'tcp_write_bytes_total;outbound' - action: drop - - # drop linkerd workload labels (superseded by workload_kind, workload_name) - - action: labeldrop - regex: 'deployment' - - action: labeldrop - regex: 'daemonset' - - action: labeldrop - regex: 'statefulset' - - # foo{direction="outbound"} => outbound_foo{} - - source_labels: - - __name__ - - direction - regex: ^(.+);(inbound|outbound)$ - action: replace - target_label: __name__ - replacement: $${2}_$${1} - - action: labeldrop - regex: direction - - # dst_daemonset=foo => dst_workload_name=foo - # dst_daemonset=foo => dst_workload_kind=DaemonSet - - source_labels: [dst_daemonset] - regex: (.+) - action: replace - target_label: dst_workload_name - - source_labels: [dst_daemonset] - regex: (.+) - action: replace - target_label: dst_workload_kind - replacement: DaemonSet - - action: labeldrop - regex: 'dst_daemonset' - - # dst_deployment=foo => dst_workload_name=foo - # dst_deployment=foo => dst_workload_kind=Deployment - - source_labels: [dst_deployment] - regex: (.+) - action: replace - target_label: dst_workload_name - - source_labels: [dst_deployment] - regex: (.+) - action: replace - target_label: dst_workload_kind - replacement: Deployment - - action: labeldrop - regex: 'dst_deployment' - - # dst_statefulset=foo => dst_workload_name=foo - # dst_statefulset=foo => dst_workload_kind=StatefulSet - - source_labels: [dst_statefulset] - regex: (.+) - action: replace - target_label: dst_workload_name - - source_labels: [dst_statefulset] - regex: (.+) - action: replace - target_label: dst_workload_kind - replacement: StatefulSet - - action: labeldrop - regex: 'dst_statefulset' - - # drop remaining high-cardinality linkerd metrics and labels - - action: labeldrop - regex: 'pod_template_hash' - - action: labeldrop - regex: 'dst_pod_template_hash' - - action: labeldrop - regex: 'dst_serviceaccount' - - action: labeldrop - regex: 'server_id' - - action: labeldrop - regex: 'control_plane_ns' - - action: labeldrop - regex: 'dst_control_plane_ns' - - action: labeldrop - regex: 'workload_ns' - - - job_name: 'multicluster-link' - kubernetes_sd_configs: - - role: pod - relabel_configs: - - source_labels: - - __meta_kubernetes_pod_container_name - - __meta_kubernetes_pod_container_port_name - action: keep - regex: ^service-mirror;admin-http$ - - source_labels: [__meta_kubernetes_namespace] - action: replace - target_label: namespace - - metric_relabel_configs: - - # keep link metrics relevant to buoyant cloud - - source_labels: [__name__] - regex: ^gateway_alive|gateway_probe_latency_ms_bucket$ - action: keep - - # drop some latency buckets - - source_labels: - - le - regex: ^2.*|3.*|4.*$ - action: drop ---- -# -# Metrics Agent -# -apiVersion: apps/v1 -kind: DaemonSet -metadata: - name: buoyant-cloud-metrics - {{- if eq .Release.Service "Buoyant Cloud" }} - namespace: {{.Release.Namespace}} - {{- end }} - annotations: - buoyant.cloud/is-metrics: "true" - buoyant.cloud/version: v{{ .Chart.Version }} - buoyant.cloud/service-name: metrics - labels: - app.kubernetes.io/name: metrics - app.kubernetes.io/version: v{{ .Chart.Version }} - app.kubernetes.io/part-of: buoyant-cloud - linkerd.io/extension: buoyant -spec: - selector: - matchLabels: - app: buoyant-cloud-metrics - template: - metadata: - labels: - app: buoyant-cloud-metrics - spec: - securityContext: - fsGroup: 1000 - serviceAccount: buoyant-cloud-agent - tolerations: - - operator: Exists - effect: NoSchedule - containers: - - name: buoyant-cloud-metrics - image: grafana/agent:v0.23.0 - args: - - -config.file=/buoyant-cloud-metrics/agent.yml - - -config.expand-env - ports: - - name: admin - containerPort: 9991 - livenessProbe: - httpGet: - path: /-/healthy - port: 9991 - readinessProbe: - httpGet: - path: /-/ready - port: 9991 - resources: - requests: - cpu: 10m - memory: 10Mi - limits: - cpu: "2" - memory: 5000Mi - securityContext: - allowPrivilegeEscalation: false - privileged: false - readOnlyRootFilesystem: true - runAsGroup: 1000 - runAsNonRoot: true - runAsUser: 1000 - env: - - name: HOSTNAME - valueFrom: - fieldRef: - fieldPath: spec.nodeName - - name: BUOYANT_CLOUD_CLIENT_ID - valueFrom: - secretKeyRef: - key: client_id - name: buoyant-cloud-org-credentials - - name: BUOYANT_CLOUD_CLIENT_SECRET - valueFrom: - secretKeyRef: - key: client_secret - name: buoyant-cloud-org-credentials - - name: AGENT_ID - valueFrom: - configMapKeyRef: - key: agent_id - name: agent-metadata - - name: AGENT_NAME - valueFrom: - configMapKeyRef: - key: agent_name - name: agent-metadata - volumeMounts: - - mountPath: /buoyant-cloud-metrics - name: buoyant-cloud-metrics - - mountPath: /tmp - name: tmp - initContainers: - - name: metrics-agent-init - image: bash:4.0.44 - command: - - /bin/sh - - -c - - | - while ! test -f "/agent-metadata/agent_id"; do - sleep 1 - echo "Waiting for agent registration" - done - echo "Found registered agent with ID: $(cat /agent-metadata/agent_id)" - volumeMounts: - - mountPath: /agent-metadata - name: agent-metadata - volumes: - - configMap: - name: buoyant-cloud-metrics - name: buoyant-cloud-metrics - - configMap: - name: agent-metadata - name: agent-metadata - - name: tmp - emptyDir: {} diff --git a/charts/linkerd-buoyant/templates/namespace-metadata.yaml b/charts/linkerd-buoyant/templates/namespace-metadata.yaml deleted file mode 100644 index 82817c8..0000000 --- a/charts/linkerd-buoyant/templates/namespace-metadata.yaml +++ /dev/null @@ -1,110 +0,0 @@ -{{- /* -This pre-install hook is based on: -https://github.com/linkerd/linkerd2/blob/140c197032b7b11a670f80039ec5ed79aa29bdf3/viz/charts/linkerd-viz/templates/namespace-metadata.yaml - -To create a namespace for the `linkerd-buoyant` extension, we instruct the -user to run `helm install --create-namespace`, or create the namespace -themselves. This pre-install hook then ensures the following: -1. The `linkerd-buoyant` extension is installed in the `buoyant-cloud` - namespace. -2. The `buoyant-cloud` namespace has the following annotations and labels: - annotations: - linkerd.io/inject: enabled - labels: - app.kubernetes.io/part-of: buoyant-cloud - linkerd.io/extension: buoyant -*/}} -{{ if ne .Release.Namespace "buoyant-cloud" }} - {{ fail "Namespace must be 'buoyant-cloud'" }} -{{ end }} -kind: ServiceAccount -apiVersion: v1 -metadata: - name: namespace-metadata - annotations: - helm.sh/hook: pre-install - helm.sh/hook-weight: "0" - helm.sh/hook-delete-policy: before-hook-creation,hook-succeeded ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: Role -metadata: - name: namespace-metadata - annotations: - helm.sh/hook: pre-install - helm.sh/hook-weight: "0" - helm.sh/hook-delete-policy: before-hook-creation,hook-succeeded -rules: -- apiGroups: [""] - resources: ["namespaces"] - verbs: ["get", "patch"] - resourceNames: ["{{.Release.Namespace}}"] ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: RoleBinding -metadata: - name: namespace-metadata - annotations: - helm.sh/hook: pre-install - helm.sh/hook-weight: "0" - helm.sh/hook-delete-policy: before-hook-creation,hook-succeeded -roleRef: - kind: Role - name: namespace-metadata - apiGroup: rbac.authorization.k8s.io -subjects: -- kind: ServiceAccount - name: namespace-metadata - namespace: {{.Release.Namespace}} ---- -apiVersion: batch/v1 -kind: Job -metadata: - name: namespace-metadata - annotations: - helm.sh/hook: pre-install - helm.sh/hook-weight: "0" - helm.sh/hook-delete-policy: before-hook-creation,hook-succeeded - labels: - app.kubernetes.io/name: namespace-metadata - app.kubernetes.io/part-of: buoyant-cloud - app.kubernetes.io/version: v{{ .Chart.Version }} -spec: - template: - metadata: - annotations: - linkerd.io/inject: disabled - labels: - app.kubernetes.io/name: namespace-metadata - app.kubernetes.io/part-of: buoyant-cloud - app.kubernetes.io/version: v{{ .Chart.Version }} - spec: - restartPolicy: Never - serviceAccountName: namespace-metadata - containers: - - name: namespace-metadata - image: curlimages/curl:7.80.0 - command: ["/bin/sh"] - args: - - -c - - | - ops='' - token=$(cat /var/run/secrets/kubernetes.io/serviceaccount/token) - ns=$(curl -kfv -H "Authorization: Bearer $token" \ - "https://kubernetes.default.svc/api/v1/namespaces/{{.Release.Namespace}}") - - if echo "$ns" | grep -vq 'labels'; then - ops="$ops{\"op\": \"add\",\"path\": \"/metadata/labels\",\"value\": {}}," - fi - if echo "$ns" | grep -vq 'annotations'; then - ops="$ops{\"op\": \"add\", \"path\": \"/metadata/annotations\", \"value\": {}}," - fi - - ops="$ops{\"op\": \"add\", \"path\": \"/metadata/labels/app.kubernetes.io~1part-of\", \"value\": \"buoyant-cloud\"}," - ops="$ops{\"op\": \"add\", \"path\": \"/metadata/labels/linkerd.io~1extension\", \"value\": \"buoyant\"}," - - ops="$ops{\"op\": \"add\", \"path\": \"/metadata/annotations/linkerd.io~1inject\", \"value\": \"enabled\"}" - - curl -kfv -XPATCH -H "Content-Type: application/json-patch+json" -H "Authorization: Bearer $token" \ - -d "[$ops]" \ - "https://kubernetes.default.svc/api/v1/namespaces/{{.Release.Namespace}}?fieldManager=kubectl-label" diff --git a/charts/linkerd-buoyant/templates/namespace.yaml b/charts/linkerd-buoyant/templates/namespace.yaml deleted file mode 100644 index f55143e..0000000 --- a/charts/linkerd-buoyant/templates/namespace.yaml +++ /dev/null @@ -1,14 +0,0 @@ -{{- if eq .Release.Service "Buoyant Cloud" -}} -# -# Buoyant Cloud Namespace -# -kind: Namespace -apiVersion: v1 -metadata: - name: {{ .Release.Namespace }} - annotations: - linkerd.io/inject: enabled - labels: - app.kubernetes.io/part-of: buoyant-cloud - linkerd.io/extension: buoyant -{{ end -}} diff --git a/charts/linkerd-buoyant/templates/rbac.yaml b/charts/linkerd-buoyant/templates/rbac.yaml deleted file mode 100644 index c3f7bf8..0000000 --- a/charts/linkerd-buoyant/templates/rbac.yaml +++ /dev/null @@ -1,86 +0,0 @@ -kind: ServiceAccount -apiVersion: v1 -metadata: - name: buoyant-cloud-agent - {{- if eq .Release.Service "Buoyant Cloud" }} - namespace: {{.Release.Namespace}} - {{- end }} - labels: - app.kubernetes.io/part-of: buoyant-cloud ---- -kind: ClusterRole -apiVersion: rbac.authorization.k8s.io/v1 -metadata: - name: buoyant-cloud-agent - labels: - app.kubernetes.io/part-of: buoyant-cloud -rules: -- apiGroups: [""] - resources: ["services", "pods", "events", "nodes", "nodes/proxy", "pods/log"] - verbs: ["get", "list", "watch"] -- apiGroups: ["policy.linkerd.io"] - resources: ["servers", "serverauthorizations", "authorizationpolicies", "meshtlsauthentications", "networkauthentications"] - verbs: ["get", "list", "watch"] -- apiGroups: ["linkerd.io"] - resources: ["serviceprofiles"] - verbs: ["list", "get", "watch"] -- apiGroups: ["split.smi-spec.io"] - resources: ["trafficsplits"] - verbs: ["list", "get", "watch"] -- apiGroups: ["multicluster.linkerd.io"] - resources: ["links"] - verbs: ["list", "get", "watch"] -- apiGroups: [""] - resources: ["configmaps"] - resourceNames: ["linkerd-config", "linkerd-identity-trust-roots"] - verbs: ["get"] -- apiGroups: ["apps"] - resources: ["daemonsets", "deployments", "replicasets", "statefulsets"] - verbs: ["list", "get", "watch"] -- apiGroups: ["metrics.k8s.io"] - resources: ["pods"] - verbs: ["list", "get"] ---- -kind: ClusterRoleBinding -apiVersion: rbac.authorization.k8s.io/v1 -metadata: - name: buoyant-cloud-agent - labels: - app.kubernetes.io/part-of: buoyant-cloud -roleRef: - apiGroup: rbac.authorization.k8s.io - kind: ClusterRole - name: buoyant-cloud-agent -subjects: -- kind: ServiceAccount - name: buoyant-cloud-agent - namespace: {{.Release.Namespace}} ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: Role -metadata: - namespace: {{.Release.Namespace}} - name: buoyant-cloud-agent - labels: - app.kubernetes.io/part-of: buoyant-cloud -rules: -- apiGroups: [""] - resources: ["configmaps"] - resourceNames: ["agent-metadata"] - verbs: ["get", "update"] ---- -kind: RoleBinding -apiVersion: rbac.authorization.k8s.io/v1 -metadata: - namespace: {{.Release.Namespace}} - name: buoyant-cloud-agent - labels: - app.kubernetes.io/part-of: buoyant-cloud -roleRef: - apiGroup: rbac.authorization.k8s.io - kind: Role - name: buoyant-cloud-agent -subjects: -- kind: ServiceAccount - name: buoyant-cloud-agent - namespace: {{.Release.Namespace}} diff --git a/charts/linkerd-buoyant/values.yaml b/charts/linkerd-buoyant/values.yaml deleted file mode 100644 index 3995566..0000000 --- a/charts/linkerd-buoyant/values.yaml +++ /dev/null @@ -1,45 +0,0 @@ -agent: - # -- API address for Buoyant Cloud - apiAddress: api.buoyant.cloud:443 - - # -- image of the buoyant-cloud-agent pod - image: ghcr.io/buoyantio/linkerd-buoyant - - # -- imageVersion of the buoyant-cloud-agent pod - imageVersion: - - # -- Disable TLS. Only use for testing. - noTLS: false - - # -- Log level for the buoyant-cloud-agent pod - logLevel: info - -metrics: - # -- API address for Buoyant Cloud - apiAddress: api.buoyant.cloud:443 - - # -- Disable TLS. Only use for testing. - noTLS: false - - # -- Log level for the buoyant-cloud-metrics pod - logLevel: info - -metadata: - # -- The ID for this agent - agentID: - - # -- The name for this agent. Required. - agentName: - -api: - # -- The client id. Required. - clientID: - - # -- The client secret. Required. - clientSecret: - - # -- API address for Buoyant Cloud - apiAddress: api.buoyant.cloud:443 - - # -- Disable TLS. Only use for testing. - noTLS: false diff --git a/charts/lintconf.yaml b/charts/lintconf.yaml deleted file mode 100644 index 90f48c8..0000000 --- a/charts/lintconf.yaml +++ /dev/null @@ -1,42 +0,0 @@ ---- -rules: - braces: - min-spaces-inside: 0 - max-spaces-inside: 0 - min-spaces-inside-empty: -1 - max-spaces-inside-empty: -1 - brackets: - min-spaces-inside: 0 - max-spaces-inside: 0 - min-spaces-inside-empty: -1 - max-spaces-inside-empty: -1 - colons: - max-spaces-before: 0 - max-spaces-after: 1 - commas: - max-spaces-before: 0 - min-spaces-after: 1 - max-spaces-after: 1 - comments: - require-starting-space: true - min-spaces-from-content: 2 - document-end: disable - document-start: disable # No --- to start a file - empty-lines: - max: 2 - max-start: 0 - max-end: 0 - hyphens: - max-spaces-after: 1 - indentation: - spaces: consistent - indent-sequences: whatever # - list indentation will handle both indentation and without - check-multi-line-strings: false - key-duplicates: enable - line-length: disable # Lines can be any length - new-line-at-end-of-file: enable - new-lines: - type: unix - trailing-spaces: enable - truthy: - level: warning diff --git a/cli/cmd/check.go b/cli/cmd/check.go deleted file mode 100644 index a395c64..0000000 --- a/cli/cmd/check.go +++ /dev/null @@ -1,90 +0,0 @@ -package cmd - -import ( - "fmt" - "net/http" - "os" - "time" - - pkghealthcheck "github.com/buoyantio/linkerd-buoyant/cli/pkg/healthcheck" - "github.com/buoyantio/linkerd-buoyant/cli/pkg/k8s" - "github.com/linkerd/linkerd2/pkg/healthcheck" - "github.com/spf13/cobra" -) - -type checkConfig struct { - *config - output string - wait time.Duration -} - -func newCmdCheck(cfg *config) *cobra.Command { - checkCfg := &checkConfig{config: cfg} - - cmd := &cobra.Command{ - Use: "check [flags]", - Args: cobra.NoArgs, - Short: "Check the Buoyant Cloud agent installation for potential problems", - Long: `Check the Buoyant Cloud agent installation for potential problems. - -The check command will perform a series of checks to validate that the -linkerd-buoyant CLI and Buoyant Cloud agent are configured correctly. If the -command encounters a failure it will print additional information about the -failure and exit with a non-zero exit code.`, - Example: ` # Default check. - linkerd-buoyant check -`, - RunE: func(cmd *cobra.Command, args []string) error { - client, err := k8s.New(checkCfg.kubeconfig, checkCfg.kubecontext) - if err != nil { - return err - } - - return check(checkCfg, client) - }, - } - - cmd.Flags().StringVarP(&checkCfg.output, "output", "o", healthcheck.TableOutput, "Output format. One of: table, json") - cmd.Flags().DurationVar(&checkCfg.wait, "wait", 1*time.Minute, "Maximum allowed time for all tests to pass") - - // hidden and unused, to satisfy linkerd extension interface - var proxy bool - var namespace string - var impersonateGroup []string - cmd.Flags().BoolVar(&proxy, "proxy", false, "") - cmd.Flags().StringVarP(&namespace, "namespace", "n", "", "") - cmd.Flags().StringArrayVar(&impersonateGroup, "as-group", []string{}, "") - cmd.Flags().MarkHidden("proxy") - cmd.Flags().MarkHidden("namespace") - cmd.Flags().MarkHidden("as-group") - - return cmd -} - -func check(cfg *checkConfig, k8s k8s.Client) error { - if cfg.output != healthcheck.TableOutput && cfg.output != healthcheck.JSONOutput { - return fmt.Errorf( - "Invalid output type '%s'. Supported output types are: %s, %s", - cfg.output, healthcheck.TableOutput, healthcheck.JSONOutput, - ) - } - - hc := pkghealthcheck.NewHealthChecker( - &healthcheck.Options{ - RetryDeadline: time.Now().Add(cfg.wait), - }, - k8s, - http.DefaultClient, - cfg.bcloudServer, - ) - - hc.AppendCategories(hc.L5dBuoyantCategory()) - success, warning := healthcheck.RunChecks(cfg.stdout, cfg.stderr, hc, cfg.output) - healthcheck.PrintChecksResult(cfg.stdout, cfg.output, success, warning) - - if !success { - os.Exit(1) - } - - return nil -} diff --git a/cli/cmd/check_test.go b/cli/cmd/check_test.go deleted file mode 100644 index 6c48689..0000000 --- a/cli/cmd/check_test.go +++ /dev/null @@ -1,21 +0,0 @@ -package cmd - -import ( - "errors" - "reflect" - "testing" - - "github.com/buoyantio/linkerd-buoyant/cli/pkg/k8s" -) - -func TestCheck(t *testing.T) { - expErr := errors.New("Invalid output type 'bad-output'. Supported output types are: table, json") - checkCfg := &checkConfig{ - output: "bad-output", - } - - err := check(checkCfg, &k8s.MockClient{}) - if !reflect.DeepEqual(err, expErr) { - t.Errorf("Expected: [%s], Got: [%s]", expErr, err) - } -} diff --git a/cli/cmd/config.go b/cli/cmd/config.go deleted file mode 100644 index c023731..0000000 --- a/cli/cmd/config.go +++ /dev/null @@ -1,22 +0,0 @@ -package cmd - -import ( - "fmt" - "io" -) - -type config struct { - kubecontext string - kubeconfig string - verbose bool - bcloudServer string - bcloudAPI string - stdout io.Writer - stderr io.Writer -} - -func (c *config) printVerbosef(format string, a ...interface{}) { - if c.verbose { - fmt.Fprintf(c.stderr, format+"\n", a...) - } -} diff --git a/cli/cmd/config_test.go b/cli/cmd/config_test.go deleted file mode 100644 index f671dc1..0000000 --- a/cli/cmd/config_test.go +++ /dev/null @@ -1,24 +0,0 @@ -package cmd - -import ( - "bytes" - "testing" -) - -func TestPrintVerbosef(t *testing.T) { - stderr := &bytes.Buffer{} - cfg := config{ - stderr: stderr, - } - - cfg.printVerbosef("test output") - if stderr.String() != "" { - t.Errorf("Expected not verbose output, got: [%s]", stderr.String()) - } - - cfg.verbose = true - cfg.printVerbosef("test output") - if stderr.String() != "test output\n" { - t.Errorf("Expect verbose output [test output], got: [%s]", stderr.String()) - } -} diff --git a/cli/cmd/dashboard.go b/cli/cmd/dashboard.go deleted file mode 100644 index 06592ee..0000000 --- a/cli/cmd/dashboard.go +++ /dev/null @@ -1,30 +0,0 @@ -package cmd - -import ( - "fmt" - - "github.com/spf13/cobra" -) - -// openURL allows mocking the browser.OpenURL function, so our tests do not open -// a browser window. -type openURL func(url string) error - -func newCmdDashboard(cfg *config, openURL openURL) *cobra.Command { - return &cobra.Command{ - Use: "dashboard [flags]", - Args: cobra.NoArgs, - Short: "Open the Buoyant Cloud dashboard", - RunE: func(cmd *cobra.Command, args []string) error { - fmt.Fprintln(cfg.stdout, "Opening Buoyant Cloud dashboard in the default browser") - - err := openURL(cfg.bcloudServer) - if err != nil { - fmt.Fprintln(cfg.stderr, "Failed to open dashboard automatically") - fmt.Fprintf(cfg.stderr, "Visit %s in your browser to view the dashboard\n", cfg.bcloudServer) - } - - return nil - }, - } -} diff --git a/cli/cmd/dashboard_test.go b/cli/cmd/dashboard_test.go deleted file mode 100644 index 31851e7..0000000 --- a/cli/cmd/dashboard_test.go +++ /dev/null @@ -1,58 +0,0 @@ -package cmd - -import ( - "bytes" - "errors" - "strings" - "testing" -) - -func TestDashboard(t *testing.T) { - stdout := &bytes.Buffer{} - stderr := &bytes.Buffer{} - cfg := &config{ - stdout: stdout, - stderr: stderr, - bcloudServer: "http://example.com", - } - - var openedUrl string - mockOpen := func(url string) error { - openedUrl = url - return nil - } - - cmd := newCmdDashboard(cfg, mockOpen) - err := cmd.RunE(cmd, nil) - if err != nil { - t.Error(err) - } - - if openedUrl != cfg.bcloudServer { - t.Fatalf("Expected to open url %s, Got %s", cfg.bcloudServer, openedUrl) - } -} - -func TestDashboardFailure(t *testing.T) { - stdout := &bytes.Buffer{} - stderr := &bytes.Buffer{} - cfg := &config{ - stdout: stdout, - stderr: stderr, - bcloudServer: "http://example.com", - } - - mockOpen := func(string) error { - return errors.New("browser failuer") - } - - cmd := newCmdDashboard(cfg, mockOpen) - err := cmd.RunE(cmd, nil) - if err != nil { - t.Error(err) - } - - if !strings.Contains(stderr.String(), cfg.bcloudServer) { - t.Errorf("Expected stderr to contain [%s], Got: [%s]", cfg.bcloudServer, stderr.String()) - } -} diff --git a/cli/cmd/install.go b/cli/cmd/install.go deleted file mode 100644 index 63b2de3..0000000 --- a/cli/cmd/install.go +++ /dev/null @@ -1,131 +0,0 @@ -package cmd - -import ( - "context" - "fmt" - "os" - - "github.com/buoyantio/linkerd-buoyant/agent/pkg/bcloudapi" - "github.com/buoyantio/linkerd-buoyant/cli/pkg/k8s" - "github.com/spf13/cobra" -) - -type installCfg struct { - *config - agentName string - noTLS bool -} - -func newCmdInstall(cfg *config) *cobra.Command { - installCfg := &installCfg{config: cfg} - - cmd := &cobra.Command{ - Use: "install [flags]", - Args: cobra.NoArgs, - Short: "Output Buoyant Cloud agent manifest for installation", - Long: `Output Buoyant Cloud agent manifest for installation. - -This command provides the Kubernetes configs necessary to install the Buoyant -Cloud agent on your cluster. - -If an agent is not already present, this command provides a manifest to apply to -your cluster, which auto-registers the cluster with Buoyant Cloud using the name -that you've specified. - -If an agent is already present, this command retrieves an updated manifest from -Buoyant Cloud and outputs it. - -Note that this command requires that the BUOYANT_CLOUD_CLIENT_ID and -BUOYANT_CLOUD_CLIENT_SECRET environment variables are set. To retrieve the correct -values for these variables, visit: https://buoyant.cloud/settings?cli=1.`, - Example: ` # Default install (no agent on cluster). - linkerd buoyant install --cluster-name=my-new-cluster | kubectl apply -f - - - # Obtain a manifest for an agent that already exists on your cluster - linkerd buoyant install | kubectl apply -f - - - # Install onto a specific cluster - linkerd buoyant --context test-cluster install | kubectl --context test-cluster apply -f -`, - RunE: func(cmd *cobra.Command, args []string) error { - client, err := k8s.New(installCfg.kubeconfig, cfg.kubecontext) - if err != nil { - return err - } - - // get clientID and clientSecret from either k8s or env vars - var clientID, clientSecret string - - secret, err := client.Secret(cmd.Context()) - if err == nil && secret != nil { - clientID = string(secret.Data["client_id"]) - clientSecret = string(secret.Data["client_secret"]) - } - - // prefer env vars - if os.Getenv("BUOYANT_CLOUD_CLIENT_ID") != "" { - clientID = os.Getenv("BUOYANT_CLOUD_CLIENT_ID") - } - if os.Getenv("BUOYANT_CLOUD_CLIENT_SECRET") != "" { - clientSecret = os.Getenv("BUOYANT_CLOUD_CLIENT_SECRET") - } - - if clientID == "" || clientSecret == "" { - fmt.Fprint( - cfg.stderr, - "This command requires that the BUOYANT_CLOUD_CLIENT_ID and BUOYANT_CLOUD_CLIENT_SECRET\n", - "environment variables be set. To retrieve the correct values for these\n", - "variables, visit: https://buoyant.cloud/settings?cli=1.\n\n", - ) - os.Exit(1) - } - - apiClient := bcloudapi.New(clientID, clientSecret, installCfg.bcloudAPI, installCfg.noTLS) - - return install(cmd.Context(), installCfg, client, apiClient) - }, - } - - cmd.Flags().StringVar(&installCfg.agentName, "cluster-name", "", "The name of the cluster in Buoyant Cloud") - cmd.Flags().BoolVar(&installCfg.noTLS, "no-tls", false, "Disable TLS in development mode") - - cmd.Flags().MarkHidden("insecure") - return cmd -} - -func install(ctx context.Context, cfg *installCfg, client k8s.Client, apiClient bcloudapi.Client) error { - var identifier bcloudapi.AgentIdentifier - if cfg.agentName != "" { - // we need a manifest for a specific name - identifier = bcloudapi.AgentName(cfg.agentName) - } else { - // we need to look at the cluster - agent, err := client.Agent(ctx) - if err != nil { - return err - } - - if agent != nil && agent.Id != "" { - identifier = bcloudapi.AgentID(agent.Id) - } else if agent != nil && agent.Name != "" { - identifier = bcloudapi.AgentName(agent.Name) - } else { - fmt.Fprintf(cfg.stderr, - "Could not find valid agent installation on cluster. To install agent run:\n%s\n", - "linkerd buoyant install --cluster-name=my-new-agent | kubectl apply -f -", - ) - os.Exit(1) - } - } - - manifest, err := apiClient.GetAgentManifest(ctx, identifier) - if err != nil { - return fmt.Errorf("failed to retrieve agent manifest from bcloud server for agent identifier %T %s: %w", identifier, identifier.Value(), err) - } - - // output the YAML manifest, this is the only thing that outputs to stdout - fmt.Fprintf(cfg.stdout, "%s\n", manifest) - - fmt.Fprint(cfg.stderr, "Need help? Message us in the #buoyant-cloud Slack channel:\nhttps://linkerd.slack.com/archives/C01QSTM20BY\n\n") - - return nil -} diff --git a/cli/cmd/install_test.go b/cli/cmd/install_test.go deleted file mode 100644 index 7fdd2c6..0000000 --- a/cli/cmd/install_test.go +++ /dev/null @@ -1,165 +0,0 @@ -package cmd - -import ( - "bytes" - "context" - "errors" - "fmt" - "reflect" - "testing" - - "github.com/buoyantio/linkerd-buoyant/agent/pkg/bcloudapi" - "github.com/buoyantio/linkerd-buoyant/cli/pkg/k8s" - "google.golang.org/grpc/credentials" -) - -type MockClient struct { - Identifier bcloudapi.AgentIdentifier - ManifestToReturn string - Err error -} - -func (mc *MockClient) GetAgentManifest(ctx context.Context, identifier bcloudapi.AgentIdentifier) (string, error) { - mc.Identifier = identifier - if mc.Err != nil { - return "", mc.Err - } - return mc.ManifestToReturn, nil -} - -func (mc *MockClient) RegisterAgent(ctx context.Context, agentName string) (*bcloudapi.AgentInfo, error) { - return nil, nil -} - -func (mc *MockClient) Credentials(ctx context.Context, agentID string) credentials.PerRPCCredentials { - return nil -} - -const fakeAgentName = "fake-agent-name" -const fakeAgentID = "fake-agent-id" -const fakeYaml = "fake-yaml" - -func TestInstallNewAgent(t *testing.T) { - stdout := &bytes.Buffer{} - stderr := &bytes.Buffer{} - cfg := &installCfg{ - config: &config{ - stdout: stdout, - stderr: stderr, - }, - agentName: fakeAgentName, - } - - client := &k8s.MockClient{} - apiClient := &MockClient{ManifestToReturn: fakeYaml} - - err := install(context.TODO(), cfg, client, apiClient) - if err != nil { - t.Error(err) - } - - if stdout.String() != fmt.Sprintf("%s\n", fakeYaml) { - t.Errorf("Expected: [%s], Got: [%s]", fakeYaml, stdout.String()) - } - - name, ok := apiClient.Identifier.(bcloudapi.AgentName) - if !ok { - t.Fatalf("Expected to call api with AgentName, called with: %+v", apiClient.Identifier) - } - if name.Value() != fakeAgentName { - t.Fatalf("Expected name identifier to be %s, got: %s", fakeAgentName, name.Value()) - } -} - -func TestInstallExistingAgent(t *testing.T) { - t.Run("gets manifest with name", func(t *testing.T) { - stdout := &bytes.Buffer{} - stderr := &bytes.Buffer{} - cfg := &installCfg{ - config: &config{ - stdout: stdout, - stderr: stderr, - }, - } - - client := &k8s.MockClient{ - MockAgent: &k8s.Agent{ - Name: fakeAgentName, - Version: "version", - }, - } - apiClient := &MockClient{ManifestToReturn: fakeYaml} - - err := install(context.TODO(), cfg, client, apiClient) - if err != nil { - t.Error(err) - } - if stdout.String() != fmt.Sprintf("%s\n", fakeYaml) { - t.Errorf("Expected: [%s], Got: [%s]", fakeYaml, stdout.String()) - } - - name, ok := apiClient.Identifier.(bcloudapi.AgentName) - if !ok { - t.Fatalf("Expected to call api with AgentName, called with: %+v", apiClient.Identifier) - } - if name.Value() != fakeAgentName { - t.Fatalf("Expected name identifier to be %s, got: %s", fakeAgentName, name.Value()) - } - }) - - t.Run("gets manifest with Id", func(t *testing.T) { - stdout := &bytes.Buffer{} - stderr := &bytes.Buffer{} - cfg := &installCfg{ - config: &config{ - stdout: stdout, - stderr: stderr, - }, - } - - client := &k8s.MockClient{ - MockAgent: &k8s.Agent{ - Id: fakeAgentID, - Version: "version", - }, - } - apiClient := &MockClient{ManifestToReturn: fakeYaml} - - err := install(context.TODO(), cfg, client, apiClient) - if err != nil { - t.Error(err) - } - if stdout.String() != fmt.Sprintf("%s\n", fakeYaml) { - t.Errorf("Expected: [%s], Got: [%s]", fakeYaml, stdout.String()) - } - - id, ok := apiClient.Identifier.(bcloudapi.AgentID) - if !ok { - t.Fatalf("Expected to call api with AgentID, called with: %+v", apiClient.Identifier) - } - if id.Value() != fakeAgentID { - t.Fatalf("Expected name identifier to be %s, got: %s", fakeAgentID, id.Value()) - } - }) -} - -func TestInstallError(t *testing.T) { - stdout := &bytes.Buffer{} - stderr := &bytes.Buffer{} - cfg := &installCfg{ - config: &config{ - stdout: stdout, - stderr: stderr, - }, - agentName: "fake-agent-name", - } - - apiError := errors.New("problem with API") - expectedError := fmt.Errorf("failed to retrieve agent manifest from bcloud server for agent identifier bcloudapi.AgentName fake-agent-name: %w", apiError) - client := &k8s.MockClient{} - apiClient := &MockClient{Err: apiError} - err := install(context.TODO(), cfg, client, apiClient) - if !reflect.DeepEqual(err, expectedError) { - t.Errorf("Expected error: %s, Got: %s", expectedError, err) - } -} diff --git a/cli/cmd/root.go b/cli/cmd/root.go deleted file mode 100644 index 7cb8ba2..0000000 --- a/cli/cmd/root.go +++ /dev/null @@ -1,72 +0,0 @@ -package cmd - -import ( - "os" - "path/filepath" - - "github.com/buoyantio/linkerd-buoyant/cli/pkg/version" - "github.com/fatih/color" - "github.com/pkg/browser" - "github.com/spf13/cobra" - "k8s.io/client-go/util/homedir" -) - -// Root returns the root linkerd-buoyant command. All subcommands hang off of -// this. -func Root() *cobra.Command { - cfg := &config{ - // special handling for Windows, on all other platforms these resolve to - // os.Stdout and os.Stderr, thanks to https://github.com/mattn/go-colorable - stdout: color.Output, - stderr: color.Error, - } - - root := &cobra.Command{ - Use: version.LinkerdBuoyant, - Short: "Manage the Linkerd Buoyant extension", - Long: `linkerd-buoyant manages the Buoyant Cloud agent. - -It enables operational control over the Buoyant Cloud agent, providing install, -upgrade, and delete functionality.`, - PersistentPreRunE: func(cmd *cobra.Command, args []string) error { - return nil - }, - } - - defaultKubeConfig := "" - if home := homedir.HomeDir(); home != "" { - kubeconfig := filepath.Join(home, ".kube", "config") - _, err := os.Stat(kubeconfig) - if !os.IsNotExist(err) { - defaultKubeConfig = kubeconfig - } - } - - // global flags - root.PersistentFlags().StringVar(&cfg.kubecontext, "context", "", "The name of the kubeconfig context to use") - root.PersistentFlags().StringVar(&cfg.kubeconfig, "kubeconfig", defaultKubeConfig, "Path to the kubeconfig file to use for CLI requests") - root.PersistentFlags().BoolVarP(&cfg.verbose, "verbose", "v", false, "Turn on debug logging") - - // hidden flags - root.PersistentFlags().StringVar(&cfg.bcloudServer, "bcloud-server", "https://buoyant.cloud", "Buoyant Cloud server to retrieve manifests from (for testing)") - root.PersistentFlags().StringVar(&cfg.bcloudAPI, "bcloud-api", "api.buoyant.cloud:443", "Buoyant Cloud API to retrieve manifests from (for testing)") - - root.PersistentFlags().MarkHidden("bcloud-server") - root.PersistentFlags().MarkHidden("bcloud-api") - - // hidden and unused flags, to satisfy linkerd extension interface - var apiAddr, l5dVersion string - root.PersistentFlags().StringVar(&apiAddr, "api-addr", "", "") - root.PersistentFlags().StringVarP(&l5dVersion, "linkerd-namespace", "l", "", "") - root.PersistentFlags().MarkHidden("linkerd-namespace") - root.PersistentFlags().MarkHidden("api-addr") - - // add all subcommands - root.AddCommand(newCmdCheck(cfg)) - root.AddCommand(newCmdInstall(cfg)) - root.AddCommand(newCmdUninstall(cfg)) - root.AddCommand(newCmdVersion(cfg)) - root.AddCommand(newCmdDashboard(cfg, browser.OpenURL)) - - return root -} diff --git a/cli/cmd/uninstall.go b/cli/cmd/uninstall.go deleted file mode 100644 index d7f8249..0000000 --- a/cli/cmd/uninstall.go +++ /dev/null @@ -1,69 +0,0 @@ -package cmd - -import ( - "context" - "fmt" - - "github.com/buoyantio/linkerd-buoyant/cli/pkg/k8s" - "github.com/spf13/cobra" -) - -func newCmdUninstall(cfg *config) *cobra.Command { - cmd := &cobra.Command{ - Use: "uninstall [flags]", - Args: cobra.NoArgs, - Short: "Output Kubernetes manifest to uninstall the Buoyant Cloud agent", - Long: `Output Kubernetes manifest to uninstall the Buoyant Cloud agent. - -This command provides all Kubernetes namespace-scoped and cluster-scoped -resources (e.g Namespace, RBACs, etc.) necessary to uninstall the Buoyant Cloud -Agent.`, - Example: ` # Default uninstall. - linkerd buoyant uninstall | kubectl delete -f - - - # Unnstall from a specific cluster - linkerd buoyant --context test-cluster uninstall | kubectl delete --context test-cluster -f -`, - RunE: func(cmd *cobra.Command, args []string) error { - client, err := k8s.New(cfg.kubeconfig, cfg.kubecontext) - if err != nil { - return err - } - - return uninstall(cmd.Context(), cfg, client) - }, - } - - return cmd -} - -func uninstall(ctx context.Context, cfg *config, client k8s.Client) error { - resources, err := client.Resources(ctx) - if err != nil { - return err - } - - if len(resources) == 0 { - fmt.Fprintf(cfg.stderr, "No linkerd-buoyant resources found on cluster.\n") - return nil - } - - cfg.printVerbosef("Found %d resources for deletion", len(resources)) - - // retrieve agent prior to deletion - agent, _ := client.Agent(ctx) - - // print out all linkerd-buoyant resources to be deleted - if len(resources) > 0 { - for _, r := range resources { - fmt.Fprintf(cfg.stdout, "%s---\n", r) - } - fmt.Fprintf(cfg.stderr, "\n") - } - - // if agent is present, output its name and command for posterity - if agent != nil { - fmt.Fprintf(cfg.stderr, "Agent manifest will remain available via:\nlinkerd buoyant install --cluster-name=%s\n\n", agent.Name) - } - - return nil -} diff --git a/cli/cmd/uninstall_test.go b/cli/cmd/uninstall_test.go deleted file mode 100644 index b6ded2b..0000000 --- a/cli/cmd/uninstall_test.go +++ /dev/null @@ -1,38 +0,0 @@ -package cmd - -import ( - "bytes" - "context" - "strings" - "testing" - - "github.com/buoyantio/linkerd-buoyant/cli/pkg/k8s" -) - -func TestUninstall(t *testing.T) { - stdout := &bytes.Buffer{} - stderr := &bytes.Buffer{} - - cfg := &config{ - stdout: stdout, - stderr: stderr, - bcloudServer: "http://example.com", - } - - client := &k8s.MockClient{ - MockAgent: &k8s.Agent{Name: "/fake-url"}, - MockResources: []string{"resource-1", "resource-2", "resource-3"}, - } - err := uninstall(context.TODO(), cfg, client) - if err != nil { - t.Error(err) - } - - expStdout := "resource-1---\nresource-2---\nresource-3---\n" - if stdout.String() != expStdout { - t.Errorf("Expected %s, Got %s", expStdout, stdout.String()) - } - if !strings.Contains(stderr.String(), "/fake-url") { - t.Errorf("Expected stderr to contain /fake-url, Got %s", stderr.String()) - } -} diff --git a/cli/cmd/version.go b/cli/cmd/version.go deleted file mode 100644 index e58be7c..0000000 --- a/cli/cmd/version.go +++ /dev/null @@ -1,74 +0,0 @@ -package cmd - -import ( - "context" - "fmt" - - "github.com/buoyantio/linkerd-buoyant/cli/pkg/k8s" - "github.com/buoyantio/linkerd-buoyant/cli/pkg/version" - "github.com/spf13/cobra" -) - -type versionConfig struct { - *config - short bool - cli bool -} - -func newCmdVersion(cfg *config) *cobra.Command { - versionCfg := &versionConfig{config: cfg} - - cmd := &cobra.Command{ - Use: "version [flags]", - Args: cobra.NoArgs, - Short: "Print the CLI and agent version information", - RunE: func(cmd *cobra.Command, args []string) error { - if versionCfg.cli { - return versionCmd(cmd.Context(), versionCfg, nil) - } - - client, err := k8s.New(cfg.kubeconfig, cfg.kubecontext) - if err != nil { - return err - } - return versionCmd(cmd.Context(), versionCfg, client) - }, - } - - cmd.Flags().BoolVar(&versionCfg.short, "short", false, "Print the version number(s) only, with no additional output") - cmd.Flags().BoolVar(&versionCfg.cli, "cli", false, "Print the CLI version only") - - return cmd -} - -func versionCmd( - ctx context.Context, cfg *versionConfig, client k8s.Client, -) error { - if cfg.short { - fmt.Fprintf(cfg.stdout, "%s\n", version.Version) - } else { - fmt.Fprintf(cfg.stdout, "CLI version: %s\n", version.Version) - } - - if cfg.cli || client == nil { - return nil - } - - agent, err := client.Agent(ctx) - if err != nil { - cfg.printVerbosef("Failed to get Agent version: %s\n", err) - } - - agentVersion := "unavailable" - if agent != nil { - agentVersion = agent.Version - } - - if cfg.short { - fmt.Fprintf(cfg.stdout, "%s\n", agentVersion) - } else { - fmt.Fprintf(cfg.stdout, "Agent version: %s\n", agentVersion) - } - - return nil -} diff --git a/cli/cmd/version_test.go b/cli/cmd/version_test.go deleted file mode 100644 index 978160e..0000000 --- a/cli/cmd/version_test.go +++ /dev/null @@ -1,69 +0,0 @@ -package cmd - -import ( - "bytes" - "context" - "testing" - - "github.com/buoyantio/linkerd-buoyant/cli/pkg/k8s" -) - -func TestVersion(t *testing.T) { - fixtures := []*struct { - testName string - cfg *versionConfig - stdout string - stderr string - }{ - { - "defaults", - &versionConfig{config: &config{}}, - "CLI version: undefined\nAgent version: fake-version\n", - "", - }, - { - "short", - &versionConfig{config: &config{}, short: true}, - "undefined\nfake-version\n", - "", - }, - { - "cli", - &versionConfig{config: &config{}, cli: true}, - "CLI version: undefined\n", - "", - }, - { - "short and cli", - &versionConfig{config: &config{}, short: true, cli: true}, - "undefined\n", - "", - }, - } - - for _, tc := range fixtures { - tc := tc - t.Run(tc.testName, func(t *testing.T) { - stdout := &bytes.Buffer{} - stderr := &bytes.Buffer{} - - tc.cfg.stdout = stdout - tc.cfg.stderr = stderr - - client := &k8s.MockClient{ - MockAgent: &k8s.Agent{Version: "fake-version"}, - } - err := versionCmd(context.TODO(), tc.cfg, client) - if err != nil { - t.Error(err) - } - - if stdout.String() != tc.stdout { - t.Errorf("Expected stdout to be [%s], Got [%s]", tc.stdout, stdout.String()) - } - if stderr.String() != tc.stderr { - t.Errorf("Expected stderr to be [%s], Got [%s]", tc.stderr, stderr.String()) - } - }) - } -} diff --git a/cli/main.go b/cli/main.go deleted file mode 100644 index 7c36394..0000000 --- a/cli/main.go +++ /dev/null @@ -1,16 +0,0 @@ -package main - -import ( - "os" - - "github.com/buoyantio/linkerd-buoyant/cli/cmd" - - // Load all the auth plugins for the cloud providers. - _ "k8s.io/client-go/plugin/pkg/client/auth" -) - -func main() { - if err := cmd.Root().Execute(); err != nil { - os.Exit(1) - } -} diff --git a/cli/pkg/healthcheck/healthcheck.go b/cli/pkg/healthcheck/healthcheck.go deleted file mode 100644 index 1f19389..0000000 --- a/cli/pkg/healthcheck/healthcheck.go +++ /dev/null @@ -1,246 +0,0 @@ -package healthcheck - -import ( - "context" - "fmt" - "net/http" - - agentk8s "github.com/buoyantio/linkerd-buoyant/agent/pkg/k8s" - "github.com/buoyantio/linkerd-buoyant/cli/pkg/k8s" - "github.com/buoyantio/linkerd-buoyant/cli/pkg/version" - "github.com/linkerd/linkerd2/pkg/healthcheck" - l5dk8s "github.com/linkerd/linkerd2/pkg/k8s" - v1 "k8s.io/api/core/v1" -) - -const ( - // categoryID identifies this extension to linkerd check. - categoryID healthcheck.CategoryID = version.LinkerdBuoyant -) - -// HealthChecker wraps Linkerd's main healthchecker, adding extra fields for -// linkerd-buoyant. -type HealthChecker struct { - *healthcheck.HealthChecker - k8s k8s.Client - http *http.Client - bcloudServer string - - // these fields are used as caches between checks - version string - ns *v1.Namespace -} - -type getWorkloadLabelsFn func(ctx context.Context) (map[string]string, error) - -// NewHealthChecker returns an initialized HealthChecker for linkerd-buoyant. -// The returned instance does not contain any linkerd-buoyant Categories. -// Categories are to be explicitly added by using hc.AppendCategories -func NewHealthChecker( - options *healthcheck.Options, - k8s k8s.Client, - http *http.Client, - bcloudServer string, -) *HealthChecker { - return &HealthChecker{ - HealthChecker: healthcheck.NewHealthChecker(nil, options), - k8s: k8s, - http: http, - bcloudServer: bcloudServer, - } -} - -// L5dBuoyantCategory returns a healthcheck.Category containing checkers to -// verify the health of linkerd-buoyant components. -func (hc *HealthChecker) L5dBuoyantCategory() *healthcheck.Category { - checks := append( - hc.globalChecks(), - append( - hc.deploymentChecks(k8s.AgentName), - hc.daemonSetChecks(k8s.MetricsName)..., - )..., - ) - return healthcheck.NewCategory(categoryID, checks, true).WithHintBaseURL("https://linkerd.io/checks#l5d-buoyant") -} - -func (hc *HealthChecker) globalChecks() []healthcheck.Checker { - return []healthcheck.Checker{ - *healthcheck.NewChecker("linkerd-buoyant can determine the latest version"). - Warning(). - WithCheck(func(ctx context.Context) error { - url := fmt.Sprintf("%s/version.json", hc.bcloudServer) - version, err := version.Get(ctx, hc.http, url) - if err != nil { - return err - } - hc.version = version - return nil - }), - *healthcheck.NewChecker("linkerd-buoyant cli is up-to-date"). - Warning(). - WithCheck(func(ctx context.Context) error { - if version.Version != hc.version { - return fmt.Errorf("CLI version is %s but the latest is %s", version.Version, hc.version) - } - return nil - }), - *healthcheck.NewChecker("buoyant-cloud Namespace exists"). - Fatal(). - WithCheck(func(ctx context.Context) error { - ns, err := hc.k8s.Namespace(ctx) - if err != nil { - return err - } - hc.ns = ns - return nil - }), - *healthcheck.NewChecker("buoyant-cloud Namespace has correct labels"). - Fatal(). - WithCheck(func(ctx context.Context) error { - err := checkLabel(hc.ns.GetLabels(), l5dk8s.LinkerdExtensionLabel, "buoyant") - if err != nil { - return err - } - return checkLabel(hc.ns.GetLabels(), k8s.PartOfKey, k8s.PartOfVal) - }), - *healthcheck.NewChecker("agent-metadata ConfigMap exists"). - Fatal(). - WithCheck(func(ctx context.Context) error { - cm, err := hc.k8s.ConfigMap(ctx) - if err != nil { - return err - } - - return checkLabel(cm.GetLabels(), k8s.PartOfKey, k8s.PartOfVal) - }), - *healthcheck.NewChecker("buoyant-cloud-org-credentials Secret exists"). - Fatal(). - WithCheck(func(ctx context.Context) error { - secret, err := hc.k8s.Secret(ctx) - if err != nil { - return err - } - - return checkLabel(secret.GetLabels(), k8s.PartOfKey, k8s.PartOfVal) - }), - *healthcheck.NewChecker("buoyant-cloud-agent ClusterRole exists"). - Fatal(). - WithCheck(func(ctx context.Context) error { - cr, err := hc.k8s.ClusterRole(ctx) - if err != nil { - return err - } - return checkLabel(cr.GetLabels(), k8s.PartOfKey, k8s.PartOfVal) - }), - *healthcheck.NewChecker("buoyant-cloud-agent ClusterRoleBinding exists"). - Fatal(). - WithCheck(func(ctx context.Context) error { - crb, err := hc.k8s.ClusterRoleBinding(ctx) - if err != nil { - return err - } - return checkLabel(crb.GetLabels(), k8s.PartOfKey, k8s.PartOfVal) - }), - *healthcheck.NewChecker("buoyant-cloud-agent ServiceAccount exists"). - Fatal(). - WithCheck(func(ctx context.Context) error { - sa, err := hc.k8s.ServiceAccount(ctx) - if err != nil { - return err - } - return checkLabel(sa.GetLabels(), k8s.PartOfKey, k8s.PartOfVal) - }), - } -} - -func (hc *HealthChecker) deploymentChecks(name string) []healthcheck.Checker { - getWorkloadLabels := func(ctx context.Context) (map[string]string, error) { - deploy, err := hc.k8s.Deployment(ctx, name) - if err != nil { - return nil, err - } - return deploy.GetLabels(), nil - } - - return hc.workloadChecks(name, agentk8s.Deployment, getWorkloadLabels, true) -} - -func (hc *HealthChecker) daemonSetChecks(name string) []healthcheck.Checker { - getWorkloadLabels := func(ctx context.Context) (map[string]string, error) { - ds, err := hc.k8s.DaemonSet(ctx, name) - if err != nil { - return nil, err - } - return ds.GetLabels(), nil - } - - return hc.workloadChecks(name, agentk8s.DaemonSet, getWorkloadLabels, false) -} - -func (hc *HealthChecker) workloadChecks( - name, kind string, getWorkloadLabels getWorkloadLabelsFn, singleton bool, -) []healthcheck.Checker { - var labels map[string]string - var pods []v1.Pod - - checks := []healthcheck.Checker{ - *healthcheck.NewChecker(fmt.Sprintf("%s %s exists", name, kind)). - Fatal(). - WithCheck(func(ctx context.Context) error { - var err error - labels, err = getWorkloadLabels(ctx) - if err != nil { - return err - } - return checkLabel(labels, k8s.PartOfKey, k8s.PartOfVal) - }), - *healthcheck.NewChecker(fmt.Sprintf("%s %s is running", name, kind)). - WithCheck(func(ctx context.Context) error { - labelSelector := fmt.Sprintf("app=%s", name) - podList, err := hc.k8s.Pods(ctx, labelSelector) - if err != nil { - return err - } - - pods = podList.Items - - if len(pods) == 0 { - return fmt.Errorf("no running pods for %s %s", name, kind) - } - - return healthcheck.CheckPodsRunning(pods, "") - }), - *healthcheck.NewChecker(fmt.Sprintf("%s %s is injected", name, kind)). - WithCheck(func(ctx context.Context) error { - return healthcheck.CheckIfDataPlanePodsExist(pods) - }), - *healthcheck.NewChecker(fmt.Sprintf("%s %s is up-to-date", name, kind)). - Warning(). - WithCheck(func(ctx context.Context) error { - return checkLabel(labels, k8s.VersionLabel, hc.version) - }), - } - - if singleton { - checks = append(checks, - *healthcheck.NewChecker(fmt.Sprintf("%s %s is running a single pod", name, kind)). - WithCheck(func(ctx context.Context) error { - if len(pods) != 1 { - return fmt.Errorf("expected 1 %s pod, found %d", name, len(pods)) - } - return nil - }), - ) - } - - return checks -} - -func checkLabel(labels map[string]string, key, val string) error { - if l, ok := labels[key]; !ok { - return fmt.Errorf("missing %s label", key) - } else if l != val { - return fmt.Errorf("incorrect %s label: %s, expected: %s", key, l, val) - } - return nil -} diff --git a/cli/pkg/healthcheck/healthcheck_test.go b/cli/pkg/healthcheck/healthcheck_test.go deleted file mode 100644 index 69b65f7..0000000 --- a/cli/pkg/healthcheck/healthcheck_test.go +++ /dev/null @@ -1,203 +0,0 @@ -package healthcheck - -import ( - "bytes" - "encoding/json" - "net/http" - "net/http/httptest" - "testing" - - agentk8s "github.com/buoyantio/linkerd-buoyant/agent/pkg/k8s" - "github.com/buoyantio/linkerd-buoyant/cli/pkg/k8s" - "github.com/buoyantio/linkerd-buoyant/cli/pkg/version" - "github.com/linkerd/linkerd2/pkg/healthcheck" - l5dk8s "github.com/linkerd/linkerd2/pkg/k8s" - appsv1 "k8s.io/api/apps/v1" - v1 "k8s.io/api/core/v1" - rbacv1 "k8s.io/api/rbac/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -func TestHealthChecker(t *testing.T) { - versionRsp := map[string]string{ - version.LinkerdBuoyant: version.Version, - } - - j, err := json.Marshal(versionRsp) - if err != nil { - t.Fatalf("JSON marshal failed with: %s", err) - } - - ts := httptest.NewServer(http.HandlerFunc( - func(w http.ResponseWriter, r *http.Request) { - w.Write(j) - }), - ) - defer ts.Close() - - fixtures := []*struct { - testName string - hc func() *HealthChecker - success bool - stdout string - }{ - { - "Empty", - func() *HealthChecker { - return NewHealthChecker( - &healthcheck.Options{}, - nil, - ts.Client(), - ts.URL, - ) - }, - true, - "\n", - }, - { - "Bad namespace", - func() *HealthChecker { - hc := NewHealthChecker( - &healthcheck.Options{}, - &k8s.MockClient{ - MockNamespace: &v1.Namespace{}, - }, - ts.Client(), - ts.URL, - ) - hc.AppendCategories(hc.L5dBuoyantCategory()) - return hc - }, - false, - `linkerd-buoyant ---------------- -√ linkerd-buoyant can determine the latest version -√ linkerd-buoyant cli is up-to-date -√ buoyant-cloud Namespace exists -× buoyant-cloud Namespace has correct labels - missing linkerd.io/extension label - see https://linkerd.io/checks#l5d-buoyant for hints - -`, - }, - { - "Success", - func() *HealthChecker { - objMeta := metav1.ObjectMeta{ - Name: agentk8s.AgentNamespace, - Labels: map[string]string{ - l5dk8s.LinkerdExtensionLabel: "buoyant", - k8s.PartOfKey: k8s.PartOfVal, - }, - } - objMetaDeploy := metav1.ObjectMeta{ - Name: agentk8s.AgentNamespace, - Labels: map[string]string{ - l5dk8s.LinkerdExtensionLabel: "buoyant", - k8s.PartOfKey: k8s.PartOfVal, - k8s.VersionLabel: version.Version, - }, - } - hc := NewHealthChecker( - &healthcheck.Options{}, - &k8s.MockClient{ - MockNamespace: &v1.Namespace{ - ObjectMeta: objMeta, - }, - MockClusterRole: &rbacv1.ClusterRole{ - ObjectMeta: objMeta, - }, - MockClusterRoleBinding: &rbacv1.ClusterRoleBinding{ - ObjectMeta: objMeta, - }, - MockConfigMap: &v1.ConfigMap{ - ObjectMeta: objMeta, - }, - MockSecret: &v1.Secret{ - ObjectMeta: objMeta, - }, - MockServiceAccount: &v1.ServiceAccount{ - ObjectMeta: objMeta, - }, - MockDaemonSet: &appsv1.DaemonSet{ - ObjectMeta: objMetaDeploy, - }, - MockDeployment: &appsv1.Deployment{ - ObjectMeta: objMetaDeploy, - }, - MockPods: &v1.PodList{ - Items: []v1.Pod{ - { - Status: v1.PodStatus{ - Phase: "Running", - ContainerStatuses: []v1.ContainerStatus{ - { - Name: l5dk8s.ProxyContainerName, - Ready: true, - }, - }, - }, - Spec: v1.PodSpec{ - Containers: []v1.Container{ - {Name: l5dk8s.ProxyContainerName}, - }, - }, - }, - }, - }, - }, - ts.Client(), - ts.URL, - ) - hc.AppendCategories(hc.L5dBuoyantCategory()) - return hc - }, - true, - `linkerd-buoyant ---------------- -√ linkerd-buoyant can determine the latest version -√ linkerd-buoyant cli is up-to-date -√ buoyant-cloud Namespace exists -√ buoyant-cloud Namespace has correct labels -√ agent-metadata ConfigMap exists -√ buoyant-cloud-org-credentials Secret exists -√ buoyant-cloud-agent ClusterRole exists -√ buoyant-cloud-agent ClusterRoleBinding exists -√ buoyant-cloud-agent ServiceAccount exists -√ buoyant-cloud-agent Deployment exists -√ buoyant-cloud-agent Deployment is running -√ buoyant-cloud-agent Deployment is injected -√ buoyant-cloud-agent Deployment is up-to-date -√ buoyant-cloud-agent Deployment is running a single pod -√ buoyant-cloud-metrics DaemonSet exists -√ buoyant-cloud-metrics DaemonSet is running -√ buoyant-cloud-metrics DaemonSet is injected -√ buoyant-cloud-metrics DaemonSet is up-to-date - -`, - }, - } - - for _, tc := range fixtures { - tc := tc - t.Run(tc.testName, func(t *testing.T) { - hc := tc.hc() - - stdout := &bytes.Buffer{} - stderr := &bytes.Buffer{} - - success, _ := healthcheck.RunChecks(stdout, stderr, hc, healthcheck.TableOutput) - if tc.success != success { - t.Errorf("Expected success status: [%v], Got: [%v]", tc.success, success) - } - - if stdout.String() != tc.stdout { - t.Errorf("Expected stdout: [%s], Got: [%s]", tc.stdout, stdout.String()) - } - expStderr := "" - if stderr.String() != expStderr { - t.Errorf("Expected stderr: [%s], Got: [%s]", expStderr, stderr.String()) - } - }) - } -} diff --git a/cli/pkg/k8s/agent.go b/cli/pkg/k8s/agent.go deleted file mode 100644 index 95f01ef..0000000 --- a/cli/pkg/k8s/agent.go +++ /dev/null @@ -1,56 +0,0 @@ -package k8s - -import ( - "context" - - agentk8s "github.com/buoyantio/linkerd-buoyant/agent/pkg/k8s" - kerrors "k8s.io/apimachinery/pkg/api/errors" -) - -const ( - // AgentName is the name of the Buoyant Cloud Agent deployment. - AgentName = "buoyant-cloud-agent" - // MetricsName is the name of the Buoyant Cloud Metrics deployment. - MetricsName = "buoyant-cloud-metrics" - // VersionLabel is the label key for the agent's version - VersionLabel = "app.kubernetes.io/version" - - agentMetadataMap = "agent-metadata" - orgCredentialsSecret = "buoyant-cloud-org-credentials" -) - -// Agent represents the Buoyant Cloud agent. Any of these fields may not be -// present, depending on which resources are already on the cluster. -type Agent struct { - Name string - Id string - Version string -} - -func (c *client) Agent(ctx context.Context) (*Agent, error) { - var name, id, version string - - cm, err := c.ConfigMap(ctx) - if err == nil { - name = cm.Data[agentk8s.AgentNameKey] - id = cm.Data[agentk8s.AgentIDKey] - } else if !kerrors.IsNotFound(err) { - return nil, err - } else { - // config map not found, we can't identify the agent - return nil, nil - } - - deploy, err := c.Deployment(ctx, AgentName) - if err == nil { - version = Version(deploy) - } else if !kerrors.IsNotFound(err) { - return nil, err - } - - return &Agent{ - Name: name, - Id: id, - Version: version, - }, nil -} diff --git a/cli/pkg/k8s/agent_test.go b/cli/pkg/k8s/agent_test.go deleted file mode 100644 index 279a169..0000000 --- a/cli/pkg/k8s/agent_test.go +++ /dev/null @@ -1,90 +0,0 @@ -package k8s - -import ( - "context" - "errors" - "reflect" - "testing" - - "github.com/buoyantio/linkerd-buoyant/agent/pkg/k8s" - appsv1 "k8s.io/api/apps/v1" - v1 "k8s.io/api/core/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "k8s.io/apimachinery/pkg/runtime" - "k8s.io/client-go/kubernetes/fake" -) - -func TestAgent(t *testing.T) { - fixtures := []*struct { - testName string - objs []runtime.Object - expErr error - expAgent *Agent - }{ - { - "no objects found", - nil, - nil, - nil, - }, - { - "secret found", - []runtime.Object{ - &v1.ConfigMap{ - ObjectMeta: metav1.ObjectMeta{Name: agentMetadataMap, Namespace: k8s.AgentNamespace}, - Data: map[string]string{ - k8s.AgentNameKey: "fake-name", - k8s.AgentIDKey: "fake-id", - }, - }, - }, - nil, - &Agent{ - Name: "fake-name", - Id: "fake-id", - }, - }, - { - "secret and deployment found", - []runtime.Object{ - &v1.ConfigMap{ - ObjectMeta: metav1.ObjectMeta{Name: agentMetadataMap, Namespace: k8s.AgentNamespace}, - Data: map[string]string{ - k8s.AgentNameKey: "fake-name", - k8s.AgentIDKey: "fake-id", - }, - }, - &appsv1.Deployment{ - ObjectMeta: metav1.ObjectMeta{ - Name: AgentName, - Namespace: k8s.AgentNamespace, - Labels: map[string]string{VersionLabel: "fake-version"}, - }, - }, - }, - nil, - &Agent{ - Name: "fake-name", - Id: "fake-id", - Version: "fake-version", - }, - }, - } - - for _, tc := range fixtures { - tc := tc - t.Run(tc.testName, func(t *testing.T) { - ctx := context.TODO() - fakeCS := fake.NewSimpleClientset(tc.objs...) - client := client{fakeCS} - - agent, err := client.Agent(ctx) - if !errors.Is(err, tc.expErr) { - t.Errorf("Expected: [%s], got: [%s]", tc.expErr, err) - } - if !reflect.DeepEqual(agent, tc.expAgent) { - t.Errorf("Expected: [%+v], got: [%+v]", tc.expAgent, agent) - } - }) - } -} diff --git a/cli/pkg/k8s/client.go b/cli/pkg/k8s/client.go deleted file mode 100644 index d94d4a2..0000000 --- a/cli/pkg/k8s/client.go +++ /dev/null @@ -1,148 +0,0 @@ -package k8s - -import ( - "context" - - "github.com/buoyantio/linkerd-buoyant/agent/pkg/k8s" - appsv1 "k8s.io/api/apps/v1" - v1 "k8s.io/api/core/v1" - rbacv1 "k8s.io/api/rbac/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "k8s.io/client-go/kubernetes" - "k8s.io/client-go/tools/clientcmd" -) - -type ( - // Client defines the interface for linkerd-buoyant's Kubernetes client - Client interface { - // Namespace retrieves the buoyant-cloud Namespace. - Namespace(ctx context.Context) (*v1.Namespace, error) - // ClusterRole retrieves the buoyant-cloud-agent CR. - ClusterRole(ctx context.Context) (*rbacv1.ClusterRole, error) - // ClusterRoleBinding retrieves the buoyant-cloud-agent CRB. - ClusterRoleBinding(ctx context.Context) (*rbacv1.ClusterRoleBinding, error) - // ConfigMap retrieves the agent-metadata ConfigMap. - ConfigMap(ctx context.Context) (*v1.ConfigMap, error) - // Secret retrieves the buoyant-cloud-org-credentials Secret. - Secret(ctx context.Context) (*v1.Secret, error) - // ServiceAccount retrieves the buoyant-cloud-agent ServiceAccount. - ServiceAccount(ctx context.Context) (*v1.ServiceAccount, error) - // DaemonSet retrieves a DaemonSet by name in the buoyant-cloud namespace. - DaemonSet(ctx context.Context, name string) (*appsv1.DaemonSet, error) - // Deployment retrieves a Deployment by name in the buoyant-cloud namespace. - Deployment(ctx context.Context, name string) (*appsv1.Deployment, error) - // Pods retrieves a PodList by labelSelector from the buoyant-cloud - // namespace. - Pods(ctx context.Context, labelSelector string) (*v1.PodList, error) - - // Agent retrieves the Buoyant Cloud agent from Kubernetes, and returns the - // agent's name, version, and url. If Agent is not found, it will return a - // nil Agent with no error. - Agent(ctx context.Context) (*Agent, error) - // Resources returns all linkerd-buoyant resources required for deletion. - // Specifically, these three resource types matching the label - // app.kubernetes.io/part-of=buoyant-cloud: - // - ClusterRole - // - ClusterRoleBinding - // - Namespace - Resources(ctx context.Context) ([]string, error) - } - - // client is the internal struct satisfying the Client interface - client struct { - kubernetes.Interface - } -) - -// New takes a kubeconfig and kubecontext and returns an initialized Client. -func New(kubeconfig, kubecontext string) (Client, error) { - rules := clientcmd.NewDefaultClientConfigLoadingRules() - rules.ExplicitPath = kubeconfig - - clientConfig := clientcmd.NewNonInteractiveDeferredLoadingClientConfig( - rules, - &clientcmd.ConfigOverrides{CurrentContext: kubecontext}) - - config, err := clientConfig.ClientConfig() - if err != nil { - return nil, err - } - - clientset, err := kubernetes.NewForConfig(config) - if err != nil { - return nil, err - } - - return &client{clientset}, nil -} - -func (c *client) Namespace(ctx context.Context) (*v1.Namespace, error) { - return c. - CoreV1(). - Namespaces(). - Get(ctx, k8s.AgentNamespace, metav1.GetOptions{}) -} - -func (c *client) ClusterRole(ctx context.Context) (*rbacv1.ClusterRole, error) { - return c. - RbacV1(). - ClusterRoles(). - Get(ctx, AgentName, metav1.GetOptions{}) -} - -func (c *client) ClusterRoleBinding(ctx context.Context) (*rbacv1.ClusterRoleBinding, error) { - return c. - RbacV1(). - ClusterRoleBindings(). - Get(ctx, AgentName, metav1.GetOptions{}) -} - -func (c *client) ConfigMap(ctx context.Context) (*v1.ConfigMap, error) { - return c. - CoreV1(). - ConfigMaps(k8s.AgentNamespace). - Get(ctx, agentMetadataMap, metav1.GetOptions{}) -} - -func (c *client) Secret(ctx context.Context) (*v1.Secret, error) { - return c. - CoreV1(). - Secrets(k8s.AgentNamespace). - Get(ctx, orgCredentialsSecret, metav1.GetOptions{}) -} - -func (c *client) ServiceAccount(ctx context.Context) (*v1.ServiceAccount, error) { - return c. - CoreV1(). - ServiceAccounts(k8s.AgentNamespace). - Get(ctx, AgentName, metav1.GetOptions{}) -} - -func (c *client) DaemonSet(ctx context.Context, name string) (*appsv1.DaemonSet, error) { - return c. - AppsV1(). - DaemonSets(k8s.AgentNamespace). - Get(ctx, name, metav1.GetOptions{}) -} - -func (c *client) Deployment(ctx context.Context, name string) (*appsv1.Deployment, error) { - return c. - AppsV1(). - Deployments(k8s.AgentNamespace). - Get(ctx, name, metav1.GetOptions{}) -} - -func (c *client) Pods(ctx context.Context, labelSelector string) (*v1.PodList, error) { - return c. - CoreV1(). - Pods(k8s.AgentNamespace). - List(ctx, metav1.ListOptions{LabelSelector: labelSelector}) -} - -// Version returns the label value of app.kubernetes.io/version. -func Version(deploy *appsv1.Deployment) string { - if deploy == nil { - return "" - } - return deploy.GetLabels()[VersionLabel] -} diff --git a/cli/pkg/k8s/client_test.go b/cli/pkg/k8s/client_test.go deleted file mode 100644 index ae61e76..0000000 --- a/cli/pkg/k8s/client_test.go +++ /dev/null @@ -1,58 +0,0 @@ -package k8s - -import ( - "context" - "reflect" - "testing" - - "github.com/buoyantio/linkerd-buoyant/agent/pkg/k8s" - v1 "k8s.io/api/core/v1" - apierrors "k8s.io/apimachinery/pkg/api/errors" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "k8s.io/apimachinery/pkg/runtime" - "k8s.io/apimachinery/pkg/runtime/schema" - "k8s.io/client-go/kubernetes/fake" -) - -func TestNamespace(t *testing.T) { - fixtures := []*struct { - testName string - objs []runtime.Object - expErr error - expNS string - }{ - { - "not found", - nil, - apierrors.NewNotFound(schema.GroupResource{Group: "", Resource: "namespaces"}, k8s.AgentNamespace), - "", - }, - { - "found", - []runtime.Object{&v1.Namespace{ObjectMeta: metav1.ObjectMeta{Name: k8s.AgentNamespace}}}, - nil, - k8s.AgentNamespace, - }, - } - - for _, tc := range fixtures { - tc := tc - t.Run(tc.testName, func(t *testing.T) { - ctx := context.TODO() - fakeCS := fake.NewSimpleClientset(tc.objs...) - client := client{fakeCS} - - ns, err := client.Namespace(ctx) - if !reflect.DeepEqual(err, tc.expErr) { - t.Errorf("Expected: [%s], got: [%s]", tc.expErr, err) - } - nsName := "" - if ns != nil { - nsName = ns.Name - } - if nsName != tc.expNS { - t.Errorf("Expected: [%s], got: [%s]", tc.expNS, nsName) - } - }) - } -} diff --git a/cli/pkg/k8s/mock_client.go b/cli/pkg/k8s/mock_client.go deleted file mode 100644 index 9f0e002..0000000 --- a/cli/pkg/k8s/mock_client.go +++ /dev/null @@ -1,80 +0,0 @@ -package k8s - -import ( - "context" - - appsv1 "k8s.io/api/apps/v1" - v1 "k8s.io/api/core/v1" - rbacv1 "k8s.io/api/rbac/v1" -) - -// MockClient provides a mock Kubernetes client for testing -type MockClient struct { - MockNamespace *v1.Namespace - MockClusterRole *rbacv1.ClusterRole - MockClusterRoleBinding *rbacv1.ClusterRoleBinding - MockConfigMap *v1.ConfigMap - MockSecret *v1.Secret - MockServiceAccount *v1.ServiceAccount - MockDaemonSet *appsv1.DaemonSet - MockDeployment *appsv1.Deployment - MockPods *v1.PodList - - MockAgent *Agent - MockResources []string -} - -// Namespace returns a mock Namespace object. -func (m *MockClient) Namespace(ctx context.Context) (*v1.Namespace, error) { - return m.MockNamespace, nil -} - -// ClusterRole returns a mock ClusterRole object. -func (m *MockClient) ClusterRole(ctx context.Context) (*rbacv1.ClusterRole, error) { - return m.MockClusterRole, nil -} - -// ClusterRoleBinding returns a mock ClusterRoleBinding object. -func (m *MockClient) ClusterRoleBinding(ctx context.Context) (*rbacv1.ClusterRoleBinding, error) { - return m.MockClusterRoleBinding, nil -} - -// ConfigMap returns a mock ConfigMap object. -func (m *MockClient) ConfigMap(ctx context.Context) (*v1.ConfigMap, error) { - return m.MockConfigMap, nil -} - -// Secret returns a mock Secret object. -func (m *MockClient) Secret(ctx context.Context) (*v1.Secret, error) { - return m.MockSecret, nil -} - -// ServiceAccount returns a mock ServiceAccount object. -func (m *MockClient) ServiceAccount(ctx context.Context) (*v1.ServiceAccount, error) { - return m.MockServiceAccount, nil -} - -// DaemonSet returns a mock DaemonSet object. -func (m *MockClient) DaemonSet(ctx context.Context, name string) (*appsv1.DaemonSet, error) { - return m.MockDaemonSet, nil -} - -// Deployment returns a mock Deployment object. -func (m *MockClient) Deployment(ctx context.Context, name string) (*appsv1.Deployment, error) { - return m.MockDeployment, nil -} - -// Pods returns a mock Pod List. -func (m *MockClient) Pods(ctx context.Context, labelSelector string) (*v1.PodList, error) { - return m.MockPods, nil -} - -// Agent returns a mock Buoyant Cloud agent. -func (m *MockClient) Agent(ctx context.Context) (*Agent, error) { - return m.MockAgent, nil -} - -// Resources returns mock Buoyant Cloud agent resources. -func (m *MockClient) Resources(ctx context.Context) ([]string, error) { - return m.MockResources, nil -} diff --git a/cli/pkg/k8s/resource.go b/cli/pkg/k8s/resource.go deleted file mode 100644 index 936d8c0..0000000 --- a/cli/pkg/k8s/resource.go +++ /dev/null @@ -1,91 +0,0 @@ -package k8s - -import ( - "context" - "fmt" - - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "k8s.io/apimachinery/pkg/runtime" - "k8s.io/kubectl/pkg/scheme" - "sigs.k8s.io/yaml" -) - -const ( - // PartOfKey is the label key found on all Buoyant Cloud resources. - PartOfKey = "app.kubernetes.io/part-of" - // PartOfVal is the label value found on all Buoyant Cloud resources. - PartOfVal = "buoyant-cloud" -) - -func (c *client) Resources(ctx context.Context) ([]string, error) { - labelSelector := fmt.Sprintf("%s=%s", PartOfKey, PartOfVal) - opts := metav1.ListOptions{LabelSelector: labelSelector} - resources := []string{} - - crList, err := c.RbacV1().ClusterRoles().List(ctx, opts) - if err != nil { - return nil, err - } - for _, i := range crList.Items { - i := i // pin - y, err := toYaml(runtime.Object(&i), i.ObjectMeta) - if err != nil { - return nil, err - } - resources = append(resources, string(y)) - } - - crbList, err := c.RbacV1().ClusterRoleBindings().List(ctx, opts) - if err != nil { - return nil, err - } - for _, i := range crbList.Items { - i := i // pin - y, err := toYaml(runtime.Object(&i), i.ObjectMeta) - if err != nil { - return nil, err - } - resources = append(resources, string(y)) - } - - nsList, err := c.CoreV1().Namespaces().List(ctx, opts) - if err != nil { - return nil, err - } - for _, i := range nsList.Items { - i := i // pin - y, err := toYaml(runtime.Object(&i), i.ObjectMeta) - if err != nil { - return nil, err - } - resources = append(resources, string(y)) - } - - return resources, nil -} - -func toYaml(runobj runtime.Object, objmeta metav1.ObjectMeta) ([]byte, error) { - gvks, _, err := scheme.Scheme.ObjectKinds(runobj) - if err != nil { - return nil, err - } - if len(gvks) == 0 { - return nil, fmt.Errorf("no GroupVersionKind found for %+v", runobj) - } - - s := struct { - runtime.TypeMeta - metav1.ObjectMeta `json:"metadata"` - }{ - runtime.TypeMeta{ - APIVersion: gvks[0].GroupVersion().String(), - Kind: gvks[0].Kind, - }, - metav1.ObjectMeta{ - Name: objmeta.GetName(), - Namespace: objmeta.GetNamespace(), - }, - } - - return yaml.Marshal(s) -} diff --git a/cli/pkg/k8s/resource_test.go b/cli/pkg/k8s/resource_test.go deleted file mode 100644 index 815eefe..0000000 --- a/cli/pkg/k8s/resource_test.go +++ /dev/null @@ -1,125 +0,0 @@ -package k8s - -import ( - "context" - "errors" - "reflect" - "testing" - - "github.com/buoyantio/linkerd-buoyant/agent/pkg/k8s" - v1 "k8s.io/api/core/v1" - rbacv1 "k8s.io/api/rbac/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "k8s.io/apimachinery/pkg/runtime" - "k8s.io/client-go/kubernetes/fake" -) - -func TestResources(t *testing.T) { - fixtures := []*struct { - testName string - objs []runtime.Object - expErr error - expResources []string - }{ - { - "no objects found", - nil, - nil, - []string{}, - }, - { - "namespace not found with incorrect label value", - []runtime.Object{ - &v1.Namespace{ - ObjectMeta: metav1.ObjectMeta{ - Name: k8s.AgentNamespace, - Labels: map[string]string{PartOfKey: PartOfVal + "bad"}, - }, - }, - }, - nil, - []string{}, - }, - { - "namespace found", - []runtime.Object{ - &v1.Namespace{ - ObjectMeta: metav1.ObjectMeta{ - Name: k8s.AgentNamespace, - Labels: map[string]string{PartOfKey: PartOfVal}, - }, - }, - }, - nil, - []string{ - `apiVersion: v1 -kind: Namespace -metadata: - creationTimestamp: null - name: buoyant-cloud -`, - }, - }, - { - "namespace, cr, crb found", - []runtime.Object{ - &v1.Namespace{ - ObjectMeta: metav1.ObjectMeta{ - Name: k8s.AgentNamespace, - Labels: map[string]string{PartOfKey: PartOfVal}, - }, - }, - &rbacv1.ClusterRole{ - ObjectMeta: metav1.ObjectMeta{ - Name: AgentName, - Labels: map[string]string{PartOfKey: PartOfVal}, - }, - }, - &rbacv1.ClusterRoleBinding{ - ObjectMeta: metav1.ObjectMeta{ - Name: AgentName, - Labels: map[string]string{PartOfKey: PartOfVal}, - }, - }, - }, - nil, - []string{ - `apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRole -metadata: - creationTimestamp: null - name: buoyant-cloud-agent -`, - `apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRoleBinding -metadata: - creationTimestamp: null - name: buoyant-cloud-agent -`, - `apiVersion: v1 -kind: Namespace -metadata: - creationTimestamp: null - name: buoyant-cloud -`, - }, - }, - } - - for _, tc := range fixtures { - tc := tc - t.Run(tc.testName, func(t *testing.T) { - ctx := context.TODO() - fakeCS := fake.NewSimpleClientset(tc.objs...) - client := client{fakeCS} - - resources, err := client.Resources(ctx) - if !errors.Is(err, tc.expErr) { - t.Errorf("Expected: [%s], got: [%s]", tc.expErr, err) - } - if !reflect.DeepEqual(resources, tc.expResources) { - t.Errorf("Expected: [%+v], got: [%+v]", tc.expResources, resources) - } - }) - } -} diff --git a/cli/pkg/version/version.go b/cli/pkg/version/version.go deleted file mode 100644 index 25877eb..0000000 --- a/cli/pkg/version/version.go +++ /dev/null @@ -1,55 +0,0 @@ -package version - -import ( - "context" - "encoding/json" - "fmt" - "io/ioutil" - "net/http" -) - -// LinkerdBuoyant defines the name of the CLI application. -const LinkerdBuoyant = "linkerd-buoyant" - -// Version is updated automatically as part of the build process, and is the -// ground source of truth for the current process's build version. -// -// DO NOT EDIT -var Version = "undefined" - -// Get retrieves the current linkerd-buoyant version from the Buoyant Cloud -// server. -func Get(ctx context.Context, client *http.Client, url string) (string, error) { - req, err := http.NewRequest("GET", url, nil) - if err != nil { - return "", err - } - - rsp, err := client.Do(req.WithContext(ctx)) - if err != nil { - return "", err - } - defer rsp.Body.Close() - - if rsp.StatusCode != 200 { - return "", fmt.Errorf("unexpected version response: %s", rsp.Status) - } - - bytes, err := ioutil.ReadAll(rsp.Body) - if err != nil { - return "", err - } - - var versionRsp map[string]string - err = json.Unmarshal(bytes, &versionRsp) - if err != nil { - return "", err - } - - version, ok := versionRsp[LinkerdBuoyant] - if !ok { - return "", fmt.Errorf("unrecognized version response: %s", bytes) - } - - return version, nil -} diff --git a/cli/pkg/version/version_test.go b/cli/pkg/version/version_test.go deleted file mode 100644 index fbc44b2..0000000 --- a/cli/pkg/version/version_test.go +++ /dev/null @@ -1,35 +0,0 @@ -package version - -import ( - "context" - "encoding/json" - "net/http" - "net/http/httptest" - "testing" -) - -func TestVersion(t *testing.T) { - versionRsp := map[string]string{ - LinkerdBuoyant: "fake-version", - } - - j, err := json.Marshal(versionRsp) - if err != nil { - t.Fatalf("JSON marshal failed with: %s", err) - } - - ts := httptest.NewServer(http.HandlerFunc( - func(w http.ResponseWriter, r *http.Request) { - w.Write(j) - }), - ) - defer ts.Close() - - version, err := Get(context.Background(), ts.Client(), ts.URL) - if err != nil { - t.Error(err) - } - if version != "fake-version" { - t.Errorf("Unexpected version: [%s], Expected: [fake-version]", version) - } -} diff --git a/gen/bcloud/buoyant-cloud-api.pb.go b/gen/bcloud/buoyant-cloud-api.pb.go deleted file mode 100644 index 70a47bd..0000000 --- a/gen/bcloud/buoyant-cloud-api.pb.go +++ /dev/null @@ -1,3262 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.27.1 -// protoc v3.19.4 -// source: buoyant-cloud-api.proto - -package bcloud - -import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -type Empty struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *Empty) Reset() { - *x = Empty{} - if protoimpl.UnsafeEnabled { - mi := &file_buoyant_cloud_api_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Empty) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Empty) ProtoMessage() {} - -func (x *Empty) ProtoReflect() protoreflect.Message { - mi := &file_buoyant_cloud_api_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Empty.ProtoReflect.Descriptor instead. -func (*Empty) Descriptor() ([]byte, []int) { - return file_buoyant_cloud_api_proto_rawDescGZIP(), []int{0} -} - -// Deprecated: Do not use. -type Auth struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - AgentId string `protobuf:"bytes,1,opt,name=agent_id,json=agentId,proto3" json:"agent_id,omitempty"` - AgentKey string `protobuf:"bytes,2,opt,name=agent_key,json=agentKey,proto3" json:"agent_key,omitempty"` -} - -func (x *Auth) Reset() { - *x = Auth{} - if protoimpl.UnsafeEnabled { - mi := &file_buoyant_cloud_api_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Auth) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Auth) ProtoMessage() {} - -func (x *Auth) ProtoReflect() protoreflect.Message { - mi := &file_buoyant_cloud_api_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Auth.ProtoReflect.Descriptor instead. -func (*Auth) Descriptor() ([]byte, []int) { - return file_buoyant_cloud_api_proto_rawDescGZIP(), []int{1} -} - -func (x *Auth) GetAgentId() string { - if x != nil { - return x.AgentId - } - return "" -} - -func (x *Auth) GetAgentKey() string { - if x != nil { - return x.AgentKey - } - return "" -} - -type Workload struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Types that are assignable to Workload: - // *Workload_Daemonset - // *Workload_Deployment - // *Workload_Statefulset - Workload isWorkload_Workload `protobuf_oneof:"workload"` -} - -func (x *Workload) Reset() { - *x = Workload{} - if protoimpl.UnsafeEnabled { - mi := &file_buoyant_cloud_api_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Workload) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Workload) ProtoMessage() {} - -func (x *Workload) ProtoReflect() protoreflect.Message { - mi := &file_buoyant_cloud_api_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Workload.ProtoReflect.Descriptor instead. -func (*Workload) Descriptor() ([]byte, []int) { - return file_buoyant_cloud_api_proto_rawDescGZIP(), []int{2} -} - -func (m *Workload) GetWorkload() isWorkload_Workload { - if m != nil { - return m.Workload - } - return nil -} - -func (x *Workload) GetDaemonset() *DaemonSet { - if x, ok := x.GetWorkload().(*Workload_Daemonset); ok { - return x.Daemonset - } - return nil -} - -func (x *Workload) GetDeployment() *Deployment { - if x, ok := x.GetWorkload().(*Workload_Deployment); ok { - return x.Deployment - } - return nil -} - -func (x *Workload) GetStatefulset() *StatefulSet { - if x, ok := x.GetWorkload().(*Workload_Statefulset); ok { - return x.Statefulset - } - return nil -} - -type isWorkload_Workload interface { - isWorkload_Workload() -} - -type Workload_Daemonset struct { - Daemonset *DaemonSet `protobuf:"bytes,1,opt,name=daemonset,proto3,oneof"` -} - -type Workload_Deployment struct { - Deployment *Deployment `protobuf:"bytes,2,opt,name=deployment,proto3,oneof"` -} - -type Workload_Statefulset struct { - Statefulset *StatefulSet `protobuf:"bytes,3,opt,name=statefulset,proto3,oneof"` -} - -func (*Workload_Daemonset) isWorkload_Workload() {} - -func (*Workload_Deployment) isWorkload_Workload() {} - -func (*Workload_Statefulset) isWorkload_Workload() {} - -type DaemonSet struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - DaemonSet []byte `protobuf:"bytes,1,opt,name=daemon_set,json=daemonSet,proto3" json:"daemon_set,omitempty"` - Pods []*Pod `protobuf:"bytes,2,rep,name=pods,proto3" json:"pods,omitempty"` -} - -func (x *DaemonSet) Reset() { - *x = DaemonSet{} - if protoimpl.UnsafeEnabled { - mi := &file_buoyant_cloud_api_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DaemonSet) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DaemonSet) ProtoMessage() {} - -func (x *DaemonSet) ProtoReflect() protoreflect.Message { - mi := &file_buoyant_cloud_api_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DaemonSet.ProtoReflect.Descriptor instead. -func (*DaemonSet) Descriptor() ([]byte, []int) { - return file_buoyant_cloud_api_proto_rawDescGZIP(), []int{3} -} - -func (x *DaemonSet) GetDaemonSet() []byte { - if x != nil { - return x.DaemonSet - } - return nil -} - -func (x *DaemonSet) GetPods() []*Pod { - if x != nil { - return x.Pods - } - return nil -} - -type Deployment struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Deployment []byte `protobuf:"bytes,1,opt,name=deployment,proto3" json:"deployment,omitempty"` - ReplicaSets []*ReplicaSet `protobuf:"bytes,2,rep,name=replica_sets,json=replicaSets,proto3" json:"replica_sets,omitempty"` -} - -func (x *Deployment) Reset() { - *x = Deployment{} - if protoimpl.UnsafeEnabled { - mi := &file_buoyant_cloud_api_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Deployment) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Deployment) ProtoMessage() {} - -func (x *Deployment) ProtoReflect() protoreflect.Message { - mi := &file_buoyant_cloud_api_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Deployment.ProtoReflect.Descriptor instead. -func (*Deployment) Descriptor() ([]byte, []int) { - return file_buoyant_cloud_api_proto_rawDescGZIP(), []int{4} -} - -func (x *Deployment) GetDeployment() []byte { - if x != nil { - return x.Deployment - } - return nil -} - -func (x *Deployment) GetReplicaSets() []*ReplicaSet { - if x != nil { - return x.ReplicaSets - } - return nil -} - -type StatefulSet struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - StatefulSet []byte `protobuf:"bytes,1,opt,name=stateful_set,json=statefulSet,proto3" json:"stateful_set,omitempty"` - Pods []*Pod `protobuf:"bytes,2,rep,name=pods,proto3" json:"pods,omitempty"` -} - -func (x *StatefulSet) Reset() { - *x = StatefulSet{} - if protoimpl.UnsafeEnabled { - mi := &file_buoyant_cloud_api_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *StatefulSet) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*StatefulSet) ProtoMessage() {} - -func (x *StatefulSet) ProtoReflect() protoreflect.Message { - mi := &file_buoyant_cloud_api_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use StatefulSet.ProtoReflect.Descriptor instead. -func (*StatefulSet) Descriptor() ([]byte, []int) { - return file_buoyant_cloud_api_proto_rawDescGZIP(), []int{5} -} - -func (x *StatefulSet) GetStatefulSet() []byte { - if x != nil { - return x.StatefulSet - } - return nil -} - -func (x *StatefulSet) GetPods() []*Pod { - if x != nil { - return x.Pods - } - return nil -} - -type ReplicaSet struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ReplicaSet []byte `protobuf:"bytes,1,opt,name=replica_set,json=replicaSet,proto3" json:"replica_set,omitempty"` - Pods []*Pod `protobuf:"bytes,2,rep,name=pods,proto3" json:"pods,omitempty"` -} - -func (x *ReplicaSet) Reset() { - *x = ReplicaSet{} - if protoimpl.UnsafeEnabled { - mi := &file_buoyant_cloud_api_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ReplicaSet) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ReplicaSet) ProtoMessage() {} - -func (x *ReplicaSet) ProtoReflect() protoreflect.Message { - mi := &file_buoyant_cloud_api_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ReplicaSet.ProtoReflect.Descriptor instead. -func (*ReplicaSet) Descriptor() ([]byte, []int) { - return file_buoyant_cloud_api_proto_rawDescGZIP(), []int{6} -} - -func (x *ReplicaSet) GetReplicaSet() []byte { - if x != nil { - return x.ReplicaSet - } - return nil -} - -func (x *ReplicaSet) GetPods() []*Pod { - if x != nil { - return x.Pods - } - return nil -} - -type Pod struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Pod []byte `protobuf:"bytes,1,opt,name=pod,proto3" json:"pod,omitempty"` -} - -func (x *Pod) Reset() { - *x = Pod{} - if protoimpl.UnsafeEnabled { - mi := &file_buoyant_cloud_api_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Pod) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Pod) ProtoMessage() {} - -func (x *Pod) ProtoReflect() protoreflect.Message { - mi := &file_buoyant_cloud_api_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Pod.ProtoReflect.Descriptor instead. -func (*Pod) Descriptor() ([]byte, []int) { - return file_buoyant_cloud_api_proto_rawDescGZIP(), []int{7} -} - -func (x *Pod) GetPod() []byte { - if x != nil { - return x.Pod - } - return nil -} - -type ConfigMap struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ConfigMap []byte `protobuf:"bytes,1,opt,name=config_map,json=configMap,proto3" json:"config_map,omitempty"` -} - -func (x *ConfigMap) Reset() { - *x = ConfigMap{} - if protoimpl.UnsafeEnabled { - mi := &file_buoyant_cloud_api_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ConfigMap) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ConfigMap) ProtoMessage() {} - -func (x *ConfigMap) ProtoReflect() protoreflect.Message { - mi := &file_buoyant_cloud_api_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ConfigMap.ProtoReflect.Descriptor instead. -func (*ConfigMap) Descriptor() ([]byte, []int) { - return file_buoyant_cloud_api_proto_rawDescGZIP(), []int{8} -} - -func (x *ConfigMap) GetConfigMap() []byte { - if x != nil { - return x.ConfigMap - } - return nil -} - -type Node struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Node []byte `protobuf:"bytes,1,opt,name=node,proto3" json:"node,omitempty"` -} - -func (x *Node) Reset() { - *x = Node{} - if protoimpl.UnsafeEnabled { - mi := &file_buoyant_cloud_api_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Node) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Node) ProtoMessage() {} - -func (x *Node) ProtoReflect() protoreflect.Message { - mi := &file_buoyant_cloud_api_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Node.ProtoReflect.Descriptor instead. -func (*Node) Descriptor() ([]byte, []int) { - return file_buoyant_cloud_api_proto_rawDescGZIP(), []int{9} -} - -func (x *Node) GetNode() []byte { - if x != nil { - return x.Node - } - return nil -} - -type Service struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Service []byte `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"` -} - -func (x *Service) Reset() { - *x = Service{} - if protoimpl.UnsafeEnabled { - mi := &file_buoyant_cloud_api_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Service) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Service) ProtoMessage() {} - -func (x *Service) ProtoReflect() protoreflect.Message { - mi := &file_buoyant_cloud_api_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Service.ProtoReflect.Descriptor instead. -func (*Service) Descriptor() ([]byte, []int) { - return file_buoyant_cloud_api_proto_rawDescGZIP(), []int{10} -} - -func (x *Service) GetService() []byte { - if x != nil { - return x.Service - } - return nil -} - -type WorkloadMessage struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Types that are assignable to Message: - // *WorkloadMessage_Auth - // *WorkloadMessage_Added - // *WorkloadMessage_Updated - // *WorkloadMessage_Deleted - // *WorkloadMessage_List - Message isWorkloadMessage_Message `protobuf_oneof:"message"` -} - -func (x *WorkloadMessage) Reset() { - *x = WorkloadMessage{} - if protoimpl.UnsafeEnabled { - mi := &file_buoyant_cloud_api_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *WorkloadMessage) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*WorkloadMessage) ProtoMessage() {} - -func (x *WorkloadMessage) ProtoReflect() protoreflect.Message { - mi := &file_buoyant_cloud_api_proto_msgTypes[11] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use WorkloadMessage.ProtoReflect.Descriptor instead. -func (*WorkloadMessage) Descriptor() ([]byte, []int) { - return file_buoyant_cloud_api_proto_rawDescGZIP(), []int{11} -} - -func (m *WorkloadMessage) GetMessage() isWorkloadMessage_Message { - if m != nil { - return m.Message - } - return nil -} - -// Deprecated: Do not use. -func (x *WorkloadMessage) GetAuth() *Auth { - if x, ok := x.GetMessage().(*WorkloadMessage_Auth); ok { - return x.Auth - } - return nil -} - -func (x *WorkloadMessage) GetAdded() *AddWorkload { - if x, ok := x.GetMessage().(*WorkloadMessage_Added); ok { - return x.Added - } - return nil -} - -func (x *WorkloadMessage) GetUpdated() *UpdateWorkload { - if x, ok := x.GetMessage().(*WorkloadMessage_Updated); ok { - return x.Updated - } - return nil -} - -func (x *WorkloadMessage) GetDeleted() *DeleteWorkload { - if x, ok := x.GetMessage().(*WorkloadMessage_Deleted); ok { - return x.Deleted - } - return nil -} - -func (x *WorkloadMessage) GetList() *ListWorkloads { - if x, ok := x.GetMessage().(*WorkloadMessage_List); ok { - return x.List - } - return nil -} - -type isWorkloadMessage_Message interface { - isWorkloadMessage_Message() -} - -type WorkloadMessage_Auth struct { - // Deprecated: Do not use. - Auth *Auth `protobuf:"bytes,1,opt,name=auth,proto3,oneof"` -} - -type WorkloadMessage_Added struct { - Added *AddWorkload `protobuf:"bytes,2,opt,name=added,proto3,oneof"` -} - -type WorkloadMessage_Updated struct { - Updated *UpdateWorkload `protobuf:"bytes,3,opt,name=updated,proto3,oneof"` -} - -type WorkloadMessage_Deleted struct { - Deleted *DeleteWorkload `protobuf:"bytes,4,opt,name=deleted,proto3,oneof"` -} - -type WorkloadMessage_List struct { - List *ListWorkloads `protobuf:"bytes,5,opt,name=list,proto3,oneof"` -} - -func (*WorkloadMessage_Auth) isWorkloadMessage_Message() {} - -func (*WorkloadMessage_Added) isWorkloadMessage_Message() {} - -func (*WorkloadMessage_Updated) isWorkloadMessage_Message() {} - -func (*WorkloadMessage_Deleted) isWorkloadMessage_Message() {} - -func (*WorkloadMessage_List) isWorkloadMessage_Message() {} - -type AddWorkload struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Workload *Workload `protobuf:"bytes,1,opt,name=workload,proto3" json:"workload,omitempty"` -} - -func (x *AddWorkload) Reset() { - *x = AddWorkload{} - if protoimpl.UnsafeEnabled { - mi := &file_buoyant_cloud_api_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *AddWorkload) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*AddWorkload) ProtoMessage() {} - -func (x *AddWorkload) ProtoReflect() protoreflect.Message { - mi := &file_buoyant_cloud_api_proto_msgTypes[12] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use AddWorkload.ProtoReflect.Descriptor instead. -func (*AddWorkload) Descriptor() ([]byte, []int) { - return file_buoyant_cloud_api_proto_rawDescGZIP(), []int{12} -} - -func (x *AddWorkload) GetWorkload() *Workload { - if x != nil { - return x.Workload - } - return nil -} - -type DeleteWorkload struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Workload *Workload `protobuf:"bytes,1,opt,name=workload,proto3" json:"workload,omitempty"` -} - -func (x *DeleteWorkload) Reset() { - *x = DeleteWorkload{} - if protoimpl.UnsafeEnabled { - mi := &file_buoyant_cloud_api_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DeleteWorkload) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DeleteWorkload) ProtoMessage() {} - -func (x *DeleteWorkload) ProtoReflect() protoreflect.Message { - mi := &file_buoyant_cloud_api_proto_msgTypes[13] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DeleteWorkload.ProtoReflect.Descriptor instead. -func (*DeleteWorkload) Descriptor() ([]byte, []int) { - return file_buoyant_cloud_api_proto_rawDescGZIP(), []int{13} -} - -func (x *DeleteWorkload) GetWorkload() *Workload { - if x != nil { - return x.Workload - } - return nil -} - -type UpdateWorkload struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - OldWorkload *Workload `protobuf:"bytes,1,opt,name=old_workload,json=oldWorkload,proto3" json:"old_workload,omitempty"` - NewWorkload *Workload `protobuf:"bytes,2,opt,name=new_workload,json=newWorkload,proto3" json:"new_workload,omitempty"` - Timestamp *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` -} - -func (x *UpdateWorkload) Reset() { - *x = UpdateWorkload{} - if protoimpl.UnsafeEnabled { - mi := &file_buoyant_cloud_api_proto_msgTypes[14] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *UpdateWorkload) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UpdateWorkload) ProtoMessage() {} - -func (x *UpdateWorkload) ProtoReflect() protoreflect.Message { - mi := &file_buoyant_cloud_api_proto_msgTypes[14] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use UpdateWorkload.ProtoReflect.Descriptor instead. -func (*UpdateWorkload) Descriptor() ([]byte, []int) { - return file_buoyant_cloud_api_proto_rawDescGZIP(), []int{14} -} - -func (x *UpdateWorkload) GetOldWorkload() *Workload { - if x != nil { - return x.OldWorkload - } - return nil -} - -func (x *UpdateWorkload) GetNewWorkload() *Workload { - if x != nil { - return x.NewWorkload - } - return nil -} - -func (x *UpdateWorkload) GetTimestamp() *timestamppb.Timestamp { - if x != nil { - return x.Timestamp - } - return nil -} - -type ListWorkloads struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Workloads []*Workload `protobuf:"bytes,1,rep,name=workloads,proto3" json:"workloads,omitempty"` -} - -func (x *ListWorkloads) Reset() { - *x = ListWorkloads{} - if protoimpl.UnsafeEnabled { - mi := &file_buoyant_cloud_api_proto_msgTypes[15] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ListWorkloads) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ListWorkloads) ProtoMessage() {} - -func (x *ListWorkloads) ProtoReflect() protoreflect.Message { - mi := &file_buoyant_cloud_api_proto_msgTypes[15] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ListWorkloads.ProtoReflect.Descriptor instead. -func (*ListWorkloads) Descriptor() ([]byte, []int) { - return file_buoyant_cloud_api_proto_rawDescGZIP(), []int{15} -} - -func (x *ListWorkloads) GetWorkloads() []*Workload { - if x != nil { - return x.Workloads - } - return nil -} - -type Event struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Deprecated: Do not use. - Auth *Auth `protobuf:"bytes,1,opt,name=auth,proto3" json:"auth,omitempty"` - Event []byte `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` - Owner *Workload `protobuf:"bytes,3,opt,name=owner,proto3" json:"owner,omitempty"` -} - -func (x *Event) Reset() { - *x = Event{} - if protoimpl.UnsafeEnabled { - mi := &file_buoyant_cloud_api_proto_msgTypes[16] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Event) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Event) ProtoMessage() {} - -func (x *Event) ProtoReflect() protoreflect.Message { - mi := &file_buoyant_cloud_api_proto_msgTypes[16] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Event.ProtoReflect.Descriptor instead. -func (*Event) Descriptor() ([]byte, []int) { - return file_buoyant_cloud_api_proto_rawDescGZIP(), []int{16} -} - -// Deprecated: Do not use. -func (x *Event) GetAuth() *Auth { - if x != nil { - return x.Auth - } - return nil -} - -func (x *Event) GetEvent() []byte { - if x != nil { - return x.Event - } - return nil -} - -func (x *Event) GetOwner() *Workload { - if x != nil { - return x.Owner - } - return nil -} - -// This message represents a PEM encoded certificate -type CertData struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Raw []byte `protobuf:"bytes,1,opt,name=raw,proto3" json:"raw,omitempty"` -} - -func (x *CertData) Reset() { - *x = CertData{} - if protoimpl.UnsafeEnabled { - mi := &file_buoyant_cloud_api_proto_msgTypes[17] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CertData) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CertData) ProtoMessage() {} - -func (x *CertData) ProtoReflect() protoreflect.Message { - mi := &file_buoyant_cloud_api_proto_msgTypes[17] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CertData.ProtoReflect.Descriptor instead. -func (*CertData) Descriptor() ([]byte, []int) { - return file_buoyant_cloud_api_proto_rawDescGZIP(), []int{17} -} - -func (x *CertData) GetRaw() []byte { - if x != nil { - return x.Raw - } - return nil -} - -// Represents the certificates that the control plane -// has been configured with. -type ControlPlaneCerts struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // This is the identity issuer certificate chain; - // it does not include a leaf certificate - IssuerCrtChain []*CertData `protobuf:"bytes,1,rep,name=issuer_crt_chain,json=issuerCrtChain,proto3" json:"issuer_crt_chain,omitempty"` - // The roots that the control plane has been configured - // with and will add to newly created proxies - Roots []*CertData `protobuf:"bytes,2,rep,name=roots,proto3" json:"roots,omitempty"` -} - -func (x *ControlPlaneCerts) Reset() { - *x = ControlPlaneCerts{} - if protoimpl.UnsafeEnabled { - mi := &file_buoyant_cloud_api_proto_msgTypes[18] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ControlPlaneCerts) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ControlPlaneCerts) ProtoMessage() {} - -func (x *ControlPlaneCerts) ProtoReflect() protoreflect.Message { - mi := &file_buoyant_cloud_api_proto_msgTypes[18] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ControlPlaneCerts.ProtoReflect.Descriptor instead. -func (*ControlPlaneCerts) Descriptor() ([]byte, []int) { - return file_buoyant_cloud_api_proto_rawDescGZIP(), []int{18} -} - -func (x *ControlPlaneCerts) GetIssuerCrtChain() []*CertData { - if x != nil { - return x.IssuerCrtChain - } - return nil -} - -func (x *ControlPlaneCerts) GetRoots() []*CertData { - if x != nil { - return x.Roots - } - return nil -} - -type CertificateInfo struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Types that are assignable to Info: - // *CertificateInfo_ControlPlane - Info isCertificateInfo_Info `protobuf_oneof:"info"` -} - -func (x *CertificateInfo) Reset() { - *x = CertificateInfo{} - if protoimpl.UnsafeEnabled { - mi := &file_buoyant_cloud_api_proto_msgTypes[19] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CertificateInfo) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CertificateInfo) ProtoMessage() {} - -func (x *CertificateInfo) ProtoReflect() protoreflect.Message { - mi := &file_buoyant_cloud_api_proto_msgTypes[19] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CertificateInfo.ProtoReflect.Descriptor instead. -func (*CertificateInfo) Descriptor() ([]byte, []int) { - return file_buoyant_cloud_api_proto_rawDescGZIP(), []int{19} -} - -func (m *CertificateInfo) GetInfo() isCertificateInfo_Info { - if m != nil { - return m.Info - } - return nil -} - -func (x *CertificateInfo) GetControlPlane() *ControlPlaneCerts { - if x, ok := x.GetInfo().(*CertificateInfo_ControlPlane); ok { - return x.ControlPlane - } - return nil -} - -type isCertificateInfo_Info interface { - isCertificateInfo_Info() -} - -type CertificateInfo_ControlPlane struct { - ControlPlane *ControlPlaneCerts `protobuf:"bytes,1,opt,name=control_plane,json=controlPlane,proto3,oneof"` -} - -func (*CertificateInfo_ControlPlane) isCertificateInfo_Info() {} - -type Server struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Server []byte `protobuf:"bytes,1,opt,name=server,proto3" json:"server,omitempty"` -} - -func (x *Server) Reset() { - *x = Server{} - if protoimpl.UnsafeEnabled { - mi := &file_buoyant_cloud_api_proto_msgTypes[20] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Server) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Server) ProtoMessage() {} - -func (x *Server) ProtoReflect() protoreflect.Message { - mi := &file_buoyant_cloud_api_proto_msgTypes[20] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Server.ProtoReflect.Descriptor instead. -func (*Server) Descriptor() ([]byte, []int) { - return file_buoyant_cloud_api_proto_rawDescGZIP(), []int{20} -} - -func (x *Server) GetServer() []byte { - if x != nil { - return x.Server - } - return nil -} - -type ServerAuthorization struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ServerAuthorization []byte `protobuf:"bytes,1,opt,name=server_authorization,json=serverAuthorization,proto3" json:"server_authorization,omitempty"` -} - -func (x *ServerAuthorization) Reset() { - *x = ServerAuthorization{} - if protoimpl.UnsafeEnabled { - mi := &file_buoyant_cloud_api_proto_msgTypes[21] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ServerAuthorization) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ServerAuthorization) ProtoMessage() {} - -func (x *ServerAuthorization) ProtoReflect() protoreflect.Message { - mi := &file_buoyant_cloud_api_proto_msgTypes[21] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ServerAuthorization.ProtoReflect.Descriptor instead. -func (*ServerAuthorization) Descriptor() ([]byte, []int) { - return file_buoyant_cloud_api_proto_rawDescGZIP(), []int{21} -} - -func (x *ServerAuthorization) GetServerAuthorization() []byte { - if x != nil { - return x.ServerAuthorization - } - return nil -} - -type AuthorizationPolicy struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - AuthorizationPolicy []byte `protobuf:"bytes,1,opt,name=authorization_policy,json=authorizationPolicy,proto3" json:"authorization_policy,omitempty"` -} - -func (x *AuthorizationPolicy) Reset() { - *x = AuthorizationPolicy{} - if protoimpl.UnsafeEnabled { - mi := &file_buoyant_cloud_api_proto_msgTypes[22] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *AuthorizationPolicy) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*AuthorizationPolicy) ProtoMessage() {} - -func (x *AuthorizationPolicy) ProtoReflect() protoreflect.Message { - mi := &file_buoyant_cloud_api_proto_msgTypes[22] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use AuthorizationPolicy.ProtoReflect.Descriptor instead. -func (*AuthorizationPolicy) Descriptor() ([]byte, []int) { - return file_buoyant_cloud_api_proto_rawDescGZIP(), []int{22} -} - -func (x *AuthorizationPolicy) GetAuthorizationPolicy() []byte { - if x != nil { - return x.AuthorizationPolicy - } - return nil -} - -type MeshTLSAuthentication struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - MeshTlsAuthentication []byte `protobuf:"bytes,1,opt,name=mesh_tls_authentication,json=meshTlsAuthentication,proto3" json:"mesh_tls_authentication,omitempty"` -} - -func (x *MeshTLSAuthentication) Reset() { - *x = MeshTLSAuthentication{} - if protoimpl.UnsafeEnabled { - mi := &file_buoyant_cloud_api_proto_msgTypes[23] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MeshTLSAuthentication) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MeshTLSAuthentication) ProtoMessage() {} - -func (x *MeshTLSAuthentication) ProtoReflect() protoreflect.Message { - mi := &file_buoyant_cloud_api_proto_msgTypes[23] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use MeshTLSAuthentication.ProtoReflect.Descriptor instead. -func (*MeshTLSAuthentication) Descriptor() ([]byte, []int) { - return file_buoyant_cloud_api_proto_rawDescGZIP(), []int{23} -} - -func (x *MeshTLSAuthentication) GetMeshTlsAuthentication() []byte { - if x != nil { - return x.MeshTlsAuthentication - } - return nil -} - -type NetworkAuthentication struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - NetworkAuthentication []byte `protobuf:"bytes,1,opt,name=network_authentication,json=networkAuthentication,proto3" json:"network_authentication,omitempty"` -} - -func (x *NetworkAuthentication) Reset() { - *x = NetworkAuthentication{} - if protoimpl.UnsafeEnabled { - mi := &file_buoyant_cloud_api_proto_msgTypes[24] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *NetworkAuthentication) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*NetworkAuthentication) ProtoMessage() {} - -func (x *NetworkAuthentication) ProtoReflect() protoreflect.Message { - mi := &file_buoyant_cloud_api_proto_msgTypes[24] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use NetworkAuthentication.ProtoReflect.Descriptor instead. -func (*NetworkAuthentication) Descriptor() ([]byte, []int) { - return file_buoyant_cloud_api_proto_rawDescGZIP(), []int{24} -} - -func (x *NetworkAuthentication) GetNetworkAuthentication() []byte { - if x != nil { - return x.NetworkAuthentication - } - return nil -} - -type AuthPolicyInfo struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Servers []*Server `protobuf:"bytes,1,rep,name=servers,proto3" json:"servers,omitempty"` - ServerAuthorizations []*ServerAuthorization `protobuf:"bytes,2,rep,name=server_authorizations,json=serverAuthorizations,proto3" json:"server_authorizations,omitempty"` - AuthorizationPolicies []*AuthorizationPolicy `protobuf:"bytes,3,rep,name=authorization_policies,json=authorizationPolicies,proto3" json:"authorization_policies,omitempty"` - MeshTlsAuthentications []*MeshTLSAuthentication `protobuf:"bytes,4,rep,name=mesh_tls_authentications,json=meshTlsAuthentications,proto3" json:"mesh_tls_authentications,omitempty"` - NetworkAuthentications []*NetworkAuthentication `protobuf:"bytes,5,rep,name=network_authentications,json=networkAuthentications,proto3" json:"network_authentications,omitempty"` -} - -func (x *AuthPolicyInfo) Reset() { - *x = AuthPolicyInfo{} - if protoimpl.UnsafeEnabled { - mi := &file_buoyant_cloud_api_proto_msgTypes[25] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *AuthPolicyInfo) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*AuthPolicyInfo) ProtoMessage() {} - -func (x *AuthPolicyInfo) ProtoReflect() protoreflect.Message { - mi := &file_buoyant_cloud_api_proto_msgTypes[25] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use AuthPolicyInfo.ProtoReflect.Descriptor instead. -func (*AuthPolicyInfo) Descriptor() ([]byte, []int) { - return file_buoyant_cloud_api_proto_rawDescGZIP(), []int{25} -} - -func (x *AuthPolicyInfo) GetServers() []*Server { - if x != nil { - return x.Servers - } - return nil -} - -func (x *AuthPolicyInfo) GetServerAuthorizations() []*ServerAuthorization { - if x != nil { - return x.ServerAuthorizations - } - return nil -} - -func (x *AuthPolicyInfo) GetAuthorizationPolicies() []*AuthorizationPolicy { - if x != nil { - return x.AuthorizationPolicies - } - return nil -} - -func (x *AuthPolicyInfo) GetMeshTlsAuthentications() []*MeshTLSAuthentication { - if x != nil { - return x.MeshTlsAuthentications - } - return nil -} - -func (x *AuthPolicyInfo) GetNetworkAuthentications() []*NetworkAuthentication { - if x != nil { - return x.NetworkAuthentications - } - return nil -} - -type TrafficSplit struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - TrafficSplit []byte `protobuf:"bytes,1,opt,name=traffic_split,json=trafficSplit,proto3" json:"traffic_split,omitempty"` -} - -func (x *TrafficSplit) Reset() { - *x = TrafficSplit{} - if protoimpl.UnsafeEnabled { - mi := &file_buoyant_cloud_api_proto_msgTypes[26] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *TrafficSplit) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*TrafficSplit) ProtoMessage() {} - -func (x *TrafficSplit) ProtoReflect() protoreflect.Message { - mi := &file_buoyant_cloud_api_proto_msgTypes[26] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use TrafficSplit.ProtoReflect.Descriptor instead. -func (*TrafficSplit) Descriptor() ([]byte, []int) { - return file_buoyant_cloud_api_proto_rawDescGZIP(), []int{26} -} - -func (x *TrafficSplit) GetTrafficSplit() []byte { - if x != nil { - return x.TrafficSplit - } - return nil -} - -type TrafficSplitInfo struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - TrafficSplits []*TrafficSplit `protobuf:"bytes,1,rep,name=traffic_splits,json=trafficSplits,proto3" json:"traffic_splits,omitempty"` -} - -func (x *TrafficSplitInfo) Reset() { - *x = TrafficSplitInfo{} - if protoimpl.UnsafeEnabled { - mi := &file_buoyant_cloud_api_proto_msgTypes[27] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *TrafficSplitInfo) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*TrafficSplitInfo) ProtoMessage() {} - -func (x *TrafficSplitInfo) ProtoReflect() protoreflect.Message { - mi := &file_buoyant_cloud_api_proto_msgTypes[27] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use TrafficSplitInfo.ProtoReflect.Descriptor instead. -func (*TrafficSplitInfo) Descriptor() ([]byte, []int) { - return file_buoyant_cloud_api_proto_rawDescGZIP(), []int{27} -} - -func (x *TrafficSplitInfo) GetTrafficSplits() []*TrafficSplit { - if x != nil { - return x.TrafficSplits - } - return nil -} - -type ServiceProfile struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ServiceProfile []byte `protobuf:"bytes,1,opt,name=service_profile,json=serviceProfile,proto3" json:"service_profile,omitempty"` -} - -func (x *ServiceProfile) Reset() { - *x = ServiceProfile{} - if protoimpl.UnsafeEnabled { - mi := &file_buoyant_cloud_api_proto_msgTypes[28] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ServiceProfile) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ServiceProfile) ProtoMessage() {} - -func (x *ServiceProfile) ProtoReflect() protoreflect.Message { - mi := &file_buoyant_cloud_api_proto_msgTypes[28] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ServiceProfile.ProtoReflect.Descriptor instead. -func (*ServiceProfile) Descriptor() ([]byte, []int) { - return file_buoyant_cloud_api_proto_rawDescGZIP(), []int{28} -} - -func (x *ServiceProfile) GetServiceProfile() []byte { - if x != nil { - return x.ServiceProfile - } - return nil -} - -type ServiceProfileInfo struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ServiceProfiles []*ServiceProfile `protobuf:"bytes,1,rep,name=service_profiles,json=serviceProfiles,proto3" json:"service_profiles,omitempty"` -} - -func (x *ServiceProfileInfo) Reset() { - *x = ServiceProfileInfo{} - if protoimpl.UnsafeEnabled { - mi := &file_buoyant_cloud_api_proto_msgTypes[29] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ServiceProfileInfo) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ServiceProfileInfo) ProtoMessage() {} - -func (x *ServiceProfileInfo) ProtoReflect() protoreflect.Message { - mi := &file_buoyant_cloud_api_proto_msgTypes[29] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ServiceProfileInfo.ProtoReflect.Descriptor instead. -func (*ServiceProfileInfo) Descriptor() ([]byte, []int) { - return file_buoyant_cloud_api_proto_rawDescGZIP(), []int{29} -} - -func (x *ServiceProfileInfo) GetServiceProfiles() []*ServiceProfile { - if x != nil { - return x.ServiceProfiles - } - return nil -} - -type MulticlusterLink struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - MulticlusterLink []byte `protobuf:"bytes,1,opt,name=multicluster_link,json=multiclusterLink,proto3" json:"multicluster_link,omitempty"` -} - -func (x *MulticlusterLink) Reset() { - *x = MulticlusterLink{} - if protoimpl.UnsafeEnabled { - mi := &file_buoyant_cloud_api_proto_msgTypes[30] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MulticlusterLink) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MulticlusterLink) ProtoMessage() {} - -func (x *MulticlusterLink) ProtoReflect() protoreflect.Message { - mi := &file_buoyant_cloud_api_proto_msgTypes[30] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use MulticlusterLink.ProtoReflect.Descriptor instead. -func (*MulticlusterLink) Descriptor() ([]byte, []int) { - return file_buoyant_cloud_api_proto_rawDescGZIP(), []int{30} -} - -func (x *MulticlusterLink) GetMulticlusterLink() []byte { - if x != nil { - return x.MulticlusterLink - } - return nil -} - -type MulticlusterInfo struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - MulticlusterLinks []*MulticlusterLink `protobuf:"bytes,1,rep,name=multicluster_links,json=multiclusterLinks,proto3" json:"multicluster_links,omitempty"` -} - -func (x *MulticlusterInfo) Reset() { - *x = MulticlusterInfo{} - if protoimpl.UnsafeEnabled { - mi := &file_buoyant_cloud_api_proto_msgTypes[31] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MulticlusterInfo) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MulticlusterInfo) ProtoMessage() {} - -func (x *MulticlusterInfo) ProtoReflect() protoreflect.Message { - mi := &file_buoyant_cloud_api_proto_msgTypes[31] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use MulticlusterInfo.ProtoReflect.Descriptor instead. -func (*MulticlusterInfo) Descriptor() ([]byte, []int) { - return file_buoyant_cloud_api_proto_rawDescGZIP(), []int{31} -} - -func (x *MulticlusterInfo) GetMulticlusterLinks() []*MulticlusterLink { - if x != nil { - return x.MulticlusterLinks - } - return nil -} - -type LinkerdMessage struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Deprecated: Do not use. - Auth *Auth `protobuf:"bytes,1,opt,name=auth,proto3" json:"auth,omitempty"` - // Types that are assignable to Message: - // *LinkerdMessage_CrtInfo - // *LinkerdMessage_AuthPolicyInfo - // *LinkerdMessage_TrafficSplitInfo - // *LinkerdMessage_ServiceProfileInfo - // *LinkerdMessage_MulticlusterInfo - Message isLinkerdMessage_Message `protobuf_oneof:"message"` -} - -func (x *LinkerdMessage) Reset() { - *x = LinkerdMessage{} - if protoimpl.UnsafeEnabled { - mi := &file_buoyant_cloud_api_proto_msgTypes[32] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *LinkerdMessage) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*LinkerdMessage) ProtoMessage() {} - -func (x *LinkerdMessage) ProtoReflect() protoreflect.Message { - mi := &file_buoyant_cloud_api_proto_msgTypes[32] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use LinkerdMessage.ProtoReflect.Descriptor instead. -func (*LinkerdMessage) Descriptor() ([]byte, []int) { - return file_buoyant_cloud_api_proto_rawDescGZIP(), []int{32} -} - -// Deprecated: Do not use. -func (x *LinkerdMessage) GetAuth() *Auth { - if x != nil { - return x.Auth - } - return nil -} - -func (m *LinkerdMessage) GetMessage() isLinkerdMessage_Message { - if m != nil { - return m.Message - } - return nil -} - -func (x *LinkerdMessage) GetCrtInfo() *CertificateInfo { - if x, ok := x.GetMessage().(*LinkerdMessage_CrtInfo); ok { - return x.CrtInfo - } - return nil -} - -func (x *LinkerdMessage) GetAuthPolicyInfo() *AuthPolicyInfo { - if x, ok := x.GetMessage().(*LinkerdMessage_AuthPolicyInfo); ok { - return x.AuthPolicyInfo - } - return nil -} - -func (x *LinkerdMessage) GetTrafficSplitInfo() *TrafficSplitInfo { - if x, ok := x.GetMessage().(*LinkerdMessage_TrafficSplitInfo); ok { - return x.TrafficSplitInfo - } - return nil -} - -func (x *LinkerdMessage) GetServiceProfileInfo() *ServiceProfileInfo { - if x, ok := x.GetMessage().(*LinkerdMessage_ServiceProfileInfo); ok { - return x.ServiceProfileInfo - } - return nil -} - -func (x *LinkerdMessage) GetMulticlusterInfo() *MulticlusterInfo { - if x, ok := x.GetMessage().(*LinkerdMessage_MulticlusterInfo); ok { - return x.MulticlusterInfo - } - return nil -} - -type isLinkerdMessage_Message interface { - isLinkerdMessage_Message() -} - -type LinkerdMessage_CrtInfo struct { - CrtInfo *CertificateInfo `protobuf:"bytes,2,opt,name=crt_info,json=crtInfo,proto3,oneof"` -} - -type LinkerdMessage_AuthPolicyInfo struct { - AuthPolicyInfo *AuthPolicyInfo `protobuf:"bytes,3,opt,name=auth_policy_info,json=authPolicyInfo,proto3,oneof"` -} - -type LinkerdMessage_TrafficSplitInfo struct { - TrafficSplitInfo *TrafficSplitInfo `protobuf:"bytes,4,opt,name=traffic_split_info,json=trafficSplitInfo,proto3,oneof"` -} - -type LinkerdMessage_ServiceProfileInfo struct { - ServiceProfileInfo *ServiceProfileInfo `protobuf:"bytes,5,opt,name=service_profile_info,json=serviceProfileInfo,proto3,oneof"` -} - -type LinkerdMessage_MulticlusterInfo struct { - MulticlusterInfo *MulticlusterInfo `protobuf:"bytes,6,opt,name=multicluster_info,json=multiclusterInfo,proto3,oneof"` -} - -func (*LinkerdMessage_CrtInfo) isLinkerdMessage_Message() {} - -func (*LinkerdMessage_AuthPolicyInfo) isLinkerdMessage_Message() {} - -func (*LinkerdMessage_TrafficSplitInfo) isLinkerdMessage_Message() {} - -func (*LinkerdMessage_ServiceProfileInfo) isLinkerdMessage_Message() {} - -func (*LinkerdMessage_MulticlusterInfo) isLinkerdMessage_Message() {} - -type GetProxyDiagnostics struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - DiagnosticId string `protobuf:"bytes,1,opt,name=diagnostic_id,json=diagnosticId,proto3" json:"diagnostic_id,omitempty"` - PodName string `protobuf:"bytes,2,opt,name=pod_name,json=podName,proto3" json:"pod_name,omitempty"` - PodNamespace string `protobuf:"bytes,3,opt,name=pod_namespace,json=podNamespace,proto3" json:"pod_namespace,omitempty"` -} - -func (x *GetProxyDiagnostics) Reset() { - *x = GetProxyDiagnostics{} - if protoimpl.UnsafeEnabled { - mi := &file_buoyant_cloud_api_proto_msgTypes[33] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetProxyDiagnostics) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetProxyDiagnostics) ProtoMessage() {} - -func (x *GetProxyDiagnostics) ProtoReflect() protoreflect.Message { - mi := &file_buoyant_cloud_api_proto_msgTypes[33] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetProxyDiagnostics.ProtoReflect.Descriptor instead. -func (*GetProxyDiagnostics) Descriptor() ([]byte, []int) { - return file_buoyant_cloud_api_proto_rawDescGZIP(), []int{33} -} - -func (x *GetProxyDiagnostics) GetDiagnosticId() string { - if x != nil { - return x.DiagnosticId - } - return "" -} - -func (x *GetProxyDiagnostics) GetPodName() string { - if x != nil { - return x.PodName - } - return "" -} - -func (x *GetProxyDiagnostics) GetPodNamespace() string { - if x != nil { - return x.PodNamespace - } - return "" -} - -type GetProxyLogs struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - PodName string `protobuf:"bytes,1,opt,name=pod_name,json=podName,proto3" json:"pod_name,omitempty"` - PodNamespace string `protobuf:"bytes,2,opt,name=pod_namespace,json=podNamespace,proto3" json:"pod_namespace,omitempty"` - NumLines int32 `protobuf:"varint,3,opt,name=num_lines,json=numLines,proto3" json:"num_lines,omitempty"` -} - -func (x *GetProxyLogs) Reset() { - *x = GetProxyLogs{} - if protoimpl.UnsafeEnabled { - mi := &file_buoyant_cloud_api_proto_msgTypes[34] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetProxyLogs) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetProxyLogs) ProtoMessage() {} - -func (x *GetProxyLogs) ProtoReflect() protoreflect.Message { - mi := &file_buoyant_cloud_api_proto_msgTypes[34] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetProxyLogs.ProtoReflect.Descriptor instead. -func (*GetProxyLogs) Descriptor() ([]byte, []int) { - return file_buoyant_cloud_api_proto_rawDescGZIP(), []int{34} -} - -func (x *GetProxyLogs) GetPodName() string { - if x != nil { - return x.PodName - } - return "" -} - -func (x *GetProxyLogs) GetPodNamespace() string { - if x != nil { - return x.PodNamespace - } - return "" -} - -func (x *GetProxyLogs) GetNumLines() int32 { - if x != nil { - return x.NumLines - } - return 0 -} - -type AgentCommand struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Types that are assignable to Command: - // *AgentCommand_GetProxyDiagnostics - // *AgentCommand_GetProxyLogs - Command isAgentCommand_Command `protobuf_oneof:"command"` -} - -func (x *AgentCommand) Reset() { - *x = AgentCommand{} - if protoimpl.UnsafeEnabled { - mi := &file_buoyant_cloud_api_proto_msgTypes[35] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *AgentCommand) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*AgentCommand) ProtoMessage() {} - -func (x *AgentCommand) ProtoReflect() protoreflect.Message { - mi := &file_buoyant_cloud_api_proto_msgTypes[35] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use AgentCommand.ProtoReflect.Descriptor instead. -func (*AgentCommand) Descriptor() ([]byte, []int) { - return file_buoyant_cloud_api_proto_rawDescGZIP(), []int{35} -} - -func (m *AgentCommand) GetCommand() isAgentCommand_Command { - if m != nil { - return m.Command - } - return nil -} - -func (x *AgentCommand) GetGetProxyDiagnostics() *GetProxyDiagnostics { - if x, ok := x.GetCommand().(*AgentCommand_GetProxyDiagnostics); ok { - return x.GetProxyDiagnostics - } - return nil -} - -func (x *AgentCommand) GetGetProxyLogs() *GetProxyLogs { - if x, ok := x.GetCommand().(*AgentCommand_GetProxyLogs); ok { - return x.GetProxyLogs - } - return nil -} - -type isAgentCommand_Command interface { - isAgentCommand_Command() -} - -type AgentCommand_GetProxyDiagnostics struct { - GetProxyDiagnostics *GetProxyDiagnostics `protobuf:"bytes,1,opt,name=get_proxy_diagnostics,json=getProxyDiagnostics,proto3,oneof"` -} - -type AgentCommand_GetProxyLogs struct { - GetProxyLogs *GetProxyLogs `protobuf:"bytes,2,opt,name=get_proxy_logs,json=getProxyLogs,proto3,oneof"` -} - -func (*AgentCommand_GetProxyDiagnostics) isAgentCommand_Command() {} - -func (*AgentCommand_GetProxyLogs) isAgentCommand_Command() {} - -type ProxyDiagnostic struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Deprecated: Do not use. - Auth *Auth `protobuf:"bytes,1,opt,name=auth,proto3" json:"auth,omitempty"` - DiagnosticId string `protobuf:"bytes,2,opt,name=diagnostic_id,json=diagnosticId,proto3" json:"diagnostic_id,omitempty"` - Logs []byte `protobuf:"bytes,3,opt,name=logs,proto3" json:"logs,omitempty"` - Metrics [][]byte `protobuf:"bytes,4,rep,name=metrics,proto3" json:"metrics,omitempty"` - PodManifest *Pod `protobuf:"bytes,5,opt,name=pod_manifest,json=podManifest,proto3" json:"pod_manifest,omitempty"` - LinkerdConfigMap *ConfigMap `protobuf:"bytes,6,opt,name=linkerd_config_map,json=linkerdConfigMap,proto3" json:"linkerd_config_map,omitempty"` - Nodes []*Node `protobuf:"bytes,7,rep,name=nodes,proto3" json:"nodes,omitempty"` - K8SServiceManifest *Service `protobuf:"bytes,8,opt,name=k8s_service_manifest,json=k8sServiceManifest,proto3" json:"k8s_service_manifest,omitempty"` -} - -func (x *ProxyDiagnostic) Reset() { - *x = ProxyDiagnostic{} - if protoimpl.UnsafeEnabled { - mi := &file_buoyant_cloud_api_proto_msgTypes[36] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ProxyDiagnostic) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ProxyDiagnostic) ProtoMessage() {} - -func (x *ProxyDiagnostic) ProtoReflect() protoreflect.Message { - mi := &file_buoyant_cloud_api_proto_msgTypes[36] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ProxyDiagnostic.ProtoReflect.Descriptor instead. -func (*ProxyDiagnostic) Descriptor() ([]byte, []int) { - return file_buoyant_cloud_api_proto_rawDescGZIP(), []int{36} -} - -// Deprecated: Do not use. -func (x *ProxyDiagnostic) GetAuth() *Auth { - if x != nil { - return x.Auth - } - return nil -} - -func (x *ProxyDiagnostic) GetDiagnosticId() string { - if x != nil { - return x.DiagnosticId - } - return "" -} - -func (x *ProxyDiagnostic) GetLogs() []byte { - if x != nil { - return x.Logs - } - return nil -} - -func (x *ProxyDiagnostic) GetMetrics() [][]byte { - if x != nil { - return x.Metrics - } - return nil -} - -func (x *ProxyDiagnostic) GetPodManifest() *Pod { - if x != nil { - return x.PodManifest - } - return nil -} - -func (x *ProxyDiagnostic) GetLinkerdConfigMap() *ConfigMap { - if x != nil { - return x.LinkerdConfigMap - } - return nil -} - -func (x *ProxyDiagnostic) GetNodes() []*Node { - if x != nil { - return x.Nodes - } - return nil -} - -func (x *ProxyDiagnostic) GetK8SServiceManifest() *Service { - if x != nil { - return x.K8SServiceManifest - } - return nil -} - -type ProxyLog struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Deprecated: Do not use. - Auth *Auth `protobuf:"bytes,1,opt,name=auth,proto3" json:"auth,omitempty"` - PodName string `protobuf:"bytes,2,opt,name=pod_name,json=podName,proto3" json:"pod_name,omitempty"` - PodNamespace string `protobuf:"bytes,3,opt,name=pod_namespace,json=podNamespace,proto3" json:"pod_namespace,omitempty"` - Lines []byte `protobuf:"bytes,4,opt,name=lines,proto3" json:"lines,omitempty"` - Timestamp *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=timestamp,proto3" json:"timestamp,omitempty"` -} - -func (x *ProxyLog) Reset() { - *x = ProxyLog{} - if protoimpl.UnsafeEnabled { - mi := &file_buoyant_cloud_api_proto_msgTypes[37] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ProxyLog) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ProxyLog) ProtoMessage() {} - -func (x *ProxyLog) ProtoReflect() protoreflect.Message { - mi := &file_buoyant_cloud_api_proto_msgTypes[37] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ProxyLog.ProtoReflect.Descriptor instead. -func (*ProxyLog) Descriptor() ([]byte, []int) { - return file_buoyant_cloud_api_proto_rawDescGZIP(), []int{37} -} - -// Deprecated: Do not use. -func (x *ProxyLog) GetAuth() *Auth { - if x != nil { - return x.Auth - } - return nil -} - -func (x *ProxyLog) GetPodName() string { - if x != nil { - return x.PodName - } - return "" -} - -func (x *ProxyLog) GetPodNamespace() string { - if x != nil { - return x.PodNamespace - } - return "" -} - -func (x *ProxyLog) GetLines() []byte { - if x != nil { - return x.Lines - } - return nil -} - -func (x *ProxyLog) GetTimestamp() *timestamppb.Timestamp { - if x != nil { - return x.Timestamp - } - return nil -} - -var File_buoyant_cloud_api_proto protoreflect.FileDescriptor - -var file_buoyant_cloud_api_proto_rawDesc = []byte{ - 0x0a, 0x17, 0x62, 0x75, 0x6f, 0x79, 0x61, 0x6e, 0x74, 0x2d, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2d, - 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0d, 0x62, 0x75, 0x6f, 0x79, 0x61, - 0x6e, 0x74, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, - 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x07, 0x0a, 0x05, 0x45, 0x6d, 0x70, - 0x74, 0x79, 0x22, 0x42, 0x0a, 0x04, 0x41, 0x75, 0x74, 0x68, 0x12, 0x19, 0x0a, 0x08, 0x61, 0x67, - 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x67, - 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x5f, 0x6b, - 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x4b, - 0x65, 0x79, 0x3a, 0x02, 0x18, 0x01, 0x22, 0xcd, 0x01, 0x0a, 0x08, 0x57, 0x6f, 0x72, 0x6b, 0x6c, - 0x6f, 0x61, 0x64, 0x12, 0x38, 0x0a, 0x09, 0x64, 0x61, 0x65, 0x6d, 0x6f, 0x6e, 0x73, 0x65, 0x74, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x62, 0x75, 0x6f, 0x79, 0x61, 0x6e, 0x74, - 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x44, 0x61, 0x65, 0x6d, 0x6f, 0x6e, 0x53, 0x65, 0x74, - 0x48, 0x00, 0x52, 0x09, 0x64, 0x61, 0x65, 0x6d, 0x6f, 0x6e, 0x73, 0x65, 0x74, 0x12, 0x3b, 0x0a, - 0x0a, 0x64, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x19, 0x2e, 0x62, 0x75, 0x6f, 0x79, 0x61, 0x6e, 0x74, 0x2e, 0x63, 0x6c, 0x6f, 0x75, - 0x64, 0x2e, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x0a, - 0x64, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x3e, 0x0a, 0x0b, 0x73, 0x74, - 0x61, 0x74, 0x65, 0x66, 0x75, 0x6c, 0x73, 0x65, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x1a, 0x2e, 0x62, 0x75, 0x6f, 0x79, 0x61, 0x6e, 0x74, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, - 0x53, 0x74, 0x61, 0x74, 0x65, 0x66, 0x75, 0x6c, 0x53, 0x65, 0x74, 0x48, 0x00, 0x52, 0x0b, 0x73, - 0x74, 0x61, 0x74, 0x65, 0x66, 0x75, 0x6c, 0x73, 0x65, 0x74, 0x42, 0x0a, 0x0a, 0x08, 0x77, 0x6f, - 0x72, 0x6b, 0x6c, 0x6f, 0x61, 0x64, 0x22, 0x52, 0x0a, 0x09, 0x44, 0x61, 0x65, 0x6d, 0x6f, 0x6e, - 0x53, 0x65, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x64, 0x61, 0x65, 0x6d, 0x6f, 0x6e, 0x5f, 0x73, 0x65, - 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x64, 0x61, 0x65, 0x6d, 0x6f, 0x6e, 0x53, - 0x65, 0x74, 0x12, 0x26, 0x0a, 0x04, 0x70, 0x6f, 0x64, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x12, 0x2e, 0x62, 0x75, 0x6f, 0x79, 0x61, 0x6e, 0x74, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, - 0x2e, 0x50, 0x6f, 0x64, 0x52, 0x04, 0x70, 0x6f, 0x64, 0x73, 0x22, 0x6a, 0x0a, 0x0a, 0x44, 0x65, - 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x64, 0x65, 0x70, 0x6c, - 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0a, 0x64, 0x65, - 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x3c, 0x0a, 0x0c, 0x72, 0x65, 0x70, 0x6c, - 0x69, 0x63, 0x61, 0x5f, 0x73, 0x65, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, - 0x2e, 0x62, 0x75, 0x6f, 0x79, 0x61, 0x6e, 0x74, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x52, - 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x53, 0x65, 0x74, 0x52, 0x0b, 0x72, 0x65, 0x70, 0x6c, 0x69, - 0x63, 0x61, 0x53, 0x65, 0x74, 0x73, 0x22, 0x58, 0x0a, 0x0b, 0x53, 0x74, 0x61, 0x74, 0x65, 0x66, - 0x75, 0x6c, 0x53, 0x65, 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x73, 0x74, 0x61, 0x74, 0x65, 0x66, 0x75, - 0x6c, 0x5f, 0x73, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0b, 0x73, 0x74, 0x61, - 0x74, 0x65, 0x66, 0x75, 0x6c, 0x53, 0x65, 0x74, 0x12, 0x26, 0x0a, 0x04, 0x70, 0x6f, 0x64, 0x73, - 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x62, 0x75, 0x6f, 0x79, 0x61, 0x6e, 0x74, - 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x50, 0x6f, 0x64, 0x52, 0x04, 0x70, 0x6f, 0x64, 0x73, - 0x22, 0x55, 0x0a, 0x0a, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x53, 0x65, 0x74, 0x12, 0x1f, - 0x0a, 0x0b, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x5f, 0x73, 0x65, 0x74, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0c, 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x53, 0x65, 0x74, 0x12, - 0x26, 0x0a, 0x04, 0x70, 0x6f, 0x64, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x12, 0x2e, - 0x62, 0x75, 0x6f, 0x79, 0x61, 0x6e, 0x74, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x50, 0x6f, - 0x64, 0x52, 0x04, 0x70, 0x6f, 0x64, 0x73, 0x22, 0x17, 0x0a, 0x03, 0x50, 0x6f, 0x64, 0x12, 0x10, - 0x0a, 0x03, 0x70, 0x6f, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x03, 0x70, 0x6f, 0x64, - 0x22, 0x2a, 0x0a, 0x09, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x4d, 0x61, 0x70, 0x12, 0x1d, 0x0a, - 0x0a, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x5f, 0x6d, 0x61, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0c, 0x52, 0x09, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x4d, 0x61, 0x70, 0x22, 0x1a, 0x0a, 0x04, - 0x4e, 0x6f, 0x64, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0c, 0x52, 0x04, 0x6e, 0x6f, 0x64, 0x65, 0x22, 0x23, 0x0a, 0x07, 0x53, 0x65, 0x72, 0x76, - 0x69, 0x63, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x22, 0xa9, 0x02, - 0x0a, 0x0f, 0x57, 0x6f, 0x72, 0x6b, 0x6c, 0x6f, 0x61, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, - 0x65, 0x12, 0x2d, 0x0a, 0x04, 0x61, 0x75, 0x74, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x13, 0x2e, 0x62, 0x75, 0x6f, 0x79, 0x61, 0x6e, 0x74, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, - 0x41, 0x75, 0x74, 0x68, 0x42, 0x02, 0x18, 0x01, 0x48, 0x00, 0x52, 0x04, 0x61, 0x75, 0x74, 0x68, - 0x12, 0x32, 0x0a, 0x05, 0x61, 0x64, 0x64, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x1a, 0x2e, 0x62, 0x75, 0x6f, 0x79, 0x61, 0x6e, 0x74, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, - 0x41, 0x64, 0x64, 0x57, 0x6f, 0x72, 0x6b, 0x6c, 0x6f, 0x61, 0x64, 0x48, 0x00, 0x52, 0x05, 0x61, - 0x64, 0x64, 0x65, 0x64, 0x12, 0x39, 0x0a, 0x07, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x62, 0x75, 0x6f, 0x79, 0x61, 0x6e, 0x74, 0x2e, - 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x57, 0x6f, 0x72, 0x6b, - 0x6c, 0x6f, 0x61, 0x64, 0x48, 0x00, 0x52, 0x07, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x12, - 0x39, 0x0a, 0x07, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x1d, 0x2e, 0x62, 0x75, 0x6f, 0x79, 0x61, 0x6e, 0x74, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, - 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x57, 0x6f, 0x72, 0x6b, 0x6c, 0x6f, 0x61, 0x64, 0x48, - 0x00, 0x52, 0x07, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x12, 0x32, 0x0a, 0x04, 0x6c, 0x69, - 0x73, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x62, 0x75, 0x6f, 0x79, 0x61, - 0x6e, 0x74, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x57, 0x6f, 0x72, - 0x6b, 0x6c, 0x6f, 0x61, 0x64, 0x73, 0x48, 0x00, 0x52, 0x04, 0x6c, 0x69, 0x73, 0x74, 0x42, 0x09, - 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x42, 0x0a, 0x0b, 0x41, 0x64, 0x64, - 0x57, 0x6f, 0x72, 0x6b, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x33, 0x0a, 0x08, 0x77, 0x6f, 0x72, 0x6b, - 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x62, 0x75, 0x6f, - 0x79, 0x61, 0x6e, 0x74, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x6c, - 0x6f, 0x61, 0x64, 0x52, 0x08, 0x77, 0x6f, 0x72, 0x6b, 0x6c, 0x6f, 0x61, 0x64, 0x22, 0x45, 0x0a, - 0x0e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x57, 0x6f, 0x72, 0x6b, 0x6c, 0x6f, 0x61, 0x64, 0x12, - 0x33, 0x0a, 0x08, 0x77, 0x6f, 0x72, 0x6b, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x17, 0x2e, 0x62, 0x75, 0x6f, 0x79, 0x61, 0x6e, 0x74, 0x2e, 0x63, 0x6c, 0x6f, 0x75, - 0x64, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x08, 0x77, 0x6f, 0x72, 0x6b, - 0x6c, 0x6f, 0x61, 0x64, 0x22, 0xc2, 0x01, 0x0a, 0x0e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x57, - 0x6f, 0x72, 0x6b, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x3a, 0x0a, 0x0c, 0x6f, 0x6c, 0x64, 0x5f, 0x77, - 0x6f, 0x72, 0x6b, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, - 0x62, 0x75, 0x6f, 0x79, 0x61, 0x6e, 0x74, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x57, 0x6f, - 0x72, 0x6b, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x0b, 0x6f, 0x6c, 0x64, 0x57, 0x6f, 0x72, 0x6b, 0x6c, - 0x6f, 0x61, 0x64, 0x12, 0x3a, 0x0a, 0x0c, 0x6e, 0x65, 0x77, 0x5f, 0x77, 0x6f, 0x72, 0x6b, 0x6c, - 0x6f, 0x61, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x62, 0x75, 0x6f, 0x79, - 0x61, 0x6e, 0x74, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x6c, 0x6f, - 0x61, 0x64, 0x52, 0x0b, 0x6e, 0x65, 0x77, 0x57, 0x6f, 0x72, 0x6b, 0x6c, 0x6f, 0x61, 0x64, 0x12, - 0x38, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, - 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x22, 0x46, 0x0a, 0x0d, 0x4c, 0x69, 0x73, - 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x6c, 0x6f, 0x61, 0x64, 0x73, 0x12, 0x35, 0x0a, 0x09, 0x77, 0x6f, - 0x72, 0x6b, 0x6c, 0x6f, 0x61, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, - 0x62, 0x75, 0x6f, 0x79, 0x61, 0x6e, 0x74, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x57, 0x6f, - 0x72, 0x6b, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x09, 0x77, 0x6f, 0x72, 0x6b, 0x6c, 0x6f, 0x61, 0x64, - 0x73, 0x22, 0x79, 0x0a, 0x05, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x2b, 0x0a, 0x04, 0x61, 0x75, - 0x74, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x62, 0x75, 0x6f, 0x79, 0x61, - 0x6e, 0x74, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x42, 0x02, 0x18, - 0x01, 0x52, 0x04, 0x61, 0x75, 0x74, 0x68, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x2d, 0x0a, - 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x62, - 0x75, 0x6f, 0x79, 0x61, 0x6e, 0x74, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x57, 0x6f, 0x72, - 0x6b, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x22, 0x1c, 0x0a, 0x08, - 0x43, 0x65, 0x72, 0x74, 0x44, 0x61, 0x74, 0x61, 0x12, 0x10, 0x0a, 0x03, 0x72, 0x61, 0x77, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x03, 0x72, 0x61, 0x77, 0x22, 0x85, 0x01, 0x0a, 0x11, 0x43, - 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x50, 0x6c, 0x61, 0x6e, 0x65, 0x43, 0x65, 0x72, 0x74, 0x73, - 0x12, 0x41, 0x0a, 0x10, 0x69, 0x73, 0x73, 0x75, 0x65, 0x72, 0x5f, 0x63, 0x72, 0x74, 0x5f, 0x63, - 0x68, 0x61, 0x69, 0x6e, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x62, 0x75, 0x6f, - 0x79, 0x61, 0x6e, 0x74, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x43, 0x65, 0x72, 0x74, 0x44, - 0x61, 0x74, 0x61, 0x52, 0x0e, 0x69, 0x73, 0x73, 0x75, 0x65, 0x72, 0x43, 0x72, 0x74, 0x43, 0x68, - 0x61, 0x69, 0x6e, 0x12, 0x2d, 0x0a, 0x05, 0x72, 0x6f, 0x6f, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, - 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x62, 0x75, 0x6f, 0x79, 0x61, 0x6e, 0x74, 0x2e, 0x63, 0x6c, 0x6f, - 0x75, 0x64, 0x2e, 0x43, 0x65, 0x72, 0x74, 0x44, 0x61, 0x74, 0x61, 0x52, 0x05, 0x72, 0x6f, 0x6f, - 0x74, 0x73, 0x22, 0x62, 0x0a, 0x0f, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, - 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x47, 0x0a, 0x0d, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, - 0x5f, 0x70, 0x6c, 0x61, 0x6e, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x62, - 0x75, 0x6f, 0x79, 0x61, 0x6e, 0x74, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x43, 0x6f, 0x6e, - 0x74, 0x72, 0x6f, 0x6c, 0x50, 0x6c, 0x61, 0x6e, 0x65, 0x43, 0x65, 0x72, 0x74, 0x73, 0x48, 0x00, - 0x52, 0x0c, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x50, 0x6c, 0x61, 0x6e, 0x65, 0x42, 0x06, - 0x0a, 0x04, 0x69, 0x6e, 0x66, 0x6f, 0x22, 0x20, 0x0a, 0x06, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, - 0x12, 0x16, 0x0a, 0x06, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, - 0x52, 0x06, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x22, 0x48, 0x0a, 0x13, 0x53, 0x65, 0x72, 0x76, - 0x65, 0x72, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, - 0x31, 0x0a, 0x14, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, - 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x13, 0x73, - 0x65, 0x72, 0x76, 0x65, 0x72, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x22, 0x48, 0x0a, 0x13, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x31, 0x0a, 0x14, 0x61, 0x75, 0x74, - 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, - 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x13, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, - 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x22, 0x4f, 0x0a, 0x15, - 0x4d, 0x65, 0x73, 0x68, 0x54, 0x4c, 0x53, 0x41, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x36, 0x0a, 0x17, 0x6d, 0x65, 0x73, 0x68, 0x5f, 0x74, 0x6c, - 0x73, 0x5f, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x15, 0x6d, 0x65, 0x73, 0x68, 0x54, 0x6c, 0x73, 0x41, - 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x4e, 0x0a, - 0x15, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x41, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, - 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x35, 0x0a, 0x16, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, - 0x6b, 0x5f, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x15, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x41, - 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xb4, 0x03, - 0x0a, 0x0e, 0x41, 0x75, 0x74, 0x68, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x49, 0x6e, 0x66, 0x6f, - 0x12, 0x2f, 0x0a, 0x07, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x15, 0x2e, 0x62, 0x75, 0x6f, 0x79, 0x61, 0x6e, 0x74, 0x2e, 0x63, 0x6c, 0x6f, 0x75, - 0x64, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x52, 0x07, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, - 0x73, 0x12, 0x57, 0x0a, 0x15, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x61, 0x75, 0x74, 0x68, - 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x22, 0x2e, 0x62, 0x75, 0x6f, 0x79, 0x61, 0x6e, 0x74, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, - 0x2e, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x14, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x41, 0x75, 0x74, 0x68, - 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x59, 0x0a, 0x16, 0x61, 0x75, - 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x70, 0x6f, 0x6c, 0x69, - 0x63, 0x69, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x62, 0x75, 0x6f, - 0x79, 0x61, 0x6e, 0x74, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x6f, - 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x15, - 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x6c, - 0x69, 0x63, 0x69, 0x65, 0x73, 0x12, 0x5e, 0x0a, 0x18, 0x6d, 0x65, 0x73, 0x68, 0x5f, 0x74, 0x6c, - 0x73, 0x5f, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x62, 0x75, 0x6f, 0x79, 0x61, 0x6e, - 0x74, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x4d, 0x65, 0x73, 0x68, 0x54, 0x4c, 0x53, 0x41, - 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x16, 0x6d, - 0x65, 0x73, 0x68, 0x54, 0x6c, 0x73, 0x41, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x5d, 0x0a, 0x17, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, - 0x5f, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, - 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x62, 0x75, 0x6f, 0x79, 0x61, 0x6e, 0x74, - 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x41, 0x75, - 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x16, 0x6e, 0x65, - 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x41, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x33, 0x0a, 0x0c, 0x54, 0x72, 0x61, 0x66, 0x66, 0x69, 0x63, 0x53, - 0x70, 0x6c, 0x69, 0x74, 0x12, 0x23, 0x0a, 0x0d, 0x74, 0x72, 0x61, 0x66, 0x66, 0x69, 0x63, 0x5f, - 0x73, 0x70, 0x6c, 0x69, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0c, 0x74, 0x72, 0x61, - 0x66, 0x66, 0x69, 0x63, 0x53, 0x70, 0x6c, 0x69, 0x74, 0x22, 0x56, 0x0a, 0x10, 0x54, 0x72, 0x61, - 0x66, 0x66, 0x69, 0x63, 0x53, 0x70, 0x6c, 0x69, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x42, 0x0a, - 0x0e, 0x74, 0x72, 0x61, 0x66, 0x66, 0x69, 0x63, 0x5f, 0x73, 0x70, 0x6c, 0x69, 0x74, 0x73, 0x18, - 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x62, 0x75, 0x6f, 0x79, 0x61, 0x6e, 0x74, 0x2e, - 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x54, 0x72, 0x61, 0x66, 0x66, 0x69, 0x63, 0x53, 0x70, 0x6c, - 0x69, 0x74, 0x52, 0x0d, 0x74, 0x72, 0x61, 0x66, 0x66, 0x69, 0x63, 0x53, 0x70, 0x6c, 0x69, 0x74, - 0x73, 0x22, 0x39, 0x0a, 0x0e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x66, - 0x69, 0x6c, 0x65, 0x12, 0x27, 0x0a, 0x0f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x70, - 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0e, 0x73, 0x65, - 0x72, 0x76, 0x69, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x22, 0x5e, 0x0a, 0x12, - 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x49, 0x6e, - 0x66, 0x6f, 0x12, 0x48, 0x0a, 0x10, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x70, 0x72, - 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x62, - 0x75, 0x6f, 0x79, 0x61, 0x6e, 0x74, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x53, 0x65, 0x72, - 0x76, 0x69, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x52, 0x0f, 0x73, 0x65, 0x72, - 0x76, 0x69, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x22, 0x3f, 0x0a, 0x10, - 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x4c, 0x69, 0x6e, 0x6b, - 0x12, 0x2b, 0x0a, 0x11, 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, - 0x5f, 0x6c, 0x69, 0x6e, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x10, 0x6d, 0x75, 0x6c, - 0x74, 0x69, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x4c, 0x69, 0x6e, 0x6b, 0x22, 0x62, 0x0a, - 0x10, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x6e, 0x66, - 0x6f, 0x12, 0x4e, 0x0a, 0x12, 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, - 0x72, 0x5f, 0x6c, 0x69, 0x6e, 0x6b, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, - 0x62, 0x75, 0x6f, 0x79, 0x61, 0x6e, 0x74, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x4d, 0x75, - 0x6c, 0x74, 0x69, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x4c, 0x69, 0x6e, 0x6b, 0x52, 0x11, - 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x4c, 0x69, 0x6e, 0x6b, - 0x73, 0x22, 0xc8, 0x03, 0x0a, 0x0e, 0x4c, 0x69, 0x6e, 0x6b, 0x65, 0x72, 0x64, 0x4d, 0x65, 0x73, - 0x73, 0x61, 0x67, 0x65, 0x12, 0x2b, 0x0a, 0x04, 0x61, 0x75, 0x74, 0x68, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x62, 0x75, 0x6f, 0x79, 0x61, 0x6e, 0x74, 0x2e, 0x63, 0x6c, 0x6f, - 0x75, 0x64, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x42, 0x02, 0x18, 0x01, 0x52, 0x04, 0x61, 0x75, 0x74, - 0x68, 0x12, 0x3b, 0x0a, 0x08, 0x63, 0x72, 0x74, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x62, 0x75, 0x6f, 0x79, 0x61, 0x6e, 0x74, 0x2e, 0x63, 0x6c, - 0x6f, 0x75, 0x64, 0x2e, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x49, - 0x6e, 0x66, 0x6f, 0x48, 0x00, 0x52, 0x07, 0x63, 0x72, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x49, - 0x0a, 0x10, 0x61, 0x75, 0x74, 0x68, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x5f, 0x69, 0x6e, - 0x66, 0x6f, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x62, 0x75, 0x6f, 0x79, 0x61, - 0x6e, 0x74, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x50, 0x6f, 0x6c, - 0x69, 0x63, 0x79, 0x49, 0x6e, 0x66, 0x6f, 0x48, 0x00, 0x52, 0x0e, 0x61, 0x75, 0x74, 0x68, 0x50, - 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x4f, 0x0a, 0x12, 0x74, 0x72, 0x61, - 0x66, 0x66, 0x69, 0x63, 0x5f, 0x73, 0x70, 0x6c, 0x69, 0x74, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, - 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x62, 0x75, 0x6f, 0x79, 0x61, 0x6e, 0x74, 0x2e, - 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x54, 0x72, 0x61, 0x66, 0x66, 0x69, 0x63, 0x53, 0x70, 0x6c, - 0x69, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x48, 0x00, 0x52, 0x10, 0x74, 0x72, 0x61, 0x66, 0x66, 0x69, - 0x63, 0x53, 0x70, 0x6c, 0x69, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x55, 0x0a, 0x14, 0x73, 0x65, - 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x69, 0x6e, - 0x66, 0x6f, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x62, 0x75, 0x6f, 0x79, 0x61, - 0x6e, 0x74, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, - 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x48, 0x00, 0x52, 0x12, 0x73, - 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x49, 0x6e, 0x66, - 0x6f, 0x12, 0x4e, 0x0a, 0x11, 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, - 0x72, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x62, - 0x75, 0x6f, 0x79, 0x61, 0x6e, 0x74, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x4d, 0x75, 0x6c, - 0x74, 0x69, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x48, 0x00, 0x52, - 0x10, 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x6e, 0x66, - 0x6f, 0x42, 0x09, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x7a, 0x0a, 0x13, - 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x44, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, - 0x69, 0x63, 0x73, 0x12, 0x23, 0x0a, 0x0d, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, - 0x63, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x64, 0x69, 0x61, 0x67, - 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x49, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x70, 0x6f, 0x64, 0x5f, - 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x6f, 0x64, 0x4e, - 0x61, 0x6d, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x70, 0x6f, 0x64, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x73, - 0x70, 0x61, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x70, 0x6f, 0x64, 0x4e, - 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x22, 0x6b, 0x0a, 0x0c, 0x47, 0x65, 0x74, 0x50, - 0x72, 0x6f, 0x78, 0x79, 0x4c, 0x6f, 0x67, 0x73, 0x12, 0x19, 0x0a, 0x08, 0x70, 0x6f, 0x64, 0x5f, - 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x6f, 0x64, 0x4e, - 0x61, 0x6d, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x70, 0x6f, 0x64, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x73, - 0x70, 0x61, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x70, 0x6f, 0x64, 0x4e, - 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x6e, 0x75, 0x6d, 0x5f, - 0x6c, 0x69, 0x6e, 0x65, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x6e, 0x75, 0x6d, - 0x4c, 0x69, 0x6e, 0x65, 0x73, 0x22, 0xb8, 0x01, 0x0a, 0x0c, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x43, - 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x12, 0x58, 0x0a, 0x15, 0x67, 0x65, 0x74, 0x5f, 0x70, 0x72, - 0x6f, 0x78, 0x79, 0x5f, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x62, 0x75, 0x6f, 0x79, 0x61, 0x6e, 0x74, 0x2e, - 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x44, 0x69, - 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x48, 0x00, 0x52, 0x13, 0x67, 0x65, 0x74, - 0x50, 0x72, 0x6f, 0x78, 0x79, 0x44, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, - 0x12, 0x43, 0x0a, 0x0e, 0x67, 0x65, 0x74, 0x5f, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x5f, 0x6c, 0x6f, - 0x67, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x62, 0x75, 0x6f, 0x79, 0x61, - 0x6e, 0x74, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x78, - 0x79, 0x4c, 0x6f, 0x67, 0x73, 0x48, 0x00, 0x52, 0x0c, 0x67, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x78, - 0x79, 0x4c, 0x6f, 0x67, 0x73, 0x42, 0x09, 0x0a, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, - 0x22, 0x85, 0x03, 0x0a, 0x0f, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x44, 0x69, 0x61, 0x67, 0x6e, 0x6f, - 0x73, 0x74, 0x69, 0x63, 0x12, 0x2b, 0x0a, 0x04, 0x61, 0x75, 0x74, 0x68, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x62, 0x75, 0x6f, 0x79, 0x61, 0x6e, 0x74, 0x2e, 0x63, 0x6c, 0x6f, - 0x75, 0x64, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x42, 0x02, 0x18, 0x01, 0x52, 0x04, 0x61, 0x75, 0x74, - 0x68, 0x12, 0x23, 0x0a, 0x0d, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x5f, - 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, - 0x73, 0x74, 0x69, 0x63, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6c, 0x6f, 0x67, 0x73, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x6c, 0x6f, 0x67, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, - 0x74, 0x72, 0x69, 0x63, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x07, 0x6d, 0x65, 0x74, - 0x72, 0x69, 0x63, 0x73, 0x12, 0x35, 0x0a, 0x0c, 0x70, 0x6f, 0x64, 0x5f, 0x6d, 0x61, 0x6e, 0x69, - 0x66, 0x65, 0x73, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x62, 0x75, 0x6f, - 0x79, 0x61, 0x6e, 0x74, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x50, 0x6f, 0x64, 0x52, 0x0b, - 0x70, 0x6f, 0x64, 0x4d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x12, 0x46, 0x0a, 0x12, 0x6c, - 0x69, 0x6e, 0x6b, 0x65, 0x72, 0x64, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x5f, 0x6d, 0x61, - 0x70, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x62, 0x75, 0x6f, 0x79, 0x61, 0x6e, - 0x74, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x4d, 0x61, - 0x70, 0x52, 0x10, 0x6c, 0x69, 0x6e, 0x6b, 0x65, 0x72, 0x64, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, - 0x4d, 0x61, 0x70, 0x12, 0x29, 0x0a, 0x05, 0x6e, 0x6f, 0x64, 0x65, 0x73, 0x18, 0x07, 0x20, 0x03, - 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x62, 0x75, 0x6f, 0x79, 0x61, 0x6e, 0x74, 0x2e, 0x63, 0x6c, 0x6f, - 0x75, 0x64, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x05, 0x6e, 0x6f, 0x64, 0x65, 0x73, 0x12, 0x48, - 0x0a, 0x14, 0x6b, 0x38, 0x73, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x6d, 0x61, - 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x62, - 0x75, 0x6f, 0x79, 0x61, 0x6e, 0x74, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x53, 0x65, 0x72, - 0x76, 0x69, 0x63, 0x65, 0x52, 0x12, 0x6b, 0x38, 0x73, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, - 0x4d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x22, 0xc7, 0x01, 0x0a, 0x08, 0x50, 0x72, 0x6f, - 0x78, 0x79, 0x4c, 0x6f, 0x67, 0x12, 0x2b, 0x0a, 0x04, 0x61, 0x75, 0x74, 0x68, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x62, 0x75, 0x6f, 0x79, 0x61, 0x6e, 0x74, 0x2e, 0x63, 0x6c, - 0x6f, 0x75, 0x64, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x42, 0x02, 0x18, 0x01, 0x52, 0x04, 0x61, 0x75, - 0x74, 0x68, 0x12, 0x19, 0x0a, 0x08, 0x70, 0x6f, 0x64, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x6f, 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x23, 0x0a, - 0x0d, 0x70, 0x6f, 0x64, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x70, 0x6f, 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, - 0x63, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6e, 0x65, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, - 0x0c, 0x52, 0x05, 0x6c, 0x69, 0x6e, 0x65, 0x73, 0x12, 0x38, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, - 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, - 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, - 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, - 0x6d, 0x70, 0x32, 0xa0, 0x03, 0x0a, 0x03, 0x41, 0x70, 0x69, 0x12, 0x4a, 0x0a, 0x0e, 0x57, 0x6f, - 0x72, 0x6b, 0x6c, 0x6f, 0x61, 0x64, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x12, 0x1e, 0x2e, 0x62, - 0x75, 0x6f, 0x79, 0x61, 0x6e, 0x74, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x57, 0x6f, 0x72, - 0x6b, 0x6c, 0x6f, 0x61, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x1a, 0x14, 0x2e, 0x62, - 0x75, 0x6f, 0x79, 0x61, 0x6e, 0x74, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x45, 0x6d, 0x70, - 0x74, 0x79, 0x22, 0x00, 0x28, 0x01, 0x12, 0x38, 0x0a, 0x08, 0x41, 0x64, 0x64, 0x45, 0x76, 0x65, - 0x6e, 0x74, 0x12, 0x14, 0x2e, 0x62, 0x75, 0x6f, 0x79, 0x61, 0x6e, 0x74, 0x2e, 0x63, 0x6c, 0x6f, - 0x75, 0x64, 0x2e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x1a, 0x14, 0x2e, 0x62, 0x75, 0x6f, 0x79, 0x61, - 0x6e, 0x74, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x00, - 0x12, 0x44, 0x0a, 0x0b, 0x4c, 0x69, 0x6e, 0x6b, 0x65, 0x72, 0x64, 0x49, 0x6e, 0x66, 0x6f, 0x12, - 0x1d, 0x2e, 0x62, 0x75, 0x6f, 0x79, 0x61, 0x6e, 0x74, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, - 0x4c, 0x69, 0x6e, 0x6b, 0x65, 0x72, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x1a, 0x14, - 0x2e, 0x62, 0x75, 0x6f, 0x79, 0x61, 0x6e, 0x74, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x45, - 0x6d, 0x70, 0x74, 0x79, 0x22, 0x00, 0x12, 0x43, 0x0a, 0x0b, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, - 0x41, 0x67, 0x65, 0x6e, 0x74, 0x12, 0x13, 0x2e, 0x62, 0x75, 0x6f, 0x79, 0x61, 0x6e, 0x74, 0x2e, - 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x1a, 0x1b, 0x2e, 0x62, 0x75, 0x6f, - 0x79, 0x61, 0x6e, 0x74, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x41, 0x67, 0x65, 0x6e, 0x74, - 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x22, 0x00, 0x30, 0x01, 0x12, 0x4a, 0x0a, 0x10, 0x50, - 0x72, 0x6f, 0x78, 0x79, 0x44, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x12, - 0x1e, 0x2e, 0x62, 0x75, 0x6f, 0x79, 0x61, 0x6e, 0x74, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, - 0x50, 0x72, 0x6f, 0x78, 0x79, 0x44, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x1a, - 0x14, 0x2e, 0x62, 0x75, 0x6f, 0x79, 0x61, 0x6e, 0x74, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, - 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x00, 0x12, 0x3c, 0x0a, 0x09, 0x50, 0x72, 0x6f, 0x78, 0x79, - 0x4c, 0x6f, 0x67, 0x73, 0x12, 0x17, 0x2e, 0x62, 0x75, 0x6f, 0x79, 0x61, 0x6e, 0x74, 0x2e, 0x63, - 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x4c, 0x6f, 0x67, 0x1a, 0x14, 0x2e, - 0x62, 0x75, 0x6f, 0x79, 0x61, 0x6e, 0x74, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x45, 0x6d, - 0x70, 0x74, 0x79, 0x22, 0x00, 0x42, 0x31, 0x5a, 0x2f, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, - 0x63, 0x6f, 0x6d, 0x2f, 0x62, 0x75, 0x6f, 0x79, 0x61, 0x6e, 0x74, 0x69, 0x6f, 0x2f, 0x6c, 0x69, - 0x6e, 0x6b, 0x65, 0x72, 0x64, 0x2d, 0x62, 0x75, 0x6f, 0x79, 0x61, 0x6e, 0x74, 0x2f, 0x67, 0x65, - 0x6e, 0x2f, 0x62, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_buoyant_cloud_api_proto_rawDescOnce sync.Once - file_buoyant_cloud_api_proto_rawDescData = file_buoyant_cloud_api_proto_rawDesc -) - -func file_buoyant_cloud_api_proto_rawDescGZIP() []byte { - file_buoyant_cloud_api_proto_rawDescOnce.Do(func() { - file_buoyant_cloud_api_proto_rawDescData = protoimpl.X.CompressGZIP(file_buoyant_cloud_api_proto_rawDescData) - }) - return file_buoyant_cloud_api_proto_rawDescData -} - -var file_buoyant_cloud_api_proto_msgTypes = make([]protoimpl.MessageInfo, 38) -var file_buoyant_cloud_api_proto_goTypes = []interface{}{ - (*Empty)(nil), // 0: buoyant.cloud.Empty - (*Auth)(nil), // 1: buoyant.cloud.Auth - (*Workload)(nil), // 2: buoyant.cloud.Workload - (*DaemonSet)(nil), // 3: buoyant.cloud.DaemonSet - (*Deployment)(nil), // 4: buoyant.cloud.Deployment - (*StatefulSet)(nil), // 5: buoyant.cloud.StatefulSet - (*ReplicaSet)(nil), // 6: buoyant.cloud.ReplicaSet - (*Pod)(nil), // 7: buoyant.cloud.Pod - (*ConfigMap)(nil), // 8: buoyant.cloud.ConfigMap - (*Node)(nil), // 9: buoyant.cloud.Node - (*Service)(nil), // 10: buoyant.cloud.Service - (*WorkloadMessage)(nil), // 11: buoyant.cloud.WorkloadMessage - (*AddWorkload)(nil), // 12: buoyant.cloud.AddWorkload - (*DeleteWorkload)(nil), // 13: buoyant.cloud.DeleteWorkload - (*UpdateWorkload)(nil), // 14: buoyant.cloud.UpdateWorkload - (*ListWorkloads)(nil), // 15: buoyant.cloud.ListWorkloads - (*Event)(nil), // 16: buoyant.cloud.Event - (*CertData)(nil), // 17: buoyant.cloud.CertData - (*ControlPlaneCerts)(nil), // 18: buoyant.cloud.ControlPlaneCerts - (*CertificateInfo)(nil), // 19: buoyant.cloud.CertificateInfo - (*Server)(nil), // 20: buoyant.cloud.Server - (*ServerAuthorization)(nil), // 21: buoyant.cloud.ServerAuthorization - (*AuthorizationPolicy)(nil), // 22: buoyant.cloud.AuthorizationPolicy - (*MeshTLSAuthentication)(nil), // 23: buoyant.cloud.MeshTLSAuthentication - (*NetworkAuthentication)(nil), // 24: buoyant.cloud.NetworkAuthentication - (*AuthPolicyInfo)(nil), // 25: buoyant.cloud.AuthPolicyInfo - (*TrafficSplit)(nil), // 26: buoyant.cloud.TrafficSplit - (*TrafficSplitInfo)(nil), // 27: buoyant.cloud.TrafficSplitInfo - (*ServiceProfile)(nil), // 28: buoyant.cloud.ServiceProfile - (*ServiceProfileInfo)(nil), // 29: buoyant.cloud.ServiceProfileInfo - (*MulticlusterLink)(nil), // 30: buoyant.cloud.MulticlusterLink - (*MulticlusterInfo)(nil), // 31: buoyant.cloud.MulticlusterInfo - (*LinkerdMessage)(nil), // 32: buoyant.cloud.LinkerdMessage - (*GetProxyDiagnostics)(nil), // 33: buoyant.cloud.GetProxyDiagnostics - (*GetProxyLogs)(nil), // 34: buoyant.cloud.GetProxyLogs - (*AgentCommand)(nil), // 35: buoyant.cloud.AgentCommand - (*ProxyDiagnostic)(nil), // 36: buoyant.cloud.ProxyDiagnostic - (*ProxyLog)(nil), // 37: buoyant.cloud.ProxyLog - (*timestamppb.Timestamp)(nil), // 38: google.protobuf.Timestamp -} -var file_buoyant_cloud_api_proto_depIdxs = []int32{ - 3, // 0: buoyant.cloud.Workload.daemonset:type_name -> buoyant.cloud.DaemonSet - 4, // 1: buoyant.cloud.Workload.deployment:type_name -> buoyant.cloud.Deployment - 5, // 2: buoyant.cloud.Workload.statefulset:type_name -> buoyant.cloud.StatefulSet - 7, // 3: buoyant.cloud.DaemonSet.pods:type_name -> buoyant.cloud.Pod - 6, // 4: buoyant.cloud.Deployment.replica_sets:type_name -> buoyant.cloud.ReplicaSet - 7, // 5: buoyant.cloud.StatefulSet.pods:type_name -> buoyant.cloud.Pod - 7, // 6: buoyant.cloud.ReplicaSet.pods:type_name -> buoyant.cloud.Pod - 1, // 7: buoyant.cloud.WorkloadMessage.auth:type_name -> buoyant.cloud.Auth - 12, // 8: buoyant.cloud.WorkloadMessage.added:type_name -> buoyant.cloud.AddWorkload - 14, // 9: buoyant.cloud.WorkloadMessage.updated:type_name -> buoyant.cloud.UpdateWorkload - 13, // 10: buoyant.cloud.WorkloadMessage.deleted:type_name -> buoyant.cloud.DeleteWorkload - 15, // 11: buoyant.cloud.WorkloadMessage.list:type_name -> buoyant.cloud.ListWorkloads - 2, // 12: buoyant.cloud.AddWorkload.workload:type_name -> buoyant.cloud.Workload - 2, // 13: buoyant.cloud.DeleteWorkload.workload:type_name -> buoyant.cloud.Workload - 2, // 14: buoyant.cloud.UpdateWorkload.old_workload:type_name -> buoyant.cloud.Workload - 2, // 15: buoyant.cloud.UpdateWorkload.new_workload:type_name -> buoyant.cloud.Workload - 38, // 16: buoyant.cloud.UpdateWorkload.timestamp:type_name -> google.protobuf.Timestamp - 2, // 17: buoyant.cloud.ListWorkloads.workloads:type_name -> buoyant.cloud.Workload - 1, // 18: buoyant.cloud.Event.auth:type_name -> buoyant.cloud.Auth - 2, // 19: buoyant.cloud.Event.owner:type_name -> buoyant.cloud.Workload - 17, // 20: buoyant.cloud.ControlPlaneCerts.issuer_crt_chain:type_name -> buoyant.cloud.CertData - 17, // 21: buoyant.cloud.ControlPlaneCerts.roots:type_name -> buoyant.cloud.CertData - 18, // 22: buoyant.cloud.CertificateInfo.control_plane:type_name -> buoyant.cloud.ControlPlaneCerts - 20, // 23: buoyant.cloud.AuthPolicyInfo.servers:type_name -> buoyant.cloud.Server - 21, // 24: buoyant.cloud.AuthPolicyInfo.server_authorizations:type_name -> buoyant.cloud.ServerAuthorization - 22, // 25: buoyant.cloud.AuthPolicyInfo.authorization_policies:type_name -> buoyant.cloud.AuthorizationPolicy - 23, // 26: buoyant.cloud.AuthPolicyInfo.mesh_tls_authentications:type_name -> buoyant.cloud.MeshTLSAuthentication - 24, // 27: buoyant.cloud.AuthPolicyInfo.network_authentications:type_name -> buoyant.cloud.NetworkAuthentication - 26, // 28: buoyant.cloud.TrafficSplitInfo.traffic_splits:type_name -> buoyant.cloud.TrafficSplit - 28, // 29: buoyant.cloud.ServiceProfileInfo.service_profiles:type_name -> buoyant.cloud.ServiceProfile - 30, // 30: buoyant.cloud.MulticlusterInfo.multicluster_links:type_name -> buoyant.cloud.MulticlusterLink - 1, // 31: buoyant.cloud.LinkerdMessage.auth:type_name -> buoyant.cloud.Auth - 19, // 32: buoyant.cloud.LinkerdMessage.crt_info:type_name -> buoyant.cloud.CertificateInfo - 25, // 33: buoyant.cloud.LinkerdMessage.auth_policy_info:type_name -> buoyant.cloud.AuthPolicyInfo - 27, // 34: buoyant.cloud.LinkerdMessage.traffic_split_info:type_name -> buoyant.cloud.TrafficSplitInfo - 29, // 35: buoyant.cloud.LinkerdMessage.service_profile_info:type_name -> buoyant.cloud.ServiceProfileInfo - 31, // 36: buoyant.cloud.LinkerdMessage.multicluster_info:type_name -> buoyant.cloud.MulticlusterInfo - 33, // 37: buoyant.cloud.AgentCommand.get_proxy_diagnostics:type_name -> buoyant.cloud.GetProxyDiagnostics - 34, // 38: buoyant.cloud.AgentCommand.get_proxy_logs:type_name -> buoyant.cloud.GetProxyLogs - 1, // 39: buoyant.cloud.ProxyDiagnostic.auth:type_name -> buoyant.cloud.Auth - 7, // 40: buoyant.cloud.ProxyDiagnostic.pod_manifest:type_name -> buoyant.cloud.Pod - 8, // 41: buoyant.cloud.ProxyDiagnostic.linkerd_config_map:type_name -> buoyant.cloud.ConfigMap - 9, // 42: buoyant.cloud.ProxyDiagnostic.nodes:type_name -> buoyant.cloud.Node - 10, // 43: buoyant.cloud.ProxyDiagnostic.k8s_service_manifest:type_name -> buoyant.cloud.Service - 1, // 44: buoyant.cloud.ProxyLog.auth:type_name -> buoyant.cloud.Auth - 38, // 45: buoyant.cloud.ProxyLog.timestamp:type_name -> google.protobuf.Timestamp - 11, // 46: buoyant.cloud.Api.WorkloadStream:input_type -> buoyant.cloud.WorkloadMessage - 16, // 47: buoyant.cloud.Api.AddEvent:input_type -> buoyant.cloud.Event - 32, // 48: buoyant.cloud.Api.LinkerdInfo:input_type -> buoyant.cloud.LinkerdMessage - 1, // 49: buoyant.cloud.Api.ManageAgent:input_type -> buoyant.cloud.Auth - 36, // 50: buoyant.cloud.Api.ProxyDiagnostics:input_type -> buoyant.cloud.ProxyDiagnostic - 37, // 51: buoyant.cloud.Api.ProxyLogs:input_type -> buoyant.cloud.ProxyLog - 0, // 52: buoyant.cloud.Api.WorkloadStream:output_type -> buoyant.cloud.Empty - 0, // 53: buoyant.cloud.Api.AddEvent:output_type -> buoyant.cloud.Empty - 0, // 54: buoyant.cloud.Api.LinkerdInfo:output_type -> buoyant.cloud.Empty - 35, // 55: buoyant.cloud.Api.ManageAgent:output_type -> buoyant.cloud.AgentCommand - 0, // 56: buoyant.cloud.Api.ProxyDiagnostics:output_type -> buoyant.cloud.Empty - 0, // 57: buoyant.cloud.Api.ProxyLogs:output_type -> buoyant.cloud.Empty - 52, // [52:58] is the sub-list for method output_type - 46, // [46:52] is the sub-list for method input_type - 46, // [46:46] is the sub-list for extension type_name - 46, // [46:46] is the sub-list for extension extendee - 0, // [0:46] is the sub-list for field type_name -} - -func init() { file_buoyant_cloud_api_proto_init() } -func file_buoyant_cloud_api_proto_init() { - if File_buoyant_cloud_api_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_buoyant_cloud_api_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Empty); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_buoyant_cloud_api_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Auth); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_buoyant_cloud_api_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Workload); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_buoyant_cloud_api_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DaemonSet); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_buoyant_cloud_api_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Deployment); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_buoyant_cloud_api_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StatefulSet); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_buoyant_cloud_api_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ReplicaSet); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_buoyant_cloud_api_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Pod); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_buoyant_cloud_api_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ConfigMap); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_buoyant_cloud_api_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Node); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_buoyant_cloud_api_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Service); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_buoyant_cloud_api_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*WorkloadMessage); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_buoyant_cloud_api_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AddWorkload); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_buoyant_cloud_api_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DeleteWorkload); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_buoyant_cloud_api_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UpdateWorkload); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_buoyant_cloud_api_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListWorkloads); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_buoyant_cloud_api_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Event); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_buoyant_cloud_api_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CertData); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_buoyant_cloud_api_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ControlPlaneCerts); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_buoyant_cloud_api_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CertificateInfo); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_buoyant_cloud_api_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Server); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_buoyant_cloud_api_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ServerAuthorization); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_buoyant_cloud_api_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AuthorizationPolicy); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_buoyant_cloud_api_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MeshTLSAuthentication); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_buoyant_cloud_api_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*NetworkAuthentication); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_buoyant_cloud_api_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AuthPolicyInfo); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_buoyant_cloud_api_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TrafficSplit); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_buoyant_cloud_api_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TrafficSplitInfo); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_buoyant_cloud_api_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ServiceProfile); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_buoyant_cloud_api_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ServiceProfileInfo); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_buoyant_cloud_api_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MulticlusterLink); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_buoyant_cloud_api_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MulticlusterInfo); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_buoyant_cloud_api_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*LinkerdMessage); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_buoyant_cloud_api_proto_msgTypes[33].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetProxyDiagnostics); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_buoyant_cloud_api_proto_msgTypes[34].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetProxyLogs); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_buoyant_cloud_api_proto_msgTypes[35].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AgentCommand); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_buoyant_cloud_api_proto_msgTypes[36].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProxyDiagnostic); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_buoyant_cloud_api_proto_msgTypes[37].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProxyLog); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - file_buoyant_cloud_api_proto_msgTypes[2].OneofWrappers = []interface{}{ - (*Workload_Daemonset)(nil), - (*Workload_Deployment)(nil), - (*Workload_Statefulset)(nil), - } - file_buoyant_cloud_api_proto_msgTypes[11].OneofWrappers = []interface{}{ - (*WorkloadMessage_Auth)(nil), - (*WorkloadMessage_Added)(nil), - (*WorkloadMessage_Updated)(nil), - (*WorkloadMessage_Deleted)(nil), - (*WorkloadMessage_List)(nil), - } - file_buoyant_cloud_api_proto_msgTypes[19].OneofWrappers = []interface{}{ - (*CertificateInfo_ControlPlane)(nil), - } - file_buoyant_cloud_api_proto_msgTypes[32].OneofWrappers = []interface{}{ - (*LinkerdMessage_CrtInfo)(nil), - (*LinkerdMessage_AuthPolicyInfo)(nil), - (*LinkerdMessage_TrafficSplitInfo)(nil), - (*LinkerdMessage_ServiceProfileInfo)(nil), - (*LinkerdMessage_MulticlusterInfo)(nil), - } - file_buoyant_cloud_api_proto_msgTypes[35].OneofWrappers = []interface{}{ - (*AgentCommand_GetProxyDiagnostics)(nil), - (*AgentCommand_GetProxyLogs)(nil), - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_buoyant_cloud_api_proto_rawDesc, - NumEnums: 0, - NumMessages: 38, - NumExtensions: 0, - NumServices: 1, - }, - GoTypes: file_buoyant_cloud_api_proto_goTypes, - DependencyIndexes: file_buoyant_cloud_api_proto_depIdxs, - MessageInfos: file_buoyant_cloud_api_proto_msgTypes, - }.Build() - File_buoyant_cloud_api_proto = out.File - file_buoyant_cloud_api_proto_rawDesc = nil - file_buoyant_cloud_api_proto_goTypes = nil - file_buoyant_cloud_api_proto_depIdxs = nil -} diff --git a/gen/bcloud/buoyant-cloud-api_grpc.pb.go b/gen/bcloud/buoyant-cloud-api_grpc.pb.go deleted file mode 100644 index df013c7..0000000 --- a/gen/bcloud/buoyant-cloud-api_grpc.pb.go +++ /dev/null @@ -1,347 +0,0 @@ -// Code generated by protoc-gen-go-grpc. DO NOT EDIT. -// versions: -// - protoc-gen-go-grpc v1.2.0 -// - protoc v3.19.4 -// source: buoyant-cloud-api.proto - -package bcloud - -import ( - context "context" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" -) - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 - -// ApiClient is the client API for Api service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. -type ApiClient interface { - WorkloadStream(ctx context.Context, opts ...grpc.CallOption) (Api_WorkloadStreamClient, error) - AddEvent(ctx context.Context, in *Event, opts ...grpc.CallOption) (*Empty, error) - LinkerdInfo(ctx context.Context, in *LinkerdMessage, opts ...grpc.CallOption) (*Empty, error) - ManageAgent(ctx context.Context, in *Auth, opts ...grpc.CallOption) (Api_ManageAgentClient, error) - ProxyDiagnostics(ctx context.Context, in *ProxyDiagnostic, opts ...grpc.CallOption) (*Empty, error) - ProxyLogs(ctx context.Context, in *ProxyLog, opts ...grpc.CallOption) (*Empty, error) -} - -type apiClient struct { - cc grpc.ClientConnInterface -} - -func NewApiClient(cc grpc.ClientConnInterface) ApiClient { - return &apiClient{cc} -} - -func (c *apiClient) WorkloadStream(ctx context.Context, opts ...grpc.CallOption) (Api_WorkloadStreamClient, error) { - stream, err := c.cc.NewStream(ctx, &Api_ServiceDesc.Streams[0], "/buoyant.cloud.Api/WorkloadStream", opts...) - if err != nil { - return nil, err - } - x := &apiWorkloadStreamClient{stream} - return x, nil -} - -type Api_WorkloadStreamClient interface { - Send(*WorkloadMessage) error - CloseAndRecv() (*Empty, error) - grpc.ClientStream -} - -type apiWorkloadStreamClient struct { - grpc.ClientStream -} - -func (x *apiWorkloadStreamClient) Send(m *WorkloadMessage) error { - return x.ClientStream.SendMsg(m) -} - -func (x *apiWorkloadStreamClient) CloseAndRecv() (*Empty, error) { - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - m := new(Empty) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *apiClient) AddEvent(ctx context.Context, in *Event, opts ...grpc.CallOption) (*Empty, error) { - out := new(Empty) - err := c.cc.Invoke(ctx, "/buoyant.cloud.Api/AddEvent", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *apiClient) LinkerdInfo(ctx context.Context, in *LinkerdMessage, opts ...grpc.CallOption) (*Empty, error) { - out := new(Empty) - err := c.cc.Invoke(ctx, "/buoyant.cloud.Api/LinkerdInfo", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *apiClient) ManageAgent(ctx context.Context, in *Auth, opts ...grpc.CallOption) (Api_ManageAgentClient, error) { - stream, err := c.cc.NewStream(ctx, &Api_ServiceDesc.Streams[1], "/buoyant.cloud.Api/ManageAgent", opts...) - if err != nil { - return nil, err - } - x := &apiManageAgentClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type Api_ManageAgentClient interface { - Recv() (*AgentCommand, error) - grpc.ClientStream -} - -type apiManageAgentClient struct { - grpc.ClientStream -} - -func (x *apiManageAgentClient) Recv() (*AgentCommand, error) { - m := new(AgentCommand) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *apiClient) ProxyDiagnostics(ctx context.Context, in *ProxyDiagnostic, opts ...grpc.CallOption) (*Empty, error) { - out := new(Empty) - err := c.cc.Invoke(ctx, "/buoyant.cloud.Api/ProxyDiagnostics", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *apiClient) ProxyLogs(ctx context.Context, in *ProxyLog, opts ...grpc.CallOption) (*Empty, error) { - out := new(Empty) - err := c.cc.Invoke(ctx, "/buoyant.cloud.Api/ProxyLogs", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// ApiServer is the server API for Api service. -// All implementations must embed UnimplementedApiServer -// for forward compatibility -type ApiServer interface { - WorkloadStream(Api_WorkloadStreamServer) error - AddEvent(context.Context, *Event) (*Empty, error) - LinkerdInfo(context.Context, *LinkerdMessage) (*Empty, error) - ManageAgent(*Auth, Api_ManageAgentServer) error - ProxyDiagnostics(context.Context, *ProxyDiagnostic) (*Empty, error) - ProxyLogs(context.Context, *ProxyLog) (*Empty, error) - mustEmbedUnimplementedApiServer() -} - -// UnimplementedApiServer must be embedded to have forward compatible implementations. -type UnimplementedApiServer struct { -} - -func (UnimplementedApiServer) WorkloadStream(Api_WorkloadStreamServer) error { - return status.Errorf(codes.Unimplemented, "method WorkloadStream not implemented") -} -func (UnimplementedApiServer) AddEvent(context.Context, *Event) (*Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method AddEvent not implemented") -} -func (UnimplementedApiServer) LinkerdInfo(context.Context, *LinkerdMessage) (*Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method LinkerdInfo not implemented") -} -func (UnimplementedApiServer) ManageAgent(*Auth, Api_ManageAgentServer) error { - return status.Errorf(codes.Unimplemented, "method ManageAgent not implemented") -} -func (UnimplementedApiServer) ProxyDiagnostics(context.Context, *ProxyDiagnostic) (*Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method ProxyDiagnostics not implemented") -} -func (UnimplementedApiServer) ProxyLogs(context.Context, *ProxyLog) (*Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method ProxyLogs not implemented") -} -func (UnimplementedApiServer) mustEmbedUnimplementedApiServer() {} - -// UnsafeApiServer may be embedded to opt out of forward compatibility for this service. -// Use of this interface is not recommended, as added methods to ApiServer will -// result in compilation errors. -type UnsafeApiServer interface { - mustEmbedUnimplementedApiServer() -} - -func RegisterApiServer(s grpc.ServiceRegistrar, srv ApiServer) { - s.RegisterService(&Api_ServiceDesc, srv) -} - -func _Api_WorkloadStream_Handler(srv interface{}, stream grpc.ServerStream) error { - return srv.(ApiServer).WorkloadStream(&apiWorkloadStreamServer{stream}) -} - -type Api_WorkloadStreamServer interface { - SendAndClose(*Empty) error - Recv() (*WorkloadMessage, error) - grpc.ServerStream -} - -type apiWorkloadStreamServer struct { - grpc.ServerStream -} - -func (x *apiWorkloadStreamServer) SendAndClose(m *Empty) error { - return x.ServerStream.SendMsg(m) -} - -func (x *apiWorkloadStreamServer) Recv() (*WorkloadMessage, error) { - m := new(WorkloadMessage) - if err := x.ServerStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func _Api_AddEvent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(Event) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ApiServer).AddEvent(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/buoyant.cloud.Api/AddEvent", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ApiServer).AddEvent(ctx, req.(*Event)) - } - return interceptor(ctx, in, info, handler) -} - -func _Api_LinkerdInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(LinkerdMessage) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ApiServer).LinkerdInfo(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/buoyant.cloud.Api/LinkerdInfo", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ApiServer).LinkerdInfo(ctx, req.(*LinkerdMessage)) - } - return interceptor(ctx, in, info, handler) -} - -func _Api_ManageAgent_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(Auth) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(ApiServer).ManageAgent(m, &apiManageAgentServer{stream}) -} - -type Api_ManageAgentServer interface { - Send(*AgentCommand) error - grpc.ServerStream -} - -type apiManageAgentServer struct { - grpc.ServerStream -} - -func (x *apiManageAgentServer) Send(m *AgentCommand) error { - return x.ServerStream.SendMsg(m) -} - -func _Api_ProxyDiagnostics_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ProxyDiagnostic) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ApiServer).ProxyDiagnostics(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/buoyant.cloud.Api/ProxyDiagnostics", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ApiServer).ProxyDiagnostics(ctx, req.(*ProxyDiagnostic)) - } - return interceptor(ctx, in, info, handler) -} - -func _Api_ProxyLogs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ProxyLog) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ApiServer).ProxyLogs(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/buoyant.cloud.Api/ProxyLogs", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ApiServer).ProxyLogs(ctx, req.(*ProxyLog)) - } - return interceptor(ctx, in, info, handler) -} - -// Api_ServiceDesc is the grpc.ServiceDesc for Api service. -// It's only intended for direct use with grpc.RegisterService, -// and not to be introspected or modified (even as a copy) -var Api_ServiceDesc = grpc.ServiceDesc{ - ServiceName: "buoyant.cloud.Api", - HandlerType: (*ApiServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "AddEvent", - Handler: _Api_AddEvent_Handler, - }, - { - MethodName: "LinkerdInfo", - Handler: _Api_LinkerdInfo_Handler, - }, - { - MethodName: "ProxyDiagnostics", - Handler: _Api_ProxyDiagnostics_Handler, - }, - { - MethodName: "ProxyLogs", - Handler: _Api_ProxyLogs_Handler, - }, - }, - Streams: []grpc.StreamDesc{ - { - StreamName: "WorkloadStream", - Handler: _Api_WorkloadStream_Handler, - ClientStreams: true, - }, - { - StreamName: "ManageAgent", - Handler: _Api_ManageAgent_Handler, - ServerStreams: true, - }, - }, - Metadata: "buoyant-cloud-api.proto", -} diff --git a/go.mod b/go.mod deleted file mode 100644 index 4aa0baa..0000000 --- a/go.mod +++ /dev/null @@ -1,107 +0,0 @@ -module github.com/buoyantio/linkerd-buoyant - -go 1.18 - -require ( - github.com/fatih/color v1.13.0 - github.com/linkerd/linkerd2 v0.5.1-0.20220418181325-7ac79b8c086d - github.com/pkg/browser v0.0.0-20201112035734-206646e67786 - github.com/servicemeshinterface/smi-sdk-go v0.5.0 - github.com/sirupsen/logrus v1.8.1 - github.com/spf13/cobra v1.4.0 - golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5 - google.golang.org/grpc v1.46.0 - google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.2.0 - google.golang.org/protobuf v1.28.0 - k8s.io/api v0.24.0 - k8s.io/apimachinery v0.24.0 - k8s.io/client-go v0.24.0 - k8s.io/klog/v2 v2.60.1 - k8s.io/kubectl v0.24.0 - sigs.k8s.io/gateway-api v0.4.3 - sigs.k8s.io/yaml v1.3.0 -) - -require ( - cloud.google.com/go/compute v1.6.1 // indirect - github.com/Azure/go-autorest v14.2.0+incompatible // indirect - github.com/Azure/go-autorest/autorest v0.11.27 // indirect - github.com/Azure/go-autorest/autorest/adal v0.9.19 // 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/BurntSushi/toml v1.1.0 // indirect - github.com/Masterminds/goutils v1.1.1 // indirect - github.com/Masterminds/semver/v3 v3.1.1 // indirect - github.com/Masterminds/sprig/v3 v3.2.2 // indirect - github.com/beorn7/perks v1.0.1 // indirect - github.com/briandowns/spinner v1.18.1 // indirect - github.com/cespare/xxhash/v2 v2.1.2 // indirect - github.com/cyphar/filepath-securejoin v0.2.3 // indirect - github.com/davecgh/go-spew v1.1.1 // indirect - github.com/emicklei/go-restful v2.15.0+incompatible // indirect - github.com/evanphx/json-patch v5.6.0+incompatible // indirect - github.com/fsnotify/fsnotify v1.5.4 // indirect - github.com/ghodss/yaml v1.0.0 // 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.21.1 // indirect - github.com/gobwas/glob v0.2.3 // indirect - github.com/gogo/protobuf v1.3.2 // indirect - github.com/golang-jwt/jwt/v4 v4.4.1 // indirect - github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect - github.com/golang/protobuf v1.5.2 // indirect - github.com/google/gnostic v0.6.9 // indirect - github.com/google/go-cmp v0.5.8 // indirect - github.com/google/gofuzz v1.2.0 // indirect - github.com/google/uuid v1.3.0 // indirect - github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0 // indirect - github.com/huandu/xstrings v1.3.2 // indirect - github.com/imdario/mergo v0.3.12 // indirect - github.com/inconshreveable/mousetrap v1.0.0 // indirect - github.com/josharian/intern v1.0.0 // indirect - github.com/json-iterator/go v1.1.12 // indirect - github.com/linkerd/linkerd2-proxy-api v0.5.0 // indirect - github.com/linkerd/linkerd2-proxy-init v1.5.3 // indirect - github.com/mailru/easyjson v0.7.7 // indirect - github.com/mattn/go-colorable v0.1.12 // indirect - github.com/mattn/go-isatty v0.0.14 // indirect - github.com/matttproud/golang_protobuf_extensions v1.0.2-0.20181231171920-c182affec369 // indirect - github.com/mitchellh/copystructure v1.2.0 // indirect - github.com/mitchellh/reflectwalk v1.0.2 // 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 - github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect - github.com/pkg/errors v0.9.1 // indirect - github.com/prometheus/client_golang v1.12.1 // indirect - github.com/prometheus/client_model v0.2.0 // indirect - github.com/prometheus/common v0.34.0 // indirect - github.com/prometheus/procfs v0.7.3 // indirect - github.com/shopspring/decimal v1.3.1 // indirect - github.com/spf13/cast v1.4.1 // indirect - github.com/spf13/pflag v1.0.5 // indirect - github.com/xeipuuv/gojsonpointer v0.0.0-20190905194746-02993c407bfb // indirect - github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415 // indirect - github.com/xeipuuv/gojsonschema v1.2.0 // indirect - go.opencensus.io v0.23.0 // indirect - golang.org/x/crypto v0.0.0-20220427172511-eb4f295cb31f // indirect - golang.org/x/net v0.0.0-20220425223048-2871e0cb64e4 // indirect - golang.org/x/sys v0.0.0-20220503163025-988cb79eb6c6 // indirect - golang.org/x/term v0.0.0-20220411215600-e5f449aeb171 // indirect - golang.org/x/text v0.3.7 // indirect - golang.org/x/time v0.0.0-20220411224347-583f2d630306 // indirect - google.golang.org/appengine v1.6.7 // indirect - google.golang.org/genproto v0.0.0-20220505152158-f39f71e6c8f3 // indirect - gopkg.in/inf.v0 v0.9.1 // indirect - gopkg.in/yaml.v2 v2.4.0 // indirect - gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect - helm.sh/helm/v3 v3.8.2 // indirect - k8s.io/apiextensions-apiserver v0.24.0 // indirect - k8s.io/kube-aggregator v0.24.0 // indirect - k8s.io/kube-openapi v0.0.0-20220413171646-5e7f5fdc6da6 // indirect - k8s.io/utils v0.0.0-20220210201930-3a6ce19ff2f9 // indirect - sigs.k8s.io/json v0.0.0-20211208200746-9f7c6b3444d2 // indirect - sigs.k8s.io/structured-merge-diff/v4 v4.2.1 // indirect -) diff --git a/go.sum b/go.sum deleted file mode 100644 index 1923aab..0000000 --- a/go.sum +++ /dev/null @@ -1,1978 +0,0 @@ -bazil.org/fuse v0.0.0-20160811212531-371fbbdaa898/go.mod h1:Xbm+BRKSBEpa4q4hTSxohYNQpsxXPbPry4JJWOB3LB8= -bazil.org/fuse v0.0.0-20200407214033-5883e5a4b512/go.mod h1:FbcW6z/2VytnFDhZfumh8Ss8zxHE6qpMP5sHTRe0EaM= -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/go.mod h1:mk/AM35KwGk/Nm2YSeZbxXdrNK3KZOYHmLkOqC2V6E0= -cloud.google.com/go v0.83.0/go.mod h1:Z7MJUsANfY0pYPdw0lbnivPx4/vhy/e2FEkSkF7vAVY= -cloud.google.com/go v0.84.0/go.mod h1:RazrYuxIK6Kb7YrzzhPoLmCVzl7Sup4NrbKPg8KHSUM= -cloud.google.com/go v0.87.0/go.mod h1:TpDYlFy7vuLzZMMZ+B6iRiELaY7z/gJPaqbMx6mlWcY= -cloud.google.com/go v0.90.0/go.mod h1:kRX0mNRHe0e2rC6oNakvwQqzyDmg57xJ+SZU1eT2aDQ= -cloud.google.com/go v0.93.3/go.mod h1:8utlLll2EF5XMAV15woO4lSbWQlk8rer9aLOfLh7+YI= -cloud.google.com/go v0.94.1/go.mod h1:qAlAugsXlC+JWO+Bke5vCtc9ONxjQT3drlTTnAplMW4= -cloud.google.com/go v0.97.0/go.mod h1:GF7l59pYBVlXQIBLx3a761cZ41F9bBH3JUlihCt2Udc= -cloud.google.com/go v0.98.0/go.mod h1:ua6Ush4NALrHk5QXDWnjvZHN93OuF0HfuEPq9I1X0cM= -cloud.google.com/go v0.99.0/go.mod h1:w0Xx2nLzqWJPuozYQX+hFfCSI8WioryfRDzkoI/Y2ZA= -cloud.google.com/go v0.100.2/go.mod h1:4Xra9TjzAeYHrl5+oeLlzbM2k3mjVhZh4UqTZ//w99A= -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/compute v0.1.0/go.mod h1:GAesmwr110a34z04OlxYkATPBEfVhkymfTBXtfbBFow= -cloud.google.com/go/compute v1.3.0/go.mod h1:cCZiE1NHEtai4wiufUhW8I8S1JKkAnhnQJWM7YD99wM= -cloud.google.com/go/compute v1.5.0/go.mod h1:9SMHyhJlzhlkJqrPAc839t2BZFTSk6Jdj6mkzQJeu0M= -cloud.google.com/go/compute v1.6.0/go.mod h1:T29tfhtVbq1wvAPo0E3+7vhgmkOYeXjhFvz/FMzPu0s= -cloud.google.com/go/compute v1.6.1 h1:2sMmt8prCn7DPaG4Pmh0N3Inmc8cT8ae5k1M6VJ9Wqc= -cloud.google.com/go/compute v1.6.1/go.mod h1:g85FgpzFvNULZ+S8AYq87axRKuf2Kh7deLqV/jJ3thU= -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/firestore v1.6.1/go.mod h1:asNXNOzBdyVQmEU+ggO8UPodTkEVFW5Qx+rwHnAz+EY= -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/AdaLogics/go-fuzz-headers v0.0.0-20210715213245-6c3934b029d8/go.mod h1:CzsSbkDixRphAF5hS6wbMKq0eI6ccJRb7/A0M6JBnwg= -github.com/Azure/azure-sdk-for-go v16.2.1+incompatible/go.mod h1:9XXNKU+eRnpl9moKnB4QOLf1HestfXbmab5FXxiDBjc= -github.com/Azure/azure-sdk-for-go v56.3.0+incompatible/go.mod h1:9XXNKU+eRnpl9moKnB4QOLf1HestfXbmab5FXxiDBjc= -github.com/Azure/go-ansiterm v0.0.0-20170929234023-d6e3b3328b78/go.mod h1:LmzpDX56iTiv29bbRTIsUNlaFfuhWRQBWjQdVyAevI8= -github.com/Azure/go-ansiterm v0.0.0-20210608223527-2377c96fe795/go.mod h1:LmzpDX56iTiv29bbRTIsUNlaFfuhWRQBWjQdVyAevI8= -github.com/Azure/go-ansiterm v0.0.0-20210617225240-d185dfc1b5a1/go.mod h1:xomTg63KZ2rFqZQzSB4Vz2SUXa1BpHTVz9L5PTmPC4E= -github.com/Azure/go-autorest v10.8.1+incompatible/go.mod h1:r+4oMnoxhatjLLJ6zxSWATqVooLgysK6ZNox3g/xq24= -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.9.0/go.mod h1:xyHB1BMZT0cuDHU7I0+g046+BFDTQ8rEZB0s4Yfa6bI= -github.com/Azure/go-autorest/autorest v0.11.1/go.mod h1:JFgpikqFJ/MleTTxwepExTKnFUKKszPS8UavbQYUMuw= -github.com/Azure/go-autorest/autorest v0.11.12/go.mod h1:eipySxLmqSyC5s5k1CLupqet0PSENBEDP93LQ9a8QYw= -github.com/Azure/go-autorest/autorest v0.11.18/go.mod h1:dSiJPy22c3u0OtOKDNttNgqpNFY/GeWa7GH/Pz56QRA= -github.com/Azure/go-autorest/autorest v0.11.20/go.mod h1:o3tqFY+QR40VOlk+pV4d77mORO64jOXSgEnPQgLK6JY= -github.com/Azure/go-autorest/autorest v0.11.27 h1:F3R3q42aWytozkV8ihzcgMO4OA4cuqr3bNlsEuF6//A= -github.com/Azure/go-autorest/autorest v0.11.27/go.mod h1:7l8ybrIdUmGqZMTD0sRtAr8NvbHjfofbf8RSP2q7w7U= -github.com/Azure/go-autorest/autorest/adal v0.5.0/go.mod h1:8Z9fGy2MpX0PvDjB1pEgQTmVqjGhiHBW7RJJEciWzS0= -github.com/Azure/go-autorest/autorest/adal v0.9.0/go.mod h1:/c022QCutn2P7uY+/oQWWNcK9YU+MH96NgK+jErpbcg= -github.com/Azure/go-autorest/autorest/adal v0.9.5/go.mod h1:B7KF7jKIeC9Mct5spmyCB/A8CG/sEz1vwIRGv/bbw7A= -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.15/go.mod h1:tGMin8I49Yij6AQ+rvV+Xa/zwxYQB5hmsd6DkfAx2+A= -github.com/Azure/go-autorest/autorest/adal v0.9.18/go.mod h1:XVVeme+LZwABT8K5Lc3hA4nAe8LDBVle26gTrguhhPQ= -github.com/Azure/go-autorest/autorest/adal v0.9.19 h1:5CHCGJjd9AedaD0iHhMTCRJPypw+hyCrtT9sLk/dD0w= -github.com/Azure/go-autorest/autorest/adal v0.9.19/go.mod h1:XVVeme+LZwABT8K5Lc3hA4nAe8LDBVle26gTrguhhPQ= -github.com/Azure/go-autorest/autorest/date v0.1.0/go.mod h1:plvfp3oPSKwf2DNjlBjWF/7vwR+cUD/ELuzDCXwHUVA= -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.1.0/go.mod h1:OTyCOPRA2IgIlWxVYxBee2F5Gr4kF2zd2J5cFRaIDN0= -github.com/Azure/go-autorest/autorest/mocks v0.2.0/go.mod h1:OTyCOPRA2IgIlWxVYxBee2F5Gr4kF2zd2J5cFRaIDN0= -github.com/Azure/go-autorest/autorest/mocks v0.4.0/go.mod h1:LTp+uSrOhSkaKrUy935gNZuuIPPVsHlr9DSOxSayd+k= -github.com/Azure/go-autorest/autorest/mocks v0.4.1/go.mod h1:LTp+uSrOhSkaKrUy935gNZuuIPPVsHlr9DSOxSayd+k= -github.com/Azure/go-autorest/autorest/mocks v0.4.2 h1:PGN4EDXnuQbojHbU0UWoNvmu9AGVwYHG9/fkDYhtAfw= -github.com/Azure/go-autorest/autorest/mocks v0.4.2/go.mod h1:Vy7OitM9Kei0i1Oj+LvyAWMXJHeKH1MVlzFugfVrmyU= -github.com/Azure/go-autorest/autorest/to v0.4.0/go.mod h1:fE8iZBn7LQR7zH/9XU2NcPR4o9jEImooCeWJcYV/zLE= -github.com/Azure/go-autorest/logger v0.1.0/go.mod h1:oExouG+K6PryycPJfVSxi/koC6LSNgds39diKLz7Vrc= -github.com/Azure/go-autorest/logger v0.2.0/go.mod h1:T9E3cAhj2VqvPOtCYAvby9aBXkZmbF5NWuPV8+WeEW8= -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.5.0/go.mod h1:r/s2XiOKccPW3HrqB+W0TQzfbtp2fGCgRFtBroKn4Dk= -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/toml v0.4.1/go.mod h1:CxXYINrC8qIiEnFrOxCa7Jy5BFHlXnUU2pbicEuybxQ= -github.com/BurntSushi/toml v1.1.0 h1:ksErzDEI1khOiGPgpwuI7x2ebx/uXQNw7xJpn9Eq1+I= -github.com/BurntSushi/toml v1.1.0/go.mod h1:CxXYINrC8qIiEnFrOxCa7Jy5BFHlXnUU2pbicEuybxQ= -github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo= -github.com/DATA-DOG/go-sqlmock v1.5.0/go.mod h1:f/Ixk793poVmq4qj/V1dPUg2JEAKC73Q5eFN3EC/SaM= -github.com/DataDog/datadog-go v3.2.0+incompatible/go.mod h1:LButxg5PwREeZtORoXG3tL4fMGNddJ+vMq1mwgfaqoQ= -github.com/MakeNowJust/heredoc v0.0.0-20170808103936-bb23615498cd/go.mod h1:64YHyfSL2R96J44Nlwm39UHepQbyR5q10x7iYa1ks2E= -github.com/Masterminds/goutils v1.1.0/go.mod h1:8cTjp+g8YejhMuvIA5y2vz3BpJxksy863GQaJW2MFNU= -github.com/Masterminds/goutils v1.1.1 h1:5nUrii3FMTL5diU80unEVvNevw1nH4+ZV4DSLVJLSYI= -github.com/Masterminds/goutils v1.1.1/go.mod h1:8cTjp+g8YejhMuvIA5y2vz3BpJxksy863GQaJW2MFNU= -github.com/Masterminds/semver v1.5.0/go.mod h1:MB6lktGJrhw8PrUyiEoblNEGEQ+RzHPF078ddwwvV3Y= -github.com/Masterminds/semver/v3 v3.1.1 h1:hLg3sBzpNErnxhQtUy/mmLR2I9foDujNK030IGemrRc= -github.com/Masterminds/semver/v3 v3.1.1/go.mod h1:VPu/7SZ7ePZ3QOrcuXROw5FAcLl4a0cBrbBpGY/8hQs= -github.com/Masterminds/sprig v2.22.0+incompatible/go.mod h1:y6hNFY5UBTIWBxnzTeuNhlNS5hqE0NB0E6fgfo2Br3o= -github.com/Masterminds/sprig/v3 v3.2.2 h1:17jRggJu518dr3QaafizSXOjKYp94wKfABxUmyxvxX8= -github.com/Masterminds/sprig/v3 v3.2.2/go.mod h1:UoaO7Yp8KlPnJIYWTFkMaqPUYKTfGFPhxNuwnnxkKlk= -github.com/Masterminds/squirrel v1.5.2/go.mod h1:NNaOrjSoIDfDA40n7sr2tPNZRfjzjA400rg+riTZj10= -github.com/Masterminds/vcs v1.13.3/go.mod h1:TiE7xuEjl1N4j016moRd6vezp6e6Lz23gypeXfzXeW8= -github.com/Microsoft/go-winio v0.4.11/go.mod h1:VhR8bwka0BXejwEJY73c50VrPtXAaKcyvVC4A4RozmA= -github.com/Microsoft/go-winio v0.4.14/go.mod h1:qXqCSQ3Xa7+6tgxaGTIe4Kpcdsi+P8jBhyzoq1bpyYA= -github.com/Microsoft/go-winio v0.4.15-0.20190919025122-fc70bd9a86b5/go.mod h1:tTuCMEN+UleMWgg9dVx4Hu52b1bJo+59jBh3ajtinzw= -github.com/Microsoft/go-winio v0.4.16-0.20201130162521-d1ffc52c7331/go.mod h1:XB6nPKklQyQ7GC9LdcBEcBl8PF76WugXOPRXwdLnMv0= -github.com/Microsoft/go-winio v0.4.16/go.mod h1:XB6nPKklQyQ7GC9LdcBEcBl8PF76WugXOPRXwdLnMv0= -github.com/Microsoft/go-winio v0.4.17-0.20210211115548-6eac466e5fa3/go.mod h1:JPGBdM1cNvN/6ISo+n8V5iA4v8pBzdOpzfwIujj1a84= -github.com/Microsoft/go-winio v0.4.17-0.20210324224401-5516f17a5958/go.mod h1:JPGBdM1cNvN/6ISo+n8V5iA4v8pBzdOpzfwIujj1a84= -github.com/Microsoft/go-winio v0.4.17/go.mod h1:JPGBdM1cNvN/6ISo+n8V5iA4v8pBzdOpzfwIujj1a84= -github.com/Microsoft/go-winio v0.5.1/go.mod h1:JPGBdM1cNvN/6ISo+n8V5iA4v8pBzdOpzfwIujj1a84= -github.com/Microsoft/hcsshim v0.8.6/go.mod h1:Op3hHsoHPAvb6lceZHDtd9OkTew38wNoXnJs8iY7rUg= -github.com/Microsoft/hcsshim v0.8.7-0.20190325164909-8abdbb8205e4/go.mod h1:Op3hHsoHPAvb6lceZHDtd9OkTew38wNoXnJs8iY7rUg= -github.com/Microsoft/hcsshim v0.8.7/go.mod h1:OHd7sQqRFrYd3RmSgbgji+ctCwkbq2wbEYNSzOYtcBQ= -github.com/Microsoft/hcsshim v0.8.9/go.mod h1:5692vkUqntj1idxauYlpoINNKeqCiG6Sg38RRsjT5y8= -github.com/Microsoft/hcsshim v0.8.14/go.mod h1:NtVKoYxQuTLx6gEq0L96c9Ju4JbRJ4nY2ow3VK6a9Lg= -github.com/Microsoft/hcsshim v0.8.15/go.mod h1:x38A4YbHbdxJtc0sF6oIz+RG0npwSCAvn69iY6URG00= -github.com/Microsoft/hcsshim v0.8.16/go.mod h1:o5/SZqmR7x9JNKsW3pu+nqHm0MF8vbA+VxGOoXdC600= -github.com/Microsoft/hcsshim v0.8.20/go.mod h1:+w2gRZ5ReXQhFOrvSQeNfhrYB/dg3oDwTOcER2fw4I4= -github.com/Microsoft/hcsshim v0.8.21/go.mod h1:+w2gRZ5ReXQhFOrvSQeNfhrYB/dg3oDwTOcER2fw4I4= -github.com/Microsoft/hcsshim v0.8.23/go.mod h1:4zegtUJth7lAvFyc6cH2gGQ5B3OFQim01nnU2M8jKDg= -github.com/Microsoft/hcsshim v0.9.2/go.mod h1:7pLA8lDk46WKDWlVsENo92gC0XFa8rbKfyFRBqxEbCc= -github.com/Microsoft/hcsshim/test v0.0.0-20201218223536-d3e5debf77da/go.mod h1:5hlzMzRKMLyo42nCZ9oml8AdTlq/0cvIaBv6tK1RehU= -github.com/Microsoft/hcsshim/test v0.0.0-20210227013316-43a75bb4edd3/go.mod h1:mw7qgWloBUl75W/gVH3cQszUg1+gUITj7D6NY7ywVnY= -github.com/NYTimes/gziphandler v0.0.0-20170623195520-56545f4a5d46/go.mod h1:3wb06e3pkSAbeQ52E9H9iFoQsEEwGN64994WTCIhntQ= -github.com/NYTimes/gziphandler v1.1.1/go.mod h1:n/CVRwUEOgIxrgPvAQhUUr9oeUtvrhMomdKFjzJNB0c= -github.com/OneOfOne/xxhash v1.2.2/go.mod h1:HSdplMjZKSmBqAxg5vPj2TmRDmfkzw+cTzAElWljhcU= -github.com/PuerkitoBio/purell v1.0.0/go.mod h1:c11w/QuzBsJSee3cPx9rAFu61PvFxuPbtSwDGJws/X0= -github.com/PuerkitoBio/purell v1.1.1/go.mod h1:c11w/QuzBsJSee3cPx9rAFu61PvFxuPbtSwDGJws/X0= -github.com/PuerkitoBio/urlesc v0.0.0-20160726150825-5bd2802263f2/go.mod h1:uGdkoq3SwY9Y+13GIhn11/XLaGBb4BfwItxLd5jeuXE= -github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578/go.mod h1:uGdkoq3SwY9Y+13GIhn11/XLaGBb4BfwItxLd5jeuXE= -github.com/Shopify/logrus-bugsnag v0.0.0-20171204204709-577dee27f20d/go.mod h1:HI8ITrYtUY+O+ZhtlqUnD8+KwNPOyugEhfP9fdUIaEQ= -github.com/ahmetb/gen-crd-api-reference-docs v0.3.0/go.mod h1:TdjdkYhlOifCQWPs1UdTma97kQQMozf5h26hTuG70u8= -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/alexflint/go-filemutex v0.0.0-20171022225611-72bdc8eae2ae/go.mod h1:CgnQgUtFrFz9mxFNtED3jI5tLDjKlOM+oUF/sTk6ps0= -github.com/alexflint/go-filemutex v1.1.0/go.mod h1:7P4iRhttt/nUvUOrYIhcpMzv2G6CY9UnI16Z+UJqRyk= -github.com/antihax/optional v1.0.0/go.mod h1:uupD/76wgC+ih3iEmQUL+0Ugr19nfwCT1kdvxnR2qWY= -github.com/antlr/antlr4/runtime/Go/antlr v0.0.0-20210826220005-b48c857c3a0e/go.mod h1:F7bn7fEU90QkQ3tnmaTx3LTKLEDqnwWODIYppRQ5hnY= -github.com/armon/circbuf v0.0.0-20150827004946-bbbad097214e/go.mod h1:3U/XgcO3hCbHZ8TKRvWD2dDTCfh9M9ya+I9JpbB7O8o= -github.com/armon/consul-api v0.0.0-20180202201655-eb2c6b5be1b6/go.mod h1:grANhF5doyWs3UAsr3K4I6qtAmlQcZDesFNEHPZAzj8= -github.com/armon/go-metrics v0.0.0-20180917152333-f0300d1749da/go.mod h1:Q73ZrmVTwzkszR9V5SSuryQ31EELlFMUz1kKyl939pY= -github.com/armon/go-metrics v0.3.10/go.mod h1:4O98XIr/9W0sxpJ8UaYkvjk10Iff7SnFrb4QAOwNTFc= -github.com/armon/go-radix v0.0.0-20180808171621-7fddfc383310/go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgIH9cCH8= -github.com/armon/go-radix v1.0.0/go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgIH9cCH8= -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/go.mod h1:lB+ZfQJz7igIIfQNfa7Ml4HSf2uFQQRzpGGRXenZAgY= -github.com/asaskevich/govalidator v0.0.0-20200428143746-21a406dcc535/go.mod h1:oGkLhpf+kjZl6xBf758TQhh5XrAeiJv/7FRz/2spLIg= -github.com/aws/aws-sdk-go v1.15.11/go.mod h1:mFuSZ37Z9YOHbQEwBWztmVzqXrEkub65tZoCYDt7FT0= -github.com/aws/aws-sdk-go v1.34.9/go.mod h1:5zCpMtNQVjRREroY7sYe8lOMRSxkhG6MZveU8YkpAk0= -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-20160804104726-4c0e84591b9a/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q= -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/bitly/go-simplejson v0.5.0/go.mod h1:cXHtHw4XUPsvGaxgjIAn8PhEWG9NfngEKAMDJEczWVA= -github.com/bits-and-blooms/bitset v1.2.0/go.mod h1:gIdJ4wp64HaoK2YrL1Q5/N7Y16edYb8uY+O0FJTyyDA= -github.com/bketelsen/crypt v0.0.3-0.20200106085610-5cbc8cc4026c/go.mod h1:MKsuJmJgSg28kpZDP6UIiPt0e0Oz0kqKNGyRaWEPv84= -github.com/bketelsen/crypt v0.0.4/go.mod h1:aI6NrJ0pMGgvZKL1iVgXLnfIFJtfV+bKCoqOes/6LfM= -github.com/blang/semver v3.1.0+incompatible/go.mod h1:kRBLl5iJ+tD4TcOOxsy/0fnwebNt5EWlYSAyrTnjyyk= -github.com/blang/semver v3.5.1+incompatible/go.mod h1:kRBLl5iJ+tD4TcOOxsy/0fnwebNt5EWlYSAyrTnjyyk= -github.com/blang/semver/v4 v4.0.0/go.mod h1:IbckMUScFkM3pff0VJDNKRiT6TG/YpiHIM2yvyW5YoQ= -github.com/bmizerany/assert v0.0.0-20160611221934-b7ed37b82869/go.mod h1:Ekp36dRnpXw/yCqJaO+ZrUyxD+3VXMFFr56k5XYrpB4= -github.com/briandowns/spinner v1.18.1 h1:yhQmQtM1zsqFsouh09Bk/jCjd50pC3EOGsh28gLVvwY= -github.com/briandowns/spinner v1.18.1/go.mod h1:mQak9GHqbspjC/5iUx3qMlIho8xBS/ppAL/hX5SmPJU= -github.com/bshuster-repo/logrus-logstash-hook v0.4.1/go.mod h1:zsTqEiSzDgAa/8GZR7E1qaXrhYNDKBYy5/dWPTIflbk= -github.com/bshuster-repo/logrus-logstash-hook v1.0.0/go.mod h1:zsTqEiSzDgAa/8GZR7E1qaXrhYNDKBYy5/dWPTIflbk= -github.com/buger/jsonparser v0.0.0-20180808090653-f4dd9f5a6b44/go.mod h1:bbYlZJ7hK1yFx9hf58LP0zeX7UjIGs20ufpu3evjr+s= -github.com/buger/jsonparser v1.1.1/go.mod h1:6RYKKt7H4d4+iWqouImQ9R2FZql3VbhNgx27UK13J/0= -github.com/bugsnag/bugsnag-go v0.0.0-20141110184014-b1d153021fcd/go.mod h1:2oa8nejYd4cQ/b0hMIopN0lCRxU0bueqREvZLWFrtK8= -github.com/bugsnag/osext v0.0.0-20130617224835-0dd3f918b21b/go.mod h1:obH5gd0BsqsP2LwDJ9aOkm/6J86V6lyAXCoQWGw3K50= -github.com/bugsnag/panicwrap v0.0.0-20151223152923-e2c28503fcd0/go.mod h1:D/8v3kj0zr8ZAKg1AQ6crr+5VwKN5eIywRkfhyM/+dE= -github.com/cenkalti/backoff/v4 v4.1.1/go.mod h1:scbssz8iZGpm3xbr14ovlUdkxfGXNInqkPWOWmG2CLw= -github.com/cenkalti/backoff/v4 v4.1.2/go.mod h1:scbssz8iZGpm3xbr14ovlUdkxfGXNInqkPWOWmG2CLw= -github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= -github.com/census-instrumentation/opencensus-proto v0.3.0/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= -github.com/certifi/gocertifi v0.0.0-20191021191039-0944d244cd40/go.mod h1:sGbDF6GwGcLpkNXPUTkMRoywsNa/ol15pxFe6ERfguA= -github.com/certifi/gocertifi v0.0.0-20200922220541-2c3bb06c6054/go.mod h1:sGbDF6GwGcLpkNXPUTkMRoywsNa/ol15pxFe6ERfguA= -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/go.mod h1:/iP1qXHoty45bqomnu2LM+VVyAEdWN+vtSHGlQgyxbw= -github.com/checkpoint-restore/go-criu/v4 v4.1.0/go.mod h1:xUQBLp4RLc5zJtWY++yjOoMoB5lihDt7fai+75m+rGw= -github.com/checkpoint-restore/go-criu/v5 v5.0.0/go.mod h1:cfwC0EG7HMUenopBsUf9d89JlCLQIfgVcNsNN0t6T2M= -github.com/checkpoint-restore/go-criu/v5 v5.3.0/go.mod h1:E/eQpaFtUKGOOSEBZgmKAcn+zUUwWxqcaKZlF54wK8E= -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/cilium/ebpf v0.0.0-20200110133405-4032b1d8aae3/go.mod h1:MA5e5Lr8slmEg9bt0VpxxWqJlO4iwu3FBdHUzV7wQVg= -github.com/cilium/ebpf v0.0.0-20200702112145-1c8d4c9ef775/go.mod h1:7cR51M8ViRLIdUjrmSXlK9pkrsDlLHbO8jiB8X8JnOc= -github.com/cilium/ebpf v0.2.0/go.mod h1:To2CFviqOWL/M0gIMsvSMlqe7em/l1ALkX1PyjrX2Qs= -github.com/cilium/ebpf v0.4.0/go.mod h1:4tRaxcgiL706VnOzHOdBlY8IEAIdxINsQBcU4xJJXRs= -github.com/cilium/ebpf v0.6.2/go.mod h1:4tRaxcgiL706VnOzHOdBlY8IEAIdxINsQBcU4xJJXRs= -github.com/cilium/ebpf v0.7.0/go.mod h1:/oI2+1shJiTGAMgl6/RgJr36Eo1jzrRcAWbcXO2usCA= -github.com/circonus-labs/circonus-gometrics v2.3.1+incompatible/go.mod h1:nmEj6Dob7S7YxXgwXpfOuvO54S+tGdZdw9fuRZt25Ag= -github.com/circonus-labs/circonusllhist v0.1.3/go.mod h1:kMXHVDlOchFAehlya5ePtbp5jckzBHf4XRpQvBOLI+I= -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/udpa/go v0.0.0-20210930031921-04548b0d99d4/go.mod h1:6pvJx4me5XPnfI9Z40ddWsdw2W/uZgQLFXToKeRcDiI= -github.com/cncf/xds/go v0.0.0-20210312221358-fbca930ec8ed/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= -github.com/cncf/xds/go v0.0.0-20210805033703-aa0b78936158/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= -github.com/cncf/xds/go v0.0.0-20210922020428-25de7278fc84/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= -github.com/cncf/xds/go v0.0.0-20211001041855-01bcc9b48dfe/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= -github.com/cncf/xds/go v0.0.0-20211011173535-cb28da3451f1/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= -github.com/cncf/xds/go v0.0.0-20211130200136-a8f946100490/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= -github.com/cockroachdb/datadriven v0.0.0-20190809214429-80d97fb3cbaa/go.mod h1:zn76sxSg3SzpJ0PPJaLDCu+Bu0Lg3sKTORVIj19EIF8= -github.com/cockroachdb/datadriven v0.0.0-20200714090401-bf6692d28da5/go.mod h1:h6jFvWxBdQXxjopDMZyH2UVceIRfR84bdzbkoKrsWNo= -github.com/cockroachdb/errors v1.2.4/go.mod h1:rQD95gz6FARkaKkQXUksEje/d9a6wBJoCr5oaCLELYA= -github.com/cockroachdb/logtags v0.0.0-20190617123548-eb05cc24525f/go.mod h1:i/u985jwjWRlyHXQbwatDASoW0RMlZ/3i9yJHE2xLkI= -github.com/containerd/aufs v0.0.0-20200908144142-dab0cbea06f4/go.mod h1:nukgQABAEopAHvB6j7cnP5zJ+/3aVcE7hCYqvIwAHyE= -github.com/containerd/aufs v0.0.0-20201003224125-76a6863f2989/go.mod h1:AkGGQs9NM2vtYHaUen+NljV0/baGCAPELGm2q9ZXpWU= -github.com/containerd/aufs v0.0.0-20210316121734-20793ff83c97/go.mod h1:kL5kd6KM5TzQjR79jljyi4olc1Vrx6XBlcyj3gNv2PU= -github.com/containerd/aufs v1.0.0/go.mod h1:kL5kd6KM5TzQjR79jljyi4olc1Vrx6XBlcyj3gNv2PU= -github.com/containerd/btrfs v0.0.0-20201111183144-404b9149801e/go.mod h1:jg2QkJcsabfHugurUvvPhS3E08Oxiuh5W/g1ybB4e0E= -github.com/containerd/btrfs v0.0.0-20210316141732-918d888fb676/go.mod h1:zMcX3qkXTAi9GI50+0HOeuV8LU2ryCE/V2vG/ZBiTss= -github.com/containerd/btrfs v1.0.0/go.mod h1:zMcX3qkXTAi9GI50+0HOeuV8LU2ryCE/V2vG/ZBiTss= -github.com/containerd/cgroups v0.0.0-20190717030353-c4b9ac5c7601/go.mod h1:X9rLEHIqSf/wfK8NsPqxJmeZgW4pcfzdXITDrUSJ6uI= -github.com/containerd/cgroups v0.0.0-20190919134610-bf292b21730f/go.mod h1:OApqhQ4XNSNC13gXIwDjhOQxjWa/NxkwZXJ1EvqT0ko= -github.com/containerd/cgroups v0.0.0-20200531161412-0dbf7f05ba59/go.mod h1:pA0z1pT8KYB3TCXK/ocprsh7MAkoW8bZVzPdih9snmM= -github.com/containerd/cgroups v0.0.0-20200710171044-318312a37340/go.mod h1:s5q4SojHctfxANBDvMeIaIovkq29IP48TKAxnhYRxvo= -github.com/containerd/cgroups v0.0.0-20200824123100-0b889c03f102/go.mod h1:s5q4SojHctfxANBDvMeIaIovkq29IP48TKAxnhYRxvo= -github.com/containerd/cgroups v0.0.0-20210114181951-8a68de567b68/go.mod h1:ZJeTFisyysqgcCdecO57Dj79RfL0LNeGiFUqLYQRYLE= -github.com/containerd/cgroups v1.0.1/go.mod h1:0SJrPIenamHDcZhEcJMNBB85rHcUsw4f25ZfBiPYRkU= -github.com/containerd/cgroups v1.0.3/go.mod h1:/ofk34relqNjSGyqPrmEULrO4Sc8LJhvJmWbUCUKqj8= -github.com/containerd/console v0.0.0-20180822173158-c12b1e7919c1/go.mod h1:Tj/on1eG8kiEhd0+fhSDzsPAFESxzBBvdyEgyryXffw= -github.com/containerd/console v0.0.0-20181022165439-0650fd9eeb50/go.mod h1:Tj/on1eG8kiEhd0+fhSDzsPAFESxzBBvdyEgyryXffw= -github.com/containerd/console v0.0.0-20191206165004-02ecf6a7291e/go.mod h1:8Pf4gM6VEbTNRIT26AyyU7hxdQU3MvAvxVI0sc00XBE= -github.com/containerd/console v1.0.1/go.mod h1:XUsP6YE/mKtz6bxc+I8UiKKTP04qjQL4qcS3XoQ5xkw= -github.com/containerd/console v1.0.2/go.mod h1:ytZPjGgY2oeTkAONYafi2kSj0aYggsf8acV1PGKCbzQ= -github.com/containerd/console v1.0.3/go.mod h1:7LqA/THxQ86k76b8c/EMSiaJ3h1eZkMkXar0TQ1gf3U= -github.com/containerd/containerd v1.2.10/go.mod h1:bC6axHOhabU15QhwfG7w5PipXdVtMXFTttgp+kVtyUA= -github.com/containerd/containerd v1.3.0-beta.2.0.20190828155532-0293cbd26c69/go.mod h1:bC6axHOhabU15QhwfG7w5PipXdVtMXFTttgp+kVtyUA= -github.com/containerd/containerd v1.3.0/go.mod h1:bC6axHOhabU15QhwfG7w5PipXdVtMXFTttgp+kVtyUA= -github.com/containerd/containerd v1.3.1-0.20191213020239-082f7e3aed57/go.mod h1:bC6axHOhabU15QhwfG7w5PipXdVtMXFTttgp+kVtyUA= -github.com/containerd/containerd v1.3.2/go.mod h1:bC6axHOhabU15QhwfG7w5PipXdVtMXFTttgp+kVtyUA= -github.com/containerd/containerd v1.4.0-beta.2.0.20200729163537-40b22ef07410/go.mod h1:bC6axHOhabU15QhwfG7w5PipXdVtMXFTttgp+kVtyUA= -github.com/containerd/containerd v1.4.1/go.mod h1:bC6axHOhabU15QhwfG7w5PipXdVtMXFTttgp+kVtyUA= -github.com/containerd/containerd v1.4.3/go.mod h1:bC6axHOhabU15QhwfG7w5PipXdVtMXFTttgp+kVtyUA= -github.com/containerd/containerd v1.4.9/go.mod h1:bC6axHOhabU15QhwfG7w5PipXdVtMXFTttgp+kVtyUA= -github.com/containerd/containerd v1.5.0-beta.1/go.mod h1:5HfvG1V2FsKesEGQ17k5/T7V960Tmcumvqn8Mc+pCYQ= -github.com/containerd/containerd v1.5.0-beta.3/go.mod h1:/wr9AVtEM7x9c+n0+stptlo/uBBoBORwEx6ardVcmKU= -github.com/containerd/containerd v1.5.0-beta.4/go.mod h1:GmdgZd2zA2GYIBZ0w09ZvgqEq8EfBp/m3lcVZIvPHhI= -github.com/containerd/containerd v1.5.0-rc.0/go.mod h1:V/IXoMqNGgBlabz3tHD2TWDoTJseu1FGOKuoA4nNb2s= -github.com/containerd/containerd v1.5.1/go.mod h1:0DOxVqwDy2iZvrZp2JUx/E+hS0UNTVn7dJnIOwtYR4g= -github.com/containerd/containerd v1.5.7/go.mod h1:gyvv6+ugqY25TiXxcZC3L5yOeYgEw0QMhscqVp1AR9c= -github.com/containerd/containerd v1.5.8/go.mod h1:YdFSv5bTFLpG2HIYmfqDpSYYTDX+mc5qtSuYx1YUb/s= -github.com/containerd/containerd v1.6.1/go.mod h1:1nJz5xCZPusx6jJU8Frfct988y0NpumIq9ODB0kLtoE= -github.com/containerd/continuity v0.0.0-20190426062206-aaeac12a7ffc/go.mod h1:GL3xCUCBDV3CZiTSEKksMWbLE66hEyuu9qyDOOqM47Y= -github.com/containerd/continuity v0.0.0-20190815185530-f2a389ac0a02/go.mod h1:GL3xCUCBDV3CZiTSEKksMWbLE66hEyuu9qyDOOqM47Y= -github.com/containerd/continuity v0.0.0-20191127005431-f65d91d395eb/go.mod h1:GL3xCUCBDV3CZiTSEKksMWbLE66hEyuu9qyDOOqM47Y= -github.com/containerd/continuity v0.0.0-20200710164510-efbc4488d8fe/go.mod h1:cECdGN1O8G9bgKTlLhuPJimka6Xb/Gg7vYzCTNVxhvo= -github.com/containerd/continuity v0.0.0-20201208142359-180525291bb7/go.mod h1:kR3BEg7bDFaEddKm54WSmrol1fKWDU1nKYkgrcgZT7Y= -github.com/containerd/continuity v0.0.0-20210208174643-50096c924a4e/go.mod h1:EXlVlkqNba9rJe3j7w3Xa924itAMLgZH4UD/Q4PExuQ= -github.com/containerd/continuity v0.1.0/go.mod h1:ICJu0PwR54nI0yPEnJ6jcS+J7CZAUXrLh8lPo2knzsM= -github.com/containerd/continuity v0.2.2/go.mod h1:pWygW9u7LtS1o4N/Tn0FoCFDIXZ7rxcMX7HX1Dmibvk= -github.com/containerd/fifo v0.0.0-20180307165137-3d5202aec260/go.mod h1:ODA38xgv3Kuk8dQz2ZQXpnv/UZZUHUCL7pnLehbXgQI= -github.com/containerd/fifo v0.0.0-20190226154929-a9fb20d87448/go.mod h1:ODA38xgv3Kuk8dQz2ZQXpnv/UZZUHUCL7pnLehbXgQI= -github.com/containerd/fifo v0.0.0-20200410184934-f15a3290365b/go.mod h1:jPQ2IAeZRCYxpS/Cm1495vGFww6ecHmMk1YJH2Q5ln0= -github.com/containerd/fifo v0.0.0-20201026212402-0724c46b320c/go.mod h1:jPQ2IAeZRCYxpS/Cm1495vGFww6ecHmMk1YJH2Q5ln0= -github.com/containerd/fifo v0.0.0-20210316144830-115abcc95a1d/go.mod h1:ocF/ME1SX5b1AOlWi9r677YJmCPSwwWnQ9O123vzpE4= -github.com/containerd/fifo v1.0.0/go.mod h1:ocF/ME1SX5b1AOlWi9r677YJmCPSwwWnQ9O123vzpE4= -github.com/containerd/go-cni v1.0.1/go.mod h1:+vUpYxKvAF72G9i1WoDOiPGRtQpqsNW/ZHtSlv++smU= -github.com/containerd/go-cni v1.0.2/go.mod h1:nrNABBHzu0ZwCug9Ije8hL2xBCYh/pjfMb1aZGrrohk= -github.com/containerd/go-cni v1.1.0/go.mod h1:Rflh2EJ/++BA2/vY5ao3K6WJRR/bZKsX123aPk+kUtA= -github.com/containerd/go-cni v1.1.3/go.mod h1:Rflh2EJ/++BA2/vY5ao3K6WJRR/bZKsX123aPk+kUtA= -github.com/containerd/go-runc v0.0.0-20180907222934-5a6d9f37cfa3/go.mod h1:IV7qH3hrUgRmyYrtgEeGWJfWbgcHL9CSRruz2Vqcph0= -github.com/containerd/go-runc v0.0.0-20190911050354-e029b79d8cda/go.mod h1:IV7qH3hrUgRmyYrtgEeGWJfWbgcHL9CSRruz2Vqcph0= -github.com/containerd/go-runc v0.0.0-20200220073739-7016d3ce2328/go.mod h1:PpyHrqVs8FTi9vpyHwPwiNEGaACDxT/N/pLcvMSRA9g= -github.com/containerd/go-runc v0.0.0-20201020171139-16b287bc67d0/go.mod h1:cNU0ZbCgCQVZK4lgG3P+9tn9/PaJNmoDXPpoJhDR+Ok= -github.com/containerd/go-runc v1.0.0/go.mod h1:cNU0ZbCgCQVZK4lgG3P+9tn9/PaJNmoDXPpoJhDR+Ok= -github.com/containerd/imgcrypt v1.0.1/go.mod h1:mdd8cEPW7TPgNG4FpuP3sGBiQ7Yi/zak9TYCG3juvb0= -github.com/containerd/imgcrypt v1.0.4-0.20210301171431-0ae5c75f59ba/go.mod h1:6TNsg0ctmizkrOgXRNQjAPFWpMYRWuiB6dSF4Pfa5SA= -github.com/containerd/imgcrypt v1.1.1-0.20210312161619-7ed62a527887/go.mod h1:5AZJNI6sLHJljKuI9IHnw1pWqo/F0nGDOuR9zgTs7ow= -github.com/containerd/imgcrypt v1.1.1/go.mod h1:xpLnwiQmEUJPvQoAapeb2SNCxz7Xr6PJrXQb0Dpc4ms= -github.com/containerd/imgcrypt v1.1.3/go.mod h1:/TPA1GIDXMzbj01yd8pIbQiLdQxed5ue1wb8bP7PQu4= -github.com/containerd/nri v0.0.0-20201007170849-eb1350a75164/go.mod h1:+2wGSDGFYfE5+So4M5syatU0N0f0LbWpuqyMi4/BE8c= -github.com/containerd/nri v0.0.0-20210316161719-dbaa18c31c14/go.mod h1:lmxnXF6oMkbqs39FiCt1s0R2HSMhcLel9vNL3m4AaeY= -github.com/containerd/nri v0.1.0/go.mod h1:lmxnXF6oMkbqs39FiCt1s0R2HSMhcLel9vNL3m4AaeY= -github.com/containerd/stargz-snapshotter/estargz v0.4.1/go.mod h1:x7Q9dg9QYb4+ELgxmo4gBUeJB0tl5dqH1Sdz0nJU1QM= -github.com/containerd/ttrpc v0.0.0-20190828154514-0e0f228740de/go.mod h1:PvCDdDGpgqzQIzDW1TphrGLssLDZp2GuS+X5DkEJB8o= -github.com/containerd/ttrpc v0.0.0-20190828172938-92c8520ef9f8/go.mod h1:PvCDdDGpgqzQIzDW1TphrGLssLDZp2GuS+X5DkEJB8o= -github.com/containerd/ttrpc v0.0.0-20191028202541-4f1b8fe65a5c/go.mod h1:LPm1u0xBw8r8NOKoOdNMeVHSawSsltak+Ihv+etqsE8= -github.com/containerd/ttrpc v1.0.1/go.mod h1:UAxOpgT9ziI0gJrmKvgcZivgxOp8iFPSk8httJEt98Y= -github.com/containerd/ttrpc v1.0.2/go.mod h1:UAxOpgT9ziI0gJrmKvgcZivgxOp8iFPSk8httJEt98Y= -github.com/containerd/ttrpc v1.1.0/go.mod h1:XX4ZTnoOId4HklF4edwc4DcqskFZuvXB1Evzy5KFQpQ= -github.com/containerd/typeurl v0.0.0-20180627222232-a93fcdb778cd/go.mod h1:Cm3kwCdlkCfMSHURc+r6fwoGH6/F1hH3S4sg0rLFWPc= -github.com/containerd/typeurl v0.0.0-20190911142611-5eb25027c9fd/go.mod h1:GeKYzf2pQcqv7tJ0AoCuuhtnqhva5LNU3U+OyKxxJpk= -github.com/containerd/typeurl v1.0.1/go.mod h1:TB1hUtrpaiO88KEK56ijojHS1+NeF0izUACaJW2mdXg= -github.com/containerd/typeurl v1.0.2/go.mod h1:9trJWW2sRlGub4wZJRTW83VtbOLS6hwcDZXTn6oPz9s= -github.com/containerd/zfs v0.0.0-20200918131355-0a33824f23a2/go.mod h1:8IgZOBdv8fAgXddBT4dBXJPtxyRsejFIpXoklgxgEjw= -github.com/containerd/zfs v0.0.0-20210301145711-11e8f1707f62/go.mod h1:A9zfAbMlQwE+/is6hi0Xw8ktpL+6glmqZYtevJgaB8Y= -github.com/containerd/zfs v0.0.0-20210315114300-dde8f0fda960/go.mod h1:m+m51S1DvAP6r3FcmYCp54bQ34pyOwTieQDNRIRHsFY= -github.com/containerd/zfs v0.0.0-20210324211415-d5c4544f0433/go.mod h1:m+m51S1DvAP6r3FcmYCp54bQ34pyOwTieQDNRIRHsFY= -github.com/containerd/zfs v1.0.0/go.mod h1:m+m51S1DvAP6r3FcmYCp54bQ34pyOwTieQDNRIRHsFY= -github.com/containernetworking/cni v0.7.1/go.mod h1:LGwApLUm2FpoOfxTDEeq8T9ipbpZ61X79hmU3w8FmsY= -github.com/containernetworking/cni v0.8.0/go.mod h1:LGwApLUm2FpoOfxTDEeq8T9ipbpZ61X79hmU3w8FmsY= -github.com/containernetworking/cni v0.8.1/go.mod h1:LGwApLUm2FpoOfxTDEeq8T9ipbpZ61X79hmU3w8FmsY= -github.com/containernetworking/cni v1.0.1/go.mod h1:AKuhXbN5EzmD4yTNtfSsX3tPcmtrBI6QcRV0NiNt15Y= -github.com/containernetworking/plugins v0.8.6/go.mod h1:qnw5mN19D8fIwkqW7oHHYDHVlzhJpcY6TQxn/fUyDDM= -github.com/containernetworking/plugins v0.9.1/go.mod h1:xP/idU2ldlzN6m4p5LmGiwRDjeJr6FLK6vuiUwoH7P8= -github.com/containernetworking/plugins v1.0.1/go.mod h1:QHCfGpaTwYTbbH+nZXKVTxNBDZcxSOplJT5ico8/FLE= -github.com/containers/ocicrypt v1.0.1/go.mod h1:MeJDzk1RJHv89LjsH0Sp5KTY3ZYkjXO/C+bKAeWFIrc= -github.com/containers/ocicrypt v1.1.0/go.mod h1:b8AOe0YR67uU8OqfVNcznfFpAzu3rdgUV4GP9qXPfu4= -github.com/containers/ocicrypt v1.1.1/go.mod h1:Dm55fwWm1YZAjYRaJ94z2mfZikIyIN4B0oB3dj3jFxY= -github.com/containers/ocicrypt v1.1.2/go.mod h1:Dm55fwWm1YZAjYRaJ94z2mfZikIyIN4B0oB3dj3jFxY= -github.com/coreos/bbolt v1.3.2/go.mod h1:iRUV2dpdMOn7Bo10OQBFzIJO9kkE559Wcmn+qkEiiKk= -github.com/coreos/etcd v3.3.10+incompatible/go.mod h1:uF7uidLiAD3TWHmW31ZFd/JWoc32PjwdhPthX9715RE= -github.com/coreos/etcd v3.3.13+incompatible/go.mod h1:uF7uidLiAD3TWHmW31ZFd/JWoc32PjwdhPthX9715RE= -github.com/coreos/go-iptables v0.4.5/go.mod h1:/mVI274lEDI2ns62jHCDnCyBF9Iwsmekav8Dbxlm1MU= -github.com/coreos/go-iptables v0.5.0/go.mod h1:/mVI274lEDI2ns62jHCDnCyBF9Iwsmekav8Dbxlm1MU= -github.com/coreos/go-iptables v0.6.0/go.mod h1:Qe8Bv2Xik5FyTXwgIbLAnv2sWSBmvWdFETJConOQ//Q= -github.com/coreos/go-oidc v2.1.0+incompatible/go.mod h1:CgnwVTmzoESiwO9qyAFEMiHoZ1nMCKZlZ9V6mm3/LKc= -github.com/coreos/go-semver v0.2.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk= -github.com/coreos/go-semver v0.3.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk= -github.com/coreos/go-systemd v0.0.0-20161114122254-48702e0da86b/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4= -github.com/coreos/go-systemd v0.0.0-20180511133405-39ca1b05acc7/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4= -github.com/coreos/go-systemd v0.0.0-20190321100706-95778dfbb74e/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4= -github.com/coreos/go-systemd/v22 v22.0.0/go.mod h1:xO0FLkIi5MaZafQlIrOotqXZ90ih+1atmu1JpKERPPk= -github.com/coreos/go-systemd/v22 v22.1.0/go.mod h1:xO0FLkIi5MaZafQlIrOotqXZ90ih+1atmu1JpKERPPk= -github.com/coreos/go-systemd/v22 v22.3.2/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= -github.com/coreos/pkg v0.0.0-20160727233714-3ac0863d7acf/go.mod h1:E3G3o1h8I7cfcXa63jLwjI0eiQQMgzzUDFVpN/nH/eA= -github.com/coreos/pkg v0.0.0-20180928190104-399ea9e2e55f/go.mod h1:E3G3o1h8I7cfcXa63jLwjI0eiQQMgzzUDFVpN/nH/eA= -github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU= -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/creack/pty v1.1.7/go.mod h1:lj5s0c3V2DBrqTV7llrYr5NG6My20zk30Fl46Y7DoTY= -github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= -github.com/creack/pty v1.1.11/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= -github.com/cyphar/filepath-securejoin v0.2.2/go.mod h1:FpkQEhXnPnOthhzymB7CGsFk2G9VLXONKD9G7QGMM+4= -github.com/cyphar/filepath-securejoin v0.2.3 h1:YX6ebbZCZP7VkM3scTTokDgBL2TY741X51MTk3ycuNI= -github.com/cyphar/filepath-securejoin v0.2.3/go.mod h1:aPGpWjXOXUn2NCNjFvBE6aRxGGx79pTxQpKOJNYHHl4= -github.com/d2g/dhcp4 v0.0.0-20170904100407-a1d1b6c41b1c/go.mod h1:Ct2BUK8SB0YC1SMSibvLzxjeJLnrYEVLULFNiHY9YfQ= -github.com/d2g/dhcp4client v1.0.0/go.mod h1:j0hNfjhrt2SxUOw55nL0ATM/z4Yt3t2Kd1mW34z5W5s= -github.com/d2g/dhcp4server v0.0.0-20181031114812-7d4a0a7f59a5/go.mod h1:Eo87+Kg/IX2hfWJfwxMzLyuSZyxSoAug2nGa1G2QAi8= -github.com/d2g/hardwareaddr v0.0.0-20190221164911-e7d9fbe030e4/go.mod h1:bMl4RjIciD2oAxI7DmWRx6gbeqrkoLqv3MV0vzNad+I= -github.com/danieljoos/wincred v1.1.0/go.mod h1:XYlo+eRTsVA9aHGp7NGjFkPla4m+DCL7hqDjlFjiygg= -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/denisenkom/go-mssqldb v0.9.0/go.mod h1:xbL0rPBG9cCiLr28tMa8zpbdarY27NDyej4t/EjAShU= -github.com/denverdino/aliyungo v0.0.0-20190125010748-a747050bb1ba/go.mod h1:dV8lFg6daOBZbT6/BDGIz6Y3WFGn8juu6G+CQ6LHtl0= -github.com/dgrijalva/jwt-go v0.0.0-20170104182250-a601269ab70c/go.mod h1:E3ru+11k8xSBh+hMPgOLZmtrrCbhqsmaPHjLKYnJCaQ= -github.com/dgrijalva/jwt-go v3.2.0+incompatible/go.mod h1:E3ru+11k8xSBh+hMPgOLZmtrrCbhqsmaPHjLKYnJCaQ= -github.com/dgryski/go-sip13 v0.0.0-20181026042036-e10d5fee7954/go.mod h1:vAd38F8PWV+bWy6jNmig1y/TA+kYO4g3RSRF0IAv0no= -github.com/distribution/distribution/v3 v3.0.0-20211118083504-a29a3c99a684/go.mod h1:UfCu3YXJJCI+IdnqGgYP82dk2+Joxmv+mUTVBES6wac= -github.com/dnaeon/go-vcr v1.0.1/go.mod h1:aBB1+wY4s93YsC3HHjMBMrwTj2R9FHDzUr9KyGc8n1E= -github.com/docker/cli v0.0.0-20191017083524-a8ff7f821017/go.mod h1:JLrzqnKDaYBop7H2jaqPtU4hHvMKP+vjCwu2uszcLI8= -github.com/docker/cli v20.10.11+incompatible/go.mod h1:JLrzqnKDaYBop7H2jaqPtU4hHvMKP+vjCwu2uszcLI8= -github.com/docker/distribution v0.0.0-20190905152932-14b96e55d84c/go.mod h1:0+TTO4EOBfRPhZXAeF1Vu+W3hHZ8eLp8PgKVZlcvtFY= -github.com/docker/distribution v2.7.1-0.20190205005809-0d3efadf0154+incompatible/go.mod h1:J2gT2udsDAN96Uj4KfcMRqY0/ypR+oyYUYmja8H+y+w= -github.com/docker/distribution v2.7.1+incompatible/go.mod h1:J2gT2udsDAN96Uj4KfcMRqY0/ypR+oyYUYmja8H+y+w= -github.com/docker/distribution v2.8.1+incompatible/go.mod h1:J2gT2udsDAN96Uj4KfcMRqY0/ypR+oyYUYmja8H+y+w= -github.com/docker/docker v1.4.2-0.20190924003213-a8608b5b67c7/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk= -github.com/docker/docker v20.10.11+incompatible/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk= -github.com/docker/docker v20.10.12+incompatible/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk= -github.com/docker/docker-credential-helpers v0.6.3/go.mod h1:WRaJzqw3CTB9bk10avuGsjVBZsD05qeibJ1/TYlvc0Y= -github.com/docker/docker-credential-helpers v0.6.4/go.mod h1:ofX3UI0Gz1TteYBjtgs07O36Pyasyp66D2uKT7H8W1c= -github.com/docker/go-connections v0.4.0/go.mod h1:Gbd7IOopHjR8Iph03tsViu4nIes5XhDvyHbTtUxmeec= -github.com/docker/go-events v0.0.0-20170721190031-9461782956ad/go.mod h1:Uw6UezgYA44ePAFQYUehOuCzmy5zmg/+nl2ZfMWGkpA= -github.com/docker/go-events v0.0.0-20190806004212-e31b211e4f1c/go.mod h1:Uw6UezgYA44ePAFQYUehOuCzmy5zmg/+nl2ZfMWGkpA= -github.com/docker/go-metrics v0.0.0-20180209012529-399ea8c73916/go.mod h1:/u0gXw0Gay3ceNrsHubL3BtdOL2fHf93USgMTe0W5dI= -github.com/docker/go-metrics v0.0.1/go.mod h1:cG1hvH2utMXtqgqqYE9plW6lDxS3/5ayHzueweSI3Vw= -github.com/docker/go-units v0.4.0/go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDDbaIK4Dk= -github.com/docker/libtrust v0.0.0-20150114040149-fa567046d9b1/go.mod h1:cyGadeNEkKy96OOhEzfZl+yxihPEzKnqJwvfuSUqbZE= -github.com/docker/spdystream v0.0.0-20160310174837-449fdfce4d96/go.mod h1:Qh8CwZgvJUkLughtfhJv5dyTYa91l1fOUCrgjqmcifM= -github.com/docopt/docopt-go v0.0.0-20180111231733-ee0de3bc6815/go.mod h1:WwZ+bS3ebgob9U8Nd0kOddGdZWjyMGR8Wziv+TBNwSE= -github.com/dustin/go-humanize v0.0.0-20171111073723-bb3d318650d4/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25KnS6fMYU6eOk= -github.com/dustin/go-humanize v1.0.0/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25KnS6fMYU6eOk= -github.com/elazarl/goproxy v0.0.0-20180725130230-947c36da3153/go.mod h1:/Zj4wYkgs4iZTTu3o/KG3Itv/qCCa8VVMlb3i9OVuzc= -github.com/elazarl/goproxy v0.0.0-20190711103511-473e67f1d7d2 h1:aZtFdDNWY/yH86JPR2WX/PN63635VsE/f/nXNPAbYxY= -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.15.0+incompatible h1:8KpYO/Xl/ZudZs5RNOEhWMBY4hmzlZhhRd9cu+jrZP4= -github.com/emicklei/go-restful v2.15.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/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/go-control-plane v0.9.10-0.20210907150352-cf90f659a021/go.mod h1:AFq3mo9L8Lqqiid3OhADV3RfLJnjiw63cSpi+fDTRC0= -github.com/envoyproxy/go-control-plane v0.10.1/go.mod h1:AY7fTTXNdv/aJ2O5jwpxAPOWUZ7hQAEvzN5Pf27BkQQ= -github.com/envoyproxy/go-control-plane v0.10.2-0.20220325020618-49ff273808a1/go.mod h1:KJwIaB5Mv44NWtYuAOFCVOjcI94vtpEz2JU/D2v6IjE= -github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= -github.com/envoyproxy/protoc-gen-validate v0.6.2/go.mod h1:2t7qjJNvHPx8IjnBOzl9E9/baC+qXE/TeeyBRzgJDws= -github.com/evanphx/json-patch v0.0.0-20200808040245-162e5629780b/go.mod h1:NAJj0yf/KaRKURN6nyi7A9IZydMivZEm9oQLWNjfKDc= -github.com/evanphx/json-patch v0.5.2/go.mod h1:ZWS5hhDbVDyob71nXKNL0+PWn6ToqBHMikGIFbs31qQ= -github.com/evanphx/json-patch v4.9.0+incompatible/go.mod h1:50XU6AFN0ol/bzJsmQLiYLvXMP4fmwYFNcr97nuDLSk= -github.com/evanphx/json-patch v4.11.0+incompatible/go.mod h1:50XU6AFN0ol/bzJsmQLiYLvXMP4fmwYFNcr97nuDLSk= -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/exponent-io/jsonpath v0.0.0-20151013193312-d6023ce2651d/go.mod h1:ZZMPRZwes7CROmyNKgQzC3XPs6L/G2EJLHddWejkmf4= -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/fatih/color v1.9.0/go.mod h1:eQcE1qtQxscV5RaZvpXrrb8Drkc3/DdQ+uUYCNjL+zU= -github.com/fatih/color v1.12.0/go.mod h1:ELkj/draVOlAH/xkhN6mQ50Qd0MPOk5AAr3maGEBuJM= -github.com/fatih/color v1.13.0 h1:8LOYc1KYPPmyKMuN8QV2DNRWNbLo6LZ0iLs8+mlH53w= -github.com/fatih/color v1.13.0/go.mod h1:kLAiJbzzSOZDVNGyDpeOxJ47H46qBXwg5ILebYFFOfk= -github.com/felixge/httpsnoop v1.0.1/go.mod h1:m8KPJKqk1gH5J9DgRY2ASl2lWCfGKXixSwevea8zH2U= -github.com/flowstack/go-jsonschema v0.1.1/go.mod h1:yL7fNggx1o8rm9RlgXv7hTBWxdBM0rVwpMwimd3F3N0= -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/frankban/quicktest v1.11.3/go.mod h1:wRf/ReqHper53s+kmmSZizM8NamnL3IM0I9ntUbOk+k= -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/go.mod h1:T3375wBYaZdLLcVNkcVbzGHY7f1l/uK5T5Ai1i3InKU= -github.com/fsnotify/fsnotify v1.5.4 h1:jRbGcIw6P2Meqdwuo0H1p6JVLbL5DHKAKlYndzMwVZI= -github.com/fsnotify/fsnotify v1.5.4/go.mod h1:OVB6XrOHzAwXMpEM7uPOzcehqUV2UqJxmVXmkdnm1bU= -github.com/fullsailor/pkcs7 v0.0.0-20190404230743-d7302db945fa/go.mod h1:KnogPXtdwXqoenmZCw6S+25EAm2MkxbG0deNDu4cbSA= -github.com/fvbommel/sortorder v1.0.1/go.mod h1:uk88iVf1ovNn1iLfgUVU2F9o5eO30ui720w+kxuqRs0= -github.com/garyburd/redigo v0.0.0-20150301180006-535138d7bcd7/go.mod h1:NR3MbYisc3/PwhQ00EMzDiPmrwpPxAn5GI05/YaO1SY= -github.com/getkin/kin-openapi v0.76.0/go.mod h1:660oXbgy5JFMKreazJaQTw7o+X00qeSyhcnluiMv+Xg= -github.com/getsentry/raven-go v0.2.0/go.mod h1:KungGk8q33+aIAZUIVWZDr2OfAEBsO49PX4NzFV5kcQ= -github.com/ghodss/yaml v0.0.0-20150909031657-73d445a93680/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04= -github.com/ghodss/yaml v1.0.0 h1:wQHKEahhL6wmXdzwWG11gIVCkOv05bNOh+Rxn0yngAk= -github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04= -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-ini/ini v1.25.4/go.mod h1:ByCAeIL28uOIIG0E3PJtZPDL8WnHpFKFOtgjp+3Ies8= -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-kit/log v0.2.0/go.mod h1:NwTd00d/i8cPZ3xOwwiv2PO5MOcx78fFErGNcVmBjv0= -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-logfmt/logfmt v0.5.1/go.mod h1:WYhtIu8zTZfxdn5+rREduYbwxfcBr/Vr6KEVveWlfTs= -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 v0.4.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.1/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= -github.com/go-logr/logr v1.2.2/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/stdr v1.2.0/go.mod h1:YkVgnZu1ZjjL7xTxrfm/LLZBfkhTqSR1ydtm6jTKKwI= -github.com/go-logr/stdr v1.2.2/go.mod h1:mMo/vtBO5dYbehREoey6XUKy/eSumjCCveDpRre4VKE= -github.com/go-logr/zapr v0.4.0/go.mod h1:tabnROwaDl0UNxkVeFRbY8bwB37GwRv0P8lg6aAiEnk= -github.com/go-logr/zapr v1.2.0/go.mod h1:Qa4Bsj2Vb+FAVeAKsLD8RLQ+YRJB8YDmOAKxaBQf7Ro= -github.com/go-openapi/jsonpointer v0.0.0-20160704185906-46af16f9f7b1/go.mod h1:+35s3my2LFTysnkMfxsJBAMHj/DoqoB9knIWoYG/Vk0= -github.com/go-openapi/jsonpointer v0.19.2/go.mod h1:3akKfEdA7DF1sugOqz1dVQHBcuDBPKZGEoHC/NkiQRg= -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.0.0-20160704190145-13c6e3589ad9/go.mod h1:W3Z9FmVs9qj+KR4zFKmDPGiLdk1D9Rlm7cyMvf57TTg= -github.com/go-openapi/jsonreference v0.19.2/go.mod h1:jMjeRr2HHw6nAVajTXJ4eiUwohSTlpa0o73RUL1owJc= -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/spec v0.0.0-20160808142527-6aced65f8501/go.mod h1:J8+jY1nAiCcj+friV/PDoE1/3eeccG9LYBs0tYvLOWc= -github.com/go-openapi/spec v0.19.3/go.mod h1:FpwSN1ksY1eteniUU7X0N/BgJ7a4WvBFVA8Lj9mJglo= -github.com/go-openapi/spec v0.19.5/go.mod h1:Hm2Jr4jv8G1ciIAo+frC/Ft+rR2kQDh8JHKHb3gWUSk= -github.com/go-openapi/swag v0.0.0-20160704191624-1d0bd113de87/go.mod h1:DXUve3Dpr1UfpPtxFw+EFuQ41HhCWZfha5jSVRG7C7I= -github.com/go-openapi/swag v0.19.2/go.mod h1:POnQmlKehdgb5mhVOsnJFsivZCEZ/vjK9gh66Z9tfKk= -github.com/go-openapi/swag v0.19.5/go.mod h1:POnQmlKehdgb5mhVOsnJFsivZCEZ/vjK9gh66Z9tfKk= -github.com/go-openapi/swag v0.19.14/go.mod h1:QYRuS/SOXUCsnplDa677K7+DxSOj6IPNl/eQntq43wQ= -github.com/go-openapi/swag v0.21.1 h1:wm0rhTb5z7qpJRHBdPOMuY4QjVUMbF6/kwoYeRAOrKU= -github.com/go-openapi/swag v0.21.1/go.mod h1:QYRuS/SOXUCsnplDa677K7+DxSOj6IPNl/eQntq43wQ= -github.com/go-sql-driver/mysql v1.5.0/go.mod h1:DCzpHaOWr8IXmIStZouvnhqoel9Qv2LBy8hT2VhHyBg= -github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY= -github.com/go-task/slim-sprig v0.0.0-20210107165309-348f09dbbbc0/go.mod h1:fyg7847qk6SyHyPtNmDHnmrv/HOrqktSC+C9fM+CJOE= -github.com/gobuffalo/flect v0.2.3/go.mod h1:vmkQwuZYhN5Pc4ljYQZzP+1sq+NEkK+lh20jmEmX3jc= -github.com/gobuffalo/logger v1.0.3/go.mod h1:SoeejUwldiS7ZsyCBphOGURmWdwUFXs0J7TCjEhjKxM= -github.com/gobuffalo/packd v1.0.0/go.mod h1:6VTc4htmJRFB7u1m/4LeMTWjFoYrUiBkU9Fdec9hrhI= -github.com/gobuffalo/packr/v2 v2.8.1/go.mod h1:c/PLlOuTU+p3SybaJATW3H6lX/iK7xEz5OeMf+NnJpg= -github.com/gobwas/glob v0.2.3 h1:A4xDbljILXROh+kObIiy5kIaPYD8e96x1tgBhUI5J+Y= -github.com/gobwas/glob v0.2.3/go.mod h1:d3Ez4x06l9bZtSvzIay5+Yzi0fmZzPgnTbPcKjJAkT8= -github.com/godbus/dbus v0.0.0-20151105175453-c7fdd8b5cd55/go.mod h1:/YcGZj5zSblfDWMMoOzV4fas9FZnQYTkDnsGvmh2Grw= -github.com/godbus/dbus v0.0.0-20180201030542-885f9cc04c9c/go.mod h1:/YcGZj5zSblfDWMMoOzV4fas9FZnQYTkDnsGvmh2Grw= -github.com/godbus/dbus v0.0.0-20190422162347-ade71ed3457e/go.mod h1:bBOAhwG1umN6/6ZUMtDFBMQR8jRg9O75tm9K00oMsK4= -github.com/godbus/dbus/v5 v5.0.3/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA= -github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA= -github.com/godbus/dbus/v5 v5.0.6/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA= -github.com/godror/godror v0.24.2/go.mod h1:wZv/9vPiUib6tkoDl+AZ/QLf5YZgMravZ7jxH2eQWAE= -github.com/gofrs/flock v0.8.1/go.mod h1:F1TvTiK9OcQqauNUHlbJvyl9Qa1QvF/gOUDKA14jxHU= -github.com/gofrs/uuid v4.0.0+incompatible/go.mod h1:b2aQJv3Z4Fp6yNu3cdSllBxTCLRxnplIgP/c0N/04lM= -github.com/gogo/googleapis v1.2.0/go.mod h1:Njal3psf3qN6dwBtQfUmBZh2ybovJ0tlu3o/AC7HYjU= -github.com/gogo/googleapis v1.4.0/go.mod h1:5YRNX2z1oM5gXdAkurHa942MDgEJyk02w4OecKY87+c= -github.com/gogo/protobuf v1.1.1/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ= -github.com/gogo/protobuf v1.2.1/go.mod h1:hp+jE20tsWTFYpLwKvXlhS1hjn+gTNwPg2I6zVXpSg4= -github.com/gogo/protobuf v1.2.2-0.20190723190241-65acae22fc9d/go.mod h1:SlYgWuQ5SjCEi6WLHjHCa1yvBfUnHcTbrrZtXPKa29o= -github.com/gogo/protobuf v1.3.0/go.mod h1:SlYgWuQ5SjCEi6WLHjHCa1yvBfUnHcTbrrZtXPKa29o= -github.com/gogo/protobuf v1.3.1/go.mod h1:SlYgWuQ5SjCEi6WLHjHCa1yvBfUnHcTbrrZtXPKa29o= -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.0.0/go.mod h1:/xlHOz8bRuivTWchD4jCa+NbatV+wEUSzwAxVc6locg= -github.com/golang-jwt/jwt/v4 v4.2.0/go.mod h1:/xlHOz8bRuivTWchD4jCa+NbatV+wEUSzwAxVc6locg= -github.com/golang-jwt/jwt/v4 v4.4.1 h1:pC5DB52sCeK48Wlb9oPcdhnjkz1TKt1D/P7WKJ0kUcQ= -github.com/golang-jwt/jwt/v4 v4.4.1/go.mod h1:m21LjoU+eqJr34lmDMbreY2eSTRJ1cv77w39/MY0Ch0= -github.com/golang-sql/civil v0.0.0-20190719163853-cb61b32ac6fe/go.mod h1:8vg3r2VgvsThLBIFL93Qb5yWzgyZWhEmBwUJWevAkK0= -github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= -github.com/golang/glog v1.0.0/go.mod h1:EWib/APOK0SL3dFbYqvxE3UYd8E6s1ouQ7iEp/0LWV4= -github.com/golang/groupcache v0.0.0-20160516000752-02826c3e7903/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= -github.com/golang/groupcache v0.0.0-20190129154638-5b532d6fd5ef/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= -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/mock v1.6.0/go.mod h1:p6yTPP+5HYm5mzsMV8JkE6ZKdX+/wYM6Hr+LicevLPs= -github.com/golang/protobuf v0.0.0-20161109072736-4bd1920723d7/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= -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/golang/snappy v0.0.3/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= -github.com/golangplus/testing v0.0.0-20180327235837-af21d9c3145e/go.mod h1:0AA//k/eakGydO4jKRoRL2j92ZKSzTgj9tclaCrvXHk= -github.com/gomodule/redigo v1.8.2/go.mod h1:P9dn9mFrCBvWhGE1wpxx6fgq7BAeLBk+UUUzlpkBYO0= -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/google/btree v1.0.1/go.mod h1:xXMiIv4Fb/0kKde4SpL7qlzvu5cMJDRkFDxJfI9uaxA= -github.com/google/cel-go v0.9.0/go.mod h1:U7ayypeSkw23szu4GaQTPJGx66c20mx8JklMSxrmI1w= -github.com/google/cel-go v0.10.1/go.mod h1:U7ayypeSkw23szu4GaQTPJGx66c20mx8JklMSxrmI1w= -github.com/google/cel-spec v0.6.0/go.mod h1:Nwjgxy5CbjlPrtCWjeDjUyKMl8w41YBYGjsyDdqk0xA= -github.com/google/gnostic v0.5.7-v3refs/go.mod h1:73MKFl6jIHelAJNaBGFzt3SPtZULs9dYrGFt8OiIsHQ= -github.com/google/gnostic v0.6.9 h1:ZK/5VhkoX835RikCHpSUJV9a+S3e1zLh59YnyWeBW+0= -github.com/google/gnostic v0.6.9/go.mod h1:Nm8234We1lq6iB9OmlgNv3nH91XLLVZHCDayfA3xq+E= -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.6/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.7/go.mod h1:n+brtR0CgQNWTVd5ZUFpTBC8YFBDLK/h/bpaJ8/DtOE= -github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= -github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= -github.com/google/go-containerregistry v0.5.1/go.mod h1:Ct15B4yir3PLOP5jsy0GNeYVaIZs/MK/Jz5any1wFW0= -github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= -github.com/google/gofuzz v1.1.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= -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/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/martian/v3 v3.2.1/go.mod h1:oBOf6HBosgwRXnUGWUB05QECsc6uvmMiJ3+6W4l/CUk= -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/pprof v0.0.0-20210601050228-01bbb1931b22/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= -github.com/google/pprof v0.0.0-20210609004039-a478d1d731e9/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= -github.com/google/pprof v0.0.0-20210720184732-4bb14d4b1be1/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= -github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= -github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510/go.mod h1:pupxD2MaaD3pAXIBCelhxNneeOaAeabZDe5s4K6zSpQ= -github.com/google/uuid v1.0.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -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.2.0/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/gax-go/v2 v2.1.0/go.mod h1:Q3nei7sK6ybPYH7twZdmQpAd1MKb7pfu6SK+H1/DsU0= -github.com/googleapis/gax-go/v2 v2.1.1/go.mod h1:hddJymUZASv3XPyGkUpKj8pPO47Rmb0eJc8R6ouapiM= -github.com/googleapis/gax-go/v2 v2.2.0/go.mod h1:as02EH8zWkzwUoLbBaFeQ+arQaj/OthfcblKl4IGNaM= -github.com/googleapis/gax-go/v2 v2.3.0/go.mod h1:b8LNqSzNabLiUpXKkY7HAR5jr6bIT99EXz9pXxye9YM= -github.com/googleapis/gnostic v0.0.0-20170729233727-0c5108395e2d/go.mod h1:sJBsCZ4ayReDTBIg8b9dl28c5xFWyhBTVRp3pOg5EKY= -github.com/googleapis/gnostic v0.1.0/go.mod h1:sJBsCZ4ayReDTBIg8b9dl28c5xFWyhBTVRp3pOg5EKY= -github.com/googleapis/gnostic v0.2.0/go.mod h1:sJBsCZ4ayReDTBIg8b9dl28c5xFWyhBTVRp3pOg5EKY= -github.com/googleapis/gnostic v0.4.1/go.mod h1:LRhVm6pbyptWbWbuZ38d1eyptfvIytN3ir6b65WBswg= -github.com/googleapis/gnostic v0.5.1/go.mod h1:6U4PtQXGIEt/Z3h5MAT7FNofLnw9vXk2cUuW7uA/OeU= -github.com/googleapis/gnostic v0.5.5/go.mod h1:7+EbHbldMins07ALC74bsA81Ovc97DwqyJO1AENw9kA= -github.com/gophercloud/gophercloud v0.1.0/go.mod h1:vxM41WHh5uqHVBMZHzuwNOHh8XEoIEcSTewFxm1c5g8= -github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1/go.mod h1:wJfORRmW1u3UXTncJ5qlYoELFm8eSnnEO6hX4iZ3EWY= -github.com/gorilla/handlers v0.0.0-20150720190736-60c7bfde3e33/go.mod h1:Qkdc/uu4tH4g6mTK6auzZ766c4CA0Ng8+o/OAirnOIQ= -github.com/gorilla/handlers v1.5.1/go.mod h1:t8XrUpc4KVXb7HGyJ4/cEnwQiaxrX/hz1Zv/4g96P1Q= -github.com/gorilla/mux v1.7.2/go.mod h1:1lud6UwP+6orDFRuTfBEV8e9/aOM/c4fVVCaMa2zaAs= -github.com/gorilla/mux v1.7.3/go.mod h1:1lud6UwP+6orDFRuTfBEV8e9/aOM/c4fVVCaMa2zaAs= -github.com/gorilla/mux v1.8.0/go.mod h1:DVbg23sWSpFRCP0SfiEN6jmj59UnW/n46BH5rLB71So= -github.com/gorilla/websocket v0.0.0-20170926233335-4201258b820c/go.mod h1:E7qHFY5m1UJ88s3WnNqhKjPHQ0heANvMoAMk2YaljkQ= -github.com/gorilla/websocket v1.4.0/go.mod h1:E7qHFY5m1UJ88s3WnNqhKjPHQ0heANvMoAMk2YaljkQ= -github.com/gorilla/websocket v1.4.2/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE= -github.com/gosuri/uitable v0.0.4/go.mod h1:tKR86bXuXPZazfOTG1FIzvjIdXzd0mo4Vtn16vt0PJo= -github.com/gregjones/httpcache v0.0.0-20180305231024-9cad4c3443a7/go.mod h1:FecbI9+v66THATjSRHfNgh1IVFe/9kFxbXtjV0ctIMA= -github.com/grpc-ecosystem/go-grpc-middleware v1.0.0/go.mod h1:FiyG127CGDf3tlThmgyCl78X/SZQqEOJBCDaAfeWzPs= -github.com/grpc-ecosystem/go-grpc-middleware v1.0.1-0.20190118093823-f849b5445de4/go.mod h1:FiyG127CGDf3tlThmgyCl78X/SZQqEOJBCDaAfeWzPs= -github.com/grpc-ecosystem/go-grpc-middleware v1.3.0/go.mod h1:z0ButlSOZa5vEBq9m2m2hlwIgKw+rp3sdCBRoJY+30Y= -github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0 h1:Ovs26xHkKqVztRpIrF/92BcuyuQ/YW4NSIpoGtfXNho= -github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0/go.mod h1:8NvIoxWQoOIhqOTXgfV/d3M/q6VIi02HzZEHgUlZvzk= -github.com/grpc-ecosystem/grpc-gateway v1.9.0/go.mod h1:vNeuVxBJEsws4ogUvrchl83t/GYV9WGTSLVdBhOQFDY= -github.com/grpc-ecosystem/grpc-gateway v1.9.5/go.mod h1:vNeuVxBJEsws4ogUvrchl83t/GYV9WGTSLVdBhOQFDY= -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/api v1.11.0/go.mod h1:XjsvQN+RJGWI2TWy1/kqaE16HrR2J/FWgkYjdZQsX9M= -github.com/hashicorp/consul/sdk v0.1.1/go.mod h1:VKf9jXwCTEY1QZP2MOLRhb5i/I/ssyNV1vwHyQBF0x8= -github.com/hashicorp/consul/sdk v0.8.0/go.mod h1:GBvyrGALthsZObzUGsfgHZQDXjg4lOjagTIwIR1vPms= -github.com/hashicorp/errwrap v0.0.0-20141028054710-7554cd9344ce/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= -github.com/hashicorp/errwrap v1.0.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= -github.com/hashicorp/errwrap v1.1.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= -github.com/hashicorp/go-cleanhttp v0.5.0/go.mod h1:JpRdi6/HCYpAwUzNwuwqhbovhLtngrth3wmdIIUrZ80= -github.com/hashicorp/go-cleanhttp v0.5.1/go.mod h1:JpRdi6/HCYpAwUzNwuwqhbovhLtngrth3wmdIIUrZ80= -github.com/hashicorp/go-cleanhttp v0.5.2/go.mod h1:kO/YDlP8L1346E6Sodw+PrpBSV4/SoxCXGY6BqNFT48= -github.com/hashicorp/go-hclog v0.12.0/go.mod h1:whpDNt7SSdeAju8AWKIWsul05p54N/39EeqMAyrmvFQ= -github.com/hashicorp/go-hclog v1.0.0/go.mod h1:whpDNt7SSdeAju8AWKIWsul05p54N/39EeqMAyrmvFQ= -github.com/hashicorp/go-immutable-radix v1.0.0/go.mod h1:0y9vanUI8NX6FsYoO3zeMjhV/C5i9g4Q3DwcSNZ4P60= -github.com/hashicorp/go-immutable-radix v1.3.1/go.mod h1:0y9vanUI8NX6FsYoO3zeMjhV/C5i9g4Q3DwcSNZ4P60= -github.com/hashicorp/go-msgpack v0.5.3/go.mod h1:ahLV/dePpqEmjfWmKiqvPkv/twdG7iPBM1vqhUKIvfM= -github.com/hashicorp/go-multierror v0.0.0-20161216184304-ed905158d874/go.mod h1:JMRHfdO9jKNzS/+BTlxCjKNQHg/jZAft8U7LloJvN7I= -github.com/hashicorp/go-multierror v1.0.0/go.mod h1:dHtQlpGsu+cZNNAkkCN/P3hoUDHhCYQXV3UM06sGGrk= -github.com/hashicorp/go-multierror v1.1.0/go.mod h1:spPvp8C1qA32ftKqdAHm4hHTbPw+vmowP0z+KUhOZdA= -github.com/hashicorp/go-multierror v1.1.1/go.mod h1:iw975J/qwKPdAO1clOe2L8331t/9/fmwbPZ6JB6eMoM= -github.com/hashicorp/go-retryablehttp v0.5.3/go.mod h1:9B5zBasrRhHXnJnui7y6sL7es7NDiJgTc6Er0maI1Xs= -github.com/hashicorp/go-rootcerts v1.0.0/go.mod h1:K6zTfqpRlCUIjkwsN4Z+hiSfzSTQa6eBIzfwKfwNnHU= -github.com/hashicorp/go-rootcerts v1.0.2/go.mod h1:pqUvnprVnM5bf7AOirdbb01K4ccR319Vf4pU3K5EGc8= -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/golang-lru v0.5.4/go.mod h1:iADmTwqILo4mZ8BN3D2Q6+9jd8WM5uGBxy+E8yxSoD4= -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/mdns v1.0.1/go.mod h1:4gW7WsVCke5TE7EPeYliwHlRUyBtfCwuFwuMg2DmyNY= -github.com/hashicorp/mdns v1.0.4/go.mod h1:mtBihi+LeNXGtG8L9dX59gAEa12BDtBQSp4v/YAJqrc= -github.com/hashicorp/memberlist v0.1.3/go.mod h1:ajVTdAv/9Im8oMAAj5G31PhhMCZJV2pPBoIllUwCN7I= -github.com/hashicorp/memberlist v0.2.2/go.mod h1:MS2lj3INKhZjWNqd3N0m3J+Jxf3DAOnAH9VT3Sh9MUE= -github.com/hashicorp/memberlist v0.3.0/go.mod h1:MS2lj3INKhZjWNqd3N0m3J+Jxf3DAOnAH9VT3Sh9MUE= -github.com/hashicorp/serf v0.8.2/go.mod h1:6hOLApaqBFA1NXqRQAsxw9QxuDEvNxSQRwA/JwenrHc= -github.com/hashicorp/serf v0.9.5/go.mod h1:UWDWwZeL5cuWDJdl0C6wrvrUwEqtQ4ZKBKKENpqIUyk= -github.com/hashicorp/serf v0.9.6/go.mod h1:TXZNMjZQijwlDvp+r0b63xZ45H7JmCmgg4gpTwn9UV4= -github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU= -github.com/huandu/xstrings v1.3.1/go.mod h1:y5/lhBue+AyNmUVz9RLU9xbLR0o4KIIExikq4ovT0aE= -github.com/huandu/xstrings v1.3.2 h1:L18LIDzqlW6xN2rEkpdV8+oL/IXWJ1APd+vsdYy4Wdw= -github.com/huandu/xstrings v1.3.2/go.mod h1:y5/lhBue+AyNmUVz9RLU9xbLR0o4KIIExikq4ovT0aE= -github.com/iancoleman/strcase v0.2.0/go.mod h1:iwCmte+B7n89clKwxIoIXy/HfoL7AsD47ZCWhYzw7ho= -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.8/go.mod h1:2EnlNZ0deacrJVfApfmtdGgDfMuh/nq6Ok1EcJh5FfA= -github.com/imdario/mergo v0.3.10/go.mod h1:jmQim1M+e3UYxmgPu/WyfjB3N3VflVyUjjjwH0dnCYA= -github.com/imdario/mergo v0.3.11/go.mod h1:jmQim1M+e3UYxmgPu/WyfjB3N3VflVyUjjjwH0dnCYA= -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/intel/goresctrl v0.2.0/go.mod h1:+CZdzouYFn5EsxgqAQTEzMfwKwuc0fVdMrT9FCCAVRQ= -github.com/j-keck/arping v0.0.0-20160618110441-2cf9dc699c56/go.mod h1:ymszkNOg6tORTn+6F6j+Jc8TOr5osrynvN6ivFWZ2GA= -github.com/j-keck/arping v1.0.2/go.mod h1:aJbELhR92bSk7tp79AWM/ftfc90EfEi2bQJrbBFOsPw= -github.com/jessevdk/go-flags v1.4.0/go.mod h1:4FA24M0QyGHXBuZZK/XkWh8h0e1EYbRYJSGM75WSRxI= -github.com/jmespath/go-jmespath v0.0.0-20160202185014-0b12d6b521d8/go.mod h1:Nht3zPeWKUH0NzdCt2Blrr5ys8VGpn0CEB0cQHVjt7k= -github.com/jmespath/go-jmespath v0.0.0-20160803190731-bd40a432e4c7/go.mod h1:Nht3zPeWKUH0NzdCt2Blrr5ys8VGpn0CEB0cQHVjt7k= -github.com/jmespath/go-jmespath v0.3.0/go.mod h1:9QtRXoHjLGCJ5IBSaohpXITPlowMeeYCZ7fLUTSywik= -github.com/jmoiron/sqlx v1.3.4/go.mod h1:2BljVx/86SuTyjE+aPYlHCTNvZrnJXghYGpNiXLBMCQ= -github.com/joefitzgerald/rainbow-reporter v0.1.0/go.mod h1:481CNgqmVHQZzdIbN52CupLJyoVwB10FQ/IQlF1pdL8= -github.com/jonboulle/clockwork v0.1.0/go.mod h1:Ii8DK3G1RaLaWxj9trq07+26W01tbo22gdxWY5EU2bo= -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 h1:uvFg412JmmHBHw7iwprIxkPMI+sGQ4kzOWsMeHnm2EA= -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.7/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= -github.com/json-iterator/go v1.1.8/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= -github.com/json-iterator/go v1.1.9/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= -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/karrick/godirwalk v1.15.8/go.mod h1:j4mkqPuvaLI8mp1DroR3P6ad7cyYd4c1qeJ3RV7ULlk= -github.com/kisielk/errcheck v1.1.0/go.mod h1:EZBBE59ingxPouuu3KfxchcWSUPOHkagtvWXihfKN4Q= -github.com/kisielk/errcheck v1.2.0/go.mod h1:/BMXB+zMLi60iA8Vv6Ksmxu/1UDYcXs4uQLJ+jE2L00= -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/klauspost/compress v1.11.3/go.mod h1:aoV0uJVorq1K+umq18yTdKaF57EivdYsUV+/s2qKfXs= -github.com/klauspost/compress v1.11.13/go.mod h1:aoV0uJVorq1K+umq18yTdKaF57EivdYsUV+/s2qKfXs= -github.com/klauspost/compress v1.13.6/go.mod h1:/3/Vjq9QcHkK5uEr5lBEmyoZ1iFhe47etQ6QUkpK6sk= -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.2/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/kortschak/utter v1.0.1/go.mod h1:vSmSjbyrlKjjsL71193LmzBOKgwePk9DH6uFaWHIInc= -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 h1:Fmg33tUaq4/8ym9TJN1x7sLJnHVwhP33CNkpYV/7rwI= -github.com/kr/pretty v0.2.1/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI= -github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= -github.com/kr/pty v1.1.5/go.mod h1:9r2w37qlBe7rQ6e1fg1S/9xpWHSnaqNdHD3WcMdbPDA= -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= -github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= -github.com/lann/builder v0.0.0-20180802200727-47ae307949d0/go.mod h1:dXGbAdH5GtBTC4WfIxhKZfyBF/HBFgRZSWwZ9g/He9o= -github.com/lann/ps v0.0.0-20150810152359-62de8c46ede0/go.mod h1:vmVJ0l/dxyfGW6FmdpVm2joNMFikkuWg0EoCKLGUMNw= -github.com/lib/pq v1.2.0/go.mod h1:5WUZQaWbwv1U+lTReE5YruASi9Al49XbQIvNi/34Woo= -github.com/lib/pq v1.10.0/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o= -github.com/lib/pq v1.10.4/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o= -github.com/liggitt/tabwriter v0.0.0-20181228230101-89fcab3d43de/go.mod h1:zAbeS9B/r2mtpb6U+EI2rYA5OAXxsYw6wTamcNW+zcE= -github.com/linkerd/linkerd2 v0.5.1-0.20220418181325-7ac79b8c086d h1:MY6BNw20Az9b0WKpBNAFWfeWspqTnux9ViwHFGMQud0= -github.com/linkerd/linkerd2 v0.5.1-0.20220418181325-7ac79b8c086d/go.mod h1:LyeoQZ3xlB+ipqhQ6zJStp+Wh302e+sr4RMNNsw95as= -github.com/linkerd/linkerd2-proxy-api v0.5.0 h1:t4pXu3ciqHcRymDyZ64fuIhi3CS0bpSDTOhPLO+DlYw= -github.com/linkerd/linkerd2-proxy-api v0.5.0/go.mod h1:9qMvq1ULDlTwNN5ebG873jJVkFW5ROzs5+/7q7qvoOI= -github.com/linkerd/linkerd2-proxy-init v1.5.3 h1:Fc5CKnWXB1Xxh+a44ENqABzbI6l5FdxZiqphjimbPT4= -github.com/linkerd/linkerd2-proxy-init v1.5.3/go.mod h1:IpDk113zEAQY7p8OuTP+yqyZ4APlkpJkJrSRLR0MWpw= -github.com/linuxkit/virtsock v0.0.0-20201010232012-f8cee7dfc7a3/go.mod h1:3r6x7q95whyfWQpmGZTu3gk3v2YkMi05HEzl7Tf7YEo= -github.com/lithammer/dedent v1.1.0/go.mod h1:jrXYCQtgg0nJiN+StA2KgR7w6CiQNv9Fd/Z9BP0jIOc= -github.com/lyft/protoc-gen-star v0.5.3/go.mod h1:V0xaHgaf5oCCqmcxYcWiDfTiKsZsRc87/1qhoTACD8w= -github.com/magiconair/properties v1.8.0/go.mod h1:PppfXfuXeibc/6YijjN8zIbojt8czPbwD3XqdrwzmxQ= -github.com/magiconair/properties v1.8.1/go.mod h1:PppfXfuXeibc/6YijjN8zIbojt8czPbwD3XqdrwzmxQ= -github.com/magiconair/properties v1.8.5/go.mod h1:y3VJvCyxH9uVvJTWEGAELF3aiYNyPKd5NZ3oSwXrF60= -github.com/mailru/easyjson v0.0.0-20160728113105-d5b7844b561a/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc= -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/go.mod h1:xzfreul335JAWq5oZzymOObrkdz5UnU4kGfJJLY9Nlc= -github.com/mailru/easyjson v0.7.7 h1:UGYAvKxe3sBsEDzO8ZeWOSlIQfWFlxbzLZe7hwFURr0= -github.com/mailru/easyjson v0.7.7/go.mod h1:xzfreul335JAWq5oZzymOObrkdz5UnU4kGfJJLY9Nlc= -github.com/markbates/errx v1.1.0/go.mod h1:PLa46Oex9KNbVDZhKel8v1OT7hD5JZ2eI7AHhA0wswc= -github.com/markbates/oncer v1.0.0/go.mod h1:Z59JA581E9GP6w96jai+TGqafHPW+cPfRxz2aSZ0mcI= -github.com/markbates/safe v1.0.1/go.mod h1:nAqgmRi7cY2nqMc92/bSEeQA+R4OheNU2T1kNSCBdG0= -github.com/marstr/guid v1.1.0/go.mod h1:74gB1z2wpxxInTG6yaqA7KrtM0NZ+RbrcqDvYHefzho= -github.com/mattn/go-colorable v0.0.9/go.mod h1:9vuHe8Xs5qXnSaW/c/ABM9alt+Vo+STaOChaDxuIBZU= -github.com/mattn/go-colorable v0.1.2/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE= -github.com/mattn/go-colorable v0.1.4/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE= -github.com/mattn/go-colorable v0.1.6/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc= -github.com/mattn/go-colorable v0.1.8/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc= -github.com/mattn/go-colorable v0.1.9/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc= -github.com/mattn/go-colorable v0.1.12 h1:jF+Du6AlPIjs2BiUiQlKOX0rt3SujHxPnksPKZbaA40= -github.com/mattn/go-colorable v0.1.12/go.mod h1:u5H1YNBxpqRaxsYJYSkiCWKzEfiAb1Gb520KVy5xxl4= -github.com/mattn/go-isatty v0.0.3/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4= -github.com/mattn/go-isatty v0.0.4/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4= -github.com/mattn/go-isatty v0.0.8/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s= -github.com/mattn/go-isatty v0.0.10/go.mod h1:qgIWMr58cqv1PHHyhnkY9lrL7etaEgOFcMEpPG5Rm84= -github.com/mattn/go-isatty v0.0.11/go.mod h1:PhnuNfih5lzO57/f3n+odYbM4JtupLOxQOAqxQCu2WE= -github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU= -github.com/mattn/go-isatty v0.0.14 h1:yVuAays6BHfxijgZPzw+3Zlu5yQgKGP2/hcQbHb7S9Y= -github.com/mattn/go-isatty v0.0.14/go.mod h1:7GGIvUiUoEMVVmxf/4nioHXj79iQHKdU27kJ6hsGG94= -github.com/mattn/go-oci8 v0.1.1/go.mod h1:wjDx6Xm9q7dFtHJvIlrI99JytznLw5wQ4R+9mNXJwGI= -github.com/mattn/go-runewidth v0.0.2/go.mod h1:LwmH8dsx7+W8Uxz3IHJYH5QSwggIsqBzpuz5H//U1FU= -github.com/mattn/go-runewidth v0.0.7/go.mod h1:H031xJmbD/WCDINGzjvQ9THkh0rPKHF+m2gUSrubnMI= -github.com/mattn/go-runewidth v0.0.9/go.mod h1:H031xJmbD/WCDINGzjvQ9THkh0rPKHF+m2gUSrubnMI= -github.com/mattn/go-shellwords v1.0.3/go.mod h1:3xCvwCdWdlDJUrvuMn7Wuy9eWs4pE8vqg+NOMyg4B2o= -github.com/mattn/go-shellwords v1.0.6/go.mod h1:3xCvwCdWdlDJUrvuMn7Wuy9eWs4pE8vqg+NOMyg4B2o= -github.com/mattn/go-shellwords v1.0.12/go.mod h1:EZzvwXDESEeg03EKmM+RmDnNOPKG4lLtQsUlTZDWQ8Y= -github.com/mattn/go-sqlite3 v1.14.6/go.mod h1:NyWgC/yNuGj7Q9rpYnZvas74GogHl5/Z4A/KQRfk6bU= -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/maxbrunsfeld/counterfeiter/v6 v6.2.2/go.mod h1:eD9eIE7cdwcMi9rYluz88Jz2VyhSmden33/aXg4oVIY= -github.com/miekg/dns v1.0.14/go.mod h1:W1PPwlIAgtquWBMBEV9nkV9Cazfe8ScdGz/Lj7v3Nrg= -github.com/miekg/dns v1.1.26/go.mod h1:bPDLeHnStXmXAq1m/Ch/hvfNHr14JKNPMBo3VZKjuso= -github.com/miekg/dns v1.1.41/go.mod h1:p6aan82bvRIyn+zDIv9xYNUpwa73JcSh9BKwknJysuI= -github.com/miekg/pkcs11 v1.0.3/go.mod h1:XsNlhZGX73bx86s2hdc/FuaLm2CPZJemRLMA+WTFxgs= -github.com/mistifyio/go-zfs v2.1.2-0.20190413222219-f784269be439+incompatible/go.mod h1:8AuVvqP/mXw1px98n46wfvcGfQ4ci2FwoAjKYxuo3Z4= -github.com/mitchellh/cli v1.0.0/go.mod h1:hNIlj7HEI86fIcpObd7a0FcrxTWetlwJDGcceTlRvqc= -github.com/mitchellh/cli v1.1.0/go.mod h1:xcISNoH86gajksDmfB23e/pu+B+GeFRMYmoHXxx3xhI= -github.com/mitchellh/cli v1.1.2/go.mod h1:6iaV0fGdElS6dPBx0EApTxHrcWvmJphyh2n8YBLPPZ4= -github.com/mitchellh/copystructure v1.0.0/go.mod h1:SNtv71yrdKgLRyLFxmLdkAbkKEFWgYaq1OVrnRcwhnw= -github.com/mitchellh/copystructure v1.2.0 h1:vpKXTN4ewci03Vljg/q9QvCGUDttBOGBIa15WveJJGw= -github.com/mitchellh/copystructure v1.2.0/go.mod h1:qLl+cE2AmVv+CoeAwDPye/v+N2HKCj9FbZEVFJRxO9s= -github.com/mitchellh/go-homedir v1.0.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0= -github.com/mitchellh/go-homedir v1.1.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/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/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= -github.com/mitchellh/mapstructure v1.4.3/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= -github.com/mitchellh/osext v0.0.0-20151018003038-5e2d6d41470f/go.mod h1:OkQIRizQZAeMln+1tSwduZz7+Af5oFlKirV/MSYes2A= -github.com/mitchellh/reflectwalk v1.0.0/go.mod h1:mSTlrgnPZtwu0c4WaC2kGObEpuNDbx0jmZXqmk4esnw= -github.com/mitchellh/reflectwalk v1.0.2 h1:G2LzWKi524PWgd3mLHV8Y5k7s6XUvT0Gef6zxSIeXaQ= -github.com/mitchellh/reflectwalk v1.0.2/go.mod h1:mSTlrgnPZtwu0c4WaC2kGObEpuNDbx0jmZXqmk4esnw= -github.com/moby/locker v1.0.1/go.mod h1:S7SDdo5zpBK84bzzVlKr2V0hz+7x9hWbYC/kq7oQppc= -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/sys/mountinfo v0.4.0/go.mod h1:rEr8tzG/lsIZHBtN/JjGG+LMYx9eXgW2JI+6q0qou+A= -github.com/moby/sys/mountinfo v0.4.1/go.mod h1:rEr8tzG/lsIZHBtN/JjGG+LMYx9eXgW2JI+6q0qou+A= -github.com/moby/sys/mountinfo v0.5.0/go.mod h1:3bMD3Rg+zkqx8MRYPi7Pyb0Ie97QEBmdxbhnCLlSvSU= -github.com/moby/sys/signal v0.6.0/go.mod h1:GQ6ObYZfqacOwTtlXvcmh9A26dVRul/hbOZn88Kg8Tg= -github.com/moby/sys/symlink v0.1.0/go.mod h1:GGDODQmbFOjFsXvfLVn3+ZRxkch54RkSiGqsZeMYowQ= -github.com/moby/sys/symlink v0.2.0/go.mod h1:7uZVF2dqJjG/NsClqul95CqKOBRQyYSNnJ6BMgR/gFs= -github.com/moby/term v0.0.0-20200312100748-672ec06f55cd/go.mod h1:DdlQx2hp0Ss5/fLikoLlEeIYiATotOjgB//nb973jeo= -github.com/moby/term v0.0.0-20201216013528-df9cb8a40635/go.mod h1:FBS0z0QWA44HXygs7VXDUOGoN/1TV3RuWkLO04am3wc= -github.com/moby/term v0.0.0-20210610120745-9d4ed1856297/go.mod h1:vgPCkQMyxTZ7IDy8SXRufE172gr8+K/JE/7hHFxHW3A= -github.com/moby/term v0.0.0-20210619224110-3f7ff695adc6/go.mod h1:E2VnQOmVuvZB6UYnnDB0qG5Nq/1tD9acaOpo6xmt0Kw= -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/go.mod h1:Pm3mSP3c5uWn86xMLZ5Sa7JB9GsEZySvHYXCTK4E9q4= -github.com/morikuni/aec v1.0.0/go.mod h1:BbKIizmSmc5MMPqRYbxO4ZU0S0+P200+tUnFx7PXmsc= -github.com/mrunalp/fileutils v0.5.0/go.mod h1:M1WthSahJixYnrXQl/DFQuteStB1weuxD2QJNHXfbSQ= -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 h1:KUppIJq7/+SVif2QVs3tOP0zanoHgBEVAwHxUSIzRqU= -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/ncw/swift v1.0.47/go.mod h1:23YIA4yWVnGwv2dQlN4bB7egfYX6YLn0Yo/S6zZO/ZM= -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/nxadm/tail v1.4.8/go.mod h1:+ncqLTQzXmGhMZNUePPaPqPvBxHAIsmXswZKocGu+AU= -github.com/oklog/ulid v1.3.1/go.mod h1:CirwcVhetQ6Lv90oh/F+FBtV6XMibvdAFo93nm5qn4U= -github.com/olekukonko/tablewriter v0.0.0-20170122224234-a0225b3f23b5/go.mod h1:vsDQFd/mU46D+Z4whnwzcISnGGzXWMclvtLoiIKAKIo= -github.com/olekukonko/tablewriter v0.0.4/go.mod h1:zq6QwlOf5SlnkVbMSr5EoBv3636FWnp+qbPhuoO21uA= -github.com/olekukonko/tablewriter v0.0.5/go.mod h1:hPp6KlRPjbx+hW8ykQs1w3UBbZlj6HuIJcUGPhkA7kY= -github.com/onsi/ginkgo v0.0.0-20151202141238-7f8ab55aaf3b/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= -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.8.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= -github.com/onsi/ginkgo v1.10.1/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= -github.com/onsi/ginkgo v1.10.3/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= -github.com/onsi/ginkgo v1.11.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= -github.com/onsi/ginkgo v1.12.0/go.mod h1:oUhWkIvk5aDxtKvDDuw8gItl8pKl42LzjC9KZE0HfGg= -github.com/onsi/ginkgo v1.12.1/go.mod h1:zj2OWP4+oCPe1qIXoGWkgMRwljMUYCdkwsT2108oapk= -github.com/onsi/ginkgo v1.13.0/go.mod h1:+REjRxOmWfHCjfv9TTWB1jD1Frx4XydAD3zm1lskyM0= -github.com/onsi/ginkgo v1.14.0/go.mod h1:iSB4RoI2tjJc9BBv4NKIKWKya62Rps+oPG/Lv9klQyY= -github.com/onsi/ginkgo v1.16.4 h1:29JGrr5oVBm5ulCWet69zQkzWipVXIol6ygQUe/EzNc= -github.com/onsi/ginkgo v1.16.4/go.mod h1:dX+/inL/fNMqNlz0e9LfyB9TswhZpCVdJM/Z6Vvnwo0= -github.com/onsi/gomega v0.0.0-20151007035656-2152b45fa28a/go.mod h1:C1qb7wdrVGGVU+Z6iS04AVkA3Q65CEZX59MT0QO5uiA= -github.com/onsi/gomega v0.0.0-20170829124025-dcabb60a477c/go.mod h1:C1qb7wdrVGGVU+Z6iS04AVkA3Q65CEZX59MT0QO5uiA= -github.com/onsi/gomega v1.5.0/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY= -github.com/onsi/gomega v1.7.0/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY= -github.com/onsi/gomega v1.7.1/go.mod h1:XdKZgCCFLUoM/7CFJVPcG8C1xQ1AJ0vpAezJrB7JYyY= -github.com/onsi/gomega v1.9.0/go.mod h1:Ho0h+IUsWyvy1OpqCwxlQ/21gkhVunqlU8fDGcoTdcA= -github.com/onsi/gomega v1.10.1/go.mod h1:iN09h71vgCQne3DLsj+A5owkum+a2tYe+TOCB1ybHNo= -github.com/onsi/gomega v1.10.3/go.mod h1:V9xEwhxec5O8UDM77eCW8vLymOMltsqPVYWrpDsH8xc= -github.com/onsi/gomega v1.14.0/go.mod h1:cIuvLEne0aoVhAgh/O6ac0Op8WWw9H6eYCriF+tEHG0= -github.com/onsi/gomega v1.15.0 h1:WjP/FQ/sk43MRmnEcT+MlDw2TFvkrXlprrPST/IudjU= -github.com/onsi/gomega v1.15.0/go.mod h1:cIuvLEne0aoVhAgh/O6ac0Op8WWw9H6eYCriF+tEHG0= -github.com/opencontainers/go-digest v0.0.0-20170106003457-a6d0ee40d420/go.mod h1:cMLVZDEM3+U2I4VmLI6N8jQYUd2OVphdqWwCJHrFt2s= -github.com/opencontainers/go-digest v0.0.0-20180430190053-c9281466c8b2/go.mod h1:cMLVZDEM3+U2I4VmLI6N8jQYUd2OVphdqWwCJHrFt2s= -github.com/opencontainers/go-digest v1.0.0-rc1/go.mod h1:cMLVZDEM3+U2I4VmLI6N8jQYUd2OVphdqWwCJHrFt2s= -github.com/opencontainers/go-digest v1.0.0-rc1.0.20180430190053-c9281466c8b2/go.mod h1:cMLVZDEM3+U2I4VmLI6N8jQYUd2OVphdqWwCJHrFt2s= -github.com/opencontainers/go-digest v1.0.0/go.mod h1:0JzlMkj0TRzQZfJkVvzbP0HBR3IKzErnv2BNG4W4MAM= -github.com/opencontainers/image-spec v1.0.0/go.mod h1:BtxoFyWECRxE4U/7sNtV5W15zMzWCbyJoFRP3s7yZA0= -github.com/opencontainers/image-spec v1.0.1/go.mod h1:BtxoFyWECRxE4U/7sNtV5W15zMzWCbyJoFRP3s7yZA0= -github.com/opencontainers/image-spec v1.0.2-0.20211117181255-693428a734f5/go.mod h1:BtxoFyWECRxE4U/7sNtV5W15zMzWCbyJoFRP3s7yZA0= -github.com/opencontainers/image-spec v1.0.2/go.mod h1:BtxoFyWECRxE4U/7sNtV5W15zMzWCbyJoFRP3s7yZA0= -github.com/opencontainers/runc v0.0.0-20190115041553-12f6a991201f/go.mod h1:qT5XzbpPznkRYVz/mWwUaVBUv2rmF59PVA73FjuZG0U= -github.com/opencontainers/runc v0.1.1/go.mod h1:qT5XzbpPznkRYVz/mWwUaVBUv2rmF59PVA73FjuZG0U= -github.com/opencontainers/runc v1.0.0-rc8.0.20190926000215-3e425f80a8c9/go.mod h1:qT5XzbpPznkRYVz/mWwUaVBUv2rmF59PVA73FjuZG0U= -github.com/opencontainers/runc v1.0.0-rc9/go.mod h1:qT5XzbpPznkRYVz/mWwUaVBUv2rmF59PVA73FjuZG0U= -github.com/opencontainers/runc v1.0.0-rc93/go.mod h1:3NOsor4w32B2tC0Zbl8Knk4Wg84SM2ImC1fxBuqJ/H0= -github.com/opencontainers/runc v1.0.2/go.mod h1:aTaHFFwQXuA71CiyxOdFFIorAoemI04suvGRQFzWTD0= -github.com/opencontainers/runc v1.1.0/go.mod h1:Tj1hFw6eFWp/o33uxGf5yF2BX5yz2Z6iptFpuvbbKqc= -github.com/opencontainers/runtime-spec v0.1.2-0.20190507144316-5b71a03e2700/go.mod h1:jwyrGlmzljRJv/Fgzds9SsS/C5hL+LL3ko9hs6T5lQ0= -github.com/opencontainers/runtime-spec v1.0.1/go.mod h1:jwyrGlmzljRJv/Fgzds9SsS/C5hL+LL3ko9hs6T5lQ0= -github.com/opencontainers/runtime-spec v1.0.2-0.20190207185410-29686dbc5559/go.mod h1:jwyrGlmzljRJv/Fgzds9SsS/C5hL+LL3ko9hs6T5lQ0= -github.com/opencontainers/runtime-spec v1.0.2/go.mod h1:jwyrGlmzljRJv/Fgzds9SsS/C5hL+LL3ko9hs6T5lQ0= -github.com/opencontainers/runtime-spec v1.0.3-0.20200929063507-e6143ca7d51d/go.mod h1:jwyrGlmzljRJv/Fgzds9SsS/C5hL+LL3ko9hs6T5lQ0= -github.com/opencontainers/runtime-spec v1.0.3-0.20210326190908-1c3f411f0417/go.mod h1:jwyrGlmzljRJv/Fgzds9SsS/C5hL+LL3ko9hs6T5lQ0= -github.com/opencontainers/runtime-tools v0.0.0-20181011054405-1d69bd0f9c39/go.mod h1:r3f7wjNzSs2extwzU3Y+6pKfobzPh+kKFJ3ofN+3nfs= -github.com/opencontainers/selinux v1.6.0/go.mod h1:VVGKuOLlE7v4PJyT6h7mNWvq1rzqiriPsEqVhc+svHE= -github.com/opencontainers/selinux v1.8.0/go.mod h1:RScLhm78qiWa2gbVCcGkC7tCGdgk3ogry1nUQF8Evvo= -github.com/opencontainers/selinux v1.8.2/go.mod h1:MUIHuUEvKB1wtJjQdOyYRgOnLD2xAPP8dBsCoU0KuF8= -github.com/opencontainers/selinux v1.10.0/go.mod h1:2i0OySw99QjzBBQByd1Gr9gSjvuho1lHsJxIJ3gGbJI= -github.com/opentracing/opentracing-go v1.1.0/go.mod h1:UkNAQd3GIcIGf0SeVgPpRdFStlNbqXla1AfSYxPUl2o= -github.com/pascaldekloe/goe v0.0.0-20180627143212-57f6aae5913c/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144TG7ZOy1lc= -github.com/pascaldekloe/goe v0.1.0/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144TG7ZOy1lc= -github.com/pelletier/go-toml v1.2.0/go.mod h1:5z9KED0ma1S8pY6P1sdut58dfprrGBbd/94hg7ilaic= -github.com/pelletier/go-toml v1.8.1/go.mod h1:T2/BmBdy8dvIRq1a/8aqjN41wvWlN4lrapLU/GW4pbc= -github.com/pelletier/go-toml v1.9.3/go.mod h1:u1nR/EPcESfeI/szUZKdtJ0xRNbUoANCkoOuaOx1Y+c= -github.com/pelletier/go-toml v1.9.4/go.mod h1:u1nR/EPcESfeI/szUZKdtJ0xRNbUoANCkoOuaOx1Y+c= -github.com/peterbourgon/diskv v2.0.1+incompatible/go.mod h1:uqqh8zWWbv1HBMNONnaR/tNboyR3/BZd58JJSHlUSCU= -github.com/phayes/freeport v0.0.0-20180830031419-95f893ade6f2/go.mod h1:iIss55rKnNBTvrwdmkUpLnDpZoAHvWaiq5+iMmen4AE= -github.com/pkg/browser v0.0.0-20201112035734-206646e67786 h1:4Gk0Dsp90g2YwfsxDOjvkEIgKGh+2R9FlvormRycveA= -github.com/pkg/browser v0.0.0-20201112035734-206646e67786/go.mod h1:N6UoU20jOqggOuDwUaBQpluzLNDqif3kq9z2wpdYEfQ= -github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= -github.com/pkg/errors v0.8.1-0.20171018195549-f15c970de5b7/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/posener/complete v1.2.3/go.mod h1:WZIdtGGp+qx0sLrYKtIRAruyNpv6hFCicSgv7Sy7s/s= -github.com/pquerna/cachecontrol v0.0.0-20171018203845-0dec1b30a021/go.mod h1:prYjPmNq4d1NPVmpShWobRqXY3q7Vp+80DqgxxUrUIA= -github.com/prometheus/client_golang v0.0.0-20180209125602-c332b6f63c06/go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXPKyh/dDVn+NZz0KFw= -github.com/prometheus/client_golang v0.9.1/go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXPKyh/dDVn+NZz0KFw= -github.com/prometheus/client_golang v0.9.3/go.mod h1:/TN21ttK/J9q6uSwhBd54HahCDft0ttaMvbicHlPoso= -github.com/prometheus/client_golang v1.0.0/go.mod h1:db9x61etRT2tGnBNRi70OPL5FsnadC4Ky3P0J6CfImo= -github.com/prometheus/client_golang v1.1.0/go.mod h1:I1FGZT9+L76gKKOs5djB6ezCbFQP1xR9D75/vuwEF3g= -github.com/prometheus/client_golang v1.4.0/go.mod h1:e9GMxYsXl05ICDXkRhurwBS4Q3OK1iX/F2sw+iXX5zU= -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-20171117100541-99fa1f4be8e5/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo= -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_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.0.0-20180110214958-89604d197083/go.mod h1:daVV7qP5qjZbuso7PdcryaAu0sAZbrN9i7WWcTMWvro= -github.com/prometheus/common v0.0.0-20181113130724-41aa239b4cce/go.mod h1:daVV7qP5qjZbuso7PdcryaAu0sAZbrN9i7WWcTMWvro= -github.com/prometheus/common v0.4.0/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4= -github.com/prometheus/common v0.4.1/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4= -github.com/prometheus/common v0.6.0/go.mod h1:eBmuwkDJBwy6iBfxCBob6t6dR6ENT/y+J+Zk0j9GMYc= -github.com/prometheus/common v0.9.1/go.mod h1:yhUN8i9wzaXS3w1O07YhxHEBxD+W35wd8bs7vj7HSQ4= -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.28.0/go.mod h1:vu+V0TpY+O6vW9J44gczi3Ap/oXXR10b+M/gUGO4Hls= -github.com/prometheus/common v0.30.0/go.mod h1:vu+V0TpY+O6vW9J44gczi3Ap/oXXR10b+M/gUGO4Hls= -github.com/prometheus/common v0.32.1/go.mod h1:vu+V0TpY+O6vW9J44gczi3Ap/oXXR10b+M/gUGO4Hls= -github.com/prometheus/common v0.34.0 h1:RBmGO9d/FVjqHT0yUGQwBJhkwKV+wPCn7KGpvfab0uE= -github.com/prometheus/common v0.34.0/go.mod h1:gB3sOl7P0TvJabZpLY5uQMpUqRCPPCyRLCZYc7JZTNE= -github.com/prometheus/procfs v0.0.0-20180125133057-cb4147076ac7/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk= -github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk= -github.com/prometheus/procfs v0.0.0-20190507164030-5867b95ac084/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA= -github.com/prometheus/procfs v0.0.0-20190522114515-bc1a522cf7b1/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA= -github.com/prometheus/procfs v0.0.2/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA= -github.com/prometheus/procfs v0.0.3/go.mod h1:4A/X28fw3Fc593LaREMrKMqOKvUAntwMDaekg4FpcdQ= -github.com/prometheus/procfs v0.0.5/go.mod h1:4A/X28fw3Fc593LaREMrKMqOKvUAntwMDaekg4FpcdQ= -github.com/prometheus/procfs v0.0.8/go.mod h1:7Qr8sr6344vo1JqZ6HhLceV9o3AJ1Ff+GxbHq6oeK9A= -github.com/prometheus/procfs v0.1.3/go.mod h1:lV6e/gmhEcM9IjHGsFOCxxuZ+z1YqCvr4OA4YeYWdaU= -github.com/prometheus/procfs v0.2.0/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/prometheus/tsdb v0.7.1/go.mod h1:qhTCs0VvXwvX/y3TZrWD7rabWM+ijKTux40TwIPHuXU= -github.com/rogpeppe/fastuuid v0.0.0-20150106093220-6724a57986af/go.mod h1:XWv6SoW27p1b0cqNHllgS5HIMJraePCO15w5zCzIWYg= -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/rogpeppe/go-internal v1.5.2/go.mod h1:xXDCJY+GAPziupqXw64V24skbSoqbTEfhy4qGm1nDQc= -github.com/rubenv/sql-migrate v0.0.0-20210614095031-55d5740dbbcc/go.mod h1:HFLT6i9iR4QBOF5rdCyjddC9t59ArqWJV2xx+jwcCMo= -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/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/safchain/ethtool v0.0.0-20190326074333-42ed695e3de8/go.mod h1:Z0q5wiBQGYcxhMZ6gUqHn6pYNLypFAvaL3UvgZLR0U4= -github.com/safchain/ethtool v0.0.0-20210803160452-9aa261dae9b1/go.mod h1:Z0q5wiBQGYcxhMZ6gUqHn6pYNLypFAvaL3UvgZLR0U4= -github.com/sagikazarmark/crypt v0.3.0/go.mod h1:uD/D+6UF4SrIR1uGEv7bBNkNqLGqUr43MRiaGWX1Nig= -github.com/satori/go.uuid v1.2.0/go.mod h1:dA0hQrYB0VpLJoorglMZABFdXlWrHn1NEOzdhQKdks0= -github.com/sclevine/agouti v3.0.0+incompatible/go.mod h1:b4WX9W9L1sfQKXeJf1mUTLZKJ48R1S7H23Ji7oFO5Bw= -github.com/sclevine/spec v1.2.0/go.mod h1:W4J29eT/Kzv7/b9IWLB055Z+qvVC9vt0Arko24q7p+U= -github.com/sean-/seed v0.0.0-20170313163322-e2103e2c3529/go.mod h1:DxrIzT+xaE7yg65j358z/aeFdxmN0P9QXhEzd20vsDc= -github.com/seccomp/libseccomp-golang v0.9.1/go.mod h1:GbW5+tmTXfcxTToHLXlScSlAvWlF4P2Ca7zGrPiEpWo= -github.com/seccomp/libseccomp-golang v0.9.2-0.20210429002308-3879420cc921/go.mod h1:JA8cRccbGaA1s33RQf7Y1+q9gHmZX1yB/z9WDN1C6fg= -github.com/sergi/go-diff v1.1.0/go.mod h1:STckp+ISIX8hZLjrqAeVduY0gWCT9IjLuqbuNXdaHfM= -github.com/sergi/go-diff v1.2.0 h1:XU+rvMAioB0UC3q1MFrIQy4Vo5/4VsRDQQXHsEya6xQ= -github.com/servicemeshinterface/smi-sdk-go v0.5.0 h1:9cZdhvGbGDlmnp9qqmcQL+RL6KZ3IzHfDLoA5Axg8n0= -github.com/servicemeshinterface/smi-sdk-go v0.5.0/go.mod h1:nm1Slf3pfaZPP3g2tE/K5wDmQ1uWVSP0p3uu5rQAQLc= -github.com/shopspring/decimal v1.2.0/go.mod h1:DKyhrW/HYNuLGql+MJL6WCR6knT2jwCFRcu2hWCYk4o= -github.com/shopspring/decimal v1.3.1 h1:2Usl1nmF/WZucqkFZhnfFYxxxu8LG21F6nPQBE5gKV8= -github.com/shopspring/decimal v1.3.1/go.mod h1:DKyhrW/HYNuLGql+MJL6WCR6knT2jwCFRcu2hWCYk4o= -github.com/shurcooL/sanitized_anchor_name v1.0.0/go.mod h1:1NzhyTcUVG4SuEtjjoZeVRXNmyL/1OwPU0+IJeTBvfc= -github.com/sirupsen/logrus v1.0.4-0.20170822132746-89742aefa4b2/go.mod h1:pMByvHTf9Beacp5x1UXfOR9xyW/9antXMhjMPG0dEzc= -github.com/sirupsen/logrus v1.0.6/go.mod h1:pMByvHTf9Beacp5x1UXfOR9xyW/9antXMhjMPG0dEzc= -github.com/sirupsen/logrus v1.2.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo= -github.com/sirupsen/logrus v1.4.1/go.mod h1:ni0Sbl8bgC9z8RoU9G6nDWqqs/fq4eDPysMBDgk/93Q= -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/sirupsen/logrus v1.7.0/go.mod h1:yWOB1SBYBC5VeMP7gHvWumXLIWorT60ONWic61uBYv0= -github.com/sirupsen/logrus v1.8.1 h1:dJKuHgqk1NNQlqoA6BTlM1Wf9DOH3NBjQyu0h9+AZZE= -github.com/sirupsen/logrus v1.8.1/go.mod h1:yWOB1SBYBC5VeMP7gHvWumXLIWorT60ONWic61uBYv0= -github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d/go.mod h1:OnSkiWE9lh6wB0YB77sQom3nweQdgAjqCqsofrRNTgc= -github.com/smartystreets/goconvey v0.0.0-20190330032615-68dc04aab96a/go.mod h1:syvi0/a8iFYH4r/RixwvyeAJjdLS9QV7WQ/tjFTllLA= -github.com/smartystreets/goconvey v1.6.4/go.mod h1:syvi0/a8iFYH4r/RixwvyeAJjdLS9QV7WQ/tjFTllLA= -github.com/soheilhy/cmux v0.1.4/go.mod h1:IM3LyeVVIOuxMH7sFAkER9+bJ4dT7Ms6E4xg4kGIyLM= -github.com/soheilhy/cmux v0.1.5/go.mod h1:T7TcVDs9LWfQgPlPsdngu6I6QIoyIFZDDC6sNE1GqG0= -github.com/spaolacci/murmur3 v0.0.0-20180118202830-f09979ecbc72/go.mod h1:JwIasOWyU6f++ZhiEuf87xNszmSA2myDM2Kzu9HwQUA= -github.com/spf13/afero v1.1.2/go.mod h1:j4pytiNVoe2o6bmDsKpLACNPDBIoEAkihy7loJ1B0CQ= -github.com/spf13/afero v1.2.2/go.mod h1:9ZxEEn6pIJ8Rxe320qSDBk6AsU0r9pR7Q4OcevTdifk= -github.com/spf13/afero v1.3.3/go.mod h1:5KUK8ByomD5Ti5Artl0RtHeI5pTF7MIDuXL3yY520V4= -github.com/spf13/afero v1.6.0/go.mod h1:Ai8FlHk4v/PARR026UzYexafAt9roJ7LcLMAmO6Z93I= -github.com/spf13/cast v1.3.0/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE= -github.com/spf13/cast v1.3.1/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE= -github.com/spf13/cast v1.4.1 h1:s0hze+J0196ZfEMTs80N7UlFt0BDuQ7Q+JDnHiMWKdA= -github.com/spf13/cast v1.4.1/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE= -github.com/spf13/cobra v0.0.2-0.20171109065643-2da4a54c5cee/go.mod h1:1l0Ry5zgKvJasoi3XT1TypsSe7PqH0Sj9dhYf7v3XqQ= -github.com/spf13/cobra v0.0.3/go.mod h1:1l0Ry5zgKvJasoi3XT1TypsSe7PqH0Sj9dhYf7v3XqQ= -github.com/spf13/cobra v0.0.6/go.mod h1:/6GTrnGXV9HjY+aR4k0oJ5tcvakLuG6EuKReYlHNrgE= -github.com/spf13/cobra v1.0.0/go.mod h1:/6GTrnGXV9HjY+aR4k0oJ5tcvakLuG6EuKReYlHNrgE= -github.com/spf13/cobra v1.1.1/go.mod h1:WnodtKOvamDL/PwE2M4iKs8aMDBZ5Q5klgD3qfVJQMI= -github.com/spf13/cobra v1.1.3/go.mod h1:pGADOWyqRD/YMrPZigI/zbliZ2wVD/23d+is3pSWzOo= -github.com/spf13/cobra v1.2.1/go.mod h1:ExllRjgxM/piMAM+3tAZvg8fsklGAf3tPfi+i8t68Nk= -github.com/spf13/cobra v1.3.0/go.mod h1:BrRVncBjOJa/eUcVVm9CE+oC6as8k+VYr4NY7WCi9V4= -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.0.0/go.mod h1:cQK4TGJAtQXfYWX+Ddv3mKDzgVb68N+wFjFa4jdeBTo= -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.1-0.20171106142849-4c012f6dcd95/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4= -github.com/spf13/pflag v1.0.1/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4= -github.com/spf13/pflag v1.0.3/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4= -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.4.0/go.mod h1:PTJ7Z/lr49W6bUbkmS1V3by4uWynFiR9p7+dSq/yZzE= -github.com/spf13/viper v1.7.0/go.mod h1:8WkrPz2fc9jxqZNCJI/76HCieCp4Q8HaLFoCha5qpdg= -github.com/spf13/viper v1.8.1/go.mod h1:o0Pch8wJ9BVSWGQMbra6iw0oQ5oktSIBaujf1rJH9Ns= -github.com/spf13/viper v1.10.0/go.mod h1:SoyBPwAtKDzypXNDFKN5kzH7ppppbGZtls1UpIy5AsM= -github.com/stefanberger/go-pkcs11uri v0.0.0-20201008174630-78d3cae3a980/go.mod h1:AO3tvPzVZ/ayst6UlUKUv6rcPQInYe3IknH3jYhAKu8= -github.com/stoewer/go-strcase v1.2.0/go.mod h1:IBiWB2sKIp3wVVQ3Y035++gc+knqhUQag1KpM8ahLw8= -github.com/stretchr/objx v0.0.0-20180129172003-8a3f7159479f/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= -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/testify v0.0.0-20180303142811-b89eecf5ca5d/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= -github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= -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 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY= -github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= -github.com/subosito/gotenv v1.2.0/go.mod h1:N0PQaV/YGNqwC0u51sEeR/aUtSLEXKX9iv69rRypqCw= -github.com/syndtr/gocapability v0.0.0-20170704070218-db04d3cc01c8/go.mod h1:hkRG7XYTFWNJGYcbNJQlaLq0fg1yr4J4t/NcTQtrfww= -github.com/syndtr/gocapability v0.0.0-20180916011248-d98352740cb2/go.mod h1:hkRG7XYTFWNJGYcbNJQlaLq0fg1yr4J4t/NcTQtrfww= -github.com/syndtr/gocapability v0.0.0-20200815063812-42c35b437635/go.mod h1:hkRG7XYTFWNJGYcbNJQlaLq0fg1yr4J4t/NcTQtrfww= -github.com/tchap/go-patricia v2.2.6+incompatible/go.mod h1:bmLyhP68RS6kStMGxByiQ23RP/odRBOTVjwp2cDyi6I= -github.com/tmc/grpc-websocket-proxy v0.0.0-20170815181823-89b8d40f7ca8/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U= -github.com/tmc/grpc-websocket-proxy v0.0.0-20190109142713-0ad062ec5ee5/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U= -github.com/tmc/grpc-websocket-proxy v0.0.0-20201229170055-e5319fda7802/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U= -github.com/tv42/httpunix v0.0.0-20150427012821-b75d8614f926/go.mod h1:9ESjWnEqriFuLhtthL60Sar/7RFoluCcXsuvEwTV5KM= -github.com/tv42/httpunix v0.0.0-20191220191345-2ba4b9c3382c/go.mod h1:hzIxponao9Kjc7aWznkXaL4U4TWaDSs8zcsY4Ka08nM= -github.com/ugorji/go v1.1.4/go.mod h1:uQMGLiO92mf5W77hV/PUCpI3pbzQx3CRekS0kk+RGrc= -github.com/urfave/cli v0.0.0-20171014202726-7bc6a0acffa5/go.mod h1:70zkFmudgCuE/ngEzBv17Jvp/497gISqfk5gWijbERA= -github.com/urfave/cli v1.20.0/go.mod h1:70zkFmudgCuE/ngEzBv17Jvp/497gISqfk5gWijbERA= -github.com/urfave/cli v1.22.1/go.mod h1:Gos4lmkARVdJ6EkW0WaNv/tZAAMe9V7XWyB60NtXRu0= -github.com/urfave/cli v1.22.2/go.mod h1:Gos4lmkARVdJ6EkW0WaNv/tZAAMe9V7XWyB60NtXRu0= -github.com/vishvananda/netlink v0.0.0-20181108222139-023a6dafdcdf/go.mod h1:+SR5DhBJrl6ZM7CoCKvpw5BKroDKQ+PJqOg65H/2ktk= -github.com/vishvananda/netlink v1.1.0/go.mod h1:cTgwzPIzzgDAYoQrMm0EdrjRUBkTqKYppBueQtXaqoE= -github.com/vishvananda/netlink v1.1.1-0.20201029203352-d40f9887b852/go.mod h1:twkDnbuQxJYemMlGd4JFIcuhgX83tXhKS2B/PRMpOho= -github.com/vishvananda/netlink v1.1.1-0.20210330154013-f5de75959ad5/go.mod h1:twkDnbuQxJYemMlGd4JFIcuhgX83tXhKS2B/PRMpOho= -github.com/vishvananda/netns v0.0.0-20180720170159-13995c7128cc/go.mod h1:ZjcWmFBXmLKZu9Nxj3WKYEafiSqer2rnvPr0en9UNpI= -github.com/vishvananda/netns v0.0.0-20191106174202-0a2b9b5464df/go.mod h1:JP3t17pCcGlemwknint6hfoeCVQrEMVwxRLRjXpq+BU= -github.com/vishvananda/netns v0.0.0-20200728191858-db3c7e526aae/go.mod h1:DD4vA1DwXk04H54A1oHXtwZmA0grkVMdPxx/VGLCah0= -github.com/vishvananda/netns v0.0.0-20210104183010-2eb08e3e575f/go.mod h1:DD4vA1DwXk04H54A1oHXtwZmA0grkVMdPxx/VGLCah0= -github.com/willf/bitset v1.1.11-0.20200630133818-d5bec3311243/go.mod h1:RjeCKbqT1RxIR/KWY6phxZiaY1IyutSBfGjNPySAYV4= -github.com/willf/bitset v1.1.11/go.mod h1:83CECat5yLh5zVOf4P1ErAgKA5UDvKtgyUABdr3+MjI= -github.com/xeipuuv/gojsonpointer v0.0.0-20180127040702-4e3ac2762d5f/go.mod h1:N2zxlSyiKSe5eX1tZViRH5QA0qijqEDrYZiPEAiq3wU= -github.com/xeipuuv/gojsonpointer v0.0.0-20190905194746-02993c407bfb h1:zGWFAtiMcyryUHoUjUJX0/lt1H2+i2Ka2n+D3DImSNo= -github.com/xeipuuv/gojsonpointer v0.0.0-20190905194746-02993c407bfb/go.mod h1:N2zxlSyiKSe5eX1tZViRH5QA0qijqEDrYZiPEAiq3wU= -github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415 h1:EzJWgHovont7NscjpAxXsDA8S8BMYve8Y5+7cuRE7R0= -github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415/go.mod h1:GwrjFmJcFw6At/Gs6z4yjiIwzuJ1/+UwLxMQDVQXShQ= -github.com/xeipuuv/gojsonschema v0.0.0-20180618132009-1d523034197f/go.mod h1:5yf86TLmAcydyeJq5YvxkGPE2fm/u4myDekKRoLuqhs= -github.com/xeipuuv/gojsonschema v1.2.0 h1:LhYJRs+L4fBtjZUfuSZIKGeVu0QRy8e5Xi7D17UxZ74= -github.com/xeipuuv/gojsonschema v1.2.0/go.mod h1:anYRn/JVcOK2ZgGU+IjEV4nwlhoK5sQluxsYJ78Id3Y= -github.com/xiang90/probing v0.0.0-20190116061207-43a291ad63a2/go.mod h1:UETIi67q53MR2AWcXfiuqkDkRtnGDLqkBTpCHuJHxtU= -github.com/xlab/treeprint v0.0.0-20181112141820-a009c3971eca/go.mod h1:ce1O1j6UtZfjr22oyGxGLbauSBp2YVXpARAosm7dHBg= -github.com/xordataexchange/crypt v0.0.3-0.20170626215501-b2862e3d0a77/go.mod h1:aYKd//L2LvnjZzWKhF00oedf4jCCReLcmhLdhm1A27Q= -github.com/yuin/goldmark v1.1.25/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= -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.0/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= -github.com/yuin/goldmark v1.4.1/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= -github.com/yvasiyarov/go-metrics v0.0.0-20140926110328-57bccd1ccd43/go.mod h1:aX5oPXxHm3bOH+xeAttToC8pqch2ScQN/JoXYupl6xs= -github.com/yvasiyarov/gorelic v0.0.0-20141212073537-a9bba5b9ab50/go.mod h1:NUSPSUX/bi6SeDMUh6brw0nXpxHnc96TguQh0+r/ssA= -github.com/yvasiyarov/newrelic_platform_go v0.0.0-20140908184405-b21fdbd4370f/go.mod h1:GlGEuHIJweS1mbCqG+7vt2nvWLzLLnRHbXz5JKd/Qbg= -github.com/ziutek/mymysql v1.5.4/go.mod h1:LMSpPZ6DbqWFxNCHW77HeMg9I646SAhApZ/wKdgO/C0= -go.etcd.io/bbolt v1.3.2/go.mod h1:IbVyRI1SCnLcuJnV2u8VeU0CEYM7e686BmAb1XKL+uU= -go.etcd.io/bbolt v1.3.3/go.mod h1:IbVyRI1SCnLcuJnV2u8VeU0CEYM7e686BmAb1XKL+uU= -go.etcd.io/bbolt v1.3.5/go.mod h1:G5EMThwa9y8QZGBClrRx5EY+Yw9kAhnjy3bSjsnlVTQ= -go.etcd.io/bbolt v1.3.6/go.mod h1:qXsaaIqmgQH0T+OPdb99Bf+PKfBBQVAdyD6TY9G8XM4= -go.etcd.io/etcd v0.5.0-alpha.5.0.20200910180754-dd1b699fc489/go.mod h1:yVHk9ub3CSBatqGNg7GRmsnfLWtoW60w4eDYfh7vHDg= -go.etcd.io/etcd/api/v3 v3.5.0/go.mod h1:cbVKeC6lCfl7j/8jBhAK6aIYO9XOjdptoxU/nLQcPvs= -go.etcd.io/etcd/api/v3 v3.5.1/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/pkg/v3 v3.5.1/go.mod h1:IJHfcCEKxYu1Os13ZdwCwIUTUVGYTSAM3YSwc9/Ac1g= -go.etcd.io/etcd/client/v2 v2.305.0/go.mod h1:h9puh54ZTgAKtEbut2oe9P4L/oqKCVB6xsXlzd7alYQ= -go.etcd.io/etcd/client/v2 v2.305.1/go.mod h1:pMEacxZW7o8pg4CrFE7pquyCJJzZvkvdD2RibOCCCGs= -go.etcd.io/etcd/client/v3 v3.5.0/go.mod h1:AIKXXVX/DQXtfTEqBryiLTUXwON+GuvO6Z7lLS/oTh0= -go.etcd.io/etcd/client/v3 v3.5.1/go.mod h1:OnjH4M8OnAotwaB2l9bVgZzRFKru7/ZMoS46OtKyd3Q= -go.etcd.io/etcd/pkg/v3 v3.5.0/go.mod h1:UzJGatBQ1lXChBkQF0AuAtkRQMYnHubxAEYIrC3MSsE= -go.etcd.io/etcd/raft/v3 v3.5.0/go.mod h1:UFOHSIvO/nKwd4lhkwabrTD3cqW5yVyYYf/KlD00Szc= -go.etcd.io/etcd/server/v3 v3.5.0/go.mod h1:3Ah5ruV+M+7RZr0+Y/5mNLwC+eQlni+mQmOVdCRJoS4= -go.mozilla.org/pkcs7 v0.0.0-20200128120323-432b2356ecb1/go.mod h1:SNgMg+EgDFwmvSmLRTNKC5fegJjB7v23qTQ0XLGUNHk= -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 h1:gqCw0LfLxScz8irSi8exQc7fyQ0fKQU/qnC/X8+V/1M= -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/google.golang.org/grpc/otelgrpc v0.20.0/go.mod h1:oVGt1LRbBOBq1A5BQLlUg9UaU/54aiHw8cgjV3aWZ/E= -go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.28.0/go.mod h1:vEhqr0m4eTc+DWxfsXoXue2GBgV2uUwVznkGIHW/e5w= -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 v1.3.0/go.mod h1:PWIKzi6JCp7sM0k9yZ43VX+T345uNbAkDKwHVjb2PTs= -go.opentelemetry.io/otel/exporters/otlp v0.20.0/go.mod h1:YIieizyaN77rtLJra0buKiNBOm9XQfkPEKBeuhoMwAM= -go.opentelemetry.io/otel/exporters/otlp/internal/retry v1.3.0/go.mod h1:VpP4/RMn8bv8gNo9uK7/IMY4mtWLELsS+JIP0inH0h4= -go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.3.0/go.mod h1:hO1KLR7jcKaDDKDkvI9dP/FIhpmna5lkqPUQdEjFAM8= -go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.3.0/go.mod h1:keUU7UfnwWTWpJ+FWnyqmogPa82nuU5VUANFq49hlMY= -go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.3.0/go.mod h1:QNX1aly8ehqqX1LEa6YniTU7VY9I6R3X/oPxhGdTceE= -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 v1.3.0/go.mod h1:rIo4suHNhQwBIPg9axF8V9CA72Wz2mKF1teNrup8yzs= -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/otel/trace v1.3.0/go.mod h1:c/VDhno8888bvQYmbYLqe41/Ldmr/KKunbvWM4/fEjk= -go.opentelemetry.io/proto/otlp v0.7.0/go.mod h1:PqfVotwruBrMGOCsRd/89rSnXhoiJIqeYNgFYFoEGnI= -go.opentelemetry.io/proto/otlp v0.11.0/go.mod h1:QpEjXPrNQzrFDZgoTo49dgHR9RYRSrg3NAKnUGl9YpQ= -go.starlark.net v0.0.0-20200306205701-8dd3e2ee1dd5/go.mod h1:nmDLcffg48OtT/PSW0Hg7FvpRQsQh5OSqIylirxKC7o= -go.uber.org/atomic v1.3.2/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE= -go.uber.org/atomic v1.4.0/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE= -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/goleak v1.1.12/go.mod h1:cwTWslyiVhfpKIDGSZEM2HlOvcqm+tG4zioyIeLoqMQ= -go.uber.org/multierr v1.1.0/go.mod h1:wR5kodmAFQ0UK8QlbwjlSNy0Z68gJhDJUG5sjR94q/0= -go.uber.org/multierr v1.6.0/go.mod h1:cdWPpRnG4AhwMwsgIHip0KRBQjJy5kYEpYjJxpXp9iU= -go.uber.org/zap v1.10.0/go.mod h1:vwi/ZaCAaUcBkycHslxD9B2zi4UTXhF60s6SWpuDF0Q= -go.uber.org/zap v1.17.0/go.mod h1:MXVU+bhUf/A7Xi2HNOnopQOrmycQ5Ih87HtOu4q5SSo= -go.uber.org/zap v1.18.1/go.mod h1:xg/QME4nWcxGxrpdeYfq7UvYrLh66cuVKdrbD1XF/NI= -go.uber.org/zap v1.19.0/go.mod h1:xg/QME4nWcxGxrpdeYfq7UvYrLh66cuVKdrbD1XF/NI= -golang.org/x/crypto v0.0.0-20171113213409-9f005a07e0d3/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= -golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= -golang.org/x/crypto v0.0.0-20181009213950-7c1a557ab941/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= -golang.org/x/crypto v0.0.0-20181029021203-45a5f77698d3/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= -golang.org/x/crypto v0.0.0-20190211182817-74369b46fc67/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= -golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= -golang.org/x/crypto v0.0.0-20190325154230-a5d413f7728c/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-20190611184440-5c40567a22f8/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/crypto v0.0.0-20190701094942-4def268fd1a4/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/crypto v0.0.0-20190820162420-60c769a6c586/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/crypto v0.0.0-20190923035154-9ee001bba392/go.mod h1:/lpIB1dKB+9EgE3H3cr1v9wB50oz8l4C4h62xy7jSTY= -golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/crypto v0.0.0-20191122220453-ac88ee75c92c/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= -golang.org/x/crypto v0.0.0-20200220183623-bac4c82f6975/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= -golang.org/x/crypto v0.0.0-20200414173820-0848c9571904/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= -golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= -golang.org/x/crypto v0.0.0-20200728195943-123391ffb6de/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= -golang.org/x/crypto v0.0.0-20200820211705-5c72a883971a/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= -golang.org/x/crypto v0.0.0-20201002170205-7f63de1d35b0/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= -golang.org/x/crypto v0.0.0-20210220033148-5ea612d1eb83/go.mod h1:jdWPYTVW3xRLrWPugEBEK3UY2ZEsg3UU495nc5E+M+I= -golang.org/x/crypto v0.0.0-20210322153248-0c34fe9e7dc2/go.mod h1:T9bdIzuCu7OtxOm1hfPfRQxPLYneinmdGuTeoZ9dtd4= -golang.org/x/crypto v0.0.0-20210817164053-32db794688a5/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= -golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= -golang.org/x/crypto v0.0.0-20211117183948-ae814b36b871/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= -golang.org/x/crypto v0.0.0-20211215153901-e495a2d5b3d3/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= -golang.org/x/crypto v0.0.0-20220214200702-86341886e292/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= -golang.org/x/crypto v0.0.0-20220427172511-eb4f295cb31f h1:OeJjE6G4dgCY4PIXvIRQbE8+RX+uXZyGhUy/ksMGJoc= -golang.org/x/crypto v0.0.0-20220427172511-eb4f295cb31f/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= -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/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.3.1-0.20200828183125-ce943fd02449/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.5.0/go.mod h1:5OXOZSfqPIIbmVBIIKWRFfZjPR0E5r58TLhUjH0a2Ro= -golang.org/x/mod v0.6.0-dev.0.20220106191415-9b9b3d81d5e3/go.mod h1:3p9vT2HGsQu2K1YbXdKPJLVgG5VJdoTa1poYQBtP1AY= -golang.org/x/net v0.0.0-20170114055629-f2499483f923/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -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-20181011144130-49bb7cea24b1/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-20181220203305-927f97764cc3/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-20190522155817-f3200d17e092/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= -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-20190619014844-b5b0513f8c1b/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-20190813141303-74dc4d7220e7/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-20190923162816-aa69164e4478/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20191004110552-13f9640d40b9/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-20201006153459-a7d1128ccaa0/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= -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-20201202161906-c7110b5ffcbb/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-20201224014010-6772e930b67b/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= -golang.org/x/net v0.0.0-20210119194325-5f4716e94777/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= -golang.org/x/net v0.0.0-20210224082022-3d97a244fca7/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-20210410081132-afb366fc7cd1/go.mod h1:9tjilg8BloeKEkVJvy7fQ90B1CfIiPueXVOjqfkSzI8= -golang.org/x/net v0.0.0-20210428140749-89ef3d95e781/go.mod h1:OJAsFXCWl8Ukc7SiCT/9KSuxbyM7479/AVlXFRxuMCk= -golang.org/x/net v0.0.0-20210503060351-7fd8e65b6420/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= -golang.org/x/net v0.0.0-20210520170846-37e1c6afe023/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= -golang.org/x/net v0.0.0-20210525063256-abc453219eb5/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= -golang.org/x/net v0.0.0-20210805182204-aaa1db679c0d/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= -golang.org/x/net v0.0.0-20210813160813-60bc85c4be6d/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= -golang.org/x/net v0.0.0-20210825183410-e898025ed96a/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-20211209124913-491a49abca63/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= -golang.org/x/net v0.0.0-20211216030914-fe4d6282115f/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= -golang.org/x/net v0.0.0-20220107192237-5cfca573fb4d/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= -golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= -golang.org/x/net v0.0.0-20220225172249-27dd8689420f/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= -golang.org/x/net v0.0.0-20220325170049-de3da57026de/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= -golang.org/x/net v0.0.0-20220412020605-290c469a71a5/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= -golang.org/x/net v0.0.0-20220425223048-2871e0cb64e4 h1:HVyaeDAYux4pnY+D/SiwmLOR36ewZ4iGQIIrtnuCjFA= -golang.org/x/net v0.0.0-20220425223048-2871e0cb64e4/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= -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-20210628180205-a41e5a781914/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= -golang.org/x/oauth2 v0.0.0-20210805134026-6f1e6394065a/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= -golang.org/x/oauth2 v0.0.0-20210819190943-2bc19b11175f/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= -golang.org/x/oauth2 v0.0.0-20211005180243-6b3c2da341f1/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/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= -golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= -golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5 h1:OSnWWcOd/CtWQC2cYSBgbTSJv3ciqd8r54ySIW2y3RE= -golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= -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/sys v0.0.0-20170830134202-bb24a47a89ea/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20180823144017-11551d06cbcc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -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-20181107165924-66b7b1311ac8/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-20190209173611-3b5209105503/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-20190222072716-a9d3bda3a223/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-20190514135907-3a4b5fb9f71f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190522044717-8097e1b27ff5/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190602015325-4c4f7f33c9ed/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190606165138-5da285871e9c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190606203320-7fc4e5ec1444/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190616124812-15dcb6c0061f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190624142023-c5567b49c5d0/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190626221950-04f50cda93cb/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190726091711-fc99dfbffb4e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190801041406-cbf593c0f2f3/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190812073006-9eafafc0a87e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190826190057-c7b8b68b1456/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190904154756-749cb33beabd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190916202348-b4ddaad3f8a3/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190922100055-0a153f010e69/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190924154521-2837fb4f24fe/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-20191008105621-543471e840be/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20191022100944-742c48ecaeb7/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20191026070338-33540a1f6037/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20191115151921-52ab43148777/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-20191210023423-ac6580df4449/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-20200116001909-b77594299b42/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200120151820-655fe14d7479/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200122134326-e047566fdf82/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200124204421-9fbb57f87de9/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-20200217220822-9197077df867/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-20200622214017-ed371f2e16b4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200625212154-ddb9806d33ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200728102440-3e129f6d46b1/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200803210538-64077c9b5642/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200817155316-9781c653f443/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200831180312-196b9ba8737a/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200905004654-be1d3432aa8f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200909081042-eff7692f9009/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200916030750-2334cc1a136f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200922070232-aee5d888a860/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200923182605-d9f96fdee20d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20201112073958-5cba982894dd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20201117170446-d9b008d0a637/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-20201202213521-69691e467435/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210104204734-6f8348627aad/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210112080510-489259a85091/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-20210303074136-134d130e1a04/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-20210324051608-47abb6519492/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-20210423185535-09eb48e85fd7/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210426230700-d19ff857e887/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-20210514084401-e8d321eab015/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-20210603125802-9665404d3644/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-20210630005230-0f9fa26af87c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20210806184541-e5e7981a1069/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20210809222454-d867a43fc93e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20210816183151-1e6c022a8912/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20210823070655-63515b42dcdf/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20210831042530-f4d43177bf5e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20210903071746-97244b99971b/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20210906170528-6f6e22806c34/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20210908233432-aa78b53d3365/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20210927094055-39ccf1dd6fa6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20211007075335-d3039528d8ac/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-20211025201205-69cdffdb9359/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20211116061358-0a5406a5449c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20211124211545-fe61309f8881/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20211205182925-97ca703d548d/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20211210111614-af8b64212486/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-20220128215802-99c3d69c2c27/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-20220227234510-4e6760a101f9/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220328115105-d36c6a25d886/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220412211240-33da011f77ad/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220503163025-988cb79eb6c6 h1:nonptSpoQ4vQjyraW20DXPAglgQfVnM9ZC6MmNLMR60= -golang.org/x/sys v0.0.0-20220503163025-988cb79eb6c6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/term v0.0.0-20201117132131-f5c789dd3221/go.mod h1:Nr5EML6q2oocZ2LXRh80K7BxOlk5/8JxuGnuhpl+muw= -golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= -golang.org/x/term v0.0.0-20210220032956-6a3ed077a48d/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= -golang.org/x/term v0.0.0-20210615171337-6886f2dfbf5b/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= -golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= -golang.org/x/term v0.0.0-20220411215600-e5f449aeb171 h1:EH1Deb8WZJ0xc0WK//leUHXcX9aLE5SymusoTmMZye8= -golang.org/x/term v0.0.0-20220411215600-e5f449aeb171/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= -golang.org/x/text v0.0.0-20160726164857-2910a502d2bf/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= -golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= -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 h1:olpwvP2KacW1ZWvsR7uQhoyTYvKAupfQrRGBFM352Gk= -golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= -golang.org/x/time v0.0.0-20180412165947-fbb02b2291d2/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= -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-20200416051211-89c76fbcd5d1/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= -golang.org/x/time v0.0.0-20200630173020-3af7569d3a1e/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= -golang.org/x/time v0.0.0-20210220033141-f8bda1e9f3ba/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= -golang.org/x/time v0.0.0-20210723032227-1f47c861a9ac/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= -golang.org/x/time v0.0.0-20220210224613-90d013bbcef8/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= -golang.org/x/time v0.0.0-20220411224347-583f2d630306 h1:+gHMid33q6pen7kv9xvT+JRinntgeXO2AeZVd0AWD3w= -golang.org/x/time v0.0.0-20220411224347-583f2d630306/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= -golang.org/x/tools v0.0.0-20180221164845-07fd8470d635/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= -golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= -golang.org/x/tools v0.0.0-20181011042414-1f849cf54d09/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= -golang.org/x/tools v0.0.0-20181030221726-6c7e314b6563/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-20190614205625-5aca471b1d59/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-20190706070813-72ffa07ba3db/go.mod h1:jcCCGcm9btYwXyDqrUWc6MKQKKGJCWEQ3AfLSRIbEuI= -golang.org/x/tools v0.0.0-20190816200558-6889da9d5479/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20190907020128-2ca718005c18/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-20190920225731-5eefd052ad72/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-20200308013534-11ec41452d41/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-20200616133436-c1934b75d054/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-20200916195026-c9a70fc28ce3/go.mod h1:z6u4i615ZeAfBE4XtMziQW1fSVJXACjjbWkB/mvPzlU= -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-20201224043029-2b0845dc783e/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.1/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= -golang.org/x/tools v0.1.2/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= -golang.org/x/tools v0.1.3/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= -golang.org/x/tools v0.1.4/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= -golang.org/x/tools v0.1.5/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= -golang.org/x/tools v0.1.6-0.20210820212750-d4cc65f0b2ff/go.mod h1:YD9qOF0M9xpSpdWTBbzEl5e/RnCefISl8E5Noe10jFM= -golang.org/x/tools v0.1.10-0.20220218145154-897bd77cd717/go.mod h1:Uh6Zz+xoGYZom868N8YTex3t7RhtHDBrE8Gzo9bV56E= -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= -golang.org/x/xerrors v0.0.0-20220411194840-2f41105eb62f/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -gomodules.xyz/jsonpatch/v2 v2.2.0/go.mod h1:WXp+iVDkoLQqPudfQ9GBlwB2eZ5DKOnjQZCYdOS8GPY= -google.golang.org/api v0.0.0-20160322025152-9bf6e6e569ff/go.mod h1:4mhQ8q/RsB7i+udVvVy5NUi08OU8ZlA0gRVgrF7VFY0= -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= -google.golang.org/api v0.47.0/go.mod h1:Wbvgpq1HddcWVtzsVLyfLp8lDg6AA241LmgIL59tHXo= -google.golang.org/api v0.48.0/go.mod h1:71Pr1vy+TAZRPkPs/xlCf5SsU8WjuAWv1Pfjbtukyy4= -google.golang.org/api v0.50.0/go.mod h1:4bNT5pAuq5ji4SRZm+5QIkjny9JAyVD/3gaSihNefaw= -google.golang.org/api v0.51.0/go.mod h1:t4HdrdoNgyN5cbEfm7Lum0lcLDLiise1F8qDKX00sOU= -google.golang.org/api v0.54.0/go.mod h1:7C4bFFOvVDGXjfDTAsgGwDgAxRDeQ4X8NvUedIt6z3k= -google.golang.org/api v0.55.0/go.mod h1:38yMfeP1kfjsl8isn0tliTjIb1rJXcQi4UXlbqivdVE= -google.golang.org/api v0.56.0/go.mod h1:38yMfeP1kfjsl8isn0tliTjIb1rJXcQi4UXlbqivdVE= -google.golang.org/api v0.57.0/go.mod h1:dVPlbZyBo2/OjBpmvNdpn2GRm6rPy75jyU7bmhdrMgI= -google.golang.org/api v0.59.0/go.mod h1:sT2boj7M9YJxZzgeZqXogmhfmRWDtPzT31xkieUbuZU= -google.golang.org/api v0.61.0/go.mod h1:xQRti5UdCmoCEqFxcz93fTl338AVqDgyaDRuOZ3hg9I= -google.golang.org/api v0.62.0/go.mod h1:dKmwPCydfsad4qCH08MSdgWjfHOyfpd4VtDGgRFdavw= -google.golang.org/api v0.63.0/go.mod h1:gs4ij2ffTRXwuzzgJl/56BdwJaA194ijkfn++9tDuPo= -google.golang.org/api v0.67.0/go.mod h1:ShHKP8E60yPsKNw/w8w+VYaj9H6buA5UqDp8dhbQZ6g= -google.golang.org/api v0.70.0/go.mod h1:Bs4ZM2HGifEvXwd50TtW70ovgJffJYw2oRCOFU/SkfA= -google.golang.org/api v0.71.0/go.mod h1:4PyU6e6JogV1f9eA4voyrTY2batOLdgZ5qZ5HOCc4j8= -google.golang.org/api v0.74.0/go.mod h1:ZpfMZOVRMywNyvJFeqL9HRWBgAuRfSjJFpe9QtRRyDs= -google.golang.org/api v0.75.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69ljA= -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/cloud v0.0.0-20151119220103-975617b05ea8/go.mod h1:0H1ncTHf11KCFhTc/+EFRbzSCOZx+VUbRMk55Yv5MYk= -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-20190522204451-c2c4e71fbf69/go.mod h1:z3L6/3dTEVtUr6QSP8miRzeRqwQOioJ9I66odjN4I7s= -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-20200117163144-32f20d992d24/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-20200423170343-7949de9c1215/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-20200527145253-8367513e4ece/go.mod h1:jDfRM7FcilCzHH/e9qn6dsT145K34l5v+OpcnNgKAAA= -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-20201102152239-715cce707fb0/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-20201110150050-8816d57aaa9a/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-20210513213006-bf773b8c8384/go.mod h1:P3QM42oQyzQSnHPnZ/vqoCdDmzH28fzWByN9asMeM8A= -google.golang.org/genproto v0.0.0-20210602131652-f16073e35f0c/go.mod h1:UODoCrxHCcBojKKwX1terBiRUaqAsFqJiF615XL43r0= -google.golang.org/genproto v0.0.0-20210604141403-392c879c8b08/go.mod h1:UODoCrxHCcBojKKwX1terBiRUaqAsFqJiF615XL43r0= -google.golang.org/genproto v0.0.0-20210608205507-b6d2f5bf0d7d/go.mod h1:UODoCrxHCcBojKKwX1terBiRUaqAsFqJiF615XL43r0= -google.golang.org/genproto v0.0.0-20210624195500-8bfb893ecb84/go.mod h1:SzzZ/N+nwJDaO1kznhnlzqS8ocJICar6hYhVyhi++24= -google.golang.org/genproto v0.0.0-20210713002101-d411969a0d9a/go.mod h1:AxrInvYm1dci+enl5hChSFPOmmUF1+uAa/UsgNRWd7k= -google.golang.org/genproto v0.0.0-20210716133855-ce7ef5c701ea/go.mod h1:AxrInvYm1dci+enl5hChSFPOmmUF1+uAa/UsgNRWd7k= -google.golang.org/genproto v0.0.0-20210728212813-7823e685a01f/go.mod h1:ob2IJxKrgPT52GcgX759i1sleT07tiKowYBGbczaW48= -google.golang.org/genproto v0.0.0-20210805201207-89edb61ffb67/go.mod h1:ob2IJxKrgPT52GcgX759i1sleT07tiKowYBGbczaW48= -google.golang.org/genproto v0.0.0-20210813162853-db860fec028c/go.mod h1:cFeNkxwySK631ADgubI+/XFU/xp8FD5KIVV4rj8UC5w= -google.golang.org/genproto v0.0.0-20210821163610-241b8fcbd6c8/go.mod h1:eFjDcFEctNawg4eG61bRv87N7iHBWyVhJu7u1kqDUXY= -google.golang.org/genproto v0.0.0-20210828152312-66f60bf46e71/go.mod h1:eFjDcFEctNawg4eG61bRv87N7iHBWyVhJu7u1kqDUXY= -google.golang.org/genproto v0.0.0-20210831024726-fe130286e0e2/go.mod h1:eFjDcFEctNawg4eG61bRv87N7iHBWyVhJu7u1kqDUXY= -google.golang.org/genproto v0.0.0-20210903162649-d08c68adba83/go.mod h1:eFjDcFEctNawg4eG61bRv87N7iHBWyVhJu7u1kqDUXY= -google.golang.org/genproto v0.0.0-20210909211513-a8c4777a87af/go.mod h1:eFjDcFEctNawg4eG61bRv87N7iHBWyVhJu7u1kqDUXY= -google.golang.org/genproto v0.0.0-20210924002016-3dee208752a0/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= -google.golang.org/genproto v0.0.0-20211008145708-270636b82663/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= -google.golang.org/genproto v0.0.0-20211028162531-8db9c33dc351/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= -google.golang.org/genproto v0.0.0-20211118181313-81c1377c94b1/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= -google.golang.org/genproto v0.0.0-20211129164237-f09f9a12af12/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= -google.golang.org/genproto v0.0.0-20211203200212-54befc351ae9/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= -google.golang.org/genproto v0.0.0-20211206160659-862468c7d6e0/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= -google.golang.org/genproto v0.0.0-20211208223120-3a66f561d7aa/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= -google.golang.org/genproto v0.0.0-20211221195035-429b39de9b1c/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= -google.golang.org/genproto v0.0.0-20220107163113-42d7afdf6368/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= -google.golang.org/genproto v0.0.0-20220126215142-9970aeb2e350/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= -google.golang.org/genproto v0.0.0-20220207164111-0872dc986b00/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= -google.golang.org/genproto v0.0.0-20220218161850-94dd64e39d7c/go.mod h1:kGP+zUP2Ddo0ayMi4YuN7C3WZyJvGLZRh8Z5wnAqvEI= -google.golang.org/genproto v0.0.0-20220222213610-43724f9ea8cf/go.mod h1:kGP+zUP2Ddo0ayMi4YuN7C3WZyJvGLZRh8Z5wnAqvEI= -google.golang.org/genproto v0.0.0-20220304144024-325a89244dc8/go.mod h1:kGP+zUP2Ddo0ayMi4YuN7C3WZyJvGLZRh8Z5wnAqvEI= -google.golang.org/genproto v0.0.0-20220310185008-1973136f34c6/go.mod h1:kGP+zUP2Ddo0ayMi4YuN7C3WZyJvGLZRh8Z5wnAqvEI= -google.golang.org/genproto v0.0.0-20220324131243-acbaeb5b85eb/go.mod h1:hAL49I2IFola2sVEjAn7MEwsja0xp51I0tlGAf9hz4E= -google.golang.org/genproto v0.0.0-20220407144326-9054f6ed7bac/go.mod h1:8w6bsBMX6yCPbAVTeqQHvzxW0EIFigd5lZyahWgyfDo= -google.golang.org/genproto v0.0.0-20220413183235-5e96e2839df9/go.mod h1:8w6bsBMX6yCPbAVTeqQHvzxW0EIFigd5lZyahWgyfDo= -google.golang.org/genproto v0.0.0-20220414192740-2d67ff6cf2b4/go.mod h1:8w6bsBMX6yCPbAVTeqQHvzxW0EIFigd5lZyahWgyfDo= -google.golang.org/genproto v0.0.0-20220421151946-72621c1f0bd3/go.mod h1:8w6bsBMX6yCPbAVTeqQHvzxW0EIFigd5lZyahWgyfDo= -google.golang.org/genproto v0.0.0-20220505152158-f39f71e6c8f3 h1:q1kiSVscqoDeqTF27eQ2NnLLDmqF0I373qQNXYMy0fo= -google.golang.org/genproto v0.0.0-20220505152158-f39f71e6c8f3/go.mod h1:RAyBrSAP7Fh3Nc84ghnVLDPuV51xc9agzmm4Ph6i0Q4= -google.golang.org/grpc v0.0.0-20160317175043-d3ddb4469d5a/go.mod h1:yo6s7OP7yaDglbqo1J04qKzAhqBH6lvTonzMVmEdcZw= -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.0/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= -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.23.1/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= -google.golang.org/grpc v1.24.0/go.mod h1:XDChyiUovWa60DnaeDeZmSW86xtLtjtZbwvSiRnRtcA= -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.37.1/go.mod h1:NREThFqKR1f3iQ6oBuvc5LadQuXVGo9rkm5ZGrQdJfM= -google.golang.org/grpc v1.38.0/go.mod h1:NREThFqKR1f3iQ6oBuvc5LadQuXVGo9rkm5ZGrQdJfM= -google.golang.org/grpc v1.39.0/go.mod h1:PImNr+rS9TWYb2O4/emRugxiyHZ5JyHW5F+RPnDzfrE= -google.golang.org/grpc v1.39.1/go.mod h1:PImNr+rS9TWYb2O4/emRugxiyHZ5JyHW5F+RPnDzfrE= -google.golang.org/grpc v1.40.0/go.mod h1:ogyxbiOoUXAkP+4+xa6PZSE9DZgIHtSpzjDTB9KAK34= -google.golang.org/grpc v1.40.1/go.mod h1:ogyxbiOoUXAkP+4+xa6PZSE9DZgIHtSpzjDTB9KAK34= -google.golang.org/grpc v1.42.0/go.mod h1:k+4IHHFw41K8+bbowsex27ge2rCb65oeWqe4jJ590SU= -google.golang.org/grpc v1.43.0/go.mod h1:k+4IHHFw41K8+bbowsex27ge2rCb65oeWqe4jJ590SU= -google.golang.org/grpc v1.44.0/go.mod h1:k+4IHHFw41K8+bbowsex27ge2rCb65oeWqe4jJ590SU= -google.golang.org/grpc v1.45.0/go.mod h1:lN7owxKUQEqMfSyQikvvk5tf/6zMPsrK+ONuO11+0rQ= -google.golang.org/grpc v1.46.0 h1:oCjezcn6g6A75TGoKYBPgKmVBLexhYLM6MebdrPApP8= -google.golang.org/grpc v1.46.0/go.mod h1:vN9eftEi1UMyUsIF80+uQXhHjbXYbm0uXoFCACuMGWk= -google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.1.0/go.mod h1:6Kw0yEErY5E/yWrBtf03jp27GLLJujG4z/JK95pnjjw= -google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.2.0 h1:TLkBREm4nIsEcexnCjgQd5GQWaHcqMzwQV0TX9pq8S0= -google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.2.0/go.mod h1:DNq5QpG7LJqD2AamLZ7zvKE0DEpVl2BSEVjFycAAjRY= -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.0 h1:w43yiav+6bVFTBQFZX0r7ipe9JQ1QsbMgHwbBziscLw= -google.golang.org/protobuf v1.28.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= -gopkg.in/airbrake/gobrake.v2 v2.0.9/go.mod h1:/h5ZAUhDkGaJfjzjKLSjv6zCL6O0LLBxU4K+aSYdM/U= -gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw= -gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= -gopkg.in/check.v1 v1.0.0-20141024133853-64131543e789/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/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= -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/cheggaaa/pb.v1 v1.0.25/go.mod h1:V/YB90LKu/1FcN3WVnfiiE5oMCibMjukxqG/qStrOgw= -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/gemnasium/logrus-airbrake-hook.v2 v2.1.2/go.mod h1:Xk6kEKp8OKb+X14hQBKWaSkCsqBpgog8nAV2xsGOxlo= -gopkg.in/gorp.v1 v1.7.2/go.mod h1:Wo3h+DBQZIxATwftsglhdD/62zRFPhGhTiu5jUJmCaw= -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.51.0/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k= -gopkg.in/ini.v1 v1.62.0/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k= -gopkg.in/ini.v1 v1.66.2/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k= -gopkg.in/natefinch/lumberjack.v2 v2.0.0/go.mod h1:l0ndWWf7gzL7RNwBG7wST/UCcT4T24xpD6X8LsfU/+k= -gopkg.in/resty.v1 v1.12.0/go.mod h1:mDo4pnntr5jdWRML875a/NmxYqAlA73dVijT2AXvQQo= -gopkg.in/square/go-jose.v2 v2.2.2/go.mod h1:M9dMgbHiYLoDGQrXy7OpJDJWiKiU//h+vD76mk0e1AI= -gopkg.in/square/go-jose.v2 v2.3.1/go.mod h1:M9dMgbHiYLoDGQrXy7OpJDJWiKiU//h+vD76mk0e1AI= -gopkg.in/square/go-jose.v2 v2.5.1/go.mod h1:M9dMgbHiYLoDGQrXy7OpJDJWiKiU//h+vD76mk0e1AI= -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.0.0-20170812160011-eb3733d160e7/go.mod h1:JAlM8MvJe8wmxCU4Bli9HhUf9+ttbYbLASfIpnQbh74= -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 h1:h8qDotaEPuJATrMmW04NCwg7v22aHH28wwpauUhK9Oo= -gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= -gotest.tools v2.2.0+incompatible/go.mod h1:DsYFclhRJ6vuDpmuTbkuFWG+y2sxOXAzmJt81HFBacw= -gotest.tools/v3 v3.0.2/go.mod h1:3SzNCllyD9/Y+b5r9JIKQ474KzkZyqLqEfYqMsX94Bk= -gotest.tools/v3 v3.0.3/go.mod h1:Z7Lb0S5l+klDB31fvDQX8ss/FlKDxtlFlw3Oa8Ymbl8= -helm.sh/helm/v3 v3.8.2 h1:HDhe2nKek976VLMPZlIgJbNqwcqvHYBp1qy+sXQ4jiY= -helm.sh/helm/v3 v3.8.2/go.mod h1:NxtE2KObf2PrzDl6SIamPFPKyAqWi10iWuvKlQn/Yao= -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.18.8/go.mod h1:d/CXqwWv+Z2XEG1LgceeDmHQwpUJhROPx16SlxJgERY= -k8s.io/api v0.20.1/go.mod h1:KqwcCVogGxQY3nBlRpwt+wpAMF/KjaCc7RpywacvqUo= -k8s.io/api v0.20.4/go.mod h1:++lNL1AJMkDymriNniQsWRkMDzRaX2Y/POTUi8yvqYQ= -k8s.io/api v0.20.6/go.mod h1:X9e8Qag6JV/bL5G6bU8sdVRltWKmdHsFUGS3eVndqE8= -k8s.io/api v0.21.3/go.mod h1:hUgeYHUbBp23Ue4qdX9tR8/ANi/g3ehylAqDn9NWVOg= -k8s.io/api v0.22.1/go.mod h1:bh13rkTp3F1XEaLGykbyRD2QaTTzPm0e/BMd8ptFONY= -k8s.io/api v0.22.5/go.mod h1:mEhXyLaSD1qTOf40rRiKXkc+2iCem09rWLlFwhCEiAs= -k8s.io/api v0.23.5/go.mod h1:Na4XuKng8PXJ2JsploYYrivXrINeTaycCGcYgF91Xm8= -k8s.io/api v0.24.0 h1:J0hann2hfxWr1hinZIDefw7Q96wmCBx6SSB8IY0MdDg= -k8s.io/api v0.24.0/go.mod h1:5Jl90IUrJHUJYEMANRURMiVvJ0g7Ax7r3R1bqO8zx8I= -k8s.io/apiextensions-apiserver v0.21.3/go.mod h1:kl6dap3Gd45+21Jnh6utCx8Z2xxLm8LGDkprcd+KbsE= -k8s.io/apiextensions-apiserver v0.23.5/go.mod h1:ntcPWNXS8ZPKN+zTXuzYMeg731CP0heCTl6gYBxLcuQ= -k8s.io/apiextensions-apiserver v0.24.0 h1:JfgFqbA8gKJ/uDT++feAqk9jBIwNnL9YGdQvaI9DLtY= -k8s.io/apiextensions-apiserver v0.24.0/go.mod h1:iuVe4aEpe6827lvO6yWQVxiPSpPoSKVjkq+MIdg84cM= -k8s.io/apimachinery v0.18.8/go.mod h1:6sQd+iHEqmOtALqOFjSWp2KZ9F0wlU/nWm0ZgsYWMig= -k8s.io/apimachinery v0.20.1/go.mod h1:WlLqWAHZGg07AeltaI0MV5uk1Omp8xaN0JGLY6gkRpU= -k8s.io/apimachinery v0.20.4/go.mod h1:WlLqWAHZGg07AeltaI0MV5uk1Omp8xaN0JGLY6gkRpU= -k8s.io/apimachinery v0.20.6/go.mod h1:ejZXtW1Ra6V1O5H8xPBGz+T3+4gfkTCeExAHKU57MAc= -k8s.io/apimachinery v0.21.3/go.mod h1:H/IM+5vH9kZRNJ4l3x/fXP/5bOPJaVP/guptnZPeCFI= -k8s.io/apimachinery v0.22.1/go.mod h1:O3oNtNadZdeOMxHFVxOreoznohCpy0z6mocxbZr7oJ0= -k8s.io/apimachinery v0.22.5/go.mod h1:xziclGKwuuJ2RM5/rSFQSYAj0zdbci3DH8kj+WvyN0U= -k8s.io/apimachinery v0.23.5/go.mod h1:BEuFMMBaIbcOqVIJqNZJXGFTP4W6AycEpb5+m/97hrM= -k8s.io/apimachinery v0.24.0 h1:ydFCyC/DjCvFCHK5OPMKBlxayQytB8pxy8YQInd5UyQ= -k8s.io/apimachinery v0.24.0/go.mod h1:82Bi4sCzVBdpYjyI4jY6aHX+YCUchUIrZrXKedjd2UM= -k8s.io/apiserver v0.20.1/go.mod h1:ro5QHeQkgMS7ZGpvf4tSMx6bBOgPfE+f52KwvXfScaU= -k8s.io/apiserver v0.20.4/go.mod h1:Mc80thBKOyy7tbvFtB4kJv1kbdD0eIH8k8vianJcbFM= -k8s.io/apiserver v0.20.6/go.mod h1:QIJXNt6i6JB+0YQRNcS0hdRHJlMhflFmsBDeSgT1r8Q= -k8s.io/apiserver v0.21.3/go.mod h1:eDPWlZG6/cCCMj/JBcEpDoK+I+6i3r9GsChYBHSbAzU= -k8s.io/apiserver v0.22.5/go.mod h1:s2WbtgZAkTKt679sYtSudEQrTGWUSQAPe6MupLnlmaQ= -k8s.io/apiserver v0.23.5/go.mod h1:7wvMtGJ42VRxzgVI7jkbKvMbuCbVbgsWFT7RyXiRNTw= -k8s.io/apiserver v0.24.0/go.mod h1:WFx2yiOMawnogNToVvUYT9nn1jaIkMKj41ZYCVycsBA= -k8s.io/cli-runtime v0.23.5/go.mod h1:oY6QDF2qo9xndSq32tqcmRp2UyXssdGrLfjAVymgbx4= -k8s.io/cli-runtime v0.24.0/go.mod h1:9XxoZDsEkRFUThnwqNviqzljtT/LdHtNWvcNFrAXl0A= -k8s.io/client-go v0.18.8/go.mod h1:HqFqMllQ5NnQJNwjro9k5zMyfhZlOwpuTLVrxjkYSxU= -k8s.io/client-go v0.20.1/go.mod h1:/zcHdt1TeWSd5HoUe6elJmHSQ6uLLgp4bIJHVEuy+/Y= -k8s.io/client-go v0.20.4/go.mod h1:LiMv25ND1gLUdBeYxBIwKpkSC5IsozMMmOOeSJboP+k= -k8s.io/client-go v0.20.6/go.mod h1:nNQMnOvEUEsOzRRFIIkdmYOjAZrC8bgq0ExboWSU1I0= -k8s.io/client-go v0.21.3/go.mod h1:+VPhCgTsaFmGILxR/7E1N0S+ryO010QBeNCv5JwRGYU= -k8s.io/client-go v0.22.1/go.mod h1:BquC5A4UOo4qVDUtoc04/+Nxp1MeHcVc1HJm1KmG8kk= -k8s.io/client-go v0.22.5/go.mod h1:cs6yf/61q2T1SdQL5Rdcjg9J1ElXSwbjSrW2vFImM4Y= -k8s.io/client-go v0.23.5/go.mod h1:flkeinTO1CirYgzMPRWxUCnV0G4Fbu2vLhYCObnt/r4= -k8s.io/client-go v0.24.0 h1:lbE4aB1gTHvYFSwm6eD3OF14NhFDKCejlnsGYlSJe5U= -k8s.io/client-go v0.24.0/go.mod h1:VFPQET+cAFpYxh6Bq6f4xyMY80G6jKKktU6G0m00VDw= -k8s.io/code-generator v0.18.8/go.mod h1:TgNEVx9hCyPGpdtCWA34olQYLkh3ok9ar7XfSsr8b6c= -k8s.io/code-generator v0.19.7/go.mod h1:lwEq3YnLYb/7uVXLorOJfxg+cUu2oihFhHZ0n9NIla0= -k8s.io/code-generator v0.21.3/go.mod h1:K3y0Bv9Cz2cOW2vXUrNZlFbflhuPvuadW6JdnN6gGKo= -k8s.io/code-generator v0.22.0/go.mod h1:eV77Y09IopzeXOJzndrDyCI88UBok2h6WxAlBwpxa+o= -k8s.io/code-generator v0.23.5/go.mod h1:S0Q1JVA+kSzTI1oUvbKAxZY/DYbA/ZUb4Uknog12ETk= -k8s.io/code-generator v0.24.0/go.mod h1:dpVhs00hTuTdTY6jvVxvTFCk6gSMrtfRydbhZwHI15w= -k8s.io/component-base v0.20.1/go.mod h1:guxkoJnNoh8LNrbtiQOlyp2Y2XFCZQmrcg2n/DeYNLk= -k8s.io/component-base v0.20.4/go.mod h1:t4p9EdiagbVCJKrQ1RsA5/V4rFQNDfRlevJajlGwgjI= -k8s.io/component-base v0.20.6/go.mod h1:6f1MPBAeI+mvuts3sIdtpjljHWBQ2cIy38oBIWMYnrM= -k8s.io/component-base v0.21.3/go.mod h1:kkuhtfEHeZM6LkX0saqSK8PbdO7A0HigUngmhhrwfGQ= -k8s.io/component-base v0.22.5/go.mod h1:VK3I+TjuF9eaa+Ln67dKxhGar5ynVbwnGrUiNF4MqCI= -k8s.io/component-base v0.23.5/go.mod h1:c5Nq44KZyt1aLl0IpHX82fhsn84Sb0jjzwjpcA42bY0= -k8s.io/component-base v0.24.0/go.mod h1:Dgazgon0i7KYUsS8krG8muGiMVtUZxG037l1MKyXgrA= -k8s.io/component-helpers v0.23.5/go.mod h1:5riXJgjTIs+ZB8xnf5M2anZ8iQuq37a0B/0BgoPQuSM= -k8s.io/component-helpers v0.24.0/go.mod h1:Q2SlLm4h6g6lPTC9GMMfzdywfLSvJT2f1hOnnjaWD8c= -k8s.io/cri-api v0.17.3/go.mod h1:X1sbHmuXhwaHs9xxYffLqJogVsnI+f6cPRcgPel7ywM= -k8s.io/cri-api v0.20.1/go.mod h1:2JRbKt+BFLTjtrILYVqQK5jqhI+XNdF6UiGMgczeBCI= -k8s.io/cri-api v0.20.4/go.mod h1:2JRbKt+BFLTjtrILYVqQK5jqhI+XNdF6UiGMgczeBCI= -k8s.io/cri-api v0.20.6/go.mod h1:ew44AjNXwyn1s0U4xCKGodU7J1HzBeZ1MpGrpa5r8Yc= -k8s.io/cri-api v0.23.1/go.mod h1:REJE3PSU0h/LOV1APBrupxrEJqnoxZC8KWzkBUHwrK4= -k8s.io/gengo v0.0.0-20190128074634-0689ccc1d7d6/go.mod h1:ezvh/TsK7cY6rbqRK0oQQ8IAqLxYwwyPxAX1Pzy0ii0= -k8s.io/gengo v0.0.0-20200114144118-36b2048a9120/go.mod h1:ezvh/TsK7cY6rbqRK0oQQ8IAqLxYwwyPxAX1Pzy0ii0= -k8s.io/gengo v0.0.0-20200413195148-3a45101e95ac/go.mod h1:ezvh/TsK7cY6rbqRK0oQQ8IAqLxYwwyPxAX1Pzy0ii0= -k8s.io/gengo v0.0.0-20200428234225-8167cfdcfc14/go.mod h1:ezvh/TsK7cY6rbqRK0oQQ8IAqLxYwwyPxAX1Pzy0ii0= -k8s.io/gengo v0.0.0-20201113003025-83324d819ded/go.mod h1:FiNAH4ZV3gBg2Kwh89tzAEV2be7d5xI0vBa/VySYy3E= -k8s.io/gengo v0.0.0-20201203183100-97869a43a9d9/go.mod h1:FiNAH4ZV3gBg2Kwh89tzAEV2be7d5xI0vBa/VySYy3E= -k8s.io/gengo v0.0.0-20201214224949-b6c5ce23f027/go.mod h1:FiNAH4ZV3gBg2Kwh89tzAEV2be7d5xI0vBa/VySYy3E= -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 v0.0.0-20181102134211-b9b56d5dfc92/go.mod h1:Gq+BEi5rUBO/HRz0bTSXDUcqjScdoY3a9IHpCEIOOfk= -k8s.io/klog v0.2.0/go.mod h1:Gq+BEi5rUBO/HRz0bTSXDUcqjScdoY3a9IHpCEIOOfk= -k8s.io/klog v0.3.0/go.mod h1:Gq+BEi5rUBO/HRz0bTSXDUcqjScdoY3a9IHpCEIOOfk= -k8s.io/klog v1.0.0/go.mod h1:4Bi6QPql/J/LkTDqv7R/cd3hPo4k2DG6Ptcz060Ez5I= -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.4.0/go.mod h1:Od+F08eJP+W3HUb4pSrPpgp9DGU4GzlpG/TmITuYh/Y= -k8s.io/klog/v2 v2.8.0/go.mod h1:hy9LJ/NvuK+iVyP4Ehqva4HxZG/oXyIS3n3Jmire4Ec= -k8s.io/klog/v2 v2.9.0/go.mod h1:hy9LJ/NvuK+iVyP4Ehqva4HxZG/oXyIS3n3Jmire4Ec= -k8s.io/klog/v2 v2.10.0/go.mod h1:hy9LJ/NvuK+iVyP4Ehqva4HxZG/oXyIS3n3Jmire4Ec= -k8s.io/klog/v2 v2.30.0/go.mod h1:y1WjHnz7Dj687irZUWR/WLkLc5N1YHtjLdmgWjndZn0= -k8s.io/klog/v2 v2.60.1 h1:VW25q3bZx9uE3vvdL6M8ezOX79vA2Aq1nEWLqNQclHc= -k8s.io/klog/v2 v2.60.1/go.mod h1:y1WjHnz7Dj687irZUWR/WLkLc5N1YHtjLdmgWjndZn0= -k8s.io/kube-aggregator v0.24.0 h1:ax2B6v5y+sLISgal5COnlDRKOSr97uXpwif6nnK3a/M= -k8s.io/kube-aggregator v0.24.0/go.mod h1:ftfs6Fi46z3cKzeF2kvNBPLbMlSKuqZbesJGNp/cQnw= -k8s.io/kube-openapi v0.0.0-20200410145947-61e04a5be9a6/go.mod h1:GRQhZsXIAJ1xR0C9bd8UpWHZ5plfAS9fzPjJuQ6JL3E= -k8s.io/kube-openapi v0.0.0-20200805222855-6aeccd4b50c6/go.mod h1:UuqjUnNftUyPE5H64/qeyjQoUZhGpeFDVdxjTeEVN2o= -k8s.io/kube-openapi v0.0.0-20201113171705-d219536bb9fd/go.mod h1:WOJ3KddDSol4tAGcJo0Tvi+dK12EcqSLqcWsryKMpfM= -k8s.io/kube-openapi v0.0.0-20210305001622-591a79e4bda7/go.mod h1:wXW5VT87nVfh/iLV8FpR2uDvrFyomxbtb1KivDbvPTE= -k8s.io/kube-openapi v0.0.0-20210421082810-95288971da7e/go.mod h1:vHXdDvt9+2spS2Rx9ql3I8tycm3H9FDfdUoIuKCefvw= -k8s.io/kube-openapi v0.0.0-20211109043538-20434351676c/go.mod h1:vHXdDvt9+2spS2Rx9ql3I8tycm3H9FDfdUoIuKCefvw= -k8s.io/kube-openapi v0.0.0-20211115234752-e816edb12b65/go.mod h1:sX9MT8g7NVZM5lVL/j8QyCCJe8YSMW30QvGZWaCIDIk= -k8s.io/kube-openapi v0.0.0-20220328201542-3ee0da9b0b42/go.mod h1:Z/45zLw8lUo4wdiUkI+v/ImEGAvu3WatcZl3lPMR4Rk= -k8s.io/kube-openapi v0.0.0-20220413171646-5e7f5fdc6da6 h1:nBQrWPlrNIiw0BsX6a6MKr1itkm0ZS0Nl97kNLitFfI= -k8s.io/kube-openapi v0.0.0-20220413171646-5e7f5fdc6da6/go.mod h1:daOouuuwd9JXpv1L7Y34iV3yf6nxzipkKMWWlqlvK9M= -k8s.io/kubectl v0.23.5/go.mod h1:lLgw7cVY8xbd7o637vOXPca/w6HC205KsPCRDYRCxwE= -k8s.io/kubectl v0.24.0 h1:nA+WtMLVdXUs4wLogGd1mPTAesnLdBpCVgCmz3I7dXo= -k8s.io/kubectl v0.24.0/go.mod h1:pdXkmCyHiRTqjYfyUJiXtbVNURhv0/Q1TyRhy2d5ic0= -k8s.io/kubernetes v1.13.0/go.mod h1:ocZa8+6APFNC2tX1DZASIbocyYT5jHzqFVsY5aoB7Jk= -k8s.io/metrics v0.23.5/go.mod h1:WNAtV2a5BYbmDS8+7jSqYYV6E3efuGTpIwJ8PTD1wgs= -k8s.io/metrics v0.24.0/go.mod h1:jrLlFGdKl3X+szubOXPG0Lf2aVxuV3QJcbsgVRAM6fI= -k8s.io/utils v0.0.0-20200324210504-a9aa75ae1b89/go.mod h1:sZAwmy6armz5eXlNoLmJcl4F1QuKu7sr+mFQ0byX7Ew= -k8s.io/utils v0.0.0-20201110183641-67b214c5f920/go.mod h1:jPW/WVKK9YHAvNhRxK0md/EJ228hCsBRufyofKtW8HA= -k8s.io/utils v0.0.0-20210707171843-4b05e18ac7d9/go.mod h1:jPW/WVKK9YHAvNhRxK0md/EJ228hCsBRufyofKtW8HA= -k8s.io/utils v0.0.0-20210722164352-7f3ee0f31471/go.mod h1:jPW/WVKK9YHAvNhRxK0md/EJ228hCsBRufyofKtW8HA= -k8s.io/utils v0.0.0-20210802155522-efc7438f0176/go.mod h1:jPW/WVKK9YHAvNhRxK0md/EJ228hCsBRufyofKtW8HA= -k8s.io/utils v0.0.0-20210819203725-bdf08cb9a70a/go.mod h1:jPW/WVKK9YHAvNhRxK0md/EJ228hCsBRufyofKtW8HA= -k8s.io/utils v0.0.0-20210820185131-d34e5cb4466e/go.mod h1:jPW/WVKK9YHAvNhRxK0md/EJ228hCsBRufyofKtW8HA= -k8s.io/utils v0.0.0-20210930125809-cb0fa318a74b/go.mod h1:jPW/WVKK9YHAvNhRxK0md/EJ228hCsBRufyofKtW8HA= -k8s.io/utils v0.0.0-20211116205334-6203023598ed/go.mod h1:jPW/WVKK9YHAvNhRxK0md/EJ228hCsBRufyofKtW8HA= -k8s.io/utils v0.0.0-20220210201930-3a6ce19ff2f9 h1:HNSDgDCrr/6Ly3WEGKZftiE7IY19Vz2GdbOCyI4qqhc= -k8s.io/utils v0.0.0-20220210201930-3a6ce19ff2f9/go.mod h1:jPW/WVKK9YHAvNhRxK0md/EJ228hCsBRufyofKtW8HA= -oras.land/oras-go v1.1.1/go.mod h1:n2TE1ummt9MUyprGhT+Q7kGZUF4kVUpYysPFxeV2IpQ= -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/apiserver-network-proxy/konnectivity-client v0.0.14/go.mod h1:LEScyzhFmoF5pso/YSeBstl57mOzx9xlU9n85RGrDQg= -sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.0.15/go.mod h1:LEScyzhFmoF5pso/YSeBstl57mOzx9xlU9n85RGrDQg= -sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.0.19/go.mod h1:LEScyzhFmoF5pso/YSeBstl57mOzx9xlU9n85RGrDQg= -sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.0.22/go.mod h1:LEScyzhFmoF5pso/YSeBstl57mOzx9xlU9n85RGrDQg= -sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.0.30/go.mod h1:fEO7lRTdivWO2qYVCVG7dEADOMo/MLDCVr8So2g88Uw= -sigs.k8s.io/controller-runtime v0.9.6/go.mod h1:q6PpkM5vqQubEKUKOM6qr06oXGzOBcCby1DA9FbyZeA= -sigs.k8s.io/controller-tools v0.6.2/go.mod h1:oaeGpjXn6+ZSEIQkUe/+3I40PNiDYp9aeawbt3xTgJ8= -sigs.k8s.io/gateway-api v0.4.3 h1:9kdHAcfkyP7jVMSFshc8EYEKNLlFM7hbZL8vCKcMwps= -sigs.k8s.io/gateway-api v0.4.3/go.mod h1:r3eiNP+0el+NTLwaTfOrCNXy8TukC+dIM3ggc+fbNWk= -sigs.k8s.io/json v0.0.0-20211020170558-c049b76a60c6/go.mod h1:p4QtZmO4uMYipTQNzagwnNoseA6OxSUutVw05NhYDRs= -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.10.1/go.mod h1:2FigT1QN6xKdcnGS2Ppp1uIWrtWN28Ms8A3OZUZhwr8= -sigs.k8s.io/kustomize/api v0.11.4/go.mod h1:k+8RsqYbgpkIrJ4p9jcdPqe8DprLxFUUO0yNOq8C+xI= -sigs.k8s.io/kustomize/cmd/config v0.10.2/go.mod h1:K2aW7nXJ0AaT+VA/eO0/dzFLxmpFcTzudmAgDwPY1HQ= -sigs.k8s.io/kustomize/cmd/config v0.10.6/go.mod h1:/S4A4nUANUa4bZJ/Edt7ZQTyKOY9WCER0uBS1SW2Rco= -sigs.k8s.io/kustomize/kustomize/v4 v4.4.1/go.mod h1:qOKJMMz2mBP+vcS7vK+mNz4HBLjaQSWRY22EF6Tb7Io= -sigs.k8s.io/kustomize/kustomize/v4 v4.5.4/go.mod h1:Zo/Xc5FKD6sHl0lilbrieeGeZHVYCA4BzxeAaLI05Bg= -sigs.k8s.io/kustomize/kyaml v0.13.0/go.mod h1:FTJxEZ86ScK184NpGSAQcfEqee0nul8oLCK30D47m4E= -sigs.k8s.io/kustomize/kyaml v0.13.6/go.mod h1:yHP031rn1QX1lr/Xd934Ri/xdVNG8BE2ECa78Ht/kEg= -sigs.k8s.io/structured-merge-diff/v3 v3.0.0-20200116222232-67a7b8c61874/go.mod h1:PlARxl6Hbt/+BC80dRLi1qAmnMqwqDg62YvvVkZjemw= -sigs.k8s.io/structured-merge-diff/v3 v3.0.0/go.mod h1:PlARxl6Hbt/+BC80dRLi1qAmnMqwqDg62YvvVkZjemw= -sigs.k8s.io/structured-merge-diff/v4 v4.0.1/go.mod h1:bJZC9H9iH24zzfZ/41RGcq60oK1F7G282QMXDPYydCw= -sigs.k8s.io/structured-merge-diff/v4 v4.0.2/go.mod h1:bJZC9H9iH24zzfZ/41RGcq60oK1F7G282QMXDPYydCw= -sigs.k8s.io/structured-merge-diff/v4 v4.0.3/go.mod h1:bJZC9H9iH24zzfZ/41RGcq60oK1F7G282QMXDPYydCw= -sigs.k8s.io/structured-merge-diff/v4 v4.1.2/go.mod h1:j/nl6xW8vLS49O8YvXW1ocPhZawJtm+Yrr7PPRQ0Vg4= -sigs.k8s.io/structured-merge-diff/v4 v4.2.1 h1:bKCqE9GvQ5tiVHn5rfn1r+yao3aLQEaLzkkmAkf+A6Y= -sigs.k8s.io/structured-merge-diff/v4 v4.2.1/go.mod h1:j/nl6xW8vLS49O8YvXW1ocPhZawJtm+Yrr7PPRQ0Vg4= -sigs.k8s.io/yaml v1.1.0/go.mod h1:UJmg0vDUVViEyp3mgSv9WPwZCDxu4rQW1olrI1uml+o= -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= diff --git a/proto/buoyant-cloud-api.proto b/proto/buoyant-cloud-api.proto deleted file mode 100644 index 73da2c1..0000000 --- a/proto/buoyant-cloud-api.proto +++ /dev/null @@ -1,259 +0,0 @@ -syntax = "proto3"; - -package buoyant.cloud; - -option go_package = "github.com/buoyantio/linkerd-buoyant/gen/bcloud"; - -import "google/protobuf/timestamp.proto"; - -// -// shared messages -// - -message Empty {} - -message Auth { - option deprecated = true; - string agent_id = 1; - string agent_key = 2; -} - -message Workload { - oneof workload { - DaemonSet daemonset = 1; - Deployment deployment = 2; - StatefulSet statefulset = 3; - } -} - -message DaemonSet { - bytes daemon_set = 1; - repeated Pod pods = 2; -} - -message Deployment { - bytes deployment = 1; - repeated ReplicaSet replica_sets = 2; -} - -message StatefulSet { - bytes stateful_set = 1; - repeated Pod pods = 2; -} - -message ReplicaSet { - bytes replica_set = 1; - repeated Pod pods = 2; -} - -message Pod { - bytes pod = 1; -} - -message ConfigMap { - bytes config_map = 1; -} - -message Node { - bytes node = 1; -} - -message Service { - bytes service = 1; -} - -// -// WorkloadStream messages -// - -message WorkloadMessage { - oneof message { - Auth auth = 1 [deprecated=true]; - - AddWorkload added = 2; - UpdateWorkload updated = 3; - DeleteWorkload deleted = 4; - ListWorkloads list = 5; - } -} - -message AddWorkload { - Workload workload = 1; -} - -message DeleteWorkload { - Workload workload = 1; -} - -message UpdateWorkload { - Workload old_workload = 1; - Workload new_workload = 2; - google.protobuf.Timestamp timestamp = 3; -} - -message ListWorkloads { - repeated Workload workloads = 1; -} - -// -// AddEvent messages -// - -message Event { - Auth auth = 1 [deprecated=true]; - bytes event = 2; - Workload owner = 3; -} - -// -// Linkerd Messages -// - -// This message represents a PEM encoded certificate -message CertData { - bytes raw = 1; -} - -// Represents the certificates that the control plane -// has been configured with. -message ControlPlaneCerts { - // This is the identity issuer certificate chain; - // it does not include a leaf certificate - repeated CertData issuer_crt_chain = 1; - // The roots that the control plane has been configured - // with and will add to newly created proxies - repeated CertData roots = 2; -} - -message CertificateInfo { - oneof info { - ControlPlaneCerts control_plane = 1; - } -} - -message Server { - bytes server = 1; -} - -message ServerAuthorization { - bytes server_authorization = 1; -} - -message AuthorizationPolicy { - bytes authorization_policy = 1; -} - -message MeshTLSAuthentication { - bytes mesh_tls_authentication = 1; -} - -message NetworkAuthentication { - bytes network_authentication = 1; -} - -message AuthPolicyInfo { - repeated Server servers = 1; - repeated ServerAuthorization server_authorizations = 2; - repeated AuthorizationPolicy authorization_policies = 3; - repeated MeshTLSAuthentication mesh_tls_authentications = 4; - repeated NetworkAuthentication network_authentications = 5; -} - -message TrafficSplit { - bytes traffic_split = 1; -} - -message TrafficSplitInfo { - repeated TrafficSplit traffic_splits = 1; -} - -message ServiceProfile { - bytes service_profile = 1; -} - -message ServiceProfileInfo { - repeated ServiceProfile service_profiles = 1; -} - -message MulticlusterLink { - bytes multicluster_link = 1; -} - -message MulticlusterInfo { - repeated MulticlusterLink multicluster_links = 1; -} - -message LinkerdMessage { - Auth auth = 1 [deprecated=true]; - oneof message { - CertificateInfo crt_info = 2; - AuthPolicyInfo auth_policy_info = 3; - TrafficSplitInfo traffic_split_info = 4; - ServiceProfileInfo service_profile_info = 5; - MulticlusterInfo multicluster_info = 6; - } -} - -// -// ManageAgent Messages -// - -message GetProxyDiagnostics { - string diagnostic_id = 1; - string pod_name = 2; - string pod_namespace = 3; -} - -message GetProxyLogs { - string pod_name = 1; - string pod_namespace = 2; - int32 num_lines = 3; -} - -message AgentCommand { - oneof command { - GetProxyDiagnostics get_proxy_diagnostics = 1; - GetProxyLogs get_proxy_logs = 2; - } -} - -// -// ProxyDiagnostic Messages -// - - -message ProxyDiagnostic { - Auth auth = 1 [deprecated=true]; - string diagnostic_id = 2; - bytes logs = 3; - repeated bytes metrics = 4; - Pod pod_manifest = 5; - ConfigMap linkerd_config_map = 6; - repeated Node nodes = 7; - Service k8s_service_manifest = 8; -} - -// -// ProxyLog Messages -// - -message ProxyLog { - Auth auth = 1 [deprecated=true]; - string pod_name = 2; - string pod_namespace = 3; - bytes lines = 4; - google.protobuf.Timestamp timestamp = 5; -} - -// -// API -// - -service Api { - rpc WorkloadStream(stream WorkloadMessage) returns (Empty) {} - rpc AddEvent(Event) returns (Empty) {} - rpc LinkerdInfo(LinkerdMessage) returns (Empty) {} - rpc ManageAgent(Auth) returns (stream AgentCommand) {} - rpc ProxyDiagnostics(ProxyDiagnostic) returns (Empty) {} - rpc ProxyLogs(ProxyLog) returns (Empty) {} -} diff --git a/tools.go b/tools.go deleted file mode 100644 index bcaa402..0000000 --- a/tools.go +++ /dev/null @@ -1,7 +0,0 @@ -// +build tools - -package tools - -import ( - _ "google.golang.org/grpc/cmd/protoc-gen-go-grpc" -)