From 106153e7b11ec652f0541077a8f430ea60d78fac Mon Sep 17 00:00:00 2001 From: Artur Troian Date: Tue, 21 Jan 2025 12:41:36 -0600 Subject: [PATCH] feat: provider stability improvements 1. fix account sequence mismatch refs akash-network/akash-api#183 2. save manifest resource version into each generated kube object this prevents workloads being redeployed on provider restart - only print workload check log if there is an warning or error Signed-off-by: Artur Troian --- .env | 2 +- .github/workflows/tests.yaml | 27 - .gitignore | 2 + _run/common-kind.mk | 4 +- _run/metallb.yaml | 162 +-- balance_checker.go | 10 +- cluster/inventory.go | 2 - cluster/kube/apply.go | 221 ++-- cluster/kube/builder/builder.go | 72 +- cluster/kube/builder/deployment.go | 10 +- cluster/kube/builder/namespace.go | 3 +- cluster/kube/builder/netpol.go | 3 +- cluster/kube/builder/service.go | 6 +- cluster/kube/builder/service_credentials.go | 33 +- cluster/kube/builder/statefulset.go | 12 +- cluster/kube/builder/workload.go | 27 +- cluster/kube/cleanup.go | 7 + cluster/kube/client.go | 240 +++- cluster/kube/clientcommon/open_kube_config.go | 1 - .../operators/clients/inventory/client.go | 9 +- .../clients/inventory/client_test.go | 3 - cluster/manager.go | 5 +- cluster/monitor.go | 49 +- cluster/service.go | 115 +- cluster/types/v1beta3/deployment.go | 12 +- cluster/types/v1beta3/mocks/i_deployment.go | 45 + cmd/provider-services/cmd/run.go | 3 +- event/events.go | 1 + go.mod | 145 +-- go.sum | 1143 ++++++----------- make/codegen.mk | 6 +- make/init.mk | 6 +- make/setup-cache.mk | 10 +- manifest/manager.go | 8 +- operator/inventory/cmd.go | 8 + operator/inventory/types.go | 23 +- .../v2beta1/zz_generated.defaults.go} | 19 +- pkg/apis/akash.network/v2beta2/manifest.go | 1 + pkg/apis/akash.network/v2beta2/types.go | 11 +- .../v2beta2/zz_generated.defaults.go | 33 + .../akash.network/v2beta1/inventory.go | 224 ++++ .../v2beta1/inventoryclusterstorage.go | 56 + .../akash.network/v2beta1/inventoryrequest.go | 224 ++++ .../v2beta1/inventoryrequestspec.go | 39 + .../v2beta1/inventoryrequeststatus.go | 48 + .../akash.network/v2beta1/inventoryspec.go | 44 + .../akash.network/v2beta1/inventorystatus.go | 54 + .../akash.network/v2beta1/leaseid.go | 75 ++ .../akash.network/v2beta1/manifest.go | 225 ++++ .../akash.network/v2beta1/manifestgroup.go | 53 + .../akash.network/v2beta1/manifestservice.go | 122 ++ .../v2beta1/manifestserviceexpose.go | 113 ++ .../manifestserviceexposehttpoptions.go | 86 ++ .../v2beta1/manifestserviceparams.go | 44 + .../v2beta1/manifestservicestorage.go | 48 + .../akash.network/v2beta1/manifestspec.go | 48 + .../akash.network/v2beta1/manifeststatus.go | 48 + .../v2beta1/manifeststorageparams.go | 57 + .../akash.network/v2beta1/providerhost.go | 225 ++++ .../akash.network/v2beta1/providerhostspec.go | 102 ++ .../v2beta1/providerhoststatus.go | 48 + .../akash.network/v2beta1/providerleasedip.go | 225 ++++ .../v2beta1/providerleasedipspec.go | 84 ++ .../v2beta1/providerleasedipstatus.go | 48 + .../akash.network/v2beta1/resourcepair.go | 48 + .../akash.network/v2beta1/resourceunits.go | 62 + .../akash.network/v2beta2/inventory.go | 224 ++++ .../v2beta2/inventoryclusterstorage.go | 56 + .../akash.network/v2beta2/inventoryrequest.go | 224 ++++ .../v2beta2/inventoryrequestspec.go | 39 + .../v2beta2/inventoryrequeststatus.go | 48 + .../akash.network/v2beta2/inventoryspec.go | 44 + .../akash.network/v2beta2/inventorystatus.go | 54 + .../akash.network/v2beta2/leaseid.go | 75 ++ .../akash.network/v2beta2/manifest.go | 216 ++++ .../akash.network/v2beta2/manifestgroup.go | 53 + .../akash.network/v2beta2/manifestservice.go | 140 ++ .../v2beta2/manifestservicecredentials.go | 66 + .../v2beta2/manifestserviceexpose.go | 113 ++ .../manifestserviceexposehttpoptions.go | 86 ++ .../v2beta2/manifestserviceparams.go | 44 + .../akash.network/v2beta2/manifestspec.go | 48 + .../v2beta2/manifeststorageparams.go | 57 + .../akash.network/v2beta2/providerhost.go | 216 ++++ .../akash.network/v2beta2/providerhostspec.go | 102 ++ .../akash.network/v2beta2/providerleasedip.go | 216 ++++ .../v2beta2/providerleasedipspec.go | 84 ++ .../akash.network/v2beta2/resourcecpu.go | 52 + .../akash.network/v2beta2/resourcegpu.go | 52 + .../akash.network/v2beta2/resourcememory.go | 52 + .../akash.network/v2beta2/resourcepair.go | 48 + .../akash.network/v2beta2/resources.go | 79 ++ .../akash.network/v2beta2/resourcevolume.go | 61 + .../akash.network/v2beta2/schedulerparams.go | 48 + .../v2beta2/schedulerresourcegpu.go | 66 + .../v2beta2/schedulerresources.go | 39 + .../applyconfiguration/internal/internal.go | 62 + pkg/client/applyconfiguration/utils.go | 158 +++ pkg/client/clientset/versioned/clientset.go | 4 +- .../versioned/fake/clientset_generated.go | 39 +- .../v2beta1/akash.network_client.go | 10 +- .../v2beta1/fake/fake_akash.network_client.go | 10 +- .../v2beta1/fake/fake_inventory.go | 126 +- .../v2beta1/fake/fake_inventoryrequest.go | 128 +- .../v2beta1/fake/fake_manifest.go | 135 +- .../v2beta1/fake/fake_providerhost.go | 137 +- .../v2beta1/fake/fake_providerleasedip.go | 137 +- .../typed/akash.network/v2beta1/inventory.go | 156 +-- .../akash.network/v2beta1/inventoryrequest.go | 156 +-- .../typed/akash.network/v2beta1/manifest.go | 167 +-- .../akash.network/v2beta1/providerhost.go | 167 +-- .../akash.network/v2beta1/providerleasedip.go | 167 +-- .../v2beta2/akash.network_client.go | 10 +- .../v2beta2/fake/fake_akash.network_client.go | 10 +- .../v2beta2/fake/fake_inventory.go | 126 +- .../v2beta2/fake/fake_inventoryrequest.go | 128 +- .../v2beta2/fake/fake_manifest.go | 123 +- .../v2beta2/fake/fake_providerhost.go | 125 +- .../v2beta2/fake/fake_providerleasedip.go | 125 +- .../typed/akash.network/v2beta2/inventory.go | 156 +-- .../akash.network/v2beta2/inventoryrequest.go | 156 +-- .../typed/akash.network/v2beta2/manifest.go | 146 +-- .../akash.network/v2beta2/providerhost.go | 146 +-- .../akash.network/v2beta2/providerleasedip.go | 146 +-- .../akash.network/v2beta1/inventory.go | 16 +- .../akash.network/v2beta1/inventoryrequest.go | 16 +- .../akash.network/v2beta1/manifest.go | 16 +- .../akash.network/v2beta1/providerhost.go | 16 +- .../akash.network/v2beta1/providerleasedip.go | 16 +- .../akash.network/v2beta2/inventory.go | 16 +- .../akash.network/v2beta2/inventoryrequest.go | 16 +- .../akash.network/v2beta2/manifest.go | 16 +- .../akash.network/v2beta2/providerhost.go | 16 +- .../akash.network/v2beta2/providerleasedip.go | 16 +- .../informers/externalversions/factory.go | 15 +- .../informers/externalversions/generic.go | 2 +- .../akash.network/v2beta1/inventory.go | 36 +- .../akash.network/v2beta1/inventoryrequest.go | 36 +- .../listers/akash.network/v2beta1/manifest.go | 51 +- .../akash.network/v2beta1/providerhost.go | 51 +- .../akash.network/v2beta1/providerleasedip.go | 51 +- .../akash.network/v2beta2/inventory.go | 36 +- .../akash.network/v2beta2/inventoryrequest.go | 36 +- .../listers/akash.network/v2beta2/manifest.go | 51 +- .../akash.network/v2beta2/providerhost.go | 51 +- .../akash.network/v2beta2/providerleasedip.go | 51 +- script/tools.sh | 21 + service.go | 10 +- tools/fromctx/context.go | 3 +- 149 files changed, 7414 insertions(+), 4054 deletions(-) rename pkg/{client/clientset/versioned/doc.go => apis/akash.network/v2beta1/zz_generated.defaults.go} (56%) create mode 100644 pkg/apis/akash.network/v2beta2/zz_generated.defaults.go create mode 100644 pkg/client/applyconfiguration/akash.network/v2beta1/inventory.go create mode 100644 pkg/client/applyconfiguration/akash.network/v2beta1/inventoryclusterstorage.go create mode 100644 pkg/client/applyconfiguration/akash.network/v2beta1/inventoryrequest.go create mode 100644 pkg/client/applyconfiguration/akash.network/v2beta1/inventoryrequestspec.go create mode 100644 pkg/client/applyconfiguration/akash.network/v2beta1/inventoryrequeststatus.go create mode 100644 pkg/client/applyconfiguration/akash.network/v2beta1/inventoryspec.go create mode 100644 pkg/client/applyconfiguration/akash.network/v2beta1/inventorystatus.go create mode 100644 pkg/client/applyconfiguration/akash.network/v2beta1/leaseid.go create mode 100644 pkg/client/applyconfiguration/akash.network/v2beta1/manifest.go create mode 100644 pkg/client/applyconfiguration/akash.network/v2beta1/manifestgroup.go create mode 100644 pkg/client/applyconfiguration/akash.network/v2beta1/manifestservice.go create mode 100644 pkg/client/applyconfiguration/akash.network/v2beta1/manifestserviceexpose.go create mode 100644 pkg/client/applyconfiguration/akash.network/v2beta1/manifestserviceexposehttpoptions.go create mode 100644 pkg/client/applyconfiguration/akash.network/v2beta1/manifestserviceparams.go create mode 100644 pkg/client/applyconfiguration/akash.network/v2beta1/manifestservicestorage.go create mode 100644 pkg/client/applyconfiguration/akash.network/v2beta1/manifestspec.go create mode 100644 pkg/client/applyconfiguration/akash.network/v2beta1/manifeststatus.go create mode 100644 pkg/client/applyconfiguration/akash.network/v2beta1/manifeststorageparams.go create mode 100644 pkg/client/applyconfiguration/akash.network/v2beta1/providerhost.go create mode 100644 pkg/client/applyconfiguration/akash.network/v2beta1/providerhostspec.go create mode 100644 pkg/client/applyconfiguration/akash.network/v2beta1/providerhoststatus.go create mode 100644 pkg/client/applyconfiguration/akash.network/v2beta1/providerleasedip.go create mode 100644 pkg/client/applyconfiguration/akash.network/v2beta1/providerleasedipspec.go create mode 100644 pkg/client/applyconfiguration/akash.network/v2beta1/providerleasedipstatus.go create mode 100644 pkg/client/applyconfiguration/akash.network/v2beta1/resourcepair.go create mode 100644 pkg/client/applyconfiguration/akash.network/v2beta1/resourceunits.go create mode 100644 pkg/client/applyconfiguration/akash.network/v2beta2/inventory.go create mode 100644 pkg/client/applyconfiguration/akash.network/v2beta2/inventoryclusterstorage.go create mode 100644 pkg/client/applyconfiguration/akash.network/v2beta2/inventoryrequest.go create mode 100644 pkg/client/applyconfiguration/akash.network/v2beta2/inventoryrequestspec.go create mode 100644 pkg/client/applyconfiguration/akash.network/v2beta2/inventoryrequeststatus.go create mode 100644 pkg/client/applyconfiguration/akash.network/v2beta2/inventoryspec.go create mode 100644 pkg/client/applyconfiguration/akash.network/v2beta2/inventorystatus.go create mode 100644 pkg/client/applyconfiguration/akash.network/v2beta2/leaseid.go create mode 100644 pkg/client/applyconfiguration/akash.network/v2beta2/manifest.go create mode 100644 pkg/client/applyconfiguration/akash.network/v2beta2/manifestgroup.go create mode 100644 pkg/client/applyconfiguration/akash.network/v2beta2/manifestservice.go create mode 100644 pkg/client/applyconfiguration/akash.network/v2beta2/manifestservicecredentials.go create mode 100644 pkg/client/applyconfiguration/akash.network/v2beta2/manifestserviceexpose.go create mode 100644 pkg/client/applyconfiguration/akash.network/v2beta2/manifestserviceexposehttpoptions.go create mode 100644 pkg/client/applyconfiguration/akash.network/v2beta2/manifestserviceparams.go create mode 100644 pkg/client/applyconfiguration/akash.network/v2beta2/manifestspec.go create mode 100644 pkg/client/applyconfiguration/akash.network/v2beta2/manifeststorageparams.go create mode 100644 pkg/client/applyconfiguration/akash.network/v2beta2/providerhost.go create mode 100644 pkg/client/applyconfiguration/akash.network/v2beta2/providerhostspec.go create mode 100644 pkg/client/applyconfiguration/akash.network/v2beta2/providerleasedip.go create mode 100644 pkg/client/applyconfiguration/akash.network/v2beta2/providerleasedipspec.go create mode 100644 pkg/client/applyconfiguration/akash.network/v2beta2/resourcecpu.go create mode 100644 pkg/client/applyconfiguration/akash.network/v2beta2/resourcegpu.go create mode 100644 pkg/client/applyconfiguration/akash.network/v2beta2/resourcememory.go create mode 100644 pkg/client/applyconfiguration/akash.network/v2beta2/resourcepair.go create mode 100644 pkg/client/applyconfiguration/akash.network/v2beta2/resources.go create mode 100644 pkg/client/applyconfiguration/akash.network/v2beta2/resourcevolume.go create mode 100644 pkg/client/applyconfiguration/akash.network/v2beta2/schedulerparams.go create mode 100644 pkg/client/applyconfiguration/akash.network/v2beta2/schedulerresourcegpu.go create mode 100644 pkg/client/applyconfiguration/akash.network/v2beta2/schedulerresources.go create mode 100644 pkg/client/applyconfiguration/internal/internal.go create mode 100644 pkg/client/applyconfiguration/utils.go diff --git a/.env b/.env index 45fd6b764..d97b5ebb1 100644 --- a/.env +++ b/.env @@ -1,4 +1,4 @@ -KINDEST_VERSION=v1.24.7 +KINDEST_VERSION=v1.32.0 GO111MODULE=on REDIS_VERSION=7 ROOT_DIR=${AP_ROOT} diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 8cd99410a..380efb3ae 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -138,32 +138,6 @@ jobs: with: files: .cache/tests/coverage.txt - codegen: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - name: Detect required Go version - run: | - toolchain=$(./script/tools.sh gotoolchain | sed 's/go*//') - echo "GOVERSION=${toolchain}" >> $GITHUB_ENV - - uses: actions/setup-go@v5 - with: - go-version: "${{ env.GOVERSION }}" - - name: Setup direnv - uses: HatsuneMiku3939/direnv-action@v1 - with: - masks: '' - - name: Run codegen - run: make codegen - - name: Ensure no files changed/added/removed - run: | - if [[ -z "$(git status --short)" ]]; then - git status - exit 1 - fi - yamlcheck: runs-on: ubuntu-latest steps: @@ -203,7 +177,6 @@ jobs: - lint - release-dry-run - coverage - - codegen - yamlcheck - shellcheck - integration-tests diff --git a/.gitignore b/.gitignore index 76f45b3c0..4a716c273 100644 --- a/.gitignore +++ b/.gitignore @@ -22,6 +22,8 @@ dist .idea/ *.iml .vscode +*.code-workspace + coverage.txt go.work diff --git a/_run/common-kind.mk b/_run/common-kind.mk index dac227f0e..ff3adc8fc 100644 --- a/_run/common-kind.mk +++ b/_run/common-kind.mk @@ -2,7 +2,9 @@ # KinD, it's fine to use other names locally, however in GH container name # is configured by engineerd/setup-kind. `kind-control-plane` is the docker # image's name in GH Actions. -export KIND_NAME ?= $(shell basename $$PWD) +KIND_NAME ?= $(shell basename $$PWD) + +export KIND_NAME ifeq (, $(KINDEST_VERSION)) $(error "KINDEST_VERSION is not set") diff --git a/_run/metallb.yaml b/_run/metallb.yaml index 0c4de7438..5192093c6 100644 --- a/_run/metallb.yaml +++ b/_run/metallb.yaml @@ -5,87 +5,87 @@ metadata: labels: app: metallb ---- -apiVersion: policy/v1beta1 -kind: PodSecurityPolicy -metadata: - labels: - app: metallb - name: controller - namespace: metallb-system -spec: - allowPrivilegeEscalation: false - allowedCapabilities: [] - allowedHostPaths: [] - defaultAddCapabilities: [] - defaultAllowPrivilegeEscalation: false - fsGroup: - ranges: - - max: 65535 - min: 1 - rule: MustRunAs - hostIPC: false - hostNetwork: false - hostPID: false - privileged: false - readOnlyRootFilesystem: true - requiredDropCapabilities: - - ALL - runAsUser: - ranges: - - max: 65535 - min: 1 - rule: MustRunAs - seLinux: - rule: RunAsAny - supplementalGroups: - ranges: - - max: 65535 - min: 1 - rule: MustRunAs - volumes: - - configMap - - secret - - emptyDir ---- -apiVersion: policy/v1beta1 -kind: PodSecurityPolicy -metadata: - labels: - app: metallb - name: speaker - namespace: metallb-system -spec: - allowPrivilegeEscalation: false - allowedCapabilities: - - NET_RAW - allowedHostPaths: [] - defaultAddCapabilities: [] - defaultAllowPrivilegeEscalation: false - fsGroup: - rule: RunAsAny - hostIPC: false - hostNetwork: true - hostPID: false - hostPorts: - - max: 7472 - min: 7472 - - max: 7946 - min: 7946 - privileged: true - readOnlyRootFilesystem: true - requiredDropCapabilities: - - ALL - runAsUser: - rule: RunAsAny - seLinux: - rule: RunAsAny - supplementalGroups: - rule: RunAsAny - volumes: - - configMap - - secret - - emptyDir +#--- +#apiVersion: policy/v1beta1 +#kind: PodSecurityPolicy +#metadata: +# labels: +# app: metallb +# name: controller +# namespace: metallb-system +#spec: +# allowPrivilegeEscalation: false +# allowedCapabilities: [] +# allowedHostPaths: [] +# defaultAddCapabilities: [] +# defaultAllowPrivilegeEscalation: false +# fsGroup: +# ranges: +# - max: 65535 +# min: 1 +# rule: MustRunAs +# hostIPC: false +# hostNetwork: false +# hostPID: false +# privileged: false +# readOnlyRootFilesystem: true +# requiredDropCapabilities: +# - ALL +# runAsUser: +# ranges: +# - max: 65535 +# min: 1 +# rule: MustRunAs +# seLinux: +# rule: RunAsAny +# supplementalGroups: +# ranges: +# - max: 65535 +# min: 1 +# rule: MustRunAs +# volumes: +# - configMap +# - secret +# - emptyDir +#--- +#apiVersion: policy/v1beta1 +#kind: PodSecurityPolicy +#metadata: +# labels: +# app: metallb +# name: speaker +# namespace: metallb-system +#spec: +# allowPrivilegeEscalation: false +# allowedCapabilities: +# - NET_RAW +# allowedHostPaths: [] +# defaultAddCapabilities: [] +# defaultAllowPrivilegeEscalation: false +# fsGroup: +# rule: RunAsAny +# hostIPC: false +# hostNetwork: true +# hostPID: false +# hostPorts: +# - max: 7472 +# min: 7472 +# - max: 7946 +# min: 7946 +# privileged: true +# readOnlyRootFilesystem: true +# requiredDropCapabilities: +# - ALL +# runAsUser: +# rule: RunAsAny +# seLinux: +# rule: RunAsAny +# supplementalGroups: +# rule: RunAsAny +# volumes: +# - configMap +# - secret +# - emptyDir --- apiVersion: v1 kind: ServiceAccount diff --git a/balance_checker.go b/balance_checker.go index 51a45ece2..a539fbfc3 100644 --- a/balance_checker.go +++ b/balance_checker.go @@ -7,7 +7,6 @@ import ( "github.com/boz/go-lifecycle" sdk "github.com/cosmos/cosmos-sdk/types" - btypes "github.com/cosmos/cosmos-sdk/x/bank/types" "github.com/tendermint/tendermint/libs/log" tmrpc "github.com/tendermint/tendermint/rpc/core/types" @@ -53,7 +52,6 @@ type balanceChecker struct { lc lifecycle.Lifecycle bus pubsub.Bus ownAddr sdk.AccAddress - bqc btypes.QueryClient aqc aclient.QueryClient leases map[mtypes.LeaseID]*leaseState cfg BalanceCheckerConfig @@ -66,13 +64,14 @@ type leaseCheckResponse struct { err error } -func newBalanceChecker(ctx context.Context, - bqc btypes.QueryClient, +func newBalanceChecker( + ctx context.Context, aqc aclient.QueryClient, accAddr sdk.AccAddress, clientSession session.Session, bus pubsub.Bus, - cfg BalanceCheckerConfig) (*balanceChecker, error) { + cfg BalanceCheckerConfig, +) (*balanceChecker, error) { bc := &balanceChecker{ ctx: ctx, @@ -81,7 +80,6 @@ func newBalanceChecker(ctx context.Context, bus: bus, lc: lifecycle.New(), ownAddr: accAddr, - bqc: bqc, aqc: aqc, leases: make(map[mtypes.LeaseID]*leaseState), cfg: cfg, diff --git a/cluster/inventory.go b/cluster/inventory.go index 8237f4376..5dde5cc90 100644 --- a/cluster/inventory.go +++ b/cluster/inventory.go @@ -655,13 +655,11 @@ loop: // readjust inventory accordingly with pending leases for _, r := range state.reservations { if !r.allocated { - // FIXME check is call for Adjust actually needed to be here if err := state.inventory.Adjust(r); err != nil { is.log.Error("adjust inventory for pending reservation", "error", err.Error()) } } } - // updateInventory(inv) case run := <-runch: runch = nil t.Reset(5 * time.Second) diff --git a/cluster/kube/apply.go b/cluster/kube/apply.go index e957af296..84b67bbca 100644 --- a/cluster/kube/apply.go +++ b/cluster/kube/apply.go @@ -4,7 +4,11 @@ package kube import ( "context" + "reflect" + appsv1 "k8s.io/api/apps/v1" + corev1 "k8s.io/api/core/v1" + netv1 "k8s.io/api/networking/v1" "k8s.io/apimachinery/pkg/api/errors" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/client-go/kubernetes" @@ -12,190 +16,247 @@ import ( metricsutils "github.com/akash-network/node/util/metrics" "github.com/akash-network/provider/cluster/kube/builder" + crd "github.com/akash-network/provider/pkg/apis/akash.network/v2beta2" crdapi "github.com/akash-network/provider/pkg/client/clientset/versioned" ) -func applyNS(ctx context.Context, kc kubernetes.Interface, b builder.NS) error { - obj, err := kc.CoreV1().Namespaces().Get(ctx, b.Name(), metav1.GetOptions{}) +func applyNS(ctx context.Context, kc kubernetes.Interface, b builder.NS) (*corev1.Namespace, *corev1.Namespace, *corev1.Namespace, error) { + oobj, err := kc.CoreV1().Namespaces().Get(ctx, b.Name(), metav1.GetOptions{}) metricsutils.IncCounterVecWithLabelValuesFiltered(kubeCallsCounter, "namespaces-get", err, errors.IsNotFound) + var nobj *corev1.Namespace + var uobj *corev1.Namespace + switch { case err == nil: - obj, err = b.Update(obj) - if err == nil { - _, err = kc.CoreV1().Namespaces().Update(ctx, obj, metav1.UpdateOptions{}) + curr := oobj.DeepCopy() + oobj, err = b.Update(oobj) + + if err == nil && (!b.IsObjectRevisionLatest(oobj.Labels) || + !reflect.DeepEqual(&curr.Spec, &oobj.Spec) || + !reflect.DeepEqual(curr.Labels, oobj.Labels)) { + uobj, err = kc.CoreV1().Namespaces().Update(ctx, oobj, metav1.UpdateOptions{}) metricsutils.IncCounterVecWithLabelValues(kubeCallsCounter, "namespaces-update", err) } case errors.IsNotFound(err): - obj, err = b.Create() + oobj, err = b.Create() if err == nil { - _, err = kc.CoreV1().Namespaces().Create(ctx, obj, metav1.CreateOptions{}) + nobj, err = kc.CoreV1().Namespaces().Create(ctx, oobj, metav1.CreateOptions{}) metricsutils.IncCounterVecWithLabelValues(kubeCallsCounter, "namespaces-create", err) } } - return err + + return nobj, uobj, oobj, err } // Apply list of Network Policies -func applyNetPolicies(ctx context.Context, kc kubernetes.Interface, b builder.NetPol) error { +func applyNetPolicies(ctx context.Context, kc kubernetes.Interface, b builder.NetPol) ([]netv1.NetworkPolicy, []netv1.NetworkPolicy, []netv1.NetworkPolicy, error) { var err error policies, err := b.Create() if err != nil { - return err + return nil, nil, nil, err } + currPolicies, err := kc.NetworkingV1().NetworkPolicies(b.NS()).List(ctx, metav1.ListOptions{}) + if err != nil { + return nil, nil, nil, err + } + + var nobjs []netv1.NetworkPolicy + var uobjs []netv1.NetworkPolicy + oobjs := currPolicies.Items + for _, pol := range policies { - obj, err := kc.NetworkingV1().NetworkPolicies(b.NS()).Get(ctx, pol.Name, metav1.GetOptions{}) + oobj, err := kc.NetworkingV1().NetworkPolicies(b.NS()).Get(ctx, pol.Name, metav1.GetOptions{}) metricsutils.IncCounterVecWithLabelValuesFiltered(kubeCallsCounter, "networking-policies-get", err, errors.IsNotFound) + var nobj *netv1.NetworkPolicy + var uobj *netv1.NetworkPolicy + switch { case err == nil: - _, err = b.Update(obj) - if err == nil { - _, err = kc.NetworkingV1().NetworkPolicies(b.NS()).Update(ctx, pol, metav1.UpdateOptions{}) + curr := oobj.DeepCopy() + oobj, err = b.Update(oobj) + + if err == nil && (!b.IsObjectRevisionLatest(curr.Labels) || + !reflect.DeepEqual(&curr.Spec, &oobj.Spec) || + !reflect.DeepEqual(curr.Labels, oobj.Labels)) { + uobj, err = kc.NetworkingV1().NetworkPolicies(b.NS()).Update(ctx, pol, metav1.UpdateOptions{}) metricsutils.IncCounterVecWithLabelValues(kubeCallsCounter, "networking-policies-update", err) + if err == nil { + uobjs = append(uobjs, *uobj) + } } case errors.IsNotFound(err): - _, err = kc.NetworkingV1().NetworkPolicies(b.NS()).Create(ctx, pol, metav1.CreateOptions{}) + nobj, err = kc.NetworkingV1().NetworkPolicies(b.NS()).Create(ctx, pol, metav1.CreateOptions{}) metricsutils.IncCounterVecWithLabelValues(kubeCallsCounter, "networking-policies-create", err) + if err == nil { + nobjs = append(nobjs, *nobj) + } } + if err != nil { break } } - return err + return nobjs, uobjs, oobjs, err } -// TODO: re-enable. see #946 -// func applyRestrictivePodSecPoliciesToNS(ctx context.Context, kc kubernetes.Interface, p builder.PspRestricted) error { -// obj, err := kc.PolicyV1beta1().PodSecurityPolicies().Get(ctx, p.Name(), metav1.GetOptions{}) -// switch { -// case err == nil: -// obj, err = p.Update(obj) -// if err == nil { -// _, err = kc.PolicyV1beta1().PodSecurityPolicies().Update(ctx, obj, metav1.UpdateOptions{}) -// } -// case errors.IsNotFound(err): -// obj, err = p.Create() -// if err == nil { -// _, err = kc.PolicyV1beta1().PodSecurityPolicies().Create(ctx, obj, metav1.CreateOptions{}) -// } -// } -// return err -// } - -func applyServiceCredentials(ctx context.Context, kc kubernetes.Interface, b builder.ServiceCredentials) error { - obj, err := kc.CoreV1().Secrets(b.NS()).Get(ctx, b.Name(), metav1.GetOptions{}) +func applyServiceCredentials(ctx context.Context, kc kubernetes.Interface, b builder.ServiceCredentials) (*corev1.Secret, *corev1.Secret, *corev1.Secret, error) { + oobj, err := kc.CoreV1().Secrets(b.NS()).Get(ctx, b.Name(), metav1.GetOptions{}) metricsutils.IncCounterVecWithLabelValuesFiltered(kubeCallsCounter, "secrets-get", err, errors.IsNotFound) + var nobj *corev1.Secret + var uobj *corev1.Secret + switch { case err == nil: - obj, err = b.Update(obj) - if err == nil { - _, err = kc.CoreV1().Secrets(b.NS()).Update(ctx, obj, metav1.UpdateOptions{}) + curr := oobj.DeepCopy() + oobj, err = b.Update(oobj) + if err == nil && (!b.IsObjectRevisionLatest(curr.Labels) || + !reflect.DeepEqual(&curr.Data, &oobj.Data) || + !reflect.DeepEqual(curr.Labels, oobj.Labels)) { + uobj, err = kc.CoreV1().Secrets(b.NS()).Update(ctx, oobj, metav1.UpdateOptions{}) metricsutils.IncCounterVecWithLabelValues(kubeCallsCounter, "secrets-get", err) - } case errors.IsNotFound(err): - obj, err = b.Create() + oobj, err = b.Create() if err == nil { - _, err = kc.CoreV1().Secrets(b.NS()).Create(ctx, obj, metav1.CreateOptions{}) + nobj, err = kc.CoreV1().Secrets(b.NS()).Create(ctx, oobj, metav1.CreateOptions{}) metricsutils.IncCounterVecWithLabelValues(kubeCallsCounter, "secrets-create", err) } } - return err + + return nobj, uobj, oobj, err } -func applyDeployment(ctx context.Context, kc kubernetes.Interface, b builder.Deployment) error { - obj, err := kc.AppsV1().Deployments(b.NS()).Get(ctx, b.Name(), metav1.GetOptions{}) +func applyDeployment(ctx context.Context, kc kubernetes.Interface, b builder.Deployment) (*appsv1.Deployment, *appsv1.Deployment, *appsv1.Deployment, error) { + oobj, err := kc.AppsV1().Deployments(b.NS()).Get(ctx, b.Name(), metav1.GetOptions{}) metricsutils.IncCounterVecWithLabelValuesFiltered(kubeCallsCounter, "deployments-get", err, errors.IsNotFound) + var nobj *appsv1.Deployment + var uobj *appsv1.Deployment + switch { case err == nil: - obj, err = b.Update(obj) - - if err == nil { - _, err = kc.AppsV1().Deployments(b.NS()).Update(ctx, obj, metav1.UpdateOptions{}) + curr := oobj.DeepCopy() + oobj, err = b.Update(oobj) + if err == nil && (b.IsObjectRevisionLatest(curr.Labels) || + !reflect.DeepEqual(&curr.Spec, &oobj.Spec) || + !reflect.DeepEqual(curr.Labels, oobj.Labels)) { + uobj, err = kc.AppsV1().Deployments(b.NS()).Update(ctx, oobj, metav1.UpdateOptions{}) metricsutils.IncCounterVecWithLabelValues(kubeCallsCounter, "deployments-update", err) - } case errors.IsNotFound(err): - obj, err = b.Create() + oobj, err = b.Create() if err == nil { - _, err = kc.AppsV1().Deployments(b.NS()).Create(ctx, obj, metav1.CreateOptions{}) + nobj, err = kc.AppsV1().Deployments(b.NS()).Create(ctx, oobj, metav1.CreateOptions{}) metricsutils.IncCounterVecWithLabelValues(kubeCallsCounter, "deployments-create", err) } } - return err + + return nobj, uobj, oobj, err } -func applyStatefulSet(ctx context.Context, kc kubernetes.Interface, b builder.StatefulSet) error { - obj, err := kc.AppsV1().StatefulSets(b.NS()).Get(ctx, b.Name(), metav1.GetOptions{}) +func applyStatefulSet(ctx context.Context, kc kubernetes.Interface, b builder.StatefulSet) (*appsv1.StatefulSet, *appsv1.StatefulSet, *appsv1.StatefulSet, error) { + oobj, err := kc.AppsV1().StatefulSets(b.NS()).Get(ctx, b.Name(), metav1.GetOptions{}) metricsutils.IncCounterVecWithLabelValuesFiltered(kubeCallsCounter, "statefulset-get", err, errors.IsNotFound) + var nobj *appsv1.StatefulSet + var uobj *appsv1.StatefulSet + switch { case err == nil: - obj, err = b.Update(obj) - - if err == nil { - _, err = kc.AppsV1().StatefulSets(b.NS()).Update(ctx, obj, metav1.UpdateOptions{}) + curr := oobj.DeepCopy() + oobj, err = b.Update(oobj) + if err == nil && (b.IsObjectRevisionLatest(curr.Labels) || + !reflect.DeepEqual(&curr.Spec, &oobj.Spec) || + !reflect.DeepEqual(curr.Labels, oobj.Labels)) { + uobj, err = kc.AppsV1().StatefulSets(b.NS()).Update(ctx, oobj, metav1.UpdateOptions{}) metricsutils.IncCounterVecWithLabelValues(kubeCallsCounter, "statefulset-update", err) } case errors.IsNotFound(err): - obj, err = b.Create() + oobj, err = b.Create() if err == nil { - _, err = kc.AppsV1().StatefulSets(b.NS()).Create(ctx, obj, metav1.CreateOptions{}) + nobj, err = kc.AppsV1().StatefulSets(b.NS()).Create(ctx, oobj, metav1.CreateOptions{}) metricsutils.IncCounterVecWithLabelValues(kubeCallsCounter, "statefulset-create", err) } } - return err + + return nobj, uobj, oobj, err } -func applyService(ctx context.Context, kc kubernetes.Interface, b builder.Service) error { - obj, err := kc.CoreV1().Services(b.NS()).Get(ctx, b.Name(), metav1.GetOptions{}) +func applyService(ctx context.Context, kc kubernetes.Interface, b builder.Service) (*corev1.Service, *corev1.Service, *corev1.Service, error) { + oobj, err := kc.CoreV1().Services(b.NS()).Get(ctx, b.Name(), metav1.GetOptions{}) metricsutils.IncCounterVecWithLabelValuesFiltered(kubeCallsCounter, "services-get", err, errors.IsNotFound) + var nobj *corev1.Service + var uobj *corev1.Service switch { case err == nil: - obj, err = b.Update(obj) - if err == nil { - _, err = kc.CoreV1().Services(b.NS()).Update(ctx, obj, metav1.UpdateOptions{}) + curr := oobj.DeepCopy() + oobj, err = b.Update(oobj) + if err == nil && (b.IsObjectRevisionLatest(curr.Labels) || + !reflect.DeepEqual(&curr.Spec, &oobj.Spec) || + !reflect.DeepEqual(curr.Labels, oobj.Labels)) { + uobj, err = kc.CoreV1().Services(b.NS()).Update(ctx, oobj, metav1.UpdateOptions{}) metricsutils.IncCounterVecWithLabelValues(kubeCallsCounter, "services-update", err) } case errors.IsNotFound(err): - obj, err = b.Create() + oobj, err = b.Create() if err == nil { - _, err = kc.CoreV1().Services(b.NS()).Create(ctx, obj, metav1.CreateOptions{}) + nobj, err = kc.CoreV1().Services(b.NS()).Create(ctx, oobj, metav1.CreateOptions{}) metricsutils.IncCounterVecWithLabelValues(kubeCallsCounter, "services-create", err) } } - return err -} -func applyManifest(ctx context.Context, kc crdapi.Interface, b builder.Manifest) error { - obj, err := kc.AkashV2beta2().Manifests(b.NS()).Get(ctx, b.Name(), metav1.GetOptions{}) + return nobj, uobj, oobj, err +} +func applyManifest(ctx context.Context, kc crdapi.Interface, b builder.Manifest) (*crd.Manifest, *crd.Manifest, *crd.Manifest, error) { + oobj, err := kc.AkashV2beta2().Manifests(b.NS()).Get(ctx, b.Name(), metav1.GetOptions{}) metricsutils.IncCounterVecWithLabelValuesFiltered(kubeCallsCounter, "akash-manifests-get", err, errors.IsNotFound) + var nobj *crd.Manifest + var uobj *crd.Manifest + switch { case err == nil: - // TODO - only run this update if it would change something - obj, err = b.Update(obj) - if err == nil { - _, err = kc.AkashV2beta2().Manifests(b.NS()).Update(ctx, obj, metav1.UpdateOptions{}) + curr := oobj.DeepCopy() + oobj, err = b.Update(oobj) + if err == nil && (!reflect.DeepEqual(&curr.Spec, &oobj.Spec) || !reflect.DeepEqual(curr.Labels, oobj.Labels)) { + uobj, err = kc.AkashV2beta2().Manifests(b.NS()).Update(ctx, oobj, metav1.UpdateOptions{}) metricsutils.IncCounterVecWithLabelValues(kubeCallsCounter, "akash-manifests-update", err) } case errors.IsNotFound(err): - obj, err = b.Create() + oobj, err = b.Create() if err == nil { - _, err = kc.AkashV2beta2().Manifests(b.NS()).Create(ctx, obj, metav1.CreateOptions{}) + nobj, err = kc.AkashV2beta2().Manifests(b.NS()).Create(ctx, oobj, metav1.CreateOptions{}) metricsutils.IncCounterVecWithLabelValues(kubeCallsCounter, "akash-manifests-create", err) } } - return err + return nobj, uobj, oobj, err } + +// TODO: re-enable. see #946 +// func applyRestrictivePodSecPoliciesToNS(ctx context.Context, kc kubernetes.Interface, p builder.PspRestricted) error { +// obj, err := kc.PolicyV1beta1().PodSecurityPolicies().Get(ctx, p.Name(), metav1.GetOptions{}) +// switch { +// case err == nil: +// obj, err = p.Update(obj) +// if err == nil { +// _, err = kc.PolicyV1beta1().PodSecurityPolicies().Update(ctx, obj, metav1.UpdateOptions{}) +// } +// case errors.IsNotFound(err): +// obj, err = p.Create() +// if err == nil { +// _, err = kc.PolicyV1beta1().PodSecurityPolicies().Create(ctx, obj, metav1.CreateOptions{}) +// } +// } +// return err +// } diff --git a/cluster/kube/builder/builder.go b/cluster/kube/builder/builder.go index 92a205d4e..f7d017d7c 100644 --- a/cluster/kube/builder/builder.go +++ b/cluster/kube/builder/builder.go @@ -5,6 +5,7 @@ import ( "fmt" "reflect" "strconv" + "strings" corev1 "k8s.io/api/core/v1" "k8s.io/apimachinery/pkg/util/intstr" @@ -36,6 +37,7 @@ const ( AkashLeaseProviderLabelName = "akash.network/lease.id.provider" AkashLeaseManifestVersion = "akash.network/manifest.version" AkashLeaseUpdatedAt = "akash.network/lease.updated_at" + AkashManifestResourceVersion = "akash.network/manifest.resource.version" ) const ( @@ -72,13 +74,16 @@ type IClusterDeployment interface { ManifestGroup() *mani.Group UpdateManifest() bool ClusterParams() crd.ClusterSettings + SetResourceVersion(string) + GetResourceVersion() string } type ClusterDeployment struct { - Lid mtypes.LeaseID - Group *mani.Group - Sparams crd.ClusterSettings - updateManifest bool + Lid mtypes.LeaseID + Group *mani.Group + Sparams crd.ClusterSettings + resourceVersion string + updateManifest bool } var _ IClusterDeployment = (*ClusterDeployment)(nil) @@ -107,10 +112,11 @@ func ClusterDeploymentFromDeployment(d ctypes.IDeployment) (IClusterDeployment, } cd := &ClusterDeployment{ - Lid: d.LeaseID(), - Group: d.ManifestGroup(), - Sparams: cparams, - updateManifest: updateManifest, + Lid: d.LeaseID(), + Group: d.ManifestGroup(), + Sparams: cparams, + resourceVersion: d.ResourceVersion(), + updateManifest: updateManifest, } if err := cd.validate(); err != nil { @@ -151,6 +157,14 @@ func (d *ClusterDeployment) ClusterParams() crd.ClusterSettings { return d.Sparams } +func (d *ClusterDeployment) SetResourceVersion(val string) { + d.resourceVersion = val +} + +func (d *ClusterDeployment) GetResourceVersion() string { + return d.resourceVersion +} + func (d *ClusterDeployment) UpdateManifest() bool { return d.updateManifest } @@ -195,6 +209,7 @@ type builderBase interface { NS() string Name() string Validate() error + IsObjectRevisionLatest(map[string]string) bool } type builder struct { @@ -214,16 +229,38 @@ func (b *builder) Name() string { } func (b *builder) labels() map[string]string { - return map[string]string{ + res := map[string]string{ AkashManagedLabelName: "true", akashNetworkNamespace: LidNS(b.deployment.LeaseID()), } + + res[AkashManifestResourceVersion] = b.deployment.GetResourceVersion() + + return res +} + +func (b *builder) selectorLabels() map[string]string { + res := map[string]string{ + AkashManagedLabelName: "true", + akashNetworkNamespace: LidNS(b.deployment.LeaseID()), + } + + return res } func (b *builder) Validate() error { return nil } +func (b *builder) IsObjectRevisionLatest(labels map[string]string) bool { + objVersion, exists := labels[AkashManifestResourceVersion] + if !exists { + return false + } + + return b.deployment.GetResourceVersion() == objVersion +} + func addIfNotPresent(envVarsAlreadyAdded map[string]int, env []corev1.EnvVar, key string, value interface{}) []corev1.EnvVar { _, exists := envVarsAlreadyAdded[key] if exists { @@ -251,5 +288,22 @@ func AppendLeaseLabels(lid mtypes.LeaseID, labels map[string]string) map[string] labels[AkashLeaseGSeqLabelName] = strconv.FormatUint(uint64(lid.GSeq), 10) labels[AkashLeaseOSeqLabelName] = strconv.FormatUint(uint64(lid.OSeq), 10) labels[AkashLeaseProviderLabelName] = lid.Provider + return labels } + +func updateAkashLabels(currLabels, newLabels map[string]string) map[string]string { + res := make(map[string]string) + + for name, val := range currLabels { + if !strings.HasPrefix(name, AkashManagedLabelName) { + res[name] = val + } + } + + for name, val := range newLabels { + res[name] = val + } + + return res +} diff --git a/cluster/kube/builder/deployment.go b/cluster/kube/builder/deployment.go index 5769d76a2..aeaf886fc 100644 --- a/cluster/kube/builder/deployment.go +++ b/cluster/kube/builder/deployment.go @@ -38,7 +38,7 @@ func (b *deployment) Create() (*appsv1.Deployment, error) { // nolint:golint,unp }, Spec: appsv1.DeploymentSpec{ Selector: &metav1.LabelSelector{ - MatchLabels: b.labels(), + MatchLabels: b.selectorLabels(), }, Replicas: b.replicas(), Template: corev1.PodTemplateSpec{ @@ -53,8 +53,8 @@ func (b *deployment) Create() (*appsv1.Deployment, error) { // nolint:golint,unp }, AutomountServiceAccountToken: &falseValue, Containers: []corev1.Container{b.container()}, - ImagePullSecrets: b.imagePullSecrets(), - Volumes: b.volumes(), + ImagePullSecrets: b.secretsRefs, + Volumes: b.volumesObjs, }, }, }, @@ -64,8 +64,8 @@ func (b *deployment) Create() (*appsv1.Deployment, error) { // nolint:golint,unp } func (b *deployment) Update(obj *appsv1.Deployment) (*appsv1.Deployment, error) { // nolint:golint,unparam - obj.Labels = b.labels() - obj.Spec.Selector.MatchLabels = b.labels() + obj.Labels = updateAkashLabels(obj.Labels, b.labels()) + obj.Spec.Selector.MatchLabels = b.selectorLabels() obj.Spec.Replicas = b.replicas() obj.Spec.Template.Labels = b.labels() obj.Spec.Template.Spec.Affinity = b.affinity() diff --git a/cluster/kube/builder/namespace.go b/cluster/kube/builder/namespace.go index af4079649..e28de2554 100644 --- a/cluster/kube/builder/namespace.go +++ b/cluster/kube/builder/namespace.go @@ -36,6 +36,7 @@ func (b *ns) Create() (*corev1.Namespace, error) { // nolint:golint,unparam func (b *ns) Update(obj *corev1.Namespace) (*corev1.Namespace, error) { // nolint:golint,unparam obj.Name = b.NS() - obj.Labels = b.labels() + obj.Labels = updateAkashLabels(obj.Labels, b.labels()) + return obj, nil } diff --git a/cluster/kube/builder/netpol.go b/cluster/kube/builder/netpol.go index d0598941d..6ebfbaa8a 100644 --- a/cluster/kube/builder/netpol.go +++ b/cluster/kube/builder/netpol.go @@ -242,6 +242,7 @@ func (b *netPol) Create() ([]*netv1.NetworkPolicy, error) { // nolint:golint,unp // Update a single NetworkPolicy with correct labels. func (b *netPol) Update(obj *netv1.NetworkPolicy) (*netv1.NetworkPolicy, error) { // nolint:golint,unparam - obj.Labels = b.labels() + obj.Labels = updateAkashLabels(obj.Labels, b.labels()) + return obj, nil } diff --git a/cluster/kube/builder/service.go b/cluster/kube/builder/service.go index fb8009de8..58079f4dc 100644 --- a/cluster/kube/builder/service.go +++ b/cluster/kube/builder/service.go @@ -63,7 +63,7 @@ func (b *service) Create() (*corev1.Service, error) { // nolint:golint,unparam }, Spec: corev1.ServiceSpec{ Type: b.workloadServiceType(), - Selector: b.labels(), + Selector: b.selectorLabels(), Ports: ports, }, } @@ -72,8 +72,8 @@ func (b *service) Create() (*corev1.Service, error) { // nolint:golint,unparam } func (b *service) Update(obj *corev1.Service) (*corev1.Service, error) { // nolint:golint,unparam - obj.Labels = b.labels() - obj.Spec.Selector = b.labels() + obj.Labels = updateAkashLabels(obj.Labels, b.labels()) + obj.Spec.Selector = b.selectorLabels() ports, err := b.ports() if err != nil { return nil, err diff --git a/cluster/kube/builder/service_credentials.go b/cluster/kube/builder/service_credentials.go index bad65f9fe..65cd44312 100644 --- a/cluster/kube/builder/service_credentials.go +++ b/cluster/kube/builder/service_credentials.go @@ -12,39 +12,32 @@ import ( ) type ServiceCredentials interface { - NS() string - Name() string + workloadBase Create() (*corev1.Secret, error) Update(obj *corev1.Secret) (*corev1.Secret, error) } type serviceCredentials struct { - ns string - serviceName string + Workload + // ns string + // serviceName string credentials *mani.ServiceImageCredentials - // TODO: labels for deleting - // labels map[string]string } -func NewServiceCredentials(ns string, serviceName string, credentials *mani.ServiceImageCredentials) ServiceCredentials { - return serviceCredentials{ - ns: ns, - serviceName: serviceName, +func NewServiceCredentials(workload Workload, credentials *mani.ServiceImageCredentials) ServiceCredentials { + return &serviceCredentials{ + Workload: workload, credentials: credentials, } } -func (b serviceCredentials) NS() string { - return b.ns -} - func (b serviceCredentials) Name() string { - return fmt.Sprintf("docker-creds-%v", b.serviceName) + svc := &b.deployment.ManifestGroup().Services[b.serviceIdx] + return fmt.Sprintf("docker-creds-%v", svc.Name) } func (b serviceCredentials) Create() (*corev1.Secret, error) { // see https://github.com/kubernetes/kubectl/blob/master/pkg/cmd/create/create_secret_docker.go#L280-L298 - data, err := b.encodeSecret() if err != nil { return nil, err @@ -52,8 +45,9 @@ func (b serviceCredentials) Create() (*corev1.Secret, error) { obj := &corev1.Secret{ ObjectMeta: metav1.ObjectMeta{ - Namespace: b.ns, + Namespace: b.NS(), Name: b.Name(), + Labels: b.labels(), }, Data: map[string][]byte{ corev1.DockerConfigJsonKey: data, @@ -66,16 +60,18 @@ func (b serviceCredentials) Create() (*corev1.Secret, error) { func (b serviceCredentials) Update(obj *corev1.Secret) (*corev1.Secret, error) { // see https://github.com/kubernetes/kubectl/blob/master/pkg/cmd/create/create_secret_docker.go#L280-L298 - data, err := b.encodeSecret() if err != nil { return nil, err } + obj.Labels = updateAkashLabels(obj.Labels, b.labels()) + obj.Data = map[string][]byte{ corev1.DockerConfigJsonKey: data, } obj.Type = corev1.SecretTypeDockerConfigJson + return obj, nil } @@ -102,6 +98,7 @@ func (b serviceCredentials) encodeSecret() ([]byte, error) { b.credentials.Host: entry, }, } + return json.Marshal(creds) } diff --git a/cluster/kube/builder/statefulset.go b/cluster/kube/builder/statefulset.go index 0b43be118..f58c10e0c 100644 --- a/cluster/kube/builder/statefulset.go +++ b/cluster/kube/builder/statefulset.go @@ -38,7 +38,7 @@ func (b *statefulSet) Create() (*appsv1.StatefulSet, error) { // nolint:golint,u }, Spec: appsv1.StatefulSetSpec{ Selector: &metav1.LabelSelector{ - MatchLabels: b.labels(), + MatchLabels: b.selectorLabels(), }, Replicas: b.replicas(), Template: corev1.PodTemplateSpec{ @@ -53,11 +53,11 @@ func (b *statefulSet) Create() (*appsv1.StatefulSet, error) { // nolint:golint,u }, AutomountServiceAccountToken: &falseValue, Containers: []corev1.Container{b.container()}, - ImagePullSecrets: b.imagePullSecrets(), - Volumes: b.volumes(), + ImagePullSecrets: b.secretsRefs, + Volumes: b.volumesObjs, }, }, - VolumeClaimTemplates: b.persistentVolumeClaims(), + VolumeClaimTemplates: b.pvcsObjs, }, } @@ -65,8 +65,8 @@ func (b *statefulSet) Create() (*appsv1.StatefulSet, error) { // nolint:golint,u } func (b *statefulSet) Update(obj *appsv1.StatefulSet) (*appsv1.StatefulSet, error) { // nolint:golint,unparam - obj.Labels = b.labels() - obj.Spec.Selector.MatchLabels = b.labels() + obj.Labels = updateAkashLabels(obj.Labels, b.labels()) + obj.Spec.Selector.MatchLabels = b.selectorLabels() obj.Spec.Replicas = b.replicas() obj.Spec.Template.Labels = b.labels() obj.Spec.Template.Spec.Affinity = b.affinity() diff --git a/cluster/kube/builder/workload.go b/cluster/kube/builder/workload.go index 34aea5617..e983143b6 100644 --- a/cluster/kube/builder/workload.go +++ b/cluster/kube/builder/workload.go @@ -31,7 +31,10 @@ type workloadBase interface { type Workload struct { builder - serviceIdx int + serviceIdx int + volumesObjs []corev1.Volume + pvcsObjs []corev1.PersistentVolumeClaim + secretsRefs []corev1.LocalObjectReference } var _ workloadBase = (*Workload)(nil) @@ -41,7 +44,7 @@ func NewWorkloadBuilder( settings Settings, deployment IClusterDeployment, serviceIdx int) Workload { - return Workload{ + res := Workload{ builder: builder{ settings: settings, log: log.With("module", "kube-builder"), @@ -49,6 +52,12 @@ func NewWorkloadBuilder( }, serviceIdx: serviceIdx, } + + res.volumesObjs = res.volumes() + res.pvcsObjs = res.persistentVolumeClaims() + res.secretsRefs = res.imagePullSecrets() + + return res } func (b *Workload) Name() string { @@ -175,7 +184,6 @@ func (b *Workload) volumes() []corev1.Volume { service := &b.deployment.ManifestGroup().Services[b.serviceIdx] for _, storage := range service.Resources.Storage { - // Only RAM volumes sclass, ok := storage.Attributes.Find(sdl.StorageAttributeClass).AsString() if !ok || sclass != sdl.StorageClassRAM { @@ -222,7 +230,7 @@ func (b *Workload) persistentVolumeClaims() []corev1.PersistentVolumeClaim { }, Spec: corev1.PersistentVolumeClaimSpec{ AccessModes: []corev1.PersistentVolumeAccessMode{corev1.ReadWriteOnce}, - Resources: corev1.ResourceRequirements{ + Resources: corev1.VolumeResourceRequirements{ Limits: make(corev1.ResourceList), Requests: make(corev1.ResourceList), }, @@ -363,16 +371,23 @@ func nodeSelectorsFromResources(res *crd.SchedulerResources) []corev1.NodeSelect func (b *Workload) labels() map[string]string { obj := b.builder.labels() obj[AkashManifestServiceLabelName] = b.deployment.ManifestGroup().Services[b.serviceIdx].Name + return obj } -func (b *Workload) imagePullSecrets() []corev1.LocalObjectReference { +func (b *Workload) selectorLabels() map[string]string { + obj := b.builder.selectorLabels() + obj[AkashManifestServiceLabelName] = b.deployment.ManifestGroup().Services[b.serviceIdx].Name + return obj +} + +func (b *Workload) imagePullSecrets() []corev1.LocalObjectReference { sname := b.settings.DockerImagePullSecretsName service := &b.deployment.ManifestGroup().Services[b.serviceIdx] if service.Credentials != nil { - sname = NewServiceCredentials(b.NS(), b.Name(), service.Credentials).Name() + sname = NewServiceCredentials(*b, service.Credentials).Name() } if sname == "" { diff --git a/cluster/kube/cleanup.go b/cluster/kube/cleanup.go index 99d85c349..f1d74918f 100644 --- a/cluster/kube/cleanup.go +++ b/cluster/kube/cleanup.go @@ -46,6 +46,13 @@ func cleanupStaleResources(ctx context.Context, kc kubernetes.Interface, lid mty return err } + // delete stale deployments + if err := kc.AppsV1().StatefulSets(ns).DeleteCollection(ctx, metav1.DeleteOptions{}, metav1.ListOptions{ + LabelSelector: selector, + }); err != nil { + return err + } + // delete stale services (no DeleteCollection) services, err := kc.CoreV1().Services(ns).List(ctx, metav1.ListOptions{ LabelSelector: selector, diff --git a/cluster/kube/client.go b/cluster/kube/client.go index cabfcc6ba..0ae1f79ea 100644 --- a/cluster/kube/client.go +++ b/cluster/kube/client.go @@ -6,14 +6,19 @@ import ( "fmt" "io" "runtime/debug" + "slices" "strings" + mapi "github.com/akash-network/akash-api/go/manifest/v2beta2" + dtypes "github.com/akash-network/akash-api/go/node/deployment/v1beta3" + mtypes "github.com/akash-network/akash-api/go/node/market/v1beta4" "github.com/prometheus/client_golang/prometheus" "github.com/prometheus/client_golang/prometheus/promauto" "github.com/tendermint/tendermint/libs/log" appsv1 "k8s.io/api/apps/v1" corev1 "k8s.io/api/core/v1" eventsv1 "k8s.io/api/events/v1" + netv1 "k8s.io/api/networking/v1" kerrors "k8s.io/apimachinery/pkg/api/errors" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/version" @@ -21,10 +26,6 @@ import ( "k8s.io/client-go/kubernetes" restclient "k8s.io/client-go/rest" - mapi "github.com/akash-network/akash-api/go/manifest/v2beta2" - dtypes "github.com/akash-network/akash-api/go/node/deployment/v1beta3" - mtypes "github.com/akash-network/akash-api/go/node/market/v1beta4" - "github.com/akash-network/node/sdl" metricsutils "github.com/akash-network/node/util/metrics" @@ -66,6 +67,8 @@ func (c *client) String() string { func wrapKubeCall[T any](label string, fn func() (T, error)) (T, error) { res, err := fn() + _ = "https://github.com/akash-network/provider/blob/main/cluster/kube/client.go#L70" + status := metricsutils.SuccessLabel if err != nil { status = metricsutils.FailLabel @@ -200,6 +203,117 @@ type deploymentApplies struct { services []*deploymentService } +type previousObj struct { + nmani *crd.Manifest + umani *crd.Manifest + omani *crd.Manifest + nns *corev1.Namespace + uns *corev1.Namespace + ons *corev1.Namespace + nNetPolicies []netv1.NetworkPolicy + uNetPolicies []netv1.NetworkPolicy + oNetPolicies []netv1.NetworkPolicy + nServiceCreds []*corev1.Secret + uServiceCreds []*corev1.Secret + oServiceCreds []*corev1.Secret + nStatefulSets []*appsv1.StatefulSet + uStatefulSets []*appsv1.StatefulSet + oStatefulSets []*appsv1.StatefulSet + nDeployments []*appsv1.Deployment + uDeployments []*appsv1.Deployment + oDeployments []*appsv1.Deployment + nLocalServices []*corev1.Service + uLocalServices []*corev1.Service + oLocalServices []*corev1.Service + nGlobalServices []*corev1.Service + uGlobalServices []*corev1.Service + oGlobalServices []*corev1.Service +} + +func (p *previousObj) recover(ctx context.Context, kc kubernetes.Interface, ac akashclient.Interface) []error { + var errs []error + + for _, val := range slices.Backward(p.nGlobalServices) { + if err := kc.CoreV1().Services(val.Namespace).Delete(ctx, val.Name, metav1.DeleteOptions{}); err != nil { + errs = append(errs, err) + } + } + + for _, val := range slices.Backward(p.oGlobalServices) { + if _, err := kc.CoreV1().Services(val.Namespace).Update(ctx, val, metav1.UpdateOptions{}); err != nil { + errs = append(errs, err) + } + } + + for _, val := range slices.Backward(p.nLocalServices) { + if err := kc.CoreV1().Services(val.Namespace).Delete(ctx, val.Name, metav1.DeleteOptions{}); err != nil { + errs = append(errs, err) + } + } + + for _, val := range slices.Backward(p.oLocalServices) { + if _, err := kc.CoreV1().Services(val.Namespace).Update(ctx, val, metav1.UpdateOptions{}); err != nil { + errs = append(errs, err) + } + } + + for _, val := range slices.Backward(p.oDeployments) { + if _, err := kc.AppsV1().Deployments(val.Namespace).Update(ctx, val, metav1.UpdateOptions{}); err != nil { + errs = append(errs, err) + } + } + + for _, val := range slices.Backward(p.oStatefulSets) { + if _, err := kc.AppsV1().StatefulSets(val.Namespace).Update(ctx, val, metav1.UpdateOptions{}); err != nil { + errs = append(errs, err) + } + } + + for _, val := range slices.Backward(p.nServiceCreds) { + if err := kc.CoreV1().Secrets(val.Namespace).Delete(ctx, val.Name, metav1.DeleteOptions{}); err != nil { + errs = append(errs, err) + } + } + + for _, val := range slices.Backward(p.oServiceCreds) { + if _, err := kc.CoreV1().Secrets(val.Namespace).Update(ctx, val, metav1.UpdateOptions{}); err != nil { + errs = append(errs, err) + } + } + + for _, val := range slices.Backward(p.nNetPolicies) { + if err := kc.NetworkingV1().NetworkPolicies(val.Namespace).Delete(ctx, val.Name, metav1.DeleteOptions{}); err != nil { + errs = append(errs, err) + } + } + + for _, val := range slices.Backward(p.oNetPolicies) { + if _, err := kc.NetworkingV1().NetworkPolicies(val.Namespace).Update(ctx, &val, metav1.UpdateOptions{}); err != nil { + errs = append(errs, err) + } + } + + if p.nns != nil { + if err := kc.CoreV1().Namespaces().Delete(ctx, p.nns.Name, metav1.DeleteOptions{}); err != nil { + errs = append(errs, err) + } + } + + if p.ons != nil { + if _, err := kc.CoreV1().Namespaces().Update(ctx, p.ons, metav1.UpdateOptions{}); err != nil { + errs = append(errs, err) + } + } + + if p.omani != nil { + if _, err := ac.AkashV2beta2().Manifests(p.omani.Namespace).Update(ctx, p.omani, metav1.UpdateOptions{}); err != nil { + errs = append(errs, err) + } + } + + return errs +} + func (c *client) Deploy(ctx context.Context, deployment ctypes.IDeployment) (err error) { var settings builder.Settings var valid bool @@ -235,6 +349,8 @@ func (c *client) Deploy(ctx context.Context, deployment ctypes.IDeployment) (err services: make([]*deploymentService, 0, len(group.Services)), } + po := &previousObj{} + defer func() { tmpErr := err @@ -255,12 +371,42 @@ func (c *client) Deploy(ctx context.Context, deployment ctypes.IDeployment) (err applyMsgLog("unable to deploy lid=%s. last known state:\n", lid) c.log.Error(fmt.Sprintf(dMsg, dArgs...)) + + c.log.Info("attempting recover objects to previous state") + po.recover(ctx, c.kc, c.ac) } }() + applies.cmanifest = builder.BuildManifest(c.log, settings, c.ns, cdeployment) + if cdeployment.UpdateManifest() { + po.nmani, po.umani, po.omani, err = applyManifest(ctx, c.ac, applies.cmanifest) + if err != nil { + c.log.Error("applying manifest", "err", err, "lease", lid) + return err + } + } else { + po.omani, err = c.ac.AkashV2beta2().Manifests(c.ns).Get(ctx, applies.cmanifest.Name(), metav1.GetOptions{}) + if err != nil { + return err + } + } + + var resourceVersion string + + if po.nmani != nil { + resourceVersion = po.nmani.ResourceVersion + } else if po.umani != nil { + resourceVersion = po.umani.ResourceVersion + } else { + resourceVersion = po.omani.ResourceVersion + } + + if cdeployment.GetResourceVersion() == "" { + cdeployment.SetResourceVersion(resourceVersion) + } + applies.ns = builder.BuildNS(settings, cdeployment) applies.netPol = builder.BuildNetPol(settings, cdeployment) - applies.cmanifest = builder.BuildManifest(c.log, settings, c.ns, cdeployment) for svcIdx := range group.Services { workload := builder.NewWorkloadBuilder(c.log, settings, cdeployment, svcIdx) @@ -270,7 +416,7 @@ func (c *client) Deploy(ctx context.Context, deployment ctypes.IDeployment) (err svc := &deploymentService{} if service.Credentials != nil { - svc.credentials = builder.NewServiceCredentials(workload.NS(), workload.Name(), service.Credentials) + svc.credentials = builder.NewServiceCredentials(workload, service.Credentials) } persistent := false @@ -296,27 +442,20 @@ func (c *client) Deploy(ctx context.Context, deployment ctypes.IDeployment) (err svc.localService = builder.BuildService(workload, false) svc.globalService = builder.BuildService(workload, true) - } - if err := applyNS(ctx, c.kc, applies.ns); err != nil { + po.nns, po.uns, po.ons, err = applyNS(ctx, c.kc, applies.ns) + if err != nil { c.log.Error("applying namespace", "err", err, "lease", lid) return err } - if err := applyNetPolicies(ctx, c.kc, applies.netPol); err != nil { // + po.nNetPolicies, po.uNetPolicies, po.oNetPolicies, err = applyNetPolicies(ctx, c.kc, applies.netPol) + if err != nil { // c.log.Error("applying namespace network policies", "err", err, "lease", lid) return err } - if cdeployment.UpdateManifest() { - err = applyManifest(ctx, c.ac, applies.cmanifest) - if err != nil { - c.log.Error("applying manifest", "err", err, "lease", lid) - return err - } - } - if err = cleanupStaleResources(ctx, c.kc, lid, group); err != nil { c.log.Error("cleaning stale resources", "err", err, "lease", lid) return err @@ -327,38 +466,93 @@ func (c *client) Deploy(ctx context.Context, deployment ctypes.IDeployment) (err service := &group.Services[svcIdx] if applyObjs.credentials != nil { - if err = applyServiceCredentials(ctx, c.kc, applyObjs.credentials); err != nil { + nobj, uobj, obj, err := applyServiceCredentials(ctx, c.kc, applyObjs.credentials) + if err != nil { c.log.Error("applying credentials", "err", err, "lease", lid, "service", service.Name) return err } + + if nobj != nil { + po.nServiceCreds = append(po.nServiceCreds, nobj) + } + if uobj != nil { + po.uServiceCreds = append(po.uServiceCreds, uobj) + } + if obj != nil { + po.oServiceCreds = append(po.oServiceCreds, obj) + } } if applyObjs.statefulSet != nil { - if err = applyStatefulSet(ctx, c.kc, applyObjs.statefulSet); err != nil { + nobj, uobj, oobj, err := applyStatefulSet(ctx, c.kc, applyObjs.statefulSet) + if err != nil { c.log.Error("applying statefulSet", "err", err, "lease", lid, "service", service.Name) return err } + + if nobj != nil { + po.nStatefulSets = append(po.nStatefulSets, nobj) + } + if uobj != nil { + po.uStatefulSets = append(po.uStatefulSets, uobj) + } + if oobj != nil { + po.oStatefulSets = append(po.oStatefulSets, oobj) + } } if applyObjs.deployment != nil { - if err = applyDeployment(ctx, c.kc, applyObjs.deployment); err != nil { + nobj, uobj, oobj, err := applyDeployment(ctx, c.kc, applyObjs.deployment) + if err != nil { c.log.Error("applying deployment", "err", err, "lease", lid, "service", service.Name) return err } + + if nobj != nil { + po.nDeployments = append(po.nDeployments, nobj) + } + if uobj != nil { + po.uDeployments = append(po.uDeployments, uobj) + } + if oobj != nil { + po.oDeployments = append(po.oDeployments, oobj) + } } if lsvc := applyObjs.localService; lsvc != nil && lsvc.Any() { - if err = applyService(ctx, c.kc, lsvc); err != nil { + nobj, uobj, oobj, err := applyService(ctx, c.kc, lsvc) + if err != nil { c.log.Error("applying local service", "err", err, "lease", lid, "service", service.Name) return err } + + if nobj != nil { + po.nLocalServices = append(po.nLocalServices, nobj) + } + if uobj != nil { + po.uLocalServices = append(po.uLocalServices, uobj) + } + if oobj != nil { + po.oLocalServices = append(po.oLocalServices, oobj) + } } if gsvc := applyObjs.globalService; gsvc != nil && gsvc.Any() { - if err = applyService(ctx, c.kc, gsvc); err != nil { + nobj, uobj, oobj, err := applyService(ctx, c.kc, gsvc) + if err != nil { c.log.Error("applying global service", "err", err, "lease", lid, "service", service.Name) return err } + + if nobj != nil { + po.nGlobalServices = append(po.nGlobalServices, nobj) + } + if uobj != nil { + po.uGlobalServices = append(po.uGlobalServices, uobj) + } + if oobj != nil { + po.oGlobalServices = append(po.oGlobalServices, oobj) + } } } @@ -366,6 +560,8 @@ func (c *client) Deploy(ctx context.Context, deployment ctypes.IDeployment) (err } func (c *client) TeardownLease(ctx context.Context, lid mtypes.LeaseID) error { + c.log.Info("tearing down lease", "lease", lid) + _, result := wrapKubeCall("namespaces-delete", func() (interface{}, error) { return nil, c.kc.CoreV1().Namespaces().Delete(ctx, builder.LidNS(lid), metav1.DeleteOptions{}) }) diff --git a/cluster/kube/clientcommon/open_kube_config.go b/cluster/kube/clientcommon/open_kube_config.go index 534185199..9151ee4e8 100644 --- a/cluster/kube/clientcommon/open_kube_config.go +++ b/cluster/kube/clientcommon/open_kube_config.go @@ -42,7 +42,6 @@ func OpenKubeConfig(cfgPath string, log log.Logger) (*rest.Config, error) { return cfg, fmt.Errorf("%w: error building kubernetes config", err) } cfg.RateLimiter = rateLimiter - // cfg.Timeout return cfg, err } diff --git a/cluster/kube/operators/clients/inventory/client.go b/cluster/kube/operators/clients/inventory/client.go index 6f596fe66..3b41aef0c 100644 --- a/cluster/kube/operators/clients/inventory/client.go +++ b/cluster/kube/operators/clients/inventory/client.go @@ -4,7 +4,6 @@ import ( "errors" "fmt" "net/http" - "os" "time" "golang.org/x/net/context" @@ -247,6 +246,8 @@ func newInventoryConnector(ctx context.Context, svc *corev1.Service, invch chan< isUnderTest := fromctx.IsInventoryUnderTestFromCtx(ctx) + var pf *portforward.PortForwarder + if !kutil.IsInsideKubernetes() || isUnderTest { kc := fromctx.MustKubeClientFromCtx(ctx) @@ -309,7 +310,7 @@ func newInventoryConnector(ctx context.Context, svc *corev1.Service, invch chan< dialer := spdy.NewDialer(upgrader, hcl, http.MethodPost, req.URL()) errch := make(chan error, 1) - pf, err := portforward.New(dialer, []string{fmt.Sprintf(":%d", svcPort)}, ctx.Done(), make(chan struct{}), os.Stdout, os.Stderr) + pf, err = portforward.New(dialer, []string{fmt.Sprintf(":%d", svcPort)}, ctx.Done(), make(chan struct{}), nil, nil) if err != nil { return nil, err } @@ -361,7 +362,7 @@ func newInventoryConnector(ctx context.Context, svc *corev1.Service, invch chan< } func inventoryRun(ctx context.Context, endpoint string, invch chan<- inventoryState) error { - log := fromctx.LogcFromCtx(ctx).With("inventory") + log := fromctx.LogcFromCtx(ctx).With("operator", "inventory") // Establish the gRPC connection conn, err := grpc.Dial(endpoint, grpc.WithTransportCredentials(insecure.NewCredentials()), grpc.WithBlock()) @@ -381,7 +382,7 @@ func inventoryRun(ctx context.Context, endpoint string, invch chan<- inventorySt }() - log.Info(fmt.Sprintf("dialing inventory operator at %s", endpoint)) + log.Info("dialing inventory operator", "endpoint", endpoint) client := inventoryV1.NewClusterRPCClient(conn) diff --git a/cluster/kube/operators/clients/inventory/client_test.go b/cluster/kube/operators/clients/inventory/client_test.go index 80a176bf7..aca54bf27 100644 --- a/cluster/kube/operators/clients/inventory/client_test.go +++ b/cluster/kube/operators/clients/inventory/client_test.go @@ -209,9 +209,6 @@ func makeInventoryScaffold(t *testing.T) *inventoryScaffold { kc := kfake.NewSimpleClientset() ctx = context.WithValue(ctx, fromctx.CtxKeyKubeClientSet, kubernetes.Interface(kc)) - // ctx = context.WithValue(ctx, fromctx.CtxKeyKubeConfig, kc.Discovery().RESTClient()) - // ctx = context.WithValue(ctx, fromctx.CtxKeyKubeConfig, kubernetes.Interface(kc)) - ctx = context.WithValue(ctx, fromctx.CtxKeyInventoryUnderTest, true) gSrv := setupInventoryGRPC(ctx, group, ports[0]) diff --git a/cluster/manager.go b/cluster/manager.go index fc4f85758..57598599f 100644 --- a/cluster/manager.go +++ b/cluster/manager.go @@ -67,6 +67,7 @@ type deploymentManager struct { lc lifecycle.Lifecycle hostnameService ctypes.HostnameServiceClient config Config + isNewLease bool serviceShuttingDown <-chan struct{} } @@ -90,6 +91,7 @@ func newDeploymentManager(s *service, deployment ctypes.IDeployment, isNewLease hostnameService: s.HostnameService(), config: s.config, serviceShuttingDown: s.lc.ShuttingDown(), + isNewLease: isNewLease, currentHostnames: make(map[string]struct{}), } @@ -180,7 +182,7 @@ loop: case dsDeployActive: if result != nil { // Run the teardown code to get rid of anything created that might be hanging out - runch = dm.startTeardown() + // runch = dm.startTeardown() } else { dm.log.Debug("deploy complete") dm.state = dsDeployComplete @@ -299,6 +301,7 @@ func (dm *deploymentManager) startDeploy(ctx context.Context) <-chan error { close(chErr) }() + return chErr } diff --git a/cluster/monitor.go b/cluster/monitor.go index 53e596f43..f59647fdf 100644 --- a/cluster/monitor.go +++ b/cluster/monitor.go @@ -79,11 +79,12 @@ func (m *deploymentMonitor) run() { tickch := m.scheduleRetry() + prevStatus := event.ClusterDeploymentUnknown + loop: for { select { case err := <-m.lc.ShutdownRequest(): - m.log.Debug("shutting down") m.lc.ShutdownInitiated(err) break loop @@ -99,34 +100,41 @@ loop: m.log.Error("monitor check", "err", err) } - ok := result.Value().(bool) + var currStatus event.ClusterDeploymentStatus + + healthy := result.Value().(bool) - m.log.Info("check result", "ok", ok, "attempt", m.attempts) + if healthy { + currStatus = event.ClusterDeploymentDeployed - if ok { - // healthy m.attempts = 0 tickch = m.scheduleHealthcheck() - m.publishStatus(event.ClusterDeploymentDeployed) - deploymentHealthCheckCounter.WithLabelValues("up").Inc() - break + deploymentHealthCheckCounter.WithLabelValues("up").Inc() } else { + currStatus = event.ClusterDeploymentPending + deploymentHealthCheckCounter.WithLabelValues("down").Inc() - } + m.log.Info("check result", "ok", false, "attempt", m.attempts) - m.publishStatus(event.ClusterDeploymentPending) + } - if m.attempts <= m.config.MonitorMaxRetries { - // unhealthy. retry - tickch = m.scheduleRetry() - break + if currStatus != prevStatus { + m.publishStatus(currStatus) + prevStatus = currStatus } - m.log.Error("deployment failed. closing lease.") - deploymentHealthCheckCounter.WithLabelValues("failed").Inc() - closech = m.runCloseLease(ctx) + if !healthy { + if m.attempts <= m.config.MonitorMaxRetries { + // unhealthy. retry + tickch = m.scheduleRetry() + break + } + m.log.Error("deployment failed. closing lease.") + deploymentHealthCheckCounter.WithLabelValues("failed").Inc() + closech = m.runCloseLease(ctx) + } case <-closech: closech = nil } @@ -134,23 +142,16 @@ loop: cancel() if runch != nil { - m.log.Debug("read runch") <-runch } if closech != nil { - m.log.Debug("read closech") <-closech } - - // TODO - // Check that we got here - m.log.Debug("shutdown complete") } func (m *deploymentMonitor) runCheck(ctx context.Context) <-chan runner.Result { m.attempts++ - m.log.Debug("running check", "attempt", m.attempts) return runner.Do(func() runner.Result { return runner.NewResult(m.doCheck(ctx)) }) diff --git a/cluster/service.go b/cluster/service.go index 66c514759..6d5f8cd69 100644 --- a/cluster/service.go +++ b/cluster/service.go @@ -4,7 +4,7 @@ import ( "context" "github.com/boz/go-lifecycle" - sdktypes "github.com/cosmos/cosmos-sdk/types" + sdkquery "github.com/cosmos/cosmos-sdk/types/query" tpubsub "github.com/troian/pubsub" "github.com/pkg/errors" @@ -13,6 +13,9 @@ import ( "github.com/tendermint/tendermint/libs/log" + sdktypes "github.com/cosmos/cosmos-sdk/types" + + aclient "github.com/akash-network/akash-api/go/node/client/v1beta2" dtypes "github.com/akash-network/akash-api/go/node/deployment/v1beta3" mtypes "github.com/akash-network/akash-api/go/node/market/v1beta4" provider "github.com/akash-network/akash-api/go/provider/v1" @@ -105,7 +108,16 @@ type Service interface { } // NewService returns new Service instance -func NewService(ctx context.Context, session session.Session, bus pubsub.Bus, client Client, waiter waiter.OperatorWaiter, cfg Config) (Service, error) { +func NewService( + ctx context.Context, + session session.Session, + bus pubsub.Bus, + aqc aclient.QueryClient, + accAddr sdktypes.AccAddress, + client Client, + waiter waiter.OperatorWaiter, + cfg Config, +) (Service, error) { log := session.Log().With("module", "provider-cluster", "cmp", "service") lc := lifecycle.New() @@ -115,7 +127,7 @@ func NewService(ctx context.Context, session session.Session, bus pubsub.Bus, cl return nil, err } - deployments, err := findDeployments(ctx, log, client, session) + deployments, err := findDeployments(ctx, log, client, aqc, accAddr) if err != nil { sub.Close() return nil, err @@ -352,7 +364,6 @@ loop: } reservation, err := s.inventory.lookup(ev.LeaseID.OrderID(), mgroup) - if err != nil { s.log.Error("error looking up manifest", "err", err, "lease", ev.LeaseID, "group-name", mgroup.Name) break @@ -458,11 +469,105 @@ func (s *service) teardownLease(lid mtypes.LeaseID) { } } -func findDeployments(ctx context.Context, log log.Logger, client Client, _ session.Session) ([]ctypes.IDeployment, error) { +func findDeployments( + ctx context.Context, + log log.Logger, + client Client, + aqc aclient.QueryClient, + accAddr sdktypes.AccAddress, +) ([]ctypes.IDeployment, error) { + var presp *sdkquery.PageResponse + var leases []mtypes.QueryLeaseResponse + bids := make(map[string]mtypes.Bid) + + limit := uint64(100) + errorCnt := 0 + + for { + preq := &sdkquery.PageRequest{ + Key: nil, + Limit: limit, + } + + if presp != nil { + preq.Key = presp.NextKey + } + + resp, err := aqc.Bids(ctx, &mtypes.QueryBidsRequest{ + Filters: mtypes.BidFilters{ + Provider: accAddr.String(), + State: mtypes.BidActive.String(), + }}) + if err != nil { + if errorCnt > 1 { + return nil, err + } + + errorCnt++ + + continue + } + errorCnt = 0 + + for _, resp := range resp.Bids { + bids[resp.Bid.BidID.DeploymentID().String()] = resp.Bid + } + + if uint64(len(resp.Bids)) < limit { + break + } + + presp = resp.Pagination + } + + presp = nil + for { + preq := &sdkquery.PageRequest{ + Key: nil, + Limit: limit, + } + + if presp != nil { + preq.Key = presp.NextKey + } + + resp, err := aqc.Leases(ctx, &mtypes.QueryLeasesRequest{ + Filters: mtypes.LeaseFilters{ + Provider: accAddr.String(), + State: mtypes.LeaseActive.String(), + }}) + if err != nil { + if errorCnt > 1 { + return nil, err + } + + errorCnt++ + + continue + } + + errorCnt = 0 + + leases = append(leases, resp.Leases...) + if uint64(len(resp.Leases)) < limit { + break + } + + presp = resp.Pagination + } + + for _, resp := range leases { + did := resp.Lease.LeaseID.DeploymentID().String() + if _, exists := bids[did]; !exists { + delete(bids, did) + } + } + deployments, err := client.Deployments(ctx) if err != nil { log.Error("fetching deployments", "err", err) return nil, err } + return deployments, nil } diff --git a/cluster/types/v1beta3/deployment.go b/cluster/types/v1beta3/deployment.go index 967b0c160..31c0414a4 100644 --- a/cluster/types/v1beta3/deployment.go +++ b/cluster/types/v1beta3/deployment.go @@ -12,12 +12,14 @@ type IDeployment interface { LeaseID() mtypes.LeaseID ManifestGroup() *maniv2beta2.Group ClusterParams() interface{} + ResourceVersion() string } type Deployment struct { - Lid mtypes.LeaseID - MGroup *maniv2beta2.Group - CParams interface{} + Lid mtypes.LeaseID + MGroup *maniv2beta2.Group + CParams interface{} + ResourceVer string } var _ IDeployment = (*Deployment)(nil) @@ -33,3 +35,7 @@ func (d *Deployment) ManifestGroup() *maniv2beta2.Group { func (d *Deployment) ClusterParams() interface{} { return d.CParams } + +func (d *Deployment) ResourceVersion() string { + return d.ResourceVer +} diff --git a/cluster/types/v1beta3/mocks/i_deployment.go b/cluster/types/v1beta3/mocks/i_deployment.go index b797a9adc..0e10e591a 100644 --- a/cluster/types/v1beta3/mocks/i_deployment.go +++ b/cluster/types/v1beta3/mocks/i_deployment.go @@ -162,6 +162,51 @@ func (_c *IDeployment_ManifestGroup_Call) RunAndReturn(run func() *v2beta2.Group return _c } +// ResourceVersion provides a mock function with given fields: +func (_m *IDeployment) ResourceVersion() string { + ret := _m.Called() + + if len(ret) == 0 { + panic("no return value specified for ResourceVersion") + } + + var r0 string + if rf, ok := ret.Get(0).(func() string); ok { + r0 = rf() + } else { + r0 = ret.Get(0).(string) + } + + return r0 +} + +// IDeployment_ResourceVersion_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ResourceVersion' +type IDeployment_ResourceVersion_Call struct { + *mock.Call +} + +// ResourceVersion is a helper method to define mock.On call +func (_e *IDeployment_Expecter) ResourceVersion() *IDeployment_ResourceVersion_Call { + return &IDeployment_ResourceVersion_Call{Call: _e.mock.On("ResourceVersion")} +} + +func (_c *IDeployment_ResourceVersion_Call) Run(run func()) *IDeployment_ResourceVersion_Call { + _c.Call.Run(func(args mock.Arguments) { + run() + }) + return _c +} + +func (_c *IDeployment_ResourceVersion_Call) Return(_a0 string) *IDeployment_ResourceVersion_Call { + _c.Call.Return(_a0) + return _c +} + +func (_c *IDeployment_ResourceVersion_Call) RunAndReturn(run func() string) *IDeployment_ResourceVersion_Call { + _c.Call.Return(run) + return _c +} + // NewIDeployment creates a new instance of IDeployment. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. // The first argument is typically a *testing.T value. func NewIDeployment(t interface { diff --git a/cmd/provider-services/cmd/run.go b/cmd/provider-services/cmd/run.go index eeadd13a7..8223caf4c 100644 --- a/cmd/provider-services/cmd/run.go +++ b/cmd/provider-services/cmd/run.go @@ -17,12 +17,11 @@ import ( "github.com/shopspring/decimal" "github.com/spf13/cobra" "github.com/spf13/viper" + "github.com/tendermint/tendermint/libs/log" tpubsub "github.com/troian/pubsub" "golang.org/x/sync/errgroup" "k8s.io/client-go/kubernetes" - "github.com/tendermint/tendermint/libs/log" - "github.com/cosmos/cosmos-sdk/client/flags" sdk "github.com/cosmos/cosmos-sdk/types" diff --git a/event/events.go b/event/events.go index b294a913e..7988c25c0 100644 --- a/event/events.go +++ b/event/events.go @@ -39,6 +39,7 @@ func (ev ManifestReceived) ManifestGroup() *mani.Group { type ClusterDeploymentStatus string const ( + ClusterDeploymentUnknown ClusterDeploymentStatus = "unknown" // ClusterDeploymentUpdated is used whenever the deployment in the cluster is updated but may not be functional ClusterDeploymentUpdated ClusterDeploymentStatus = "updated" // ClusterDeploymentPending is used when cluster deployment status is pending diff --git a/go.mod b/go.mod index 4261615a5..e2cf936ca 100644 --- a/go.mod +++ b/go.mod @@ -1,9 +1,9 @@ module github.com/akash-network/provider -go 1.22.6 +go 1.23.5 require ( - github.com/akash-network/akash-api v0.0.67 + github.com/akash-network/akash-api v0.0.73 github.com/akash-network/node v0.34.1 github.com/avast/retry-go/v4 v4.5.0 github.com/blang/semver/v4 v4.0.0 @@ -13,8 +13,8 @@ require ( github.com/fsnotify/fsnotify v1.7.0 github.com/go-andiamo/splitter v1.2.5 github.com/go-kit/kit v0.12.0 - github.com/go-logr/logr v1.4.1 - github.com/go-logr/zapr v1.2.4 + github.com/go-logr/logr v1.4.2 + github.com/go-logr/zapr v1.3.0 github.com/golang-jwt/jwt/v4 v4.5.0 github.com/google/uuid v1.6.0 github.com/gorilla/context v1.1.1 @@ -24,29 +24,31 @@ require ( github.com/jaypipes/ghw v0.12.0 github.com/moby/term v0.5.0 github.com/pkg/errors v0.9.1 - github.com/prometheus/client_golang v1.16.0 - github.com/prometheus/common v0.44.0 - github.com/rook/rook v1.11.1 + github.com/prometheus/client_golang v1.18.0 + github.com/prometheus/common v0.45.0 + github.com/rook/rook v1.14.12 + github.com/rook/rook/pkg/apis v0.0.0-20231204200402-5287527732f7 github.com/shopspring/decimal v1.3.1 - github.com/spf13/cobra v1.8.0 + github.com/spf13/cobra v1.8.1 github.com/spf13/pflag v1.0.5 github.com/spf13/viper v1.18.2 github.com/stretchr/testify v1.9.0 github.com/tendermint/tendermint v0.34.27 github.com/troian/pubsub v0.1.1 github.com/vektra/mockery/v2 v2.40.2 - go.uber.org/zap v1.24.0 - golang.org/x/net v0.24.0 - golang.org/x/sync v0.7.0 + go.uber.org/zap v1.27.0 + golang.org/x/net v0.30.0 + golang.org/x/sync v0.8.0 google.golang.org/grpc v1.63.2 - google.golang.org/protobuf v1.33.0 + google.golang.org/protobuf v1.35.1 gopkg.in/yaml.v3 v3.0.1 - k8s.io/api v0.26.1 - k8s.io/apimachinery v0.26.1 - k8s.io/client-go v0.26.1 - k8s.io/code-generator v0.26.1 - k8s.io/kubectl v0.24.2 + k8s.io/api v0.32.0 + k8s.io/apimachinery v0.32.0 + k8s.io/client-go v0.32.0 + k8s.io/code-generator v0.32.0 + k8s.io/kubectl v0.32.0 sigs.k8s.io/kind v0.20.0 + sigs.k8s.io/structured-merge-diff/v4 v4.4.2 ) retract v0.6.0 @@ -76,7 +78,7 @@ require ( filippo.io/edwards25519 v1.1.0 // indirect github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4 // indirect github.com/99designs/keyring v1.2.1 // indirect - github.com/Azure/go-ansiterm v0.0.0-20210617225240-d185dfc1b5a1 // indirect + github.com/Azure/go-ansiterm v0.0.0-20230124172434-306776ec8161 // indirect github.com/BurntSushi/toml v1.2.1 // indirect github.com/ChainSafe/go-schnorrkel v0.0.0-20200405005733-88cbf1b4c40d // indirect github.com/DataDog/zstd v1.5.0 // indirect @@ -85,7 +87,6 @@ require ( github.com/Workiva/go-datastructures v1.0.53 // indirect github.com/alessio/shellescape v1.4.1 // indirect github.com/armon/go-metrics v0.4.1 // indirect - github.com/armon/go-radix v1.0.0 // indirect github.com/beorn7/perks v1.0.1 // indirect github.com/bgentry/speakeasy v0.1.1-0.20220910012023-760eaf8b6816 // indirect github.com/btcsuite/btcd/btcec/v2 v2.3.2 // indirect @@ -100,8 +101,9 @@ require ( github.com/coinbase/rosetta-sdk-go v0.7.9 // indirect github.com/cometbft/cometbft-db v0.7.0 // indirect github.com/confio/ics23/go v0.9.1 // indirect + github.com/containernetworking/cni v1.1.2 // indirect github.com/coreos/go-systemd v0.0.0-20191104093116-d3cd4ed1dbcf // indirect - github.com/coreos/pkg v0.0.0-20220810130054-c7d1c02cb6cf // indirect + github.com/coreos/pkg v0.0.0-20230601102743-20bbbf26f4d8 // indirect github.com/cosmos/btcutil v1.0.4 // indirect github.com/cosmos/cosmos-db v0.0.0-20221226095112-f3c38ecb5e32 // indirect github.com/cosmos/cosmos-proto v1.0.0-beta.1 // indirect @@ -120,26 +122,27 @@ require ( github.com/dustin/go-humanize v1.0.0 // indirect github.com/dvsekhvalnov/jose2go v1.5.0 // indirect github.com/edwingeng/deque/v2 v2.1.1 // indirect - github.com/emicklei/go-restful/v3 v3.10.0 // indirect - github.com/evanphx/json-patch v5.6.0+incompatible // indirect - github.com/evanphx/json-patch/v5 v5.6.0 // indirect - github.com/fatih/color v1.14.1 // indirect + github.com/emicklei/go-restful/v3 v3.11.3 // indirect + github.com/evanphx/json-patch/v5 v5.8.0 // indirect + github.com/fatih/color v1.16.0 // indirect github.com/felixge/httpsnoop v1.0.4 // indirect + github.com/fxamacker/cbor/v2 v2.7.0 // indirect github.com/getsentry/sentry-go v0.17.0 // indirect github.com/ghodss/yaml v1.0.1-0.20190212211648-25d852aebe32 // indirect + github.com/go-jose/go-jose/v3 v3.0.3 // indirect github.com/go-kit/log v0.2.1 // indirect github.com/go-logfmt/logfmt v0.5.1 // indirect github.com/go-ole/go-ole v1.2.6 // 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.22.3 // indirect + github.com/go-openapi/jsonpointer v0.21.0 // indirect + github.com/go-openapi/jsonreference v0.20.5 // indirect + github.com/go-openapi/swag v0.23.0 // indirect github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2 // indirect github.com/gogo/gateway v1.1.0 // indirect github.com/gogo/protobuf v1.3.3 // indirect github.com/golang/protobuf v1.5.4 // indirect github.com/golang/snappy v0.0.4 // indirect github.com/google/btree v1.1.2 // indirect - github.com/google/gnostic v0.6.9 // indirect + github.com/google/gnostic-models v0.6.8 // indirect github.com/google/go-cmp v0.6.0 // indirect github.com/google/go-github/v56 v56.0.0 // indirect github.com/google/go-querystring v1.1.0 // indirect @@ -155,29 +158,22 @@ require ( github.com/gtank/ristretto255 v0.1.2 // indirect github.com/hashicorp/errwrap v1.1.0 // indirect github.com/hashicorp/go-cleanhttp v0.5.2 // indirect - github.com/hashicorp/go-hclog v1.5.0 // indirect github.com/hashicorp/go-immutable-radix v1.3.1 // indirect github.com/hashicorp/go-multierror v1.1.1 // indirect - github.com/hashicorp/go-plugin v1.4.5 // indirect - github.com/hashicorp/go-retryablehttp v0.7.1 // indirect + github.com/hashicorp/go-retryablehttp v0.7.7 // indirect github.com/hashicorp/go-rootcerts v1.0.2 // indirect - github.com/hashicorp/go-secure-stdlib/mlock v0.1.2 // indirect - github.com/hashicorp/go-secure-stdlib/parseutil v0.1.7 // indirect + github.com/hashicorp/go-secure-stdlib/parseutil v0.1.8 // indirect github.com/hashicorp/go-secure-stdlib/strutil v0.1.2 // indirect - github.com/hashicorp/go-sockaddr v1.0.2 // indirect + github.com/hashicorp/go-sockaddr v1.0.6 // indirect github.com/hashicorp/go-uuid v1.0.3 // indirect - github.com/hashicorp/go-version v1.6.0 // indirect github.com/hashicorp/golang-lru v0.5.5-0.20210104140557-80c98217689d // indirect github.com/hashicorp/hcl v1.0.1-vault-5 // indirect - github.com/hashicorp/vault v1.12.2 // indirect - github.com/hashicorp/vault/api v1.8.2 // indirect - github.com/hashicorp/vault/api/auth/approle v0.3.0 // indirect - github.com/hashicorp/vault/sdk v0.6.1-0.20221102145943-1e9b0a1225c3 // indirect - github.com/hashicorp/yamux v0.1.1 // indirect + github.com/hashicorp/vault/api v1.12.2 // indirect + github.com/hashicorp/vault/api/auth/approle v0.6.0 // indirect + github.com/hashicorp/vault/api/auth/kubernetes v0.6.0 // indirect github.com/hdevalence/ed25519consensus v0.0.0-20220222234857-c00d1f31bab3 // indirect github.com/huandu/xstrings v1.4.0 // indirect github.com/iancoleman/strcase v0.2.0 // indirect - github.com/imdario/mergo v0.3.13 // indirect github.com/improbable-eng/grpc-web v0.14.1 // indirect github.com/inconshreveable/mousetrap v1.1.0 // indirect github.com/jaypipes/pcidb v1.0.0 // indirect @@ -185,42 +181,41 @@ require ( github.com/jmhodges/levigo v1.0.1-0.20191019112844-b572e7f4cdac // indirect github.com/josharian/intern v1.0.0 // indirect github.com/json-iterator/go v1.1.12 // indirect + github.com/k8snetworkplumbingwg/network-attachment-definition-client v1.6.0 // indirect github.com/klauspost/compress v1.17.0 // indirect github.com/kr/pretty v0.3.1 // indirect github.com/kr/text v0.2.0 // indirect github.com/kube-object-storage/lib-bucket-provisioner v0.0.0-20221122204822-d1a8c34382f1 // indirect github.com/lib/pq v1.10.6 // indirect - github.com/libopenstorage/secrets v0.0.0-20220823020833-2ecadaf59d8a // indirect + github.com/libopenstorage/secrets v0.0.0-20240416031220-a17cf7f72c6c // indirect github.com/libp2p/go-buffer-pool v0.1.0 // indirect + github.com/liggitt/tabwriter v0.0.0-20181228230101-89fcab3d43de // indirect github.com/linxGnu/grocksdb v1.7.10 // indirect github.com/magiconair/properties v1.8.7 // indirect github.com/mailru/easyjson v0.7.7 // indirect github.com/mattn/go-colorable v0.1.13 // indirect - github.com/mattn/go-isatty v0.0.19 // indirect + github.com/mattn/go-isatty v0.0.20 // indirect github.com/mattn/go-runewidth v0.0.13 // indirect - github.com/matttproud/golang_protobuf_extensions v1.0.4 // indirect + github.com/matttproud/golang_protobuf_extensions/v2 v2.0.0 // indirect github.com/mimoo/StrobeGo v0.0.0-20210601165009-122bf33a46e0 // indirect github.com/minio/highwayhash v1.0.2 // indirect - github.com/mitchellh/copystructure v1.2.0 // indirect github.com/mitchellh/go-homedir v1.1.0 // indirect - github.com/mitchellh/go-testing-interface v1.14.1 // indirect - github.com/mitchellh/go-wordwrap v1.0.0 // indirect + github.com/mitchellh/go-wordwrap v1.0.1 // indirect github.com/mitchellh/mapstructure v1.5.0 // indirect - github.com/mitchellh/reflectwalk v1.0.2 // indirect - github.com/moby/spdystream v0.2.0 // indirect + github.com/moby/spdystream v0.5.0 // indirect github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect github.com/modern-go/reflect2 v1.0.2 // indirect github.com/mtibben/percent v0.2.1 // indirect github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect - github.com/oklog/run v1.1.0 // indirect - github.com/openshift/api v0.0.0-20210105115604-44119421ec6b // indirect + github.com/mxk/go-flowrate v0.0.0-20140419014527-cca7078d478f // indirect + github.com/opencontainers/runc v1.1.4 // indirect + github.com/openshift/api v0.0.0-20240301093301-ce10821dc999 // indirect github.com/pelletier/go-toml v1.9.5 // indirect github.com/pelletier/go-toml/v2 v2.1.0 // indirect github.com/petermattis/goid v0.0.0-20180202154549-b0b1615b78e5 // indirect - github.com/pierrec/lz4 v2.6.1+incompatible // indirect github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect - github.com/prometheus/client_model v0.4.0 // indirect - github.com/prometheus/procfs v0.10.1 // indirect + github.com/prometheus/client_model v0.5.0 // indirect + github.com/prometheus/procfs v0.12.0 // indirect github.com/rakyll/statik v0.1.7 // indirect github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475 // indirect github.com/regen-network/cosmos-proto v0.3.1 // indirect @@ -232,7 +227,7 @@ require ( github.com/sagikazarmark/locafero v0.4.0 // indirect github.com/sagikazarmark/slog-shim v0.1.0 // indirect github.com/sasha-s/go-deadlock v0.3.1 // indirect - github.com/sirupsen/logrus v1.9.0 // indirect + github.com/sirupsen/logrus v1.9.3 // indirect github.com/sourcegraph/conc v0.3.0 // indirect github.com/spf13/afero v1.11.0 // indirect github.com/spf13/cast v1.6.0 // indirect @@ -244,38 +239,36 @@ require ( github.com/tendermint/tm-db v0.6.7 // indirect github.com/theckman/yacspin v0.13.12 // indirect github.com/tidwall/btree v1.5.0 // indirect + github.com/x448/float16 v0.8.4 // indirect github.com/zondax/hid v0.9.1 // indirect github.com/zondax/ledger-go v0.14.1 // indirect go.etcd.io/bbolt v1.3.6 // indirect go.step.sm/crypto v0.44.6 // indirect - go.uber.org/atomic v1.10.0 // indirect - go.uber.org/multierr v1.9.0 // indirect - golang.org/x/crypto v0.22.0 // indirect - golang.org/x/exp v0.0.0-20230905200255-921286631fa9 // indirect - golang.org/x/mod v0.17.0 // indirect - golang.org/x/oauth2 v0.19.0 // indirect - golang.org/x/sys v0.19.0 // indirect - golang.org/x/term v0.19.0 // indirect - golang.org/x/text v0.14.0 // indirect - golang.org/x/time v0.5.0 // indirect - golang.org/x/tools v0.17.0 // indirect - gomodules.xyz/jsonpatch/v2 v2.2.0 // indirect + go.uber.org/multierr v1.11.0 // indirect + golang.org/x/crypto v0.28.0 // indirect + golang.org/x/exp v0.0.0-20231127185646-65229373498e // indirect + golang.org/x/mod v0.21.0 // indirect + golang.org/x/oauth2 v0.23.0 // indirect + golang.org/x/sys v0.26.0 // indirect + golang.org/x/term v0.25.0 // indirect + golang.org/x/text v0.19.0 // indirect + golang.org/x/time v0.7.0 // indirect + golang.org/x/tools v0.26.0 // indirect google.golang.org/genproto v0.0.0-20240227224415-6ceb2ff114de // indirect google.golang.org/genproto/googleapis/api v0.0.0-20240311132316-a219d84964c2 // indirect google.golang.org/genproto/googleapis/rpc v0.0.0-20240318140521-94a12d6c2237 // indirect + gopkg.in/evanphx/json-patch.v4 v4.12.0 // indirect gopkg.in/inf.v0 v0.9.1 // indirect gopkg.in/ini.v1 v1.67.0 // indirect - gopkg.in/square/go-jose.v2 v2.6.0 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect - k8s.io/gengo v0.0.0-20220902162205-c0856e24416d // indirect - k8s.io/klog/v2 v2.80.1 // indirect - k8s.io/kube-openapi v0.0.0-20221110221610-a28e98eb7c70 // indirect - k8s.io/utils v0.0.0-20221128185143-99ec85e7a448 // indirect + k8s.io/cli-runtime v0.32.0 // indirect + k8s.io/gengo/v2 v2.0.0-20240911193312-2b36238f13e9 // indirect + k8s.io/klog/v2 v2.130.1 // indirect + k8s.io/kube-openapi v0.0.0-20241105132330-32ad38e42d3f // indirect + k8s.io/utils v0.0.0-20241104100929-3ea5e8cea738 // indirect nhooyr.io/websocket v1.8.6 // indirect - sigs.k8s.io/controller-runtime v0.14.1 // indirect - sigs.k8s.io/json v0.0.0-20220713155537-f223a00ba0e2 // indirect - sigs.k8s.io/structured-merge-diff/v4 v4.2.3 // indirect - sigs.k8s.io/yaml v1.3.0 // indirect + sigs.k8s.io/json v0.0.0-20241010143419-9aa6b5e7a4b3 // indirect + sigs.k8s.io/yaml v1.4.0 // indirect ) // these replaces required for rook to work diff --git a/go.sum b/go.sum index eb1e8ab18..25d49b336 100644 --- a/go.sum +++ b/go.sum @@ -1,8 +1,6 @@ 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.37.4/go.mod h1:NHPJ89PdicEuT9hdPXMROBD91xc5uRDxsMtSB16k7hw= cloud.google.com/go v0.38.0/go.mod h1:990N+gfupTy94rShfmMCWGDn0LpTmnzTp2qbd1dvSRU= -cloud.google.com/go v0.39.0/go.mod h1:rVLT6fkc8chs9sfPtFc1SBH6em7n+ZoXaG+87tDISts= cloud.google.com/go v0.43.0/go.mod h1:BOSR3VbTLkk6FDC/TcffxP4NF/FFBGA5ku+jvKOP7pg= 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= @@ -22,7 +20,15 @@ cloud.google.com/go v0.74.0/go.mod h1:VV1xSbzvo+9QJOxLDaJfTjx5e+MePCpCWwvftOeQmW 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.112.0 h1:tpFCD7hpHFlQ8yPwT3x+QeXqc2T6+n6T+hmABHfDUSM= +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.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= @@ -30,19 +36,14 @@ cloud.google.com/go/bigquery v1.5.0/go.mod h1:snEHRnqQbz117VIFhE8bmtwIDY80NLUZUM 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/bigtable v1.2.0/go.mod h1:JcVAOl45lrTmQfLj7T6TxyMzIN/3FGGcFm+2xVAli2o= -cloud.google.com/go/compute v1.24.0 h1:phWcR2eWzRJaL/kOiJwfFsPs4BaKq1j6vnpZrc1YlVg= -cloud.google.com/go/compute v1.24.0/go.mod h1:kw1/T+h/+tK2LJK0wiPPx1intgdAM3j/g3hFDlscY40= -cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY= -cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= +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/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/iam v1.1.6 h1:bEa06k05IO4f4uJonbB5iAgKTPpABy1ayxaIZV/GHVc= -cloud.google.com/go/iam v1.1.6/go.mod h1:O0zxdPeGBoFdWW3HWmBxJsk0pfvNM/p/qa82rWOGTwI= -cloud.google.com/go/kms v1.15.8 h1:szIeDCowID8th2i8XE4uRev5PMxQFqW+JjwYxL9h6xs= -cloud.google.com/go/kms v1.15.8/go.mod h1:WoUHcDjD9pluCg7pNds131awnH429QGvRM3N/4MyoVs= -cloud.google.com/go/monitoring v1.18.0 h1:NfkDLQDG2UR3WYZVQE8kwSbUIEyIqJUPl+aOQdFH1T4= -cloud.google.com/go/monitoring v1.18.0/go.mod h1:c92vVBCeq/OB4Ioyo+NbN2U7tlg5ZH41PZcdvfc+Lcg= 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= @@ -52,7 +53,6 @@ cloud.google.com/go/storage v1.5.0/go.mod h1:tpKbwo567HUNpVclU5sGELwQWBDZ8gh0Zeo 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= -code.cloudfoundry.org/gofileutils v0.0.0-20170111115228-4d0c80011a0f/go.mod h1:sk5LnIjB/nIEU7yP5sDQExVm62wu0pBh3yrElngUisI= collectd.org v0.3.0/go.mod h1:A/8DzQBkF6abtvrT2j/AU/4tiBgJWYyh0y/oB/4MlWE= cosmossdk.io/api v0.2.6 h1:AoNwaLLapcLsphhMK6+o0kZl+D6MMUaHVqSdwinASGU= cosmossdk.io/api v0.2.6/go.mod h1:u/d+GAxil0nWpl1XnQL8nkziQDIWuBDhv8VnDm/s6dI= @@ -64,66 +64,46 @@ dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7 filippo.io/edwards25519 v1.0.0-rc.1/go.mod h1:N1IkdkCkiLB6tki+MYJoSx2JTY9NUlxZE7eHn5EwJns= filippo.io/edwards25519 v1.1.0 h1:FNf4tywRC1HmFuKW5xopWpigGjJKiJSV0Cqo0cJWDaA= filippo.io/edwards25519 v1.1.0/go.mod h1:BxyFTGdWcka3PhytdK4V28tE5sGfRvvvRV7EaN4VDT4= -git.apache.org/thrift.git v0.12.0/go.mod h1:fPE2ZNJGynbRyZ4dJvy6G277gSllfV2HJqblrnkyeyg= git.sr.ht/~sircmpwn/getopt v0.0.0-20191230200459-23622cc906b3/go.mod h1:wMEGFFFNuPos7vHmWXfszqImLppbc0wEhh6JBfJIUgw= git.sr.ht/~sircmpwn/go-bare v0.0.0-20210406120253-ab86bc2846d9/go.mod h1:BVJwbDfVjCjoFiKrhkei6NdGcZYpkDkdyCdg1ukytRA= github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4 h1:/vQbFIOMbk2FiG/kXiLl8BRyzTWDw7gX/Hz7Dd5eDMs= github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4/go.mod h1:hN7oaIRCjzsZ2dE+yG5k+rsdt3qcwykqK6HVGcKwsw4= github.com/AndreasBriese/bbloom v0.0.0-20190306092124-e2d15f34fcf9/go.mod h1:bOvUY6CB00SOBii9/FifXqc0awNKxLFCL/+pkDPuyl8= -github.com/Azure/azure-sdk-for-go v36.2.0+incompatible/go.mod h1:9XXNKU+eRnpl9moKnB4QOLf1HestfXbmab5FXxiDBjc= -github.com/Azure/azure-sdk-for-go v62.0.0+incompatible h1:8N2k27SYtc12qj5nTsuFMFJPZn5CGmgMWqTy4y9I7Jw= github.com/Azure/azure-sdk-for-go v62.0.0+incompatible/go.mod h1:9XXNKU+eRnpl9moKnB4QOLf1HestfXbmab5FXxiDBjc= github.com/Azure/azure-sdk-for-go/sdk/azcore v0.21.1/go.mod h1:fBF9PQNqB8scdgpZ3ufzaLntG0AG7C1WjPMsiFOmfHM= github.com/Azure/azure-sdk-for-go/sdk/internal v0.8.3/go.mod h1:KLF4gFr6DcKFZwSuH8w8yEK6DpFl3LP5rhdvAb7Yz5I= github.com/Azure/azure-sdk-for-go/sdk/storage/azblob v0.3.0/go.mod h1:tPaiy8S5bQ+S5sOiDlINkp7+Ef339+Nz5L5XO+cnOHo= github.com/Azure/go-ansiterm v0.0.0-20170929234023-d6e3b3328b78/go.mod h1:LmzpDX56iTiv29bbRTIsUNlaFfuhWRQBWjQdVyAevI8= -github.com/Azure/go-ansiterm v0.0.0-20210617225240-d185dfc1b5a1 h1:UQHMgLO+TxOElx5B5HZ4hJQsoJ/PvUvKRhJHDQXO8P8= -github.com/Azure/go-ansiterm v0.0.0-20210617225240-d185dfc1b5a1/go.mod h1:xomTg63KZ2rFqZQzSB4Vz2SUXa1BpHTVz9L5PTmPC4E= -github.com/Azure/go-autorest v14.2.0+incompatible h1:V5VMDjClD3GiElqLWO7mz2MxNAK/vTfRHdAubSIPRgs= +github.com/Azure/go-ansiterm v0.0.0-20230124172434-306776ec8161 h1:L/gRVlceqvL25UVaW/CKtUDjefjrs0SPonmDGUVOYP0= +github.com/Azure/go-ansiterm v0.0.0-20230124172434-306776ec8161/go.mod h1:xomTg63KZ2rFqZQzSB4Vz2SUXa1BpHTVz9L5PTmPC4E= 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.9.2/go.mod h1:xyHB1BMZT0cuDHU7I0+g046+BFDTQ8rEZB0s4Yfa6bI= github.com/Azure/go-autorest/autorest v0.9.6/go.mod h1:/FALq9T/kS7b5J5qsQ+RSTUdAmGFqi0vUdVNNx8q630= github.com/Azure/go-autorest/autorest v0.11.1/go.mod h1:JFgpikqFJ/MleTTxwepExTKnFUKKszPS8UavbQYUMuw= github.com/Azure/go-autorest/autorest v0.11.18/go.mod h1:dSiJPy22c3u0OtOKDNttNgqpNFY/GeWa7GH/Pz56QRA= -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.6.0/go.mod h1:Z6vX6WXXuyieHAXwMj0S6HY6e6wcHn37qQMBQlvY3lc= -github.com/Azure/go-autorest/autorest/adal v0.7.0/go.mod h1:Z6vX6WXXuyieHAXwMj0S6HY6e6wcHn37qQMBQlvY3lc= github.com/Azure/go-autorest/autorest/adal v0.8.2/go.mod h1:ZjhuQClTqx435SRJ2iMlOxPYt3d2C/T/7TiQCVZSn3Q= 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.20 h1:gJ3E98kMpFB1MFqQCvA1yFab8vthOeD4VlFRQULxahg= +github.com/Azure/go-autorest/autorest/adal v0.9.18/go.mod h1:XVVeme+LZwABT8K5Lc3hA4nAe8LDBVle26gTrguhhPQ= github.com/Azure/go-autorest/autorest/adal v0.9.20/go.mod h1:XVVeme+LZwABT8K5Lc3hA4nAe8LDBVle26gTrguhhPQ= -github.com/Azure/go-autorest/autorest/azure/auth v0.4.0/go.mod h1:Oo5cRhLvZteXzI2itUm5ziqsoIxRkzrt3t61FeZaS18= -github.com/Azure/go-autorest/autorest/azure/auth v0.5.11 h1:P6bYXFoao05z5uhOQzbC3Qd8JqF3jUoocoTeIxkp2cA= -github.com/Azure/go-autorest/autorest/azure/auth v0.5.11/go.mod h1:84w/uV8E37feW2NCJ08uT9VBfjfUHpgLVnG2InYD6cg= -github.com/Azure/go-autorest/autorest/azure/cli v0.3.0/go.mod h1:rNYMNAefZMRowqCV0cVhr/YDW5dD7afFq9nXAXL4ykE= -github.com/Azure/go-autorest/autorest/azure/cli v0.4.5 h1:0W/yGmFdTIT77fvdlGZ0LMISoLHFJ7Tx4U0yeB+uFs4= -github.com/Azure/go-autorest/autorest/azure/cli v0.4.5/go.mod h1:ADQAXrkgm7acgWVUNamOgh8YNrv4p27l3Wc55oVfpzg= 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.2.0/go.mod h1:vcORJHLJEh643/Ioh9+vPmf1Ij9AEBM5FuBIXLmIy0g= -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.3.0/go.mod h1:a8FDP3DYzQ4RYfVAxAN3SVSiiO77gL2j2ronKKP0syM= 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/to v0.3.0/go.mod h1:MgwOyqaIuKdG4TL/2ywSsIWKAfJfgHDo8ObuUk3t5sA= -github.com/Azure/go-autorest/autorest/to v0.4.0 h1:oXVqrxakqqV1UZdSazDOPOLvOIz+XA683u8EctwboHk= +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/autorest/validation v0.2.0/go.mod h1:3EEqHnBxQGHXRYq3HT1WyXAvT7LLY3tl70hw6tQIbjI= -github.com/Azure/go-autorest/autorest/validation v0.3.1 h1:AgyqjAd94fwNAoTjl/WQXg4VvFeRFpO+UhNyRXqF1ac= github.com/Azure/go-autorest/autorest/validation v0.3.1/go.mod h1:yhLgjC0Wda5DYXl6JAsWyUe4KVNffhoDhG0zVzUMo3E= 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 v1.0.0/go.mod h1:CxXYINrC8qIiEnFrOxCa7Jy5BFHlXnUU2pbicEuybxQ= @@ -137,35 +117,19 @@ github.com/CloudyKit/fastprinter v0.0.0-20200109182630-33d98a066a53/go.mod h1:+3 github.com/CloudyKit/jet v2.1.3-0.20180809161101-62edd43e4f88+incompatible/go.mod h1:HPYO+50pSWkPoj9Q/eq0aRGByCL6ScRlUmiEX5Zgm+w= github.com/CloudyKit/jet/v3 v3.0.0/go.mod h1:HKQPgSJmdK8hdoAbKUUWajkHyHo4RaU5rMdUywE7VMo= github.com/DATA-DOG/go-sqlmock v1.3.3/go.mod h1:f/Ixk793poVmq4qj/V1dPUg2JEAKC73Q5eFN3EC/SaM= -github.com/DataDog/datadog-go v2.2.0+incompatible/go.mod h1:LButxg5PwREeZtORoXG3tL4fMGNddJ+vMq1mwgfaqoQ= -github.com/DataDog/datadog-go v3.2.0+incompatible h1:qSG2N4FghB1He/r2mFrWKCaL7dXCilEuNEeAn20fdD4= github.com/DataDog/datadog-go v3.2.0+incompatible/go.mod h1:LButxg5PwREeZtORoXG3tL4fMGNddJ+vMq1mwgfaqoQ= -github.com/DataDog/zstd v1.4.4/go.mod h1:1jcaCB/ufaK+sKp1NBhlGmpz41jOoPQ35bpF36t7BBo= github.com/DataDog/zstd v1.4.5/go.mod h1:1jcaCB/ufaK+sKp1NBhlGmpz41jOoPQ35bpF36t7BBo= github.com/DataDog/zstd v1.5.0 h1:+K/VEwIAaPcHiMtQvpLD4lqW7f0Gk3xdYZmI1hD+CXo= github.com/DataDog/zstd v1.5.0/go.mod h1:g4AWEaM3yOg3HYfnJ3YIawPnVdXJh9QME85blwSAmyw= github.com/HdrHistogram/hdrhistogram-go v1.1.2 h1:5IcZpTvzydCQeHzK4Ef/D5rrSqwxob0t8PQPMybUNFM= github.com/HdrHistogram/hdrhistogram-go v1.1.2/go.mod h1:yDgFjdqOqDEKOvasDdhWNXYg9BVp4O+o5f6V/ehm6Oo= github.com/IBM/keyprotect-go-client v0.5.1/go.mod h1:5TwDM/4FRJq1ZOlwQL1xFahLWQ3TveR88VmL1u3njyI= -github.com/Jeffail/gabs v1.1.1 h1:V0uzR08Hj22EX8+8QMhyI9sX2hwRu+/RJhJUmnwda/E= -github.com/Jeffail/gabs v1.1.1/go.mod h1:6xMvQMK4k33lb7GUUpaAPh6nKMmemQeg5d4gn7/bOXc= github.com/Joker/hpp v1.0.0/go.mod h1:8x5n+M1Hp5hC0g8okX3sR3vFQwynaX/UgSOM9MeBKzY= github.com/Joker/jade v1.0.1-0.20190614124447-d475f43051e7/go.mod h1:6E6s8o2AE4KhCrqr6GRJjdC/gNfTdxkIXvuGZZda2VM= github.com/Knetic/govaluate v3.0.1-0.20171022003610-9aa49832a739+incompatible/go.mod h1:r7JcOSlj0wfOMncg0iLm8Leh48TZaKVeNIfJntJ2wa0= -github.com/MakeNowJust/heredoc v0.0.0-20170808103936-bb23615498cd/go.mod h1:64YHyfSL2R96J44Nlwm39UHepQbyR5q10x7iYa1ks2E= -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.4.2/go.mod h1:MB6lktGJrhw8PrUyiEoblNEGEQ+RzHPF078ddwwvV3Y= -github.com/Masterminds/semver v1.5.0 h1:H65muMkzWKEuNDnfl9d70GUjFniHKHRbFPGBuZ3QEww= -github.com/Masterminds/semver v1.5.0/go.mod h1:MB6lktGJrhw8PrUyiEoblNEGEQ+RzHPF078ddwwvV3Y= -github.com/Masterminds/sprig v2.22.0+incompatible h1:z4yfnGrZ7netVz+0EDJ0Wi+5VZCSYp4Z0m2dk6cEM60= -github.com/Masterminds/sprig v2.22.0+incompatible/go.mod h1:y6hNFY5UBTIWBxnzTeuNhlNS5hqE0NB0E6fgfo2Br3o= -github.com/Microsoft/go-winio v0.4.13/go.mod h1:qXqCSQ3Xa7+6tgxaGTIe4Kpcdsi+P8jBhyzoq1bpyYA= github.com/Microsoft/go-winio v0.6.0 h1:slsWYD/zyx7lCXoZVlvQrj0hPTM1HI4+v1sIda2yDvg= github.com/Microsoft/go-winio v0.6.0/go.mod h1:cTAf44im0RAYeL23bpB+fzCyDH2MJiz2BO69KH/soAE= github.com/NYTimes/gziphandler v0.0.0-20170623195520-56545f4a5d46/go.mod h1:3wb06e3pkSAbeQ52E9H9iFoQsEEwGN64994WTCIhntQ= -github.com/NYTimes/gziphandler v1.1.1 h1:ZUDjpQae29j0ryrS0u/B8HZfJBtBQHjqw2rQ2cqUQ3I= -github.com/NYTimes/gziphandler v1.1.1/go.mod h1:n/CVRwUEOgIxrgPvAQhUUr9oeUtvrhMomdKFjzJNB0c= github.com/Nvveen/Gotty v0.0.0-20120604004816-cd527374f1e5 h1:TngWCqHvy9oXAN6lEVMRuU21PR1EtLVZJmdB18Gu3Rw= github.com/Nvveen/Gotty v0.0.0-20120604004816-cd527374f1e5/go.mod h1:lmUJ/7eu/Q8D7ML55dXQrVaamCz2vxCfdQBasLZfHKk= github.com/OneOfOne/xxhash v1.2.2 h1:KMrpdQIwFcEqXDklaen+P1axHaj9BSKzvpUUfnHldSE= @@ -175,8 +139,6 @@ github.com/PuerkitoBio/purell v1.1.0/go.mod h1:c11w/QuzBsJSee3cPx9rAFu61PvFxuPbt 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/SAP/go-hdb v0.14.1/go.mod h1:7fdQLVC2lER3urZLjZCm0AuMQfApof92n3aylBPEkMo= -github.com/Sectorbob/mlab-ns2 v0.0.0-20171030222938-d3aa0c295a8a/go.mod h1:D73UAuEPckrDorYZdtlCu2ySOLuPB5W4rhIkmmc/XbI= github.com/Shopify/goreferrer v0.0.0-20181106222321-ec9c9a553398/go.mod h1:a1uqRtAwp2Xwc6WNPJEufxJ7fx3npB4UV/JOLmbu5I0= github.com/Shopify/sarama v1.19.0/go.mod h1:FVkBWblsNy7DGZRfXLU0O9RCGt5g3g3yEuWXgklEdEo= github.com/Shopify/toxiproxy v2.1.4+incompatible/go.mod h1:OXgGpZ6Cli1/URJOF1DMxUHB2q5Ap20/P/eIdh4G0pI= @@ -189,7 +151,6 @@ github.com/VividCortex/gohistogram v1.0.0/go.mod h1:Pf5mBqqDxYaXu3hDrrU+w6nw50o/ github.com/Workiva/go-datastructures v1.0.53 h1:J6Y/52yX10Xc5JjXmGtWoSSxs3mZnGSaq37xZZh7Yig= github.com/Workiva/go-datastructures v1.0.53/go.mod h1:1yZL+zfsztete+ePzZz/Zb1/t5BnDuE2Ya2MMGhzP6A= github.com/Zilliqa/gozilliqa-sdk v1.2.1-0.20201201074141-dd0ecada1be6/go.mod h1:eSYp2T6f0apnuW8TzhV3f6Aff2SE8Dwio++U4ha4yEM= -github.com/abdullin/seq v0.0.0-20160510034733-d5467c17e7af/go.mod h1:5Jv4cbFiHJMsVxt52+i0Ha45fjshj6wxYr1r19tB9bw= github.com/adlio/schema v1.3.3 h1:oBJn8I02PyTB466pZO1UZEn1TV5XLlifBSyMrmHl/1I= github.com/adlio/schema v1.3.3/go.mod h1:1EsRssiv9/Ce2CMzq5DoL7RiMshhuigQxrR4DMV9fHg= github.com/aead/siphash v1.0.1/go.mod h1:Nywa3cDsYNNK3gaciGTWPwHt0wlpNV15vwmswBAUSII= @@ -197,8 +158,8 @@ github.com/afex/hystrix-go v0.0.0-20180502004556-fa1af6a1f4f5/go.mod h1:SkGFH1ia github.com/agnivade/levenshtein v1.0.1/go.mod h1:CURSv5d9Uaml+FovSIICkLbAUZ9S4RqaHDIsdSBg7lM= github.com/ajg/form v1.5.1/go.mod h1:uL1WgH+h2mgNtvBq0339dVnzXdBETtL2LeUXaIv25UY= github.com/ajstarks/svgo v0.0.0-20180226025133-644b8db467af/go.mod h1:K08gAheRH3/J6wwsYMMT4xOr94bZjxIelGM0+d/wbFw= -github.com/akash-network/akash-api v0.0.67 h1:lwtSvYoxXe/XJKB0UabA2np3l0ujLMsKxmA4e6IWzsM= -github.com/akash-network/akash-api v0.0.67/go.mod h1:PdOQGTCX3kLBoKHdbPF9pe5+vSLANaMJbgA04UE+OqY= +github.com/akash-network/akash-api v0.0.73 h1:Wm0NgVgHbuLTAAa9aIRxan1zGwSb+i9/1uWp65vJmXc= +github.com/akash-network/akash-api v0.0.73/go.mod h1:5JMjLPHvWOyyamLz8bJoy6QHqz4I46ANAQpEIIUY1bM= github.com/akash-network/cometbft v0.34.27-akash h1:V1dApDOr8Ee7BJzYyQ7Z9VBtrAul4+baMeA6C49dje0= github.com/akash-network/cometbft v0.34.27-akash/go.mod h1:BcCbhKv7ieM0KEddnYXvQZR+pZykTKReJJYf7YC7qhw= github.com/akash-network/ledger-go v0.14.3 h1:LCEFkTfgGA2xFMN2CtiKvXKE7dh0QSM77PJHCpSkaAo= @@ -216,46 +177,28 @@ github.com/alecthomas/units v0.0.0-20190717042225-c3de453c63f4/go.mod h1:ybxpYRF github.com/alecthomas/units v0.0.0-20190924025748-f65c72e2690d/go.mod h1:rBZYJk541a8SKzHPHnH3zbiI+7dagKZ0cgpgrD7Fyho= github.com/alessio/shellescape v1.4.1 h1:V7yhSDDn8LP4lc4jS8pFkt0zCnzVJlG5JXy9BVKJUX0= github.com/alessio/shellescape v1.4.1/go.mod h1:PZAiSCk0LJaZkiCSkPv8qIobYglO3FPpyFjDCtHLS30= -github.com/aliyun/alibaba-cloud-sdk-go v0.0.0-20190412020505-60e2075261b6/go.mod h1:T9M45xf79ahXVelWoOBmH0y4aC1t5kXO5BxwyakgIGA= -github.com/aliyun/alibaba-cloud-sdk-go v0.0.0-20190620160927-9418d7b0cd0f/go.mod h1:myCDvQSzCW+wB1WAlocEru4wMGJxy+vlxHdhegi1CDQ= -github.com/aliyun/alibaba-cloud-sdk-go v1.61.1499 h1:P2FUu1/xkj4abuHcqdRQO9ZAYc9hSWG5c5gifsU/Ogc= -github.com/aliyun/alibaba-cloud-sdk-go v1.61.1499/go.mod h1:RcDobYh8k5VP6TNybz9m++gL3ijVI5wueVr0EM10VsU= -github.com/aliyun/aliyun-oss-go-sdk v0.0.0-20190307165228-86c17b95fcd5/go.mod h1:T/Aws4fEfogEE9v+HPhhw+CntffsBHJ8nXQCwKr0/g8= github.com/allegro/bigcache v1.2.1-0.20190218064605-e24eb225f156/go.mod h1:Cb/ax3seSYIx7SuZdm2G2xzfwmv3TPSk2ucNfQESPXM= github.com/andreyvit/diff v0.0.0-20170406064948-c7f18ee00883/go.mod h1:rCTlJbsFo29Kk6CurOXKm700vrz8f0KW0JNfpkRJY/8= github.com/antihax/optional v1.0.0/go.mod h1:uupD/76wgC+ih3iEmQUL+0Ugr19nfwCT1kdvxnR2qWY= github.com/apache/arrow/go/arrow v0.0.0-20191024131854-af6fa24be0db/go.mod h1:VTxUBvSJ3s3eHAg65PNgrsn5BtqCRPdmyXh6rAfdxN0= github.com/apache/thrift v0.12.0/go.mod h1:cp2SuWMxlEZw2r+iP2GNCdIi4C1qmUzdZFSVb+bacwQ= github.com/apache/thrift v0.13.0/go.mod h1:cp2SuWMxlEZw2r+iP2GNCdIi4C1qmUzdZFSVb+bacwQ= -github.com/apple/foundationdb/bindings/go v0.0.0-20190411004307-cd5c9d91fad2/go.mod h1:OMVSB21p9+xQUIqlGizHPZfjK+SHws1ht+ZytVDoz9U= 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.0.0-20190430140413-ec5e00d3c878/go.mod h1:3AMJUQhVx52RsWOnlkpikZr01T/yAVN2gn0861vByNg= -github.com/armon/go-metrics v0.3.0/go.mod h1:zXjbSimjXTd7vOpY8B0/2LpvNvDoXBuplAD+gJD3GYs= -github.com/armon/go-metrics v0.3.1/go.mod h1:4O98XIr/9W0sxpJ8UaYkvjk10Iff7SnFrb4QAOwNTFc= -github.com/armon/go-metrics v0.3.9/go.mod h1:4O98XIr/9W0sxpJ8UaYkvjk10Iff7SnFrb4QAOwNTFc= github.com/armon/go-metrics v0.4.1 h1:hR91U9KYmb6bLBYLQjyM+3j+rcd/UhE+G78SFnF8gJA= github.com/armon/go-metrics v0.4.1/go.mod h1:E6amYzXo6aW1tqzoZGT755KkbgrJsSdpwZ+3JqfkOG4= -github.com/armon/go-proxyproto v0.0.0-20190211145416-68259f75880e/go.mod h1:QmP9hvJ91BbJmGVGSbutW19IC0Q9phDCLGaomwTJbgU= github.com/armon/go-radix v0.0.0-20180808171621-7fddfc383310/go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgIH9cCH8= -github.com/armon/go-radix v1.0.0 h1:F4z6KzEeeQIMeLFa97iZU6vupzoecKdU5TX24SNppXI= -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/aryann/difflib v0.0.0-20170710044230-e206f873d14a/go.mod h1:DAHtR1m6lCRdSC2Tm3DSWRPvIPr6xNKyeHdqDQSQT+A= github.com/asaskevich/govalidator v0.0.0-20180720115003-f9ffefc3facf/go.mod h1:lB+ZfQJz7igIIfQNfa7Ml4HSf2uFQQRzpGGRXenZAgY= github.com/asaskevich/govalidator v0.0.0-20190424111038-f61b66f89f4a/go.mod h1:lB+ZfQJz7igIIfQNfa7Ml4HSf2uFQQRzpGGRXenZAgY= -github.com/asaskevich/govalidator v0.0.0-20200907205600-7a23bdc65eef h1:46PFijGLmAjMPwCCCo7Jf0W6f9slllCkkv7vyc1yOSg= -github.com/asaskevich/govalidator v0.0.0-20200907205600-7a23bdc65eef/go.mod h1:WaHUgvxTVq04UNunO+XhnAqY/wQc+bxr74GqbsZ/Jqw= github.com/avast/retry-go/v4 v4.5.0 h1:QoRAZZ90cj5oni2Lsgl2GW8mNTnUCnmpx/iKpwVisHg= github.com/avast/retry-go/v4 v4.5.0/go.mod h1:7hLEXp0oku2Nir2xBAsg0PTphp9z71bN5Aq1fboC3+I= github.com/aws/aws-lambda-go v1.13.3/go.mod h1:4UKl9IzQMoD+QF79YdCuzCwp8VbmG4VAQwij/eHl5CU= -github.com/aws/aws-sdk-go v1.25.37/go.mod h1:KmX6BPdI08NWTb3/sm4ZGu5ShLoqVDhKgpiN924inxo= -github.com/aws/aws-sdk-go v1.25.41/go.mod h1:KmX6BPdI08NWTb3/sm4ZGu5ShLoqVDhKgpiN924inxo= github.com/aws/aws-sdk-go v1.27.0/go.mod h1:KmX6BPdI08NWTb3/sm4ZGu5ShLoqVDhKgpiN924inxo= -github.com/aws/aws-sdk-go v1.44.157 h1:JVBPpEWC8+yA7CbfAuTl/ZFFlHS3yoqWFqxFyTCISwg= -github.com/aws/aws-sdk-go v1.44.157/go.mod h1:aVsgQcEevwlmQ7qHE9I3h+dtQgpqhFB+i8Phjh7fkwI= +github.com/aws/aws-sdk-go v1.44.164/go.mod h1:aVsgQcEevwlmQ7qHE9I3h+dtQgpqhFB+i8Phjh7fkwI= github.com/aws/aws-sdk-go-v2 v0.18.0/go.mod h1:JWVYvqSMppoMJC0x5wdwiImzgXTI9FuZwxzkQq9wy+g= github.com/aws/aws-sdk-go-v2 v1.2.0/go.mod h1:zEQs02YRBw1DjK0PoJv3ygDYOFTre1ejlJWl8FwAuQo= github.com/aws/aws-sdk-go-v2/config v1.1.1/go.mod h1:0XsVy9lBI/BCXm+2Tuvt39YmdHwS5unDQmxZOYe8F5Y= @@ -266,13 +209,7 @@ github.com/aws/aws-sdk-go-v2/service/route53 v1.1.1/go.mod h1:rLiOUrPLW/Er5kRcQ7 github.com/aws/aws-sdk-go-v2/service/sso v1.1.1/go.mod h1:SuZJxklHxLAXgLTc1iFXbEWkXs7QRTQpCLGaKIprQW0= github.com/aws/aws-sdk-go-v2/service/sts v1.1.1/go.mod h1:Wi0EBZwiz/K44YliU0EKxqTCJGUfYTWXrrBwkq736bM= github.com/aws/smithy-go v1.1.0/go.mod h1:EzMw8dbp/YJL4A5/sbhGddag+NPT7q084agLbB9LgIw= -github.com/axiomhq/hyperloglog v0.0.0-20220105174342-98591331716a h1:eqjiAL3qooftPm8b9C1GsSSRcmlw7iOva8vdBTmV2PY= -github.com/axiomhq/hyperloglog v0.0.0-20220105174342-98591331716a/go.mod h1:2stgcRjl6QmW+gU2h5E7BQXg4HU0gzxKWDuT5HviN9s= github.com/aymerick/raymond v2.0.3-0.20180322193309-b565731e1464+incompatible/go.mod h1:osfaiScAUVup+UC9Nfq76eWqDhXlp+4UYaA8uhTBO6g= -github.com/baiyubin/aliyun-sts-go-sdk v0.0.0-20180326062324-cfa1a18b161f/go.mod h1:AuiFmCCPBSrqvVMvuqFuk0qogytodnVFVSN5CeJB8Gc= -github.com/benbjohnson/clock v1.0.3/go.mod h1:bGMdMPoPVvcYyt1gHDf4J2KE153Yf9BuiUKYMaxlTDM= -github.com/benbjohnson/clock v1.1.0 h1:Q92kusRqC1XV2MjkWETPvjJVqKetz1OzxZB7mHJLju8= -github.com/benbjohnson/clock v1.1.0/go.mod h1:J11/hYXuz8f4ySSvYwY0FKfm+ezbsZBKZxNJlLklBHA= github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q= github.com/beorn7/perks v1.0.0/go.mod h1:KWe93zE9D1o94FZ5RNwFwVgaQK1VOXiVxmqh+CedLV8= github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM= @@ -280,21 +217,15 @@ github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6r github.com/bgentry/speakeasy v0.1.0/go.mod h1:+zsyZBPWlz7T6j88CTgSN5bM796AkVf0kBD4zp0CCIs= github.com/bgentry/speakeasy v0.1.1-0.20220910012023-760eaf8b6816 h1:41iFGWnSlI2gVpmOtVTJZNodLdLQLn/KsJqFvXwnd/s= github.com/bgentry/speakeasy v0.1.1-0.20220910012023-760eaf8b6816/go.mod h1:+zsyZBPWlz7T6j88CTgSN5bM796AkVf0kBD4zp0CCIs= -github.com/bitly/go-hostpool v0.0.0-20171023180738-a3a6125de932/go.mod h1:NOuUCSz6Q9T7+igc/hlvDOUdtWKryOrtFyIVABv/p7k= 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.5.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 h1:1PFHFE6yCCTv8C1TeyNNarDzntLi7wMI5i/pzqYIsAM= 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/bmizerany/pat v0.0.0-20170815010413-6226ea591a40/go.mod h1:8rLXio+WjiTceGBHIoTvn60HIbs7Hm7bcHjyrSqYB9c= github.com/boltdb/bolt v1.3.1/go.mod h1:clJnj/oiGkjum5o1McbSZDSLxVThjynRyGBgiAx27Ps= -github.com/boombuler/barcode v1.0.1-0.20190219062509-6c824513bacc h1:biVzkmvwrH8WK8raXaxBx6fRVTlJILwEwQGL1I/ByEI= -github.com/boombuler/barcode v1.0.1-0.20190219062509-6c824513bacc/go.mod h1:paBWMcWSl3LHKBqUq+rly7CNSldXjb2rDl3JlRe0mD8= github.com/boz/go-lifecycle v0.1.1 h1:tG/wff7Zxbkf19g4D4I0G8Y4sq83iT5QjD4rzEf/zrI= github.com/boz/go-lifecycle v0.1.1/go.mod h1:zdagAUMcC2C0OmQkBlJZFV77uF4GCVaGphAexGi7oho= -github.com/briankassouf/jose v0.9.2-0.20180619214549-d2569464773f/go.mod h1:HQhVmdUf7dBNwIIdBTivnCDxcf6IZY3/zrb+uKSJz6Y= github.com/btcsuite/btcd v0.0.0-20190315201642-aa6e0f35703c/go.mod h1:DrZx5ec/dmnfpw9KyYoQyYo7d0KEvTkk/5M/vbZjAr8= github.com/btcsuite/btcd v0.20.1-beta/go.mod h1:wVuoA8VJLEcwgqHBwHmzLRazpKxTv13Px/pDuV7OomQ= github.com/btcsuite/btcd v0.21.0-beta.0.20201114000516-e9c7a5ac6401/go.mod h1:Sv4JPQ3/M+teHz9Bo5jBpkNcP0x6r7rdihlNL/7tTAs= @@ -320,7 +251,6 @@ github.com/btcsuite/snappy-go v0.0.0-20151229074030-0bdef8d06723/go.mod h1:8woku github.com/btcsuite/snappy-go v1.0.0/go.mod h1:8woku9dyThutzjeg+3xrA5iCpBRH8XEEg3lh6TiUghc= github.com/btcsuite/websocket v0.0.0-20150119174127-31079b680792/go.mod h1:ghJtEyQwv5/p4Mg4C0fgbePVuGr935/5ddU9Z3TmDRY= github.com/btcsuite/winsvc v1.0.0/go.mod h1:jsenWakMcC0zFBFurPLEAyrnc/teJEM1O46fmI40EZs= -github.com/buger/jsonparser v1.1.1/go.mod h1:6RYKKt7H4d4+iWqouImQ9R2FZql3VbhNgx27UK13J/0= github.com/bwesterb/go-ristretto v1.2.0/go.mod h1:fUIoIZaG73pV5biE2Blr2xEzDoMj7NFEuV9ekS419A0= github.com/c-bata/go-prompt v0.2.2/go.mod h1:VzqtzE2ksDBcdln8G7mk2RX9QyGjH+OVqOCSiVIqS34= github.com/casbin/casbin/v2 v2.1.2/go.mod h1:YcPU1XXisHhLzuxH9coDNf2FbKpjGlbCg3n9yuLkIJQ= @@ -329,42 +259,36 @@ github.com/cenkalti/backoff v2.2.1+incompatible/go.mod h1:90ReRw6GdpyfrHakVjL/QH github.com/cenkalti/backoff/v3 v3.0.0/go.mod h1:cIeZDE3IrqwwJl6VUwCN6trj1oXrTS4rc0ij+ULvLYs= github.com/cenkalti/backoff/v3 v3.2.2 h1:cfUAAO3yvKMYKPrvhDuHSwQnhZNk/RMHKdZqKTxfm6M= github.com/cenkalti/backoff/v3 v3.2.2/go.mod h1:cIeZDE3IrqwwJl6VUwCN6trj1oXrTS4rc0ij+ULvLYs= -github.com/cenkalti/backoff/v4 v4.1.3 h1:cFAlzYUlVYDysBEH2T5hyJZMh3+5+WCBvSnK6Q8UtC4= -github.com/cenkalti/backoff/v4 v4.1.3/go.mod h1:scbssz8iZGpm3xbr14ovlUdkxfGXNInqkPWOWmG2CLw= github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= -github.com/centrify/cloud-golang-sdk v0.0.0-20190214225812-119110094d0f/go.mod h1:C0rtzmGXgN78pYR0tGJFhtHgkbAs0lIbHwkB81VxDQE= github.com/cespare/cp v0.1.0/go.mod h1:SOGHArjBr4JWaSDEVpWpo/hNg6RoKrls6Oh40hiwW+s= github.com/cespare/xxhash v1.1.0 h1:a6HrQnmkObjyL+Gs60czilIUGqrzKutQD6XZog3p+ko= github.com/cespare/xxhash v1.1.0/go.mod h1:XrSqR1VqqWfGrhpAt58auRo0WTKS1nRRg3ghfAqPWnc= github.com/cespare/xxhash/v2 v2.1.1/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= -github.com/cespare/xxhash/v2 v2.1.2/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= github.com/cespare/xxhash/v2 v2.2.0 h1:DC2CZ1Ep5Y4k3ZQ899DldepgrayRUGE6BBZ/cd9Cj44= github.com/cespare/xxhash/v2 v2.2.0/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/v5 v5.3.0/go.mod h1:E/eQpaFtUKGOOSEBZgmKAcn+zUUwWxqcaKZlF54wK8E= github.com/chigopher/pathlib v0.19.1 h1:RoLlUJc0CqBGwq239cilyhxPNLXTK+HXoASGyGznx5A= github.com/chigopher/pathlib v0.19.1/go.mod h1:tzC1dZLW8o33UQpWkNkhvPwL5n4yyFRFm/jL1YGWFvY= -github.com/chrismalek/oktasdk-go v0.0.0-20181212195951-3430665dfaa0/go.mod h1:5d8DqS60xkj9k3aXfL3+mXBH0DPYO0FQjcKosxl+b/Q= 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/circonus-labs/circonus-gometrics v2.3.1+incompatible h1:C29Ae4G5GtYyYMm1aztcyj/J5ckgJm2zwdDajFbx1NY= +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 h1:TJH+oke8D16535+jHExHj4nQvzlZrj7ug5D7I/orNUA= github.com/circonus-labs/circonusllhist v0.1.3/go.mod h1:kMXHVDlOchFAehlya5ePtbp5jckzBHf4XRpQvBOLI+I= github.com/clbanning/x2j v0.0.0-20191024224557-825249438eec/go.mod h1:jMjuTZXRI4dUb/I5gc9Hdhagfvm9+RyrPryS/auMzxE= github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= github.com/cloudflare/cloudflare-go v0.14.0/go.mod h1:EnwdgGMaFOruiPZRFSgn+TsQ3hQ7C/YWzIGLeu5c304= -github.com/cloudfoundry-community/go-cfclient v0.0.0-20190201205600-f136f9222381/go.mod h1:e5+USP2j8Le2M0Jo3qKPFnNhuo1wueU4nWHCXBOfQ14= 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/cockroachdb/apd v1.1.0 h1:3LFP3629v+1aKXU5Q37mxmRxX/pIu1nijXydLShEq5I= -github.com/cockroachdb/apd v1.1.0/go.mod h1:8Sl8LxpKi29FqWXR16WEFZRNSz3SoPzUzeMeY4+DwBQ= +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/cockroachdb/apd/v3 v3.1.0 h1:MK3Ow7LH0W8zkd5GMKA1PvS9qG3bWFI95WaVNfyZJ/w= github.com/cockroachdb/apd/v3 v3.1.0/go.mod h1:6qgPBMXjATAdD/VefbRP9NoSLKjbB4LCoA7gN4LpHs4= -github.com/cockroachdb/cockroach-go v0.0.0-20181001143604-e0a95dfd547c/go.mod h1:XGLbWH/ujMcbPbhZq52Nv6UrCghb1yGn//133kEsvDk= github.com/cockroachdb/datadriven v0.0.0-20190809214429-80d97fb3cbaa/go.mod h1:zn76sxSg3SzpJ0PPJaLDCu+Bu0Lg3sKTORVIj19EIF8= github.com/cockroachdb/datadriven v1.0.0/go.mod h1:5Ib8Meh+jk1RlHIXej6Pzevx/NLlNvQB9pmSBZErGA4= github.com/cockroachdb/datadriven v1.0.2/go.mod h1:a9RdTaap04u637JoCzcUoIcDmvwSUtcUFtT/C3kJlTU= @@ -395,19 +319,19 @@ github.com/consensys/bavard v0.1.8-0.20210406032232-f3452dc9b572/go.mod h1:Bpd0/ github.com/consensys/bavard v0.1.8-0.20210915155054-088da2f7f54a/go.mod h1:9ItSMtA/dXMAiL7BG6bqW2m3NdSEObYWoH223nGHukI= github.com/consensys/gnark-crypto v0.4.1-0.20210426202927-39ac3d4b3f1f/go.mod h1:815PAHg3wvysy0SyIqanF8gZ0Y1wjk/hrDHD/iT88+Q= github.com/consensys/gnark-crypto v0.5.3/go.mod h1:hOdPlWQV1gDLp7faZVeg8Y0iEPFaOUnCc4XeCCk96p0= -github.com/containerd/continuity v0.0.0-20190426062206-aaeac12a7ffc/go.mod h1:GL3xCUCBDV3CZiTSEKksMWbLE66hEyuu9qyDOOqM47Y= +github.com/containerd/console v1.0.3/go.mod h1:7LqA/THxQ86k76b8c/EMSiaJ3h1eZkMkXar0TQ1gf3U= github.com/containerd/continuity v0.3.0 h1:nisirsYROK15TAMVukJOUyGJjz4BNQJBVsNvAXZJ/eg= github.com/containerd/continuity v0.3.0/go.mod h1:wJEAIwKOm/pBZuBd0JmeTvnLquTB1Ag8espWhkykbPM= +github.com/containernetworking/cni v1.1.2 h1:wtRGZVv7olUHMOqouPpn3cXJWpJgM6+EUl31EQbXALQ= +github.com/containernetworking/cni v1.1.2/go.mod h1:sDpYKmGVENF3s6uvMvGgldDWeG8dMxakj/u+i9ht9vw= 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-etcd v2.0.0+incompatible/go.mod h1:Jez6KQU2B/sWsbdaef3ED8NzMklzPG4d5KIOhIy30Tk= -github.com/coreos/go-oidc v2.0.0+incompatible/go.mod h1:CgnwVTmzoESiwO9qyAFEMiHoZ1nMCKZlZ9V6mm3/LKc= 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-20180511133405-39ca1b05acc7/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4= -github.com/coreos/go-systemd v0.0.0-20181012123002-c6f51f82210d/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 v0.0.0-20191104093116-d3cd4ed1dbcf h1:iW4rZ826su+pqaw19uhpSCzhj44qo35pNgKFGqzDKkU= github.com/coreos/go-systemd v0.0.0-20191104093116-d3cd4ed1dbcf/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4= @@ -416,8 +340,8 @@ github.com/coreos/go-systemd/v22 v22.5.0/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSV github.com/coreos/pkg v0.0.0-20160727233714-3ac0863d7acf/go.mod h1:E3G3o1h8I7cfcXa63jLwjI0eiQQMgzzUDFVpN/nH/eA= github.com/coreos/pkg v0.0.0-20180108230652-97fdf19511ea/go.mod h1:E3G3o1h8I7cfcXa63jLwjI0eiQQMgzzUDFVpN/nH/eA= github.com/coreos/pkg v0.0.0-20180928190104-399ea9e2e55f/go.mod h1:E3G3o1h8I7cfcXa63jLwjI0eiQQMgzzUDFVpN/nH/eA= -github.com/coreos/pkg v0.0.0-20220810130054-c7d1c02cb6cf h1:GOPo6vn/vTN+3IwZBvXX0y5doJfSC7My0cdzelyOCsQ= -github.com/coreos/pkg v0.0.0-20220810130054-c7d1c02cb6cf/go.mod h1:E3G3o1h8I7cfcXa63jLwjI0eiQQMgzzUDFVpN/nH/eA= +github.com/coreos/pkg v0.0.0-20230601102743-20bbbf26f4d8 h1:NrLmX9HDyGvQhyZdrDx89zCvPdxQ/EHCo+xGNrjNmHc= +github.com/coreos/pkg v0.0.0-20230601102743-20bbbf26f4d8/go.mod h1:E3G3o1h8I7cfcXa63jLwjI0eiQQMgzzUDFVpN/nH/eA= github.com/cosmos/btcutil v1.0.4 h1:n7C2ngKXo7UC9gNyMNLbzqz7Asuf+7Qv4gnX/rOdQ44= github.com/cosmos/btcutil v1.0.4/go.mod h1:Ffqc8Hn6TJUdDgHBwIZLtrLQC1KdJ9jGJl/TvgUaxbU= github.com/cosmos/cosmos-db v0.0.0-20221226095112-f3c38ecb5e32 h1:zlCp9n3uwQieELltZWHRmwPmPaZ8+XoL2Sj+A2YJlr8= @@ -441,12 +365,11 @@ github.com/cpuguy83/go-md2man v1.0.10/go.mod h1:SmD6nW6nTyfqj6ABTjUi3V3JVMnlJmwc 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/cpuguy83/go-md2man/v2 v2.0.3/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= +github.com/cpuguy83/go-md2man/v2 v2.0.4/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= github.com/creachadair/taskgroup v0.3.2 h1:zlfutDS+5XG40AOxcHDSThxKzns8Tnr9jnr6VqkYlkM= github.com/creachadair/taskgroup v0.3.2/go.mod h1:wieWwecHVzsidg2CsUnFinW1faVN4+kq+TDlRJQ0Wbk= 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/creack/pty v1.1.18 h1:n56/Zwd5o6whRC5PMGretI4IdRLlmBXYNjScPaBgsbY= github.com/creack/pty v1.1.18/go.mod h1:MOBLtS5ELjhRRrroQr9kyvTxUAFNvYEK993ew/Vr4O4= github.com/cucumber/common/gherkin/go/v22 v22.0.0 h1:4K8NqptbvdOrjL9DEea6HFjSpbdT9+Q5kgLpmmsHYl0= @@ -454,6 +377,7 @@ github.com/cucumber/common/gherkin/go/v22 v22.0.0/go.mod h1:3mJT10B2GGn3MvVPd3Fw github.com/cucumber/common/messages/go/v17 v17.1.1 h1:RNqopvIFyLWnKv0LfATh34SWBhXeoFTJnSrgm9cT/Ts= github.com/cucumber/common/messages/go/v17 v17.1.1/go.mod h1:bpGxb57tDE385Rb2EohgUadLkAbhoC4IyCFi89u/JQI= github.com/cyberdelia/templates v0.0.0-20141128023046-ca7fffd4298c/go.mod h1:GyV+0YP4qX0UQ7r2MoYZ+AvYDp12OF5yg4q8rGnyNh4= +github.com/cyphar/filepath-securejoin v0.2.3/go.mod h1:aPGpWjXOXUn2NCNjFvBE6aRxGGx79pTxQpKOJNYHHl4= github.com/danieljoos/wincred v1.1.2 h1:QLdCxFs1/Yl4zduvBdcHB8goaYk9RARS2SgLLRuAyr0= github.com/danieljoos/wincred v1.1.2/go.mod h1:GijpziifJoIBfYh+S7BbkdUTU4LfM+QnGqR5Vl2tAx0= github.com/dave/jennifer v1.2.0/go.mod h1:fIb+770HOpJ2fmN9EPPKOqm1vMGhB+TwXKMZhrIygKg= @@ -462,7 +386,6 @@ github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSs github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc h1:U9qPSI2PIWSS1VwoXQT9A3Wy9MM3WgvqSxFWenqJduM= github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc/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/deckarep/golang-set v1.8.0/go.mod h1:5nI87KwE7wgsBU1F4GKAw2Qod7p5kyS383rP6+o6qqo= github.com/decred/dcrd/crypto/blake256 v1.0.0 h1:/8DMNYp9SGi5f0w7uCm6d6M4OU2rGFK09Y2A4Xv7EE0= github.com/decred/dcrd/crypto/blake256 v1.0.0/go.mod h1:sQl2p6Y26YV+ZOcSTP6thNdn47hh8kt6rqSlvmrXFAc= @@ -471,9 +394,6 @@ github.com/decred/dcrd/dcrec/secp256k1/v4 v4.0.1/go.mod h1:hyedUtir6IdtD/7lIxGeC github.com/decred/dcrd/lru v1.0.0/go.mod h1:mxKOwFd7lFjN2GZYsiz/ecgqR6kkYAl+0pz0tEMk218= github.com/deepmap/oapi-codegen v1.6.0/go.mod h1:ryDa9AgbELGeB+YEXE1dR53yAjHwFvE9iAUlWl9Al3M= github.com/deepmap/oapi-codegen v1.8.2/go.mod h1:YLgSKSDv/bZQB7N4ws6luhozi3cEdRktEqrX88CvjIw= -github.com/denisenkom/go-mssqldb v0.0.0-20190412130859-3b1d194e553a/go.mod h1:zAg7JM8CkOJ43xKXIj7eRO9kmWm/TW578qo+oDO6tuM= -github.com/denverdino/aliyungo v0.0.0-20190125010748-a747050bb1ba h1:p6poVbjHDkKa+wtC8frBMwQtT3BmqGYBjzMwJ63tuR4= -github.com/denverdino/aliyungo v0.0.0-20190125010748-a747050bb1ba/go.mod h1:dV8lFg6daOBZbT6/BDGIz6Y3WFGn8juu6G+CQ6LHtl0= github.com/desertbit/timer v0.0.0-20180107155436-c41aec40b27f h1:U5y3Y5UE0w7amNe7Z5G/twsBW0KEalRQXZzf8ufSh9I= github.com/desertbit/timer v0.0.0-20180107155436-c41aec40b27f/go.mod h1:xH/i4TFMt8koVQZ6WFms69WAsDWr2XsYL3Hkl7jkoLE= github.com/dgraph-io/badger v1.6.0/go.mod h1:zwt7syl517jmP8s94KqSxTlM6IMsdhYy6psNgSztDR4= @@ -487,19 +407,10 @@ github.com/dgryski/go-bitstream v0.0.0-20180413035011-3522498ce2c8/go.mod h1:VMa github.com/dgryski/go-farm v0.0.0-20190423205320-6a90982ecee2/go.mod h1:SqUrOPUnsFjfmXRMNPybcSiG0BgUW2AuFH8PAnS2iTw= github.com/dgryski/go-farm v0.0.0-20200201041132-a6ae2369ad13 h1:fAjc9m62+UWV/WAFKLNi6ZS0675eEUC9y3AlwSbQu1Y= github.com/dgryski/go-farm v0.0.0-20200201041132-a6ae2369ad13/go.mod h1:SqUrOPUnsFjfmXRMNPybcSiG0BgUW2AuFH8PAnS2iTw= -github.com/dgryski/go-metro v0.0.0-20180109044635-280f6062b5bc h1:8WFBn63wegobsYAX0YjD+8suexZDga5CctH4CCTx2+8= -github.com/dgryski/go-metro v0.0.0-20180109044635-280f6062b5bc/go.mod h1:c9O8+fpSOX1DM8cPNSkX/qsBWdkD4yd2dpciOWQjpBw= github.com/dgryski/go-sip13 v0.0.0-20181026042036-e10d5fee7954/go.mod h1:vAd38F8PWV+bWy6jNmig1y/TA+kYO4g3RSRF0IAv0no= -github.com/digitalocean/godo v1.65.0 h1:3SywGJBC18HaYtPQF+T36jYzXBi+a6eIMonSjDll7TA= -github.com/digitalocean/godo v1.65.0/go.mod h1:p7dOjjtSBqCTUksqtA5Fd3uaKs9kyTq2xcz76ulEJRU= -github.com/dimchansky/utfbom v1.1.0/go.mod h1:rO41eb7gLfo8SF1jd9F8HplJm1Fewwi4mQvIirEdv+8= -github.com/dimchansky/utfbom v1.1.1 h1:vV6w1AhK4VMnhBno/TPVCoK9U/LP0PkLCS9tbxHdi/U= -github.com/dimchansky/utfbom v1.1.1/go.mod h1:SxdoEBH5qIqFocHMyGOXVAybYJdr71b1Q/j0mACtrfE= github.com/dlclark/regexp2 v1.4.1-0.20201116162257-a2a8dda75c91/go.mod h1:2pZnwuY/m+8K6iRw6wQdMtk+rH5tNGR1i55kozfMjCc= -github.com/dnaeon/go-vcr v1.0.1/go.mod h1:aBB1+wY4s93YsC3HHjMBMrwTj2R9FHDzUr9KyGc8n1E= github.com/dnaeon/go-vcr v1.1.0/go.mod h1:M7tiix8f0r6mKKJ3Yq/kqU1OYf3MnfmBWVbPx/yU9ko= github.com/dnaeon/go-vcr v1.2.0/go.mod h1:R4UdLID7HZT3taECzJs4YgbbH6PIGXB6W/sc5OLb6RQ= -github.com/docker/distribution v2.8.1+incompatible/go.mod h1:J2gT2udsDAN96Uj4KfcMRqY0/ypR+oyYUYmja8H+y+w= github.com/docker/docker v0.7.3-0.20190327010347-be7ac8be2ae0/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk= github.com/docker/docker v1.4.2-0.20180625184442-8e610b2b55bf/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk= github.com/docker/go-connections v0.4.0 h1:El9xVISelRB7BuFusrZozjnkIM5YnzCViNKohAFqRJQ= @@ -513,10 +424,6 @@ github.com/docker/spdystream v0.0.0-20181023171402-6480d4af844c/go.mod h1:Qh8CwZ github.com/docopt/docopt-go v0.0.0-20180111231733-ee0de3bc6815/go.mod h1:WwZ+bS3ebgob9U8Nd0kOddGdZWjyMGR8Wziv+TBNwSE= github.com/dop251/goja v0.0.0-20211011172007-d99e4b8cbf48/go.mod h1:R9ET47fwRVRPZnOGvHxxhuZcbrMCuiqOz3Rlrh4KSnk= github.com/dop251/goja_nodejs v0.0.0-20210225215109-d91c329300e7/go.mod h1:hn7BA7c8pLvoGndExHudxTDKZ84Pyvv+90pbBjbTz0Y= -github.com/dsnet/compress v0.0.1/go.mod h1:Aw8dCMJ7RioblQeTqt88akK31OvO8Dhf5JflhBbQEHo= -github.com/dsnet/golib v0.0.0-20171103203638-1ea166775780/go.mod h1:Lj+Z9rebOhdfkVLjJ8T6VcRQv3SXugXy999NBtR9aFY= -github.com/duosecurity/duo_api_golang v0.0.0-20190308151101-6c680f768e74 h1:2MIhn2R6oXQbgW5yHfS+d6YqyMfXiu2L55rFZC4UD/M= -github.com/duosecurity/duo_api_golang v0.0.0-20190308151101-6c680f768e74/go.mod h1:UqXY1lYT/ERa4OEAywUqdok1T4RCRdArkhic1Opuavo= github.com/dustin/go-humanize v0.0.0-20171111073723-bb3d318650d4/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25KnS6fMYU6eOk= github.com/dustin/go-humanize v1.0.0 h1:VSnTsYCnlFHaM2/igO1h6X3HA71jcobQuxemgkq4zYo= github.com/dustin/go-humanize v1.0.0/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25KnS6fMYU6eOk= @@ -530,16 +437,15 @@ github.com/edsrzf/mmap-go v1.0.0/go.mod h1:YO35OhQPt3KJa3ryjFM5Bs14WD66h8eGKpfaB github.com/edwingeng/deque/v2 v2.1.1 h1:+xjC3TnaeMPLZMi7QQf9jN2K00MZmTwruApqplbL9IY= github.com/edwingeng/deque/v2 v2.1.1/go.mod h1:HukI8CQe9KDmZCcURPZRYVYjH79Zy2tIjTF9sN3Bgb0= github.com/eknkc/amber v0.0.0-20171010120322-cdade1c07385/go.mod h1:0vRUJqYpeSZifjYj7uP3BG/gKcuzL9xWVV/Y+cK33KM= -github.com/elazarl/go-bindata-assetfs v1.0.0/go.mod h1:v+YaWX3bdea5J/mo8dSETolEo7R71Vk1u8bnjau5yw4= -github.com/elazarl/goproxy v0.0.0-20170405201442-c4fc26588b6e/go.mod h1:/Zj4wYkgs4iZTTu3o/KG3Itv/qCCa8VVMlb3i9OVuzc= github.com/elazarl/goproxy v0.0.0-20180725130230-947c36da3153/go.mod h1:/Zj4wYkgs4iZTTu3o/KG3Itv/qCCa8VVMlb3i9OVuzc= -github.com/elazarl/goproxy v0.0.0-20191011121108-aa519ddbe484 h1:pEtiCjIXx3RvGjlUJuCNxNOw0MNblyR9Wi+vJGBFh+8= github.com/elazarl/goproxy v0.0.0-20191011121108-aa519ddbe484/go.mod h1:Ro8st/ElPeALwNFlcTpWmkr6IoMFfkjXAvTHpevnDsM= github.com/elazarl/goproxy/ext v0.0.0-20190711103511-473e67f1d7d2/go.mod h1:gNh8nYJoAm43RfaxurUnxr+N1PwuFV3ZMl/efxlIlY8= 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/v3 v3.10.0 h1:X4gma4HM7hFm6WMeAsTfqA0GOfdNoCzBIkHGoRLGXuM= -github.com/emicklei/go-restful/v3 v3.10.0/go.mod h1:6n3XBCmQQb25CM2LCACGz8ukIrRry+4bhvbpWn3mrbc= +github.com/emicklei/go-restful/v3 v3.8.0/go.mod h1:6n3XBCmQQb25CM2LCACGz8ukIrRry+4bhvbpWn3mrbc= +github.com/emicklei/go-restful/v3 v3.9.0/go.mod h1:6n3XBCmQQb25CM2LCACGz8ukIrRry+4bhvbpWn3mrbc= +github.com/emicklei/go-restful/v3 v3.11.3 h1:yagOQz/38xJmcNeZJtrUcKjkHRltIaIFXKWeG1SkWGE= +github.com/emicklei/go-restful/v3 v3.11.3/go.mod h1:6n3XBCmQQb25CM2LCACGz8ukIrRry+4bhvbpWn3mrbc= github.com/envoyproxy/go-control-plane v0.6.9/go.mod h1:SBwIajubJHhxtWwsL9s8ss4safvEdbitLhGGK48rN6g= 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= @@ -549,22 +455,17 @@ github.com/envoyproxy/go-control-plane v0.9.9-0.20201210154907-fd9021fe5dad/go.m 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.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/etcd-io/bbolt v1.3.3/go.mod h1:ZF2nL25h33cCyBtcyWeZ2/I3HQOfTP+0PIEvHjkjCrw= github.com/ethereum/go-ethereum v1.10.17/go.mod h1:Lt5WzjM07XlXc95YzrhosmR4J9Ahd6X2wyEV2SvGhk0= -github.com/evanphx/json-patch v0.0.0-20190203023257-5858425f7550/go.mod h1:50XU6AFN0ol/bzJsmQLiYLvXMP4fmwYFNcr97nuDLSk= -github.com/evanphx/json-patch v0.5.2/go.mod h1:ZWS5hhDbVDyob71nXKNL0+PWn6ToqBHMikGIFbs31qQ= github.com/evanphx/json-patch v4.2.0+incompatible/go.mod h1:50XU6AFN0ol/bzJsmQLiYLvXMP4fmwYFNcr97nuDLSk= github.com/evanphx/json-patch v4.5.0+incompatible/go.mod h1:50XU6AFN0ol/bzJsmQLiYLvXMP4fmwYFNcr97nuDLSk= 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/evanphx/json-patch/v5 v5.5.0/go.mod h1:G79N1coSVB93tBe7j6PhzjmR3/2VvlbKOFpnXhI9Bw4= -github.com/evanphx/json-patch/v5 v5.6.0 h1:b91NhWfaz02IuVxO9faSllyAtNXHMPkC5J8sJCLunww= github.com/evanphx/json-patch/v5 v5.6.0/go.mod h1:G79N1coSVB93tBe7j6PhzjmR3/2VvlbKOFpnXhI9Bw4= -github.com/exponent-io/jsonpath v0.0.0-20151013193312-d6023ce2651d/go.mod h1:ZZMPRZwes7CROmyNKgQzC3XPs6L/G2EJLHddWejkmf4= +github.com/evanphx/json-patch/v5 v5.8.0 h1:lRj6N9Nci7MvzrXuX6HFzU8XjmhPiXPlsKEy1u0KQro= +github.com/evanphx/json-patch/v5 v5.8.0/go.mod h1:VNkHZ/282BpEyt/tObQO8s5CMPmYYq14uClGH4abBuQ= github.com/facebookgo/ensure v0.0.0-20200202191622-63f1cf65ac4c h1:8ISkoahWXwZR41ois5lSJBSVw4D0OV19Ht/JSTzvSv0= github.com/facebookgo/ensure v0.0.0-20200202191622-63f1cf65ac4c/go.mod h1:Yg+htXGokKKdzcwhuNDwVvN+uBxDGXJ7G/VN1d8fa64= github.com/facebookgo/stack v0.0.0-20160209184415-751773369052 h1:JWuenKqqX8nojtoVVWjGfOF9635RETekkoH6Cc9SX0A= @@ -572,20 +473,16 @@ github.com/facebookgo/stack v0.0.0-20160209184415-751773369052/go.mod h1:UbMTZqL github.com/facebookgo/subset v0.0.0-20200203212716-c811ad88dec4 h1:7HZCaLC5+BZpmbhCOZJ293Lz68O7PYrF2EzeiFMwCLk= github.com/facebookgo/subset v0.0.0-20200203212716-c811ad88dec4/go.mod h1:5tD+neXqOorC30/tWg0LCSkrqj/AR6gu8yY8/fpw1q0= github.com/fasthttp-contrib/websocket v0.0.0-20160511215533-1f3b11f56072/go.mod h1:duJ4Jxv5lDcvg4QuQr0oowTf7dz4/CR8NtyCooz9HL8= -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.13.0/go.mod h1:kLAiJbzzSOZDVNGyDpeOxJ47H46qBXwg5ILebYFFOfk= -github.com/fatih/color v1.14.1 h1:qfhVLaG5s+nCROl1zJsZRxFeYrHLqWroPOQ8BWiNb4w= -github.com/fatih/color v1.14.1/go.mod h1:2oHN61fhTpgcxD3TSWCgKDiH1+x4OiDVVGH8WlgGZGg= -github.com/fatih/structs v1.1.0 h1:Q7juDM0QtcnhCpeyLGQKyg4TOIghuNXrkL32pHAUMxo= +github.com/fatih/color v1.16.0 h1:zmkK9Ngbjj+K0yRhTVONQh1p/HknKYSlNT+vZCzyokM= +github.com/fatih/color v1.16.0/go.mod h1:fL2Sau1YI5c0pdGEVCbKQbLXB6edEj1ZgiY4NijnWvE= github.com/fatih/structs v1.1.0/go.mod h1:9NiDSp5zOcgEDl+j00MP/WkGVPOlPRLejGD8Ga6PJ7M= github.com/felixge/httpsnoop v1.0.1/go.mod h1:m8KPJKqk1gH5J9DgRY2ASl2lWCfGKXixSwevea8zH2U= github.com/felixge/httpsnoop v1.0.4 h1:NFTV2Zj1bL4mc9sqWACXbQFVBBg2W3GPvqp8/ESS2Wg= github.com/felixge/httpsnoop v1.0.4/go.mod h1:m8KPJKqk1gH5J9DgRY2ASl2lWCfGKXixSwevea8zH2U= github.com/fjl/memsize v0.0.0-20190710130421-bcb5799ab5e5/go.mod h1:VvhXpOYNQvB+uIk2RvXzuaQtkQJzzIx6lSBe1xv7hi0= github.com/flosch/pongo2 v0.0.0-20190707114632-bbf5a6c351f4/go.mod h1:T9YF2M40nIgbVgp3rreNmTged+9HrbNTIQf1PsaIiTA= -github.com/flowstack/go-jsonschema v0.1.1/go.mod h1:yL7fNggx1o8rm9RlgXv7hTBWxdBM0rVwpMwimd3F3N0= github.com/fogleman/gg v1.2.1-0.20190220221249-0403632d5b90/go.mod h1:R/bRT+9gY/C5z7JzPU0zXsXHKM4/ayA+zqcVNZzPa1k= 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= @@ -593,20 +490,15 @@ github.com/fortytw2/leaktest v1.3.0 h1:u8491cBMTQ8ft8aeV+adlcytMZylmA5nnwwkRZjI8 github.com/fortytw2/leaktest v1.3.0/go.mod h1:jDsjWgpAGjm2CA7WthBh/CdZYEPF31XHquHwclZch5g= github.com/franela/goblin v0.0.0-20200105215937-c9ffbefa60db/go.mod h1:7dvUGVsVBjqR7JHJk0brhHOZYGmfBYOrK0ZhYMEtBr4= github.com/franela/goreq v0.0.0-20171204163338-bcd34c9993f8/go.mod h1:ZhphrRTfi2rbfLwlschooIH4+wKKDR4Pdxhh+TRoA20= -github.com/frankban/quicktest v1.4.0/go.mod h1:36zfPVQyHxymz4cH7wlDmVwDrJuljRB60qkgn7rorfQ= -github.com/frankban/quicktest v1.4.1/go.mod h1:36zfPVQyHxymz4cH7wlDmVwDrJuljRB60qkgn7rorfQ= -github.com/frankban/quicktest v1.10.0/go.mod h1:ui7WezCLWMWxVWr1GETZY3smRy0G4KWq9vcPtJmFl7Y= -github.com/frankban/quicktest v1.13.0/go.mod h1:qLE0fzW0VuyUAJgPU19zByoIr0HtCHN/r/VLSOOIySU= +github.com/frankban/quicktest v1.11.3/go.mod h1:wRf/ReqHper53s+kmmSZizM8NamnL3IM0I9ntUbOk+k= github.com/frankban/quicktest v1.14.6 h1:7Xjx+VpznH+oBnejlPUj8oUpdxnVs4f8XU8WnHkI4W8= github.com/frankban/quicktest v1.14.6/go.mod h1:4ptaffx2x8+WTWXmUCuVU6aPUX1/Mz7zb5vbUoiM6w0= 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.7.0 h1:8JEhPFa5W2WU7YfeZzPNqzMP6Lwt7L2715Ggo0nosvA= github.com/fsnotify/fsnotify v1.7.0/go.mod h1:40Bi/Hjc2AVfZrqy+aj+yEI+/bRxZnMJyTJwOpGvigM= -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/gammazero/deque v0.0.0-20190130191400-2afb3858e9c7/go.mod h1:GeIq9qoE43YdGnDXURnmKTnGg15pQz4mYkXSTChbneI= -github.com/gammazero/workerpool v0.0.0-20190406235159-88d534f22b56/go.mod h1:w9RqFVO2BM3xwWEcAB8Fwp0OviTBBEiRmSBDfbXnd3w= +github.com/fxamacker/cbor/v2 v2.7.0 h1:iM5WgngdRBanHcxugY4JySA0nk1wZorNOpTgCMedv5E= +github.com/fxamacker/cbor/v2 v2.7.0/go.mod h1:pxXPTn3joSm21Gbwsv0w9OSA2y1HFR9qXEeXQVeNoDQ= github.com/gavv/httpexpect v2.0.0+incompatible/go.mod h1:x+9tiU1YnrOvnB725RkpoLv1M62hOWzwo5OXotisrKc= github.com/gballet/go-libpcsclite v0.0.0-20190607065134-2772fd86a8ff/go.mod h1:x7DCsMOv1taUwEWCzT4cmDeAkigA5/QCwUodaVOe8Ww= github.com/getkin/kin-openapi v0.53.0/go.mod h1:7Yn5whZr5kJi6t+kShccXS8ae1APpYTW6yheSwk8Yi4= @@ -630,26 +522,25 @@ github.com/glycerine/go-unsnap-stream v0.0.0-20180323001048-9f0cb55181dd/go.mod github.com/glycerine/goconvey v0.0.0-20190410193231-58a59202ab31/go.mod h1:Ogl1Tioa0aV7gstGFO7KhffUsb9M4ydbEbbxpcEDc24= github.com/go-andiamo/splitter v1.2.5 h1:P3NovWMY2V14TJJSolXBvlOmGSZo3Uz+LtTl2bsV/eY= github.com/go-andiamo/splitter v1.2.5/go.mod h1:8WHU24t9hcMKU5FXDQb1hysSEC/GPuivIp0uKY1J8gw= -github.com/go-asn1-ber/asn1-ber v1.3.1/go.mod h1:hEBeB/ic+5LoWskz+yKT7vGhhPYkProFKoKdwZRWMe0= github.com/go-check/check v0.0.0-20180628173108-788fd7840127/go.mod h1:9ES+weclKsC9YodN5RgxqK/VD9HM9JsCSh7rNhMZE98= github.com/go-chi/chi/v5 v5.0.0/go.mod h1:BBug9lr0cqtdAhsu6R4AAdvufI0/XBzAQSsUqJpoZOs= github.com/go-errors/errors v1.0.1/go.mod h1:f4zRHt4oKfwPJE5k8C9vpYG+aDHdBFUsgrm6/TyX73Q= -github.com/go-errors/errors v1.4.2 h1:J6MZopCL4uSllY1OfXM374weqZFFItUbrImctkmUxIA= -github.com/go-errors/errors v1.4.2/go.mod h1:sIVyrIiJhuEF+Pj9Ebtd6P/rEYROXFi3BopGUQ5a5Og= +github.com/go-errors/errors v1.5.1 h1:ZwEMSLRCapFLflTpT7NKaAc7ukJ8ZPEjzlxt8rPN8bk= +github.com/go-errors/errors v1.5.1/go.mod h1:sIVyrIiJhuEF+Pj9Ebtd6P/rEYROXFi3BopGUQ5a5Og= 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-jose/go-jose/v3 v3.0.0/go.mod h1:RNkWWRld676jZEYoV3+XK8L2ZnNSvIsxFMht0mSX+u8= +github.com/go-jose/go-jose/v3 v3.0.1/go.mod h1:RNkWWRld676jZEYoV3+XK8L2ZnNSvIsxFMht0mSX+u8= +github.com/go-jose/go-jose/v3 v3.0.3 h1:fFKWeig/irsp7XD2zBxvnmA/XaRWp5V3CBsZXJF7G7k= +github.com/go-jose/go-jose/v3 v3.0.3/go.mod h1:5b+7YgP7ZICgJDBdfjZaIt+H/9L9T/YQrVfLAMboGkQ= 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/kit v0.10.0/go.mod h1:xUsJbQ/Fp4kEt7AFgCuvyX4a71u8h9jB8tj/ORgOZ7o= github.com/go-kit/kit v0.12.0 h1:e4o3o3IsBfAKQh5Qbbiqyfu97Ku7jrO/JbohvztANh4= github.com/go-kit/kit v0.12.0/go.mod h1:lHd+EkCZPIwYItmGDDRdhinkzX2A1sj+M9biaEaizzs= -github.com/go-kit/log v0.1.0/go.mod h1:zbhenjAZHb184qTLMA9ZjW7ThYL0H2mk7Q6pNt4vbaY= github.com/go-kit/log v0.2.1 h1:MRVx0/zhvdseW+Gza6N9rVzU/IVzaeE1SFI4raAhmBU= github.com/go-kit/log v0.2.1/go.mod h1:NwTd00d/i8cPZ3xOwwiv2PO5MOcx78fFErGNcVmBjv0= -github.com/go-ldap/ldap v3.0.2+incompatible/go.mod h1:qfd9rJvER9Q0/D/Sqn1DfHRoBp40uXYvFoEVrNEPqRc= -github.com/go-ldap/ldap/v3 v3.1.3/go.mod h1:3rbOH3jRS2u6jg2rJnKAMLE/xQyCKIveG2Sa/Cohzb8= -github.com/go-ldap/ldap/v3 v3.1.10/go.mod h1:5Zun81jBTabRaI8lzN7E1JjyEl1g6zI6u9pd8luAK4Q= 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= @@ -659,15 +550,11 @@ github.com/go-logr/logr v0.1.0/go.mod h1:ixOQHD9gLJUVQQ2ZOR7zLEifBX6tGkNJF4QyIY7 github.com/go-logr/logr v0.2.0/go.mod h1:z6/tIYblkpsD+a4lm/fGIIU9mZ+XfAiaFtq7xTgseGU= github.com/go-logr/logr v1.2.0/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= github.com/go-logr/logr v1.2.3/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= -github.com/go-logr/logr v1.2.4/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= -github.com/go-logr/logr v1.4.1 h1:pKouT5E8xu9zeFC39JXRDukb6JFQPXM5p5I91188VAQ= -github.com/go-logr/logr v1.4.1/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY= -github.com/go-logr/stdr v1.2.2 h1:hSWxHoqTgW2S2qGc0LTAI563KZ5YKYRhT3MFKZMbjag= -github.com/go-logr/stdr v1.2.2/go.mod h1:mMo/vtBO5dYbehREoey6XUKy/eSumjCCveDpRre4VKE= +github.com/go-logr/logr v1.4.2 h1:6pFjapn8bFcIbiKo3XT4j/BhANplGihG6tvd+8rYgrY= +github.com/go-logr/logr v1.4.2/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY= github.com/go-logr/zapr v0.1.0/go.mod h1:tabnROwaDl0UNxkVeFRbY8bwB37GwRv0P8lg6aAiEnk= -github.com/go-logr/zapr v1.2.0/go.mod h1:Qa4Bsj2Vb+FAVeAKsLD8RLQ+YRJB8YDmOAKxaBQf7Ro= -github.com/go-logr/zapr v1.2.4 h1:QHVo+6stLbfJmYGkQ7uGHUCu5hnAFAj6mDe6Ea0SeOo= -github.com/go-logr/zapr v1.2.4/go.mod h1:FyHWQIzQORZ0QVE1BtVHv3cKtNLuXsbNLtpuhNapBOA= +github.com/go-logr/zapr v1.3.0 h1:XGdV8XW8zdwFiwOA2Dryh1gj2KRQyOOoNmBy4EplIcQ= +github.com/go-logr/zapr v1.3.0/go.mod h1:YKepepNBd1u/oyhd/yQmtjVXmm9uML4IXUgMOwR8/Gg= github.com/go-martini/martini v0.0.0-20170121215854-22fa46961aab/go.mod h1:/P9AEU963A2AYjv4d1V5eVL1CQbEJq6aCNHDDjibzu8= github.com/go-ole/go-ole v1.2.1/go.mod h1:7FAglXiTm7HKlQRDeOQ6ZNUHidzCWXuZWq/1dTyBNF8= github.com/go-ole/go-ole v1.2.5/go.mod h1:pprOEPIfldk/42T2oK7lQ4v4JSDwmV0As9GaiUsvbm0= @@ -678,68 +565,52 @@ github.com/go-openapi/analysis v0.17.0/go.mod h1:IowGgpVeD0vNm45So8nr+IcQ3pxVtpR github.com/go-openapi/analysis v0.18.0/go.mod h1:IowGgpVeD0vNm45So8nr+IcQ3pxVtpRoBWb8PVZO0ik= github.com/go-openapi/analysis v0.19.2/go.mod h1:3P1osvZa9jKjb8ed2TPng3f0i/UY9snX6gxi44djMjk= github.com/go-openapi/analysis v0.19.5/go.mod h1:hkEAkxagaIvIP7VTn8ygJNkd4kAYON2rCu0v0ObL0AU= -github.com/go-openapi/analysis v0.20.0 h1:UN09o0kNhleunxW7LR+KnltD0YrJ8FF03pSqvAN3Vro= -github.com/go-openapi/analysis v0.20.0/go.mod h1:BMchjvaHDykmRMsK40iPtvyOfFdMMxlOmQr9FBZk+Og= github.com/go-openapi/errors v0.17.0/go.mod h1:LcZQpmvG4wyF5j4IhA73wkLFQg+QJXOQHVjmcZxhka0= github.com/go-openapi/errors v0.18.0/go.mod h1:LcZQpmvG4wyF5j4IhA73wkLFQg+QJXOQHVjmcZxhka0= github.com/go-openapi/errors v0.19.2/go.mod h1:qX0BLWsyaKfvhluLejVpVNwNRdXZhEbTA4kxxpKBC94= -github.com/go-openapi/errors v0.19.9 h1:9SnKdGhiPZHF3ttwFMiCBEb8jQ4IDdrK+5+a0oTygA4= -github.com/go-openapi/errors v0.19.9/go.mod h1:cM//ZKUKyO06HSwqAelJ5NsEMMcpa6VpXe8DOa1Mi1M= github.com/go-openapi/jsonpointer v0.0.0-20160704185906-46af16f9f7b1/go.mod h1:+35s3my2LFTysnkMfxsJBAMHj/DoqoB9knIWoYG/Vk0= github.com/go-openapi/jsonpointer v0.17.0/go.mod h1:cOnomiV+CVVwFLk0A/MExoFMjwdsUdVpsRhURCKh+3M= github.com/go-openapi/jsonpointer v0.18.0/go.mod h1:cOnomiV+CVVwFLk0A/MExoFMjwdsUdVpsRhURCKh+3M= 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/jsonpointer v0.21.0 h1:YgdVicSA9vH5RiHs9TZW5oyafXZFc6+2Vc1rr/O9oNQ= +github.com/go-openapi/jsonpointer v0.21.0/go.mod h1:IUyH9l/+uyhIYQ/PXVA41Rexl+kOkAPDdXEYns6fzUY= github.com/go-openapi/jsonreference v0.0.0-20160704190145-13c6e3589ad9/go.mod h1:W3Z9FmVs9qj+KR4zFKmDPGiLdk1D9Rlm7cyMvf57TTg= github.com/go-openapi/jsonreference v0.17.0/go.mod h1:g4xxGn04lDIRh0GJb5QlpE3HfopLOL6uZrK/VgnsK9I= github.com/go-openapi/jsonreference v0.18.0/go.mod h1:g4xxGn04lDIRh0GJb5QlpE3HfopLOL6uZrK/VgnsK9I= 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/jsonreference v0.20.5 h1:hutI+cQI+HbSQaIGSfsBsYI0pHk+CATf8Fk5gCSj0yI= +github.com/go-openapi/jsonreference v0.20.5/go.mod h1:thAqAp31UABtI+FQGKAQfmv7DbFpKNUlva2UPCxKu2Y= github.com/go-openapi/loads v0.17.0/go.mod h1:72tmFy5wsWx89uEVddd0RjRWPZm92WRLhf7AC+0+OOU= github.com/go-openapi/loads v0.18.0/go.mod h1:72tmFy5wsWx89uEVddd0RjRWPZm92WRLhf7AC+0+OOU= github.com/go-openapi/loads v0.19.0/go.mod h1:72tmFy5wsWx89uEVddd0RjRWPZm92WRLhf7AC+0+OOU= github.com/go-openapi/loads v0.19.2/go.mod h1:QAskZPMX5V0C2gvfkGZzJlINuP7Hx/4+ix5jWFxsNPs= github.com/go-openapi/loads v0.19.4/go.mod h1:zZVHonKd8DXyxyw4yfnVjPzBjIQcLt0CCsn0N0ZrQsk= -github.com/go-openapi/loads v0.20.2 h1:z5p5Xf5wujMxS1y8aP+vxwW5qYT2zdJBbXKmQUG3lcc= -github.com/go-openapi/loads v0.20.2/go.mod h1:hTVUotJ+UonAMMZsvakEgmWKgtulweO9vYP2bQYKA/o= github.com/go-openapi/runtime v0.0.0-20180920151709-4f900dc2ade9/go.mod h1:6v9a6LTXWQCdL8k1AO3cvqx5OtZY/Y9wKTgaoP6YRfA= github.com/go-openapi/runtime v0.19.0/go.mod h1:OwNfisksmmaZse4+gpV3Ne9AyMOlP1lt4sK4FXt0O64= github.com/go-openapi/runtime v0.19.4/go.mod h1:X277bwSUBxVlCYR3r7xgZZGKVvBd/29gLDlFGtJ8NL4= -github.com/go-openapi/runtime v0.19.24 h1:TqagMVlRAOTwllE/7hNKx6rQ10O6T8ZzeJdMjSTKaD4= -github.com/go-openapi/runtime v0.19.24/go.mod h1:Lm9YGCeecBnUUkFTxPC4s1+lwrkJ0pthx8YvyjCfkgk= github.com/go-openapi/spec v0.0.0-20160808142527-6aced65f8501/go.mod h1:J8+jY1nAiCcj+friV/PDoE1/3eeccG9LYBs0tYvLOWc= github.com/go-openapi/spec v0.17.0/go.mod h1:XkF/MOi14NmjsfZ8VtAKf8pIlbZzyoTvZsdfssdxcBI= github.com/go-openapi/spec v0.18.0/go.mod h1:XkF/MOi14NmjsfZ8VtAKf8pIlbZzyoTvZsdfssdxcBI= github.com/go-openapi/spec v0.19.2/go.mod h1:sCxk3jxKgioEJikev4fgkNmwS+3kuYdJtcsZsD5zxMY= github.com/go-openapi/spec v0.19.3/go.mod h1:FpwSN1ksY1eteniUU7X0N/BgJ7a4WvBFVA8Lj9mJglo= -github.com/go-openapi/spec v0.20.3 h1:uH9RQ6vdyPSs2pSy9fL8QPspDF2AMIMPtmK5coSSjtQ= -github.com/go-openapi/spec v0.20.3/go.mod h1:gG4F8wdEDN+YPBMVnzE85Rbhf+Th2DTvA9nFPQ5AYEg= github.com/go-openapi/strfmt v0.17.0/go.mod h1:P82hnJI0CXkErkXi8IKjPbNBM6lV6+5pLP5l494TcyU= github.com/go-openapi/strfmt v0.18.0/go.mod h1:P82hnJI0CXkErkXi8IKjPbNBM6lV6+5pLP5l494TcyU= github.com/go-openapi/strfmt v0.19.0/go.mod h1:+uW+93UVvGGq2qGaZxdDeJqSAqBqBdl+ZPMF/cC8nDY= github.com/go-openapi/strfmt v0.19.3/go.mod h1:0yX7dbo8mKIvc3XSKp7MNfxw4JytCfCD6+bY1AVL9LU= -github.com/go-openapi/strfmt v0.20.0 h1:l2omNtmNbMc39IGptl9BuXBEKcZfS8zjrTsPKTiJiDM= -github.com/go-openapi/strfmt v0.20.0/go.mod h1:UukAYgTaQfqJuAFlNxxMWNvMYiwiXtLsF2VwmoFtbtc= github.com/go-openapi/swag v0.0.0-20160704191624-1d0bd113de87/go.mod h1:DXUve3Dpr1UfpPtxFw+EFuQ41HhCWZfha5jSVRG7C7I= github.com/go-openapi/swag v0.17.0/go.mod h1:AByQ+nYG6gQg71GINrmuDXCPWdL640yX49/kXLo40Tg= github.com/go-openapi/swag v0.18.0/go.mod h1:AByQ+nYG6gQg71GINrmuDXCPWdL640yX49/kXLo40Tg= 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.22.3 h1:yMBqmnQ0gyZvEb/+KzuWZOXgllrXT4SADYbvDaXHv/g= -github.com/go-openapi/swag v0.22.3/go.mod h1:UzaqsxGiab7freDnrUUra0MwWfN/q7tE4j+VcZ0yl14= +github.com/go-openapi/swag v0.23.0 h1:vsEVJDUo2hPJ2tu0/Xc+4noaxyEffXNIs3cOULZ+GrE= +github.com/go-openapi/swag v0.23.0/go.mod h1:esZ8ITTYEsH1V2trKHjAN8Ai7xHb8RV+YSZ577vPjgQ= github.com/go-openapi/validate v0.18.0/go.mod h1:Uh4HdOzKt19xGIGm1qHf/ofbX1YQ4Y+MYsct2VUrAJ4= github.com/go-openapi/validate v0.19.2/go.mod h1:1tRCw7m3jtI8eNWEEliiAqUIcBztB2KDnRCRMUi7GTA= github.com/go-openapi/validate v0.19.5/go.mod h1:8DJv2CVJQ6kGNpFW6eV9N3JviE1C85nY1c2z52x1Gk4= -github.com/go-openapi/validate v0.20.2 h1:AhqDegYV3J3iQkMPJSXkvzymHKMTw0BST3RK3hTT4ts= -github.com/go-openapi/validate v0.20.2/go.mod h1:e7OJoKNgd0twXZwIn0A43tHbvIcr/rZIVCbJBpTUoY0= -github.com/go-ozzo/ozzo-validation v3.6.0+incompatible h1:msy24VGS42fKO9K1vLz82/GeYW1cILu7Nuuj1N3BBkE= -github.com/go-ozzo/ozzo-validation v3.6.0+incompatible/go.mod h1:gsEKFIVnabGBt6mXmxK0MoFy+cZoTJY6mu5Ll3LVLBU= github.com/go-playground/assert/v2 v2.0.1/go.mod h1:VDjEfimB/XKnb+ZQfWdccd7VUvScMdVu0Titje2rxJ4= github.com/go-playground/locales v0.14.0 h1:u50s323jtVGugKlcYeyzC0etD1HifMjqmJqb8WugfUU= github.com/go-playground/locales v0.14.0/go.mod h1:sawfccIbzZTqEDETgFXqTho0QybSa7l++s0DH+LDiLs= @@ -751,16 +622,14 @@ github.com/go-playground/validator/v10 v10.11.1/go.mod h1:i+3WkQ1FvaUjjxh1kSvIA4 github.com/go-sourcemap/sourcemap v2.1.3+incompatible/go.mod h1:F8jJfvm2KbVjc5NqelyYJmf/v5J0dwNLS2mL4sNA1Jg= github.com/go-sql-driver/mysql v1.4.0/go.mod h1:zAC/RDZ24gD3HViQzih4MyKcchzm+sOG5ZlKdlhCg5w= github.com/go-sql-driver/mysql v1.4.1/go.mod h1:zAC/RDZ24gD3HViQzih4MyKcchzm+sOG5ZlKdlhCg5w= -github.com/go-sql-driver/mysql v1.6.0 h1:BCTh4TKNUYmOmMUcQ3IipzF5prigylS7XXjEkfCHuOE= -github.com/go-sql-driver/mysql v1.6.0/go.mod h1:DCzpHaOWr8IXmIStZouvnhqoel9Qv2LBy8hT2VhHyBg= -github.com/go-stack/stack v1.8.0 h1:5SgMzNM5HxrEjV0ww2lTmX6E2Izsfxas4+YHWRs3Lsk= github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY= -github.com/go-test/deep v1.0.1/go.mod h1:wGDj63lr65AM2AQyKZd/NYHGb0R+1RLqB8NKt3aSFNA= -github.com/go-test/deep v1.0.2-0.20181118220953-042da051cf31/go.mod h1:wGDj63lr65AM2AQyKZd/NYHGb0R+1RLqB8NKt3aSFNA= +github.com/go-task/slim-sprig v0.0.0-20210107165309-348f09dbbbc0 h1:p104kn46Q8WdvHunIJ9dAyjPVtrBPhSr3KT2yUst43I= +github.com/go-task/slim-sprig v0.0.0-20210107165309-348f09dbbbc0/go.mod h1:fyg7847qk6SyHyPtNmDHnmrv/HOrqktSC+C9fM+CJOE= +github.com/go-task/slim-sprig/v3 v3.0.0 h1:sUs3vkvUymDpBKi3qH1YSqBQk9+9D/8M2mN1vB6EwHI= +github.com/go-task/slim-sprig/v3 v3.0.0/go.mod h1:W848ghGpv3Qj3dhTPRyJypKRiqCdHZiAzKg9hl15HA8= github.com/go-test/deep v1.0.2/go.mod h1:wGDj63lr65AM2AQyKZd/NYHGb0R+1RLqB8NKt3aSFNA= github.com/go-test/deep v1.0.8 h1:TDsG77qcSprGbC6vTN8OuXp5g+J+b5Pcguhf7Zt61VM= github.com/go-test/deep v1.0.8/go.mod h1:5C2ZWiW0ErCdrYzpqxLbTX7MG14M9iiw8DgHncVwcsE= -github.com/go-yaml/yaml v2.1.0+incompatible/go.mod h1:w2MrLa16VYP0jy6N7M5kHaCkaLENm+P+Tv+MfurjSw0= github.com/gobwas/httphead v0.0.0-20180130184737-2c6c146eadee h1:s+21KNqlpePfkah2I+gwHF8xmJWRjooY+5248k6m4A0= github.com/gobwas/httphead v0.0.0-20180130184737-2c6c146eadee/go.mod h1:L0fX3K22YWvt/FAX9NnzrNzcI4wNYi9Yku4O0LKYflo= github.com/gobwas/pool v0.2.0 h1:QEmUOlnSjWtnpRGHF3SauEiOsy82Cup83Vf2LcMlnc8= @@ -770,10 +639,10 @@ github.com/gobwas/ws v1.0.2/go.mod h1:szmBTxLgaFppYjEmNtny/v3w89xOydFnnZMcgRRu/E github.com/goccy/go-json v0.9.7/go.mod h1:6MelG93GURQebXPDq3khkgXZkazVtN9CRI+MGFi0w8I= github.com/goccy/go-json v0.9.11 h1:/pAaQDLHEoCq/5FFmSKBswWmK6H0e8g4159Kc/X/nqk= github.com/goccy/go-json v0.9.11/go.mod h1:6MelG93GURQebXPDq3khkgXZkazVtN9CRI+MGFi0w8I= -github.com/gocql/gocql v0.0.0-20190402132108-0e1d5de854df/go.mod h1:4Fw1eo5iaEhDUs8XyuhSVCVy52Jq3L+/3GJgYkwc+/0= github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2 h1:ZpnhV/YsD2/4cESfV5+Hoeu/iUR3ruzNvZ+yQfO03a0= github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2/go.mod h1:bBOAhwG1umN6/6ZUMtDFBMQR8jRg9O75tm9K00oMsK4= 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/gofrs/uuid v3.3.0+incompatible/go.mod h1:b2aQJv3Z4Fp6yNu3cdSllBxTCLRxnplIgP/c0N/04lM= github.com/gofrs/uuid v4.3.0+incompatible h1:CaSVZxm5B+7o45rtab4jC2G37WGYX1zQfuU2i6DSvnc= github.com/gofrs/uuid v4.3.0+incompatible/go.mod h1:b2aQJv3Z4Fp6yNu3cdSllBxTCLRxnplIgP/c0N/04lM= @@ -783,8 +652,9 @@ github.com/gogo/googleapis v0.0.0-20180223154316-0cd9801be74a/go.mod h1:gf4bu3Q8 github.com/gogo/googleapis v1.1.0/go.mod h1:gf4bu3Q80BeJ6H1S1vYPm8/ELATdvryBaNFGgqEef3s= github.com/gogo/googleapis v1.4.1/go.mod h1:2lpHqI5OcWCtVElxXnPt+s8oJvMpySlOyM6xDCrzib4= github.com/gogo/status v1.1.0/go.mod h1:BFv9nrluPLmrS0EmGVvLaPNmRosr9KapBYd5/hpY1WM= -github.com/goji/httpauth v0.0.0-20160601135302-2da839ab0f4d/go.mod h1:nnjvkQ9ptGaCkuDUx6wNykzzlUixGxvkme+H/lnzb+A= github.com/golang-jwt/jwt v3.2.2+incompatible/go.mod h1:8pz2t5EyA70fFQQSrl6XZXzqecmYZeUEB8OUGHkxJ+I= +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.3.0/go.mod h1:/xlHOz8bRuivTWchD4jCa+NbatV+wEUSzwAxVc6locg= github.com/golang-jwt/jwt/v4 v4.5.0 h1:7cYmW1XlMY7h7ii7UhUyChSgS5wUJEnm9uZVTGqOWzg= github.com/golang-jwt/jwt/v4 v4.5.0/go.mod h1:m21LjoU+eqJr34lmDMbreY2eSTRJ1cv77w39/MY0Ch0= @@ -797,9 +667,7 @@ github.com/golang/groupcache v0.0.0-20190129154638-5b532d6fd5ef/go.mod h1:cIg4er 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/lint v0.0.0-20180702182130-06c8688daad7/go.mod h1:tluoj9z5200jBnyusfRPU2LqT6J+DAorxEvtC7LHB+E= 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= @@ -831,14 +699,11 @@ github.com/golang/protobuf v1.5.1/go.mod h1:DopwsBzvsk0Fs44TXzsVbJyPhcCPeIwnvohx github.com/golang/protobuf v1.5.2/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= github.com/golang/protobuf v1.5.4 h1:i7eJL8qZTpSEXOPTxNKhASYpMn+8e5Q6AdndVa1dWek= github.com/golang/protobuf v1.5.4/go.mod h1:lnTiLA8Wa4RWRcIUkrtSVa5nRhsEGBg48fD6rSs7xps= -github.com/golang/snappy v0.0.0-20170215233205-553a64147049/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= github.com/golang/snappy v0.0.0-20180518054509-2e65f85255db/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= -github.com/golang/snappy v0.0.1/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= github.com/golang/snappy v0.0.3/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= github.com/golang/snappy v0.0.4 h1:yAGX7huGHXlcLOEtBnF4w7FQwA26wojNCwOYAEhLjQM= github.com/golang/snappy v0.0.4/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= github.com/golangci/lint-1 v0.0.0-20181222135242-d2cdd8c08219/go.mod h1:/X8TswGSh1pIozq4ZwCfxS0WA5JGXguxk94ar/4c87Y= -github.com/golangplus/testing v0.0.0-20180327235837-af21d9c3145e/go.mod h1:0AA//k/eakGydO4jKRoRL2j92ZKSzTgj9tclaCrvXHk= github.com/gomodule/redigo v1.7.1-0.20190724094224-574c33c3df38/go.mod h1:B4C85qUVwatsJoIUNIfCRsp7qO0iAmpGFZ4EELWSbC4= 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= @@ -847,8 +712,8 @@ github.com/google/btree v1.1.2 h1:xf4v41cLI2Z6FxbKm+8Bu+m8ifhj15JuZ9sa0jZCMUU= github.com/google/btree v1.1.2/go.mod h1:qOPhT0dTNdNzV6Z/lhRX0YXUafgPLFUh+gZMl761Gm4= github.com/google/flatbuffers v1.11.0/go.mod h1:1AeVuKshWv4vARoZatz6mlQ0JxURH0Kv5+zNeJKJCa8= 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/gnostic-models v0.6.8 h1:yo/ABAfM5IMRsS1VnXjTBvUb61tFIHozhlYvRgGre9I= +github.com/google/gnostic-models v0.6.8/go.mod h1:5n7qKqH0f5wFt+aWF8CW6pZLLNOfYuF5OpfBSENuI8U= github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M= github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= @@ -860,13 +725,14 @@ github.com/google/go-cmp v0.5.2/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ 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/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= +github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= -github.com/google/go-github v17.0.0+incompatible/go.mod h1:zLgOLi98H3fifZn+44m+umXrS52loVEgC2AApnigrVQ= github.com/google/go-github/v56 v56.0.0 h1:TysL7dMa/r7wsQi44BjqlwaHvwlFlqkK8CtBWCX3gb4= github.com/google/go-github/v56 v56.0.0/go.mod h1:D8cdcX98YWJvi7TLo7zM4/h8ZTx6u6fwGEkCdisopo0= -github.com/google/go-metrics-stackdriver v0.2.0 h1:rbs2sxHAPn2OtUj9JdR/Gij1YKGl0BTVD0augB+HEjE= -github.com/google/go-metrics-stackdriver v0.2.0/go.mod h1:KLcPyp3dWJAFD+yHisGlJSZktIsTjb50eB72U2YZ9K0= github.com/google/go-querystring v1.0.0/go.mod h1:odCYkC5MyYFN7vkCjXpyrEuKhc/BUO6wN/zVPAxq5ck= github.com/google/go-querystring v1.1.0 h1:AnCroh3fv4ZBgVIf1Iwtovgjaw/GiKJo8M8yD/fhyJ8= github.com/google/go-querystring v1.1.0/go.mod h1:Kcdr2DB4koayq7X8pmAG4sNG59So17icRSOU623lUBU= @@ -879,6 +745,7 @@ github.com/google/gofuzz v1.2.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/ 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/orderedcode v0.0.1 h1:UzfcAexk9Vhv8+9pNOgRu41f16lHq725vPwnSeiG/Us= github.com/google/orderedcode v0.0.1/go.mod h1:iVyU4/qPKHY5h/wSd6rZZCDcLJNxiWO6dvsYES2Sb20= github.com/google/pprof v0.0.0-20181206194817-3ea8567a2e57/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= @@ -892,30 +759,32 @@ github.com/google/pprof v0.0.0-20201023163331-3e6fc7fc9c4c/go.mod h1:kpwsk12EmLe 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-20210407192527-94a9f03dee38/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/pprof v0.0.0-20241029153458-d1b30febd7db h1:097atOisP2aRj7vFgYQBbFN4U4JNXUNYpxael3UzMyo= +github.com/google/pprof v0.0.0-20241029153458-d1b30febd7db/go.mod h1:vavhavw2zAxS5dIdcRluK6cSGGPlZynqzFM8NdvU144= github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= -github.com/google/s2a-go v0.1.7 h1:60BLSyTrOV4/haCDW4zb1guZItoSq8foHCXrAnjBo/o= -github.com/google/s2a-go v0.1.7/go.mod h1:50CgR4k1jNlWBu4UfS4AcfhVe1r6pdZPygJ3R8F0Qdw= github.com/google/safetext v0.0.0-20220905092116-b49f7bc46da2 h1:SJ+NtwL6QaZ21U+IrK7d0gGgpjGGvd2kz+FzTHVzdqI= github.com/google/safetext v0.0.0-20220905092116-b49f7bc46da2/go.mod h1:Tv1PlzqC9t8wNnpPdctvtSUOPUUg4SHeE6vR1Ir2hmg= -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/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/googleapis/enterprise-certificate-proxy v0.3.2 h1:Vie5ybvEvT75RniqhfFxPRy3Bf7vr3h0cechB90XaQs= -github.com/googleapis/enterprise-certificate-proxy v0.3.2/go.mod h1:VLSiSSBs/ksPL8kq3OBOQ6WRI2QnaFynd1DCjZ62+V0= 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.12.3 h1:5/zPPDvw8Q1SuXjrqrZslrqT7dL/uJT2CQii/cLCKqA= -github.com/googleapis/gax-go/v2 v2.12.3/go.mod h1:AKloxT6GtNbaLm8QTNSidHUVsHYcBHwWRvkNFJUQcS4= +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/gax-go/v2 v2.4.0/go.mod h1:XOTVJ59hdnfJLIP/dh8n5CGryZR2LxK9wbMD5+iXC6c= github.com/googleapis/gnostic v0.4.1/go.mod h1:LRhVm6pbyptWbWbuZ38d1eyptfvIytN3ir6b65WBswg= -github.com/gophercloud/gophercloud v0.1.0 h1:P/nh25+rzXouhytV2pUHBb65fnds26Ghl8/391+sT5o= github.com/gophercloud/gophercloud v0.1.0/go.mod h1:vxM41WHh5uqHVBMZHzuwNOHh8XEoIEcSTewFxm1c5g8= -github.com/gopherjs/gopherjs v0.0.0-20180628210949-0892b62f0d9f/go.mod h1:wJfORRmW1u3UXTncJ5qlYoELFm8eSnnEO6hX4iZ3EWY= github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1/go.mod h1:wJfORRmW1u3UXTncJ5qlYoELFm8eSnnEO6hX4iZ3EWY= -github.com/gorhill/cronexpr v0.0.0-20180427100037-88b0669f7d75/go.mod h1:g2644b03hfBX9Ov0ZBDgXXens4rxSxmqFBbhvKv2yVA= github.com/gorilla/context v1.1.1 h1:AWwleXJkX/nhcU9bZSnZoi3h/qGYqQAGhq6zZe/aQW8= github.com/gorilla/context v1.1.1/go.mod h1:kBGZzfjB9CEq2AlWe17Uuf7NDRt0dE0s8S51q0aT7Yg= github.com/gorilla/handlers v1.5.1 h1:9lRY6j8DEeeBT10CvO9hGW0gmky0BprnvDI5vfhUHH4= @@ -925,15 +794,12 @@ github.com/gorilla/mux v1.7.3/go.mod h1:1lud6UwP+6orDFRuTfBEV8e9/aOM/c4fVVCaMa2z github.com/gorilla/mux v1.8.0/go.mod h1:DVbg23sWSpFRCP0SfiEN6jmj59UnW/n46BH5rLB71So= github.com/gorilla/mux v1.8.1 h1:TuBL49tXwgrFYWhqrNgrUNEY92u81SPhu7sTdzQEiWY= github.com/gorilla/mux v1.8.1/go.mod h1:AKf9I4AEqPTmMytcMc0KkNouC66V3BtZ4qD5fmWSiMQ= -github.com/gorilla/securecookie v1.1.1/go.mod h1:ra0sb63/xPlUeL+yeDciTfxMRAA+MP+HVt/4epWDjd4= -github.com/gorilla/sessions v1.2.0/go.mod h1:dk2InVEVJ0sfLlnXv9EAgkf6ecYs/i80K/zI+bUmuGM= 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.1/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE= github.com/gorilla/websocket v1.4.2/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE= github.com/gorilla/websocket v1.5.1 h1:gmztn0JnHVt9JZquRuzLw3g4wouNVzKL15iLr/zn/QY= github.com/gorilla/websocket v1.5.1/go.mod h1:x3kM2JMyaluk02fnUJpQuwD2dCS5NDG2ZHL0uE0tcaY= -github.com/gotestyourself/gotestyourself v2.2.0+incompatible/go.mod h1:zZKM6oeNM8k+FRljX1mnzVYeS8wiGgQyvST1/GafPbY= github.com/graph-gophers/graphql-go v1.3.0/go.mod h1:9CQHMSxwO4MprSdzoIEobiHpoLtHm77vfxsvsIN5Vuc= github.com/gregjones/httpcache v0.0.0-20180305231024-9cad4c3443a7/go.mod h1:FecbI9+v66THATjSRHfNgh1IVFe/9kFxbXtjV0ctIMA= github.com/gregjones/httpcache v0.0.0-20190611155906-901d90724c79 h1:+ngKgrYPPJrOjhax5N+uePQ0Fh1Z7PheYoUI/0nzkPA= @@ -944,7 +810,6 @@ github.com/grpc-ecosystem/go-grpc-middleware v1.2.2/go.mod h1:EaizFBKfUKtMIF5iaD github.com/grpc-ecosystem/go-grpc-middleware v1.3.0 h1:+9834+KizmvFV7pXQGSXQTsaWhq2GjuNUt0aUU0YBYw= 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/go.mod h1:8NvIoxWQoOIhqOTXgfV/d3M/q6VIi02HzZEHgUlZvzk= -github.com/grpc-ecosystem/grpc-gateway v1.6.2/go.mod h1:RSKVYQBd5MCa4OVpNdGskqpgL2+G+NZTnrVHpWWfpdw= github.com/grpc-ecosystem/grpc-gateway v1.8.5/go.mod h1:vNeuVxBJEsws4ogUvrchl83t/GYV9WGTSLVdBhOQFDY= 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= @@ -960,14 +825,10 @@ github.com/gtank/ristretto255 v0.1.2/go.mod h1:Ph5OpO6c7xKUGROZfWVLiJf9icMDwUeIv github.com/gyuho/linux-inspect v0.0.0-20180929231013-a492bfc5f12a h1:rhA92KsUcMmncbNtK/0qfF8oLhVbohNkPrfPuNO2og0= github.com/gyuho/linux-inspect v0.0.0-20180929231013-a492bfc5f12a/go.mod h1:u2l1k3IAT/RZKOAwDCcFBlG2CLl9+JE/6hWy6KBLJa0= github.com/h2non/parth v0.0.0-20190131123155-b4df798d6542/go.mod h1:Ow0tF8D4Kplbc8s8sSb3V2oUCygFHVp8gC3Dn6U4MNI= -github.com/hailocab/go-hostpool v0.0.0-20160125115350-e80d13ce29ed/go.mod h1:tMWxXQ9wFIaZeTI9F+hmhFiGpFmhOHzyShyFUhRm0H4= -github.com/hashicorp/consul-template v0.25.0/go.mod h1:/vUsrJvDuuQHcxEw0zik+YXTS7ZKWZjQeaQhshBmfH0= github.com/hashicorp/consul/api v1.1.0/go.mod h1:VmuI/Lkw1nC05EYQWNKwWGbkg+FbDBtguAZLlVdkD9Q= github.com/hashicorp/consul/api v1.3.0/go.mod h1:MmDNSzIMUjNpY/mQ398R4bk2FnqQLoPndWW5VkKPlCE= -github.com/hashicorp/consul/api v1.4.0/go.mod h1:xc8u05kyMa3Wjr9eEAsIAo3dg8+LywT5E/Cl7cNS5nU= github.com/hashicorp/consul/sdk v0.1.1/go.mod h1:VKf9jXwCTEY1QZP2MOLRhb5i/I/ssyNV1vwHyQBF0x8= github.com/hashicorp/consul/sdk v0.3.0/go.mod h1:VKf9jXwCTEY1QZP2MOLRhb5i/I/ssyNV1vwHyQBF0x8= -github.com/hashicorp/consul/sdk v0.4.0/go.mod h1:fY08Y9z5SvJqevyZNy6WWPXiG3KwBPAvlcdx16zZ0fM= github.com/hashicorp/errwrap v1.0.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= github.com/hashicorp/errwrap v1.1.0 h1:OxrOeh75EUXMY8TBjag2fzXGZ40LB6IKw45YeGUDY2I= github.com/hashicorp/errwrap v1.1.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= @@ -976,201 +837,66 @@ github.com/hashicorp/go-cleanhttp v0.5.0/go.mod h1:JpRdi6/HCYpAwUzNwuwqhbovhLtng github.com/hashicorp/go-cleanhttp v0.5.1/go.mod h1:JpRdi6/HCYpAwUzNwuwqhbovhLtngrth3wmdIIUrZ80= github.com/hashicorp/go-cleanhttp v0.5.2 h1:035FKYIWjmULyFRBKPs8TBQoi0x6d9G4xc9neXJWAZQ= github.com/hashicorp/go-cleanhttp v0.5.2/go.mod h1:kO/YDlP8L1346E6Sodw+PrpBSV4/SoxCXGY6BqNFT48= -github.com/hashicorp/go-discover v0.0.0-20210818145131-c573d69da192 h1:eje2KOX8Sf7aYPiAsLnpWdAIrGRMcpFjN/Go/Exb7Zo= -github.com/hashicorp/go-discover v0.0.0-20210818145131-c573d69da192/go.mod h1:3/4dzY4lR1Hzt9bBqMhBzG7lngZ0GKx/nL6G/ad62wE= -github.com/hashicorp/go-gatedio v0.5.0/go.mod h1:Lr3t8L6IyxD3DAeaUxGcgl2JnRUpWMCsmBl4Omu/2t4= -github.com/hashicorp/go-gcp-common v0.5.0/go.mod h1:IDGUI2N/OS3PiU4qZcXJeWKPI6O/9Y8hOrbSiMcqyYw= -github.com/hashicorp/go-gcp-common v0.6.0/go.mod h1:RuZi18562/z30wxOzpjeRrGcmk9Ro/rBzixaSZDhIhY= -github.com/hashicorp/go-hclog v0.0.0-20180709165350-ff2cf002a8dd/go.mod h1:9bjs9uLqI8l75knNv3lV1kA55veR+WUPSiKIWcQHudI= -github.com/hashicorp/go-hclog v0.8.0/go.mod h1:5CU+agLiy3J7N7QjHK5d05KxGsuXiQLrjA0H7acj2lQ= -github.com/hashicorp/go-hclog v0.9.1/go.mod h1:5CU+agLiy3J7N7QjHK5d05KxGsuXiQLrjA0H7acj2lQ= github.com/hashicorp/go-hclog v0.9.2/go.mod h1:5CU+agLiy3J7N7QjHK5d05KxGsuXiQLrjA0H7acj2lQ= -github.com/hashicorp/go-hclog v0.10.0/go.mod h1:whpDNt7SSdeAju8AWKIWsul05p54N/39EeqMAyrmvFQ= -github.com/hashicorp/go-hclog v0.10.1/go.mod h1:whpDNt7SSdeAju8AWKIWsul05p54N/39EeqMAyrmvFQ= -github.com/hashicorp/go-hclog v0.12.0/go.mod h1:whpDNt7SSdeAju8AWKIWsul05p54N/39EeqMAyrmvFQ= -github.com/hashicorp/go-hclog v0.14.1/go.mod h1:whpDNt7SSdeAju8AWKIWsul05p54N/39EeqMAyrmvFQ= github.com/hashicorp/go-hclog v0.16.2/go.mod h1:whpDNt7SSdeAju8AWKIWsul05p54N/39EeqMAyrmvFQ= -github.com/hashicorp/go-hclog v1.5.0 h1:bI2ocEMgcVlz55Oj1xZNBsVi900c7II+fWDyV9o+13c= -github.com/hashicorp/go-hclog v1.5.0/go.mod h1:W4Qnvbt70Wk/zYJryRzDRU/4r0kIg0PVHBcfoyhpF5M= +github.com/hashicorp/go-hclog v1.6.3 h1:Qr2kF+eVWjTiYmU7Y31tYlP1h0q/X3Nl3tPGdaB11/k= +github.com/hashicorp/go-hclog v1.6.3/go.mod h1:W4Qnvbt70Wk/zYJryRzDRU/4r0kIg0PVHBcfoyhpF5M= github.com/hashicorp/go-immutable-radix v1.0.0/go.mod h1:0y9vanUI8NX6FsYoO3zeMjhV/C5i9g4Q3DwcSNZ4P60= -github.com/hashicorp/go-immutable-radix v1.1.0/go.mod h1:0y9vanUI8NX6FsYoO3zeMjhV/C5i9g4Q3DwcSNZ4P60= github.com/hashicorp/go-immutable-radix v1.3.1 h1:DKHmCUm2hRBK510BaiZlwvpD40f8bJFeZnpfm2KLowc= github.com/hashicorp/go-immutable-radix v1.3.1/go.mod h1:0y9vanUI8NX6FsYoO3zeMjhV/C5i9g4Q3DwcSNZ4P60= -github.com/hashicorp/go-kms-wrapping v0.0.0-20191129225826-634facde9f88/go.mod h1:Pm+Umb/6Gij6ZG534L7QDyvkauaOQWGb+arj9aFjCE0= -github.com/hashicorp/go-kms-wrapping v0.5.1 h1:Ed6Z5gV3LY3J9Ora4cwxVmV8Hyt6CPOTrQoGIPry2Ew= -github.com/hashicorp/go-kms-wrapping v0.5.1/go.mod h1:cGIibZmMx9qlxS1pZTUrEgGqA+7u3zJyvVYMhjU2bDs= -github.com/hashicorp/go-kms-wrapping/entropy v0.1.0 h1:xuTi5ZwjimfpvpL09jDE71smCBRpnF5xfo871BSX4gs= -github.com/hashicorp/go-kms-wrapping/entropy v0.1.0/go.mod h1:d1g9WGtAunDNpek8jUIEJnBlbgKS1N2Q61QkHiZyR1g= -github.com/hashicorp/go-kms-wrapping/entropy/v2 v2.0.0 h1:pSjQfW3vPtrOTcasTUKgCTQT7OGPPTTMVRrOfU6FJD8= -github.com/hashicorp/go-kms-wrapping/entropy/v2 v2.0.0/go.mod h1:xvb32K2keAc+R8DSFG2IwDcydK9DBQE+fGA5fsw6hSk= -github.com/hashicorp/go-kms-wrapping/v2 v2.0.5 h1:rOFDv+3k05mnW0oaDLffhVUwg03Csn0mvfO98Wdd2bE= -github.com/hashicorp/go-kms-wrapping/v2 v2.0.5/go.mod h1:sDQAfwJGv25uGPZA04x87ERglCG6avnRcBT9wYoMII8= -github.com/hashicorp/go-kms-wrapping/wrappers/aead/v2 v2.0.4 h1:ws2CPDuXMKwaBb2z/duBCdnB9pSxlN2nuDZWXcVj6RU= -github.com/hashicorp/go-kms-wrapping/wrappers/aead/v2 v2.0.4/go.mod h1:dDxt3GXi5QONVHYrJi2+EjsJLCUs59FktZQA8ZMnm+U= -github.com/hashicorp/go-kms-wrapping/wrappers/alicloudkms/v2 v2.0.1 h1:ydUCtmr8f9F+mHZ1iCsvzqFTXqNVpewX3s9zcYipMKI= -github.com/hashicorp/go-kms-wrapping/wrappers/alicloudkms/v2 v2.0.1/go.mod h1:Sl/ffzV57UAyjtSg1h5Km0rN5+dtzZJm1CUztkoCW2c= -github.com/hashicorp/go-kms-wrapping/wrappers/awskms/v2 v2.0.1 h1:WxpTuafkDjdeeu0Xtk9y3m9YAJhfFMb8+y6eTnxvV8A= -github.com/hashicorp/go-kms-wrapping/wrappers/awskms/v2 v2.0.1/go.mod h1:3D5UB9fjot4oUTYGQ5gGmhLJKreyLZeI0XB+NxcLTKs= -github.com/hashicorp/go-kms-wrapping/wrappers/azurekeyvault/v2 v2.0.1 h1:6joKpqCFveaNMEwC3qna67usws6DjdxqfCuQEHSM0aM= -github.com/hashicorp/go-kms-wrapping/wrappers/azurekeyvault/v2 v2.0.1/go.mod h1:sDmsWR/W2LqwU217o32RzdHMb/FywGLF72PVIhpZ3hE= -github.com/hashicorp/go-kms-wrapping/wrappers/gcpckms/v2 v2.0.1 h1:+paf/3ompzaXe07BdxkV1vTnqvhwtmZPE4yQnMPTThI= -github.com/hashicorp/go-kms-wrapping/wrappers/gcpckms/v2 v2.0.1/go.mod h1:YRtkersQ2N3iHlPDG5B3xBQtBsNZ3bjmlCwnrl26jVE= -github.com/hashicorp/go-kms-wrapping/wrappers/ocikms/v2 v2.0.0 h1:FnWV2E0NLj+yYdhToUQjU81ayCMgURiL2WbJ0V7u/XY= -github.com/hashicorp/go-kms-wrapping/wrappers/ocikms/v2 v2.0.0/go.mod h1:17twrc0lM8IpfGqIv69WQvwgDiu3nRwWlk5YfCSQduY= -github.com/hashicorp/go-kms-wrapping/wrappers/transit/v2 v2.0.1 h1:72zlIBTJd2pvYmINqotpvcI4ZXLxhRq2cVPTuqv0xqY= -github.com/hashicorp/go-kms-wrapping/wrappers/transit/v2 v2.0.1/go.mod h1:JytRAxdJViV+unUUWedb7uzEy5pgu7OurbqX0eHEikE= -github.com/hashicorp/go-memdb v1.0.2/go.mod h1:I6dKdmYhZqU0RJSheVEWgTNWdVQH5QvTgIUQ0t/t32M= -github.com/hashicorp/go-memdb v1.3.3 h1:oGfEWrFuxtIUF3W2q/Jzt6G85TrMk9ey6XfYLvVe1Wo= -github.com/hashicorp/go-memdb v1.3.3/go.mod h1:uBTr1oQbtuMgd1SSGoR8YV27eT3sBHbYiNm53bMpgSg= github.com/hashicorp/go-msgpack v0.5.3/go.mod h1:ahLV/dePpqEmjfWmKiqvPkv/twdG7iPBM1vqhUKIvfM= -github.com/hashicorp/go-msgpack v0.5.5/go.mod h1:ahLV/dePpqEmjfWmKiqvPkv/twdG7iPBM1vqhUKIvfM= -github.com/hashicorp/go-msgpack v1.1.5 h1:9byZdVjKTe5mce63pRVNP1L7UAmdHOTEMGehn6KvJWs= -github.com/hashicorp/go-msgpack v1.1.5/go.mod h1:gWVc3sv/wbDmR3rQsj1CAktEZzoz1YNK9NfGLXJ69/4= github.com/hashicorp/go-multierror v1.0.0/go.mod h1:dHtQlpGsu+cZNNAkkCN/P3hoUDHhCYQXV3UM06sGGrk= github.com/hashicorp/go-multierror v1.1.1 h1:H5DkEtf6CXdFp0N0Em5UCwQpXMWke8IA0+lD48awMYo= github.com/hashicorp/go-multierror v1.1.1/go.mod h1:iw975J/qwKPdAO1clOe2L8331t/9/fmwbPZ6JB6eMoM= -github.com/hashicorp/go-plugin v1.0.0/go.mod h1:++UyYGoz3o5w9ZzAdZxtQKrWWP+iqPBn3cQptSMzBuY= -github.com/hashicorp/go-plugin v1.0.1/go.mod h1:++UyYGoz3o5w9ZzAdZxtQKrWWP+iqPBn3cQptSMzBuY= -github.com/hashicorp/go-plugin v1.4.3/go.mod h1:5fGEH17QVwTTcR0zV7yhDPLLmFX9YSZ38b18Udy6vYQ= -github.com/hashicorp/go-plugin v1.4.5 h1:oTE/oQR4eghggRg8VY7PAz3dr++VwDNBGCcOfIvHpBo= -github.com/hashicorp/go-plugin v1.4.5/go.mod h1:viDMjcLJuDui6pXb8U4HVfb8AamCWhHGUjr2IrTF67s= -github.com/hashicorp/go-raftchunking v0.6.3-0.20191002164813-7e9e8525653a h1:FmnBDwGwlTgugDGbVxwV8UavqSMACbGrUpfc98yFLR4= -github.com/hashicorp/go-raftchunking v0.6.3-0.20191002164813-7e9e8525653a/go.mod h1:xbXnmKqX9/+RhPkJ4zrEx4738HacP72aaUPlT2RZ4sU= github.com/hashicorp/go-retryablehttp v0.5.3/go.mod h1:9B5zBasrRhHXnJnui7y6sL7es7NDiJgTc6Er0maI1Xs= -github.com/hashicorp/go-retryablehttp v0.5.4/go.mod h1:9B5zBasrRhHXnJnui7y6sL7es7NDiJgTc6Er0maI1Xs= github.com/hashicorp/go-retryablehttp v0.6.2/go.mod h1:gEx6HMUGxYYhJScX7W1Il64m6cc2C1mDaW3NQ9sY1FY= github.com/hashicorp/go-retryablehttp v0.6.6/go.mod h1:vAew36LZh98gCBJNLH42IQ1ER/9wtLZZ8meHqQvEYWY= -github.com/hashicorp/go-retryablehttp v0.7.1 h1:sUiuQAnLlbvmExtFQs72iFW/HXeUn8Z1aJLQ4LJJbTQ= github.com/hashicorp/go-retryablehttp v0.7.1/go.mod h1:vAew36LZh98gCBJNLH42IQ1ER/9wtLZZ8meHqQvEYWY= +github.com/hashicorp/go-retryablehttp v0.7.7 h1:C8hUCYzor8PIfXHa4UrZkU4VvK8o9ISHxT2Q8+VepXU= +github.com/hashicorp/go-retryablehttp v0.7.7/go.mod h1:pkQpWZeYWskR+D1tR2O5OcBFOxfA7DoAO6xtkuQnHTk= github.com/hashicorp/go-rootcerts v1.0.0/go.mod h1:K6zTfqpRlCUIjkwsN4Z+hiSfzSTQa6eBIzfwKfwNnHU= -github.com/hashicorp/go-rootcerts v1.0.1/go.mod h1:pqUvnprVnM5bf7AOirdbb01K4ccR319Vf4pU3K5EGc8= github.com/hashicorp/go-rootcerts v1.0.2 h1:jzhAVGtqPKbwpyCPELlgNWhE1znq+qwJtW5Oi2viEzc= github.com/hashicorp/go-rootcerts v1.0.2/go.mod h1:pqUvnprVnM5bf7AOirdbb01K4ccR319Vf4pU3K5EGc8= -github.com/hashicorp/go-secure-stdlib/awsutil v0.1.6 h1:W9WN8p6moV1fjKLkeqEgkAMu5rauy9QeYDAmIaPuuiA= -github.com/hashicorp/go-secure-stdlib/awsutil v0.1.6/go.mod h1:MpCPSPGLDILGb4JMm94/mMi3YysIqsXzGCzkEZjcjXg= -github.com/hashicorp/go-secure-stdlib/base62 v0.1.1/go.mod h1:EdWO6czbmthiwZ3/PUsDV+UD1D5IRU4ActiaWGwt0Yw= -github.com/hashicorp/go-secure-stdlib/base62 v0.1.2 h1:ET4pqyjiGmY09R5y+rSd70J2w45CtbWDNvGqWp/R3Ng= -github.com/hashicorp/go-secure-stdlib/base62 v0.1.2/go.mod h1:EdWO6czbmthiwZ3/PUsDV+UD1D5IRU4ActiaWGwt0Yw= -github.com/hashicorp/go-secure-stdlib/mlock v0.1.1/go.mod h1:zq93CJChV6L9QTfGKtfBxKqD7BqqXx5O04A/ns2p5+I= -github.com/hashicorp/go-secure-stdlib/mlock v0.1.2 h1:p4AKXPPS24tO8Wc8i1gLvSKdmkiSY5xuju57czJ/IJQ= -github.com/hashicorp/go-secure-stdlib/mlock v0.1.2/go.mod h1:zq93CJChV6L9QTfGKtfBxKqD7BqqXx5O04A/ns2p5+I= -github.com/hashicorp/go-secure-stdlib/parseutil v0.1.1/go.mod h1:QmrqtbKuxxSWTN3ETMPuB+VtEiBJ/A9XhoYGv8E1uD8= github.com/hashicorp/go-secure-stdlib/parseutil v0.1.6/go.mod h1:QmrqtbKuxxSWTN3ETMPuB+VtEiBJ/A9XhoYGv8E1uD8= -github.com/hashicorp/go-secure-stdlib/parseutil v0.1.7 h1:UpiO20jno/eV1eVZcxqWnUohyKRe1g8FPV/xH1s/2qs= -github.com/hashicorp/go-secure-stdlib/parseutil v0.1.7/go.mod h1:QmrqtbKuxxSWTN3ETMPuB+VtEiBJ/A9XhoYGv8E1uD8= -github.com/hashicorp/go-secure-stdlib/password v0.1.1 h1:6JzmBqXprakgFEHwBgdchsjaA9x3GyjdI568bXKxa60= -github.com/hashicorp/go-secure-stdlib/password v0.1.1/go.mod h1:9hH302QllNwu1o2TGYtSk8I8kTAN0ca1EHpwhm5Mmzo= -github.com/hashicorp/go-secure-stdlib/reloadutil v0.1.1 h1:SMGUnbpAcat8rIKHkBPjfv81yC46a8eCNZ2hsR2l1EI= -github.com/hashicorp/go-secure-stdlib/reloadutil v0.1.1/go.mod h1:Ch/bf00Qnx77MZd49JRgHYqHQjtEmTgGU2faufpVZb0= +github.com/hashicorp/go-secure-stdlib/parseutil v0.1.8 h1:iBt4Ew4XEGLfh6/bPk4rSYmuZJGizr6/x/AEizP0CQc= +github.com/hashicorp/go-secure-stdlib/parseutil v0.1.8/go.mod h1:aiJI+PIApBRQG7FZTEBx5GiiX+HbOHilUdNxUZi4eV0= github.com/hashicorp/go-secure-stdlib/strutil v0.1.1/go.mod h1:gKOamz3EwoIoJq7mlMIRBpVTAUn8qPCrEclOKKWhD3U= github.com/hashicorp/go-secure-stdlib/strutil v0.1.2 h1:kes8mmyCpxJsI7FTwtzRqEy9CdjCtrXrXGuOpxEA7Ts= github.com/hashicorp/go-secure-stdlib/strutil v0.1.2/go.mod h1:Gou2R9+il93BqX25LAKCLuM+y9U2T4hlwvT1yprcna4= -github.com/hashicorp/go-secure-stdlib/tlsutil v0.1.1/go.mod h1:l8slYwnJA26yBz+ErHpp2IRCLr0vuOMGBORIz4rRiAs= -github.com/hashicorp/go-secure-stdlib/tlsutil v0.1.2 h1:phcbL8urUzF/kxA/Oj6awENaRwfWsjP59GW7u2qlDyY= -github.com/hashicorp/go-secure-stdlib/tlsutil v0.1.2/go.mod h1:l8slYwnJA26yBz+ErHpp2IRCLr0vuOMGBORIz4rRiAs= github.com/hashicorp/go-sockaddr v1.0.0/go.mod h1:7Xibr9yA9JjQq1JpNB2Vw7kxv8xerXegt+ozgdvDeDU= -github.com/hashicorp/go-sockaddr v1.0.2 h1:ztczhD1jLxIRjVejw8gFomI1BQZOe2WoVOu0SyteCQc= github.com/hashicorp/go-sockaddr v1.0.2/go.mod h1:rB4wwRAUzs07qva3c5SdrY/NEtAUjGlgmH/UkBUC97A= +github.com/hashicorp/go-sockaddr v1.0.6 h1:RSG8rKU28VTUTvEKghe5gIhIQpv8evvNpnDEyqO4u9I= +github.com/hashicorp/go-sockaddr v1.0.6/go.mod h1:uoUUmtwU7n9Dv3O4SNLeFvg0SxQ3lyjsj6+CCykpaxI= 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-uuid v1.0.2-0.20191001231223-f32f5fe8d6a8/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= -github.com/hashicorp/go-uuid v1.0.2/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= github.com/hashicorp/go-uuid v1.0.3 h1:2gKiV6YVmrJ1i2CKKa9obLvRieoRGviZFL26PcT/Co8= github.com/hashicorp/go-uuid v1.0.3/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= -github.com/hashicorp/go-version v1.1.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= github.com/hashicorp/go-version v1.2.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= -github.com/hashicorp/go-version v1.6.0 h1:feTTfFNnjP967rlCxM/I9g701jU+RN74YKx2mOkIeek= github.com/hashicorp/go-version v1.6.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= github.com/hashicorp/go.net v0.0.1/go.mod h1:hjKkEWcCURg++eb33jQU7oqQcI9XDCnUzHA0oac0k90= github.com/hashicorp/golang-lru v0.0.0-20180201235237-0fb14efe8c47/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= 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.3/go.mod h1:iADmTwqILo4mZ8BN3D2Q6+9jd8WM5uGBxy+E8yxSoD4= -github.com/hashicorp/golang-lru v0.5.4/go.mod h1:iADmTwqILo4mZ8BN3D2Q6+9jd8WM5uGBxy+E8yxSoD4= github.com/hashicorp/golang-lru v0.5.5-0.20210104140557-80c98217689d h1:dg1dEPuWpEqDnvIw251EVy4zlP8gWbsGj4BsUKCRpYs= github.com/hashicorp/golang-lru v0.5.5-0.20210104140557-80c98217689d/go.mod h1:iADmTwqILo4mZ8BN3D2Q6+9jd8WM5uGBxy+E8yxSoD4= github.com/hashicorp/hcl v1.0.0/go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T20WEQ= github.com/hashicorp/hcl v1.0.1-vault-5 h1:kI3hhbbyzr4dldA8UdTb7ZlVVlI2DACdCfz31RPDgJM= github.com/hashicorp/hcl v1.0.1-vault-5/go.mod h1:XYhtn6ijBSAj6n4YqAaf7RBPS4I06AItNorpy+MoQNM= -github.com/hashicorp/hcp-sdk-go v0.22.0 h1:LWkLOkJFYWSojBM3IkwvYK6nrwrL+p4Fw8zEaoCQG10= -github.com/hashicorp/hcp-sdk-go v0.22.0/go.mod h1:mM3nYdVHuv2X2tv88MGVKRf/o2k3zF8jUZSMkwICQ28= 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.4 h1:sY0CMhFmjIPDMlTB+HfymFHCaYLhgifZ0QhjaYKD/UQ= -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.1.4/go.mod h1:ajVTdAv/9Im8oMAAj5G31PhhMCZJV2pPBoIllUwCN7I= -github.com/hashicorp/nomad/api v0.0.0-20191220223628-edc62acd919d/go.mod h1:WKCL+tLVhN1D+APwH3JiTRZoxcdwRk86bWu1LVCUPaE= -github.com/hashicorp/raft v1.0.1/go.mod h1:DVSAWItjLjTOkVbSpWQ0j0kUADIvDaCtBxIcbNAQLkI= -github.com/hashicorp/raft v1.1.2-0.20191002163536-9c6bd3e3eb17/go.mod h1:vPAJM8Asw6u8LxC3eJCUZmRP/E4QmUGE1R7g7k8sG/8= -github.com/hashicorp/raft v1.3.10 h1:LR5QZX1VQd0DFWZfeCwWawyeKfpS/Tm1yjnJIY5X4Tw= -github.com/hashicorp/raft v1.3.10/go.mod h1:J8naEwc6XaaCfts7+28whSeRvCqTd6e20BlCU3LtEO4= -github.com/hashicorp/raft-autopilot v0.1.6 h1:C1q3RNF2FfXNZfHWbvVAu0QixaQK8K5pX4O5lh+9z4I= -github.com/hashicorp/raft-autopilot v0.1.6/go.mod h1:Af4jZBwaNOI+tXfIqIdbcAnh/UyyqIMj/pOISIfhArw= -github.com/hashicorp/raft-boltdb v0.0.0-20171010151810-6e5ba93211ea h1:xykPFhrBAS2J0VBzVa5e80b5ZtYuNQtgXjN40qBZlD4= -github.com/hashicorp/raft-boltdb v0.0.0-20171010151810-6e5ba93211ea/go.mod h1:pNv7Wc3ycL6F5oOWn+tPGo2gWD4a5X+yp/ntwdKLjRk= -github.com/hashicorp/raft-boltdb/v2 v2.0.0-20210421194847-a7e34179d62c h1:oiKun9QlrOz5yQxMZJ3tf1kWtFYuKSJzxzEDxDPevj4= -github.com/hashicorp/raft-boltdb/v2 v2.0.0-20210421194847-a7e34179d62c/go.mod h1:kiPs9g148eLShc2TYagUAyKDnD+dH9U+CQKsXzlY9xo= -github.com/hashicorp/raft-snapshot v1.0.2-0.20190827162939-8117efcc5aab/go.mod h1:5sL9eUn72lH5DzsFIJ9jaysITbHksSSszImWSOTC8Ic= -github.com/hashicorp/raft-snapshot v1.0.4 h1:EuDuayAJPdiDmVk1ygTDnG2zDzrs0/6/yBuma1IYSow= -github.com/hashicorp/raft-snapshot v1.0.4/go.mod h1:5sL9eUn72lH5DzsFIJ9jaysITbHksSSszImWSOTC8Ic= github.com/hashicorp/serf v0.8.2/go.mod h1:6hOLApaqBFA1NXqRQAsxw9QxuDEvNxSQRwA/JwenrHc= -github.com/hashicorp/serf v0.8.3/go.mod h1:UpNcs7fFbpKIyZaUuSW6EPiH+eZC7OuyFD+wc1oal+k= -github.com/hashicorp/vault v1.4.2/go.mod h1:500fLOj7p92Ys4X265LizqF78MzmHJUf1jV1zNJt060= -github.com/hashicorp/vault v1.12.2 h1:PwyIICn7BPEK3WwttT9JS/raCDQfAR1EvgeC4t1VfUw= -github.com/hashicorp/vault v1.12.2/go.mod h1:8vvin/hC1qj3wIiW2TDS5nwgmkXYMf6H1Qje69OI/mw= -github.com/hashicorp/vault-plugin-auth-alicloud v0.5.5/go.mod h1:sQ+VNwPQlemgXHXikYH6onfH9gPwDZ1GUVRLz0ZvHx8= -github.com/hashicorp/vault-plugin-auth-azure v0.5.6-0.20200422235613-1b5c70f9ef68/go.mod h1:RCVBsf8AJndh4c6iGZtvVZFui9SG0Bj9fnF0SodNIkw= -github.com/hashicorp/vault-plugin-auth-centrify v0.5.5/go.mod h1:GfRoy7NHsuR/ogmZtbExdJXUwbfwcxPrS9xzkyy2J/c= -github.com/hashicorp/vault-plugin-auth-cf v0.5.4/go.mod h1:idkFYHc6ske2BE7fe00SpH+SBIlqDKz8vk/IPLJuX2o= -github.com/hashicorp/vault-plugin-auth-gcp v0.5.1/go.mod h1:eLj92eX8MPI4vY1jaazVLF2sVbSAJ3LRHLRhF/pUmlI= -github.com/hashicorp/vault-plugin-auth-gcp v0.6.2-0.20200428223335-82bd3a3ad5b3/go.mod h1:U0fkAlxWTEyQ74lx8wlGdD493lP1DD/qpMjXgOEbwj0= -github.com/hashicorp/vault-plugin-auth-jwt v0.6.2/go.mod h1:SFadxIfoLGzugEjwUUmUaCGbsYEz2/jJymZDDQjEqYg= -github.com/hashicorp/vault-plugin-auth-kerberos v0.1.5/go.mod h1:r4UqWITHYKmBeAMKPWqLo4V8bl/wNqoSIaQcMpeK9ss= -github.com/hashicorp/vault-plugin-auth-kubernetes v0.6.1/go.mod h1:/Y9W5aZULfPeNVRQK0/nrFGpHWyNm0J3UWhOdsAu0vM= -github.com/hashicorp/vault-plugin-auth-oci v0.5.4/go.mod h1:j05O2b9fw2Q82NxDPhHMYVfHKvitUYGWfmqmpBdqmmc= -github.com/hashicorp/vault-plugin-database-elasticsearch v0.5.4/go.mod h1:QjGrrxcRXv/4XkEZAlM0VMZEa3uxKAICFqDj27FP/48= -github.com/hashicorp/vault-plugin-database-mongodbatlas v0.1.2-0.20200520204052-f840e9d4895c/go.mod h1:MP3kfr0N+7miOTZFwKv952b9VkXM4S2Q6YtQCiNKWq8= -github.com/hashicorp/vault-plugin-secrets-ad v0.6.6-0.20200520202259-fc6b89630f9f/go.mod h1:kk98nB+cwDbt3I7UGQq3ota7+eHZrGSTQZfSRGpluvA= -github.com/hashicorp/vault-plugin-secrets-alicloud v0.5.5/go.mod h1:gAoReoUpBHaBwkxQqTK7FY8nQC0MuaZHLiW5WOSny5g= -github.com/hashicorp/vault-plugin-secrets-azure v0.5.6/go.mod h1:Q0cIL4kZWnMmQWkBfWtyOd7+JXTEpAyU4L932PMHq3E= -github.com/hashicorp/vault-plugin-secrets-gcp v0.6.2-0.20200507171538-2548e2b5058d/go.mod h1:jVTE1fuhRcBOb/gnCT9W++AnlwiyQEX4S8iVCKhKQsE= -github.com/hashicorp/vault-plugin-secrets-gcpkms v0.5.5/go.mod h1:b6RwFD1bny1zbfqhD35iGJdQYHRtJLx3HfBD109GO38= -github.com/hashicorp/vault-plugin-secrets-kv v0.5.5/go.mod h1:oNyUoMMQq6uNTwyYPnkldiedaknYbPfQIdKoyKQdy2g= -github.com/hashicorp/vault-plugin-secrets-mongodbatlas v0.1.2/go.mod h1:YRW9zn9NZNitRlPYNAWRp/YEdKCF/X8aOg8IYSxFT5Y= -github.com/hashicorp/vault-plugin-secrets-openldap v0.1.3-0.20200518214608-746aba5fead6/go.mod h1:9Cy4Jp779BjuIOhYLjEfH3M3QCUxZgPnvJ3tAOOmof4= -github.com/hashicorp/vault/api v1.0.1/go.mod h1:AV/+M5VPDpB90arloVX0rVDUIHkONiwz5Uza9HRtpUE= -github.com/hashicorp/vault/api v1.0.5-0.20190730042357-746c0b111519/go.mod h1:i9PKqwFko/s/aihU1uuHGh/FaQS+Xcgvd9dvnfAvQb0= -github.com/hashicorp/vault/api v1.0.5-0.20191122173911-80fcc7907c78/go.mod h1:Uf8LaHyrYsgVgHzO2tMZKhqRGlL3UJ6XaSwW2EA1Iqo= -github.com/hashicorp/vault/api v1.0.5-0.20200215224050-f6547fa8e820/go.mod h1:3f12BMfgDGjTsTtIUj+ZKZwSobQpZtYGFIEehOv5z1o= -github.com/hashicorp/vault/api v1.0.5-0.20200317185738-82f498082f02/go.mod h1:3f12BMfgDGjTsTtIUj+ZKZwSobQpZtYGFIEehOv5z1o= -github.com/hashicorp/vault/api v1.3.0/go.mod h1:EabNQLI0VWbWoGlA+oBLC8PXmR9D60aUVgQGvangFWQ= -github.com/hashicorp/vault/api v1.8.0/go.mod h1:uJrw6D3y9Rv7hhmS17JQC50jbPDAZdjZoTtrCCxxs7E= -github.com/hashicorp/vault/api v1.8.2 h1:C7OL9YtOtwQbTKI9ogB0A1wffRbCN+rH/LLCHO3d8HM= -github.com/hashicorp/vault/api v1.8.2/go.mod h1:ML8aYzBIhY5m1MD1B2Q0JV89cC85YVH4t5kBaZiyVaE= -github.com/hashicorp/vault/api/auth/approle v0.1.1/go.mod h1:mHOLgh//xDx4dpqXoq6tS8Ob0FoCFWLU2ibJ26Lfmag= -github.com/hashicorp/vault/api/auth/approle v0.3.0 h1:Ib0oCNXsCq/QZhPYtXPzJEbGS5WR/KoZf8c84QoFdkU= -github.com/hashicorp/vault/api/auth/approle v0.3.0/go.mod h1:hm51TbjzUkPO0Y17wkrpwOpvyyMRpXJNueTHiG04t3k= -github.com/hashicorp/vault/sdk v0.1.8/go.mod h1:tHZfc6St71twLizWNHvnnbiGFo1aq0eD2jGPLtP8kAU= -github.com/hashicorp/vault/sdk v0.1.14-0.20190730042320-0dc007d98cc8/go.mod h1:B+hVj7TpuQY1Y/GPbCpffmgd+tSEwvhkWnjtSYCaS2M= -github.com/hashicorp/vault/sdk v0.1.14-0.20191108161836-82f2b5571044/go.mod h1:PcekaFGiPJyHnFy+NZhP6ll650zEw51Ag7g/YEa+EOU= -github.com/hashicorp/vault/sdk v0.1.14-0.20191229212425-c478d00be0d6/go.mod h1:EhK3a4sYnUbANAWxDP4LHf1GvP8DCtISGemfbEGbeo8= -github.com/hashicorp/vault/sdk v0.1.14-0.20200215195600-2ca765f0a500/go.mod h1:WX57W2PwkrOPQ6rVQk+dy5/htHIaB4aBM70EwKThu10= -github.com/hashicorp/vault/sdk v0.1.14-0.20200305172021-03a3749f220d/go.mod h1:PcekaFGiPJyHnFy+NZhP6ll650zEw51Ag7g/YEa+EOU= -github.com/hashicorp/vault/sdk v0.1.14-0.20200317185738-82f498082f02/go.mod h1:WX57W2PwkrOPQ6rVQk+dy5/htHIaB4aBM70EwKThu10= -github.com/hashicorp/vault/sdk v0.1.14-0.20200427170607-03332aaf8d18/go.mod h1:WX57W2PwkrOPQ6rVQk+dy5/htHIaB4aBM70EwKThu10= -github.com/hashicorp/vault/sdk v0.1.14-0.20200429182704-29fce8f27ce4/go.mod h1:WX57W2PwkrOPQ6rVQk+dy5/htHIaB4aBM70EwKThu10= -github.com/hashicorp/vault/sdk v0.3.0/go.mod h1:aZ3fNuL5VNydQk8GcLJ2TV8YCRVvyaakYkhZRoVuhj0= -github.com/hashicorp/vault/sdk v0.6.0/go.mod h1:+DRpzoXIdMvKc88R4qxr+edwy/RvH5QK8itmxLiDHLc= -github.com/hashicorp/vault/sdk v0.6.1-0.20221102145943-1e9b0a1225c3 h1:Wf6EUjtmzkNcbK2fKPJYyX5146C75EzmfMFXgtFilQ8= -github.com/hashicorp/vault/sdk v0.6.1-0.20221102145943-1e9b0a1225c3/go.mod h1:h25xhm657j/WX0QYIK43fGeEzaQ4zG/A55vRe+09Q2U= -github.com/hashicorp/vic v1.5.1-0.20190403131502-bbfe86ec9443 h1:O/pT5C1Q3mVXMyuqg7yuAWUg/jMZR1/0QTzTRdNR6Uw= -github.com/hashicorp/vic v1.5.1-0.20190403131502-bbfe86ec9443/go.mod h1:bEpDU35nTu0ey1EXjwNwPjI9xErAsoOCmcMb9GKvyxo= -github.com/hashicorp/yamux v0.0.0-20180604194846-3520598351bb/go.mod h1:+NfK9FKeTrX5uv1uIXGdwYDTeHna2qgaIlx54MXqjAM= -github.com/hashicorp/yamux v0.0.0-20181012175058-2f1d1f20f75d/go.mod h1:+NfK9FKeTrX5uv1uIXGdwYDTeHna2qgaIlx54MXqjAM= -github.com/hashicorp/yamux v0.1.1 h1:yrQxtgseBDrq9Y652vSRDvsKCJKOUD+GzTS4Y0Y8pvE= -github.com/hashicorp/yamux v0.1.1/go.mod h1:CtWFDAQgb7dxtzFs4tWbplKIe2jSi3+5vKbgIO0SLnQ= +github.com/hashicorp/vault/api v1.10.0/go.mod h1:jo5Y/ET+hNyz+JnKDt8XLAdKs+AM0G5W0Vp1IrFI8N8= +github.com/hashicorp/vault/api v1.12.0/go.mod h1:si+lJCYO7oGkIoNPAN8j3azBLTn9SjMGS+jFaHd1Cck= +github.com/hashicorp/vault/api v1.12.2 h1:7YkCTE5Ni90TcmYHDBExdt4WGJxhpzaHqR6uGbQb/rE= +github.com/hashicorp/vault/api v1.12.2/go.mod h1:LSGf1NGT1BnvFFnKVtnvcaLBM2Lz+gJdpL6HUYed8KE= +github.com/hashicorp/vault/api/auth/approle v0.5.0/go.mod h1:CHOQIA1AZACfjTzHggmyfiOZ+xCSKNRFqe48FTCzH0k= +github.com/hashicorp/vault/api/auth/approle v0.6.0 h1:ELfFFQlTM/e97WJKu1HvNFa7lQ3tlTwwzrR1NJE1V7Y= +github.com/hashicorp/vault/api/auth/approle v0.6.0/go.mod h1:CCoIl1xBC3lAWpd1HV+0ovk76Z8b8Mdepyk21h3pGk0= +github.com/hashicorp/vault/api/auth/kubernetes v0.5.0/go.mod h1:afrElBIO9Q4sHFVuVWgNevG4uAs1bT2AZFA9aEiI608= +github.com/hashicorp/vault/api/auth/kubernetes v0.6.0 h1:K8sKGhtTAqGKfzaaYvUSIOAqTOIn3Gk1EsCEAMzZHtM= +github.com/hashicorp/vault/api/auth/kubernetes v0.6.0/go.mod h1:Htwcjez5J9PwAHaZ1EYMBlgGq3/in5ajUV4+WCPihPE= github.com/hdevalence/ed25519consensus v0.0.0-20220222234857-c00d1f31bab3 h1:aSVUgRRRtOrZOC1fYmY9gV0e9z/Iu+xNVSASWjsuyGU= github.com/hdevalence/ed25519consensus v0.0.0-20220222234857-c00d1f31bab3/go.mod h1:5PC6ZNPde8bBqU/ewGZig35+UIZtw9Ytxez8/q5ZyFE= github.com/holiman/bloomfilter/v2 v2.0.3/go.mod h1:zpoh+gs7qcpqrHr3dB55AMiJwo0iURXE7ZOP9L9hSkA= @@ -1190,7 +916,6 @@ github.com/ianlancetaylor/demangle v0.0.0-20200824232613-28f6c0f3b639/go.mod h1: github.com/imdario/mergo v0.3.5/go.mod h1:2EnlNZ0deacrJVfApfmtdGgDfMuh/nq6Ok1EcJh5FfA= github.com/imdario/mergo v0.3.6/go.mod h1:2EnlNZ0deacrJVfApfmtdGgDfMuh/nq6Ok1EcJh5FfA= github.com/imdario/mergo v0.3.8/go.mod h1:2EnlNZ0deacrJVfApfmtdGgDfMuh/nq6Ok1EcJh5FfA= -github.com/imdario/mergo v0.3.13 h1:lFzP57bqS/wsqKssCGmtLAb8A0wKjLGrve2q3PPVcBk= github.com/imdario/mergo v0.3.13/go.mod h1:4lJ1jqUDcsbIECGy0RUJAXNIhg+6ocWgb1ALK2O4oXg= github.com/imkira/go-interpol v1.1.0/go.mod h1:z0h2/2T3XF8kyEPpRgJ3kmNv+C43p+I/CoI+jC3w2iA= github.com/improbable-eng/grpc-web v0.14.1 h1:NrN4PY71A6tAz2sKDvC5JCauENWp0ykG8Oq1H3cpFvw= @@ -1199,7 +924,6 @@ github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANyt github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8= github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw= github.com/influxdata/flux v0.65.1/go.mod h1:J754/zds0vvpfwuq7Gc2wRdVwEodfpCFM7mYlOw2LqY= -github.com/influxdata/influxdb v0.0.0-20190411212539-d24b7ba8c4c4/go.mod h1:qZna6X/4elxqT3yI9iZYdZrWWdeFOOprn86kgg4+IzY= github.com/influxdata/influxdb v1.8.3/go.mod h1:JugdFhsvvI8gadxOI6noqNeeBHvWNTbfYGtiAn+2jhI= github.com/influxdata/influxdb-client-go/v2 v2.4.0/go.mod h1:vLNHdxTJkIf2mSLvGrpj8TCcISApPoXkaxP8g9uRlW8= github.com/influxdata/influxdb1-client v0.0.0-20191209144304-8bf82d3c094d/go.mod h1:qj24IKcXYK6Iy9ceXlo3Tc+vtHo9lIhSX5JddghvEPo= @@ -1217,61 +941,39 @@ github.com/iris-contrib/i18n v0.0.0-20171121225848-987a633949d0/go.mod h1:pMCz62 github.com/iris-contrib/jade v1.1.3/go.mod h1:H/geBymxJhShH5kecoiOCSssPX7QWYH7UaeZTSWddIk= github.com/iris-contrib/pongo2 v0.0.1/go.mod h1:Ssh+00+3GAZqSQb30AvBRNxBx7rf0GqwkjqxNd0u65g= github.com/iris-contrib/schema v0.0.1/go.mod h1:urYA3uvUNG1TIIjOSCzHr9/LmbQo8LrOcOqfqxa4hXw= -github.com/jackc/fake v0.0.0-20150926172116-812a484cc733/go.mod h1:WrMFNQdiFJ80sQsxDoMokWK1W5TQtxBFNpzWTD84ibQ= -github.com/jackc/pgx v3.3.0+incompatible/go.mod h1:0ZGrqGqkRlliWnWB4zKnWtjbSWbGkVEFm4TeybAXq+I= github.com/jackpal/go-nat-pmp v1.0.2/go.mod h1:QPH045xvCAeXUZOxsnwmrtiCoxIr9eob+4orBN1SBKc= github.com/jaypipes/ghw v0.12.0 h1:xU2/MDJfWmBhJnujHY9qwXQLs3DBsf0/Xa9vECY0Tho= github.com/jaypipes/ghw v0.12.0/go.mod h1:jeJGbkRB2lL3/gxYzNYzEDETV1ZJ56OKr+CSeSEym+g= github.com/jaypipes/pcidb v1.0.0 h1:vtZIfkiCUE42oYbJS0TAq9XSfSmcsgo9IdxSm9qzYU8= github.com/jaypipes/pcidb v1.0.0/go.mod h1:TnYUvqhPBzCKnH34KrIX22kAeEbDCSRJ9cqLRCuNDfk= -github.com/jcmturner/aescts v1.0.1/go.mod h1:k9gJoDUf1GH5r2IBtBjwjDCoLELYxOcEhitdP8RL7qQ= -github.com/jcmturner/dnsutils v1.0.1/go.mod h1:tqMo38L01jO8AKxT0S9OQVlGZu3dkEt+z5CA+LOhwB0= -github.com/jcmturner/gofork v1.0.0/go.mod h1:MK8+TM0La+2rjBD4jE12Kj1pCCxK7d2LK/UM3ncEo0o= -github.com/jcmturner/goidentity/v6 v6.0.1/go.mod h1:X1YW3bgtvwAXju7V3LCIMpY0Gbxyjn/mY9zx4tFonSg= -github.com/jcmturner/gokrb5/v8 v8.0.0/go.mod h1:4/sqKY8Yzo/TIQ8MoCyk/EPcjb+czI9czxHcdXuZbFA= -github.com/jcmturner/rpc/v2 v2.0.2/go.mod h1:VUJYCIDm3PVOEHw8sgt091/20OJjskO/YJki3ELg/Hc= github.com/jedisct1/go-minisign v0.0.0-20190909160543-45766022959e/go.mod h1:G1CVv03EnqU1wYL2dFwXxW2An0az9JTl/ZsqXQeBlkU= -github.com/jeffchao/backoff v0.0.0-20140404060208-9d7fd7aa17f2/go.mod h1:xkfESuHriIekR+4RoV+fu91j/CfnYM29Zi2tMFw5iD4= -github.com/jefferai/isbadcipher v0.0.0-20190226160619-51d2077c035f h1:E87tDTVS5W65euzixn7clSzK66puSt1H4I5SC0EmHH4= -github.com/jefferai/isbadcipher v0.0.0-20190226160619-51d2077c035f/go.mod h1:3J2qVK16Lq8V+wfiL2lPeDZ7UWMxk5LemerHa1p6N00= -github.com/jefferai/jsonx v1.0.0 h1:Xoz0ZbmkpBvED5W9W1B5B/zc3Oiq7oXqiW7iRV3B6EI= -github.com/jefferai/jsonx v1.0.0/go.mod h1:OGmqmi2tTeI/PS+qQfBDToLHHJIy/RMp24fPo8vFvoQ= github.com/jessevdk/go-flags v0.0.0-20141203071132-1679536dcc89/go.mod h1:4FA24M0QyGHXBuZZK/XkWh8h0e1EYbRYJSGM75WSRxI= github.com/jessevdk/go-flags v1.4.0/go.mod h1:4FA24M0QyGHXBuZZK/XkWh8h0e1EYbRYJSGM75WSRxI= -github.com/jhump/protoreflect v1.6.0/go.mod h1:eaTn3RZAmMBcV0fifFvlm6VHNz3wSkYyXYWUh7ymB74= github.com/jhump/protoreflect v1.13.1-0.20220928232736-101791cb1b4c h1:XImQJfpJLmGEEd8ll5yPVyL/aEvmgGHW4WYTyNseLOM= github.com/jhump/protoreflect v1.13.1-0.20220928232736-101791cb1b4c/go.mod h1:JytZfP5d0r8pVNLZvai7U/MCuTWITgrI4tTg7puQFKI= github.com/jinzhu/copier v0.3.5 h1:GlvfUwHk62RokgqVNvYsku0TATCF7bAHVwEXoBh3iJg= github.com/jinzhu/copier v0.3.5/go.mod h1:DfbEm0FYsaqBcKcFuvmOZb218JkPGtvSHsKg8S8hyyg= github.com/jmespath/go-jmespath v0.0.0-20180206201540-c2b33e8439af/go.mod h1:Nht3zPeWKUH0NzdCt2Blrr5ys8VGpn0CEB0cQHVjt7k= -github.com/jmespath/go-jmespath v0.4.0 h1:BEgLn5cpjn8UN1mAw4NjwDrS35OdebyEtFe+9YPoQUg= github.com/jmespath/go-jmespath v0.4.0/go.mod h1:T8mJZnbsbmF+m6zOOFylbeCJqk5+pHWvzYPziyZiYoo= github.com/jmespath/go-jmespath/internal/testify v1.5.1/go.mod h1:L3OGu8Wl2/fWfCI6z80xFu9LTZmf1ZRjMHUOPmWr69U= github.com/jmhodges/levigo v1.0.1-0.20191019112844-b572e7f4cdac h1:GcJkaxD5Wy/Ucn+L0USlpbGJy9O6+7r0nBI7ftJ7Uu0= github.com/jmhodges/levigo v1.0.1-0.20191019112844-b572e7f4cdac/go.mod h1:dM7ihgFM8Do6WGIfOXWPgpJ+4bKGR/4ZkYh8HKDdFy4= 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/joyent/triton-go v0.0.0-20190112182421-51ffac552869/go.mod h1:U+RSyWxWd04xTqnuOQxnai7XGS2PrPY2cfGoDKtMHjA= -github.com/joyent/triton-go v1.7.1-0.20200416154420-6801d15b779f h1:ENpDacvnr8faw5ugQmEF1QYk+f/Y9lXFvuYmRxykago= -github.com/joyent/triton-go v1.7.1-0.20200416154420-6801d15b779f/go.mod h1:KDSfL7qe5ZfQqvlDMkVjCztbmcpp/c8M77vhQP8ZPvk= github.com/jpillora/backoff v1.0.0/go.mod h1:J/6gKK9jxlEcS3zixgDgUAsiuZ7yrSoa/FX5e0EB2j4= github.com/jrick/logrotate v1.0.0/go.mod h1:LNinyqDIJnpAur+b8yyulnQw/wDuN1+BYKlTRt3OuAQ= -github.com/json-iterator/go v0.0.0-20180701071628-ab8a2e0c74be/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU= github.com/json-iterator/go v1.1.5/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU= 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/jsternberg/zap-logfmt v1.0.0/go.mod h1:uvPs/4X51zdkcm5jXl5SYoN+4RK21K8mysFmDaM/h+o= -github.com/jtolds/gls v4.2.1+incompatible/go.mod h1:QJZ7F/aHp+rZTRtaJ1ow/lLfFfVYBRgL+9YlvaHOwJU= github.com/jtolds/gls v4.20.0+incompatible/go.mod h1:QJZ7F/aHp+rZTRtaJ1ow/lLfFfVYBRgL+9YlvaHOwJU= github.com/juju/errors v0.0.0-20181118221551-089d3ea4e4d5/go.mod h1:W54LbzXuIE0boCoNJfwqpmkKJ1O4TCTZMetAt6jGk7Q= github.com/juju/loggo v0.0.0-20180524022052-584905176618/go.mod h1:vgyd7OREkbtVEN/8IXZe5Ooef3LQePvuBm9UWj6ZL8U= @@ -1281,6 +983,8 @@ github.com/julienschmidt/httprouter v1.3.0/go.mod h1:JR6WtHb+2LUe8TCKY3cZOxFyyO8 github.com/jung-kurt/gofpdf v1.0.3-0.20190309125859-24315acbbda5/go.mod h1:7Id9E/uU8ce6rXgefFLlgrJj/GYY22cpxn+r32jIOes= github.com/jwilder/encoding v0.0.0-20170811194829-b4e1701a28ef/go.mod h1:Ct9fl0F6iIOGgxJ5npU/IUOhOhqlVrGjyIZc8/MagT0= github.com/k0kubun/colorstring v0.0.0-20150214042306-9440f1994b88/go.mod h1:3w7q1U84EfirKl04SVQ/s7nPm1ZPhiXd34z40TNz36k= +github.com/k8snetworkplumbingwg/network-attachment-definition-client v1.6.0 h1:BT3ghAY0q7lWib9rz+tVXDFkm27dJV6SLCn7TunZwo4= +github.com/k8snetworkplumbingwg/network-attachment-definition-client v1.6.0/go.mod h1:wxt2YWRVItDtaQmVSmaN5ubE2L1c9CiNoHQwSJnM8Ko= github.com/karalabe/usb v0.0.2/go.mod h1:Od972xHfMJowv7NGVDiWVxk2zxnWgjLlJzE+F4F7AGU= github.com/kataras/golog v0.0.9/go.mod h1:12HJgwBIZFNGL0EJnMRhmvGA0PQGx8VFwrZtM4CqbAk= github.com/kataras/golog v0.0.10/go.mod h1:yJ8YKCmyL+nWjERB90Qwn+bdyBZsaQwU3bTVFgkFIp8= @@ -1291,16 +995,10 @@ github.com/kataras/neffos v0.0.14/go.mod h1:8lqADm8PnbeFfL7CLXh1WHw53dG27MC3pgi2 github.com/kataras/pio v0.0.0-20190103105442-ea782b38602d/go.mod h1:NV88laa9UiiDuX9AhMbDPkGYSPugBOV6yTZB1l2K9Z0= github.com/kataras/pio v0.0.2/go.mod h1:hAoW0t9UmXi4R5Oyq5Z4irTbaTsOemSrDGUtaTl7Dro= github.com/kataras/sitemap v0.0.5/go.mod h1:KY2eugMKiPwsJgx7+U103YZehfvNGOXURubcGyk0Bz8= -github.com/kelseyhightower/envconfig v1.3.0/go.mod h1:cccZRl6mQpaq41TPp5QxidR+Sa3axMbJDNb//FQX6Gg= -github.com/kelseyhightower/envconfig v1.4.0 h1:Im6hONhd3pLkfDFsbRgu68RDNkGF1r3dvMUtDTo2cv8= -github.com/kelseyhightower/envconfig v1.4.0/go.mod h1:cccZRl6mQpaq41TPp5QxidR+Sa3axMbJDNb//FQX6Gg= -github.com/keybase/go-crypto v0.0.0-20190403132359-d65b6b94177f h1:Gsc9mVHLRqBjMgdQCghN9NObCcRncDqxJvBvEaIIQEo= -github.com/keybase/go-crypto v0.0.0-20190403132359-d65b6b94177f/go.mod h1:ghbZscTyKdM07+Fw3KSi0hcJm+AlEUWj8QLlPtijN/M= 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/kkdai/bstream v0.0.0-20161212061736-f391b8402d23/go.mod h1:J+Gs4SYgM6CZQHDETBtE9HaSEkGmuNXF86RwHhHUvq4= github.com/klauspost/compress v1.4.0/go.mod h1:RyIbtBH6LamlWaDj8nUwkbUhJ87Yi3uG0guNDohfE1A= -github.com/klauspost/compress v1.4.1/go.mod h1:RyIbtBH6LamlWaDj8nUwkbUhJ87Yi3uG0guNDohfE1A= github.com/klauspost/compress v1.8.2/go.mod h1:RyIbtBH6LamlWaDj8nUwkbUhJ87Yi3uG0guNDohfE1A= github.com/klauspost/compress v1.9.0/go.mod h1:RyIbtBH6LamlWaDj8nUwkbUhJ87Yi3uG0guNDohfE1A= github.com/klauspost/compress v1.9.7/go.mod h1:RyIbtBH6LamlWaDj8nUwkbUhJ87Yi3uG0guNDohfE1A= @@ -1310,13 +1008,11 @@ github.com/klauspost/compress v1.12.3/go.mod h1:8dP1Hq4DHOhN9w426knH3Rhby4rFm6D8 github.com/klauspost/compress v1.17.0 h1:Rnbp4K9EjcDuVuHtd0dgA4qNuv9yKDYKK1ulpJwgrqM= github.com/klauspost/compress v1.17.0/go.mod h1:ntbaceVETuRiXiv4DpjP66DpAtAGkEQskQzEyD//IeE= github.com/klauspost/cpuid v0.0.0-20170728055534-ae7887de9fa5/go.mod h1:Pj4uuM528wm8OyEC2QMXAi2YiTZ96dNQPGgoMS4s3ek= -github.com/klauspost/cpuid v1.2.0/go.mod h1:Pj4uuM528wm8OyEC2QMXAi2YiTZ96dNQPGgoMS4s3ek= github.com/klauspost/cpuid v1.2.1/go.mod h1:Pj4uuM528wm8OyEC2QMXAi2YiTZ96dNQPGgoMS4s3ek= github.com/klauspost/crc32 v0.0.0-20161016154125-cb6bfca970f6/go.mod h1:+ZoRqAPRLkC4NPOvfYeR5KNOrY6TD+/sAC3HXPZgDYg= github.com/klauspost/pgzip v1.0.2-0.20170402124221-0bf5dcad4ada/go.mod h1:Ch1tH69qFZu15pkjo5kYi6mth2Zzwzt50oCQKQE9RUs= github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= github.com/konsorten/go-windows-terminal-sequences v1.0.3/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= -github.com/kr/fs v0.1.0/go.mod h1:FFnZGqtBN9Gxj7eW1uZ42v5BccTP0vu6NEaFoC2HwRg= github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515/go.mod h1:+0opPa2QZZtGFBFZlji/RkVcI2GknAs/DXo4wKdlNEc= github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= github.com/kr/pretty v0.2.0/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI= @@ -1341,33 +1037,27 @@ github.com/leanovate/gopter v0.2.9/go.mod h1:U2L/78B+KVFIx2VmW6onHJQzXtFb+p5y3y2 github.com/leodido/go-urn v1.2.1 h1:BqpAaACuzVSgi/VLzGZIobT2z4v53pjosyNd9Yv6n/w= github.com/leodido/go-urn v1.2.1/go.mod h1:zt4jvISO2HfUBqxjfIshjdMTYS56ZS/qv49ictyFfxY= github.com/lib/pq v1.0.0/go.mod h1:5WUZQaWbwv1U+lTReE5YruASi9Al49XbQIvNi/34Woo= -github.com/lib/pq v1.2.0/go.mod h1:5WUZQaWbwv1U+lTReE5YruASi9Al49XbQIvNi/34Woo= github.com/lib/pq v1.10.6 h1:jbk+ZieJ0D7EVGJYpL9QTz7/YW6UHbmdnZWYyK5cdBs= github.com/lib/pq v1.10.6/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o= github.com/libopenstorage/autopilot-api v0.6.1-0.20210128210103-5fbb67948648/go.mod h1:6JLrPbR3ZJQFbUY/+QJMl/aF00YdIrLf8/GWAplgvJs= github.com/libopenstorage/external-storage v0.20.4-openstorage-rc3/go.mod h1:nffpoeodwwp+wwngmBGbLBCd7TZ9GxHLtxKoaLRW6K4= github.com/libopenstorage/openstorage v8.0.0+incompatible/go.mod h1:Sp1sIObHjat1BeXhfMqLZ14wnOzEhNx2YQedreMcUyc= github.com/libopenstorage/operator v0.0.0-20200725001727-48d03e197117/go.mod h1:Qh+VXOB6hj60VmlgsmY+R1w+dFuHK246UueM4SAqZG0= -github.com/libopenstorage/secrets v0.0.0-20220823020833-2ecadaf59d8a h1:dHCYranrn+6LzONAnhB3YPHBpMz4vP1IN8BsZNaY+IY= -github.com/libopenstorage/secrets v0.0.0-20220823020833-2ecadaf59d8a/go.mod h1:JqaGrr4zerBaTqX04dajFE14AHcDDrxvCq8nZ5/r4AU= +github.com/libopenstorage/secrets v0.0.0-20240416031220-a17cf7f72c6c h1:sCgvz+9ukGwz0k9kHNzGm1zJLTOo5HT1F//9mtXZ08g= +github.com/libopenstorage/secrets v0.0.0-20240416031220-a17cf7f72c6c/go.mod h1:TB8PxROcwcNeaawFm45+XAj0lnZL2wRI3wTr/tZ3/bM= github.com/libopenstorage/stork v1.3.0-beta1.0.20200630005842-9255e7a98775/go.mod h1:qBSzYTJVHlOMg5RINNiHD1kBzlasnrc2uKLPZLgu1Qs= github.com/libp2p/go-buffer-pool v0.1.0 h1:oK4mSFcQz7cTQIfqbe4MIj9gLW+mnanjyFtc6cdF0Y8= github.com/libp2p/go-buffer-pool v0.1.0/go.mod h1:N+vh8gMqimBzdKkSMVuydVDq+UV5QTWy5HSiZacSbPg= +github.com/liggitt/tabwriter v0.0.0-20181228230101-89fcab3d43de h1:9TO3cAIGXtEhnIaL+V+BEER86oLrvS+kWobKpbJuye0= github.com/liggitt/tabwriter v0.0.0-20181228230101-89fcab3d43de/go.mod h1:zAbeS9B/r2mtpb6U+EI2rYA5OAXxsYw6wTamcNW+zcE= github.com/lightstep/lightstep-tracer-common/golang/gogo v0.0.0-20190605223551-bc2310a04743/go.mod h1:qklhhLq1aX+mtWk9cPHPzaBjWImj5ULL6C7HFJtXQMM= github.com/lightstep/lightstep-tracer-go v0.18.1/go.mod h1:jlF1pusYV4pidLvZ+XD0UBX0ZE6WURAspgAczcDHrL4= -github.com/linode/linodego v0.7.1 h1:4WZmMpSA2NRwlPZcc0+4Gyn7rr99Evk9bnr0B3gXRKE= -github.com/linode/linodego v0.7.1/go.mod h1:ga11n3ivecUrPCHN0rANxKmfWBJVkOXfLMZinAbj2sY= github.com/linxGnu/grocksdb v1.7.10 h1:dz7RY7GnFUA+GJO6jodyxgkUeGMEkPp3ikt9hAcNGEw= github.com/linxGnu/grocksdb v1.7.10/go.mod h1:0hTf+iA+GOr0jDX4CgIYyJZxqOH9XlBh6KVj8+zmF34= -github.com/lithammer/dedent v1.1.0/go.mod h1:jrXYCQtgg0nJiN+StA2KgR7w6CiQNv9Fd/Z9BP0jIOc= github.com/lucasjones/reggen v0.0.0-20180717132126-cdb49ff09d77/go.mod h1:5ELEyG+X8f+meRWHuqUOewBOhvHkl7M76pdGEansxW4= -github.com/lufia/plan9stats v0.0.0-20211012122336-39d0f177ccd0 h1:6E+4a0GO5zZEnZ81pIr0yLvtUWk2if982qA3F3QD6H4= -github.com/lufia/plan9stats v0.0.0-20211012122336-39d0f177ccd0/go.mod h1:zJYVVT2jmtg6P3p1VtQj7WsuWi/y4VnjVBn7F8KPB3I= github.com/lyft/protoc-gen-validate v0.0.13/go.mod h1:XbGvPuh87YZc5TdIa2/I4pLk0QoUACkjt2znoq26NVQ= 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/magiconair/properties v1.8.7 h1:IeQXZAiQcpL9mgcAe1Nu6cX9LLw6ExEHKjN0VQdvPDY= github.com/magiconair/properties v1.8.7/go.mod h1:Dhd985XPs7jluiymwWYZ0G4Z61jb3vdS329zhj2hYo0= github.com/mailru/easyjson v0.0.0-20160728113105-d5b7844b561a/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc= @@ -1376,10 +1066,8 @@ github.com/mailru/easyjson v0.0.0-20190312143242-1de009706dbe/go.mod h1:C1wdFJiN 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/martini-contrib/render v0.0.0-20150707142108-ec18f8345a11/go.mod h1:Ah2dBMoxZEqk118as2T4u4fjfXarE0pPnMJaArZQZsI= github.com/matryer/moq v0.0.0-20190312154309-6cfb0558e1bd/go.mod h1:9ELz6aaclSIGnZBoaSLZ3NAl1VTufbOrXBPvtcy6WiQ= 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= @@ -1389,7 +1077,6 @@ github.com/mattn/go-colorable v0.1.7/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope 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.11/go.mod h1:u5H1YNBxpqRaxsYJYSkiCWKzEfiAb1Gb520KVy5xxl4= -github.com/mattn/go-colorable v0.1.12/go.mod h1:u5H1YNBxpqRaxsYJYSkiCWKzEfiAb1Gb520KVy5xxl4= github.com/mattn/go-colorable v0.1.13 h1:fFA4WZxdEF4tXPZVKMLwD8oUnCTTo08duU7wxecdEvA= github.com/mattn/go-colorable v0.1.13/go.mod h1:7S9/ev0klgBDR4GtXTXX8a3vIGJpMovkB8vQcUbaXHg= github.com/mattn/go-isatty v0.0.3/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4= @@ -1397,76 +1084,56 @@ github.com/mattn/go-isatty v0.0.4/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNx github.com/mattn/go-isatty v0.0.8/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s= github.com/mattn/go-isatty v0.0.9/go.mod h1:YNRxwqDuOph6SZLI9vUUz6OYw3QyUt7WiY2yME+cCiQ= 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/go.mod h1:7GGIvUiUoEMVVmxf/4nioHXj79iQHKdU27kJ6hsGG94= github.com/mattn/go-isatty v0.0.16/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM= -github.com/mattn/go-isatty v0.0.19 h1:JITubQf0MOLdlGRuRq+jtsDlekdYPia9ZFsB8h/APPA= github.com/mattn/go-isatty v0.0.19/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y= +github.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWEY= +github.com/mattn/go-isatty v0.0.20/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y= github.com/mattn/go-runewidth v0.0.2/go.mod h1:LwmH8dsx7+W8Uxz3IHJYH5QSwggIsqBzpuz5H//U1FU= github.com/mattn/go-runewidth v0.0.3/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-runewidth v0.0.13 h1:lTGmDsbAYt5DmK6OnoV7EuIF1wEIFAcxld6ypU4OSgU= github.com/mattn/go-runewidth v0.0.13/go.mod h1:Jdepj2loyihRzMpdS35Xk/zdY8IAYHsh153qUoGf23w= -github.com/mattn/go-shellwords v1.0.5/go.mod h1:3xCvwCdWdlDJUrvuMn7Wuy9eWs4pE8vqg+NOMyg4B2o= github.com/mattn/go-sqlite3 v1.11.0/go.mod h1:FPy6KqzDD04eiIsT53CuJW3U88zkxoIYsOqkbpncsNc= github.com/mattn/go-tty v0.0.0-20180907095812-13ff1204f104/go.mod h1:XPvLUNfbS4fJH25nqRHfWLMa1ONC8Amw+mIA639KxkE= github.com/mattn/goveralls v0.0.2/go.mod h1:8d1ZMHsd7fW6IRPKQh46F2WRpyib5/X4FOpevwGNQEw= 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/go.mod h1:BSXmuO+STAnVfrANrmjBb36TMTDstsz7MSK+HVaYKv4= -github.com/matttproud/golang_protobuf_extensions v1.0.4 h1:mmDVorXM7PCGKw94cs5zkfA9PSy5pEvNWRP0ET0TIVo= -github.com/matttproud/golang_protobuf_extensions v1.0.4/go.mod h1:BSXmuO+STAnVfrANrmjBb36TMTDstsz7MSK+HVaYKv4= +github.com/matttproud/golang_protobuf_extensions/v2 v2.0.0 h1:jWpvCLoY8Z/e3VKvlsiIGKtc+UG6U5vzxaoagmhXfyg= +github.com/matttproud/golang_protobuf_extensions/v2 v2.0.0/go.mod h1:QUyp042oQthUoa9bqDv0ER0wrtXnBruoNd7aNjkbP+k= github.com/mediocregopher/mediocre-go-lib v0.0.0-20181029021733-cb65787f37ed/go.mod h1:dSsfyI2zABAdhcbvkXqgxOxrCsbYeHCPgrZkku60dSg= github.com/mediocregopher/radix/v3 v3.3.0/go.mod h1:EmfVyvspXz1uZEyPBMyGK+kjWiKQGvsUt6O3Pj+LDCQ= github.com/mediocregopher/radix/v3 v3.4.2/go.mod h1:8FL3F6UQRXHXIBSPUs5h0RybMF8i4n7wVopoX3x7Bv8= -github.com/mholt/archiver v3.1.1+incompatible/go.mod h1:Dh2dOXnSdiLxRiPoVfIr/fI1TwETms9B8CTWfeh7ROU= -github.com/michaelklishin/rabbit-hole v0.0.0-20191008194146-93d9988f0cd5/go.mod h1:+pmbihVqjC3GPdfWv1V2TnRSuVvwrWLKfEP/MZVB/Wc= github.com/microcosm-cc/bluemonday v1.0.2/go.mod h1:iVP4YcDBq+n/5fb23BhYFvIMq/leAFZyRl6bYmGDlGc= github.com/miekg/dns v1.0.14/go.mod h1:W1PPwlIAgtquWBMBEV9nkV9Cazfe8ScdGz/Lj7v3Nrg= -github.com/miekg/dns v1.1.15/go.mod h1:W1PPwlIAgtquWBMBEV9nkV9Cazfe8ScdGz/Lj7v3Nrg= -github.com/miekg/dns v1.1.43 h1:JKfpVSCB84vrAmHzyrsxB5NAr5kLoMXZArPSw7Qlgyg= -github.com/miekg/dns v1.1.43/go.mod h1:+evo5L0630/F6ca/Z9+GAqzhjGyn8/c+TBaOyfEl0V4= github.com/mimoo/StrobeGo v0.0.0-20181016162300-f8f6d4d2b643/go.mod h1:43+3pMjjKimDBf5Kr4ZFNGbLql1zKkbImw+fZbw3geM= github.com/mimoo/StrobeGo v0.0.0-20210601165009-122bf33a46e0 h1:QRUSJEgZn2Snx0EmT/QLXibWjSUDjKWvXIT19NBVp94= github.com/mimoo/StrobeGo v0.0.0-20210601165009-122bf33a46e0/go.mod h1:43+3pMjjKimDBf5Kr4ZFNGbLql1zKkbImw+fZbw3geM= github.com/minio/highwayhash v1.0.2 h1:Aak5U0nElisjDCfPSG79Tgzkn2gl66NxOMspRrKnA/g= github.com/minio/highwayhash v1.0.2/go.mod h1:BQskDq+xkJ12lmlUUi7U0M5Swg3EWR+dLTk+kldvVxY= github.com/mitchellh/cli v1.0.0/go.mod h1:hNIlj7HEI86fIcpObd7a0FcrxTWetlwJDGcceTlRvqc= -github.com/mitchellh/cli v1.1.2 h1:PvH+lL2B7IQ101xQL63Of8yFS2y+aDlsFcsqNc+u/Kw= -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 h1:lukF9ziXFxDFPkA1vsr5zpc1XuPDn/wFntq5mG+4E0Y= github.com/mitchellh/go-homedir v1.1.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0= -github.com/mitchellh/go-testing-interface v0.0.0-20171004221916-a61a99592b77/go.mod h1:kRemZodwjscx+RGhAo8eIhFbs2+BFgRtFPeD/KE+zxI= github.com/mitchellh/go-testing-interface v1.0.0/go.mod h1:kRemZodwjscx+RGhAo8eIhFbs2+BFgRtFPeD/KE+zxI= -github.com/mitchellh/go-testing-interface v1.14.1 h1:jrgshOhYAUVNMAJiKbEu7EqAwgJJ2JqpQmpLJOu07cU= -github.com/mitchellh/go-testing-interface v1.14.1/go.mod h1:gfgS7OtZj6MA4U1UrDRp04twqAjfvlZyCfX3sDjEym8= -github.com/mitchellh/go-wordwrap v1.0.0 h1:6GlHJ/LTGMrIJbwgdqdl2eEH8o+Exx/0m8ir9Gns0u4= github.com/mitchellh/go-wordwrap v1.0.0/go.mod h1:ZXFpozHsX6DPmq2I0TCekCxypsnAUbP2oI0UX1GXzOo= +github.com/mitchellh/go-wordwrap v1.0.1 h1:TLuKupo69TCn6TQSyGxwI1EblZZEsQ0vMlAFQflz0v0= +github.com/mitchellh/go-wordwrap v1.0.1/go.mod h1:R62XHJLzvMFRBbcrT7m7WgmE1eOyTSsCt+hzestvNj0= github.com/mitchellh/gox v0.4.0/go.mod h1:Sd9lOJ0+aimLBi73mGofS1ycjY8lL3uZM3JPS42BGNg= -github.com/mitchellh/hashstructure v1.0.0/go.mod h1:QjSHrPWS+BGUVBYkbTZWEnOh3G1DutKwClXU/ABz6AQ= 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.2/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= github.com/mitchellh/mapstructure v1.4.3/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= github.com/mitchellh/mapstructure v1.5.0 h1:jeMsZIYE/09sWLaz43PL7Gy6RuMjD2eJVyuac5Z2hdY= github.com/mitchellh/mapstructure v1.5.0/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= -github.com/mitchellh/pointerstructure v0.0.0-20190430161007-f252a8fd71c8/go.mod h1:k4XwG94++jLVsSiTxo7qdIfXA9pj9EAeo0QsNNJOLZ8= github.com/mitchellh/pointerstructure v1.2.0/go.mod h1:BRAsLI5zgXmw97Lf6s25bs8ohIXc3tViBH44KcwB2g4= -github.com/mitchellh/reflectwalk v1.0.0/go.mod h1:mSTlrgnPZtwu0c4WaC2kGObEpuNDbx0jmZXqmk4esnw= -github.com/mitchellh/reflectwalk v1.0.1/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/spdystream v0.2.0 h1:cjW1zVyyoiM0T7b6UoySUFqzXMoqRckQtXwGPiBhOM8= github.com/moby/spdystream v0.2.0/go.mod h1:f7i0iNDQJ059oMTcWxx8MA/zKFIuD/lY+0GqbN2Wy8c= +github.com/moby/spdystream v0.5.0 h1:7r0J1Si3QO/kjRitvSLVVFUjxMEb/YLj6S9FF62JBCU= +github.com/moby/spdystream v0.5.0/go.mod h1:xBAYlnt/ay+11ShkdFKNAG7LsyK/tmNBVvVOwrfMgdI= +github.com/moby/sys/mountinfo v0.5.0/go.mod h1:3bMD3Rg+zkqx8MRYPi7Pyb0Ie97QEBmdxbhnCLlSvSU= github.com/moby/term v0.0.0-20200312100748-672ec06f55cd/go.mod h1:DdlQx2hp0Ss5/fLikoLlEeIYiATotOjgB//nb973jeo= -github.com/moby/term v0.0.0-20210619224110-3f7ff695adc6/go.mod h1:E2VnQOmVuvZB6UYnnDB0qG5Nq/1tD9acaOpo6xmt0Kw= github.com/moby/term v0.5.0 h1:xt8Q1nalod/v7BqbG21f8mQPqH+xAaC9C3N3wfWbVP0= github.com/moby/term v0.5.0/go.mod h1:8FzsFHVUBGZdbDsJw/ot+X+d5HLUbvklYLJ9uGfcI3Y= github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= @@ -1478,24 +1145,22 @@ github.com/modern-go/reflect2 v1.0.2 h1:xBagoLtFs94CBntxluKeaWgTMpvLxC4ur3nMaC9G github.com/modern-go/reflect2 v1.0.2/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjYzDa0/r8luk= github.com/modocache/gover v0.0.0-20171022184752-b58185e213c5/go.mod h1:caMODM3PzxT8aQXRPkAt8xlV/e7d7w8GM5g0fa5F0D8= github.com/mohae/deepcopy v0.0.0-20170929034955-c48cc78d4826/go.mod h1:TaXosZuwdSHYgviHp1DAtfrULt5eUgsSMsZf+YrPgl8= -github.com/mongodb/go-client-mongodb-atlas v0.1.2/go.mod h1:LS8O0YLkA+sbtOb3fZLF10yY3tJM+1xATXMJ3oU35LU= -github.com/monochromegane/go-gitignore v0.0.0-20200626010858-205db1a8cc00/go.mod h1:Pm3mSP3c5uWn86xMLZ5Sa7JB9GsEZySvHYXCTK4E9q4= github.com/moul/http2curl v1.0.0/go.mod h1:8UbvGypXm98wA/IqH45anm5Y2Z6ep6O31QGOAZ3H0fQ= +github.com/mrunalp/fileutils v0.5.0/go.mod h1:M1WthSahJixYnrXQl/DFQuteStB1weuxD2QJNHXfbSQ= github.com/mschoch/smat v0.0.0-20160514031455-90eadee771ae/go.mod h1:qAyveg+e4CE+eKJXWVjKXM4ck2QobLqTDytGJbLLhJg= github.com/mtibben/percent v0.2.1 h1:5gssi8Nqo8QU/r2pynCm+hBQHpkB/uNK7BJCFogWdzs= github.com/mtibben/percent v0.2.1/go.mod h1:KG9uO+SZkUp+VkRHsCdYQV3XSZrrSpR3O9ibNBTZrns= 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/mwielbut/pointy v1.1.0/go.mod h1:MvvO+uMFj9T5DMda33HlvogsFBX7pWWKAkFIn4teYwY= 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/mwitkow/grpc-proxy v0.0.0-20181017164139-0f1106ef9c76/go.mod h1:x5OoJHDHqxHS801UIuhqGl6QdSAEJvtausosHSdazIo= +github.com/mxk/go-flowrate v0.0.0-20140419014527-cca7078d478f h1:y5//uYreIhSUg3J1GEMiLbxo1LJaP8RfCpH6pymGZus= github.com/mxk/go-flowrate v0.0.0-20140419014527-cca7078d478f/go.mod h1:ZdcZmHo+o7JKHSa8/e818NopupXU1YMK5fe1lsApnBw= github.com/naoina/go-stringutil v0.1.0/go.mod h1:XJ2SJL9jCtBh+P9q5btrd/Ylo8XwT/h1USek5+NqSA0= github.com/naoina/toml v0.1.2-0.20170918210437-9fafd6967416/go.mod h1:NBIhNtsFMo3G2szEBne+bO4gS192HuIYRqfvOWb4i1E= -github.com/natefinch/atomic v0.0.0-20150920032501-a62ce929ffcc/go.mod h1:1rLVY/DWf3U6vSZgH16S7pymfrhK2lcUlXjgGglw/lY= github.com/nats-io/jwt v0.3.0/go.mod h1:fRYCDE99xlTsqUzISS1Bi75UBJ6ljOJQOAAu5VglpSg= github.com/nats-io/jwt v0.3.2/go.mod h1:/euKqTS1ZD+zzjYrY7pseZrTtWQSjujC7xjPc8wL6eU= github.com/nats-io/nats-server/v2 v2.1.2/go.mod h1:Afk+wRZqkMQs/p45uXdrVLuab3gwv3Z8C4HTBu8GD/k= @@ -1506,63 +1171,67 @@ github.com/nats-io/nkeys v0.1.0/go.mod h1:xpnFELMwJABBLVhffcfd1MZx6VsNRFpEugbxzi github.com/nats-io/nkeys v0.1.3/go.mod h1:xpnFELMwJABBLVhffcfd1MZx6VsNRFpEugbxziKVo7w= github.com/nats-io/nuid v1.0.1/go.mod h1:19wcPz3Ph3q0Jbyiqsd0kePYG7A95tJPxeL+1OSON2c= github.com/nbio/st v0.0.0-20140626010706-e9e8d9816f32/go.mod h1:9wM+0iRr9ahx58uYLpLIr5fm8diHn0JbqRycJi6w0Ms= -github.com/ncw/swift v1.0.47/go.mod h1:23YIA4yWVnGwv2dQlN4bB7egfYX6YLn0Yo/S6zZO/ZM= github.com/neilotoole/errgroup v0.1.6/go.mod h1:Q2nLGf+594h0CLBs/Mbg6qOr7GtqDK7C2S41udRnToE= -github.com/nicolai86/scaleway-sdk v1.10.2-0.20180628010248-798f60e20bb2 h1:BQ1HW7hr4IVovMwWg0E0PYcyW8CzqDcVmaew9cujU4s= -github.com/nicolai86/scaleway-sdk v1.10.2-0.20180628010248-798f60e20bb2/go.mod h1:TLb2Sg7HQcgGdloNxkrmtgDNR9uVYF3lfdFIN4Ro6Sk= github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod h1:zD1mROLANZcx1PVRCS0qkT7pwLkGfwJo4zjcN/Tysno= -github.com/nwaples/rardecode v1.0.0/go.mod h1:5DzqNKiOdpKKBH87u8VlvAnPZMXcGRhxWkRpHbbfGS0= -github.com/nxadm/tail v1.4.4 h1:DQuhQpB1tVlglWS2hLQ5OV6B5r8aGxSrPc5Qo6uTN78= 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/oklog v0.3.2/go.mod h1:FCV+B7mhrz4o+ueLpx+KqkyXRGMWOYEvfiXtdGtbWGs= github.com/oklog/run v1.0.0/go.mod h1:dlhp/R75TPv97u0XWUtDeV/lRKWPKSdTuV0TZvrmrQA= -github.com/oklog/run v1.1.0 h1:GEenZ1cK0+q0+wsJew9qUg/DyD8k3JzYsZAi5gYi2mA= -github.com/oklog/run v1.1.0/go.mod h1:sVPdnTZT1zYwAJeCMu2Th4T21pA3FPOQRfWjQlk7DVU= github.com/oklog/ulid v1.3.1/go.mod h1:CirwcVhetQ6Lv90oh/F+FBtV6XMibvdAFo93nm5qn4U= -github.com/okta/okta-sdk-golang v1.0.1 h1:1DGm5+h2JvfdHz07yVVM7+LgUVSwxnk+6RoLUOB6CwI= -github.com/okta/okta-sdk-golang v1.0.1/go.mod h1:8k//sN2mFTq8Ayo90DqGbcumCkSmYjF0+2zkIbZysec= -github.com/okta/okta-sdk-golang/v2 v2.12.1 h1:U+smE7trkHSZO8Mval3Ow85dbxawO+pMAr692VZq9gM= -github.com/okta/okta-sdk-golang/v2 v2.12.1/go.mod h1:KRoAArk1H216oiRnQT77UN6JAhBOnOWkK27yA1SM7FQ= 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-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.7.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.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.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.15.0 h1:1V1NfVQR87RtWAgp1lv9JZJ5Jap+XFGKPi00andXGi4= github.com/onsi/ginkgo v1.15.0/go.mod h1:hF8qUzuuC8DJGygJH3726JnCZX4MYbRB8yFfISqnKUg= -github.com/onsi/ginkgo/v2 v2.6.0 h1:9t9b9vRUbFq3C4qKFCGkVuq/fIHji802N1nrtkh1mNc= +github.com/onsi/ginkgo v1.16.4/go.mod h1:dX+/inL/fNMqNlz0e9LfyB9TswhZpCVdJM/Z6Vvnwo0= +github.com/onsi/ginkgo v1.16.5 h1:8xi0RTUf59SOSfEtZMvwTvXYMzG4gV23XVHOZiXNtnE= +github.com/onsi/ginkgo v1.16.5/go.mod h1:+E8gABHa3K6zRBolWtd+ROzc/U5bkGt0FwiG042wbpU= +github.com/onsi/ginkgo/v2 v2.1.3/go.mod h1:vw5CSIxN1JObi/U8gcbwft7ZxR2dgaR70JSE3/PpL4c= +github.com/onsi/ginkgo/v2 v2.1.4/go.mod h1:um6tUpWM/cxCK3/FK8BXqEiUMUwRgSM4JXG47RKZmLU= +github.com/onsi/ginkgo/v2 v2.1.6/go.mod h1:MEH45j8TBi6u9BMogfbp0stKC5cdGjumZj5Y7AG4VIk= +github.com/onsi/ginkgo/v2 v2.3.0/go.mod h1:Eew0uilEqZmIEZr8JrvYlvOM7Rr6xzTmMV8AyFNU9d0= +github.com/onsi/ginkgo/v2 v2.4.0/go.mod h1:iHkDK1fKGcBoEHT5W7YBq4RFWaQulw+caOMkAt4OrFo= +github.com/onsi/ginkgo/v2 v2.5.0/go.mod h1:Luc4sArBICYCS8THh8v3i3i5CuSZO+RaQRaJoeNwomw= github.com/onsi/ginkgo/v2 v2.6.0/go.mod h1:63DOGlLAH8+REH8jUGdL3YpCpu7JODesutUjdENfUAc= +github.com/onsi/ginkgo/v2 v2.21.0 h1:7rg/4f3rB88pb5obDgNZrNHrQ4e6WpjonchcpuBRnZM= +github.com/onsi/ginkgo/v2 v2.21.0/go.mod h1:7Du3c42kxCUegi0IImZ1wUQzMBVecgIHjR1C+NkhLQo= github.com/onsi/gomega v0.0.0-20170829124025-dcabb60a477c/go.mod h1:C1qb7wdrVGGVU+Z6iS04AVkA3Q65CEZX59MT0QO5uiA= -github.com/onsi/gomega v0.0.0-20190113212917-5533ce8a0da3/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY= github.com/onsi/gomega v1.4.1/go.mod h1:C1qb7wdrVGGVU+Z6iS04AVkA3Q65CEZX59MT0QO5uiA= github.com/onsi/gomega v1.4.2/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY= github.com/onsi/gomega v1.4.3/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY= -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.10.1/go.mod h1:iN09h71vgCQne3DLsj+A5owkum+a2tYe+TOCB1ybHNo= github.com/onsi/gomega v1.10.5/go.mod h1:gza4q3jKQJijlu05nKWRCW/GavJumGt8aNRxWg7mt48= -github.com/onsi/gomega v1.24.1 h1:KORJXNNTzJXzu4ScJWssJfJMnJ+2QJqhoQSRwNlze9E= +github.com/onsi/gomega v1.17.0/go.mod h1:HnhC7FXeEQY45zxNK3PPoIUhzk/80Xly9PcubAlGdZY= +github.com/onsi/gomega v1.19.0/go.mod h1:LY+I3pBVzYsTBU1AnDwOSxaYi9WoWiqgwooUqq9yPro= +github.com/onsi/gomega v1.20.1/go.mod h1:DtrZpjmvpn2mPm4YWQa0/ALMDj9v4YxLgojwPeREyVo= +github.com/onsi/gomega v1.21.1/go.mod h1:iYAIXgPSaDHak0LCMA+AWBpIKBr8WZicMxnE8luStNc= +github.com/onsi/gomega v1.22.1/go.mod h1:x6n7VNe4hw0vkyYUM4mjIXx3JbLiPaBPNgB7PRQ1tuM= +github.com/onsi/gomega v1.23.0/go.mod h1:Z/NWtiqwBrwUt4/2loMmHL63EDLnYHmVbuBpDr2vQAg= +github.com/onsi/gomega v1.24.0/go.mod h1:Z/NWtiqwBrwUt4/2loMmHL63EDLnYHmVbuBpDr2vQAg= github.com/onsi/gomega v1.24.1/go.mod h1:3AOiACssS3/MajrniINInwbfOOtfZvplPzuRSmvt1jM= +github.com/onsi/gomega v1.35.1 h1:Cwbd75ZBPxFSuZ6T+rN/WCb/gOc6YgFBXLlZLhC7Ds4= +github.com/onsi/gomega v1.35.1/go.mod h1:PvZbdDc8J6XJEpDK4HCuRBm8a6Fzp9/DmhC9C7yFlog= github.com/op/go-logging v0.0.0-20160315200505-970db520ece7/go.mod h1:HzydrMdWErDVzsI23lYNej1Htcns9BCg93Dk0bBINWk= -github.com/opencontainers/go-digest v1.0.0-rc1/go.mod h1:cMLVZDEM3+U2I4VmLI6N8jQYUd2OVphdqWwCJHrFt2s= github.com/opencontainers/go-digest v1.0.0 h1:apOUWs51W5PlhuyGyz9FCeeBIOUDA/6nW8Oi/yOhh5U= github.com/opencontainers/go-digest v1.0.0/go.mod h1:0JzlMkj0TRzQZfJkVvzbP0HBR3IKzErnv2BNG4W4MAM= -github.com/opencontainers/image-spec v1.0.1/go.mod h1:BtxoFyWECRxE4U/7sNtV5W15zMzWCbyJoFRP3s7yZA0= github.com/opencontainers/image-spec v1.1.0-rc2 h1:2zx/Stx4Wc5pIPDvIxHXvXtQFW/7XWJGmnM7r3wg034= github.com/opencontainers/image-spec v1.1.0-rc2/go.mod h1:3OVijpioIKYWTqjiG0zfF6wvoJ4fAXGbjdZuI2NgsRQ= -github.com/opencontainers/runc v0.1.1/go.mod h1:qT5XzbpPznkRYVz/mWwUaVBUv2rmF59PVA73FjuZG0U= github.com/opencontainers/runc v1.1.4 h1:nRCz/8sKg6K6jgYAFLDlXzPeITBZJyX28DBVhWD+5dg= github.com/opencontainers/runc v1.1.4/go.mod h1:1J5XiS+vdZ3wCyZybsuxXZWGrgSr8fFJHLXuG2PsnNg= -github.com/openshift/api v0.0.0-20210105115604-44119421ec6b h1:9wG43AJGupRUUAAF/GN2CtQgVlo+BzdIlmsTwUlIATE= +github.com/opencontainers/runtime-spec v1.0.3-0.20210326190908-1c3f411f0417/go.mod h1:jwyrGlmzljRJv/Fgzds9SsS/C5hL+LL3ko9hs6T5lQ0= +github.com/opencontainers/selinux v1.10.0/go.mod h1:2i0OySw99QjzBBQByd1Gr9gSjvuho1lHsJxIJ3gGbJI= github.com/openshift/api v0.0.0-20210105115604-44119421ec6b/go.mod h1:aqU5Cq+kqKKPbDMqxo9FojgDeSpNJI7iuskjXjtojDg= +github.com/openshift/api v0.0.0-20240301093301-ce10821dc999 h1:+S998xHiJApsJZjRAO8wyedU9GfqFd8mtwWly6LqHDo= +github.com/openshift/api v0.0.0-20240301093301-ce10821dc999/go.mod h1:CxgbWAlvu2iQB0UmKTtRu1YfepRg1/vJ64n2DlIEVz4= github.com/openshift/build-machinery-go v0.0.0-20200917070002-f171684f77ab/go.mod h1:b1BuldmJlbA/xYtdZvKi+7j5YGB44qJUJDZ9zwiNCfE= github.com/openshift/client-go v0.0.0-20210112165513-ebc401615f47/go.mod h1:u7NRAjtYVAKokiI9LouzTv4mhds8P4S1TwdVAfbjKSk= github.com/opentracing-contrib/go-observer v0.0.0-20170622124052-a52f23424492/go.mod h1:Ngi6UdF0k5OKD5t5wlmGhe/EDKPoUM3BXZSSfIuJbis= @@ -1571,35 +1240,22 @@ github.com/opentracing/opentracing-go v1.0.2/go.mod h1:UkNAQd3GIcIGf0SeVgPpRdFSt github.com/opentracing/opentracing-go v1.0.3-0.20180606204148-bd9c31933947/go.mod h1:UkNAQd3GIcIGf0SeVgPpRdFStlNbqXla1AfSYxPUl2o= github.com/opentracing/opentracing-go v1.1.0/go.mod h1:UkNAQd3GIcIGf0SeVgPpRdFStlNbqXla1AfSYxPUl2o= github.com/openzipkin-contrib/zipkin-go-opentracing v0.4.5/go.mod h1:/wsWhb9smxSfWAKL3wpBW7V8scJMt8N8gnaMCS9E/cA= -github.com/openzipkin/zipkin-go v0.1.3/go.mod h1:NtoC/o8u3JlF1lSlyPNswIbeQH9bJTmOf0Erfk+hxe8= github.com/openzipkin/zipkin-go v0.1.6/go.mod h1:QgAqvLzwWbR/WpD4A3cGpPtJrZXNIiJc5AZX7/PBEpw= github.com/openzipkin/zipkin-go v0.2.1/go.mod h1:NaW6tEwdmWMaCDZzg8sh+IBNOxHMPnhQw8ySjnjRyN4= github.com/openzipkin/zipkin-go v0.2.2/go.mod h1:NaW6tEwdmWMaCDZzg8sh+IBNOxHMPnhQw8ySjnjRyN4= -github.com/oracle/oci-go-sdk v7.0.0+incompatible/go.mod h1:VQb79nF8Z2cwLkLS35ukwStZIg5F66tcBccjip/j888= -github.com/oracle/oci-go-sdk v12.5.0+incompatible/go.mod h1:VQb79nF8Z2cwLkLS35ukwStZIg5F66tcBccjip/j888= -github.com/oracle/oci-go-sdk v13.1.0+incompatible h1:inwbT0b/mMbnTfzYoW2xcU1cCMIlU6Fz973at5phRXM= -github.com/oracle/oci-go-sdk/v60 v60.0.0 h1:EJAWjEi4SY5Raha6iUzq4LTQ0uM5YFw/wat/L1ehIEM= -github.com/oracle/oci-go-sdk/v60 v60.0.0/go.mod h1:krz+2gkSzlSL/L4PvP0Z9pZpag9HYLNtsMd1PmxlA2w= -github.com/ory/dockertest v3.3.4+incompatible/go.mod h1:1vX4m9wsvi00u5bseYwXaSnhNrne+V0E6LAcBILJdPs= github.com/ory/dockertest v3.3.5+incompatible h1:iLLK6SQwIhcbrG783Dghaaa3WPzGc+4Emza6EbVUUGA= github.com/ory/dockertest v3.3.5+incompatible/go.mod h1:1vX4m9wsvi00u5bseYwXaSnhNrne+V0E6LAcBILJdPs= github.com/otiai10/copy v1.6.0 h1:IinKAryFFuPONZ7cm6T6E2QX/vcJwSnlaA5lfoaXIiQ= github.com/otiai10/copy v1.6.0/go.mod h1:XWfuS3CrI0R6IE0FbgHsEazaXO8G0LpMp9o8tos0x4E= -github.com/oxtoacart/bpool v0.0.0-20150712133111-4e1c5567d7c2/go.mod h1:L3UMQOThbttwfYRNFOWLLVXMhk5Lkio4GGOtw5UrxS0= -github.com/packethost/packngo v0.1.1-0.20180711074735-b9cb5096f54c h1:vwpFWvAO8DeIZfFeqASzZfsxuWPno9ncAebBEP0N3uE= -github.com/packethost/packngo v0.1.1-0.20180711074735-b9cb5096f54c/go.mod h1:otzZQXgoO96RTzDB/Hycg0qZcXZsWJGJRSXbmEIJ+4M= github.com/pact-foundation/pact-go v1.0.4/go.mod h1:uExwJY4kCzNPcHRj+hCR/HBbOOIwwtUjcrb0b5/5kLM= github.com/pascaldekloe/goe v0.0.0-20180627143212-57f6aae5913c/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144TG7ZOy1lc= github.com/pascaldekloe/goe v0.1.0 h1:cBOtyMzM9HTpWjXfbbunk26uA6nG3a8n06Wieeh0MwY= github.com/pascaldekloe/goe v0.1.0/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144TG7ZOy1lc= -github.com/patrickmn/go-cache v0.0.0-20180815053127-5633e0862627/go.mod h1:3Qf8kWWT7OJRJbdiICTKqZju1ZixQ/KpMGzzAfe6+WQ= -github.com/patrickmn/go-cache v2.1.0+incompatible h1:HRMgzkcYKYpi3C8ajMPV8OFXaaRUnok+kx1WdO15EQc= -github.com/patrickmn/go-cache v2.1.0+incompatible/go.mod h1:3Qf8kWWT7OJRJbdiICTKqZju1ZixQ/KpMGzzAfe6+WQ= github.com/paulbellamy/ratecounter v0.2.0/go.mod h1:Hfx1hDpSGoqxkVVpBi/IlYD7kChlfo5C6hzIHwPqfFE= github.com/pborman/uuid v0.0.0-20170612153648-e790cca94e6c/go.mod h1:VyrYX9gd7irzKovcSS6BIIEwPRkP2Wm2m9ufcdFSJ34= +github.com/pborman/uuid v1.2.0 h1:J7Q5mO4ysT1dv8hyrUGHb9+ooztCXu1D8MY8DZYsu3g= github.com/pborman/uuid v1.2.0/go.mod h1:X/NO0urCmaxf9VXbdlT7C2Yzkj2IKimNn4k+gtPdI/k= github.com/pelletier/go-toml v1.2.0/go.mod h1:5z9KED0ma1S8pY6P1sdut58dfprrGBbd/94hg7ilaic= -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/pelletier/go-toml v1.9.5 h1:4yBQzkHv+7BHq2PQUZF3Mx0IYxG7LsP222s7Agd3ve8= github.com/pelletier/go-toml v1.9.5/go.mod h1:u1nR/EPcESfeI/szUZKdtJ0xRNbUoANCkoOuaOx1Y+c= @@ -1616,22 +1272,14 @@ github.com/philhofer/fwd v1.0.0/go.mod h1:gk3iGcWd9+svBvR0sR+KPcfE+RNWozjowpeBVG github.com/philhofer/fwd v1.1.1/go.mod h1:gk3iGcWd9+svBvR0sR+KPcfE+RNWozjowpeBVG3ZVNU= github.com/pierrec/lz4 v1.0.2-0.20190131084431-473cd7ce01a1/go.mod h1:3/3N9NVKO0jef7pBehbT1qWhCMrIgbYNnFAZCqQ5LRc= github.com/pierrec/lz4 v2.0.5+incompatible/go.mod h1:pdkljMzZIN41W+lC3N2tnIh5sFi+IEE17M5jbnwPHcY= -github.com/pierrec/lz4 v2.2.5+incompatible/go.mod h1:pdkljMzZIN41W+lC3N2tnIh5sFi+IEE17M5jbnwPHcY= -github.com/pierrec/lz4 v2.2.6+incompatible/go.mod h1:pdkljMzZIN41W+lC3N2tnIh5sFi+IEE17M5jbnwPHcY= -github.com/pierrec/lz4 v2.5.2+incompatible/go.mod h1:pdkljMzZIN41W+lC3N2tnIh5sFi+IEE17M5jbnwPHcY= -github.com/pierrec/lz4 v2.6.1+incompatible h1:9UY3+iC23yxF0UfGaYrGplQ+79Rg+h/q9FV9ix19jjM= -github.com/pierrec/lz4 v2.6.1+incompatible/go.mod h1:pdkljMzZIN41W+lC3N2tnIh5sFi+IEE17M5jbnwPHcY= github.com/pingcap/errors v0.11.4 h1:lFuQV/oaUMGcD2tqt+01ROSmJs75VG1ToEOkZIZ4nE4= github.com/pingcap/errors v0.11.4/go.mod h1:Oi8TUi2kEtXXLMJk9l1cGmz20kV3TaQ0usTwv5KuLY8= -github.com/pires/go-proxyproto v0.6.1 h1:EBupykFmo22SDjv4fQVQd2J9NOoLPmyZA/15ldOGkPw= -github.com/pires/go-proxyproto v0.6.1/go.mod h1:Odh9VFOZJCf9G8cLW5o435Xf1J95Jw9Gw5rnCjcwzAY= github.com/pkg/diff v0.0.0-20210226163009-20ebb0f2a09e/go.mod h1:pJLUxLENpZxwdsKMEsNbx1VGcRFpLqf3715MtcvvzbA= github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pkg/profile v1.2.1/go.mod h1:hJw3o1OdXxsrSjjVksARp5W95eeEaEfptyVZyv6JUPA= -github.com/pkg/sftp v1.10.1/go.mod h1:lYOWFsE0bwd1+KfKJaKeuokY15vzFx25BLbzYYoAxZI= github.com/pkg/term v0.0.0-20180730021639-bffc007b7fd5/go.mod h1:eCbImbZ95eXtAUIbLAuAVnBnwf83mjf6QIVH8SHYwqQ= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 h1:Jamvg5psRIccs7FGNTlIRMkT8wgtp5eCXdBlqhYGL6U= @@ -1641,42 +1289,31 @@ github.com/portworx/kvdb v0.0.0-20200929023115-b312c7519467/go.mod h1:Q8YyrNDvPp github.com/portworx/sched-ops v0.20.4-openstorage-rc3/go.mod h1:DpRDDqXWQrReFJ5SHWWrURuZdzVKjrh2OxbAfwnrAyk= github.com/portworx/talisman v0.0.0-20191007232806-837747f38224/go.mod h1:OjpMH9Uh5o9ntVGktm4FbjLNwubJ3ITih2OfYrAeWtA= github.com/posener/complete v1.1.1/go.mod h1:em0nMJCgc9GFtwrmVmEMR/ZL6WyhyjMBndrE9hABlRI= -github.com/posener/complete v1.2.1/go.mod h1:6gapUrK/U1TAN7ciCoNRIdVC5sbdBTUh1DKN0g6uH7E= -github.com/posener/complete v1.2.3 h1:NP0eAhjcjImqslEwo/1hq7gpajME0fTLTezBKDqfXqo= -github.com/posener/complete v1.2.3/go.mod h1:WZIdtGGp+qx0sLrYKtIRAruyNpv6hFCicSgv7Sy7s/s= -github.com/power-devops/perfstat v0.0.0-20210106213030-5aafc221ea8c h1:ncq/mPwQF4JjgDlrVEn3C11VoGHZN7m8qihwgMEtzYw= -github.com/power-devops/perfstat v0.0.0-20210106213030-5aafc221ea8c/go.mod h1:OmDBASR4679mdNQnz2pUhc2G8CO2JrUAVFDRBDP/hJE= github.com/pquerna/cachecontrol v0.0.0-20171018203845-0dec1b30a021/go.mod h1:prYjPmNq4d1NPVmpShWobRqXY3q7Vp+80DqgxxUrUIA= github.com/pquerna/cachecontrol v0.0.0-20180517163645-1555304b9b35/go.mod h1:prYjPmNq4d1NPVmpShWobRqXY3q7Vp+80DqgxxUrUIA= -github.com/pquerna/otp v1.2.1-0.20191009055518-468c2dd2b58d h1:PinQItctnaL2LtkaSM678+ZLLy5TajwOeXzWvYC7tII= -github.com/pquerna/otp v1.2.1-0.20191009055518-468c2dd2b58d/go.mod h1:dkJfzwRKNiegxyNb54X/3fLwhCynbMspSyWKnvi1AEg= github.com/prometheus-operator/prometheus-operator/pkg/apis/monitoring v0.44.1/go.mod h1:3WYi4xqXxGGXWDdQIITnLNmuDzO5n6wYva9spVhR4fg= github.com/prometheus-operator/prometheus-operator/pkg/apis/monitoring v0.46.0/go.mod h1:3WYi4xqXxGGXWDdQIITnLNmuDzO5n6wYva9spVhR4fg= github.com/prometheus-operator/prometheus-operator/pkg/client v0.46.0/go.mod h1:k4BrWlVQQsvBiTcDnKEMgyh/euRxyxgrHdur/ZX/sdA= github.com/prometheus/client_golang v0.9.0/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.2/go.mod h1:OsXs2jCmiKlQ1lTBmv21f2mNfw4xf/QclQDMrYNZzcM= github.com/prometheus/client_golang v0.9.3-0.20190127221311-3c4408c8b829/go.mod h1:p2iRAGwDERtqlqzRXnrOVns+ignqQo//hLXqYxZYVNs= 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.3.0/go.mod h1:hJaj2vgQTGQmVCsAACORcieXFeDPbaTKGT+JTgUa3og= 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/go.mod h1:3Z9XVyYiZYEO+YQWt3RD2R3jrbd179Rt297l4aS6nDY= -github.com/prometheus/client_golang v1.16.0 h1:yk/hx9hDbrGHovbci4BY+pRMfSuuat626eFsHb7tmT8= -github.com/prometheus/client_golang v1.16.0/go.mod h1:Zsulrv/L9oM40tJ7T815tM89lFEugiJ9HzIqaAx4LKc= +github.com/prometheus/client_golang v1.18.0 h1:HzFfmkOzH5Q8L8G+kSJKUx5dtG87sewO+FoDDqP5Tbk= +github.com/prometheus/client_golang v1.18.0/go.mod h1:T+GXkCk5wSJyOqMIzVgvvjFDlkOQntgjkJWKrN5txjA= github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo= github.com/prometheus/client_model v0.0.0-20190115171406-56726106282f/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.1.0/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= github.com/prometheus/client_model v0.2.0/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= -github.com/prometheus/client_model v0.4.0 h1:5lQXD3cAg1OXBf4Wq03gTrXHeaV0TQvGfUooCfx1yqY= -github.com/prometheus/client_model v0.4.0/go.mod h1:oMQmHW1/JoDwqLtg57MGgP/Fb1CJEYF2imWWhWtMkYU= +github.com/prometheus/client_model v0.5.0 h1:VQw1hfvPvk3Uv6Qf29VrPF32JB6rtbgI6cYPYQjL0Qw= +github.com/prometheus/client_model v0.5.0/go.mod h1:dTiFglRmd66nLR9Pv9f0mZi7B7fk5Pm3gvsjB5tr+kI= github.com/prometheus/common v0.0.0-20180801064454-c7de2306084e/go.mod h1:daVV7qP5qjZbuso7PdcryaAu0sAZbrN9i7WWcTMWvro= github.com/prometheus/common v0.0.0-20181113130724-41aa239b4cce/go.mod h1:daVV7qP5qjZbuso7PdcryaAu0sAZbrN9i7WWcTMWvro= -github.com/prometheus/common v0.0.0-20181126121408-4724e9255275/go.mod h1:daVV7qP5qjZbuso7PdcryaAu0sAZbrN9i7WWcTMWvro= github.com/prometheus/common v0.2.0/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4= github.com/prometheus/common v0.4.0/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4= github.com/prometheus/common v0.4.1/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4= @@ -1685,13 +1322,10 @@ github.com/prometheus/common v0.7.0/go.mod h1:DjGbpBbp5NYNiECxcL/VnbXCCaQpKd3tt2 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.15.0/go.mod h1:U+gB1OBLb1lF3O42bTCL+FK18tX9Oar16Clt/msog/s= -github.com/prometheus/common v0.26.0/go.mod h1:M7rCNAaPfAosfx8veZJCuw84e35h3Cfd9VFqTh1DIvc= -github.com/prometheus/common v0.32.1/go.mod h1:vu+V0TpY+O6vW9J44gczi3Ap/oXXR10b+M/gUGO4Hls= -github.com/prometheus/common v0.44.0 h1:+5BrQJwiBB9xsMygAB3TNvpQKOwlkc25LbISbrdOOfY= -github.com/prometheus/common v0.44.0/go.mod h1:ofAIvZbQ1e/nugmZGz4/qCb9Ap1VoSTIO7x0VV9VvuY= +github.com/prometheus/common v0.45.0 h1:2BGz0eBc2hdMDLnO/8n0jeB3oPrt2D08CekT0lneoxM= +github.com/prometheus/common v0.45.0/go.mod h1:YJmSTw9BoKxJplESWWxlbyttQR4uaEcGyv9MZjVOJsY= github.com/prometheus/procfs v0.0.0-20180725123919-05ee40e3a273/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-20181204211112-1dc9a6cbc91a/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk= github.com/prometheus/procfs v0.0.0-20190117184657-bf6a532e95b1/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.2/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA= @@ -1699,15 +1333,11 @@ github.com/prometheus/procfs v0.0.8/go.mod h1:7Qr8sr6344vo1JqZ6HhLceV9o3AJ1Ff+Gx 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.3.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/go.mod h1:cz+aTbrPOrUb4q7XlbU9ygM+/jj0fzG6c1xBZuNvfVA= -github.com/prometheus/procfs v0.10.1 h1:kYK1Va/YMlutzCGazswoHKo//tZVlFpKYh+PymziUAg= -github.com/prometheus/procfs v0.10.1/go.mod h1:nwNm2aOCAYw8uTR/9bWRREkZFxAUcWzPHWJq+XBB/FM= +github.com/prometheus/procfs v0.12.0 h1:jluTpSng7V9hY0O2R9DzzJHYb2xULk9VTR1V1R/k6Bo= +github.com/prometheus/procfs v0.12.0/go.mod h1:pcuDEFsWDnvcgNzo4EEweacyhjeA9Zk3cnaOZAZEfOo= github.com/prometheus/tsdb v0.7.1/go.mod h1:qhTCs0VvXwvX/y3TZrWD7rabWM+ijKTux40TwIPHuXU= github.com/rakyll/statik v0.1.7 h1:OF3QCZUuyPxuGEP7B4ypUa7sB/iHtqOTDYZXGM8KOdQ= github.com/rakyll/statik v0.1.7/go.mod h1:AlZONWzMtEnMs7W4e/1LURLiI49pIMmp6V9Unghqrcc= -github.com/rboyer/safeio v0.2.1 h1:05xhhdRNAdS3apYm7JRjOqngf4xruaW959jmRxGDuSU= -github.com/rboyer/safeio v0.2.1/go.mod h1:Cq/cEPK+YXFn622lsQ0K4KsPZSPtaptHHEldsy7Fmig= github.com/rcrowley/go-metrics v0.0.0-20181016184325-3113b8401b8a/go.mod h1:bCqnVzQkZxMG4s8nGwiZ5l3QUCyqpo9Y+/ZMZ9VjZe4= github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475 h1:N/ElC8H3+5XpJzTSTfLsJV/mx9Q9g7kxmchpfZyxgzM= github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475/go.mod h1:bCqnVzQkZxMG4s8nGwiZ5l3QUCyqpo9Y+/ZMZ9VjZe4= @@ -1717,8 +1347,6 @@ github.com/regen-network/gocuke v0.6.2 h1:pHviZ0kKAq2U2hN2q3smKNxct6hS0mGByFMHGn github.com/regen-network/gocuke v0.6.2/go.mod h1:zYaqIHZobHyd0xOrHGPQjbhGJsuZ1oElx150u2o1xuk= github.com/regen-network/protobuf v1.3.3-alpha.regen.1 h1:OHEc+q5iIAXpqiqFKeLpu5NwTIkVXUs48vFMwzqpqY4= github.com/regen-network/protobuf v1.3.3-alpha.regen.1/go.mod h1:2DjTFR1HhMQhiWC5sZ4OhQ3+NtdbZ6oBDKQwq5Ou+FI= -github.com/renier/xmlrpc v0.0.0-20170708154548-ce4a1a486c03 h1:Wdi9nwnhFNAlseAOekn6B5G/+GMtks9UKbvRU/CMM/o= -github.com/renier/xmlrpc v0.0.0-20170708154548-ce4a1a486c03/go.mod h1:gRAiPF5C5Nd0eyyRdqIu9qTiFSoZzpTq727b5B8fkkU= github.com/retailnext/hllpp v1.0.1-0.20180308014038-101a6d2f8b52/go.mod h1:RDpi1RftBQPUCDRw6SmxeaREsAaRKnOclghuzp/WRzc= github.com/rivo/uniseg v0.2.0 h1:S1pD9weZBuJdFmowNwbpi7BJ8TNftyUImj/0WQi72jY= github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc= @@ -1733,8 +1361,10 @@ github.com/rogpeppe/go-internal v1.8.1/go.mod h1:JeRgkft04UBgHMgCIwADu4Pn6Mtm5d4 github.com/rogpeppe/go-internal v1.9.0/go.mod h1:WtVeX8xhTBvf0smdhujwtBcq4Qrzq/fJaraNFVN+nFs= github.com/rogpeppe/go-internal v1.12.0 h1:exVL4IDcn6na9z1rAb56Vxr+CgyK3nn3O+epU5NdKM8= github.com/rogpeppe/go-internal v1.12.0/go.mod h1:E+RYuTGaKKdloAfM02xzb0FW3Paa99yedzYV+kq4uf4= -github.com/rook/rook v1.11.1 h1:23GWgK/S+IrtKKbou5e0VAxHNriDxSWZLhHyV92vNIw= -github.com/rook/rook v1.11.1/go.mod h1:MPltNTZtf8DmhJjAxsdgYmJaJmFcq/CHadTm2DMPPiM= +github.com/rook/rook v1.14.12 h1:p3z85Tz5Pigfq1faVoaPvI1m5/SCEDZD97xQBvwn85c= +github.com/rook/rook v1.14.12/go.mod h1:wr+uEGtUsleDyKjoycsZ0Ri1bPx44gdaLfA6/cVu2m4= +github.com/rook/rook/pkg/apis v0.0.0-20231204200402-5287527732f7 h1:jXRUM2OJDz6hwpO4fElAgUqdTKosO3LHV3fwEB6iYJM= +github.com/rook/rook/pkg/apis v0.0.0-20231204200402-5287527732f7/go.mod h1:ZnB1JWtsxJLz2Q3ylHFS4lE/2A1lw2zIOKN0uAmhiZM= github.com/rs/cors v1.7.0/go.mod h1:gFx+x8UowdsKA9AchylcLynDq+nNFfI8FkUZdN/jGCU= github.com/rs/cors v1.8.2 h1:KCooALfAYGs415Cwu5ABvv9n9509fSiG5SQJn/AQo4U= github.com/rs/cors v1.8.2/go.mod h1:XyqrcTp5zjWr1wsJ8PIRZssZ8b/WMcMf71DJnit4EMU= @@ -1752,51 +1382,36 @@ github.com/sagikazarmark/locafero v0.4.0 h1:HApY1R9zGo4DBgr7dqsTH/JJxLTTsOt7u6ke github.com/sagikazarmark/locafero v0.4.0/go.mod h1:Pe1W6UlPYUk/+wc/6KFhbORCfqzgYEpgQ3O5fPuL3H4= github.com/sagikazarmark/slog-shim v0.1.0 h1:diDBnUNK9N/354PgrxMywXnAwEr1QZcOr6gto+ugjYE= github.com/sagikazarmark/slog-shim v0.1.0/go.mod h1:SrcSrq8aKtyuqEI1uvTDTK1arOWRIczQRv+GVI1AkeQ= -github.com/samuel/go-zookeeper v0.0.0-20180130194729-c4fab1ac1bec/go.mod h1:gi+0XIa01GRL2eRQVjQkKGqKF3SF9vZR/HnPullcV2E= github.com/samuel/go-zookeeper v0.0.0-20190923202752-2cc03de413da/go.mod h1:gi+0XIa01GRL2eRQVjQkKGqKF3SF9vZR/HnPullcV2E= github.com/sasha-s/go-deadlock v0.3.1 h1:sqv7fDNShgjcaxkO0JNcOAlr8B9+cV5Ey/OB71efZx0= github.com/sasha-s/go-deadlock v0.3.1/go.mod h1:F73l+cr82YSh10GxyRI6qZiCgK64VaZjwesgfQ1/iLM= -github.com/satori/go.uuid v1.2.0/go.mod h1:dA0hQrYB0VpLJoorglMZABFdXlWrHn1NEOzdhQKdks0= github.com/schollz/closestmatch v2.1.0+incompatible/go.mod h1:RtP1ddjLong6gTkbtmuhtR2uUrrJOpYzYRvbcPAid+g= github.com/sclevine/agouti v3.0.0+incompatible/go.mod h1:b4WX9W9L1sfQKXeJf1mUTLZKJ48R1S7H23Ji7oFO5Bw= github.com/sean-/seed v0.0.0-20170313163322-e2103e2c3529/go.mod h1:DxrIzT+xaE7yg65j358z/aeFdxmN0P9QXhEzd20vsDc= +github.com/seccomp/libseccomp-golang v0.9.2-0.20220502022130-f33da4d89646/go.mod h1:JA8cRccbGaA1s33RQf7Y1+q9gHmZX1yB/z9WDN1C6fg= github.com/segmentio/fasthash v1.0.3/go.mod h1:waKX8l2N8yckOgmSsXJi7x1ZfdKZ4x7KRMzBtS3oedY= github.com/segmentio/kafka-go v0.1.0/go.mod h1:X6itGqS9L4jDletMsxZ7Dz+JFWxM6JHfPOCvTvk+EJo= github.com/segmentio/kafka-go v0.2.0/go.mod h1:X6itGqS9L4jDletMsxZ7Dz+JFWxM6JHfPOCvTvk+EJo= github.com/sergi/go-diff v1.0.0/go.mod h1:0CfEIISq7TuYL3j771MWULgwwjU+GofnZX9QAmXWZgo= github.com/sergi/go-diff v1.1.0/go.mod h1:STckp+ISIX8hZLjrqAeVduY0gWCT9IjLuqbuNXdaHfM= -github.com/sethvargo/go-limiter v0.7.2 h1:FgC4N7RMpV5gMrUdda15FaFTkQ/L4fEqM7seXMs4oO8= -github.com/sethvargo/go-limiter v0.7.2/go.mod h1:C0kbSFbiriE5k2FFOe18M1YZbAR2Fiwf72uGu0CXCcU= -github.com/shirou/gopsutil v2.19.9+incompatible/go.mod h1:5b4v6he4MtMOwMlS0TUMTu2PcXUg8+E1lC7eC3UO/RA= -github.com/shirou/gopsutil v3.21.4-0.20210419000835-c7a38de76ee5+incompatible h1:Bn1aCHHRnjv4Bl16T8rcaFjYSrGrIZvpiGO6P3Q4GpU= github.com/shirou/gopsutil v3.21.4-0.20210419000835-c7a38de76ee5+incompatible/go.mod h1:5b4v6he4MtMOwMlS0TUMTu2PcXUg8+E1lC7eC3UO/RA= -github.com/shirou/gopsutil/v3 v3.22.6 h1:FnHOFOh+cYAM0C30P+zysPISzlknLC5Z1G4EAElznfQ= -github.com/shirou/gopsutil/v3 v3.22.6/go.mod h1:EdIubSnZhbAvBS1yJ7Xi+AShB/hxwLHOMz4MCYz7yMs= -github.com/shirou/w32 v0.0.0-20160930032740-bb4de0191aa4/go.mod h1:qsXQc7+bwAM3Q1u/4XEfrquwF8Lw7D7y5cD8CuHnfIc= -github.com/shopspring/decimal v0.0.0-20180709203117-cd690d0c9e24/go.mod h1:M+9NzErvs504Cn4c5DxATwIqPbtswREoFCre64PpcG4= 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.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.9.0 h1:trlNQbNUG3OdDrDil03MCb1H2o9nJ1x4/5LYw7byDE0= +github.com/sirupsen/logrus v1.8.1/go.mod h1:yWOB1SBYBC5VeMP7gHvWumXLIWorT60ONWic61uBYv0= github.com/sirupsen/logrus v1.9.0/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVsIT4qYEQ= +github.com/sirupsen/logrus v1.9.3 h1:dueUQJ1C2q9oE3F7wvmSGAaVtTmUizReu6fjN8uqzbQ= +github.com/sirupsen/logrus v1.9.3/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVsIT4qYEQ= github.com/smallstep/assert v0.0.0-20200723003110-82e2b9b3b262 h1:unQFBIznI+VYD1/1fApl1A+9VcBk+9dcqGfnePY87LY= github.com/smallstep/assert v0.0.0-20200723003110-82e2b9b3b262/go.mod h1:MyOHs9Po2fbM1LHej6sBUT8ozbxmMOFG+E+rx/GSGuc= -github.com/smartystreets/assertions v0.0.0-20180725160413-e900ae048470/go.mod h1:OnSkiWE9lh6wB0YB77sQom3nweQdgAjqCqsofrRNTgc= github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d/go.mod h1:OnSkiWE9lh6wB0YB77sQom3nweQdgAjqCqsofrRNTgc= -github.com/smartystreets/goconvey v0.0.0-20180222194500-ef6db91d284a/go.mod h1:XDJAKZRPZ1CvBcN2aX5YOUTYGHki24fSF0Iv48Ibg0s= -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/softlayer/softlayer-go v0.0.0-20180806151055-260589d94c7d h1:bVQRCxQvfjNUeRqaY/uT0tFuvuFY0ulgnczuR684Xic= -github.com/softlayer/softlayer-go v0.0.0-20180806151055-260589d94c7d/go.mod h1:Cw4GTlQccdRGSEf6KiMju767x0NEHE0YIVPJSaXjlsw= github.com/soheilhy/cmux v0.1.4/go.mod h1:IM3LyeVVIOuxMH7sFAkER9+bJ4dT7Ms6E4xg4kGIyLM= github.com/sony/gobreaker v0.4.1/go.mod h1:ZKptC7FHNvhBz7dN2LGjPVBz2sZJmc0/PkyDJOjmxWY= -github.com/sony/gobreaker v0.4.2-0.20210216022020-dd874f9dd33b h1:br+bPNZsJWKicw/5rALEo67QHs5weyD5tf8WST+4sJ0= -github.com/sony/gobreaker v0.4.2-0.20210216022020-dd874f9dd33b/go.mod h1:ZKptC7FHNvhBz7dN2LGjPVBz2sZJmc0/PkyDJOjmxWY= github.com/sourcegraph/conc v0.3.0 h1:OQTbbt6P72L20UqAkXXuLOj79LfEanQ+YQFNpLA9ySo= github.com/sourcegraph/conc v0.3.0/go.mod h1:Sdozi7LEKbFPqYX2/J+iBAM6HpqSLTASQIKqDmF7Mt0= github.com/spaolacci/murmur3 v0.0.0-20180118202830-f09979ecbc72/go.mod h1:JwIasOWyU6f++ZhiEuf87xNszmSA2myDM2Kzu9HwQUA= @@ -1804,22 +1419,18 @@ github.com/spaolacci/murmur3 v1.1.0 h1:7c1g84S4BPRrfL5Xrdp6fOJ206sU9y293DDHaoy0b github.com/spaolacci/murmur3 v1.1.0/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.6.0/go.mod h1:Ai8FlHk4v/PARR026UzYexafAt9roJ7LcLMAmO6Z93I= github.com/spf13/afero v1.11.0 h1:WJQKhtpdm3v2IzqG8VMqrr6Rf3UYpEF239Jy9wNepM8= github.com/spf13/afero v1.11.0/go.mod h1:GH9Y3pIexgf1MTIWtNGyogA5MwRIDXGUr+hbWNoBjkY= 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.6.0 h1:GEiTHELF+vaR5dhz3VqZfFSzZjYbgeKDpBxQVS4GYJ0= github.com/spf13/cast v1.6.0/go.mod h1:ancEpBxwJDODSW/UG4rDrAqiKolqNNh2DX3mk86cAdo= github.com/spf13/cobra v0.0.3/go.mod h1:1l0Ry5zgKvJasoi3XT1TypsSe7PqH0Sj9dhYf7v3XqQ= github.com/spf13/cobra v0.0.5/go.mod h1:3K3wKZymM7VvHMDS9+Akkh4K60UwM26emMESw8tLCHU= github.com/spf13/cobra v1.1.1/go.mod h1:WnodtKOvamDL/PwE2M4iKs8aMDBZ5Q5klgD3qfVJQMI= -github.com/spf13/cobra v1.2.1/go.mod h1:ExllRjgxM/piMAM+3tAZvg8fsklGAf3tPfi+i8t68Nk= github.com/spf13/cobra v1.4.0/go.mod h1:Wo4iy3BUC+X2Fybo0PDqwJIv3dNRiZLHQymsfxlB84g= -github.com/spf13/cobra v1.8.0 h1:7aJaZx1B85qltLMc546zn58BxxfZdR/W22ej9CFoEf0= -github.com/spf13/cobra v1.8.0/go.mod h1:WXLWApfZ71AjXPya3WOlMsY9yMs7YeiHhFVlvLyhcho= +github.com/spf13/cobra v1.8.1 h1:e5/vxKd/rZsfSJMUX1agtjeTDf+qv1/JdBF8gg5k9ZM= +github.com/spf13/cobra v1.8.1/go.mod h1:wHxEcudfqmLYa8iTfL+OuZPbBZkmvliBWKIezN3kD9Y= github.com/spf13/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/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4= github.com/spf13/pflag v1.0.2/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4= @@ -1828,7 +1439,6 @@ 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.3.2/go.mod h1:ZiWeW+zYFKm7srdB9IoDzzZXaJaI5eL9QjNiN/DMA2s= 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.18.2 h1:LUXCnvUvSM6FXAsj6nnfc8Q2tp1dIgUfY9Kc8GsSOiQ= github.com/spf13/viper v1.18.2/go.mod h1:EKmWIqdnk5lOcmR72yw6hS+8OPYcwD0jteitLMVB+yk= github.com/status-im/keycard-go v0.0.0-20190316090335-8537d3370df4/go.mod h1:RZLeN1LMWmRsyYjvAu+I6Dm9QmlDaIIt+Y+4Kd7Tp+Q= @@ -1851,7 +1461,6 @@ github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5 github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= -github.com/stretchr/testify v1.7.2/go.mod h1:R6va5+xMeoiuVRoj+gSkQ7d3FALtqAAGI1FQKckRals= github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg= @@ -1859,12 +1468,11 @@ github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8 github.com/subosito/gotenv v1.2.0/go.mod h1:N0PQaV/YGNqwC0u51sEeR/aUtSLEXKX9iv69rRypqCw= github.com/subosito/gotenv v1.6.0 h1:9NlTDc1FTs4qu0DDq7AEtTPNw6SVm7uBMsUCUjABIf8= github.com/subosito/gotenv v1.6.0/go.mod h1:Dk4QP5c2W3ibzajGcXpNraDfq2IrhjMIvMSWPKKo0FU= +github.com/syndtr/gocapability v0.0.0-20200815063812-42c35b437635/go.mod h1:hkRG7XYTFWNJGYcbNJQlaLq0fg1yr4J4t/NcTQtrfww= github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7 h1:epCh84lMvA70Z7CTTCmYQn2CKbY8j86K7/FAIr141uY= github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7/go.mod h1:q4W45IWZaF22tdD+VEXcAWRA037jwmWEB5VWYORlTpc= github.com/tecbot/gorocksdb v0.0.0-20191217155057-f0fad39f321c h1:g+WoO5jjkqGAzHWCjJB1zZfXPIAaDpzXIEJ0eS6B5Ok= github.com/tecbot/gorocksdb v0.0.0-20191217155057-f0fad39f321c/go.mod h1:ahpPrc7HpcfEWDQRZEmnXMzHY03mLDYMCxeDzy46i+8= -github.com/tencentcloud/tencentcloud-sdk-go v3.0.171+incompatible h1:K3fcS92NS8cRntIdu8Uqy2ZSePvX73nNhOkKuPGJLXQ= -github.com/tencentcloud/tencentcloud-sdk-go v3.0.171+incompatible/go.mod h1:0PfYow01SHPMhKY31xa+EFz2RStxIqj6JFAJS+IkCi4= github.com/tendermint/go-amino v0.16.0 h1:GyhmgQKvqF82e2oZeuMSp9JTN0N09emoSZlb2lyGa2E= github.com/tendermint/go-amino v0.16.0/go.mod h1:TQU0M1i/ImAo+tYpZi73AU3V/dKeCoMC9Sphe2ZwGME= github.com/tendermint/tm-db v0.6.7 h1:fE00Cbl0jayAoqlExN6oyQJ7fR/ZtoVOmvPJ//+shu8= @@ -1882,11 +1490,7 @@ github.com/tidwall/sjson v1.2.4/go.mod h1:098SZ494YoMWPmMO6ct4dcFnqxwj9r/gF0Etp1 github.com/tinylib/msgp v1.0.2/go.mod h1:+d+yLhGm8mzTaHzB+wgMYrodPfmZrzkirds8fDWklFE= github.com/tinylib/msgp v1.1.5/go.mod h1:eQsjooMTnV42mHu917E26IogZ2930nFyBQdofk10Udg= github.com/tklauser/go-sysconf v0.3.5/go.mod h1:MkWzOF4RMCshBAMXuhXJs64Rte09mITnppBXY/rYEFI= -github.com/tklauser/go-sysconf v0.3.10 h1:IJ1AZGZRWbY8T5Vfk04D9WOA5WSejdflXxP03OUqALw= -github.com/tklauser/go-sysconf v0.3.10/go.mod h1:C8XykCvCb+Gn0oNCWPIlcb0RuglQTYaQ2hGm7jmxEFk= github.com/tklauser/numcpus v0.2.2/go.mod h1:x3qojaO3uyYt0i56EW/VUYs7uBvdl2fkfZFu0T9wgjM= -github.com/tklauser/numcpus v0.4.0 h1:E53Dm1HjH1/R2/aoCtXtPgzmElmn51aOkhCFSuZq//o= -github.com/tklauser/numcpus v0.4.0/go.mod h1:1+UI3pD8NW14VMwdgJNJ1ESk2UnwhAnz5hMwiKKqXCQ= 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/troian/hid v0.13.2 h1:O7PWZQm5YGyg0nVvknFVLVrNTPillz4ZXvxJOtoyteE= @@ -1895,8 +1499,6 @@ github.com/troian/pubsub v0.1.1 h1:huc5qneo0rtSKKsrkroyyMu+b8bw0talql2tt7GXl98= github.com/troian/pubsub v0.1.1/go.mod h1:fOUAEWXes/SkyWPTdBpW3L/ovyg74N+eBxRpWKik+2Q= github.com/ttacon/chalk v0.0.0-20160626202418-22c06c80ed31/go.mod h1:onvgF043R+lC5RZ8IT9rBXDaEDnpnw/Cl+HFiw+v/7Q= github.com/tv42/httpunix v0.0.0-20150427012821-b75d8614f926/go.mod h1:9ESjWnEqriFuLhtthL60Sar/7RFoluCcXsuvEwTV5KM= -github.com/tv42/httpunix v0.0.0-20191220191345-2ba4b9c3382c h1:u6SKchux2yDvFQnDHS3lPnIRmfVJ5Sxy3ao2SIdysLQ= -github.com/tv42/httpunix v0.0.0-20191220191345-2ba4b9c3382c/go.mod h1:hzIxponao9Kjc7aWznkXaL4U4TWaDSs8zcsY4Ka08nM= github.com/tyler-smith/go-bip39 v1.0.1-0.20181017060643-dbb3b84ba2ef/go.mod h1:sJ5fKU0s6JVwZjjcUEX2zFOnvq0ASQ2K9Zr6cf67kNs= github.com/tyler-smith/go-bip39 v1.0.2/go.mod h1:sJ5fKU0s6JVwZjjcUEX2zFOnvq0ASQ2K9Zr6cf67kNs= github.com/ugorji/go v1.1.7/go.mod h1:kZn38zHttfInRq0xu/PH0az30d+z6vm202qpg1oXVMw= @@ -1906,7 +1508,6 @@ github.com/ugorji/go/codec v0.0.0-20181204163529-d75b2dcb6bc8/go.mod h1:VFNgLljT github.com/ugorji/go/codec v1.1.7/go.mod h1:Ax+UKWsSmolVDwsd+7N3ZtXu+yMGCf907BLYF3GoBXY= github.com/ugorji/go/codec v1.2.7 h1:YPXUKf7fYbp/y8xloBqZOw2qaVggbfwMlI8WM3wZUJ0= github.com/ugorji/go/codec v1.2.7/go.mod h1:WGN1fab3R1fzQlVQTkfxVtIBhWDRqOviHU95kRgeqEY= -github.com/ulikunitz/xz v0.5.6/go.mod h1:2bypXElzHzzJZwzH67Y6wb67pO62Rzfn7BSiF4ABRW8= 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/v2 v2.3.0/go.mod h1:LJmUH05zAU44vOAcrfzZQKsZbVcdbOG8rtL3/XcUArI= @@ -1919,20 +1520,18 @@ github.com/valyala/tcplisten v0.0.0-20161114210144-ceec8f93295a/go.mod h1:v3UYOV github.com/vektah/gqlparser v1.1.2/go.mod h1:1ycwN7Ij5njmMkPPAOaRFY4rET2Enx7IkVv3vaXspKw= github.com/vektra/mockery/v2 v2.40.2 h1:JKuQ74IXibMCGKG6F0yvH/s2sNs1CHy/nGBP0We5DJ8= github.com/vektra/mockery/v2 v2.40.2/go.mod h1:KYBZF/7sqOa86BaOZPYsoCZWEWLS90a5oBLg2pVudxY= +github.com/vishvananda/netlink v1.1.0/go.mod h1:cTgwzPIzzgDAYoQrMm0EdrjRUBkTqKYppBueQtXaqoE= +github.com/vishvananda/netns v0.0.0-20191106174202-0a2b9b5464df/go.mod h1:JP3t17pCcGlemwknint6hfoeCVQrEMVwxRLRjXpq+BU= github.com/vmihailenco/msgpack/v5 v5.3.5/go.mod h1:7xyJ9e+0+9SaZT0Wt1RGleJXzli6Q/V5KbhBonMG9jc= github.com/vmihailenco/tagparser/v2 v2.0.0/go.mod h1:Wri+At7QHww0WTrCBeu4J6bNtoV6mEfg5OIWRZA9qds= -github.com/vmware/govmomi v0.18.0 h1:f7QxSmP7meCtoAmiKZogvVbLInT+CZx6Px6K5rYsJZo= -github.com/vmware/govmomi v0.18.0/go.mod h1:URlwyTFZX72RmxtxuaFL2Uj3fD1JTvZdx59bHWk6aFU= github.com/willf/bitset v1.1.3/go.mod h1:RjeCKbqT1RxIR/KWY6phxZiaY1IyutSBfGjNPySAYV4= -github.com/xdg/scram v0.0.0-20180814205039-7eeb5667e42c/go.mod h1:lB8K/P019DLNhemzwFU4jHLhdvlE6uDZjXFejJXr49I= -github.com/xdg/stringprep v1.0.0/go.mod h1:Jhud4/sHMO4oL310DaZAKk9ZaJ08SJfe+sJh0HrGL1Y= +github.com/x448/float16 v0.8.4 h1:qLwI1I70+NjRFUR3zs1JPUCgaCXSh3SW62uAKT1mSBM= +github.com/x448/float16 v0.8.4/go.mod h1:14CWIYCyZA/cWjXOioeEpHeN/83MdbZDRQHoFcYsOfg= github.com/xeipuuv/gojsonpointer v0.0.0-20180127040702-4e3ac2762d5f/go.mod h1:N2zxlSyiKSe5eX1tZViRH5QA0qijqEDrYZiPEAiq3wU= github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415/go.mod h1:GwrjFmJcFw6At/Gs6z4yjiIwzuJ1/+UwLxMQDVQXShQ= github.com/xeipuuv/gojsonschema v1.2.0/go.mod h1:anYRn/JVcOK2ZgGU+IjEV4nwlhoK5sQluxsYJ78Id3Y= -github.com/xi2/xz v0.0.0-20171230120015-48954b6210f8/go.mod h1:HUYIGzjTL3rfEspMxjDjgmT5uz5wzYJKVo23qUhYTos= github.com/xiang90/probing v0.0.0-20190116061207-43a291ad63a2/go.mod h1:UETIi67q53MR2AWcXfiuqkDkRtnGDLqkBTpCHuJHxtU= github.com/xlab/treeprint v0.0.0-20180616005107-d6fb6747feb6/go.mod h1:ce1O1j6UtZfjr22oyGxGLbauSBp2YVXpARAosm7dHBg= -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/yalp/jsonpath v0.0.0-20180802001716-5cc68e5049a0/go.mod h1:/LWChgwKmvncFJFHJ7Gvn9wZArjbV5/FppcK2fKk/tI= github.com/ybbus/jsonrpc v2.1.2+incompatible/go.mod h1:XJrh1eMSzdIYFbM08flv0wp5G35eRniyeGut1z+LSiE= @@ -1945,27 +1544,17 @@ github.com/yuin/goldmark v1.1.32/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9de github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= github.com/yuin/goldmark v1.4.1/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= -github.com/yusufpapurcu/wmi v1.2.2 h1:KBNDSne4vP5mbSWnJbO+51IMOXJB67QiYCSBrubbPRg= -github.com/yusufpapurcu/wmi v1.2.2/go.mod h1:SBZ9tNy3G9/m5Oi98Zks0QjeHVDvuK0qfxQmPyzfmi0= +github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= 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 h1:/ecaJf0sk1l4l6V4awd65v2C3ILy7MSj+s/x1ADCIMU= go.etcd.io/bbolt v1.3.6/go.mod h1:qXsaaIqmgQH0T+OPdb99Bf+PKfBBQVAdyD6TY9G8XM4= go.etcd.io/etcd v0.0.0-20191023171146-3cf2f69b5738/go.mod h1:dnLIgRNXwCJa5e+c6mIZCrds/GIG4ncV9HhK5PX7jPg= -go.etcd.io/etcd v0.5.0-alpha.5.0.20191023171146-3cf2f69b5738/go.mod h1:dnLIgRNXwCJa5e+c6mIZCrds/GIG4ncV9HhK5PX7jPg= 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/client/pkg/v3 v3.5.0/go.mod h1:IJHfcCEKxYu1Os13ZdwCwIUTUVGYTSAM3YSwc9/Ac1g= -go.etcd.io/etcd/client/v2 v2.305.0/go.mod h1:h9puh54ZTgAKtEbut2oe9P4L/oqKCVB6xsXlzd7alYQ= go.mongodb.org/mongo-driver v1.0.3/go.mod h1:u7ryQJ+DOzQmeO7zB6MHyr8jkEQvC8vH7qLUO4lqsUM= go.mongodb.org/mongo-driver v1.1.1/go.mod h1:u7ryQJ+DOzQmeO7zB6MHyr8jkEQvC8vH7qLUO4lqsUM= go.mongodb.org/mongo-driver v1.1.2/go.mod h1:u7ryQJ+DOzQmeO7zB6MHyr8jkEQvC8vH7qLUO4lqsUM= -go.mongodb.org/mongo-driver v1.2.1/go.mod h1:u7ryQJ+DOzQmeO7zB6MHyr8jkEQvC8vH7qLUO4lqsUM= -go.mongodb.org/mongo-driver v1.7.3 h1:G4l/eYY9VrQAK/AUgkV0koQKzQnyddnWxrd/Etf0jIs= -go.mongodb.org/mongo-driver v1.7.3/go.mod h1:NqaYOwnXWr5Pm7AOpO5QFxKJ503nbMse/R79oO62zWg= -go.opencensus.io v0.19.1/go.mod h1:gug0GbSHa8Pafr0d2urOSgoXHZ6x/RUlaiT0d9pqb4A= -go.opencensus.io v0.19.2/go.mod h1:NO/8qkisMZLZ1FCsKNqtJPwc8/TaclWyY0B6wcYNg9M= go.opencensus.io v0.20.1/go.mod h1:6WKK9ahsWS3RSO+PY9ZHZUfv2irvY6gN279GOPZjmmk= go.opencensus.io v0.20.2/go.mod h1:6WKK9ahsWS3RSO+PY9ZHZUfv2irvY6gN279GOPZjmmk= go.opencensus.io v0.21.0/go.mod h1:mSImk1erAIZhrmZN+AvHh14ztQfjbGwt4TtuofqLduU= @@ -1975,57 +1564,24 @@ go.opencensus.io v0.22.3/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= go.opencensus.io v0.22.4/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= go.opencensus.io v0.22.5/go.mod h1:5pWMHQbX5EPX2/62yrJeAkowc+lfs/XD7Uxpq3pI6kk= go.opencensus.io v0.23.0/go.mod h1:XItmlyltB5F7CS4xOC1DcqMoFqwtC6OG2xF7mCv7P7E= -go.opencensus.io v0.24.0 h1:y73uSU6J157QMP2kn2r30vwW1A2W2WFwSCGnAVxeaD0= -go.opencensus.io v0.24.0/go.mod h1:vNK8G9p7aAivkbmorf4v+7Hgx+Zs0yY+0fOtgBfjQKo= -go.opentelemetry.io/contrib v0.20.0 h1:ubFQUn0VCZ0gPwIoJfBJVpeBlyRMxu8Mm/huKWYd9p0= -go.opentelemetry.io/contrib v0.20.0/go.mod h1:G/EtFaa6qaN7+LxqfIAT3GiZa7Wv5DTBUzl5H4LY0Kc= -go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.49.0 h1:4Pp6oUg3+e/6M4C0A/3kJ2VYa++dsWVTtGgLVj5xtHg= -go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.49.0/go.mod h1:Mjt1i1INqiaoZOMGR1RIUJN+i3ChKoFRqzrRQhlkbs0= -go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.20.0/go.mod h1:2AboqHi0CiIZU0qwhtUfCYD1GeUzvvIXWNkhDt7ZMG4= -go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.49.0 h1:jq9TW8u3so/bN+JPT166wjOI6/vQPF6Xe7nMNIltagk= -go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.49.0/go.mod h1:p8pYQP+m5XfbZm9fxtSKAbM6oIllS7s2AfxrChvc7iw= -go.opentelemetry.io/otel v0.20.0/go.mod h1:Y3ugLH2oa81t5QO+Lty+zXf8zC9L26ax4Nzoxm/dooo= -go.opentelemetry.io/otel v1.24.0 h1:0LAOdjNmQeSTzGBzduGe/rU4tZhMwL5rWgtp9Ku5Jfo= -go.opentelemetry.io/otel v1.24.0/go.mod h1:W7b9Ozg4nkF5tWI5zsXkaKKDjdVjpD4oAt9Qi/MArHo= -go.opentelemetry.io/otel/exporters/otlp v0.20.0/go.mod h1:YIieizyaN77rtLJra0buKiNBOm9XQfkPEKBeuhoMwAM= -go.opentelemetry.io/otel/metric v0.20.0/go.mod h1:598I5tYlH1vzBjn+BTuhzTCSb/9debfNp6R3s7Pr1eU= -go.opentelemetry.io/otel/metric v1.24.0 h1:6EhoGWWK28x1fbpA4tYTOWBkPefTDQnb8WSGXlc88kI= -go.opentelemetry.io/otel/metric v1.24.0/go.mod h1:VYhLe1rFfxuTXLgj4CBiyz+9WYBA8pNGJgDcSFRKBco= -go.opentelemetry.io/otel/oteltest v0.20.0/go.mod h1:L7bgKf9ZB7qCwT9Up7i9/pn0PWIa9FqQ2IQ8LoxiGnw= -go.opentelemetry.io/otel/sdk v0.20.0/go.mod h1:g/IcepuwNsoiX5Byy2nNV0ySUF1em498m7hBWC279Yc= -go.opentelemetry.io/otel/sdk/export/metric v0.20.0/go.mod h1:h7RBNMsDJ5pmI1zExLi+bJK+Dr8NQCh0qGhm1KDnNlE= -go.opentelemetry.io/otel/sdk/metric v0.20.0/go.mod h1:knxiS8Xd4E/N+ZqKmUPf3gTTZ4/0TjTXukfxjzSTpHE= -go.opentelemetry.io/otel/trace v0.20.0/go.mod h1:6GjCW8zgDjwGHGa6GkyeB8+/5vjT16gUEi0Nf1iBdgw= -go.opentelemetry.io/otel/trace v1.24.0 h1:CsKnnL4dUAr/0llH9FKuc698G04IrpWV0MQA/Y1YELI= -go.opentelemetry.io/otel/trace v1.24.0/go.mod h1:HPc3Xr/cOApsBI154IU0OI0HJexz+aw5uPdbs3UCjNU= go.opentelemetry.io/proto/otlp v0.7.0/go.mod h1:PqfVotwruBrMGOCsRd/89rSnXhoiJIqeYNgFYFoEGnI= -go.starlark.net v0.0.0-20200306205701-8dd3e2ee1dd5/go.mod h1:nmDLcffg48OtT/PSW0Hg7FvpRQsQh5OSqIylirxKC7o= go.step.sm/crypto v0.44.6 h1:vQg8ujce7fNXDO8EWdriSz+ZSJpYnNh22QrFtRjdyoY= go.step.sm/crypto v0.44.6/go.mod h1:oKRO4jaf2MaCohJDN+/8ShImkvIgUKfJxxy87gqsnXs= 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.5.0/go.mod h1:sABNBOSYdrvTF6hTgEIbc7YasKWGhgEQZyfxyTvoXHQ= -go.uber.org/atomic v1.7.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc= -go.uber.org/atomic v1.9.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc= -go.uber.org/atomic v1.10.0 h1:9qC72Qh0+3MqyJbAn8YU5xVq1frD8bn3JtD2oXtafVQ= -go.uber.org/atomic v1.10.0/go.mod h1:LUxbIzbOniOlMKjJjyPfpl4v+PKK2cNJn91OQbhoJI0= -go.uber.org/goleak v1.1.10/go.mod h1:8a7PlsEVH3e/a/GLqe5IIrQx6GzcnRmZEufDUTk4A7A= -go.uber.org/goleak v1.1.11/go.mod h1:cwTWslyiVhfpKIDGSZEM2HlOvcqm+tG4zioyIeLoqMQ= -go.uber.org/goleak v1.2.0 h1:xqgm/S+aQvhWFTtR0XK3Jvg7z8kGV8P4X14IzwN3Eqk= -go.uber.org/goleak v1.2.0/go.mod h1:XJYK+MuIchqpmGmUSAzotztawfKvYLUIgg7guXrwVUo= +go.uber.org/goleak v1.3.0 h1:2K3zAYmnTNqV73imy9J1T3WC+gmCePx2hEGkimedGto= +go.uber.org/goleak v1.3.0/go.mod h1:CoHD4mav9JJNrW/WLlf7HGZPjdw8EucARQHekz1X6bE= go.uber.org/multierr v1.1.0/go.mod h1:wR5kodmAFQ0UK8QlbwjlSNy0Z68gJhDJUG5sjR94q/0= go.uber.org/multierr v1.3.0/go.mod h1:VgVr7evmIr6uPjLBxg28wmKNXyqE9akIJ5XnfpiKl+4= -go.uber.org/multierr v1.6.0/go.mod h1:cdWPpRnG4AhwMwsgIHip0KRBQjJy5kYEpYjJxpXp9iU= -go.uber.org/multierr v1.9.0 h1:7fIwc/ZtS0q++VgcfqFDxSBZVv/Xo49/SYnDFupUwlI= -go.uber.org/multierr v1.9.0/go.mod h1:X2jQV1h+kxSjClGpnseKVIxpmcjrj7MNnI0bnlfKTVQ= +go.uber.org/multierr v1.11.0 h1:blXXJkSxSSfBVBlC76pxqeO+LN3aDfLQo+309xJstO0= +go.uber.org/multierr v1.11.0/go.mod h1:20+QtiLqy0Nd6FdQB9TLXag12DsQkrbs3htMFfDN80Y= go.uber.org/tools v0.0.0-20190618225709-2cfd321de3ee/go.mod h1:vJERXedbb3MVM5f9Ejo0C68/HhF8uaILCdgjnY+goOA= go.uber.org/zap v1.9.1/go.mod h1:vwi/ZaCAaUcBkycHslxD9B2zi4UTXhF60s6SWpuDF0Q= go.uber.org/zap v1.10.0/go.mod h1:vwi/ZaCAaUcBkycHslxD9B2zi4UTXhF60s6SWpuDF0Q= go.uber.org/zap v1.13.0/go.mod h1:zwrFLgMcdUuIBviXEYEH1YKNaOBnKXsx2IPda5bBwHM= -go.uber.org/zap v1.17.0/go.mod h1:MXVU+bhUf/A7Xi2HNOnopQOrmycQ5Ih87HtOu4q5SSo= -go.uber.org/zap v1.19.0/go.mod h1:xg/QME4nWcxGxrpdeYfq7UvYrLh66cuVKdrbD1XF/NI= -go.uber.org/zap v1.24.0 h1:FiJd5l1UOLj0wCgbSE0rwwXHzEdAZS6hiiSnxJN/D60= -go.uber.org/zap v1.24.0/go.mod h1:2kMP+WWQ8aoFoedH3T2sq6iJ2yDWpHbP0f6MQbS9Gkg= +go.uber.org/zap v1.27.0 h1:aJMhYGrd5QSmlpLMr2MftRKl7t8J8PTZPA732ud/XR8= +go.uber.org/zap v1.27.0/go.mod h1:GB2qFLM7cTU87MWRP2mPIjqfIDnGu+VIO4V/SdhGo2E= golang.org/x/crypto v0.0.0-20170930174604-9419663f5a44/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= golang.org/x/crypto v0.0.0-20180820150726-614d502a4dac/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= @@ -2034,22 +1590,18 @@ golang.org/x/crypto v0.0.0-20181203042331-505ab145d0a9/go.mod h1:6SG95UA2DQfeDnf 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-20190320223903-b7391e95e576/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-20190418165655-df01cb2cc480/go.mod h1:WFFai1msRO1wXaEeE5yQxYXgSfI8pQAWXbQop6sCtWE= golang.org/x/crypto v0.0.0-20190426145343-a29dc8fdc734/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/crypto v0.0.0-20190513172903-22d7a77e9e5f/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-20190617133340-57b3e21c3d56/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-20190909091759-094676da4a83/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= +golang.org/x/crypto v0.0.0-20190911031432-227b76d455e7/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20191206172530-e9b2fee46413/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20191227163750-53104e6ec876/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20200115085410-6d4e4cb37c7d/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= -golang.org/x/crypto v0.0.0-20200117160349-530e935923ad/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20200220183623-bac4c82f6975/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20200510223506-06a226fb4e37/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= @@ -2062,9 +1614,14 @@ golang.org/x/crypto v0.0.0-20210322153248-0c34fe9e7dc2/go.mod h1:T9bdIzuCu7OtxOm golang.org/x/crypto v0.0.0-20210711020723-a769d52b0f97/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= 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-20220214200702-86341886e292/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= -golang.org/x/crypto v0.22.0 h1:g1v0xeRhjcugydODzvb3mEM9SQ0HGp9s/nh3COQ/C30= -golang.org/x/crypto v0.22.0/go.mod h1:vr6Su+7cTlO45qkww3VDJlzDn0ctJvRgYbC2NvXHt+M= +golang.org/x/crypto v0.0.0-20211215153901-e495a2d5b3d3/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= +golang.org/x/crypto v0.1.0/go.mod h1:RecgLatLF4+eUMCP1PoPZQb+cVrJcOPbHkTkbkB9sbw= +golang.org/x/crypto v0.6.0/go.mod h1:OFC/31mSvZgRz0V1QTNCzfAI1aIRzbiufJtkMIlEp58= +golang.org/x/crypto v0.14.0/go.mod h1:MVFd36DqK4CsrnJYDkBA3VC4m2GkXAM0PvzMCn4JQf4= +golang.org/x/crypto v0.17.0/go.mod h1:gCAAfMLgwOJRpTjQ2zCCt2OcSfYMTeZVSRtQlPC7Nq4= +golang.org/x/crypto v0.19.0/go.mod h1:Iy9bg/ha4yyC70EfRS8jz+B6ybOBKMaSxLj6P6oBDfU= +golang.org/x/crypto v0.28.0 h1:GBDwsMXVQi34v5CCYUm2jkJvu4cbtru2U4TN2PSyQnw= +golang.org/x/crypto v0.28.0/go.mod h1:rmgy+3RHxRZMyY0jjAJShp2zgEdOqj2AO7U0pYmeQ7U= golang.org/x/exp v0.0.0-20180321215751-8460e604b9de/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20180807140117-3d87b88a115f/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= @@ -2080,14 +1637,12 @@ golang.org/x/exp v0.0.0-20200207192155-f17229e696bd/go.mod h1:J/WKrq2StrnmMY6+EH golang.org/x/exp v0.0.0-20200224162631-6cc2880d07d6/go.mod h1:3jZMyOhIsHpP37uCMkUooju7aAi5cS1Q23tOzKc+0MU= golang.org/x/exp v0.0.0-20200331195152-e8c3332aa8e5/go.mod h1:4M0jN8W1tt0AVLNr8HDosyJCDCDuyL9N9+3m7wDWgKw= golang.org/x/exp v0.0.0-20200513190911-00229845015e/go.mod h1:4M0jN8W1tt0AVLNr8HDosyJCDCDuyL9N9+3m7wDWgKw= -golang.org/x/exp v0.0.0-20230905200255-921286631fa9 h1:GoHiUyI/Tp2nVkLI2mCxVkOjsbSXD66ic0XW0js0R9g= -golang.org/x/exp v0.0.0-20230905200255-921286631fa9/go.mod h1:S2oDrQGGwySpoQPVqRShND87VCbxmc6bL1Yd2oYrm6k= +golang.org/x/exp v0.0.0-20231127185646-65229373498e h1:Gvh4YaCaXNs6dKTlfgismwWZKyjVZXwOPfIyUaqU3No= +golang.org/x/exp v0.0.0-20231127185646-65229373498e/go.mod h1:iRJReGqOEeBhDZGkGbynYwcHlctCvnjTYIamk7uXpHI= golang.org/x/image v0.0.0-20180708004352-c73c2afc3b81/go.mod h1:ux5Hcp/YLpHSI86hEcLt0YII63i6oz57MZXIpbrjZUs= 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-20180702182130-06c8688daad7/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= -golang.org/x/lint v0.0.0-20181217174547-8f45f776aaf1/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= @@ -2111,23 +1666,23 @@ golang.org/x/mod v0.4.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.4.1/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.6.0-dev.0.20220106191415-9b9b3d81d5e3/go.mod h1:3p9vT2HGsQu2K1YbXdKPJLVgG5VJdoTa1poYQBtP1AY= -golang.org/x/mod v0.17.0 h1:zY54UmvipHiNd+pm+m0x9KhZ9hl1/7QNMyxXbc6ICqA= -golang.org/x/mod v0.17.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c= +golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4= +golang.org/x/mod v0.6.0/go.mod h1:4mET923SAdbXp2ki8ey+zGs1SLqsuM2Y0uvdZR/fUNI= +golang.org/x/mod v0.8.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= +golang.org/x/mod v0.21.0 h1:vvrHzRwRfVKSiLrG+d4FMl/Qi4ukBCE6kZlTUkDYRT0= +golang.org/x/mod v0.21.0/go.mod h1:6SkKJ3Xj0I0BrPOZoBy3bdMptDDU9oJrpohJ3eWZ1fY= golang.org/x/net v0.0.0-20170114055629-f2499483f923/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20180530234432-1e491301e022/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20180719180050-a680a1efc54d/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-20181005035420-146acd28ed58/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-20181106065722-10aee1819953/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-20190125091013-d26f9f9a57f3/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20190206173232-65e2d4e15006/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-20190320064053-1272bf9dcd53/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= @@ -2172,7 +1727,8 @@ golang.org/x/net v0.0.0-20210220033124-5f55cee0dc0d/go.mod h1:m0MpNAwzfU5UDzcl9v golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= golang.org/x/net v0.0.0-20210316092652-d523dce5a7f4/go.mod h1:RBQZq4jEuRlivfhVLdyRGr576XBO4/greRjx4P4O3yc= golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM= -golang.org/x/net v0.0.0-20210525063256-abc453219eb5/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= +golang.org/x/net v0.0.0-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-20210610132358-84b48f89b13b/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/net v0.0.0-20210805182204-aaa1db679c0d/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/net v0.0.0-20211008194852-3b03d305991f/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= @@ -2180,14 +1736,23 @@ golang.org/x/net v0.0.0-20211015210444-4f30a5c0130f/go.mod h1:9nx3DQGgdP8bBQD5qx 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-20220127200216-cd36cc0744dd/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= -golang.org/x/net v0.24.0 h1:1PcaxkF854Fu3+lvBIx5SYn9wRlBzzcnHZSiaFFAb0w= -golang.org/x/net v0.24.0/go.mod h1:2Q7sJY5mzlzWjKtYUEXSlBWCdyaioyXzRB2RtU8KVE8= +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/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= +golang.org/x/net v0.0.0-20220607020251-c690dde0001d/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= +golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= +golang.org/x/net v0.1.0/go.mod h1:Cx3nUiGt4eDBEyega/BKRp+/AlGL8hYe7U9odMt2Cco= +golang.org/x/net v0.2.0/go.mod h1:KqCZLdyyvdV855qA2rE3GC2aiw5xGR5TEjj8smXukLY= +golang.org/x/net v0.3.1-0.20221206200815-1e63c2f08a10/go.mod h1:MBQ8lrhLObU/6UmLb4fmbmk5OcyYmqtbGd/9yIeKjEE= +golang.org/x/net v0.6.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= +golang.org/x/net v0.7.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= +golang.org/x/net v0.10.0/go.mod h1:0qNGK6F8kojg2nk9dLZ2mShWaEBan6FAoqfSigmmuDg= +golang.org/x/net v0.17.0/go.mod h1:NxSsAGuq816PNPmqtQdLE42eU2Fs7NoRIZrHJAlaCOE= +golang.org/x/net v0.30.0 h1:AcW1SDZMkb8IpzCdQUaIq2sP4sZ4zw+55h6ynffypl4= +golang.org/x/net v0.30.0/go.mod h1:2wGyMJ5iFasEhkwi13ChkO/t1ECNC4X4eBKkVFyYFlU= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= -golang.org/x/oauth2 v0.0.0-20181203162652-d668ce993890/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= -golang.org/x/oauth2 v0.0.0-20190130055435-99b60b757ec1/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= -golang.org/x/oauth2 v0.0.0-20190319182350-c85d3e98c914/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= -golang.org/x/oauth2 v0.0.0-20190402181905-9f3314589c9a/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= @@ -2197,12 +1762,17 @@ golang.org/x/oauth2 v0.0.0-20201208152858-08078c50e5b5/go.mod h1:KelEdhl1UZF7XfJ 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-20211104180415-d3ed0bb246c8/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= -golang.org/x/oauth2 v0.19.0 h1:9+E/EZBCbTLNrbN35fHv/a/d/mOBatymz1zbtQrXpIg= -golang.org/x/oauth2 v0.19.0/go.mod h1:vYi7skDa1x015PmRRYZ7+s1cWyPgrPiSYRe4rnsexc8= +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/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= +golang.org/x/oauth2 v0.0.0-20220524215830-622c5d57e401/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= +golang.org/x/oauth2 v0.23.0 h1:PbgcYx2W7i4LvjJWEbf0ngHV6qJYr86PkAV3bXdLEbs= +golang.org/x/oauth2 v0.23.0/go.mod h1:XYTD2NtWslqkgxebSiOHnXEap4TF09sJSc7H1sXbhtI= 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= @@ -2214,8 +1784,11 @@ golang.org/x/sync v0.0.0-20200625203802-6e8e738ad208/go.mod h1:RxMgew5VJxzue5/jJ golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20201207232520-09787c993a3a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.7.0 h1:YsImfSBoP9QPYL0xyKJPq0gcaJdG3rInoqxTWbfQu9M= -golang.org/x/sync v0.7.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= +golang.org/x/sync v0.0.0-20220601150217-0de741cfad7f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.8.0 h1:3NFvSEYkUoMifnESzZl15y791HH1qU2xm6eCJU5ZPXQ= +golang.org/x/sync v0.8.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= 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= @@ -2226,36 +1799,32 @@ golang.org/x/sys v0.0.0-20181107165924-66b7b1311ac8/go.mod h1:STP8DvDyc/dI5b8T5h golang.org/x/sys v0.0.0-20181116152217-5ac8a444bdc5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20181122145206-62eef0e2fa9b/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20181205085412-a5c9d58dba9a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20181218192612-074acd46bca6/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20190129075346-302c3dd5f1cc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190130150945-aca44879d564/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-20190321052220-f7bb7a8bee54/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190403152447-81d4e9dc473e/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-20190523142557-0e01d883c5c5/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-20190712062909-fae7ac547cb7/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190726091711-fc99dfbffb4e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190813064441-fde4db37ae7a/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-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-20191220142924-d4481acd189f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= @@ -2265,7 +1834,6 @@ golang.org/x/sys v0.0.0-20200107162124-548cf772de50/go.mod h1:h1NjWce9XRLGQEsW7w 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-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-20200223170610-d5e6a3e2c0ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= @@ -2305,47 +1873,83 @@ golang.org/x/sys v0.0.0-20210403161142-5e06dd20ab57/go.mod h1:h1NjWce9XRLGQEsW7w golang.org/x/sys v0.0.0-20210420205809-ac73e9fd8988/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210510120138-977fb7262007/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20210603081109-ebe580a85c40/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20210514084401-e8d321eab015/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-20210816183151-1e6c022a8912/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210819135213-f52c844e1c1c/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-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-20210909193231-528a39cd75f3/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-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-20220503163025-988cb79eb6c6/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-20220319134239-a9b59b0215f8/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-20220422013727-9388b58f7150/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220502124256-b6088ccd6cba/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.1.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.2.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.3.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.8.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.12.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.19.0 h1:q5f1RH2jigJ1MoAWp2KTp3gm5zAGFUTarQZ5U386+4o= -golang.org/x/sys v0.19.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.13.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.15.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.17.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.26.0 h1:KHjCJyddX0LoSTb3J+vWpupP9p0oznkqVk/IfjymZbo= +golang.org/x/sys v0.26.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= 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-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.19.0 h1:+ThwsDv+tYfnJFhF4L8jITxu1tdTWRTZpdsWgEgjL6Q= -golang.org/x/term v0.19.0/go.mod h1:2CuTdWZ7KHSQwUzKva0cbMg6q2DMI3Mmxp+gKJbskEk= +golang.org/x/term v0.1.0/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= +golang.org/x/term v0.2.0/go.mod h1:TVmDHMZPmdnySmBfhjOoOdhjzdE1h4u1VwSiw2l1Nuc= +golang.org/x/term v0.3.0/go.mod h1:q750SLmJuPmVoN1blW3UFBPREJfb1KmY3vwxfr+nFDA= +golang.org/x/term v0.5.0/go.mod h1:jMB1sMXY+tzblOD4FWmEbocvup2/aLOaQEp7JmGp78k= +golang.org/x/term v0.8.0/go.mod h1:xPskH00ivmX89bAKVGSKKtLOWNx2+17Eiy94tnKShWo= +golang.org/x/term v0.13.0/go.mod h1:LTmsnFJwVN6bCy1rVCoS+qHT1HhALEFxKncY3WNNh4U= +golang.org/x/term v0.15.0/go.mod h1:BDl952bC7+uMoWR75FIrCDx79TPU9oHkTZ9yRbYOrX0= +golang.org/x/term v0.17.0/go.mod h1:lLRBjIVuehSbZlaOtGMbcMncT+aqLLLmKrsjNrUguwk= +golang.org/x/term v0.25.0 h1:WtHI/ltw4NvSUig5KARz9h521QvRC8RmF/cuYqifU24= +golang.org/x/term v0.25.0/go.mod h1:RPyXicDX+6vLxogjjRxjgD2TKtmAO6NZBsBRfrOLu7M= 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.1-0.20181227161524-e6919f6577db/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.4/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.5/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= -golang.org/x/text v0.14.0 h1:ScX5w1eTa3QqT8oi6+ziP7dTV1S2+ALU0bI+0zXKWiQ= +golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.5.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.9.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8= +golang.org/x/text v0.13.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE= golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= +golang.org/x/text v0.19.0 h1:kTxAhCbGbxhK0IwgSKiMO5awPoDQ0RpfiVYBfK860YM= +golang.org/x/text v0.19.0/go.mod h1:BuEKDfySbSR4drPmRPG/7iBdf8hvFMuRexcpahXilzY= 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= @@ -2355,14 +1959,13 @@ golang.org/x/time v0.0.0-20200630173020-3af7569d3a1e/go.mod h1:tRJNPiyCQ0inRvYxb golang.org/x/time v0.0.0-20201208040808-7e3f01d25324/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.5.0 h1:o7cqy6amK/52YcAKIPlM3a+Fpj35zvRj2TP+e1xFSfk= -golang.org/x/time v0.5.0/go.mod h1:3BpzKBy/shNhVucY/MWOyx10tF3SFh9QdLuxbVysPQM= +golang.org/x/time v0.3.0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= +golang.org/x/time v0.7.0 h1:ntUhktv3OPE6TgYxXWv9vKvUSJyIFJlyohwbkEwPrKQ= +golang.org/x/time v0.7.0/go.mod h1:3BpzKBy/shNhVucY/MWOyx10tF3SFh9QdLuxbVysPQM= golang.org/x/tools v0.0.0-20180525024113-a5b4c53f6e8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20180828015842-6cd1fcedba52/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-20181219222714-6e267b5cc78e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20181221001348-537d06c36207/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-20190125232054-d66bd3c5d5a6/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= @@ -2382,14 +1985,12 @@ golang.org/x/tools v0.0.0-20190617190820-da514acc4774/go.mod h1:/rFqwRUd4F7ZHNgw 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-20190718200317-82a3ea8a504c/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-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-20191029041327-9cc4af7d6b2c/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20191029190741-b9c20aec41a5/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= @@ -2430,19 +2031,24 @@ golang.org/x/tools v0.0.0-20201224043029-2b0845dc783e/go.mod h1:emZCQorbCU4vsT4f 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.10-0.20220218145154-897bd77cd717/go.mod h1:Uh6Zz+xoGYZom868N8YTex3t7RhtHDBrE8Gzo9bV56E= -golang.org/x/tools v0.17.0 h1:FvmRgNOcs3kOa+T20R1uhfP9F6HgG2mfxDv1vrx1Htc= -golang.org/x/tools v0.17.0/go.mod h1:xsh6VxdV005rRVaS6SSAf9oiAqljS7UZUacMZ8Bnsps= +golang.org/x/tools v0.1.10/go.mod h1:Uh6Zz+xoGYZom868N8YTex3t7RhtHDBrE8Gzo9bV56E= +golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc= +golang.org/x/tools v0.2.0/go.mod h1:y4OqIKeOV/fWJetJ8bXPU1sEVniLMIyDAZWeHdV+NTA= +golang.org/x/tools v0.6.0/go.mod h1:Xwgl3UAJ/d3gWutnCtw505GrjyAbvKui8lOU390QaIU= +golang.org/x/tools v0.26.0 h1:v/60pFQmzmT9ExmjDv2gGIfi3OqfKoEP6I5+umXlbnQ= +golang.org/x/tools v0.26.0/go.mod h1:TPVVj70c7JJ3WCazhD8OdXcZg/og+b9+tH/KxylGwH0= 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= +golang.org/x/xerrors v0.0.0-20220517211312-f3a8303e98df/go.mod h1:K8+ghG5WaK9qNqU5K3HdILfMLy1f3aNYFI/wnl100a8= gomodules.xyz/jsonpatch/v2 v2.0.1/go.mod h1:IhYNNY4jnS53ZnfE4PAmpKtDpTCj1JFXc+3mwe7XcUU= -gomodules.xyz/jsonpatch/v2 v2.2.0 h1:4pT439QV83L+G9FkcCriY6EkpcK6r6bK+A5FBUMI7qY= -gomodules.xyz/jsonpatch/v2 v2.2.0/go.mod h1:WXp+iVDkoLQqPudfQ9GBlwB2eZ5DKOnjQZCYdOS8GPY= gonum.org/v1/gonum v0.0.0-20180816165407-929014505bf4/go.mod h1:Y+Yx5eoAFn32cQvJDxZx5Dpnq+c3wtXuadVZAcxbbBo= gonum.org/v1/gonum v0.0.0-20181121035319-3f7ecaa7e8ca/go.mod h1:Y+Yx5eoAFn32cQvJDxZx5Dpnq+c3wtXuadVZAcxbbBo= gonum.org/v1/gonum v0.6.0/go.mod h1:9mxDZsDKxgMAuccQkewq682L+0eCu4dCN2yonUJTCLU= @@ -2451,13 +2057,8 @@ gonum.org/v1/gonum v0.8.2/go.mod h1:oe/vMfY3deqTw+1EZJhuvEW2iwGF1bW9wwu7XCu0+v0= gonum.org/v1/netlib v0.0.0-20181029234149-ec6d1f5cefe6/go.mod h1:wa6Ws7BG/ESfp6dHfk7C6KdzKA7wR7u/rKwOGE66zvw= gonum.org/v1/netlib v0.0.0-20190313105609-8cb42192e0e0/go.mod h1:wa6Ws7BG/ESfp6dHfk7C6KdzKA7wR7u/rKwOGE66zvw= gonum.org/v1/plot v0.0.0-20190515093506-e2840ee46a6b/go.mod h1:Wt8AAjI+ypCyYX3nZBvf6cAIx93T+c/OS2HFAYskSZc= -google.golang.org/api v0.0.0-20181220000619-583d854617af/go.mod h1:4mhQ8q/RsB7i+udVvVy5NUi08OU8ZlA0gRVgrF7VFY0= -google.golang.org/api v0.2.0/go.mod h1:IfRCZScioGtypHNTlz3gFk67J8uePVW7uDTBzXuIkhU= -google.golang.org/api v0.3.0/go.mod h1:IuvZyQh8jgscv8qWfQ4ABd8m7hEudgBFM/EdhA3BnXw= google.golang.org/api v0.3.1/go.mod h1:6wY9I6uQWHQ8EM57III9mq/AjF+i8G65rmVagqKMtkk= -google.golang.org/api v0.3.2/go.mod h1:6wY9I6uQWHQ8EM57III9mq/AjF+i8G65rmVagqKMtkk= google.golang.org/api v0.4.0/go.mod h1:8k5glujaEP+g9n7WNsDg8QP6cUVNI86fCNMcbazEtwE= -google.golang.org/api v0.5.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= @@ -2478,31 +2079,38 @@ google.golang.org/api v0.36.0/go.mod h1:+z5ficQTmoYpPn8LCUNVpK5I7hwkpjbcgqA7I34q 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.172.0 h1:/1OcMZGPmW1rX2LCu2CmGUD1KXK1+pfzxotxyRUCCdk= -google.golang.org/api v0.172.0/go.mod h1:+fJZq6QXWfa9pXhnIzsjx4yI22d4aI9ZpLb58gvXjis= +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.61.0/go.mod h1:xQRti5UdCmoCEqFxcz93fTl338AVqDgyaDRuOZ3hg9I= +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/api v0.78.0/go.mod h1:1Sg78yoMLOhlQTeF+ARBoytAcH1NNyyl390YMy6rKmw= +google.golang.org/api v0.83.0/go.mod h1:CNywQoj/AfhTw26ZWAa6LwOv+6WFxHmeLPZq2uncLZk= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.2.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= -google.golang.org/appengine v1.3.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= 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.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/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= -google.golang.org/genproto v0.0.0-20170818010345-ee236bd376b0/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= google.golang.org/genproto v0.0.0-20180518175338-11a468237815/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= google.golang.org/genproto v0.0.0-20180831171423-11092d34479b/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= -google.golang.org/genproto v0.0.0-20181219182458-5a97ab628bfb/go.mod h1:7Ep/1NZk928CDR8SjdVbjWNpdIf6nzjE3BTgJDr2Atg= google.golang.org/genproto v0.0.0-20190307195333-5fe7a883aa19/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= -google.golang.org/genproto v0.0.0-20190404172233-64821d5d2107/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-20190508193815-b515fa19cec8/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= -google.golang.org/genproto v0.0.0-20190513181449-d00d292a067c/go.mod h1:z3L6/3dTEVtUr6QSP8miRzeRqwQOioJ9I66odjN4I7s= google.golang.org/genproto v0.0.0-20190530194941-fb225487d101/go.mod h1:z3L6/3dTEVtUr6QSP8miRzeRqwQOioJ9I66odjN4I7s= google.golang.org/genproto v0.0.0-20190716160619-c506a9f90610/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= google.golang.org/genproto v0.0.0-20190801165951-fa694d86fc64/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= @@ -2546,19 +2154,47 @@ google.golang.org/genproto v0.0.0-20210303154014-9728d6b83eeb/go.mod h1:FWY/as6D 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-20220107163113-42d7afdf6368/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= +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-20211118181313-81c1377c94b1/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-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-20220429170224-98d788798c3e/go.mod h1:8w6bsBMX6yCPbAVTeqQHvzxW0EIFigd5lZyahWgyfDo= +google.golang.org/genproto v0.0.0-20220505152158-f39f71e6c8f3/go.mod h1:RAyBrSAP7Fh3Nc84ghnVLDPuV51xc9agzmm4Ph6i0Q4= +google.golang.org/genproto v0.0.0-20220602131408-e326c6e8e9c8/go.mod h1:yKyY4AMRwFiC8yMMNaMi+RkCnjZJt9LoWuvhXjMs+To= google.golang.org/genproto v0.0.0-20240227224415-6ceb2ff114de h1:F6qOa9AZTYJXOUEr4jDysRDLrm4PHePlge4v4TGAlxY= google.golang.org/genproto v0.0.0-20240227224415-6ceb2ff114de/go.mod h1:VUhTRKeHn9wwcdrk73nvdC9gF178Tzhmt/qyaFcPLSo= google.golang.org/genproto/googleapis/api v0.0.0-20240311132316-a219d84964c2 h1:rIo7ocm2roD9DcFIX67Ym8icoGCKSARAiPljFhh5suQ= google.golang.org/genproto/googleapis/api v0.0.0-20240311132316-a219d84964c2/go.mod h1:O1cOfN1Cy6QEYr7VxtjOyP5AdAuR0aJ/MYZaaof623Y= google.golang.org/genproto/googleapis/rpc v0.0.0-20240318140521-94a12d6c2237 h1:NnYq6UN9ReLM9/Y01KWNOWyI5xQ9kbIms5GGJVwS/Yc= google.golang.org/genproto/googleapis/rpc v0.0.0-20240318140521-94a12d6c2237/go.mod h1:WtryC6hu0hhx87FDGxWCDptyssuo68sk10vYjF+T9fY= -google.golang.org/grpc v1.8.0/go.mod h1:yo6s7OP7yaDglbqo1J04qKzAhqBH6lvTonzMVmEdcZw= google.golang.org/grpc v1.12.0/go.mod h1:yo6s7OP7yaDglbqo1J04qKzAhqBH6lvTonzMVmEdcZw= -google.golang.org/grpc v1.14.0/go.mod h1:yo6s7OP7yaDglbqo1J04qKzAhqBH6lvTonzMVmEdcZw= -google.golang.org/grpc v1.16.0/go.mod h1:0JHn/cJsOMiMfNA9+DeHDlAU7KAAB5GDlYFpa9MZMio= google.golang.org/grpc v1.17.0/go.mod h1:6QZJwpn2B+Zp71q/5VxRsJ6NXXVCE5NRUHRo+f3cWCs= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= google.golang.org/grpc v1.19.1/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= @@ -2566,7 +2202,6 @@ google.golang.org/grpc v1.20.0/go.mod h1:chYK+tFQF0nDUGJgXMSgLCQk3phJEuONr2DCgLD 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.22.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= google.golang.org/grpc v1.22.1/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= google.golang.org/grpc v1.23.1/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= @@ -2587,11 +2222,20 @@ google.golang.org/grpc v1.35.0/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAG 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.41.0/go.mod h1:U3l9uK9J0sini8mHphKoXyaqDA/8VyGnDee1zzIUK6k= +google.golang.org/grpc v1.40.1/go.mod h1:ogyxbiOoUXAkP+4+xa6PZSE9DZgIHtSpzjDTB9KAK34= +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/go.mod h1:vN9eftEi1UMyUsIF80+uQXhHjbXYbm0uXoFCACuMGWk= +google.golang.org/grpc v1.46.2/go.mod h1:vN9eftEi1UMyUsIF80+uQXhHjbXYbm0uXoFCACuMGWk= +google.golang.org/grpc v1.47.0/go.mod h1:vN9eftEi1UMyUsIF80+uQXhHjbXYbm0uXoFCACuMGWk= google.golang.org/grpc v1.63.2 h1:MUeiw1B2maTVZthpU5xvASfTh3LDbxHd6IJ6QQVU+xM= google.golang.org/grpc v1.63.2/go.mod h1:WAX/8DgncnokcFUldAxq7GeB5DXHDbMF+lLvDomNkRA= +google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.1.0/go.mod h1:6Kw0yEErY5E/yWrBtf03jp27GLLJujG4z/JK95pnjjw= 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= @@ -2606,10 +2250,10 @@ google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp0 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/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= -google.golang.org/protobuf v1.33.0 h1:uNO2rsAINq/JlFpSdYEKIZ0uKD/R9cpdv0T+yoGwGmI= -google.golang.org/protobuf v1.33.0/go.mod h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHhKbcUYpos= +google.golang.org/protobuf v1.28.1/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= +google.golang.org/protobuf v1.35.1 h1:m3LfL6/Ca+fqnjnlqQXNpFPABW1UD7mjh8KO2mKFytA= +google.golang.org/protobuf v1.35.1/go.mod h1:9fA7Ob0pmnwhb644+1+CVWFRbNajQ6iRojtC/QF5bRE= gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw= -gopkg.in/asn1-ber.v1 v1.0.0-20181015200546-f715ec2f112d/go.mod h1:cuepJuh7vyXfUyUwEgHQXw849cJrilpS5NeIjOWESAw= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= @@ -2619,34 +2263,24 @@ gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntN 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/evanphx/json-patch.v4 v4.12.0 h1:n6jtcsulIzXPJaxegRbvFNNrZDjbij7ny3gmSPG+6V4= +gopkg.in/evanphx/json-patch.v4 v4.12.0/go.mod h1:p8EYWUEYMpynmqDbY58zCKCFZw8pRWMG4EsWvDvM72M= gopkg.in/fsnotify.v1 v1.4.7/go.mod h1:Tz8NjZHkW78fSQdbUxIjBTcgA1z1m8ZHf0WmKUhAMys= gopkg.in/gcfg.v1 v1.2.3/go.mod h1:yesOnuUOFQAhST5vPY4nbZsb/huCgGGXlipJsBn0b3o= gopkg.in/h2non/gock.v1 v1.0.15/go.mod h1:sX4zAkdYX1TRGJ2JY156cFspQn4yRWn6p9EMdODlynE= -gopkg.in/inf.v0 v0.9.0/go.mod h1:cWUDdTG/fYaXco+Dcufb5Vnc6Gp2YChqWtbxRZE0mXw= 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.42.0/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k= gopkg.in/ini.v1 v1.51.0/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k= gopkg.in/ini.v1 v1.51.1/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k= -gopkg.in/ini.v1 v1.62.0/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k= gopkg.in/ini.v1 v1.67.0 h1:Dgnx+6+nfE+IfzjUEISNeydPJh9AXNNsWbGP9KzCsOA= gopkg.in/ini.v1 v1.67.0/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k= -gopkg.in/jcmturner/goidentity.v3 v3.0.0/go.mod h1:oG2kH0IvSYNIu80dVAyu/yoefjq1mNfM5bm88whjWx4= -gopkg.in/ldap.v3 v3.0.3/go.mod h1:oxD7NyBuxchC+SgJDE1Q5Od05eGt29SDQVBmV+HYbzw= gopkg.in/mgo.v2 v2.0.0-20180705113604-9856a29383ce/go.mod h1:yeKp02qBN3iKW1OzL3MGk2IdtZzaj7SFntXj72NppTA= gopkg.in/natefinch/lumberjack.v2 v2.0.0/go.mod h1:l0ndWWf7gzL7RNwBG7wST/UCcT4T24xpD6X8LsfU/+k= gopkg.in/natefinch/npipe.v2 v2.0.0-20160621034901-c1b8fa8bdcce/go.mod h1:5AcXVHNjg+BDxry382+8OKon8SEWiKktQR07RKPsv1c= gopkg.in/olebedev/go-duktape.v3 v3.0.0-20200619000410-60c24ae608a6/go.mod h1:uAJfkITjFhyEEuUfm7bsmCZRbW5WRq8s9EY8HZ6hCns= -gopkg.in/ory-am/dockertest.v3 v3.3.4/go.mod h1:s9mmoLkaGeAh97qygnNj4xWkiN7e1SKekYC6CovU+ek= -gopkg.in/resty.v1 v1.12.0 h1:CuXP0Pjfw9rOuY6EP+UvtNvt5DSqHpIxILZKT/quCZI= 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.0/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.4.1/go.mod h1:M9dMgbHiYLoDGQrXy7OpJDJWiKiU//h+vD76mk0e1AI= -gopkg.in/square/go-jose.v2 v2.5.1/go.mod h1:M9dMgbHiYLoDGQrXy7OpJDJWiKiU//h+vD76mk0e1AI= -gopkg.in/square/go-jose.v2 v2.6.0 h1:NGk74WTnPKBNUhNzQX7PYcTLUjoq7mzKk2OKbvwk2iI= -gopkg.in/square/go-jose.v2 v2.6.0/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/urfave/cli.v1 v1.20.0/go.mod h1:vuBzUtMdQeixQj8LVd+/98pzhxNGQoyuPBlsXHOQNO0= @@ -2671,11 +2305,9 @@ gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gotest.tools v2.2.0+incompatible h1:VsBPFP1AI068pPrMxtb/S8Zkgf9xEmTLJjfM+P5UIEo= 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= gotest.tools/v3 v3.4.0 h1:ZazjZUfuVeZGLAmlKKuyv3IKP5orXcwtOwDQH6YVr6o= gotest.tools/v3 v3.4.0/go.mod h1:CtbdzLSsqVhDgMtKsx03ird5YTGB3ar27v0u/yKBW5g= honnef.co/go/tools v0.0.0-20180728063816-88497007e858/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= -honnef.co/go/tools v0.0.0-20180920025451-e3ad64cb4ed3/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= 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= @@ -2685,7 +2317,6 @@ honnef.co/go/tools v0.0.1-2020.1.3/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9 honnef.co/go/tools v0.0.1-2020.1.4/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= honnef.co/go/tools v0.1.3/go.mod h1:NgwopIslSNH47DimFoV78dnkksY2EFtX0ajyb3K/las= k8s.io/api v0.0.0-20190409021203-6e4e0e4f393b/go.mod h1:iuAfoD4hCxJ8Onx9kaTIt30j7jUFS00AXQi6QMi99vA= -k8s.io/api v0.0.0-20190409092523-d687e77c8ae9/go.mod h1:FQEUn50aaytlU65qqBn/w+5ugllHwrBzKm7DzbnXdzE= k8s.io/api v0.18.3/go.mod h1:UOaMwERbqJMfeeeHc8XJKawj4P9TgDRnViIqqBeH2QA= k8s.io/api v0.19.0/go.mod h1:I1K45XlvTrDjmj5LoM5LuP/KYrhWbjUKT/SoPG0qTjw= k8s.io/api v0.19.2/go.mod h1:IQpK0zFQ1xc5iNIQPqzgoOwuFugaYHK4iCknlAQP9nI= @@ -2693,16 +2324,13 @@ k8s.io/api v0.20.0/go.mod h1:HyLC5l5eoS/ygQYl1BXBgFzWNlkHiAuyNAbevIn+FKg= 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.23.5/go.mod h1:Na4XuKng8PXJ2JsploYYrivXrINeTaycCGcYgF91Xm8= -k8s.io/api v0.24.2/go.mod h1:AHqbSkTm6YrQ0ObxjO3Pmp/ubFF/KuM7jU+3khoBsOg= -k8s.io/api v0.26.1 h1:f+SWYiPd/GsiWwVRz+NbFyCgvv75Pk9NK6dlkZgpCRQ= -k8s.io/api v0.26.1/go.mod h1:xd/GBNgR0f707+ATNyPmQ1oyKSgndzXij81FzWGsejg= +k8s.io/api v0.26.0/go.mod h1:k6HDTaIFC8yn1i6pSClSqIwLABIcLV9l5Q4EcngKnQg= +k8s.io/api v0.32.0 h1:OL9JpbvAU5ny9ga2fb24X8H6xQlVp+aJMFlgtQjR9CE= +k8s.io/api v0.32.0/go.mod h1:4LEwHZEf6Q/cG96F3dqR965sYOfmPM7rq81BLgsE0p0= k8s.io/apiextensions-apiserver v0.0.0-20190409022649-727a075fdec8/go.mod h1:IxkesAMoaCRoLrPJdZNZUQp9NfZnzqaVzLhb2VEQzXE= k8s.io/apiextensions-apiserver v0.18.3/go.mod h1:TMsNGs7DYpMXd+8MOCX8KzPOCx8fnZMoIGB24m03+JE= k8s.io/apiextensions-apiserver v0.20.1/go.mod h1:ntnrZV+6a3dB504qwC5PN/Yg9PBiDNt1EVqbW2kORVk= -k8s.io/apiextensions-apiserver v0.26.0 h1:Gy93Xo1eg2ZIkNX/8vy5xviVSxwQulsnUdQ00nEdpDo= -k8s.io/apiextensions-apiserver v0.26.0/go.mod h1:7ez0LTiyW5nq3vADtK6C3kMESxadD51Bh6uz3JOlqWQ= k8s.io/apimachinery v0.0.0-20190404173353-6a84e37a896d/go.mod h1:ccL7Eh7zubPUSh9A3USN90/OzHNSVN6zxzde07TDCL0= -k8s.io/apimachinery v0.0.0-20190409092423-760d1845f48b/go.mod h1:FW86P8YXVLsbuplGMZeb20J3jYHscrDqw4jELaFJvRU= k8s.io/apimachinery v0.18.3/go.mod h1:OaXp26zu/5J7p0f92ASynJa1pZo06YlV9fG7BoWbCko= k8s.io/apimachinery v0.19.0/go.mod h1:DnPGDnARWFvYa3pMHgSxtbZb7gpzzAZ1pTfaUNDVlmA= k8s.io/apimachinery v0.19.2/go.mod h1:DnPGDnARWFvYa3pMHgSxtbZb7gpzzAZ1pTfaUNDVlmA= @@ -2710,12 +2338,13 @@ k8s.io/apimachinery v0.20.0/go.mod h1:WlLqWAHZGg07AeltaI0MV5uk1Omp8xaN0JGLY6gkRp k8s.io/apimachinery v0.20.1/go.mod h1:WlLqWAHZGg07AeltaI0MV5uk1Omp8xaN0JGLY6gkRpU= k8s.io/apimachinery v0.20.4/go.mod h1:WlLqWAHZGg07AeltaI0MV5uk1Omp8xaN0JGLY6gkRpU= k8s.io/apimachinery v0.23.5/go.mod h1:BEuFMMBaIbcOqVIJqNZJXGFTP4W6AycEpb5+m/97hrM= -k8s.io/apimachinery v0.24.2/go.mod h1:82Bi4sCzVBdpYjyI4jY6aHX+YCUchUIrZrXKedjd2UM= -k8s.io/apimachinery v0.26.1 h1:8EZ/eGJL+hY/MYCNwhmDzVqq2lPl3N3Bo8rvweJwXUQ= -k8s.io/apimachinery v0.26.1/go.mod h1:tnPmbONNJ7ByJNz9+n9kMjNP8ON+1qoAIIC70lztu74= +k8s.io/apimachinery v0.26.0/go.mod h1:tnPmbONNJ7ByJNz9+n9kMjNP8ON+1qoAIIC70lztu74= +k8s.io/apimachinery v0.32.0 h1:cFSE7N3rmEEtv4ei5X6DaJPHHX0C+upp+v5lVPiEwpg= +k8s.io/apimachinery v0.32.0/go.mod h1:GpHVgxoKlTxClKcteaeuF1Ul/lDVb74KpZcxcmLDElE= k8s.io/apiserver v0.18.3/go.mod h1:tHQRmthRPLUtwqsOnJJMoI8SW3lnoReZeE861lH8vUw= k8s.io/apiserver v0.20.1/go.mod h1:ro5QHeQkgMS7ZGpvf4tSMx6bBOgPfE+f52KwvXfScaU= -k8s.io/cli-runtime v0.24.2/go.mod h1:1LIhKL2RblkhfG4v5lZEt7FtgFG5mVb8wqv5lE9m5qY= +k8s.io/cli-runtime v0.32.0 h1:dP+OZqs7zHPpGQMCGAhectbHU2SNCuZtIimRKTv2T1c= +k8s.io/cli-runtime v0.32.0/go.mod h1:Mai8ht2+esoDRK5hr861KRy6z0zHsSTYttNVJXgP3YQ= k8s.io/client-go v0.18.3/go.mod h1:4a/dpQEvzAhT1BbuWW09qvIaGw6Gbu1gZYiQZIi1DMw= k8s.io/client-go v0.19.0/go.mod h1:H9E/VT95blcFQnlyShFgnFT9ZnJOAceiUHM3MlRC+mU= k8s.io/client-go v0.19.2/go.mod h1:S5wPhCqyDNAlzM9CnEdgTGV4OqhsW3jGO1UM1epwfJA= @@ -2723,33 +2352,25 @@ k8s.io/client-go v0.20.0/go.mod h1:4KWh/g+Ocd8KkCwKF8vUNnmqgv+EVnQDK4MBF4oB5tY= 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.23.5/go.mod h1:flkeinTO1CirYgzMPRWxUCnV0G4Fbu2vLhYCObnt/r4= -k8s.io/client-go v0.24.2/go.mod h1:zg4Xaoo+umDsfCWr4fCnmLEtQXyCNXCvJuSsglNcV30= -k8s.io/client-go v0.26.1 h1:87CXzYJnAMGaa/IDDfRdhTzxk/wzGZ+/HUQpqgVSZXU= -k8s.io/client-go v0.26.1/go.mod h1:IWNSglg+rQ3OcvDkhY6+QLeasV4OYHDjdqeWkDQZwGE= +k8s.io/client-go v0.32.0 h1:DimtMcnN/JIKZcrSrstiwvvZvLjG0aSxy8PxN8IChp8= +k8s.io/client-go v0.32.0/go.mod h1:boDWvdM1Drk4NJj/VddSLnx59X3OPgwrOo0vGbtq9+8= k8s.io/code-generator v0.18.3/go.mod h1:TgNEVx9hCyPGpdtCWA34olQYLkh3ok9ar7XfSsr8b6c= k8s.io/code-generator v0.19.0/go.mod h1:moqLn7w0t9cMs4+5CQyxnfA/HV8MF6aAVENF+WZZhgk= k8s.io/code-generator v0.20.0/go.mod h1:UsqdF+VX4PU2g46NC2JRs4gc+IfrctnwHb76RNbWHJg= k8s.io/code-generator v0.20.1/go.mod h1:UsqdF+VX4PU2g46NC2JRs4gc+IfrctnwHb76RNbWHJg= -k8s.io/code-generator v0.24.2/go.mod h1:dpVhs00hTuTdTY6jvVxvTFCk6gSMrtfRydbhZwHI15w= -k8s.io/code-generator v0.26.1 h1:dusFDsnNSKlMFYhzIM0jAO1OlnTN5WYwQQ+Ai12IIlo= -k8s.io/code-generator v0.26.1/go.mod h1:OMoJ5Dqx1wgaQzKgc+ZWaZPfGjdRq/Y3WubFrZmeI3I= +k8s.io/code-generator v0.32.0 h1:s0lNN8VSWny8LBz5t5iy7MCdgwdOhdg7vAGVxvS+VWU= +k8s.io/code-generator v0.32.0/go.mod h1:b7Q7KMZkvsYFy72A79QYjiv4aTz3GvW0f1T3UfhFq4s= k8s.io/component-base v0.18.3/go.mod h1:bp5GzGR0aGkYEfTj+eTY0AN/vXTgkJdQXjNTTVUaa3k= k8s.io/component-base v0.20.1/go.mod h1:guxkoJnNoh8LNrbtiQOlyp2Y2XFCZQmrcg2n/DeYNLk= -k8s.io/component-base v0.24.2/go.mod h1:ucHwW76dajvQ9B7+zecZAP3BVqvrHoOxm8olHEg0nmM= -k8s.io/component-base v0.26.1 h1:4ahudpeQXHZL5kko+iDHqLj/FSGAEUnSVO0EBbgDd+4= -k8s.io/component-base v0.26.1/go.mod h1:VHrLR0b58oC035w6YQiBSbtsf0ThuSwXP+p5dD/kAWU= -k8s.io/component-helpers v0.24.2/go.mod h1:TRQPBQKfmqkmV6c0HAmUs8cXVNYYYLsXy4zu8eODi9g= 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-20210813121822-485abfe95c7c/go.mod h1:FiNAH4ZV3gBg2Kwh89tzAEV2be7d5xI0vBa/VySYy3E= -k8s.io/gengo v0.0.0-20211129171323-c02415ce4185/go.mod h1:FiNAH4ZV3gBg2Kwh89tzAEV2be7d5xI0vBa/VySYy3E= -k8s.io/gengo v0.0.0-20220902162205-c0856e24416d h1:U9tB195lKdzwqicbJvyJeOXV7Klv+wNAWENRnXEGi08= -k8s.io/gengo v0.0.0-20220902162205-c0856e24416d/go.mod h1:FiNAH4ZV3gBg2Kwh89tzAEV2be7d5xI0vBa/VySYy3E= +k8s.io/gengo/v2 v2.0.0-20240911193312-2b36238f13e9 h1:si3PfKm8dDYxgfbeA6orqrtLkvvIeH8UqffFJDl0bz4= +k8s.io/gengo/v2 v2.0.0-20240911193312-2b36238f13e9/go.mod h1:EJykeLsmFC60UQbYJezXkEsG2FLrt0GPNkU5iK5GWxU= k8s.io/klog v0.0.0-20181102134211-b9b56d5dfc92/go.mod h1:Gq+BEi5rUBO/HRz0bTSXDUcqjScdoY3a9IHpCEIOOfk= -k8s.io/klog v0.0.0-20190306015804-8e90cee79f82/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= @@ -2757,31 +2378,29 @@ 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.30.0/go.mod h1:y1WjHnz7Dj687irZUWR/WLkLc5N1YHtjLdmgWjndZn0= k8s.io/klog/v2 v2.60.1/go.mod h1:y1WjHnz7Dj687irZUWR/WLkLc5N1YHtjLdmgWjndZn0= -k8s.io/klog/v2 v2.80.1 h1:atnLQ121W371wYYFawwYx1aEY2eUfs4l3J72wtgAwV4= k8s.io/klog/v2 v2.80.1/go.mod h1:y1WjHnz7Dj687irZUWR/WLkLc5N1YHtjLdmgWjndZn0= +k8s.io/klog/v2 v2.130.1 h1:n9Xl7H1Xvksem4KFG4PYbdQCQxqc/tTUyrgXaOhHSzk= +k8s.io/klog/v2 v2.130.1/go.mod h1:3Jpz1GvMt720eyJH1ckRHK1EDfpxISzJ7I9OYgaDtPE= k8s.io/kube-openapi v0.0.0-20180731170545-e3762e86a74c/go.mod h1:BXM9ceUBTj2QnfH2MK1odQs778ajze1RxcmP6S8RVVc= -k8s.io/kube-openapi v0.0.0-20190228160746-b3a7cee44a30/go.mod h1:BXM9ceUBTj2QnfH2MK1odQs778ajze1RxcmP6S8RVVc= 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-20210421082810-95288971da7e/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-20221110221610-a28e98eb7c70 h1:zfqQc1V6/ZgGpvrOVvr62OjiqQX4lZjfznK34NQwkqw= -k8s.io/kube-openapi v0.0.0-20221110221610-a28e98eb7c70/go.mod h1:+Axhij7bCpeqhklhUTe3xmOn6bWxolyZEeyaFpjGtl4= -k8s.io/kubectl v0.24.2 h1:+RfQVhth8akUmIc2Ge8krMl/pt66V7210ka3RE/p0J4= -k8s.io/kubectl v0.24.2/go.mod h1:+HIFJc0bA6Tzu5O/YcuUt45APAxnNL8LeMuXwoiGsPg= -k8s.io/metrics v0.24.2/go.mod h1:5NWURxZ6Lz5gj8TFU83+vdWIVASx7W8lwPpHYCqopMo= +k8s.io/kube-openapi v0.0.0-20221012153701-172d655c2280/go.mod h1:+Axhij7bCpeqhklhUTe3xmOn6bWxolyZEeyaFpjGtl4= +k8s.io/kube-openapi v0.0.0-20241105132330-32ad38e42d3f h1:GA7//TjRY9yWGy1poLzYYJJ4JRdzg3+O6e8I+e+8T5Y= +k8s.io/kube-openapi v0.0.0-20241105132330-32ad38e42d3f/go.mod h1:R/HEjbvWI0qdfb8viZUeVZm0X6IZnxAydC7YU42CMw4= +k8s.io/kubectl v0.32.0 h1:rpxl+ng9qeG79YA4Em9tLSfX0G8W0vfaiPVrc/WR7Xw= +k8s.io/kubectl v0.32.0/go.mod h1:qIjSX+QgPQUgdy8ps6eKsYNF+YmFOAO3WygfucIqFiE= k8s.io/utils v0.0.0-20190506122338-8fab8cb257d5/go.mod h1:sZAwmy6armz5eXlNoLmJcl4F1QuKu7sr+mFQ0byX7Ew= k8s.io/utils v0.0.0-20200324210504-a9aa75ae1b89/go.mod h1:sZAwmy6armz5eXlNoLmJcl4F1QuKu7sr+mFQ0byX7Ew= k8s.io/utils v0.0.0-20200729134348-d5654de09c73/go.mod h1:jPW/WVKK9YHAvNhRxK0md/EJ228hCsBRufyofKtW8HA= k8s.io/utils v0.0.0-20201110183641-67b214c5f920/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-20211116205334-6203023598ed/go.mod h1:jPW/WVKK9YHAvNhRxK0md/EJ228hCsBRufyofKtW8HA= -k8s.io/utils v0.0.0-20220210201930-3a6ce19ff2f9/go.mod h1:jPW/WVKK9YHAvNhRxK0md/EJ228hCsBRufyofKtW8HA= -k8s.io/utils v0.0.0-20221128185143-99ec85e7a448 h1:KTgPnR10d5zhztWptI952TNtt/4u5h3IzDXkdIMuo2Y= +k8s.io/utils v0.0.0-20221107191617-1a15be271d1d/go.mod h1:OLgZIPagt7ERELqWJFomSt595RzquPNLL48iOWgYOg0= k8s.io/utils v0.0.0-20221128185143-99ec85e7a448/go.mod h1:OLgZIPagt7ERELqWJFomSt595RzquPNLL48iOWgYOg0= -layeh.com/radius v0.0.0-20190322222518-890bc1058917/go.mod h1:fywZKyu//X7iRzaxLgPWsvc0L26IUpVvE/aeIL2JtIQ= +k8s.io/utils v0.0.0-20241104100929-3ea5e8cea738 h1:M3sRQVHv7vB20Xc2ybTt7ODCeFj6JSWYFzOFnYeS6Ro= +k8s.io/utils v0.0.0-20241104100929-3ea5e8cea738/go.mod h1:OLgZIPagt7ERELqWJFomSt595RzquPNLL48iOWgYOg0= nhooyr.io/websocket v1.8.6 h1:s+C3xAMLwGmlI31Nyn/eAehUlZPwfYZu2JXM621Q5/k= nhooyr.io/websocket v1.8.6/go.mod h1:B70DZP8IakI65RVQ51MsWP/8jndNma26DVA/nFSCgW0= pgregory.net/rapid v0.5.3 h1:163N50IHFqr1phZens4FQOdPgfJscR7a562mjQqeo4M= @@ -2794,28 +2413,24 @@ rsc.io/tmplfunc v0.0.3/go.mod h1:AG3sTPzElb1Io3Yg4voV9AGZJuleGAwaVRxL9M49PhA= sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.0.7/go.mod h1:PHgbrJT7lCHcxMU+mDHEm+nx46H4zuuHZkDP6icnhu0= sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.0.14/go.mod h1:LEScyzhFmoF5pso/YSeBstl57mOzx9xlU9n85RGrDQg= sigs.k8s.io/controller-runtime v0.2.2/go.mod h1:9dyohw3ZtoXQuV1e766PHUn+cmrRCIcBh6XIMFNMZ+I= -sigs.k8s.io/controller-runtime v0.14.1 h1:vThDes9pzg0Y+UbCPY3Wj34CGIYPgdmspPm2GIpxpzM= -sigs.k8s.io/controller-runtime v0.14.1/go.mod h1:GaRkrY8a7UZF0kqFFbUKG7n9ICiTY5T55P1RiE3UZlU= sigs.k8s.io/json v0.0.0-20211020170558-c049b76a60c6/go.mod h1:p4QtZmO4uMYipTQNzagwnNoseA6OxSUutVw05NhYDRs= -sigs.k8s.io/json v0.0.0-20211208200746-9f7c6b3444d2/go.mod h1:B+TnT182UBxE84DiCz4CVE26eOSDAeYCpfDnC2kdKMY= -sigs.k8s.io/json v0.0.0-20220713155537-f223a00ba0e2 h1:iXTIw73aPyC+oRdyqqvVJuloN1p0AC/kzH07hu3NE+k= sigs.k8s.io/json v0.0.0-20220713155537-f223a00ba0e2/go.mod h1:B8JuhiUyNFVKdsE8h686QcCxMaH6HrOAZj4vswFpcB0= +sigs.k8s.io/json v0.0.0-20241010143419-9aa6b5e7a4b3 h1:/Rv+M11QRah1itp8VhT6HoVx1Ray9eB4DBr+K+/sCJ8= +sigs.k8s.io/json v0.0.0-20241010143419-9aa6b5e7a4b3/go.mod h1:18nIHnGi6636UCz6m8i4DhaJ65T6EruyzmoQqI2BVDo= sigs.k8s.io/kind v0.20.0 h1:f0sc3v9mQbGnjBUaqSFST1dwIuiikKVGgoTwpoP33a8= sigs.k8s.io/kind v0.20.0/go.mod h1:aBlbxg08cauDgZ612shr017/rZwqd7AS563FvpWKPVs= -sigs.k8s.io/kustomize/api v0.11.4/go.mod h1:k+8RsqYbgpkIrJ4p9jcdPqe8DprLxFUUO0yNOq8C+xI= -sigs.k8s.io/kustomize/cmd/config v0.10.6/go.mod h1:/S4A4nUANUa4bZJ/Edt7ZQTyKOY9WCER0uBS1SW2Rco= -sigs.k8s.io/kustomize/kustomize/v4 v4.5.4/go.mod h1:Zo/Xc5FKD6sHl0lilbrieeGeZHVYCA4BzxeAaLI05Bg= -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.2.1/go.mod h1:j/nl6xW8vLS49O8YvXW1ocPhZawJtm+Yrr7PPRQ0Vg4= -sigs.k8s.io/structured-merge-diff/v4 v4.2.3 h1:PRbqxJClWWYMNV1dhaG4NsibJbArud9kFxnAMREiWFE= sigs.k8s.io/structured-merge-diff/v4 v4.2.3/go.mod h1:qjx8mGObPmV2aSZepjQjbmb2ihdVs8cGKBraizNC69E= +sigs.k8s.io/structured-merge-diff/v4 v4.4.2 h1:MdmvkGuXi/8io6ixD5wud3vOLwc1rj0aNqRlpuvjmwA= +sigs.k8s.io/structured-merge-diff/v4 v4.4.2/go.mod h1:N8f93tFZh9U6vpxwRArLiikrE5/2tiu1w1AGfACIGE4= sigs.k8s.io/testing_frameworks v0.1.1/go.mod h1:VVBKrHmJ6Ekkfz284YKhQePcdycOzNH9qL6ht1zEr/U= 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= +sigs.k8s.io/yaml v1.4.0 h1:Mk1wCc2gy/F0THH0TAp1QYyJNzRm2KCLy3o5ASXVI5E= +sigs.k8s.io/yaml v1.4.0/go.mod h1:Ejl7/uTz7PSA4eKMyQCUTnhZYNmLIl+5c2lQPGR2BPY= sourcegraph.com/sourcegraph/appdash v0.0.0-20190731080439-ebfcffb1b5c0/go.mod h1:hI742Nqp5OhwiqlzhgfbWU4mW4yO10fP+LoT9WOswdU= diff --git a/make/codegen.mk b/make/codegen.mk index c84034415..421fb85eb 100644 --- a/make/codegen.mk +++ b/make/codegen.mk @@ -4,11 +4,7 @@ generate: $(MOCKERY) .PHONY: kubetypes kubetypes: $(K8S_KUBE_CODEGEN) - rm -rf pkg/client/* - GOBIN=$(AP_DEVCACHE_BIN) $(K8S_KUBE_CODEGEN) all \ - github.com/akash-network/provider/pkg/client github.com/akash-network/provider/pkg/apis \ - "akash.network:v2beta1,v2beta2" \ - --go-header-file "pkg/apis/boilerplate.go.txt" + ./script/tools.sh k8s-gen .PHONY: codegen codegen: generate kubetypes diff --git a/make/init.mk b/make/init.mk index 99eaa6b32..e523042ae 100644 --- a/make/init.mk +++ b/make/init.mk @@ -92,7 +92,7 @@ STATIK_VERSION ?= v0.1.7 GIT_CHGLOG_VERSION ?= v0.15.1 MOCKERY_PACKAGE_NAME := github.com/vektra/mockery/v2 MOCKERY_VERSION ?= $(shell $(GO) list -mod=readonly -m -f '{{ .Version }}' $(MOCKERY_PACKAGE_NAME)) -K8S_CODE_GEN_VERSION ?= $(shell $(GO) list -mod=readonly -m -f '{{ .Version }}' k8s.io/code-generator) +K8S_CODEGEN_VERSION ?= $(shell $(GO) list -mod=readonly -m -f '{{ .Version }}' k8s.io/code-generator) AKASHD_BUILD_FROM_SRC := false ifeq (false,$(AKASHD_SRC_IS_LOCAL)) @@ -122,7 +122,7 @@ endif STATIK_VERSION_FILE := $(AP_DEVCACHE_VERSIONS)/statik/$(STATIK_VERSION) GIT_CHGLOG_VERSION_FILE := $(AP_DEVCACHE_VERSIONS)/git-chglog/$(GIT_CHGLOG_VERSION) MOCKERY_VERSION_FILE := $(AP_DEVCACHE_VERSIONS)/mockery/v$(MOCKERY_VERSION) -K8S_CODE_GEN_VERSION_FILE := $(AP_DEVCACHE_VERSIONS)/k8s-codegen/$(K8S_CODE_GEN_VERSION) +K8S_CODEGEN_VERSION_FILE := $(AP_DEVCACHE_VERSIONS)/k8s-codegen/$(K8S_CODEGEN_VERSION) GOLANGCI_LINT_VERSION_FILE := $(AP_DEVCACHE_VERSIONS)/golangci-lint/$(GOLANGCI_LINT_VERSION) AKASHD_VERSION_FILE := $(AP_DEVCACHE_VERSIONS)/akash/$(AKASHD_VERSION) KIND_VERSION_FILE := $(AP_DEVCACHE_VERSIONS)/kind/$(KIND_VERSION) @@ -130,7 +130,7 @@ KIND_VERSION_FILE := $(AP_DEVCACHE_VERSIONS)/kind/$(KIND_VERSION) STATIK := $(AP_DEVCACHE_BIN)/statik GIT_CHGLOG := $(AP_DEVCACHE_BIN)/git-chglog MOCKERY := $(AP_DEVCACHE_BIN)/mockery -K8S_KUBE_CODEGEN_FILE := generate-groups.sh +K8S_KUBE_CODEGEN_FILE := kube_codegen.sh K8S_KUBE_CODEGEN := $(AP_DEVCACHE_BIN)/$(K8S_KUBE_CODEGEN_FILE) K8S_GO_TO_PROTOBUF := $(AP_DEVCACHE_BIN)/go-to-protobuf GOLANGCI_LINT := $(AP_DEVCACHE_BIN)/golangci-lint diff --git a/make/setup-cache.mk b/make/setup-cache.mk index 6697b6057..1de5adae3 100644 --- a/make/setup-cache.mk +++ b/make/setup-cache.mk @@ -85,17 +85,17 @@ $(GOLANGCI_LINT_VERSION_FILE): $(AP_DEVCACHE) touch $@ $(GOLANGCI_LINT): $(GOLANGCI_LINT_VERSION_FILE) -$(K8S_CODE_GEN_VERSION_FILE): $(AP_DEVCACHE) - @echo "installing k8s code-generator $(K8S_CODE_GEN_VERSION) ..." +$(K8S_CODEGEN_VERSION_FILE): $(AP_DEVCACHE) + @echo "installing k8s code-generator $(K8S_CODEGEN_VERSION) ..." rm -f $(K8S_GO_TO_PROTOBUF) GOBIN=$(AP_DEVCACHE_BIN) go install k8s.io/code-generator/... - wget -q https://raw.githubusercontent.com/kubernetes/code-generator/$(K8S_CODE_GEN_VERSION)/$(K8S_KUBE_CODEGEN_FILE) -O $(K8S_KUBE_CODEGEN) + wget -q https://raw.githubusercontent.com/kubernetes/code-generator/$(K8S_CODEGEN_VERSION)/$(K8S_KUBE_CODEGEN_FILE) -O $(K8S_KUBE_CODEGEN) rm -rf "$(dir $@)" mkdir -p "$(dir $@)" touch $@ chmod +x $(K8S_KUBE_CODEGEN) -$(K8S_GO_TO_PROTOBUF): $(K8S_CODE_GEN_VERSION_FILE) -$(K8S_KUBE_CODEGEN): $(K8S_CODE_GEN_VERSION_FILE) +$(K8S_KUBE_CODEGEN): $(K8S_CODEGEN_VERSION_FILE) +$(K8S_GO_TO_PROTOBUF): $(K8S_CODEGEN_VERSION_FILE) ifeq (false, $(_SYSTEM_KIND)) $(KIND_VERSION_FILE): $(AP_DEVCACHE) diff --git a/manifest/manager.go b/manifest/manager.go index 3f8b9a6d7..b3f189ccd 100644 --- a/manifest/manager.go +++ b/manifest/manager.go @@ -269,7 +269,6 @@ func (m *manager) doFetchData(ctx context.Context) (manifestManagerFetchDataResu }, Pagination: nil, }) - if err != nil { return manifestManagerFetchDataResult{}, err } @@ -381,7 +380,7 @@ func (m *manager) validateRequests() { default: } if err := m.validateRequest(req); err != nil { - m.log.Error("invalid manifest: %s", err.Error()) + m.log.Error("invalid manifest", "error", err.Error()) req.ch <- err continue } @@ -408,6 +407,11 @@ func (m *manager) validateRequest(req manifestRequest) error { default: } + err := req.value.Manifest.Validate() + if err != nil { + return err + } + // ensure that an uploaded manifest matches the hash declared on // the Akash Deployment.Version version, err := req.value.Manifest.Version() diff --git a/operator/inventory/cmd.go b/operator/inventory/cmd.go index 9be16f4d2..c99528562 100644 --- a/operator/inventory/cmd.go +++ b/operator/inventory/cmd.go @@ -11,6 +11,7 @@ import ( "io" "net" "net/http" + "net/http/pprof" "strings" "time" @@ -541,6 +542,13 @@ func newServiceRouter(apiTimeout, queryTimeout time.Duration) *serviceRouter { metricsRouter.HandleFunc("/health", rt.healthHandler).GetHandler() metricsRouter.HandleFunc("/ready", rt.readyHandler) + debugRouter := mRouter.PathPrefix("/debug").Subrouter() + debugRouter.HandleFunc("/pprof/", pprof.Index) + debugRouter.HandleFunc("/pprof/cmdline", pprof.Cmdline) + debugRouter.HandleFunc("/pprof/profile", pprof.Profile) + debugRouter.HandleFunc("/pprof/symbol", pprof.Symbol) + debugRouter.HandleFunc("/pprof/trace", pprof.Trace) + return rt } diff --git a/operator/inventory/types.go b/operator/inventory/types.go index 5c23f1ab5..862b05602 100644 --- a/operator/inventory/types.go +++ b/operator/inventory/types.go @@ -20,18 +20,17 @@ import ( ) const ( - FlagAPITimeout = "api-timeout" - FlagQueryTimeout = "query-timeout" - FlagRESTPort = "rest-port" - FlagGRPCPort = "grpc-port" - FlagPodName = "pod-name" - FlagPodNamespace = "pod-namespace" - FlagConfig = "config" - FlagProviderConfigsURL = "provider-configs-url" - FlagPciDbURL = "provider-pcidb-url" - FlagRegistryQueryPeriod = "registry-query-period" - FlagDiscoveryImage = "discovery-image" - + FlagAPITimeout = "api-timeout" + FlagQueryTimeout = "query-timeout" + FlagRESTPort = "rest-port" + FlagGRPCPort = "grpc-port" + FlagPodName = "pod-name" + FlagPodNamespace = "pod-namespace" + FlagConfig = "config" + FlagProviderConfigsURL = "provider-configs-url" + FlagPciDbURL = "provider-pcidb-url" + FlagRegistryQueryPeriod = "registry-query-period" + FlagDiscoveryImage = "discovery-image" defaultProviderConfigsURL = "https://provider-configs.akash.network" ) diff --git a/pkg/client/clientset/versioned/doc.go b/pkg/apis/akash.network/v2beta1/zz_generated.defaults.go similarity index 56% rename from pkg/client/clientset/versioned/doc.go rename to pkg/apis/akash.network/v2beta1/zz_generated.defaults.go index 31d27fa9f..8f3731bb3 100644 --- a/pkg/client/clientset/versioned/doc.go +++ b/pkg/apis/akash.network/v2beta1/zz_generated.defaults.go @@ -1,3 +1,6 @@ +//go:build !ignore_autogenerated +// +build !ignore_autogenerated + /* Copyright The Akash Network Authors. @@ -14,7 +17,17 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by client-gen. DO NOT EDIT. +// Code generated by defaulter-gen. DO NOT EDIT. + +package v2beta1 + +import ( + runtime "k8s.io/apimachinery/pkg/runtime" +) -// This package has the automatically generated clientset. -package versioned +// RegisterDefaults adds defaulters functions to the given scheme. +// Public to allow building arbitrary schemes. +// All generated defaulters are covering - they call all nested defaulters. +func RegisterDefaults(scheme *runtime.Scheme) error { + return nil +} diff --git a/pkg/apis/akash.network/v2beta2/manifest.go b/pkg/apis/akash.network/v2beta2/manifest.go index 059ab56f2..64dbbf4b1 100644 --- a/pkg/apis/akash.network/v2beta2/manifest.go +++ b/pkg/apis/akash.network/v2beta2/manifest.go @@ -182,6 +182,7 @@ func (m *Manifest) Deployment() (ctypes.IDeployment, error) { cparams: ClusterSettings{ SchedulerParams: schedulerParams, }, + resourceVersion: m.ResourceVersion, }, nil } diff --git a/pkg/apis/akash.network/v2beta2/types.go b/pkg/apis/akash.network/v2beta2/types.go index 7ddfeb2aa..a49b108fb 100644 --- a/pkg/apis/akash.network/v2beta2/types.go +++ b/pkg/apis/akash.network/v2beta2/types.go @@ -23,9 +23,10 @@ type Status struct { } type deployment struct { - lid mtypes.LeaseID - group mani.Group - cparams interface{} + lid mtypes.LeaseID + group mani.Group + cparams interface{} + resourceVersion string } func (d deployment) LeaseID() mtypes.LeaseID { @@ -40,6 +41,10 @@ func (d deployment) ClusterParams() interface{} { return d.cparams } +func (d deployment) ResourceVersion() string { + return d.resourceVersion +} + // LeaseID stores deployment, group sequence, order, provider and metadata type LeaseID struct { Owner string `json:"owner"` diff --git a/pkg/apis/akash.network/v2beta2/zz_generated.defaults.go b/pkg/apis/akash.network/v2beta2/zz_generated.defaults.go new file mode 100644 index 000000000..f10088ad4 --- /dev/null +++ b/pkg/apis/akash.network/v2beta2/zz_generated.defaults.go @@ -0,0 +1,33 @@ +//go:build !ignore_autogenerated +// +build !ignore_autogenerated + +/* +Copyright The Akash Network Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by defaulter-gen. DO NOT EDIT. + +package v2beta2 + +import ( + runtime "k8s.io/apimachinery/pkg/runtime" +) + +// RegisterDefaults adds defaulters functions to the given scheme. +// Public to allow building arbitrary schemes. +// All generated defaulters are covering - they call all nested defaulters. +func RegisterDefaults(scheme *runtime.Scheme) error { + return nil +} diff --git a/pkg/client/applyconfiguration/akash.network/v2beta1/inventory.go b/pkg/client/applyconfiguration/akash.network/v2beta1/inventory.go new file mode 100644 index 000000000..cf4f724a8 --- /dev/null +++ b/pkg/client/applyconfiguration/akash.network/v2beta1/inventory.go @@ -0,0 +1,224 @@ +/* +Copyright The Akash Network Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by applyconfiguration-gen. DO NOT EDIT. + +package v2beta1 + +import ( + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + types "k8s.io/apimachinery/pkg/types" + v1 "k8s.io/client-go/applyconfigurations/meta/v1" +) + +// InventoryApplyConfiguration represents a declarative configuration of the Inventory type for use +// with apply. +type InventoryApplyConfiguration struct { + v1.TypeMetaApplyConfiguration `json:",inline"` + *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` + Spec *InventorySpecApplyConfiguration `json:"spec,omitempty"` + Status *InventoryStatusApplyConfiguration `json:"status,omitempty"` +} + +// Inventory constructs a declarative configuration of the Inventory type for use with +// apply. +func Inventory(name string) *InventoryApplyConfiguration { + b := &InventoryApplyConfiguration{} + b.WithName(name) + b.WithKind("Inventory") + b.WithAPIVersion("akash.network/v2beta1") + return b +} + +// WithKind sets the Kind field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Kind field is set to the value of the last call. +func (b *InventoryApplyConfiguration) WithKind(value string) *InventoryApplyConfiguration { + b.TypeMetaApplyConfiguration.Kind = &value + return b +} + +// WithAPIVersion sets the APIVersion field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the APIVersion field is set to the value of the last call. +func (b *InventoryApplyConfiguration) WithAPIVersion(value string) *InventoryApplyConfiguration { + b.TypeMetaApplyConfiguration.APIVersion = &value + return b +} + +// WithName sets the Name field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Name field is set to the value of the last call. +func (b *InventoryApplyConfiguration) WithName(value string) *InventoryApplyConfiguration { + b.ensureObjectMetaApplyConfigurationExists() + b.ObjectMetaApplyConfiguration.Name = &value + return b +} + +// WithGenerateName sets the GenerateName field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the GenerateName field is set to the value of the last call. +func (b *InventoryApplyConfiguration) WithGenerateName(value string) *InventoryApplyConfiguration { + b.ensureObjectMetaApplyConfigurationExists() + b.ObjectMetaApplyConfiguration.GenerateName = &value + return b +} + +// WithNamespace sets the Namespace field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Namespace field is set to the value of the last call. +func (b *InventoryApplyConfiguration) WithNamespace(value string) *InventoryApplyConfiguration { + b.ensureObjectMetaApplyConfigurationExists() + b.ObjectMetaApplyConfiguration.Namespace = &value + return b +} + +// WithUID sets the UID field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the UID field is set to the value of the last call. +func (b *InventoryApplyConfiguration) WithUID(value types.UID) *InventoryApplyConfiguration { + b.ensureObjectMetaApplyConfigurationExists() + b.ObjectMetaApplyConfiguration.UID = &value + return b +} + +// WithResourceVersion sets the ResourceVersion field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the ResourceVersion field is set to the value of the last call. +func (b *InventoryApplyConfiguration) WithResourceVersion(value string) *InventoryApplyConfiguration { + b.ensureObjectMetaApplyConfigurationExists() + b.ObjectMetaApplyConfiguration.ResourceVersion = &value + return b +} + +// WithGeneration sets the Generation field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Generation field is set to the value of the last call. +func (b *InventoryApplyConfiguration) WithGeneration(value int64) *InventoryApplyConfiguration { + b.ensureObjectMetaApplyConfigurationExists() + b.ObjectMetaApplyConfiguration.Generation = &value + return b +} + +// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the CreationTimestamp field is set to the value of the last call. +func (b *InventoryApplyConfiguration) WithCreationTimestamp(value metav1.Time) *InventoryApplyConfiguration { + b.ensureObjectMetaApplyConfigurationExists() + b.ObjectMetaApplyConfiguration.CreationTimestamp = &value + return b +} + +// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the DeletionTimestamp field is set to the value of the last call. +func (b *InventoryApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *InventoryApplyConfiguration { + b.ensureObjectMetaApplyConfigurationExists() + b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value + return b +} + +// WithDeletionGracePeriodSeconds sets the DeletionGracePeriodSeconds field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call. +func (b *InventoryApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *InventoryApplyConfiguration { + b.ensureObjectMetaApplyConfigurationExists() + b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value + return b +} + +// WithLabels puts the entries into the Labels field in the declarative configuration +// and returns the receiver, so that objects can be build by chaining "With" function invocations. +// If called multiple times, the entries provided by each call will be put on the Labels field, +// overwriting an existing map entries in Labels field with the same key. +func (b *InventoryApplyConfiguration) WithLabels(entries map[string]string) *InventoryApplyConfiguration { + b.ensureObjectMetaApplyConfigurationExists() + if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 { + b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries)) + } + for k, v := range entries { + b.ObjectMetaApplyConfiguration.Labels[k] = v + } + return b +} + +// WithAnnotations puts the entries into the Annotations field in the declarative configuration +// and returns the receiver, so that objects can be build by chaining "With" function invocations. +// If called multiple times, the entries provided by each call will be put on the Annotations field, +// overwriting an existing map entries in Annotations field with the same key. +func (b *InventoryApplyConfiguration) WithAnnotations(entries map[string]string) *InventoryApplyConfiguration { + b.ensureObjectMetaApplyConfigurationExists() + if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 { + b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries)) + } + for k, v := range entries { + b.ObjectMetaApplyConfiguration.Annotations[k] = v + } + return b +} + +// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration +// and returns the receiver, so that objects can be build by chaining "With" function invocations. +// If called multiple times, values provided by each call will be appended to the OwnerReferences field. +func (b *InventoryApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *InventoryApplyConfiguration { + b.ensureObjectMetaApplyConfigurationExists() + for i := range values { + if values[i] == nil { + panic("nil value passed to WithOwnerReferences") + } + b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i]) + } + return b +} + +// WithFinalizers adds the given value to the Finalizers field in the declarative configuration +// and returns the receiver, so that objects can be build by chaining "With" function invocations. +// If called multiple times, values provided by each call will be appended to the Finalizers field. +func (b *InventoryApplyConfiguration) WithFinalizers(values ...string) *InventoryApplyConfiguration { + b.ensureObjectMetaApplyConfigurationExists() + for i := range values { + b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i]) + } + return b +} + +func (b *InventoryApplyConfiguration) ensureObjectMetaApplyConfigurationExists() { + if b.ObjectMetaApplyConfiguration == nil { + b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{} + } +} + +// WithSpec sets the Spec field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Spec field is set to the value of the last call. +func (b *InventoryApplyConfiguration) WithSpec(value *InventorySpecApplyConfiguration) *InventoryApplyConfiguration { + b.Spec = value + return b +} + +// WithStatus sets the Status field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Status field is set to the value of the last call. +func (b *InventoryApplyConfiguration) WithStatus(value *InventoryStatusApplyConfiguration) *InventoryApplyConfiguration { + b.Status = value + return b +} + +// GetName retrieves the value of the Name field in the declarative configuration. +func (b *InventoryApplyConfiguration) GetName() *string { + b.ensureObjectMetaApplyConfigurationExists() + return b.ObjectMetaApplyConfiguration.Name +} diff --git a/pkg/client/applyconfiguration/akash.network/v2beta1/inventoryclusterstorage.go b/pkg/client/applyconfiguration/akash.network/v2beta1/inventoryclusterstorage.go new file mode 100644 index 000000000..1def9c8e0 --- /dev/null +++ b/pkg/client/applyconfiguration/akash.network/v2beta1/inventoryclusterstorage.go @@ -0,0 +1,56 @@ +/* +Copyright The Akash Network Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by applyconfiguration-gen. DO NOT EDIT. + +package v2beta1 + +// InventoryClusterStorageApplyConfiguration represents a declarative configuration of the InventoryClusterStorage type for use +// with apply. +type InventoryClusterStorageApplyConfiguration struct { + Class *string `json:"class,omitempty"` + ResourcePairApplyConfiguration `json:",inline"` +} + +// InventoryClusterStorageApplyConfiguration constructs a declarative configuration of the InventoryClusterStorage type for use with +// apply. +func InventoryClusterStorage() *InventoryClusterStorageApplyConfiguration { + return &InventoryClusterStorageApplyConfiguration{} +} + +// WithClass sets the Class field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Class field is set to the value of the last call. +func (b *InventoryClusterStorageApplyConfiguration) WithClass(value string) *InventoryClusterStorageApplyConfiguration { + b.Class = &value + return b +} + +// WithAllocatable sets the Allocatable field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Allocatable field is set to the value of the last call. +func (b *InventoryClusterStorageApplyConfiguration) WithAllocatable(value uint64) *InventoryClusterStorageApplyConfiguration { + b.ResourcePairApplyConfiguration.Allocatable = &value + return b +} + +// WithAllocated sets the Allocated field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Allocated field is set to the value of the last call. +func (b *InventoryClusterStorageApplyConfiguration) WithAllocated(value uint64) *InventoryClusterStorageApplyConfiguration { + b.ResourcePairApplyConfiguration.Allocated = &value + return b +} diff --git a/pkg/client/applyconfiguration/akash.network/v2beta1/inventoryrequest.go b/pkg/client/applyconfiguration/akash.network/v2beta1/inventoryrequest.go new file mode 100644 index 000000000..a0b3e6cad --- /dev/null +++ b/pkg/client/applyconfiguration/akash.network/v2beta1/inventoryrequest.go @@ -0,0 +1,224 @@ +/* +Copyright The Akash Network Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by applyconfiguration-gen. DO NOT EDIT. + +package v2beta1 + +import ( + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + types "k8s.io/apimachinery/pkg/types" + v1 "k8s.io/client-go/applyconfigurations/meta/v1" +) + +// InventoryRequestApplyConfiguration represents a declarative configuration of the InventoryRequest type for use +// with apply. +type InventoryRequestApplyConfiguration struct { + v1.TypeMetaApplyConfiguration `json:",inline"` + *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` + Spec *InventoryRequestSpecApplyConfiguration `json:"spec,omitempty"` + Status *InventoryRequestStatusApplyConfiguration `json:"status,omitempty"` +} + +// InventoryRequest constructs a declarative configuration of the InventoryRequest type for use with +// apply. +func InventoryRequest(name string) *InventoryRequestApplyConfiguration { + b := &InventoryRequestApplyConfiguration{} + b.WithName(name) + b.WithKind("InventoryRequest") + b.WithAPIVersion("akash.network/v2beta1") + return b +} + +// WithKind sets the Kind field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Kind field is set to the value of the last call. +func (b *InventoryRequestApplyConfiguration) WithKind(value string) *InventoryRequestApplyConfiguration { + b.TypeMetaApplyConfiguration.Kind = &value + return b +} + +// WithAPIVersion sets the APIVersion field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the APIVersion field is set to the value of the last call. +func (b *InventoryRequestApplyConfiguration) WithAPIVersion(value string) *InventoryRequestApplyConfiguration { + b.TypeMetaApplyConfiguration.APIVersion = &value + return b +} + +// WithName sets the Name field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Name field is set to the value of the last call. +func (b *InventoryRequestApplyConfiguration) WithName(value string) *InventoryRequestApplyConfiguration { + b.ensureObjectMetaApplyConfigurationExists() + b.ObjectMetaApplyConfiguration.Name = &value + return b +} + +// WithGenerateName sets the GenerateName field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the GenerateName field is set to the value of the last call. +func (b *InventoryRequestApplyConfiguration) WithGenerateName(value string) *InventoryRequestApplyConfiguration { + b.ensureObjectMetaApplyConfigurationExists() + b.ObjectMetaApplyConfiguration.GenerateName = &value + return b +} + +// WithNamespace sets the Namespace field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Namespace field is set to the value of the last call. +func (b *InventoryRequestApplyConfiguration) WithNamespace(value string) *InventoryRequestApplyConfiguration { + b.ensureObjectMetaApplyConfigurationExists() + b.ObjectMetaApplyConfiguration.Namespace = &value + return b +} + +// WithUID sets the UID field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the UID field is set to the value of the last call. +func (b *InventoryRequestApplyConfiguration) WithUID(value types.UID) *InventoryRequestApplyConfiguration { + b.ensureObjectMetaApplyConfigurationExists() + b.ObjectMetaApplyConfiguration.UID = &value + return b +} + +// WithResourceVersion sets the ResourceVersion field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the ResourceVersion field is set to the value of the last call. +func (b *InventoryRequestApplyConfiguration) WithResourceVersion(value string) *InventoryRequestApplyConfiguration { + b.ensureObjectMetaApplyConfigurationExists() + b.ObjectMetaApplyConfiguration.ResourceVersion = &value + return b +} + +// WithGeneration sets the Generation field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Generation field is set to the value of the last call. +func (b *InventoryRequestApplyConfiguration) WithGeneration(value int64) *InventoryRequestApplyConfiguration { + b.ensureObjectMetaApplyConfigurationExists() + b.ObjectMetaApplyConfiguration.Generation = &value + return b +} + +// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the CreationTimestamp field is set to the value of the last call. +func (b *InventoryRequestApplyConfiguration) WithCreationTimestamp(value metav1.Time) *InventoryRequestApplyConfiguration { + b.ensureObjectMetaApplyConfigurationExists() + b.ObjectMetaApplyConfiguration.CreationTimestamp = &value + return b +} + +// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the DeletionTimestamp field is set to the value of the last call. +func (b *InventoryRequestApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *InventoryRequestApplyConfiguration { + b.ensureObjectMetaApplyConfigurationExists() + b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value + return b +} + +// WithDeletionGracePeriodSeconds sets the DeletionGracePeriodSeconds field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call. +func (b *InventoryRequestApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *InventoryRequestApplyConfiguration { + b.ensureObjectMetaApplyConfigurationExists() + b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value + return b +} + +// WithLabels puts the entries into the Labels field in the declarative configuration +// and returns the receiver, so that objects can be build by chaining "With" function invocations. +// If called multiple times, the entries provided by each call will be put on the Labels field, +// overwriting an existing map entries in Labels field with the same key. +func (b *InventoryRequestApplyConfiguration) WithLabels(entries map[string]string) *InventoryRequestApplyConfiguration { + b.ensureObjectMetaApplyConfigurationExists() + if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 { + b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries)) + } + for k, v := range entries { + b.ObjectMetaApplyConfiguration.Labels[k] = v + } + return b +} + +// WithAnnotations puts the entries into the Annotations field in the declarative configuration +// and returns the receiver, so that objects can be build by chaining "With" function invocations. +// If called multiple times, the entries provided by each call will be put on the Annotations field, +// overwriting an existing map entries in Annotations field with the same key. +func (b *InventoryRequestApplyConfiguration) WithAnnotations(entries map[string]string) *InventoryRequestApplyConfiguration { + b.ensureObjectMetaApplyConfigurationExists() + if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 { + b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries)) + } + for k, v := range entries { + b.ObjectMetaApplyConfiguration.Annotations[k] = v + } + return b +} + +// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration +// and returns the receiver, so that objects can be build by chaining "With" function invocations. +// If called multiple times, values provided by each call will be appended to the OwnerReferences field. +func (b *InventoryRequestApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *InventoryRequestApplyConfiguration { + b.ensureObjectMetaApplyConfigurationExists() + for i := range values { + if values[i] == nil { + panic("nil value passed to WithOwnerReferences") + } + b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i]) + } + return b +} + +// WithFinalizers adds the given value to the Finalizers field in the declarative configuration +// and returns the receiver, so that objects can be build by chaining "With" function invocations. +// If called multiple times, values provided by each call will be appended to the Finalizers field. +func (b *InventoryRequestApplyConfiguration) WithFinalizers(values ...string) *InventoryRequestApplyConfiguration { + b.ensureObjectMetaApplyConfigurationExists() + for i := range values { + b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i]) + } + return b +} + +func (b *InventoryRequestApplyConfiguration) ensureObjectMetaApplyConfigurationExists() { + if b.ObjectMetaApplyConfiguration == nil { + b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{} + } +} + +// WithSpec sets the Spec field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Spec field is set to the value of the last call. +func (b *InventoryRequestApplyConfiguration) WithSpec(value *InventoryRequestSpecApplyConfiguration) *InventoryRequestApplyConfiguration { + b.Spec = value + return b +} + +// WithStatus sets the Status field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Status field is set to the value of the last call. +func (b *InventoryRequestApplyConfiguration) WithStatus(value *InventoryRequestStatusApplyConfiguration) *InventoryRequestApplyConfiguration { + b.Status = value + return b +} + +// GetName retrieves the value of the Name field in the declarative configuration. +func (b *InventoryRequestApplyConfiguration) GetName() *string { + b.ensureObjectMetaApplyConfigurationExists() + return b.ObjectMetaApplyConfiguration.Name +} diff --git a/pkg/client/applyconfiguration/akash.network/v2beta1/inventoryrequestspec.go b/pkg/client/applyconfiguration/akash.network/v2beta1/inventoryrequestspec.go new file mode 100644 index 000000000..05e693f71 --- /dev/null +++ b/pkg/client/applyconfiguration/akash.network/v2beta1/inventoryrequestspec.go @@ -0,0 +1,39 @@ +/* +Copyright The Akash Network Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by applyconfiguration-gen. DO NOT EDIT. + +package v2beta1 + +// InventoryRequestSpecApplyConfiguration represents a declarative configuration of the InventoryRequestSpec type for use +// with apply. +type InventoryRequestSpecApplyConfiguration struct { + Name *string `json:"name,omitempty"` +} + +// InventoryRequestSpecApplyConfiguration constructs a declarative configuration of the InventoryRequestSpec type for use with +// apply. +func InventoryRequestSpec() *InventoryRequestSpecApplyConfiguration { + return &InventoryRequestSpecApplyConfiguration{} +} + +// WithName sets the Name field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Name field is set to the value of the last call. +func (b *InventoryRequestSpecApplyConfiguration) WithName(value string) *InventoryRequestSpecApplyConfiguration { + b.Name = &value + return b +} diff --git a/pkg/client/applyconfiguration/akash.network/v2beta1/inventoryrequeststatus.go b/pkg/client/applyconfiguration/akash.network/v2beta1/inventoryrequeststatus.go new file mode 100644 index 000000000..b4f17d466 --- /dev/null +++ b/pkg/client/applyconfiguration/akash.network/v2beta1/inventoryrequeststatus.go @@ -0,0 +1,48 @@ +/* +Copyright The Akash Network Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by applyconfiguration-gen. DO NOT EDIT. + +package v2beta1 + +// InventoryRequestStatusApplyConfiguration represents a declarative configuration of the InventoryRequestStatus type for use +// with apply. +type InventoryRequestStatusApplyConfiguration struct { + State *string `json:"state,omitempty"` + Message *string `json:"message,omitempty"` +} + +// InventoryRequestStatusApplyConfiguration constructs a declarative configuration of the InventoryRequestStatus type for use with +// apply. +func InventoryRequestStatus() *InventoryRequestStatusApplyConfiguration { + return &InventoryRequestStatusApplyConfiguration{} +} + +// WithState sets the State field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the State field is set to the value of the last call. +func (b *InventoryRequestStatusApplyConfiguration) WithState(value string) *InventoryRequestStatusApplyConfiguration { + b.State = &value + return b +} + +// WithMessage sets the Message field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Message field is set to the value of the last call. +func (b *InventoryRequestStatusApplyConfiguration) WithMessage(value string) *InventoryRequestStatusApplyConfiguration { + b.Message = &value + return b +} diff --git a/pkg/client/applyconfiguration/akash.network/v2beta1/inventoryspec.go b/pkg/client/applyconfiguration/akash.network/v2beta1/inventoryspec.go new file mode 100644 index 000000000..7d5bcd762 --- /dev/null +++ b/pkg/client/applyconfiguration/akash.network/v2beta1/inventoryspec.go @@ -0,0 +1,44 @@ +/* +Copyright The Akash Network Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by applyconfiguration-gen. DO NOT EDIT. + +package v2beta1 + +// InventorySpecApplyConfiguration represents a declarative configuration of the InventorySpec type for use +// with apply. +type InventorySpecApplyConfiguration struct { + Storage []InventoryClusterStorageApplyConfiguration `json:"storage,omitempty"` +} + +// InventorySpecApplyConfiguration constructs a declarative configuration of the InventorySpec type for use with +// apply. +func InventorySpec() *InventorySpecApplyConfiguration { + return &InventorySpecApplyConfiguration{} +} + +// WithStorage adds the given value to the Storage field in the declarative configuration +// and returns the receiver, so that objects can be build by chaining "With" function invocations. +// If called multiple times, values provided by each call will be appended to the Storage field. +func (b *InventorySpecApplyConfiguration) WithStorage(values ...*InventoryClusterStorageApplyConfiguration) *InventorySpecApplyConfiguration { + for i := range values { + if values[i] == nil { + panic("nil value passed to WithStorage") + } + b.Storage = append(b.Storage, *values[i]) + } + return b +} diff --git a/pkg/client/applyconfiguration/akash.network/v2beta1/inventorystatus.go b/pkg/client/applyconfiguration/akash.network/v2beta1/inventorystatus.go new file mode 100644 index 000000000..9c5018977 --- /dev/null +++ b/pkg/client/applyconfiguration/akash.network/v2beta1/inventorystatus.go @@ -0,0 +1,54 @@ +/* +Copyright The Akash Network Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by applyconfiguration-gen. DO NOT EDIT. + +package v2beta1 + +import ( + akashnetworkv2beta1 "github.com/akash-network/provider/pkg/apis/akash.network/v2beta1" +) + +// InventoryStatusApplyConfiguration represents a declarative configuration of the InventoryStatus type for use +// with apply. +type InventoryStatusApplyConfiguration struct { + State *akashnetworkv2beta1.InventoryState `json:"state,omitempty"` + Messages []string `json:"message,omitempty"` +} + +// InventoryStatusApplyConfiguration constructs a declarative configuration of the InventoryStatus type for use with +// apply. +func InventoryStatus() *InventoryStatusApplyConfiguration { + return &InventoryStatusApplyConfiguration{} +} + +// WithState sets the State field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the State field is set to the value of the last call. +func (b *InventoryStatusApplyConfiguration) WithState(value akashnetworkv2beta1.InventoryState) *InventoryStatusApplyConfiguration { + b.State = &value + return b +} + +// WithMessages adds the given value to the Messages field in the declarative configuration +// and returns the receiver, so that objects can be build by chaining "With" function invocations. +// If called multiple times, values provided by each call will be appended to the Messages field. +func (b *InventoryStatusApplyConfiguration) WithMessages(values ...string) *InventoryStatusApplyConfiguration { + for i := range values { + b.Messages = append(b.Messages, values[i]) + } + return b +} diff --git a/pkg/client/applyconfiguration/akash.network/v2beta1/leaseid.go b/pkg/client/applyconfiguration/akash.network/v2beta1/leaseid.go new file mode 100644 index 000000000..e473d20b0 --- /dev/null +++ b/pkg/client/applyconfiguration/akash.network/v2beta1/leaseid.go @@ -0,0 +1,75 @@ +/* +Copyright The Akash Network Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by applyconfiguration-gen. DO NOT EDIT. + +package v2beta1 + +// LeaseIDApplyConfiguration represents a declarative configuration of the LeaseID type for use +// with apply. +type LeaseIDApplyConfiguration struct { + Owner *string `json:"owner,omitempty"` + DSeq *string `json:"dseq,omitempty"` + GSeq *uint32 `json:"gseq,omitempty"` + OSeq *uint32 `json:"oseq,omitempty"` + Provider *string `json:"provider,omitempty"` +} + +// LeaseIDApplyConfiguration constructs a declarative configuration of the LeaseID type for use with +// apply. +func LeaseID() *LeaseIDApplyConfiguration { + return &LeaseIDApplyConfiguration{} +} + +// WithOwner sets the Owner field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Owner field is set to the value of the last call. +func (b *LeaseIDApplyConfiguration) WithOwner(value string) *LeaseIDApplyConfiguration { + b.Owner = &value + return b +} + +// WithDSeq sets the DSeq field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the DSeq field is set to the value of the last call. +func (b *LeaseIDApplyConfiguration) WithDSeq(value string) *LeaseIDApplyConfiguration { + b.DSeq = &value + return b +} + +// WithGSeq sets the GSeq field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the GSeq field is set to the value of the last call. +func (b *LeaseIDApplyConfiguration) WithGSeq(value uint32) *LeaseIDApplyConfiguration { + b.GSeq = &value + return b +} + +// WithOSeq sets the OSeq field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the OSeq field is set to the value of the last call. +func (b *LeaseIDApplyConfiguration) WithOSeq(value uint32) *LeaseIDApplyConfiguration { + b.OSeq = &value + return b +} + +// WithProvider sets the Provider field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Provider field is set to the value of the last call. +func (b *LeaseIDApplyConfiguration) WithProvider(value string) *LeaseIDApplyConfiguration { + b.Provider = &value + return b +} diff --git a/pkg/client/applyconfiguration/akash.network/v2beta1/manifest.go b/pkg/client/applyconfiguration/akash.network/v2beta1/manifest.go new file mode 100644 index 000000000..a9ed377e8 --- /dev/null +++ b/pkg/client/applyconfiguration/akash.network/v2beta1/manifest.go @@ -0,0 +1,225 @@ +/* +Copyright The Akash Network Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by applyconfiguration-gen. DO NOT EDIT. + +package v2beta1 + +import ( + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + types "k8s.io/apimachinery/pkg/types" + v1 "k8s.io/client-go/applyconfigurations/meta/v1" +) + +// ManifestApplyConfiguration represents a declarative configuration of the Manifest type for use +// with apply. +type ManifestApplyConfiguration struct { + v1.TypeMetaApplyConfiguration `json:",inline"` + *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` + Spec *ManifestSpecApplyConfiguration `json:"spec,omitempty"` + Status *ManifestStatusApplyConfiguration `json:"status,omitempty"` +} + +// Manifest constructs a declarative configuration of the Manifest type for use with +// apply. +func Manifest(name, namespace string) *ManifestApplyConfiguration { + b := &ManifestApplyConfiguration{} + b.WithName(name) + b.WithNamespace(namespace) + b.WithKind("Manifest") + b.WithAPIVersion("akash.network/v2beta1") + return b +} + +// WithKind sets the Kind field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Kind field is set to the value of the last call. +func (b *ManifestApplyConfiguration) WithKind(value string) *ManifestApplyConfiguration { + b.TypeMetaApplyConfiguration.Kind = &value + return b +} + +// WithAPIVersion sets the APIVersion field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the APIVersion field is set to the value of the last call. +func (b *ManifestApplyConfiguration) WithAPIVersion(value string) *ManifestApplyConfiguration { + b.TypeMetaApplyConfiguration.APIVersion = &value + return b +} + +// WithName sets the Name field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Name field is set to the value of the last call. +func (b *ManifestApplyConfiguration) WithName(value string) *ManifestApplyConfiguration { + b.ensureObjectMetaApplyConfigurationExists() + b.ObjectMetaApplyConfiguration.Name = &value + return b +} + +// WithGenerateName sets the GenerateName field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the GenerateName field is set to the value of the last call. +func (b *ManifestApplyConfiguration) WithGenerateName(value string) *ManifestApplyConfiguration { + b.ensureObjectMetaApplyConfigurationExists() + b.ObjectMetaApplyConfiguration.GenerateName = &value + return b +} + +// WithNamespace sets the Namespace field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Namespace field is set to the value of the last call. +func (b *ManifestApplyConfiguration) WithNamespace(value string) *ManifestApplyConfiguration { + b.ensureObjectMetaApplyConfigurationExists() + b.ObjectMetaApplyConfiguration.Namespace = &value + return b +} + +// WithUID sets the UID field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the UID field is set to the value of the last call. +func (b *ManifestApplyConfiguration) WithUID(value types.UID) *ManifestApplyConfiguration { + b.ensureObjectMetaApplyConfigurationExists() + b.ObjectMetaApplyConfiguration.UID = &value + return b +} + +// WithResourceVersion sets the ResourceVersion field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the ResourceVersion field is set to the value of the last call. +func (b *ManifestApplyConfiguration) WithResourceVersion(value string) *ManifestApplyConfiguration { + b.ensureObjectMetaApplyConfigurationExists() + b.ObjectMetaApplyConfiguration.ResourceVersion = &value + return b +} + +// WithGeneration sets the Generation field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Generation field is set to the value of the last call. +func (b *ManifestApplyConfiguration) WithGeneration(value int64) *ManifestApplyConfiguration { + b.ensureObjectMetaApplyConfigurationExists() + b.ObjectMetaApplyConfiguration.Generation = &value + return b +} + +// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the CreationTimestamp field is set to the value of the last call. +func (b *ManifestApplyConfiguration) WithCreationTimestamp(value metav1.Time) *ManifestApplyConfiguration { + b.ensureObjectMetaApplyConfigurationExists() + b.ObjectMetaApplyConfiguration.CreationTimestamp = &value + return b +} + +// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the DeletionTimestamp field is set to the value of the last call. +func (b *ManifestApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *ManifestApplyConfiguration { + b.ensureObjectMetaApplyConfigurationExists() + b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value + return b +} + +// WithDeletionGracePeriodSeconds sets the DeletionGracePeriodSeconds field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call. +func (b *ManifestApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *ManifestApplyConfiguration { + b.ensureObjectMetaApplyConfigurationExists() + b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value + return b +} + +// WithLabels puts the entries into the Labels field in the declarative configuration +// and returns the receiver, so that objects can be build by chaining "With" function invocations. +// If called multiple times, the entries provided by each call will be put on the Labels field, +// overwriting an existing map entries in Labels field with the same key. +func (b *ManifestApplyConfiguration) WithLabels(entries map[string]string) *ManifestApplyConfiguration { + b.ensureObjectMetaApplyConfigurationExists() + if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 { + b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries)) + } + for k, v := range entries { + b.ObjectMetaApplyConfiguration.Labels[k] = v + } + return b +} + +// WithAnnotations puts the entries into the Annotations field in the declarative configuration +// and returns the receiver, so that objects can be build by chaining "With" function invocations. +// If called multiple times, the entries provided by each call will be put on the Annotations field, +// overwriting an existing map entries in Annotations field with the same key. +func (b *ManifestApplyConfiguration) WithAnnotations(entries map[string]string) *ManifestApplyConfiguration { + b.ensureObjectMetaApplyConfigurationExists() + if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 { + b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries)) + } + for k, v := range entries { + b.ObjectMetaApplyConfiguration.Annotations[k] = v + } + return b +} + +// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration +// and returns the receiver, so that objects can be build by chaining "With" function invocations. +// If called multiple times, values provided by each call will be appended to the OwnerReferences field. +func (b *ManifestApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *ManifestApplyConfiguration { + b.ensureObjectMetaApplyConfigurationExists() + for i := range values { + if values[i] == nil { + panic("nil value passed to WithOwnerReferences") + } + b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i]) + } + return b +} + +// WithFinalizers adds the given value to the Finalizers field in the declarative configuration +// and returns the receiver, so that objects can be build by chaining "With" function invocations. +// If called multiple times, values provided by each call will be appended to the Finalizers field. +func (b *ManifestApplyConfiguration) WithFinalizers(values ...string) *ManifestApplyConfiguration { + b.ensureObjectMetaApplyConfigurationExists() + for i := range values { + b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i]) + } + return b +} + +func (b *ManifestApplyConfiguration) ensureObjectMetaApplyConfigurationExists() { + if b.ObjectMetaApplyConfiguration == nil { + b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{} + } +} + +// WithSpec sets the Spec field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Spec field is set to the value of the last call. +func (b *ManifestApplyConfiguration) WithSpec(value *ManifestSpecApplyConfiguration) *ManifestApplyConfiguration { + b.Spec = value + return b +} + +// WithStatus sets the Status field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Status field is set to the value of the last call. +func (b *ManifestApplyConfiguration) WithStatus(value *ManifestStatusApplyConfiguration) *ManifestApplyConfiguration { + b.Status = value + return b +} + +// GetName retrieves the value of the Name field in the declarative configuration. +func (b *ManifestApplyConfiguration) GetName() *string { + b.ensureObjectMetaApplyConfigurationExists() + return b.ObjectMetaApplyConfiguration.Name +} diff --git a/pkg/client/applyconfiguration/akash.network/v2beta1/manifestgroup.go b/pkg/client/applyconfiguration/akash.network/v2beta1/manifestgroup.go new file mode 100644 index 000000000..dac6f773f --- /dev/null +++ b/pkg/client/applyconfiguration/akash.network/v2beta1/manifestgroup.go @@ -0,0 +1,53 @@ +/* +Copyright The Akash Network Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by applyconfiguration-gen. DO NOT EDIT. + +package v2beta1 + +// ManifestGroupApplyConfiguration represents a declarative configuration of the ManifestGroup type for use +// with apply. +type ManifestGroupApplyConfiguration struct { + Name *string `json:"name,omitempty"` + Services []ManifestServiceApplyConfiguration `json:"services,omitempty"` +} + +// ManifestGroupApplyConfiguration constructs a declarative configuration of the ManifestGroup type for use with +// apply. +func ManifestGroup() *ManifestGroupApplyConfiguration { + return &ManifestGroupApplyConfiguration{} +} + +// WithName sets the Name field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Name field is set to the value of the last call. +func (b *ManifestGroupApplyConfiguration) WithName(value string) *ManifestGroupApplyConfiguration { + b.Name = &value + return b +} + +// WithServices adds the given value to the Services field in the declarative configuration +// and returns the receiver, so that objects can be build by chaining "With" function invocations. +// If called multiple times, values provided by each call will be appended to the Services field. +func (b *ManifestGroupApplyConfiguration) WithServices(values ...*ManifestServiceApplyConfiguration) *ManifestGroupApplyConfiguration { + for i := range values { + if values[i] == nil { + panic("nil value passed to WithServices") + } + b.Services = append(b.Services, *values[i]) + } + return b +} diff --git a/pkg/client/applyconfiguration/akash.network/v2beta1/manifestservice.go b/pkg/client/applyconfiguration/akash.network/v2beta1/manifestservice.go new file mode 100644 index 000000000..3094e70ce --- /dev/null +++ b/pkg/client/applyconfiguration/akash.network/v2beta1/manifestservice.go @@ -0,0 +1,122 @@ +/* +Copyright The Akash Network Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by applyconfiguration-gen. DO NOT EDIT. + +package v2beta1 + +// ManifestServiceApplyConfiguration represents a declarative configuration of the ManifestService type for use +// with apply. +type ManifestServiceApplyConfiguration struct { + Name *string `json:"name,omitempty"` + Image *string `json:"image,omitempty"` + Command []string `json:"command,omitempty"` + Args []string `json:"args,omitempty"` + Env []string `json:"env,omitempty"` + Resources *ResourceUnitsApplyConfiguration `json:"unit,omitempty"` + Count *uint32 `json:"count,omitempty"` + Expose []ManifestServiceExposeApplyConfiguration `json:"expose,omitempty"` + Params *ManifestServiceParamsApplyConfiguration `json:"params,omitempty"` +} + +// ManifestServiceApplyConfiguration constructs a declarative configuration of the ManifestService type for use with +// apply. +func ManifestService() *ManifestServiceApplyConfiguration { + return &ManifestServiceApplyConfiguration{} +} + +// WithName sets the Name field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Name field is set to the value of the last call. +func (b *ManifestServiceApplyConfiguration) WithName(value string) *ManifestServiceApplyConfiguration { + b.Name = &value + return b +} + +// WithImage sets the Image field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Image field is set to the value of the last call. +func (b *ManifestServiceApplyConfiguration) WithImage(value string) *ManifestServiceApplyConfiguration { + b.Image = &value + return b +} + +// WithCommand adds the given value to the Command field in the declarative configuration +// and returns the receiver, so that objects can be build by chaining "With" function invocations. +// If called multiple times, values provided by each call will be appended to the Command field. +func (b *ManifestServiceApplyConfiguration) WithCommand(values ...string) *ManifestServiceApplyConfiguration { + for i := range values { + b.Command = append(b.Command, values[i]) + } + return b +} + +// WithArgs adds the given value to the Args field in the declarative configuration +// and returns the receiver, so that objects can be build by chaining "With" function invocations. +// If called multiple times, values provided by each call will be appended to the Args field. +func (b *ManifestServiceApplyConfiguration) WithArgs(values ...string) *ManifestServiceApplyConfiguration { + for i := range values { + b.Args = append(b.Args, values[i]) + } + return b +} + +// WithEnv adds the given value to the Env field in the declarative configuration +// and returns the receiver, so that objects can be build by chaining "With" function invocations. +// If called multiple times, values provided by each call will be appended to the Env field. +func (b *ManifestServiceApplyConfiguration) WithEnv(values ...string) *ManifestServiceApplyConfiguration { + for i := range values { + b.Env = append(b.Env, values[i]) + } + return b +} + +// WithResources sets the Resources field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Resources field is set to the value of the last call. +func (b *ManifestServiceApplyConfiguration) WithResources(value *ResourceUnitsApplyConfiguration) *ManifestServiceApplyConfiguration { + b.Resources = value + return b +} + +// WithCount sets the Count field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Count field is set to the value of the last call. +func (b *ManifestServiceApplyConfiguration) WithCount(value uint32) *ManifestServiceApplyConfiguration { + b.Count = &value + return b +} + +// WithExpose adds the given value to the Expose field in the declarative configuration +// and returns the receiver, so that objects can be build by chaining "With" function invocations. +// If called multiple times, values provided by each call will be appended to the Expose field. +func (b *ManifestServiceApplyConfiguration) WithExpose(values ...*ManifestServiceExposeApplyConfiguration) *ManifestServiceApplyConfiguration { + for i := range values { + if values[i] == nil { + panic("nil value passed to WithExpose") + } + b.Expose = append(b.Expose, *values[i]) + } + return b +} + +// WithParams sets the Params field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Params field is set to the value of the last call. +func (b *ManifestServiceApplyConfiguration) WithParams(value *ManifestServiceParamsApplyConfiguration) *ManifestServiceApplyConfiguration { + b.Params = value + return b +} diff --git a/pkg/client/applyconfiguration/akash.network/v2beta1/manifestserviceexpose.go b/pkg/client/applyconfiguration/akash.network/v2beta1/manifestserviceexpose.go new file mode 100644 index 000000000..6c5bd7142 --- /dev/null +++ b/pkg/client/applyconfiguration/akash.network/v2beta1/manifestserviceexpose.go @@ -0,0 +1,113 @@ +/* +Copyright The Akash Network Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by applyconfiguration-gen. DO NOT EDIT. + +package v2beta1 + +// ManifestServiceExposeApplyConfiguration represents a declarative configuration of the ManifestServiceExpose type for use +// with apply. +type ManifestServiceExposeApplyConfiguration struct { + Port *uint16 `json:"port,omitempty"` + ExternalPort *uint16 `json:"external_port,omitempty"` + Proto *string `json:"proto,omitempty"` + Service *string `json:"service,omitempty"` + Global *bool `json:"global,omitempty"` + Hosts []string `json:"hosts,omitempty"` + HTTPOptions *ManifestServiceExposeHTTPOptionsApplyConfiguration `json:"http_options,omitempty"` + IP *string `json:"ip,omitempty"` + EndpointSequenceNumber *uint32 `json:"endpoint_sequence_number,omitempty"` +} + +// ManifestServiceExposeApplyConfiguration constructs a declarative configuration of the ManifestServiceExpose type for use with +// apply. +func ManifestServiceExpose() *ManifestServiceExposeApplyConfiguration { + return &ManifestServiceExposeApplyConfiguration{} +} + +// WithPort sets the Port field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Port field is set to the value of the last call. +func (b *ManifestServiceExposeApplyConfiguration) WithPort(value uint16) *ManifestServiceExposeApplyConfiguration { + b.Port = &value + return b +} + +// WithExternalPort sets the ExternalPort field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the ExternalPort field is set to the value of the last call. +func (b *ManifestServiceExposeApplyConfiguration) WithExternalPort(value uint16) *ManifestServiceExposeApplyConfiguration { + b.ExternalPort = &value + return b +} + +// WithProto sets the Proto field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Proto field is set to the value of the last call. +func (b *ManifestServiceExposeApplyConfiguration) WithProto(value string) *ManifestServiceExposeApplyConfiguration { + b.Proto = &value + return b +} + +// WithService sets the Service field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Service field is set to the value of the last call. +func (b *ManifestServiceExposeApplyConfiguration) WithService(value string) *ManifestServiceExposeApplyConfiguration { + b.Service = &value + return b +} + +// WithGlobal sets the Global field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Global field is set to the value of the last call. +func (b *ManifestServiceExposeApplyConfiguration) WithGlobal(value bool) *ManifestServiceExposeApplyConfiguration { + b.Global = &value + return b +} + +// WithHosts adds the given value to the Hosts field in the declarative configuration +// and returns the receiver, so that objects can be build by chaining "With" function invocations. +// If called multiple times, values provided by each call will be appended to the Hosts field. +func (b *ManifestServiceExposeApplyConfiguration) WithHosts(values ...string) *ManifestServiceExposeApplyConfiguration { + for i := range values { + b.Hosts = append(b.Hosts, values[i]) + } + return b +} + +// WithHTTPOptions sets the HTTPOptions field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the HTTPOptions field is set to the value of the last call. +func (b *ManifestServiceExposeApplyConfiguration) WithHTTPOptions(value *ManifestServiceExposeHTTPOptionsApplyConfiguration) *ManifestServiceExposeApplyConfiguration { + b.HTTPOptions = value + return b +} + +// WithIP sets the IP field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the IP field is set to the value of the last call. +func (b *ManifestServiceExposeApplyConfiguration) WithIP(value string) *ManifestServiceExposeApplyConfiguration { + b.IP = &value + return b +} + +// WithEndpointSequenceNumber sets the EndpointSequenceNumber field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the EndpointSequenceNumber field is set to the value of the last call. +func (b *ManifestServiceExposeApplyConfiguration) WithEndpointSequenceNumber(value uint32) *ManifestServiceExposeApplyConfiguration { + b.EndpointSequenceNumber = &value + return b +} diff --git a/pkg/client/applyconfiguration/akash.network/v2beta1/manifestserviceexposehttpoptions.go b/pkg/client/applyconfiguration/akash.network/v2beta1/manifestserviceexposehttpoptions.go new file mode 100644 index 000000000..d0165bb0f --- /dev/null +++ b/pkg/client/applyconfiguration/akash.network/v2beta1/manifestserviceexposehttpoptions.go @@ -0,0 +1,86 @@ +/* +Copyright The Akash Network Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by applyconfiguration-gen. DO NOT EDIT. + +package v2beta1 + +// ManifestServiceExposeHTTPOptionsApplyConfiguration represents a declarative configuration of the ManifestServiceExposeHTTPOptions type for use +// with apply. +type ManifestServiceExposeHTTPOptionsApplyConfiguration struct { + MaxBodySize *uint32 `json:"max_body_size,omitempty"` + ReadTimeout *uint32 `json:"read_timeout,omitempty"` + SendTimeout *uint32 `json:"send_timeout,omitempty"` + NextTries *uint32 `json:"next_tries,omitempty"` + NextTimeout *uint32 `json:"next_timeout,omitempty"` + NextCases []string `json:"next_cases,omitempty"` +} + +// ManifestServiceExposeHTTPOptionsApplyConfiguration constructs a declarative configuration of the ManifestServiceExposeHTTPOptions type for use with +// apply. +func ManifestServiceExposeHTTPOptions() *ManifestServiceExposeHTTPOptionsApplyConfiguration { + return &ManifestServiceExposeHTTPOptionsApplyConfiguration{} +} + +// WithMaxBodySize sets the MaxBodySize field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the MaxBodySize field is set to the value of the last call. +func (b *ManifestServiceExposeHTTPOptionsApplyConfiguration) WithMaxBodySize(value uint32) *ManifestServiceExposeHTTPOptionsApplyConfiguration { + b.MaxBodySize = &value + return b +} + +// WithReadTimeout sets the ReadTimeout field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the ReadTimeout field is set to the value of the last call. +func (b *ManifestServiceExposeHTTPOptionsApplyConfiguration) WithReadTimeout(value uint32) *ManifestServiceExposeHTTPOptionsApplyConfiguration { + b.ReadTimeout = &value + return b +} + +// WithSendTimeout sets the SendTimeout field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the SendTimeout field is set to the value of the last call. +func (b *ManifestServiceExposeHTTPOptionsApplyConfiguration) WithSendTimeout(value uint32) *ManifestServiceExposeHTTPOptionsApplyConfiguration { + b.SendTimeout = &value + return b +} + +// WithNextTries sets the NextTries field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the NextTries field is set to the value of the last call. +func (b *ManifestServiceExposeHTTPOptionsApplyConfiguration) WithNextTries(value uint32) *ManifestServiceExposeHTTPOptionsApplyConfiguration { + b.NextTries = &value + return b +} + +// WithNextTimeout sets the NextTimeout field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the NextTimeout field is set to the value of the last call. +func (b *ManifestServiceExposeHTTPOptionsApplyConfiguration) WithNextTimeout(value uint32) *ManifestServiceExposeHTTPOptionsApplyConfiguration { + b.NextTimeout = &value + return b +} + +// WithNextCases adds the given value to the NextCases field in the declarative configuration +// and returns the receiver, so that objects can be build by chaining "With" function invocations. +// If called multiple times, values provided by each call will be appended to the NextCases field. +func (b *ManifestServiceExposeHTTPOptionsApplyConfiguration) WithNextCases(values ...string) *ManifestServiceExposeHTTPOptionsApplyConfiguration { + for i := range values { + b.NextCases = append(b.NextCases, values[i]) + } + return b +} diff --git a/pkg/client/applyconfiguration/akash.network/v2beta1/manifestserviceparams.go b/pkg/client/applyconfiguration/akash.network/v2beta1/manifestserviceparams.go new file mode 100644 index 000000000..53c9e4668 --- /dev/null +++ b/pkg/client/applyconfiguration/akash.network/v2beta1/manifestserviceparams.go @@ -0,0 +1,44 @@ +/* +Copyright The Akash Network Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by applyconfiguration-gen. DO NOT EDIT. + +package v2beta1 + +// ManifestServiceParamsApplyConfiguration represents a declarative configuration of the ManifestServiceParams type for use +// with apply. +type ManifestServiceParamsApplyConfiguration struct { + Storage []ManifestStorageParamsApplyConfiguration `json:"storage,omitempty"` +} + +// ManifestServiceParamsApplyConfiguration constructs a declarative configuration of the ManifestServiceParams type for use with +// apply. +func ManifestServiceParams() *ManifestServiceParamsApplyConfiguration { + return &ManifestServiceParamsApplyConfiguration{} +} + +// WithStorage adds the given value to the Storage field in the declarative configuration +// and returns the receiver, so that objects can be build by chaining "With" function invocations. +// If called multiple times, values provided by each call will be appended to the Storage field. +func (b *ManifestServiceParamsApplyConfiguration) WithStorage(values ...*ManifestStorageParamsApplyConfiguration) *ManifestServiceParamsApplyConfiguration { + for i := range values { + if values[i] == nil { + panic("nil value passed to WithStorage") + } + b.Storage = append(b.Storage, *values[i]) + } + return b +} diff --git a/pkg/client/applyconfiguration/akash.network/v2beta1/manifestservicestorage.go b/pkg/client/applyconfiguration/akash.network/v2beta1/manifestservicestorage.go new file mode 100644 index 000000000..a4b32113e --- /dev/null +++ b/pkg/client/applyconfiguration/akash.network/v2beta1/manifestservicestorage.go @@ -0,0 +1,48 @@ +/* +Copyright The Akash Network Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by applyconfiguration-gen. DO NOT EDIT. + +package v2beta1 + +// ManifestServiceStorageApplyConfiguration represents a declarative configuration of the ManifestServiceStorage type for use +// with apply. +type ManifestServiceStorageApplyConfiguration struct { + Name *string `json:"name,omitempty"` + Size *string `json:"size,omitempty"` +} + +// ManifestServiceStorageApplyConfiguration constructs a declarative configuration of the ManifestServiceStorage type for use with +// apply. +func ManifestServiceStorage() *ManifestServiceStorageApplyConfiguration { + return &ManifestServiceStorageApplyConfiguration{} +} + +// WithName sets the Name field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Name field is set to the value of the last call. +func (b *ManifestServiceStorageApplyConfiguration) WithName(value string) *ManifestServiceStorageApplyConfiguration { + b.Name = &value + return b +} + +// WithSize sets the Size field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Size field is set to the value of the last call. +func (b *ManifestServiceStorageApplyConfiguration) WithSize(value string) *ManifestServiceStorageApplyConfiguration { + b.Size = &value + return b +} diff --git a/pkg/client/applyconfiguration/akash.network/v2beta1/manifestspec.go b/pkg/client/applyconfiguration/akash.network/v2beta1/manifestspec.go new file mode 100644 index 000000000..cc949adb7 --- /dev/null +++ b/pkg/client/applyconfiguration/akash.network/v2beta1/manifestspec.go @@ -0,0 +1,48 @@ +/* +Copyright The Akash Network Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by applyconfiguration-gen. DO NOT EDIT. + +package v2beta1 + +// ManifestSpecApplyConfiguration represents a declarative configuration of the ManifestSpec type for use +// with apply. +type ManifestSpecApplyConfiguration struct { + LeaseID *LeaseIDApplyConfiguration `json:"lease_id,omitempty"` + Group *ManifestGroupApplyConfiguration `json:"group,omitempty"` +} + +// ManifestSpecApplyConfiguration constructs a declarative configuration of the ManifestSpec type for use with +// apply. +func ManifestSpec() *ManifestSpecApplyConfiguration { + return &ManifestSpecApplyConfiguration{} +} + +// WithLeaseID sets the LeaseID field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the LeaseID field is set to the value of the last call. +func (b *ManifestSpecApplyConfiguration) WithLeaseID(value *LeaseIDApplyConfiguration) *ManifestSpecApplyConfiguration { + b.LeaseID = value + return b +} + +// WithGroup sets the Group field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Group field is set to the value of the last call. +func (b *ManifestSpecApplyConfiguration) WithGroup(value *ManifestGroupApplyConfiguration) *ManifestSpecApplyConfiguration { + b.Group = value + return b +} diff --git a/pkg/client/applyconfiguration/akash.network/v2beta1/manifeststatus.go b/pkg/client/applyconfiguration/akash.network/v2beta1/manifeststatus.go new file mode 100644 index 000000000..511a35372 --- /dev/null +++ b/pkg/client/applyconfiguration/akash.network/v2beta1/manifeststatus.go @@ -0,0 +1,48 @@ +/* +Copyright The Akash Network Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by applyconfiguration-gen. DO NOT EDIT. + +package v2beta1 + +// ManifestStatusApplyConfiguration represents a declarative configuration of the ManifestStatus type for use +// with apply. +type ManifestStatusApplyConfiguration struct { + State *string `json:"state,omitempty"` + Message *string `json:"message,omitempty"` +} + +// ManifestStatusApplyConfiguration constructs a declarative configuration of the ManifestStatus type for use with +// apply. +func ManifestStatus() *ManifestStatusApplyConfiguration { + return &ManifestStatusApplyConfiguration{} +} + +// WithState sets the State field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the State field is set to the value of the last call. +func (b *ManifestStatusApplyConfiguration) WithState(value string) *ManifestStatusApplyConfiguration { + b.State = &value + return b +} + +// WithMessage sets the Message field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Message field is set to the value of the last call. +func (b *ManifestStatusApplyConfiguration) WithMessage(value string) *ManifestStatusApplyConfiguration { + b.Message = &value + return b +} diff --git a/pkg/client/applyconfiguration/akash.network/v2beta1/manifeststorageparams.go b/pkg/client/applyconfiguration/akash.network/v2beta1/manifeststorageparams.go new file mode 100644 index 000000000..336bab9ce --- /dev/null +++ b/pkg/client/applyconfiguration/akash.network/v2beta1/manifeststorageparams.go @@ -0,0 +1,57 @@ +/* +Copyright The Akash Network Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by applyconfiguration-gen. DO NOT EDIT. + +package v2beta1 + +// ManifestStorageParamsApplyConfiguration represents a declarative configuration of the ManifestStorageParams type for use +// with apply. +type ManifestStorageParamsApplyConfiguration struct { + Name *string `json:"name,omitempty"` + Mount *string `json:"mount,omitempty"` + ReadOnly *bool `json:"readOnly,omitempty"` +} + +// ManifestStorageParamsApplyConfiguration constructs a declarative configuration of the ManifestStorageParams type for use with +// apply. +func ManifestStorageParams() *ManifestStorageParamsApplyConfiguration { + return &ManifestStorageParamsApplyConfiguration{} +} + +// WithName sets the Name field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Name field is set to the value of the last call. +func (b *ManifestStorageParamsApplyConfiguration) WithName(value string) *ManifestStorageParamsApplyConfiguration { + b.Name = &value + return b +} + +// WithMount sets the Mount field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Mount field is set to the value of the last call. +func (b *ManifestStorageParamsApplyConfiguration) WithMount(value string) *ManifestStorageParamsApplyConfiguration { + b.Mount = &value + return b +} + +// WithReadOnly sets the ReadOnly field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the ReadOnly field is set to the value of the last call. +func (b *ManifestStorageParamsApplyConfiguration) WithReadOnly(value bool) *ManifestStorageParamsApplyConfiguration { + b.ReadOnly = &value + return b +} diff --git a/pkg/client/applyconfiguration/akash.network/v2beta1/providerhost.go b/pkg/client/applyconfiguration/akash.network/v2beta1/providerhost.go new file mode 100644 index 000000000..aea6c163b --- /dev/null +++ b/pkg/client/applyconfiguration/akash.network/v2beta1/providerhost.go @@ -0,0 +1,225 @@ +/* +Copyright The Akash Network Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by applyconfiguration-gen. DO NOT EDIT. + +package v2beta1 + +import ( + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + types "k8s.io/apimachinery/pkg/types" + v1 "k8s.io/client-go/applyconfigurations/meta/v1" +) + +// ProviderHostApplyConfiguration represents a declarative configuration of the ProviderHost type for use +// with apply. +type ProviderHostApplyConfiguration struct { + v1.TypeMetaApplyConfiguration `json:",inline"` + *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` + Spec *ProviderHostSpecApplyConfiguration `json:"spec,omitempty"` + Status *ProviderHostStatusApplyConfiguration `json:"status,omitempty"` +} + +// ProviderHost constructs a declarative configuration of the ProviderHost type for use with +// apply. +func ProviderHost(name, namespace string) *ProviderHostApplyConfiguration { + b := &ProviderHostApplyConfiguration{} + b.WithName(name) + b.WithNamespace(namespace) + b.WithKind("ProviderHost") + b.WithAPIVersion("akash.network/v2beta1") + return b +} + +// WithKind sets the Kind field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Kind field is set to the value of the last call. +func (b *ProviderHostApplyConfiguration) WithKind(value string) *ProviderHostApplyConfiguration { + b.TypeMetaApplyConfiguration.Kind = &value + return b +} + +// WithAPIVersion sets the APIVersion field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the APIVersion field is set to the value of the last call. +func (b *ProviderHostApplyConfiguration) WithAPIVersion(value string) *ProviderHostApplyConfiguration { + b.TypeMetaApplyConfiguration.APIVersion = &value + return b +} + +// WithName sets the Name field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Name field is set to the value of the last call. +func (b *ProviderHostApplyConfiguration) WithName(value string) *ProviderHostApplyConfiguration { + b.ensureObjectMetaApplyConfigurationExists() + b.ObjectMetaApplyConfiguration.Name = &value + return b +} + +// WithGenerateName sets the GenerateName field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the GenerateName field is set to the value of the last call. +func (b *ProviderHostApplyConfiguration) WithGenerateName(value string) *ProviderHostApplyConfiguration { + b.ensureObjectMetaApplyConfigurationExists() + b.ObjectMetaApplyConfiguration.GenerateName = &value + return b +} + +// WithNamespace sets the Namespace field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Namespace field is set to the value of the last call. +func (b *ProviderHostApplyConfiguration) WithNamespace(value string) *ProviderHostApplyConfiguration { + b.ensureObjectMetaApplyConfigurationExists() + b.ObjectMetaApplyConfiguration.Namespace = &value + return b +} + +// WithUID sets the UID field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the UID field is set to the value of the last call. +func (b *ProviderHostApplyConfiguration) WithUID(value types.UID) *ProviderHostApplyConfiguration { + b.ensureObjectMetaApplyConfigurationExists() + b.ObjectMetaApplyConfiguration.UID = &value + return b +} + +// WithResourceVersion sets the ResourceVersion field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the ResourceVersion field is set to the value of the last call. +func (b *ProviderHostApplyConfiguration) WithResourceVersion(value string) *ProviderHostApplyConfiguration { + b.ensureObjectMetaApplyConfigurationExists() + b.ObjectMetaApplyConfiguration.ResourceVersion = &value + return b +} + +// WithGeneration sets the Generation field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Generation field is set to the value of the last call. +func (b *ProviderHostApplyConfiguration) WithGeneration(value int64) *ProviderHostApplyConfiguration { + b.ensureObjectMetaApplyConfigurationExists() + b.ObjectMetaApplyConfiguration.Generation = &value + return b +} + +// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the CreationTimestamp field is set to the value of the last call. +func (b *ProviderHostApplyConfiguration) WithCreationTimestamp(value metav1.Time) *ProviderHostApplyConfiguration { + b.ensureObjectMetaApplyConfigurationExists() + b.ObjectMetaApplyConfiguration.CreationTimestamp = &value + return b +} + +// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the DeletionTimestamp field is set to the value of the last call. +func (b *ProviderHostApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *ProviderHostApplyConfiguration { + b.ensureObjectMetaApplyConfigurationExists() + b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value + return b +} + +// WithDeletionGracePeriodSeconds sets the DeletionGracePeriodSeconds field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call. +func (b *ProviderHostApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *ProviderHostApplyConfiguration { + b.ensureObjectMetaApplyConfigurationExists() + b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value + return b +} + +// WithLabels puts the entries into the Labels field in the declarative configuration +// and returns the receiver, so that objects can be build by chaining "With" function invocations. +// If called multiple times, the entries provided by each call will be put on the Labels field, +// overwriting an existing map entries in Labels field with the same key. +func (b *ProviderHostApplyConfiguration) WithLabels(entries map[string]string) *ProviderHostApplyConfiguration { + b.ensureObjectMetaApplyConfigurationExists() + if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 { + b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries)) + } + for k, v := range entries { + b.ObjectMetaApplyConfiguration.Labels[k] = v + } + return b +} + +// WithAnnotations puts the entries into the Annotations field in the declarative configuration +// and returns the receiver, so that objects can be build by chaining "With" function invocations. +// If called multiple times, the entries provided by each call will be put on the Annotations field, +// overwriting an existing map entries in Annotations field with the same key. +func (b *ProviderHostApplyConfiguration) WithAnnotations(entries map[string]string) *ProviderHostApplyConfiguration { + b.ensureObjectMetaApplyConfigurationExists() + if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 { + b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries)) + } + for k, v := range entries { + b.ObjectMetaApplyConfiguration.Annotations[k] = v + } + return b +} + +// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration +// and returns the receiver, so that objects can be build by chaining "With" function invocations. +// If called multiple times, values provided by each call will be appended to the OwnerReferences field. +func (b *ProviderHostApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *ProviderHostApplyConfiguration { + b.ensureObjectMetaApplyConfigurationExists() + for i := range values { + if values[i] == nil { + panic("nil value passed to WithOwnerReferences") + } + b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i]) + } + return b +} + +// WithFinalizers adds the given value to the Finalizers field in the declarative configuration +// and returns the receiver, so that objects can be build by chaining "With" function invocations. +// If called multiple times, values provided by each call will be appended to the Finalizers field. +func (b *ProviderHostApplyConfiguration) WithFinalizers(values ...string) *ProviderHostApplyConfiguration { + b.ensureObjectMetaApplyConfigurationExists() + for i := range values { + b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i]) + } + return b +} + +func (b *ProviderHostApplyConfiguration) ensureObjectMetaApplyConfigurationExists() { + if b.ObjectMetaApplyConfiguration == nil { + b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{} + } +} + +// WithSpec sets the Spec field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Spec field is set to the value of the last call. +func (b *ProviderHostApplyConfiguration) WithSpec(value *ProviderHostSpecApplyConfiguration) *ProviderHostApplyConfiguration { + b.Spec = value + return b +} + +// WithStatus sets the Status field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Status field is set to the value of the last call. +func (b *ProviderHostApplyConfiguration) WithStatus(value *ProviderHostStatusApplyConfiguration) *ProviderHostApplyConfiguration { + b.Status = value + return b +} + +// GetName retrieves the value of the Name field in the declarative configuration. +func (b *ProviderHostApplyConfiguration) GetName() *string { + b.ensureObjectMetaApplyConfigurationExists() + return b.ObjectMetaApplyConfiguration.Name +} diff --git a/pkg/client/applyconfiguration/akash.network/v2beta1/providerhostspec.go b/pkg/client/applyconfiguration/akash.network/v2beta1/providerhostspec.go new file mode 100644 index 000000000..b1b0a642f --- /dev/null +++ b/pkg/client/applyconfiguration/akash.network/v2beta1/providerhostspec.go @@ -0,0 +1,102 @@ +/* +Copyright The Akash Network Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by applyconfiguration-gen. DO NOT EDIT. + +package v2beta1 + +// ProviderHostSpecApplyConfiguration represents a declarative configuration of the ProviderHostSpec type for use +// with apply. +type ProviderHostSpecApplyConfiguration struct { + Owner *string `json:"owner,omitempty"` + Provider *string `json:"provider,omitempty"` + Hostname *string `json:"hostname,omitempty"` + Dseq *uint64 `json:"dseq,omitempty"` + Gseq *uint32 `json:"gseq,omitempty"` + Oseq *uint32 `json:"oseq,omitempty"` + ServiceName *string `json:"service_name,omitempty"` + ExternalPort *uint32 `json:"external_port,omitempty"` +} + +// ProviderHostSpecApplyConfiguration constructs a declarative configuration of the ProviderHostSpec type for use with +// apply. +func ProviderHostSpec() *ProviderHostSpecApplyConfiguration { + return &ProviderHostSpecApplyConfiguration{} +} + +// WithOwner sets the Owner field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Owner field is set to the value of the last call. +func (b *ProviderHostSpecApplyConfiguration) WithOwner(value string) *ProviderHostSpecApplyConfiguration { + b.Owner = &value + return b +} + +// WithProvider sets the Provider field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Provider field is set to the value of the last call. +func (b *ProviderHostSpecApplyConfiguration) WithProvider(value string) *ProviderHostSpecApplyConfiguration { + b.Provider = &value + return b +} + +// WithHostname sets the Hostname field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Hostname field is set to the value of the last call. +func (b *ProviderHostSpecApplyConfiguration) WithHostname(value string) *ProviderHostSpecApplyConfiguration { + b.Hostname = &value + return b +} + +// WithDseq sets the Dseq field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Dseq field is set to the value of the last call. +func (b *ProviderHostSpecApplyConfiguration) WithDseq(value uint64) *ProviderHostSpecApplyConfiguration { + b.Dseq = &value + return b +} + +// WithGseq sets the Gseq field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Gseq field is set to the value of the last call. +func (b *ProviderHostSpecApplyConfiguration) WithGseq(value uint32) *ProviderHostSpecApplyConfiguration { + b.Gseq = &value + return b +} + +// WithOseq sets the Oseq field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Oseq field is set to the value of the last call. +func (b *ProviderHostSpecApplyConfiguration) WithOseq(value uint32) *ProviderHostSpecApplyConfiguration { + b.Oseq = &value + return b +} + +// WithServiceName sets the ServiceName field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the ServiceName field is set to the value of the last call. +func (b *ProviderHostSpecApplyConfiguration) WithServiceName(value string) *ProviderHostSpecApplyConfiguration { + b.ServiceName = &value + return b +} + +// WithExternalPort sets the ExternalPort field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the ExternalPort field is set to the value of the last call. +func (b *ProviderHostSpecApplyConfiguration) WithExternalPort(value uint32) *ProviderHostSpecApplyConfiguration { + b.ExternalPort = &value + return b +} diff --git a/pkg/client/applyconfiguration/akash.network/v2beta1/providerhoststatus.go b/pkg/client/applyconfiguration/akash.network/v2beta1/providerhoststatus.go new file mode 100644 index 000000000..6962a09b9 --- /dev/null +++ b/pkg/client/applyconfiguration/akash.network/v2beta1/providerhoststatus.go @@ -0,0 +1,48 @@ +/* +Copyright The Akash Network Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by applyconfiguration-gen. DO NOT EDIT. + +package v2beta1 + +// ProviderHostStatusApplyConfiguration represents a declarative configuration of the ProviderHostStatus type for use +// with apply. +type ProviderHostStatusApplyConfiguration struct { + State *string `json:"state,omitempty"` + Message *string `json:"message,omitempty"` +} + +// ProviderHostStatusApplyConfiguration constructs a declarative configuration of the ProviderHostStatus type for use with +// apply. +func ProviderHostStatus() *ProviderHostStatusApplyConfiguration { + return &ProviderHostStatusApplyConfiguration{} +} + +// WithState sets the State field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the State field is set to the value of the last call. +func (b *ProviderHostStatusApplyConfiguration) WithState(value string) *ProviderHostStatusApplyConfiguration { + b.State = &value + return b +} + +// WithMessage sets the Message field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Message field is set to the value of the last call. +func (b *ProviderHostStatusApplyConfiguration) WithMessage(value string) *ProviderHostStatusApplyConfiguration { + b.Message = &value + return b +} diff --git a/pkg/client/applyconfiguration/akash.network/v2beta1/providerleasedip.go b/pkg/client/applyconfiguration/akash.network/v2beta1/providerleasedip.go new file mode 100644 index 000000000..064155dad --- /dev/null +++ b/pkg/client/applyconfiguration/akash.network/v2beta1/providerleasedip.go @@ -0,0 +1,225 @@ +/* +Copyright The Akash Network Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by applyconfiguration-gen. DO NOT EDIT. + +package v2beta1 + +import ( + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + types "k8s.io/apimachinery/pkg/types" + v1 "k8s.io/client-go/applyconfigurations/meta/v1" +) + +// ProviderLeasedIPApplyConfiguration represents a declarative configuration of the ProviderLeasedIP type for use +// with apply. +type ProviderLeasedIPApplyConfiguration struct { + v1.TypeMetaApplyConfiguration `json:",inline"` + *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` + Spec *ProviderLeasedIPSpecApplyConfiguration `json:"spec,omitempty"` + Status *ProviderLeasedIPStatusApplyConfiguration `json:"status,omitempty"` +} + +// ProviderLeasedIP constructs a declarative configuration of the ProviderLeasedIP type for use with +// apply. +func ProviderLeasedIP(name, namespace string) *ProviderLeasedIPApplyConfiguration { + b := &ProviderLeasedIPApplyConfiguration{} + b.WithName(name) + b.WithNamespace(namespace) + b.WithKind("ProviderLeasedIP") + b.WithAPIVersion("akash.network/v2beta1") + return b +} + +// WithKind sets the Kind field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Kind field is set to the value of the last call. +func (b *ProviderLeasedIPApplyConfiguration) WithKind(value string) *ProviderLeasedIPApplyConfiguration { + b.TypeMetaApplyConfiguration.Kind = &value + return b +} + +// WithAPIVersion sets the APIVersion field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the APIVersion field is set to the value of the last call. +func (b *ProviderLeasedIPApplyConfiguration) WithAPIVersion(value string) *ProviderLeasedIPApplyConfiguration { + b.TypeMetaApplyConfiguration.APIVersion = &value + return b +} + +// WithName sets the Name field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Name field is set to the value of the last call. +func (b *ProviderLeasedIPApplyConfiguration) WithName(value string) *ProviderLeasedIPApplyConfiguration { + b.ensureObjectMetaApplyConfigurationExists() + b.ObjectMetaApplyConfiguration.Name = &value + return b +} + +// WithGenerateName sets the GenerateName field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the GenerateName field is set to the value of the last call. +func (b *ProviderLeasedIPApplyConfiguration) WithGenerateName(value string) *ProviderLeasedIPApplyConfiguration { + b.ensureObjectMetaApplyConfigurationExists() + b.ObjectMetaApplyConfiguration.GenerateName = &value + return b +} + +// WithNamespace sets the Namespace field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Namespace field is set to the value of the last call. +func (b *ProviderLeasedIPApplyConfiguration) WithNamespace(value string) *ProviderLeasedIPApplyConfiguration { + b.ensureObjectMetaApplyConfigurationExists() + b.ObjectMetaApplyConfiguration.Namespace = &value + return b +} + +// WithUID sets the UID field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the UID field is set to the value of the last call. +func (b *ProviderLeasedIPApplyConfiguration) WithUID(value types.UID) *ProviderLeasedIPApplyConfiguration { + b.ensureObjectMetaApplyConfigurationExists() + b.ObjectMetaApplyConfiguration.UID = &value + return b +} + +// WithResourceVersion sets the ResourceVersion field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the ResourceVersion field is set to the value of the last call. +func (b *ProviderLeasedIPApplyConfiguration) WithResourceVersion(value string) *ProviderLeasedIPApplyConfiguration { + b.ensureObjectMetaApplyConfigurationExists() + b.ObjectMetaApplyConfiguration.ResourceVersion = &value + return b +} + +// WithGeneration sets the Generation field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Generation field is set to the value of the last call. +func (b *ProviderLeasedIPApplyConfiguration) WithGeneration(value int64) *ProviderLeasedIPApplyConfiguration { + b.ensureObjectMetaApplyConfigurationExists() + b.ObjectMetaApplyConfiguration.Generation = &value + return b +} + +// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the CreationTimestamp field is set to the value of the last call. +func (b *ProviderLeasedIPApplyConfiguration) WithCreationTimestamp(value metav1.Time) *ProviderLeasedIPApplyConfiguration { + b.ensureObjectMetaApplyConfigurationExists() + b.ObjectMetaApplyConfiguration.CreationTimestamp = &value + return b +} + +// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the DeletionTimestamp field is set to the value of the last call. +func (b *ProviderLeasedIPApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *ProviderLeasedIPApplyConfiguration { + b.ensureObjectMetaApplyConfigurationExists() + b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value + return b +} + +// WithDeletionGracePeriodSeconds sets the DeletionGracePeriodSeconds field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call. +func (b *ProviderLeasedIPApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *ProviderLeasedIPApplyConfiguration { + b.ensureObjectMetaApplyConfigurationExists() + b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value + return b +} + +// WithLabels puts the entries into the Labels field in the declarative configuration +// and returns the receiver, so that objects can be build by chaining "With" function invocations. +// If called multiple times, the entries provided by each call will be put on the Labels field, +// overwriting an existing map entries in Labels field with the same key. +func (b *ProviderLeasedIPApplyConfiguration) WithLabels(entries map[string]string) *ProviderLeasedIPApplyConfiguration { + b.ensureObjectMetaApplyConfigurationExists() + if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 { + b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries)) + } + for k, v := range entries { + b.ObjectMetaApplyConfiguration.Labels[k] = v + } + return b +} + +// WithAnnotations puts the entries into the Annotations field in the declarative configuration +// and returns the receiver, so that objects can be build by chaining "With" function invocations. +// If called multiple times, the entries provided by each call will be put on the Annotations field, +// overwriting an existing map entries in Annotations field with the same key. +func (b *ProviderLeasedIPApplyConfiguration) WithAnnotations(entries map[string]string) *ProviderLeasedIPApplyConfiguration { + b.ensureObjectMetaApplyConfigurationExists() + if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 { + b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries)) + } + for k, v := range entries { + b.ObjectMetaApplyConfiguration.Annotations[k] = v + } + return b +} + +// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration +// and returns the receiver, so that objects can be build by chaining "With" function invocations. +// If called multiple times, values provided by each call will be appended to the OwnerReferences field. +func (b *ProviderLeasedIPApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *ProviderLeasedIPApplyConfiguration { + b.ensureObjectMetaApplyConfigurationExists() + for i := range values { + if values[i] == nil { + panic("nil value passed to WithOwnerReferences") + } + b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i]) + } + return b +} + +// WithFinalizers adds the given value to the Finalizers field in the declarative configuration +// and returns the receiver, so that objects can be build by chaining "With" function invocations. +// If called multiple times, values provided by each call will be appended to the Finalizers field. +func (b *ProviderLeasedIPApplyConfiguration) WithFinalizers(values ...string) *ProviderLeasedIPApplyConfiguration { + b.ensureObjectMetaApplyConfigurationExists() + for i := range values { + b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i]) + } + return b +} + +func (b *ProviderLeasedIPApplyConfiguration) ensureObjectMetaApplyConfigurationExists() { + if b.ObjectMetaApplyConfiguration == nil { + b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{} + } +} + +// WithSpec sets the Spec field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Spec field is set to the value of the last call. +func (b *ProviderLeasedIPApplyConfiguration) WithSpec(value *ProviderLeasedIPSpecApplyConfiguration) *ProviderLeasedIPApplyConfiguration { + b.Spec = value + return b +} + +// WithStatus sets the Status field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Status field is set to the value of the last call. +func (b *ProviderLeasedIPApplyConfiguration) WithStatus(value *ProviderLeasedIPStatusApplyConfiguration) *ProviderLeasedIPApplyConfiguration { + b.Status = value + return b +} + +// GetName retrieves the value of the Name field in the declarative configuration. +func (b *ProviderLeasedIPApplyConfiguration) GetName() *string { + b.ensureObjectMetaApplyConfigurationExists() + return b.ObjectMetaApplyConfiguration.Name +} diff --git a/pkg/client/applyconfiguration/akash.network/v2beta1/providerleasedipspec.go b/pkg/client/applyconfiguration/akash.network/v2beta1/providerleasedipspec.go new file mode 100644 index 000000000..467403ebb --- /dev/null +++ b/pkg/client/applyconfiguration/akash.network/v2beta1/providerleasedipspec.go @@ -0,0 +1,84 @@ +/* +Copyright The Akash Network Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by applyconfiguration-gen. DO NOT EDIT. + +package v2beta1 + +// ProviderLeasedIPSpecApplyConfiguration represents a declarative configuration of the ProviderLeasedIPSpec type for use +// with apply. +type ProviderLeasedIPSpecApplyConfiguration struct { + LeaseID *LeaseIDApplyConfiguration `json:"lease_id,omitempty"` + ServiceName *string `json:"service_name,omitempty"` + Port *uint32 `json:"port,omitempty"` + ExternalPort *uint32 `json:"external_port,omitempty"` + SharingKey *string `json:"sharing_key,omitempty"` + Protocol *string `json:"protocol,omitempty"` +} + +// ProviderLeasedIPSpecApplyConfiguration constructs a declarative configuration of the ProviderLeasedIPSpec type for use with +// apply. +func ProviderLeasedIPSpec() *ProviderLeasedIPSpecApplyConfiguration { + return &ProviderLeasedIPSpecApplyConfiguration{} +} + +// WithLeaseID sets the LeaseID field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the LeaseID field is set to the value of the last call. +func (b *ProviderLeasedIPSpecApplyConfiguration) WithLeaseID(value *LeaseIDApplyConfiguration) *ProviderLeasedIPSpecApplyConfiguration { + b.LeaseID = value + return b +} + +// WithServiceName sets the ServiceName field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the ServiceName field is set to the value of the last call. +func (b *ProviderLeasedIPSpecApplyConfiguration) WithServiceName(value string) *ProviderLeasedIPSpecApplyConfiguration { + b.ServiceName = &value + return b +} + +// WithPort sets the Port field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Port field is set to the value of the last call. +func (b *ProviderLeasedIPSpecApplyConfiguration) WithPort(value uint32) *ProviderLeasedIPSpecApplyConfiguration { + b.Port = &value + return b +} + +// WithExternalPort sets the ExternalPort field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the ExternalPort field is set to the value of the last call. +func (b *ProviderLeasedIPSpecApplyConfiguration) WithExternalPort(value uint32) *ProviderLeasedIPSpecApplyConfiguration { + b.ExternalPort = &value + return b +} + +// WithSharingKey sets the SharingKey field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the SharingKey field is set to the value of the last call. +func (b *ProviderLeasedIPSpecApplyConfiguration) WithSharingKey(value string) *ProviderLeasedIPSpecApplyConfiguration { + b.SharingKey = &value + return b +} + +// WithProtocol sets the Protocol field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Protocol field is set to the value of the last call. +func (b *ProviderLeasedIPSpecApplyConfiguration) WithProtocol(value string) *ProviderLeasedIPSpecApplyConfiguration { + b.Protocol = &value + return b +} diff --git a/pkg/client/applyconfiguration/akash.network/v2beta1/providerleasedipstatus.go b/pkg/client/applyconfiguration/akash.network/v2beta1/providerleasedipstatus.go new file mode 100644 index 000000000..4dccfe877 --- /dev/null +++ b/pkg/client/applyconfiguration/akash.network/v2beta1/providerleasedipstatus.go @@ -0,0 +1,48 @@ +/* +Copyright The Akash Network Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by applyconfiguration-gen. DO NOT EDIT. + +package v2beta1 + +// ProviderLeasedIPStatusApplyConfiguration represents a declarative configuration of the ProviderLeasedIPStatus type for use +// with apply. +type ProviderLeasedIPStatusApplyConfiguration struct { + State *string `json:"state,omitempty"` + Message *string `json:"message,omitempty"` +} + +// ProviderLeasedIPStatusApplyConfiguration constructs a declarative configuration of the ProviderLeasedIPStatus type for use with +// apply. +func ProviderLeasedIPStatus() *ProviderLeasedIPStatusApplyConfiguration { + return &ProviderLeasedIPStatusApplyConfiguration{} +} + +// WithState sets the State field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the State field is set to the value of the last call. +func (b *ProviderLeasedIPStatusApplyConfiguration) WithState(value string) *ProviderLeasedIPStatusApplyConfiguration { + b.State = &value + return b +} + +// WithMessage sets the Message field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Message field is set to the value of the last call. +func (b *ProviderLeasedIPStatusApplyConfiguration) WithMessage(value string) *ProviderLeasedIPStatusApplyConfiguration { + b.Message = &value + return b +} diff --git a/pkg/client/applyconfiguration/akash.network/v2beta1/resourcepair.go b/pkg/client/applyconfiguration/akash.network/v2beta1/resourcepair.go new file mode 100644 index 000000000..8b2d42319 --- /dev/null +++ b/pkg/client/applyconfiguration/akash.network/v2beta1/resourcepair.go @@ -0,0 +1,48 @@ +/* +Copyright The Akash Network Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by applyconfiguration-gen. DO NOT EDIT. + +package v2beta1 + +// ResourcePairApplyConfiguration represents a declarative configuration of the ResourcePair type for use +// with apply. +type ResourcePairApplyConfiguration struct { + Allocatable *uint64 `json:"allocatable,omitempty"` + Allocated *uint64 `json:"allocated,omitempty"` +} + +// ResourcePairApplyConfiguration constructs a declarative configuration of the ResourcePair type for use with +// apply. +func ResourcePair() *ResourcePairApplyConfiguration { + return &ResourcePairApplyConfiguration{} +} + +// WithAllocatable sets the Allocatable field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Allocatable field is set to the value of the last call. +func (b *ResourcePairApplyConfiguration) WithAllocatable(value uint64) *ResourcePairApplyConfiguration { + b.Allocatable = &value + return b +} + +// WithAllocated sets the Allocated field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Allocated field is set to the value of the last call. +func (b *ResourcePairApplyConfiguration) WithAllocated(value uint64) *ResourcePairApplyConfiguration { + b.Allocated = &value + return b +} diff --git a/pkg/client/applyconfiguration/akash.network/v2beta1/resourceunits.go b/pkg/client/applyconfiguration/akash.network/v2beta1/resourceunits.go new file mode 100644 index 000000000..629569102 --- /dev/null +++ b/pkg/client/applyconfiguration/akash.network/v2beta1/resourceunits.go @@ -0,0 +1,62 @@ +/* +Copyright The Akash Network Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by applyconfiguration-gen. DO NOT EDIT. + +package v2beta1 + +// ResourceUnitsApplyConfiguration represents a declarative configuration of the ResourceUnits type for use +// with apply. +type ResourceUnitsApplyConfiguration struct { + CPU *uint32 `json:"cpu,omitempty"` + Memory *string `json:"memory,omitempty"` + Storage []ManifestServiceStorageApplyConfiguration `json:"storage,omitempty"` +} + +// ResourceUnitsApplyConfiguration constructs a declarative configuration of the ResourceUnits type for use with +// apply. +func ResourceUnits() *ResourceUnitsApplyConfiguration { + return &ResourceUnitsApplyConfiguration{} +} + +// WithCPU sets the CPU field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the CPU field is set to the value of the last call. +func (b *ResourceUnitsApplyConfiguration) WithCPU(value uint32) *ResourceUnitsApplyConfiguration { + b.CPU = &value + return b +} + +// WithMemory sets the Memory field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Memory field is set to the value of the last call. +func (b *ResourceUnitsApplyConfiguration) WithMemory(value string) *ResourceUnitsApplyConfiguration { + b.Memory = &value + return b +} + +// WithStorage adds the given value to the Storage field in the declarative configuration +// and returns the receiver, so that objects can be build by chaining "With" function invocations. +// If called multiple times, values provided by each call will be appended to the Storage field. +func (b *ResourceUnitsApplyConfiguration) WithStorage(values ...*ManifestServiceStorageApplyConfiguration) *ResourceUnitsApplyConfiguration { + for i := range values { + if values[i] == nil { + panic("nil value passed to WithStorage") + } + b.Storage = append(b.Storage, *values[i]) + } + return b +} diff --git a/pkg/client/applyconfiguration/akash.network/v2beta2/inventory.go b/pkg/client/applyconfiguration/akash.network/v2beta2/inventory.go new file mode 100644 index 000000000..27280309d --- /dev/null +++ b/pkg/client/applyconfiguration/akash.network/v2beta2/inventory.go @@ -0,0 +1,224 @@ +/* +Copyright The Akash Network Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by applyconfiguration-gen. DO NOT EDIT. + +package v2beta2 + +import ( + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + types "k8s.io/apimachinery/pkg/types" + v1 "k8s.io/client-go/applyconfigurations/meta/v1" +) + +// InventoryApplyConfiguration represents a declarative configuration of the Inventory type for use +// with apply. +type InventoryApplyConfiguration struct { + v1.TypeMetaApplyConfiguration `json:",inline"` + *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` + Spec *InventorySpecApplyConfiguration `json:"spec,omitempty"` + Status *InventoryStatusApplyConfiguration `json:"status,omitempty"` +} + +// Inventory constructs a declarative configuration of the Inventory type for use with +// apply. +func Inventory(name string) *InventoryApplyConfiguration { + b := &InventoryApplyConfiguration{} + b.WithName(name) + b.WithKind("Inventory") + b.WithAPIVersion("akash.network/v2beta2") + return b +} + +// WithKind sets the Kind field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Kind field is set to the value of the last call. +func (b *InventoryApplyConfiguration) WithKind(value string) *InventoryApplyConfiguration { + b.TypeMetaApplyConfiguration.Kind = &value + return b +} + +// WithAPIVersion sets the APIVersion field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the APIVersion field is set to the value of the last call. +func (b *InventoryApplyConfiguration) WithAPIVersion(value string) *InventoryApplyConfiguration { + b.TypeMetaApplyConfiguration.APIVersion = &value + return b +} + +// WithName sets the Name field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Name field is set to the value of the last call. +func (b *InventoryApplyConfiguration) WithName(value string) *InventoryApplyConfiguration { + b.ensureObjectMetaApplyConfigurationExists() + b.ObjectMetaApplyConfiguration.Name = &value + return b +} + +// WithGenerateName sets the GenerateName field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the GenerateName field is set to the value of the last call. +func (b *InventoryApplyConfiguration) WithGenerateName(value string) *InventoryApplyConfiguration { + b.ensureObjectMetaApplyConfigurationExists() + b.ObjectMetaApplyConfiguration.GenerateName = &value + return b +} + +// WithNamespace sets the Namespace field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Namespace field is set to the value of the last call. +func (b *InventoryApplyConfiguration) WithNamespace(value string) *InventoryApplyConfiguration { + b.ensureObjectMetaApplyConfigurationExists() + b.ObjectMetaApplyConfiguration.Namespace = &value + return b +} + +// WithUID sets the UID field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the UID field is set to the value of the last call. +func (b *InventoryApplyConfiguration) WithUID(value types.UID) *InventoryApplyConfiguration { + b.ensureObjectMetaApplyConfigurationExists() + b.ObjectMetaApplyConfiguration.UID = &value + return b +} + +// WithResourceVersion sets the ResourceVersion field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the ResourceVersion field is set to the value of the last call. +func (b *InventoryApplyConfiguration) WithResourceVersion(value string) *InventoryApplyConfiguration { + b.ensureObjectMetaApplyConfigurationExists() + b.ObjectMetaApplyConfiguration.ResourceVersion = &value + return b +} + +// WithGeneration sets the Generation field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Generation field is set to the value of the last call. +func (b *InventoryApplyConfiguration) WithGeneration(value int64) *InventoryApplyConfiguration { + b.ensureObjectMetaApplyConfigurationExists() + b.ObjectMetaApplyConfiguration.Generation = &value + return b +} + +// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the CreationTimestamp field is set to the value of the last call. +func (b *InventoryApplyConfiguration) WithCreationTimestamp(value metav1.Time) *InventoryApplyConfiguration { + b.ensureObjectMetaApplyConfigurationExists() + b.ObjectMetaApplyConfiguration.CreationTimestamp = &value + return b +} + +// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the DeletionTimestamp field is set to the value of the last call. +func (b *InventoryApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *InventoryApplyConfiguration { + b.ensureObjectMetaApplyConfigurationExists() + b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value + return b +} + +// WithDeletionGracePeriodSeconds sets the DeletionGracePeriodSeconds field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call. +func (b *InventoryApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *InventoryApplyConfiguration { + b.ensureObjectMetaApplyConfigurationExists() + b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value + return b +} + +// WithLabels puts the entries into the Labels field in the declarative configuration +// and returns the receiver, so that objects can be build by chaining "With" function invocations. +// If called multiple times, the entries provided by each call will be put on the Labels field, +// overwriting an existing map entries in Labels field with the same key. +func (b *InventoryApplyConfiguration) WithLabels(entries map[string]string) *InventoryApplyConfiguration { + b.ensureObjectMetaApplyConfigurationExists() + if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 { + b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries)) + } + for k, v := range entries { + b.ObjectMetaApplyConfiguration.Labels[k] = v + } + return b +} + +// WithAnnotations puts the entries into the Annotations field in the declarative configuration +// and returns the receiver, so that objects can be build by chaining "With" function invocations. +// If called multiple times, the entries provided by each call will be put on the Annotations field, +// overwriting an existing map entries in Annotations field with the same key. +func (b *InventoryApplyConfiguration) WithAnnotations(entries map[string]string) *InventoryApplyConfiguration { + b.ensureObjectMetaApplyConfigurationExists() + if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 { + b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries)) + } + for k, v := range entries { + b.ObjectMetaApplyConfiguration.Annotations[k] = v + } + return b +} + +// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration +// and returns the receiver, so that objects can be build by chaining "With" function invocations. +// If called multiple times, values provided by each call will be appended to the OwnerReferences field. +func (b *InventoryApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *InventoryApplyConfiguration { + b.ensureObjectMetaApplyConfigurationExists() + for i := range values { + if values[i] == nil { + panic("nil value passed to WithOwnerReferences") + } + b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i]) + } + return b +} + +// WithFinalizers adds the given value to the Finalizers field in the declarative configuration +// and returns the receiver, so that objects can be build by chaining "With" function invocations. +// If called multiple times, values provided by each call will be appended to the Finalizers field. +func (b *InventoryApplyConfiguration) WithFinalizers(values ...string) *InventoryApplyConfiguration { + b.ensureObjectMetaApplyConfigurationExists() + for i := range values { + b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i]) + } + return b +} + +func (b *InventoryApplyConfiguration) ensureObjectMetaApplyConfigurationExists() { + if b.ObjectMetaApplyConfiguration == nil { + b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{} + } +} + +// WithSpec sets the Spec field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Spec field is set to the value of the last call. +func (b *InventoryApplyConfiguration) WithSpec(value *InventorySpecApplyConfiguration) *InventoryApplyConfiguration { + b.Spec = value + return b +} + +// WithStatus sets the Status field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Status field is set to the value of the last call. +func (b *InventoryApplyConfiguration) WithStatus(value *InventoryStatusApplyConfiguration) *InventoryApplyConfiguration { + b.Status = value + return b +} + +// GetName retrieves the value of the Name field in the declarative configuration. +func (b *InventoryApplyConfiguration) GetName() *string { + b.ensureObjectMetaApplyConfigurationExists() + return b.ObjectMetaApplyConfiguration.Name +} diff --git a/pkg/client/applyconfiguration/akash.network/v2beta2/inventoryclusterstorage.go b/pkg/client/applyconfiguration/akash.network/v2beta2/inventoryclusterstorage.go new file mode 100644 index 000000000..c2a47e9bf --- /dev/null +++ b/pkg/client/applyconfiguration/akash.network/v2beta2/inventoryclusterstorage.go @@ -0,0 +1,56 @@ +/* +Copyright The Akash Network Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by applyconfiguration-gen. DO NOT EDIT. + +package v2beta2 + +// InventoryClusterStorageApplyConfiguration represents a declarative configuration of the InventoryClusterStorage type for use +// with apply. +type InventoryClusterStorageApplyConfiguration struct { + Class *string `json:"class,omitempty"` + ResourcePairApplyConfiguration `json:",inline"` +} + +// InventoryClusterStorageApplyConfiguration constructs a declarative configuration of the InventoryClusterStorage type for use with +// apply. +func InventoryClusterStorage() *InventoryClusterStorageApplyConfiguration { + return &InventoryClusterStorageApplyConfiguration{} +} + +// WithClass sets the Class field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Class field is set to the value of the last call. +func (b *InventoryClusterStorageApplyConfiguration) WithClass(value string) *InventoryClusterStorageApplyConfiguration { + b.Class = &value + return b +} + +// WithAllocatable sets the Allocatable field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Allocatable field is set to the value of the last call. +func (b *InventoryClusterStorageApplyConfiguration) WithAllocatable(value uint64) *InventoryClusterStorageApplyConfiguration { + b.ResourcePairApplyConfiguration.Allocatable = &value + return b +} + +// WithAllocated sets the Allocated field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Allocated field is set to the value of the last call. +func (b *InventoryClusterStorageApplyConfiguration) WithAllocated(value uint64) *InventoryClusterStorageApplyConfiguration { + b.ResourcePairApplyConfiguration.Allocated = &value + return b +} diff --git a/pkg/client/applyconfiguration/akash.network/v2beta2/inventoryrequest.go b/pkg/client/applyconfiguration/akash.network/v2beta2/inventoryrequest.go new file mode 100644 index 000000000..2cfde2f8b --- /dev/null +++ b/pkg/client/applyconfiguration/akash.network/v2beta2/inventoryrequest.go @@ -0,0 +1,224 @@ +/* +Copyright The Akash Network Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by applyconfiguration-gen. DO NOT EDIT. + +package v2beta2 + +import ( + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + types "k8s.io/apimachinery/pkg/types" + v1 "k8s.io/client-go/applyconfigurations/meta/v1" +) + +// InventoryRequestApplyConfiguration represents a declarative configuration of the InventoryRequest type for use +// with apply. +type InventoryRequestApplyConfiguration struct { + v1.TypeMetaApplyConfiguration `json:",inline"` + *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` + Spec *InventoryRequestSpecApplyConfiguration `json:"spec,omitempty"` + Status *InventoryRequestStatusApplyConfiguration `json:"status,omitempty"` +} + +// InventoryRequest constructs a declarative configuration of the InventoryRequest type for use with +// apply. +func InventoryRequest(name string) *InventoryRequestApplyConfiguration { + b := &InventoryRequestApplyConfiguration{} + b.WithName(name) + b.WithKind("InventoryRequest") + b.WithAPIVersion("akash.network/v2beta2") + return b +} + +// WithKind sets the Kind field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Kind field is set to the value of the last call. +func (b *InventoryRequestApplyConfiguration) WithKind(value string) *InventoryRequestApplyConfiguration { + b.TypeMetaApplyConfiguration.Kind = &value + return b +} + +// WithAPIVersion sets the APIVersion field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the APIVersion field is set to the value of the last call. +func (b *InventoryRequestApplyConfiguration) WithAPIVersion(value string) *InventoryRequestApplyConfiguration { + b.TypeMetaApplyConfiguration.APIVersion = &value + return b +} + +// WithName sets the Name field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Name field is set to the value of the last call. +func (b *InventoryRequestApplyConfiguration) WithName(value string) *InventoryRequestApplyConfiguration { + b.ensureObjectMetaApplyConfigurationExists() + b.ObjectMetaApplyConfiguration.Name = &value + return b +} + +// WithGenerateName sets the GenerateName field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the GenerateName field is set to the value of the last call. +func (b *InventoryRequestApplyConfiguration) WithGenerateName(value string) *InventoryRequestApplyConfiguration { + b.ensureObjectMetaApplyConfigurationExists() + b.ObjectMetaApplyConfiguration.GenerateName = &value + return b +} + +// WithNamespace sets the Namespace field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Namespace field is set to the value of the last call. +func (b *InventoryRequestApplyConfiguration) WithNamespace(value string) *InventoryRequestApplyConfiguration { + b.ensureObjectMetaApplyConfigurationExists() + b.ObjectMetaApplyConfiguration.Namespace = &value + return b +} + +// WithUID sets the UID field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the UID field is set to the value of the last call. +func (b *InventoryRequestApplyConfiguration) WithUID(value types.UID) *InventoryRequestApplyConfiguration { + b.ensureObjectMetaApplyConfigurationExists() + b.ObjectMetaApplyConfiguration.UID = &value + return b +} + +// WithResourceVersion sets the ResourceVersion field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the ResourceVersion field is set to the value of the last call. +func (b *InventoryRequestApplyConfiguration) WithResourceVersion(value string) *InventoryRequestApplyConfiguration { + b.ensureObjectMetaApplyConfigurationExists() + b.ObjectMetaApplyConfiguration.ResourceVersion = &value + return b +} + +// WithGeneration sets the Generation field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Generation field is set to the value of the last call. +func (b *InventoryRequestApplyConfiguration) WithGeneration(value int64) *InventoryRequestApplyConfiguration { + b.ensureObjectMetaApplyConfigurationExists() + b.ObjectMetaApplyConfiguration.Generation = &value + return b +} + +// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the CreationTimestamp field is set to the value of the last call. +func (b *InventoryRequestApplyConfiguration) WithCreationTimestamp(value metav1.Time) *InventoryRequestApplyConfiguration { + b.ensureObjectMetaApplyConfigurationExists() + b.ObjectMetaApplyConfiguration.CreationTimestamp = &value + return b +} + +// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the DeletionTimestamp field is set to the value of the last call. +func (b *InventoryRequestApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *InventoryRequestApplyConfiguration { + b.ensureObjectMetaApplyConfigurationExists() + b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value + return b +} + +// WithDeletionGracePeriodSeconds sets the DeletionGracePeriodSeconds field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call. +func (b *InventoryRequestApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *InventoryRequestApplyConfiguration { + b.ensureObjectMetaApplyConfigurationExists() + b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value + return b +} + +// WithLabels puts the entries into the Labels field in the declarative configuration +// and returns the receiver, so that objects can be build by chaining "With" function invocations. +// If called multiple times, the entries provided by each call will be put on the Labels field, +// overwriting an existing map entries in Labels field with the same key. +func (b *InventoryRequestApplyConfiguration) WithLabels(entries map[string]string) *InventoryRequestApplyConfiguration { + b.ensureObjectMetaApplyConfigurationExists() + if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 { + b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries)) + } + for k, v := range entries { + b.ObjectMetaApplyConfiguration.Labels[k] = v + } + return b +} + +// WithAnnotations puts the entries into the Annotations field in the declarative configuration +// and returns the receiver, so that objects can be build by chaining "With" function invocations. +// If called multiple times, the entries provided by each call will be put on the Annotations field, +// overwriting an existing map entries in Annotations field with the same key. +func (b *InventoryRequestApplyConfiguration) WithAnnotations(entries map[string]string) *InventoryRequestApplyConfiguration { + b.ensureObjectMetaApplyConfigurationExists() + if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 { + b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries)) + } + for k, v := range entries { + b.ObjectMetaApplyConfiguration.Annotations[k] = v + } + return b +} + +// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration +// and returns the receiver, so that objects can be build by chaining "With" function invocations. +// If called multiple times, values provided by each call will be appended to the OwnerReferences field. +func (b *InventoryRequestApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *InventoryRequestApplyConfiguration { + b.ensureObjectMetaApplyConfigurationExists() + for i := range values { + if values[i] == nil { + panic("nil value passed to WithOwnerReferences") + } + b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i]) + } + return b +} + +// WithFinalizers adds the given value to the Finalizers field in the declarative configuration +// and returns the receiver, so that objects can be build by chaining "With" function invocations. +// If called multiple times, values provided by each call will be appended to the Finalizers field. +func (b *InventoryRequestApplyConfiguration) WithFinalizers(values ...string) *InventoryRequestApplyConfiguration { + b.ensureObjectMetaApplyConfigurationExists() + for i := range values { + b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i]) + } + return b +} + +func (b *InventoryRequestApplyConfiguration) ensureObjectMetaApplyConfigurationExists() { + if b.ObjectMetaApplyConfiguration == nil { + b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{} + } +} + +// WithSpec sets the Spec field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Spec field is set to the value of the last call. +func (b *InventoryRequestApplyConfiguration) WithSpec(value *InventoryRequestSpecApplyConfiguration) *InventoryRequestApplyConfiguration { + b.Spec = value + return b +} + +// WithStatus sets the Status field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Status field is set to the value of the last call. +func (b *InventoryRequestApplyConfiguration) WithStatus(value *InventoryRequestStatusApplyConfiguration) *InventoryRequestApplyConfiguration { + b.Status = value + return b +} + +// GetName retrieves the value of the Name field in the declarative configuration. +func (b *InventoryRequestApplyConfiguration) GetName() *string { + b.ensureObjectMetaApplyConfigurationExists() + return b.ObjectMetaApplyConfiguration.Name +} diff --git a/pkg/client/applyconfiguration/akash.network/v2beta2/inventoryrequestspec.go b/pkg/client/applyconfiguration/akash.network/v2beta2/inventoryrequestspec.go new file mode 100644 index 000000000..54ec58bf2 --- /dev/null +++ b/pkg/client/applyconfiguration/akash.network/v2beta2/inventoryrequestspec.go @@ -0,0 +1,39 @@ +/* +Copyright The Akash Network Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by applyconfiguration-gen. DO NOT EDIT. + +package v2beta2 + +// InventoryRequestSpecApplyConfiguration represents a declarative configuration of the InventoryRequestSpec type for use +// with apply. +type InventoryRequestSpecApplyConfiguration struct { + Name *string `json:"name,omitempty"` +} + +// InventoryRequestSpecApplyConfiguration constructs a declarative configuration of the InventoryRequestSpec type for use with +// apply. +func InventoryRequestSpec() *InventoryRequestSpecApplyConfiguration { + return &InventoryRequestSpecApplyConfiguration{} +} + +// WithName sets the Name field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Name field is set to the value of the last call. +func (b *InventoryRequestSpecApplyConfiguration) WithName(value string) *InventoryRequestSpecApplyConfiguration { + b.Name = &value + return b +} diff --git a/pkg/client/applyconfiguration/akash.network/v2beta2/inventoryrequeststatus.go b/pkg/client/applyconfiguration/akash.network/v2beta2/inventoryrequeststatus.go new file mode 100644 index 000000000..43a12343b --- /dev/null +++ b/pkg/client/applyconfiguration/akash.network/v2beta2/inventoryrequeststatus.go @@ -0,0 +1,48 @@ +/* +Copyright The Akash Network Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by applyconfiguration-gen. DO NOT EDIT. + +package v2beta2 + +// InventoryRequestStatusApplyConfiguration represents a declarative configuration of the InventoryRequestStatus type for use +// with apply. +type InventoryRequestStatusApplyConfiguration struct { + State *string `json:"state,omitempty"` + Message *string `json:"message,omitempty"` +} + +// InventoryRequestStatusApplyConfiguration constructs a declarative configuration of the InventoryRequestStatus type for use with +// apply. +func InventoryRequestStatus() *InventoryRequestStatusApplyConfiguration { + return &InventoryRequestStatusApplyConfiguration{} +} + +// WithState sets the State field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the State field is set to the value of the last call. +func (b *InventoryRequestStatusApplyConfiguration) WithState(value string) *InventoryRequestStatusApplyConfiguration { + b.State = &value + return b +} + +// WithMessage sets the Message field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Message field is set to the value of the last call. +func (b *InventoryRequestStatusApplyConfiguration) WithMessage(value string) *InventoryRequestStatusApplyConfiguration { + b.Message = &value + return b +} diff --git a/pkg/client/applyconfiguration/akash.network/v2beta2/inventoryspec.go b/pkg/client/applyconfiguration/akash.network/v2beta2/inventoryspec.go new file mode 100644 index 000000000..88cf1826d --- /dev/null +++ b/pkg/client/applyconfiguration/akash.network/v2beta2/inventoryspec.go @@ -0,0 +1,44 @@ +/* +Copyright The Akash Network Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by applyconfiguration-gen. DO NOT EDIT. + +package v2beta2 + +// InventorySpecApplyConfiguration represents a declarative configuration of the InventorySpec type for use +// with apply. +type InventorySpecApplyConfiguration struct { + Storage []InventoryClusterStorageApplyConfiguration `json:"storage,omitempty"` +} + +// InventorySpecApplyConfiguration constructs a declarative configuration of the InventorySpec type for use with +// apply. +func InventorySpec() *InventorySpecApplyConfiguration { + return &InventorySpecApplyConfiguration{} +} + +// WithStorage adds the given value to the Storage field in the declarative configuration +// and returns the receiver, so that objects can be build by chaining "With" function invocations. +// If called multiple times, values provided by each call will be appended to the Storage field. +func (b *InventorySpecApplyConfiguration) WithStorage(values ...*InventoryClusterStorageApplyConfiguration) *InventorySpecApplyConfiguration { + for i := range values { + if values[i] == nil { + panic("nil value passed to WithStorage") + } + b.Storage = append(b.Storage, *values[i]) + } + return b +} diff --git a/pkg/client/applyconfiguration/akash.network/v2beta2/inventorystatus.go b/pkg/client/applyconfiguration/akash.network/v2beta2/inventorystatus.go new file mode 100644 index 000000000..9ccf92358 --- /dev/null +++ b/pkg/client/applyconfiguration/akash.network/v2beta2/inventorystatus.go @@ -0,0 +1,54 @@ +/* +Copyright The Akash Network Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by applyconfiguration-gen. DO NOT EDIT. + +package v2beta2 + +import ( + akashnetworkv2beta2 "github.com/akash-network/provider/pkg/apis/akash.network/v2beta2" +) + +// InventoryStatusApplyConfiguration represents a declarative configuration of the InventoryStatus type for use +// with apply. +type InventoryStatusApplyConfiguration struct { + State *akashnetworkv2beta2.InventoryState `json:"state,omitempty"` + Messages []string `json:"message,omitempty"` +} + +// InventoryStatusApplyConfiguration constructs a declarative configuration of the InventoryStatus type for use with +// apply. +func InventoryStatus() *InventoryStatusApplyConfiguration { + return &InventoryStatusApplyConfiguration{} +} + +// WithState sets the State field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the State field is set to the value of the last call. +func (b *InventoryStatusApplyConfiguration) WithState(value akashnetworkv2beta2.InventoryState) *InventoryStatusApplyConfiguration { + b.State = &value + return b +} + +// WithMessages adds the given value to the Messages field in the declarative configuration +// and returns the receiver, so that objects can be build by chaining "With" function invocations. +// If called multiple times, values provided by each call will be appended to the Messages field. +func (b *InventoryStatusApplyConfiguration) WithMessages(values ...string) *InventoryStatusApplyConfiguration { + for i := range values { + b.Messages = append(b.Messages, values[i]) + } + return b +} diff --git a/pkg/client/applyconfiguration/akash.network/v2beta2/leaseid.go b/pkg/client/applyconfiguration/akash.network/v2beta2/leaseid.go new file mode 100644 index 000000000..47b924af6 --- /dev/null +++ b/pkg/client/applyconfiguration/akash.network/v2beta2/leaseid.go @@ -0,0 +1,75 @@ +/* +Copyright The Akash Network Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by applyconfiguration-gen. DO NOT EDIT. + +package v2beta2 + +// LeaseIDApplyConfiguration represents a declarative configuration of the LeaseID type for use +// with apply. +type LeaseIDApplyConfiguration struct { + Owner *string `json:"owner,omitempty"` + DSeq *string `json:"dseq,omitempty"` + GSeq *uint32 `json:"gseq,omitempty"` + OSeq *uint32 `json:"oseq,omitempty"` + Provider *string `json:"provider,omitempty"` +} + +// LeaseIDApplyConfiguration constructs a declarative configuration of the LeaseID type for use with +// apply. +func LeaseID() *LeaseIDApplyConfiguration { + return &LeaseIDApplyConfiguration{} +} + +// WithOwner sets the Owner field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Owner field is set to the value of the last call. +func (b *LeaseIDApplyConfiguration) WithOwner(value string) *LeaseIDApplyConfiguration { + b.Owner = &value + return b +} + +// WithDSeq sets the DSeq field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the DSeq field is set to the value of the last call. +func (b *LeaseIDApplyConfiguration) WithDSeq(value string) *LeaseIDApplyConfiguration { + b.DSeq = &value + return b +} + +// WithGSeq sets the GSeq field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the GSeq field is set to the value of the last call. +func (b *LeaseIDApplyConfiguration) WithGSeq(value uint32) *LeaseIDApplyConfiguration { + b.GSeq = &value + return b +} + +// WithOSeq sets the OSeq field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the OSeq field is set to the value of the last call. +func (b *LeaseIDApplyConfiguration) WithOSeq(value uint32) *LeaseIDApplyConfiguration { + b.OSeq = &value + return b +} + +// WithProvider sets the Provider field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Provider field is set to the value of the last call. +func (b *LeaseIDApplyConfiguration) WithProvider(value string) *LeaseIDApplyConfiguration { + b.Provider = &value + return b +} diff --git a/pkg/client/applyconfiguration/akash.network/v2beta2/manifest.go b/pkg/client/applyconfiguration/akash.network/v2beta2/manifest.go new file mode 100644 index 000000000..7b5799d29 --- /dev/null +++ b/pkg/client/applyconfiguration/akash.network/v2beta2/manifest.go @@ -0,0 +1,216 @@ +/* +Copyright The Akash Network Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by applyconfiguration-gen. DO NOT EDIT. + +package v2beta2 + +import ( + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + types "k8s.io/apimachinery/pkg/types" + v1 "k8s.io/client-go/applyconfigurations/meta/v1" +) + +// ManifestApplyConfiguration represents a declarative configuration of the Manifest type for use +// with apply. +type ManifestApplyConfiguration struct { + v1.TypeMetaApplyConfiguration `json:",inline"` + *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` + Spec *ManifestSpecApplyConfiguration `json:"spec,omitempty"` +} + +// Manifest constructs a declarative configuration of the Manifest type for use with +// apply. +func Manifest(name, namespace string) *ManifestApplyConfiguration { + b := &ManifestApplyConfiguration{} + b.WithName(name) + b.WithNamespace(namespace) + b.WithKind("Manifest") + b.WithAPIVersion("akash.network/v2beta2") + return b +} + +// WithKind sets the Kind field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Kind field is set to the value of the last call. +func (b *ManifestApplyConfiguration) WithKind(value string) *ManifestApplyConfiguration { + b.TypeMetaApplyConfiguration.Kind = &value + return b +} + +// WithAPIVersion sets the APIVersion field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the APIVersion field is set to the value of the last call. +func (b *ManifestApplyConfiguration) WithAPIVersion(value string) *ManifestApplyConfiguration { + b.TypeMetaApplyConfiguration.APIVersion = &value + return b +} + +// WithName sets the Name field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Name field is set to the value of the last call. +func (b *ManifestApplyConfiguration) WithName(value string) *ManifestApplyConfiguration { + b.ensureObjectMetaApplyConfigurationExists() + b.ObjectMetaApplyConfiguration.Name = &value + return b +} + +// WithGenerateName sets the GenerateName field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the GenerateName field is set to the value of the last call. +func (b *ManifestApplyConfiguration) WithGenerateName(value string) *ManifestApplyConfiguration { + b.ensureObjectMetaApplyConfigurationExists() + b.ObjectMetaApplyConfiguration.GenerateName = &value + return b +} + +// WithNamespace sets the Namespace field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Namespace field is set to the value of the last call. +func (b *ManifestApplyConfiguration) WithNamespace(value string) *ManifestApplyConfiguration { + b.ensureObjectMetaApplyConfigurationExists() + b.ObjectMetaApplyConfiguration.Namespace = &value + return b +} + +// WithUID sets the UID field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the UID field is set to the value of the last call. +func (b *ManifestApplyConfiguration) WithUID(value types.UID) *ManifestApplyConfiguration { + b.ensureObjectMetaApplyConfigurationExists() + b.ObjectMetaApplyConfiguration.UID = &value + return b +} + +// WithResourceVersion sets the ResourceVersion field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the ResourceVersion field is set to the value of the last call. +func (b *ManifestApplyConfiguration) WithResourceVersion(value string) *ManifestApplyConfiguration { + b.ensureObjectMetaApplyConfigurationExists() + b.ObjectMetaApplyConfiguration.ResourceVersion = &value + return b +} + +// WithGeneration sets the Generation field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Generation field is set to the value of the last call. +func (b *ManifestApplyConfiguration) WithGeneration(value int64) *ManifestApplyConfiguration { + b.ensureObjectMetaApplyConfigurationExists() + b.ObjectMetaApplyConfiguration.Generation = &value + return b +} + +// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the CreationTimestamp field is set to the value of the last call. +func (b *ManifestApplyConfiguration) WithCreationTimestamp(value metav1.Time) *ManifestApplyConfiguration { + b.ensureObjectMetaApplyConfigurationExists() + b.ObjectMetaApplyConfiguration.CreationTimestamp = &value + return b +} + +// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the DeletionTimestamp field is set to the value of the last call. +func (b *ManifestApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *ManifestApplyConfiguration { + b.ensureObjectMetaApplyConfigurationExists() + b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value + return b +} + +// WithDeletionGracePeriodSeconds sets the DeletionGracePeriodSeconds field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call. +func (b *ManifestApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *ManifestApplyConfiguration { + b.ensureObjectMetaApplyConfigurationExists() + b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value + return b +} + +// WithLabels puts the entries into the Labels field in the declarative configuration +// and returns the receiver, so that objects can be build by chaining "With" function invocations. +// If called multiple times, the entries provided by each call will be put on the Labels field, +// overwriting an existing map entries in Labels field with the same key. +func (b *ManifestApplyConfiguration) WithLabels(entries map[string]string) *ManifestApplyConfiguration { + b.ensureObjectMetaApplyConfigurationExists() + if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 { + b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries)) + } + for k, v := range entries { + b.ObjectMetaApplyConfiguration.Labels[k] = v + } + return b +} + +// WithAnnotations puts the entries into the Annotations field in the declarative configuration +// and returns the receiver, so that objects can be build by chaining "With" function invocations. +// If called multiple times, the entries provided by each call will be put on the Annotations field, +// overwriting an existing map entries in Annotations field with the same key. +func (b *ManifestApplyConfiguration) WithAnnotations(entries map[string]string) *ManifestApplyConfiguration { + b.ensureObjectMetaApplyConfigurationExists() + if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 { + b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries)) + } + for k, v := range entries { + b.ObjectMetaApplyConfiguration.Annotations[k] = v + } + return b +} + +// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration +// and returns the receiver, so that objects can be build by chaining "With" function invocations. +// If called multiple times, values provided by each call will be appended to the OwnerReferences field. +func (b *ManifestApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *ManifestApplyConfiguration { + b.ensureObjectMetaApplyConfigurationExists() + for i := range values { + if values[i] == nil { + panic("nil value passed to WithOwnerReferences") + } + b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i]) + } + return b +} + +// WithFinalizers adds the given value to the Finalizers field in the declarative configuration +// and returns the receiver, so that objects can be build by chaining "With" function invocations. +// If called multiple times, values provided by each call will be appended to the Finalizers field. +func (b *ManifestApplyConfiguration) WithFinalizers(values ...string) *ManifestApplyConfiguration { + b.ensureObjectMetaApplyConfigurationExists() + for i := range values { + b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i]) + } + return b +} + +func (b *ManifestApplyConfiguration) ensureObjectMetaApplyConfigurationExists() { + if b.ObjectMetaApplyConfiguration == nil { + b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{} + } +} + +// WithSpec sets the Spec field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Spec field is set to the value of the last call. +func (b *ManifestApplyConfiguration) WithSpec(value *ManifestSpecApplyConfiguration) *ManifestApplyConfiguration { + b.Spec = value + return b +} + +// GetName retrieves the value of the Name field in the declarative configuration. +func (b *ManifestApplyConfiguration) GetName() *string { + b.ensureObjectMetaApplyConfigurationExists() + return b.ObjectMetaApplyConfiguration.Name +} diff --git a/pkg/client/applyconfiguration/akash.network/v2beta2/manifestgroup.go b/pkg/client/applyconfiguration/akash.network/v2beta2/manifestgroup.go new file mode 100644 index 000000000..3f3fcb81d --- /dev/null +++ b/pkg/client/applyconfiguration/akash.network/v2beta2/manifestgroup.go @@ -0,0 +1,53 @@ +/* +Copyright The Akash Network Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by applyconfiguration-gen. DO NOT EDIT. + +package v2beta2 + +// ManifestGroupApplyConfiguration represents a declarative configuration of the ManifestGroup type for use +// with apply. +type ManifestGroupApplyConfiguration struct { + Name *string `json:"name,omitempty"` + Services []ManifestServiceApplyConfiguration `json:"services,omitempty"` +} + +// ManifestGroupApplyConfiguration constructs a declarative configuration of the ManifestGroup type for use with +// apply. +func ManifestGroup() *ManifestGroupApplyConfiguration { + return &ManifestGroupApplyConfiguration{} +} + +// WithName sets the Name field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Name field is set to the value of the last call. +func (b *ManifestGroupApplyConfiguration) WithName(value string) *ManifestGroupApplyConfiguration { + b.Name = &value + return b +} + +// WithServices adds the given value to the Services field in the declarative configuration +// and returns the receiver, so that objects can be build by chaining "With" function invocations. +// If called multiple times, values provided by each call will be appended to the Services field. +func (b *ManifestGroupApplyConfiguration) WithServices(values ...*ManifestServiceApplyConfiguration) *ManifestGroupApplyConfiguration { + for i := range values { + if values[i] == nil { + panic("nil value passed to WithServices") + } + b.Services = append(b.Services, *values[i]) + } + return b +} diff --git a/pkg/client/applyconfiguration/akash.network/v2beta2/manifestservice.go b/pkg/client/applyconfiguration/akash.network/v2beta2/manifestservice.go new file mode 100644 index 000000000..6a8c1894a --- /dev/null +++ b/pkg/client/applyconfiguration/akash.network/v2beta2/manifestservice.go @@ -0,0 +1,140 @@ +/* +Copyright The Akash Network Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by applyconfiguration-gen. DO NOT EDIT. + +package v2beta2 + +// ManifestServiceApplyConfiguration represents a declarative configuration of the ManifestService type for use +// with apply. +type ManifestServiceApplyConfiguration struct { + Name *string `json:"name,omitempty"` + Image *string `json:"image,omitempty"` + Command []string `json:"command,omitempty"` + Args []string `json:"args,omitempty"` + Env []string `json:"env,omitempty"` + Resources *ResourcesApplyConfiguration `json:"resources,omitempty"` + Count *uint32 `json:"count,omitempty"` + Expose []ManifestServiceExposeApplyConfiguration `json:"expose,omitempty"` + Params *ManifestServiceParamsApplyConfiguration `json:"params,omitempty"` + SchedulerParams *SchedulerParamsApplyConfiguration `json:"scheduler_params,omitempty"` + Credentials *ManifestServiceCredentialsApplyConfiguration `json:"credentials,omitempty"` +} + +// ManifestServiceApplyConfiguration constructs a declarative configuration of the ManifestService type for use with +// apply. +func ManifestService() *ManifestServiceApplyConfiguration { + return &ManifestServiceApplyConfiguration{} +} + +// WithName sets the Name field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Name field is set to the value of the last call. +func (b *ManifestServiceApplyConfiguration) WithName(value string) *ManifestServiceApplyConfiguration { + b.Name = &value + return b +} + +// WithImage sets the Image field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Image field is set to the value of the last call. +func (b *ManifestServiceApplyConfiguration) WithImage(value string) *ManifestServiceApplyConfiguration { + b.Image = &value + return b +} + +// WithCommand adds the given value to the Command field in the declarative configuration +// and returns the receiver, so that objects can be build by chaining "With" function invocations. +// If called multiple times, values provided by each call will be appended to the Command field. +func (b *ManifestServiceApplyConfiguration) WithCommand(values ...string) *ManifestServiceApplyConfiguration { + for i := range values { + b.Command = append(b.Command, values[i]) + } + return b +} + +// WithArgs adds the given value to the Args field in the declarative configuration +// and returns the receiver, so that objects can be build by chaining "With" function invocations. +// If called multiple times, values provided by each call will be appended to the Args field. +func (b *ManifestServiceApplyConfiguration) WithArgs(values ...string) *ManifestServiceApplyConfiguration { + for i := range values { + b.Args = append(b.Args, values[i]) + } + return b +} + +// WithEnv adds the given value to the Env field in the declarative configuration +// and returns the receiver, so that objects can be build by chaining "With" function invocations. +// If called multiple times, values provided by each call will be appended to the Env field. +func (b *ManifestServiceApplyConfiguration) WithEnv(values ...string) *ManifestServiceApplyConfiguration { + for i := range values { + b.Env = append(b.Env, values[i]) + } + return b +} + +// WithResources sets the Resources field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Resources field is set to the value of the last call. +func (b *ManifestServiceApplyConfiguration) WithResources(value *ResourcesApplyConfiguration) *ManifestServiceApplyConfiguration { + b.Resources = value + return b +} + +// WithCount sets the Count field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Count field is set to the value of the last call. +func (b *ManifestServiceApplyConfiguration) WithCount(value uint32) *ManifestServiceApplyConfiguration { + b.Count = &value + return b +} + +// WithExpose adds the given value to the Expose field in the declarative configuration +// and returns the receiver, so that objects can be build by chaining "With" function invocations. +// If called multiple times, values provided by each call will be appended to the Expose field. +func (b *ManifestServiceApplyConfiguration) WithExpose(values ...*ManifestServiceExposeApplyConfiguration) *ManifestServiceApplyConfiguration { + for i := range values { + if values[i] == nil { + panic("nil value passed to WithExpose") + } + b.Expose = append(b.Expose, *values[i]) + } + return b +} + +// WithParams sets the Params field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Params field is set to the value of the last call. +func (b *ManifestServiceApplyConfiguration) WithParams(value *ManifestServiceParamsApplyConfiguration) *ManifestServiceApplyConfiguration { + b.Params = value + return b +} + +// WithSchedulerParams sets the SchedulerParams field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the SchedulerParams field is set to the value of the last call. +func (b *ManifestServiceApplyConfiguration) WithSchedulerParams(value *SchedulerParamsApplyConfiguration) *ManifestServiceApplyConfiguration { + b.SchedulerParams = value + return b +} + +// WithCredentials sets the Credentials field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Credentials field is set to the value of the last call. +func (b *ManifestServiceApplyConfiguration) WithCredentials(value *ManifestServiceCredentialsApplyConfiguration) *ManifestServiceApplyConfiguration { + b.Credentials = value + return b +} diff --git a/pkg/client/applyconfiguration/akash.network/v2beta2/manifestservicecredentials.go b/pkg/client/applyconfiguration/akash.network/v2beta2/manifestservicecredentials.go new file mode 100644 index 000000000..8b755f3f9 --- /dev/null +++ b/pkg/client/applyconfiguration/akash.network/v2beta2/manifestservicecredentials.go @@ -0,0 +1,66 @@ +/* +Copyright The Akash Network Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by applyconfiguration-gen. DO NOT EDIT. + +package v2beta2 + +// ManifestServiceCredentialsApplyConfiguration represents a declarative configuration of the ManifestServiceCredentials type for use +// with apply. +type ManifestServiceCredentialsApplyConfiguration struct { + Host *string `json:"host,omitempty"` + Email *string `json:"email,omitempty"` + Username *string `json:"username,omitempty"` + Password *string `json:"password,omitempty"` +} + +// ManifestServiceCredentialsApplyConfiguration constructs a declarative configuration of the ManifestServiceCredentials type for use with +// apply. +func ManifestServiceCredentials() *ManifestServiceCredentialsApplyConfiguration { + return &ManifestServiceCredentialsApplyConfiguration{} +} + +// WithHost sets the Host field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Host field is set to the value of the last call. +func (b *ManifestServiceCredentialsApplyConfiguration) WithHost(value string) *ManifestServiceCredentialsApplyConfiguration { + b.Host = &value + return b +} + +// WithEmail sets the Email field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Email field is set to the value of the last call. +func (b *ManifestServiceCredentialsApplyConfiguration) WithEmail(value string) *ManifestServiceCredentialsApplyConfiguration { + b.Email = &value + return b +} + +// WithUsername sets the Username field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Username field is set to the value of the last call. +func (b *ManifestServiceCredentialsApplyConfiguration) WithUsername(value string) *ManifestServiceCredentialsApplyConfiguration { + b.Username = &value + return b +} + +// WithPassword sets the Password field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Password field is set to the value of the last call. +func (b *ManifestServiceCredentialsApplyConfiguration) WithPassword(value string) *ManifestServiceCredentialsApplyConfiguration { + b.Password = &value + return b +} diff --git a/pkg/client/applyconfiguration/akash.network/v2beta2/manifestserviceexpose.go b/pkg/client/applyconfiguration/akash.network/v2beta2/manifestserviceexpose.go new file mode 100644 index 000000000..bfee994df --- /dev/null +++ b/pkg/client/applyconfiguration/akash.network/v2beta2/manifestserviceexpose.go @@ -0,0 +1,113 @@ +/* +Copyright The Akash Network Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by applyconfiguration-gen. DO NOT EDIT. + +package v2beta2 + +// ManifestServiceExposeApplyConfiguration represents a declarative configuration of the ManifestServiceExpose type for use +// with apply. +type ManifestServiceExposeApplyConfiguration struct { + Port *uint16 `json:"port,omitempty"` + ExternalPort *uint16 `json:"external_port,omitempty"` + Proto *string `json:"proto,omitempty"` + Service *string `json:"service,omitempty"` + Global *bool `json:"global,omitempty"` + Hosts []string `json:"hosts,omitempty"` + HTTPOptions *ManifestServiceExposeHTTPOptionsApplyConfiguration `json:"http_options,omitempty"` + IP *string `json:"ip,omitempty"` + EndpointSequenceNumber *uint32 `json:"endpoint_sequence_number,omitempty"` +} + +// ManifestServiceExposeApplyConfiguration constructs a declarative configuration of the ManifestServiceExpose type for use with +// apply. +func ManifestServiceExpose() *ManifestServiceExposeApplyConfiguration { + return &ManifestServiceExposeApplyConfiguration{} +} + +// WithPort sets the Port field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Port field is set to the value of the last call. +func (b *ManifestServiceExposeApplyConfiguration) WithPort(value uint16) *ManifestServiceExposeApplyConfiguration { + b.Port = &value + return b +} + +// WithExternalPort sets the ExternalPort field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the ExternalPort field is set to the value of the last call. +func (b *ManifestServiceExposeApplyConfiguration) WithExternalPort(value uint16) *ManifestServiceExposeApplyConfiguration { + b.ExternalPort = &value + return b +} + +// WithProto sets the Proto field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Proto field is set to the value of the last call. +func (b *ManifestServiceExposeApplyConfiguration) WithProto(value string) *ManifestServiceExposeApplyConfiguration { + b.Proto = &value + return b +} + +// WithService sets the Service field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Service field is set to the value of the last call. +func (b *ManifestServiceExposeApplyConfiguration) WithService(value string) *ManifestServiceExposeApplyConfiguration { + b.Service = &value + return b +} + +// WithGlobal sets the Global field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Global field is set to the value of the last call. +func (b *ManifestServiceExposeApplyConfiguration) WithGlobal(value bool) *ManifestServiceExposeApplyConfiguration { + b.Global = &value + return b +} + +// WithHosts adds the given value to the Hosts field in the declarative configuration +// and returns the receiver, so that objects can be build by chaining "With" function invocations. +// If called multiple times, values provided by each call will be appended to the Hosts field. +func (b *ManifestServiceExposeApplyConfiguration) WithHosts(values ...string) *ManifestServiceExposeApplyConfiguration { + for i := range values { + b.Hosts = append(b.Hosts, values[i]) + } + return b +} + +// WithHTTPOptions sets the HTTPOptions field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the HTTPOptions field is set to the value of the last call. +func (b *ManifestServiceExposeApplyConfiguration) WithHTTPOptions(value *ManifestServiceExposeHTTPOptionsApplyConfiguration) *ManifestServiceExposeApplyConfiguration { + b.HTTPOptions = value + return b +} + +// WithIP sets the IP field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the IP field is set to the value of the last call. +func (b *ManifestServiceExposeApplyConfiguration) WithIP(value string) *ManifestServiceExposeApplyConfiguration { + b.IP = &value + return b +} + +// WithEndpointSequenceNumber sets the EndpointSequenceNumber field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the EndpointSequenceNumber field is set to the value of the last call. +func (b *ManifestServiceExposeApplyConfiguration) WithEndpointSequenceNumber(value uint32) *ManifestServiceExposeApplyConfiguration { + b.EndpointSequenceNumber = &value + return b +} diff --git a/pkg/client/applyconfiguration/akash.network/v2beta2/manifestserviceexposehttpoptions.go b/pkg/client/applyconfiguration/akash.network/v2beta2/manifestserviceexposehttpoptions.go new file mode 100644 index 000000000..955bf3580 --- /dev/null +++ b/pkg/client/applyconfiguration/akash.network/v2beta2/manifestserviceexposehttpoptions.go @@ -0,0 +1,86 @@ +/* +Copyright The Akash Network Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by applyconfiguration-gen. DO NOT EDIT. + +package v2beta2 + +// ManifestServiceExposeHTTPOptionsApplyConfiguration represents a declarative configuration of the ManifestServiceExposeHTTPOptions type for use +// with apply. +type ManifestServiceExposeHTTPOptionsApplyConfiguration struct { + MaxBodySize *uint32 `json:"max_body_size,omitempty"` + ReadTimeout *uint32 `json:"read_timeout,omitempty"` + SendTimeout *uint32 `json:"send_timeout,omitempty"` + NextTries *uint32 `json:"next_tries,omitempty"` + NextTimeout *uint32 `json:"next_timeout,omitempty"` + NextCases []string `json:"next_cases,omitempty"` +} + +// ManifestServiceExposeHTTPOptionsApplyConfiguration constructs a declarative configuration of the ManifestServiceExposeHTTPOptions type for use with +// apply. +func ManifestServiceExposeHTTPOptions() *ManifestServiceExposeHTTPOptionsApplyConfiguration { + return &ManifestServiceExposeHTTPOptionsApplyConfiguration{} +} + +// WithMaxBodySize sets the MaxBodySize field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the MaxBodySize field is set to the value of the last call. +func (b *ManifestServiceExposeHTTPOptionsApplyConfiguration) WithMaxBodySize(value uint32) *ManifestServiceExposeHTTPOptionsApplyConfiguration { + b.MaxBodySize = &value + return b +} + +// WithReadTimeout sets the ReadTimeout field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the ReadTimeout field is set to the value of the last call. +func (b *ManifestServiceExposeHTTPOptionsApplyConfiguration) WithReadTimeout(value uint32) *ManifestServiceExposeHTTPOptionsApplyConfiguration { + b.ReadTimeout = &value + return b +} + +// WithSendTimeout sets the SendTimeout field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the SendTimeout field is set to the value of the last call. +func (b *ManifestServiceExposeHTTPOptionsApplyConfiguration) WithSendTimeout(value uint32) *ManifestServiceExposeHTTPOptionsApplyConfiguration { + b.SendTimeout = &value + return b +} + +// WithNextTries sets the NextTries field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the NextTries field is set to the value of the last call. +func (b *ManifestServiceExposeHTTPOptionsApplyConfiguration) WithNextTries(value uint32) *ManifestServiceExposeHTTPOptionsApplyConfiguration { + b.NextTries = &value + return b +} + +// WithNextTimeout sets the NextTimeout field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the NextTimeout field is set to the value of the last call. +func (b *ManifestServiceExposeHTTPOptionsApplyConfiguration) WithNextTimeout(value uint32) *ManifestServiceExposeHTTPOptionsApplyConfiguration { + b.NextTimeout = &value + return b +} + +// WithNextCases adds the given value to the NextCases field in the declarative configuration +// and returns the receiver, so that objects can be build by chaining "With" function invocations. +// If called multiple times, values provided by each call will be appended to the NextCases field. +func (b *ManifestServiceExposeHTTPOptionsApplyConfiguration) WithNextCases(values ...string) *ManifestServiceExposeHTTPOptionsApplyConfiguration { + for i := range values { + b.NextCases = append(b.NextCases, values[i]) + } + return b +} diff --git a/pkg/client/applyconfiguration/akash.network/v2beta2/manifestserviceparams.go b/pkg/client/applyconfiguration/akash.network/v2beta2/manifestserviceparams.go new file mode 100644 index 000000000..238fff5b8 --- /dev/null +++ b/pkg/client/applyconfiguration/akash.network/v2beta2/manifestserviceparams.go @@ -0,0 +1,44 @@ +/* +Copyright The Akash Network Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by applyconfiguration-gen. DO NOT EDIT. + +package v2beta2 + +// ManifestServiceParamsApplyConfiguration represents a declarative configuration of the ManifestServiceParams type for use +// with apply. +type ManifestServiceParamsApplyConfiguration struct { + Storage []ManifestStorageParamsApplyConfiguration `json:"storage,omitempty"` +} + +// ManifestServiceParamsApplyConfiguration constructs a declarative configuration of the ManifestServiceParams type for use with +// apply. +func ManifestServiceParams() *ManifestServiceParamsApplyConfiguration { + return &ManifestServiceParamsApplyConfiguration{} +} + +// WithStorage adds the given value to the Storage field in the declarative configuration +// and returns the receiver, so that objects can be build by chaining "With" function invocations. +// If called multiple times, values provided by each call will be appended to the Storage field. +func (b *ManifestServiceParamsApplyConfiguration) WithStorage(values ...*ManifestStorageParamsApplyConfiguration) *ManifestServiceParamsApplyConfiguration { + for i := range values { + if values[i] == nil { + panic("nil value passed to WithStorage") + } + b.Storage = append(b.Storage, *values[i]) + } + return b +} diff --git a/pkg/client/applyconfiguration/akash.network/v2beta2/manifestspec.go b/pkg/client/applyconfiguration/akash.network/v2beta2/manifestspec.go new file mode 100644 index 000000000..abc61d741 --- /dev/null +++ b/pkg/client/applyconfiguration/akash.network/v2beta2/manifestspec.go @@ -0,0 +1,48 @@ +/* +Copyright The Akash Network Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by applyconfiguration-gen. DO NOT EDIT. + +package v2beta2 + +// ManifestSpecApplyConfiguration represents a declarative configuration of the ManifestSpec type for use +// with apply. +type ManifestSpecApplyConfiguration struct { + LeaseID *LeaseIDApplyConfiguration `json:"lease_id,omitempty"` + Group *ManifestGroupApplyConfiguration `json:"group,omitempty"` +} + +// ManifestSpecApplyConfiguration constructs a declarative configuration of the ManifestSpec type for use with +// apply. +func ManifestSpec() *ManifestSpecApplyConfiguration { + return &ManifestSpecApplyConfiguration{} +} + +// WithLeaseID sets the LeaseID field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the LeaseID field is set to the value of the last call. +func (b *ManifestSpecApplyConfiguration) WithLeaseID(value *LeaseIDApplyConfiguration) *ManifestSpecApplyConfiguration { + b.LeaseID = value + return b +} + +// WithGroup sets the Group field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Group field is set to the value of the last call. +func (b *ManifestSpecApplyConfiguration) WithGroup(value *ManifestGroupApplyConfiguration) *ManifestSpecApplyConfiguration { + b.Group = value + return b +} diff --git a/pkg/client/applyconfiguration/akash.network/v2beta2/manifeststorageparams.go b/pkg/client/applyconfiguration/akash.network/v2beta2/manifeststorageparams.go new file mode 100644 index 000000000..65ec4e22b --- /dev/null +++ b/pkg/client/applyconfiguration/akash.network/v2beta2/manifeststorageparams.go @@ -0,0 +1,57 @@ +/* +Copyright The Akash Network Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by applyconfiguration-gen. DO NOT EDIT. + +package v2beta2 + +// ManifestStorageParamsApplyConfiguration represents a declarative configuration of the ManifestStorageParams type for use +// with apply. +type ManifestStorageParamsApplyConfiguration struct { + Name *string `json:"name,omitempty"` + Mount *string `json:"mount,omitempty"` + ReadOnly *bool `json:"readOnly,omitempty"` +} + +// ManifestStorageParamsApplyConfiguration constructs a declarative configuration of the ManifestStorageParams type for use with +// apply. +func ManifestStorageParams() *ManifestStorageParamsApplyConfiguration { + return &ManifestStorageParamsApplyConfiguration{} +} + +// WithName sets the Name field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Name field is set to the value of the last call. +func (b *ManifestStorageParamsApplyConfiguration) WithName(value string) *ManifestStorageParamsApplyConfiguration { + b.Name = &value + return b +} + +// WithMount sets the Mount field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Mount field is set to the value of the last call. +func (b *ManifestStorageParamsApplyConfiguration) WithMount(value string) *ManifestStorageParamsApplyConfiguration { + b.Mount = &value + return b +} + +// WithReadOnly sets the ReadOnly field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the ReadOnly field is set to the value of the last call. +func (b *ManifestStorageParamsApplyConfiguration) WithReadOnly(value bool) *ManifestStorageParamsApplyConfiguration { + b.ReadOnly = &value + return b +} diff --git a/pkg/client/applyconfiguration/akash.network/v2beta2/providerhost.go b/pkg/client/applyconfiguration/akash.network/v2beta2/providerhost.go new file mode 100644 index 000000000..f99a085ab --- /dev/null +++ b/pkg/client/applyconfiguration/akash.network/v2beta2/providerhost.go @@ -0,0 +1,216 @@ +/* +Copyright The Akash Network Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by applyconfiguration-gen. DO NOT EDIT. + +package v2beta2 + +import ( + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + types "k8s.io/apimachinery/pkg/types" + v1 "k8s.io/client-go/applyconfigurations/meta/v1" +) + +// ProviderHostApplyConfiguration represents a declarative configuration of the ProviderHost type for use +// with apply. +type ProviderHostApplyConfiguration struct { + v1.TypeMetaApplyConfiguration `json:",inline"` + *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` + Spec *ProviderHostSpecApplyConfiguration `json:"spec,omitempty"` +} + +// ProviderHost constructs a declarative configuration of the ProviderHost type for use with +// apply. +func ProviderHost(name, namespace string) *ProviderHostApplyConfiguration { + b := &ProviderHostApplyConfiguration{} + b.WithName(name) + b.WithNamespace(namespace) + b.WithKind("ProviderHost") + b.WithAPIVersion("akash.network/v2beta2") + return b +} + +// WithKind sets the Kind field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Kind field is set to the value of the last call. +func (b *ProviderHostApplyConfiguration) WithKind(value string) *ProviderHostApplyConfiguration { + b.TypeMetaApplyConfiguration.Kind = &value + return b +} + +// WithAPIVersion sets the APIVersion field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the APIVersion field is set to the value of the last call. +func (b *ProviderHostApplyConfiguration) WithAPIVersion(value string) *ProviderHostApplyConfiguration { + b.TypeMetaApplyConfiguration.APIVersion = &value + return b +} + +// WithName sets the Name field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Name field is set to the value of the last call. +func (b *ProviderHostApplyConfiguration) WithName(value string) *ProviderHostApplyConfiguration { + b.ensureObjectMetaApplyConfigurationExists() + b.ObjectMetaApplyConfiguration.Name = &value + return b +} + +// WithGenerateName sets the GenerateName field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the GenerateName field is set to the value of the last call. +func (b *ProviderHostApplyConfiguration) WithGenerateName(value string) *ProviderHostApplyConfiguration { + b.ensureObjectMetaApplyConfigurationExists() + b.ObjectMetaApplyConfiguration.GenerateName = &value + return b +} + +// WithNamespace sets the Namespace field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Namespace field is set to the value of the last call. +func (b *ProviderHostApplyConfiguration) WithNamespace(value string) *ProviderHostApplyConfiguration { + b.ensureObjectMetaApplyConfigurationExists() + b.ObjectMetaApplyConfiguration.Namespace = &value + return b +} + +// WithUID sets the UID field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the UID field is set to the value of the last call. +func (b *ProviderHostApplyConfiguration) WithUID(value types.UID) *ProviderHostApplyConfiguration { + b.ensureObjectMetaApplyConfigurationExists() + b.ObjectMetaApplyConfiguration.UID = &value + return b +} + +// WithResourceVersion sets the ResourceVersion field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the ResourceVersion field is set to the value of the last call. +func (b *ProviderHostApplyConfiguration) WithResourceVersion(value string) *ProviderHostApplyConfiguration { + b.ensureObjectMetaApplyConfigurationExists() + b.ObjectMetaApplyConfiguration.ResourceVersion = &value + return b +} + +// WithGeneration sets the Generation field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Generation field is set to the value of the last call. +func (b *ProviderHostApplyConfiguration) WithGeneration(value int64) *ProviderHostApplyConfiguration { + b.ensureObjectMetaApplyConfigurationExists() + b.ObjectMetaApplyConfiguration.Generation = &value + return b +} + +// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the CreationTimestamp field is set to the value of the last call. +func (b *ProviderHostApplyConfiguration) WithCreationTimestamp(value metav1.Time) *ProviderHostApplyConfiguration { + b.ensureObjectMetaApplyConfigurationExists() + b.ObjectMetaApplyConfiguration.CreationTimestamp = &value + return b +} + +// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the DeletionTimestamp field is set to the value of the last call. +func (b *ProviderHostApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *ProviderHostApplyConfiguration { + b.ensureObjectMetaApplyConfigurationExists() + b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value + return b +} + +// WithDeletionGracePeriodSeconds sets the DeletionGracePeriodSeconds field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call. +func (b *ProviderHostApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *ProviderHostApplyConfiguration { + b.ensureObjectMetaApplyConfigurationExists() + b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value + return b +} + +// WithLabels puts the entries into the Labels field in the declarative configuration +// and returns the receiver, so that objects can be build by chaining "With" function invocations. +// If called multiple times, the entries provided by each call will be put on the Labels field, +// overwriting an existing map entries in Labels field with the same key. +func (b *ProviderHostApplyConfiguration) WithLabels(entries map[string]string) *ProviderHostApplyConfiguration { + b.ensureObjectMetaApplyConfigurationExists() + if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 { + b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries)) + } + for k, v := range entries { + b.ObjectMetaApplyConfiguration.Labels[k] = v + } + return b +} + +// WithAnnotations puts the entries into the Annotations field in the declarative configuration +// and returns the receiver, so that objects can be build by chaining "With" function invocations. +// If called multiple times, the entries provided by each call will be put on the Annotations field, +// overwriting an existing map entries in Annotations field with the same key. +func (b *ProviderHostApplyConfiguration) WithAnnotations(entries map[string]string) *ProviderHostApplyConfiguration { + b.ensureObjectMetaApplyConfigurationExists() + if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 { + b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries)) + } + for k, v := range entries { + b.ObjectMetaApplyConfiguration.Annotations[k] = v + } + return b +} + +// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration +// and returns the receiver, so that objects can be build by chaining "With" function invocations. +// If called multiple times, values provided by each call will be appended to the OwnerReferences field. +func (b *ProviderHostApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *ProviderHostApplyConfiguration { + b.ensureObjectMetaApplyConfigurationExists() + for i := range values { + if values[i] == nil { + panic("nil value passed to WithOwnerReferences") + } + b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i]) + } + return b +} + +// WithFinalizers adds the given value to the Finalizers field in the declarative configuration +// and returns the receiver, so that objects can be build by chaining "With" function invocations. +// If called multiple times, values provided by each call will be appended to the Finalizers field. +func (b *ProviderHostApplyConfiguration) WithFinalizers(values ...string) *ProviderHostApplyConfiguration { + b.ensureObjectMetaApplyConfigurationExists() + for i := range values { + b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i]) + } + return b +} + +func (b *ProviderHostApplyConfiguration) ensureObjectMetaApplyConfigurationExists() { + if b.ObjectMetaApplyConfiguration == nil { + b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{} + } +} + +// WithSpec sets the Spec field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Spec field is set to the value of the last call. +func (b *ProviderHostApplyConfiguration) WithSpec(value *ProviderHostSpecApplyConfiguration) *ProviderHostApplyConfiguration { + b.Spec = value + return b +} + +// GetName retrieves the value of the Name field in the declarative configuration. +func (b *ProviderHostApplyConfiguration) GetName() *string { + b.ensureObjectMetaApplyConfigurationExists() + return b.ObjectMetaApplyConfiguration.Name +} diff --git a/pkg/client/applyconfiguration/akash.network/v2beta2/providerhostspec.go b/pkg/client/applyconfiguration/akash.network/v2beta2/providerhostspec.go new file mode 100644 index 000000000..18cb274ac --- /dev/null +++ b/pkg/client/applyconfiguration/akash.network/v2beta2/providerhostspec.go @@ -0,0 +1,102 @@ +/* +Copyright The Akash Network Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by applyconfiguration-gen. DO NOT EDIT. + +package v2beta2 + +// ProviderHostSpecApplyConfiguration represents a declarative configuration of the ProviderHostSpec type for use +// with apply. +type ProviderHostSpecApplyConfiguration struct { + Owner *string `json:"owner,omitempty"` + Provider *string `json:"provider,omitempty"` + Hostname *string `json:"hostname,omitempty"` + Dseq *uint64 `json:"dseq,omitempty"` + Gseq *uint32 `json:"gseq,omitempty"` + Oseq *uint32 `json:"oseq,omitempty"` + ServiceName *string `json:"service_name,omitempty"` + ExternalPort *uint32 `json:"external_port,omitempty"` +} + +// ProviderHostSpecApplyConfiguration constructs a declarative configuration of the ProviderHostSpec type for use with +// apply. +func ProviderHostSpec() *ProviderHostSpecApplyConfiguration { + return &ProviderHostSpecApplyConfiguration{} +} + +// WithOwner sets the Owner field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Owner field is set to the value of the last call. +func (b *ProviderHostSpecApplyConfiguration) WithOwner(value string) *ProviderHostSpecApplyConfiguration { + b.Owner = &value + return b +} + +// WithProvider sets the Provider field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Provider field is set to the value of the last call. +func (b *ProviderHostSpecApplyConfiguration) WithProvider(value string) *ProviderHostSpecApplyConfiguration { + b.Provider = &value + return b +} + +// WithHostname sets the Hostname field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Hostname field is set to the value of the last call. +func (b *ProviderHostSpecApplyConfiguration) WithHostname(value string) *ProviderHostSpecApplyConfiguration { + b.Hostname = &value + return b +} + +// WithDseq sets the Dseq field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Dseq field is set to the value of the last call. +func (b *ProviderHostSpecApplyConfiguration) WithDseq(value uint64) *ProviderHostSpecApplyConfiguration { + b.Dseq = &value + return b +} + +// WithGseq sets the Gseq field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Gseq field is set to the value of the last call. +func (b *ProviderHostSpecApplyConfiguration) WithGseq(value uint32) *ProviderHostSpecApplyConfiguration { + b.Gseq = &value + return b +} + +// WithOseq sets the Oseq field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Oseq field is set to the value of the last call. +func (b *ProviderHostSpecApplyConfiguration) WithOseq(value uint32) *ProviderHostSpecApplyConfiguration { + b.Oseq = &value + return b +} + +// WithServiceName sets the ServiceName field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the ServiceName field is set to the value of the last call. +func (b *ProviderHostSpecApplyConfiguration) WithServiceName(value string) *ProviderHostSpecApplyConfiguration { + b.ServiceName = &value + return b +} + +// WithExternalPort sets the ExternalPort field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the ExternalPort field is set to the value of the last call. +func (b *ProviderHostSpecApplyConfiguration) WithExternalPort(value uint32) *ProviderHostSpecApplyConfiguration { + b.ExternalPort = &value + return b +} diff --git a/pkg/client/applyconfiguration/akash.network/v2beta2/providerleasedip.go b/pkg/client/applyconfiguration/akash.network/v2beta2/providerleasedip.go new file mode 100644 index 000000000..72ff42203 --- /dev/null +++ b/pkg/client/applyconfiguration/akash.network/v2beta2/providerleasedip.go @@ -0,0 +1,216 @@ +/* +Copyright The Akash Network Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by applyconfiguration-gen. DO NOT EDIT. + +package v2beta2 + +import ( + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + types "k8s.io/apimachinery/pkg/types" + v1 "k8s.io/client-go/applyconfigurations/meta/v1" +) + +// ProviderLeasedIPApplyConfiguration represents a declarative configuration of the ProviderLeasedIP type for use +// with apply. +type ProviderLeasedIPApplyConfiguration struct { + v1.TypeMetaApplyConfiguration `json:",inline"` + *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` + Spec *ProviderLeasedIPSpecApplyConfiguration `json:"spec,omitempty"` +} + +// ProviderLeasedIP constructs a declarative configuration of the ProviderLeasedIP type for use with +// apply. +func ProviderLeasedIP(name, namespace string) *ProviderLeasedIPApplyConfiguration { + b := &ProviderLeasedIPApplyConfiguration{} + b.WithName(name) + b.WithNamespace(namespace) + b.WithKind("ProviderLeasedIP") + b.WithAPIVersion("akash.network/v2beta2") + return b +} + +// WithKind sets the Kind field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Kind field is set to the value of the last call. +func (b *ProviderLeasedIPApplyConfiguration) WithKind(value string) *ProviderLeasedIPApplyConfiguration { + b.TypeMetaApplyConfiguration.Kind = &value + return b +} + +// WithAPIVersion sets the APIVersion field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the APIVersion field is set to the value of the last call. +func (b *ProviderLeasedIPApplyConfiguration) WithAPIVersion(value string) *ProviderLeasedIPApplyConfiguration { + b.TypeMetaApplyConfiguration.APIVersion = &value + return b +} + +// WithName sets the Name field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Name field is set to the value of the last call. +func (b *ProviderLeasedIPApplyConfiguration) WithName(value string) *ProviderLeasedIPApplyConfiguration { + b.ensureObjectMetaApplyConfigurationExists() + b.ObjectMetaApplyConfiguration.Name = &value + return b +} + +// WithGenerateName sets the GenerateName field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the GenerateName field is set to the value of the last call. +func (b *ProviderLeasedIPApplyConfiguration) WithGenerateName(value string) *ProviderLeasedIPApplyConfiguration { + b.ensureObjectMetaApplyConfigurationExists() + b.ObjectMetaApplyConfiguration.GenerateName = &value + return b +} + +// WithNamespace sets the Namespace field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Namespace field is set to the value of the last call. +func (b *ProviderLeasedIPApplyConfiguration) WithNamespace(value string) *ProviderLeasedIPApplyConfiguration { + b.ensureObjectMetaApplyConfigurationExists() + b.ObjectMetaApplyConfiguration.Namespace = &value + return b +} + +// WithUID sets the UID field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the UID field is set to the value of the last call. +func (b *ProviderLeasedIPApplyConfiguration) WithUID(value types.UID) *ProviderLeasedIPApplyConfiguration { + b.ensureObjectMetaApplyConfigurationExists() + b.ObjectMetaApplyConfiguration.UID = &value + return b +} + +// WithResourceVersion sets the ResourceVersion field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the ResourceVersion field is set to the value of the last call. +func (b *ProviderLeasedIPApplyConfiguration) WithResourceVersion(value string) *ProviderLeasedIPApplyConfiguration { + b.ensureObjectMetaApplyConfigurationExists() + b.ObjectMetaApplyConfiguration.ResourceVersion = &value + return b +} + +// WithGeneration sets the Generation field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Generation field is set to the value of the last call. +func (b *ProviderLeasedIPApplyConfiguration) WithGeneration(value int64) *ProviderLeasedIPApplyConfiguration { + b.ensureObjectMetaApplyConfigurationExists() + b.ObjectMetaApplyConfiguration.Generation = &value + return b +} + +// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the CreationTimestamp field is set to the value of the last call. +func (b *ProviderLeasedIPApplyConfiguration) WithCreationTimestamp(value metav1.Time) *ProviderLeasedIPApplyConfiguration { + b.ensureObjectMetaApplyConfigurationExists() + b.ObjectMetaApplyConfiguration.CreationTimestamp = &value + return b +} + +// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the DeletionTimestamp field is set to the value of the last call. +func (b *ProviderLeasedIPApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *ProviderLeasedIPApplyConfiguration { + b.ensureObjectMetaApplyConfigurationExists() + b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value + return b +} + +// WithDeletionGracePeriodSeconds sets the DeletionGracePeriodSeconds field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call. +func (b *ProviderLeasedIPApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *ProviderLeasedIPApplyConfiguration { + b.ensureObjectMetaApplyConfigurationExists() + b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value + return b +} + +// WithLabels puts the entries into the Labels field in the declarative configuration +// and returns the receiver, so that objects can be build by chaining "With" function invocations. +// If called multiple times, the entries provided by each call will be put on the Labels field, +// overwriting an existing map entries in Labels field with the same key. +func (b *ProviderLeasedIPApplyConfiguration) WithLabels(entries map[string]string) *ProviderLeasedIPApplyConfiguration { + b.ensureObjectMetaApplyConfigurationExists() + if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 { + b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries)) + } + for k, v := range entries { + b.ObjectMetaApplyConfiguration.Labels[k] = v + } + return b +} + +// WithAnnotations puts the entries into the Annotations field in the declarative configuration +// and returns the receiver, so that objects can be build by chaining "With" function invocations. +// If called multiple times, the entries provided by each call will be put on the Annotations field, +// overwriting an existing map entries in Annotations field with the same key. +func (b *ProviderLeasedIPApplyConfiguration) WithAnnotations(entries map[string]string) *ProviderLeasedIPApplyConfiguration { + b.ensureObjectMetaApplyConfigurationExists() + if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 { + b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries)) + } + for k, v := range entries { + b.ObjectMetaApplyConfiguration.Annotations[k] = v + } + return b +} + +// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration +// and returns the receiver, so that objects can be build by chaining "With" function invocations. +// If called multiple times, values provided by each call will be appended to the OwnerReferences field. +func (b *ProviderLeasedIPApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *ProviderLeasedIPApplyConfiguration { + b.ensureObjectMetaApplyConfigurationExists() + for i := range values { + if values[i] == nil { + panic("nil value passed to WithOwnerReferences") + } + b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i]) + } + return b +} + +// WithFinalizers adds the given value to the Finalizers field in the declarative configuration +// and returns the receiver, so that objects can be build by chaining "With" function invocations. +// If called multiple times, values provided by each call will be appended to the Finalizers field. +func (b *ProviderLeasedIPApplyConfiguration) WithFinalizers(values ...string) *ProviderLeasedIPApplyConfiguration { + b.ensureObjectMetaApplyConfigurationExists() + for i := range values { + b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i]) + } + return b +} + +func (b *ProviderLeasedIPApplyConfiguration) ensureObjectMetaApplyConfigurationExists() { + if b.ObjectMetaApplyConfiguration == nil { + b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{} + } +} + +// WithSpec sets the Spec field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Spec field is set to the value of the last call. +func (b *ProviderLeasedIPApplyConfiguration) WithSpec(value *ProviderLeasedIPSpecApplyConfiguration) *ProviderLeasedIPApplyConfiguration { + b.Spec = value + return b +} + +// GetName retrieves the value of the Name field in the declarative configuration. +func (b *ProviderLeasedIPApplyConfiguration) GetName() *string { + b.ensureObjectMetaApplyConfigurationExists() + return b.ObjectMetaApplyConfiguration.Name +} diff --git a/pkg/client/applyconfiguration/akash.network/v2beta2/providerleasedipspec.go b/pkg/client/applyconfiguration/akash.network/v2beta2/providerleasedipspec.go new file mode 100644 index 000000000..e40b7db11 --- /dev/null +++ b/pkg/client/applyconfiguration/akash.network/v2beta2/providerleasedipspec.go @@ -0,0 +1,84 @@ +/* +Copyright The Akash Network Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by applyconfiguration-gen. DO NOT EDIT. + +package v2beta2 + +// ProviderLeasedIPSpecApplyConfiguration represents a declarative configuration of the ProviderLeasedIPSpec type for use +// with apply. +type ProviderLeasedIPSpecApplyConfiguration struct { + LeaseID *LeaseIDApplyConfiguration `json:"lease_id,omitempty"` + ServiceName *string `json:"service_name,omitempty"` + Port *uint32 `json:"port,omitempty"` + ExternalPort *uint32 `json:"external_port,omitempty"` + SharingKey *string `json:"sharing_key,omitempty"` + Protocol *string `json:"protocol,omitempty"` +} + +// ProviderLeasedIPSpecApplyConfiguration constructs a declarative configuration of the ProviderLeasedIPSpec type for use with +// apply. +func ProviderLeasedIPSpec() *ProviderLeasedIPSpecApplyConfiguration { + return &ProviderLeasedIPSpecApplyConfiguration{} +} + +// WithLeaseID sets the LeaseID field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the LeaseID field is set to the value of the last call. +func (b *ProviderLeasedIPSpecApplyConfiguration) WithLeaseID(value *LeaseIDApplyConfiguration) *ProviderLeasedIPSpecApplyConfiguration { + b.LeaseID = value + return b +} + +// WithServiceName sets the ServiceName field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the ServiceName field is set to the value of the last call. +func (b *ProviderLeasedIPSpecApplyConfiguration) WithServiceName(value string) *ProviderLeasedIPSpecApplyConfiguration { + b.ServiceName = &value + return b +} + +// WithPort sets the Port field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Port field is set to the value of the last call. +func (b *ProviderLeasedIPSpecApplyConfiguration) WithPort(value uint32) *ProviderLeasedIPSpecApplyConfiguration { + b.Port = &value + return b +} + +// WithExternalPort sets the ExternalPort field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the ExternalPort field is set to the value of the last call. +func (b *ProviderLeasedIPSpecApplyConfiguration) WithExternalPort(value uint32) *ProviderLeasedIPSpecApplyConfiguration { + b.ExternalPort = &value + return b +} + +// WithSharingKey sets the SharingKey field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the SharingKey field is set to the value of the last call. +func (b *ProviderLeasedIPSpecApplyConfiguration) WithSharingKey(value string) *ProviderLeasedIPSpecApplyConfiguration { + b.SharingKey = &value + return b +} + +// WithProtocol sets the Protocol field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Protocol field is set to the value of the last call. +func (b *ProviderLeasedIPSpecApplyConfiguration) WithProtocol(value string) *ProviderLeasedIPSpecApplyConfiguration { + b.Protocol = &value + return b +} diff --git a/pkg/client/applyconfiguration/akash.network/v2beta2/resourcecpu.go b/pkg/client/applyconfiguration/akash.network/v2beta2/resourcecpu.go new file mode 100644 index 000000000..62b56bd12 --- /dev/null +++ b/pkg/client/applyconfiguration/akash.network/v2beta2/resourcecpu.go @@ -0,0 +1,52 @@ +/* +Copyright The Akash Network Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by applyconfiguration-gen. DO NOT EDIT. + +package v2beta2 + +import ( + v1beta3 "github.com/akash-network/akash-api/go/node/types/v1beta3" +) + +// ResourceCPUApplyConfiguration represents a declarative configuration of the ResourceCPU type for use +// with apply. +type ResourceCPUApplyConfiguration struct { + Units *uint32 `json:"units,omitempty"` + Attributes *v1beta3.Attributes `json:"attributes,omitempty"` +} + +// ResourceCPUApplyConfiguration constructs a declarative configuration of the ResourceCPU type for use with +// apply. +func ResourceCPU() *ResourceCPUApplyConfiguration { + return &ResourceCPUApplyConfiguration{} +} + +// WithUnits sets the Units field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Units field is set to the value of the last call. +func (b *ResourceCPUApplyConfiguration) WithUnits(value uint32) *ResourceCPUApplyConfiguration { + b.Units = &value + return b +} + +// WithAttributes sets the Attributes field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Attributes field is set to the value of the last call. +func (b *ResourceCPUApplyConfiguration) WithAttributes(value v1beta3.Attributes) *ResourceCPUApplyConfiguration { + b.Attributes = &value + return b +} diff --git a/pkg/client/applyconfiguration/akash.network/v2beta2/resourcegpu.go b/pkg/client/applyconfiguration/akash.network/v2beta2/resourcegpu.go new file mode 100644 index 000000000..e9ca344d8 --- /dev/null +++ b/pkg/client/applyconfiguration/akash.network/v2beta2/resourcegpu.go @@ -0,0 +1,52 @@ +/* +Copyright The Akash Network Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by applyconfiguration-gen. DO NOT EDIT. + +package v2beta2 + +import ( + v1beta3 "github.com/akash-network/akash-api/go/node/types/v1beta3" +) + +// ResourceGPUApplyConfiguration represents a declarative configuration of the ResourceGPU type for use +// with apply. +type ResourceGPUApplyConfiguration struct { + Units *uint32 `json:"units,omitempty"` + Attributes *v1beta3.Attributes `json:"attributes,omitempty"` +} + +// ResourceGPUApplyConfiguration constructs a declarative configuration of the ResourceGPU type for use with +// apply. +func ResourceGPU() *ResourceGPUApplyConfiguration { + return &ResourceGPUApplyConfiguration{} +} + +// WithUnits sets the Units field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Units field is set to the value of the last call. +func (b *ResourceGPUApplyConfiguration) WithUnits(value uint32) *ResourceGPUApplyConfiguration { + b.Units = &value + return b +} + +// WithAttributes sets the Attributes field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Attributes field is set to the value of the last call. +func (b *ResourceGPUApplyConfiguration) WithAttributes(value v1beta3.Attributes) *ResourceGPUApplyConfiguration { + b.Attributes = &value + return b +} diff --git a/pkg/client/applyconfiguration/akash.network/v2beta2/resourcememory.go b/pkg/client/applyconfiguration/akash.network/v2beta2/resourcememory.go new file mode 100644 index 000000000..3ef59bdf1 --- /dev/null +++ b/pkg/client/applyconfiguration/akash.network/v2beta2/resourcememory.go @@ -0,0 +1,52 @@ +/* +Copyright The Akash Network Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by applyconfiguration-gen. DO NOT EDIT. + +package v2beta2 + +import ( + v1beta3 "github.com/akash-network/akash-api/go/node/types/v1beta3" +) + +// ResourceMemoryApplyConfiguration represents a declarative configuration of the ResourceMemory type for use +// with apply. +type ResourceMemoryApplyConfiguration struct { + Size *string `json:"size,omitempty"` + Attributes *v1beta3.Attributes `json:"attributes,omitempty"` +} + +// ResourceMemoryApplyConfiguration constructs a declarative configuration of the ResourceMemory type for use with +// apply. +func ResourceMemory() *ResourceMemoryApplyConfiguration { + return &ResourceMemoryApplyConfiguration{} +} + +// WithSize sets the Size field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Size field is set to the value of the last call. +func (b *ResourceMemoryApplyConfiguration) WithSize(value string) *ResourceMemoryApplyConfiguration { + b.Size = &value + return b +} + +// WithAttributes sets the Attributes field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Attributes field is set to the value of the last call. +func (b *ResourceMemoryApplyConfiguration) WithAttributes(value v1beta3.Attributes) *ResourceMemoryApplyConfiguration { + b.Attributes = &value + return b +} diff --git a/pkg/client/applyconfiguration/akash.network/v2beta2/resourcepair.go b/pkg/client/applyconfiguration/akash.network/v2beta2/resourcepair.go new file mode 100644 index 000000000..bc1d2fb9a --- /dev/null +++ b/pkg/client/applyconfiguration/akash.network/v2beta2/resourcepair.go @@ -0,0 +1,48 @@ +/* +Copyright The Akash Network Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by applyconfiguration-gen. DO NOT EDIT. + +package v2beta2 + +// ResourcePairApplyConfiguration represents a declarative configuration of the ResourcePair type for use +// with apply. +type ResourcePairApplyConfiguration struct { + Allocatable *uint64 `json:"allocatable,omitempty"` + Allocated *uint64 `json:"allocated,omitempty"` +} + +// ResourcePairApplyConfiguration constructs a declarative configuration of the ResourcePair type for use with +// apply. +func ResourcePair() *ResourcePairApplyConfiguration { + return &ResourcePairApplyConfiguration{} +} + +// WithAllocatable sets the Allocatable field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Allocatable field is set to the value of the last call. +func (b *ResourcePairApplyConfiguration) WithAllocatable(value uint64) *ResourcePairApplyConfiguration { + b.Allocatable = &value + return b +} + +// WithAllocated sets the Allocated field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Allocated field is set to the value of the last call. +func (b *ResourcePairApplyConfiguration) WithAllocated(value uint64) *ResourcePairApplyConfiguration { + b.Allocated = &value + return b +} diff --git a/pkg/client/applyconfiguration/akash.network/v2beta2/resources.go b/pkg/client/applyconfiguration/akash.network/v2beta2/resources.go new file mode 100644 index 000000000..ada405787 --- /dev/null +++ b/pkg/client/applyconfiguration/akash.network/v2beta2/resources.go @@ -0,0 +1,79 @@ +/* +Copyright The Akash Network Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by applyconfiguration-gen. DO NOT EDIT. + +package v2beta2 + +import ( + akashnetworkv2beta2 "github.com/akash-network/provider/pkg/apis/akash.network/v2beta2" +) + +// ResourcesApplyConfiguration represents a declarative configuration of the Resources type for use +// with apply. +type ResourcesApplyConfiguration struct { + ID *uint32 `json:"id,omitempty"` + CPU *ResourceCPUApplyConfiguration `json:"cpu,omitempty"` + GPU *ResourceGPUApplyConfiguration `json:"gpu,omitempty"` + Memory *ResourceMemoryApplyConfiguration `json:"memory,omitempty"` + Storage *akashnetworkv2beta2.ResourceStorage `json:"storage,omitempty"` +} + +// ResourcesApplyConfiguration constructs a declarative configuration of the Resources type for use with +// apply. +func Resources() *ResourcesApplyConfiguration { + return &ResourcesApplyConfiguration{} +} + +// WithID sets the ID field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the ID field is set to the value of the last call. +func (b *ResourcesApplyConfiguration) WithID(value uint32) *ResourcesApplyConfiguration { + b.ID = &value + return b +} + +// WithCPU sets the CPU field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the CPU field is set to the value of the last call. +func (b *ResourcesApplyConfiguration) WithCPU(value *ResourceCPUApplyConfiguration) *ResourcesApplyConfiguration { + b.CPU = value + return b +} + +// WithGPU sets the GPU field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the GPU field is set to the value of the last call. +func (b *ResourcesApplyConfiguration) WithGPU(value *ResourceGPUApplyConfiguration) *ResourcesApplyConfiguration { + b.GPU = value + return b +} + +// WithMemory sets the Memory field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Memory field is set to the value of the last call. +func (b *ResourcesApplyConfiguration) WithMemory(value *ResourceMemoryApplyConfiguration) *ResourcesApplyConfiguration { + b.Memory = value + return b +} + +// WithStorage sets the Storage field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Storage field is set to the value of the last call. +func (b *ResourcesApplyConfiguration) WithStorage(value akashnetworkv2beta2.ResourceStorage) *ResourcesApplyConfiguration { + b.Storage = &value + return b +} diff --git a/pkg/client/applyconfiguration/akash.network/v2beta2/resourcevolume.go b/pkg/client/applyconfiguration/akash.network/v2beta2/resourcevolume.go new file mode 100644 index 000000000..a99f1bc63 --- /dev/null +++ b/pkg/client/applyconfiguration/akash.network/v2beta2/resourcevolume.go @@ -0,0 +1,61 @@ +/* +Copyright The Akash Network Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by applyconfiguration-gen. DO NOT EDIT. + +package v2beta2 + +import ( + v1beta3 "github.com/akash-network/akash-api/go/node/types/v1beta3" +) + +// ResourceVolumeApplyConfiguration represents a declarative configuration of the ResourceVolume type for use +// with apply. +type ResourceVolumeApplyConfiguration struct { + Name *string `json:"name,omitempty"` + Size *string `json:"size,omitempty"` + Attributes *v1beta3.Attributes `json:"attributes,omitempty"` +} + +// ResourceVolumeApplyConfiguration constructs a declarative configuration of the ResourceVolume type for use with +// apply. +func ResourceVolume() *ResourceVolumeApplyConfiguration { + return &ResourceVolumeApplyConfiguration{} +} + +// WithName sets the Name field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Name field is set to the value of the last call. +func (b *ResourceVolumeApplyConfiguration) WithName(value string) *ResourceVolumeApplyConfiguration { + b.Name = &value + return b +} + +// WithSize sets the Size field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Size field is set to the value of the last call. +func (b *ResourceVolumeApplyConfiguration) WithSize(value string) *ResourceVolumeApplyConfiguration { + b.Size = &value + return b +} + +// WithAttributes sets the Attributes field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Attributes field is set to the value of the last call. +func (b *ResourceVolumeApplyConfiguration) WithAttributes(value v1beta3.Attributes) *ResourceVolumeApplyConfiguration { + b.Attributes = &value + return b +} diff --git a/pkg/client/applyconfiguration/akash.network/v2beta2/schedulerparams.go b/pkg/client/applyconfiguration/akash.network/v2beta2/schedulerparams.go new file mode 100644 index 000000000..02d8246d1 --- /dev/null +++ b/pkg/client/applyconfiguration/akash.network/v2beta2/schedulerparams.go @@ -0,0 +1,48 @@ +/* +Copyright The Akash Network Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by applyconfiguration-gen. DO NOT EDIT. + +package v2beta2 + +// SchedulerParamsApplyConfiguration represents a declarative configuration of the SchedulerParams type for use +// with apply. +type SchedulerParamsApplyConfiguration struct { + RuntimeClass *string `json:"runtime_class,omitempty"` + Resources *SchedulerResourcesApplyConfiguration `json:"resources,omitempty"` +} + +// SchedulerParamsApplyConfiguration constructs a declarative configuration of the SchedulerParams type for use with +// apply. +func SchedulerParams() *SchedulerParamsApplyConfiguration { + return &SchedulerParamsApplyConfiguration{} +} + +// WithRuntimeClass sets the RuntimeClass field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the RuntimeClass field is set to the value of the last call. +func (b *SchedulerParamsApplyConfiguration) WithRuntimeClass(value string) *SchedulerParamsApplyConfiguration { + b.RuntimeClass = &value + return b +} + +// WithResources sets the Resources field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Resources field is set to the value of the last call. +func (b *SchedulerParamsApplyConfiguration) WithResources(value *SchedulerResourcesApplyConfiguration) *SchedulerParamsApplyConfiguration { + b.Resources = value + return b +} diff --git a/pkg/client/applyconfiguration/akash.network/v2beta2/schedulerresourcegpu.go b/pkg/client/applyconfiguration/akash.network/v2beta2/schedulerresourcegpu.go new file mode 100644 index 000000000..8f3b75bb1 --- /dev/null +++ b/pkg/client/applyconfiguration/akash.network/v2beta2/schedulerresourcegpu.go @@ -0,0 +1,66 @@ +/* +Copyright The Akash Network Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by applyconfiguration-gen. DO NOT EDIT. + +package v2beta2 + +// SchedulerResourceGPUApplyConfiguration represents a declarative configuration of the SchedulerResourceGPU type for use +// with apply. +type SchedulerResourceGPUApplyConfiguration struct { + Vendor *string `json:"vendor,omitempty"` + Model *string `json:"model,omitempty"` + MemorySize *string `json:"memory_size,omitempty"` + Interface *string `json:"interface,omitempty"` +} + +// SchedulerResourceGPUApplyConfiguration constructs a declarative configuration of the SchedulerResourceGPU type for use with +// apply. +func SchedulerResourceGPU() *SchedulerResourceGPUApplyConfiguration { + return &SchedulerResourceGPUApplyConfiguration{} +} + +// WithVendor sets the Vendor field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Vendor field is set to the value of the last call. +func (b *SchedulerResourceGPUApplyConfiguration) WithVendor(value string) *SchedulerResourceGPUApplyConfiguration { + b.Vendor = &value + return b +} + +// WithModel sets the Model field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Model field is set to the value of the last call. +func (b *SchedulerResourceGPUApplyConfiguration) WithModel(value string) *SchedulerResourceGPUApplyConfiguration { + b.Model = &value + return b +} + +// WithMemorySize sets the MemorySize field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the MemorySize field is set to the value of the last call. +func (b *SchedulerResourceGPUApplyConfiguration) WithMemorySize(value string) *SchedulerResourceGPUApplyConfiguration { + b.MemorySize = &value + return b +} + +// WithInterface sets the Interface field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Interface field is set to the value of the last call. +func (b *SchedulerResourceGPUApplyConfiguration) WithInterface(value string) *SchedulerResourceGPUApplyConfiguration { + b.Interface = &value + return b +} diff --git a/pkg/client/applyconfiguration/akash.network/v2beta2/schedulerresources.go b/pkg/client/applyconfiguration/akash.network/v2beta2/schedulerresources.go new file mode 100644 index 000000000..49a1a8ed2 --- /dev/null +++ b/pkg/client/applyconfiguration/akash.network/v2beta2/schedulerresources.go @@ -0,0 +1,39 @@ +/* +Copyright The Akash Network Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by applyconfiguration-gen. DO NOT EDIT. + +package v2beta2 + +// SchedulerResourcesApplyConfiguration represents a declarative configuration of the SchedulerResources type for use +// with apply. +type SchedulerResourcesApplyConfiguration struct { + GPU *SchedulerResourceGPUApplyConfiguration `json:"gpu,omitempty"` +} + +// SchedulerResourcesApplyConfiguration constructs a declarative configuration of the SchedulerResources type for use with +// apply. +func SchedulerResources() *SchedulerResourcesApplyConfiguration { + return &SchedulerResourcesApplyConfiguration{} +} + +// WithGPU sets the GPU field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the GPU field is set to the value of the last call. +func (b *SchedulerResourcesApplyConfiguration) WithGPU(value *SchedulerResourceGPUApplyConfiguration) *SchedulerResourcesApplyConfiguration { + b.GPU = value + return b +} diff --git a/pkg/client/applyconfiguration/internal/internal.go b/pkg/client/applyconfiguration/internal/internal.go new file mode 100644 index 000000000..7036e1e9c --- /dev/null +++ b/pkg/client/applyconfiguration/internal/internal.go @@ -0,0 +1,62 @@ +/* +Copyright The Akash Network Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by applyconfiguration-gen. DO NOT EDIT. + +package internal + +import ( + fmt "fmt" + sync "sync" + + typed "sigs.k8s.io/structured-merge-diff/v4/typed" +) + +func Parser() *typed.Parser { + parserOnce.Do(func() { + var err error + parser, err = typed.NewParser(schemaYAML) + if err != nil { + panic(fmt.Sprintf("Failed to parse schema: %v", err)) + } + }) + return parser +} + +var parserOnce sync.Once +var parser *typed.Parser +var schemaYAML = typed.YAMLObject(`types: +- name: __untyped_atomic_ + scalar: untyped + list: + elementType: + namedType: __untyped_atomic_ + elementRelationship: atomic + map: + elementType: + namedType: __untyped_atomic_ + elementRelationship: atomic +- name: __untyped_deduced_ + scalar: untyped + list: + elementType: + namedType: __untyped_atomic_ + elementRelationship: atomic + map: + elementType: + namedType: __untyped_deduced_ + elementRelationship: separable +`) diff --git a/pkg/client/applyconfiguration/utils.go b/pkg/client/applyconfiguration/utils.go new file mode 100644 index 000000000..8c7c93338 --- /dev/null +++ b/pkg/client/applyconfiguration/utils.go @@ -0,0 +1,158 @@ +/* +Copyright The Akash Network Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by applyconfiguration-gen. DO NOT EDIT. + +package applyconfiguration + +import ( + v2beta1 "github.com/akash-network/provider/pkg/apis/akash.network/v2beta1" + v2beta2 "github.com/akash-network/provider/pkg/apis/akash.network/v2beta2" + akashnetworkv2beta1 "github.com/akash-network/provider/pkg/client/applyconfiguration/akash.network/v2beta1" + akashnetworkv2beta2 "github.com/akash-network/provider/pkg/client/applyconfiguration/akash.network/v2beta2" + internal "github.com/akash-network/provider/pkg/client/applyconfiguration/internal" + runtime "k8s.io/apimachinery/pkg/runtime" + schema "k8s.io/apimachinery/pkg/runtime/schema" + testing "k8s.io/client-go/testing" +) + +// ForKind returns an apply configuration type for the given GroupVersionKind, or nil if no +// apply configuration type exists for the given GroupVersionKind. +func ForKind(kind schema.GroupVersionKind) interface{} { + switch kind { + // Group=akash.network, Version=v2beta1 + case v2beta1.SchemeGroupVersion.WithKind("Inventory"): + return &akashnetworkv2beta1.InventoryApplyConfiguration{} + case v2beta1.SchemeGroupVersion.WithKind("InventoryClusterStorage"): + return &akashnetworkv2beta1.InventoryClusterStorageApplyConfiguration{} + case v2beta1.SchemeGroupVersion.WithKind("InventoryRequest"): + return &akashnetworkv2beta1.InventoryRequestApplyConfiguration{} + case v2beta1.SchemeGroupVersion.WithKind("InventoryRequestSpec"): + return &akashnetworkv2beta1.InventoryRequestSpecApplyConfiguration{} + case v2beta1.SchemeGroupVersion.WithKind("InventoryRequestStatus"): + return &akashnetworkv2beta1.InventoryRequestStatusApplyConfiguration{} + case v2beta1.SchemeGroupVersion.WithKind("InventorySpec"): + return &akashnetworkv2beta1.InventorySpecApplyConfiguration{} + case v2beta1.SchemeGroupVersion.WithKind("InventoryStatus"): + return &akashnetworkv2beta1.InventoryStatusApplyConfiguration{} + case v2beta1.SchemeGroupVersion.WithKind("LeaseID"): + return &akashnetworkv2beta1.LeaseIDApplyConfiguration{} + case v2beta1.SchemeGroupVersion.WithKind("Manifest"): + return &akashnetworkv2beta1.ManifestApplyConfiguration{} + case v2beta1.SchemeGroupVersion.WithKind("ManifestGroup"): + return &akashnetworkv2beta1.ManifestGroupApplyConfiguration{} + case v2beta1.SchemeGroupVersion.WithKind("ManifestService"): + return &akashnetworkv2beta1.ManifestServiceApplyConfiguration{} + case v2beta1.SchemeGroupVersion.WithKind("ManifestServiceExpose"): + return &akashnetworkv2beta1.ManifestServiceExposeApplyConfiguration{} + case v2beta1.SchemeGroupVersion.WithKind("ManifestServiceExposeHTTPOptions"): + return &akashnetworkv2beta1.ManifestServiceExposeHTTPOptionsApplyConfiguration{} + case v2beta1.SchemeGroupVersion.WithKind("ManifestServiceParams"): + return &akashnetworkv2beta1.ManifestServiceParamsApplyConfiguration{} + case v2beta1.SchemeGroupVersion.WithKind("ManifestServiceStorage"): + return &akashnetworkv2beta1.ManifestServiceStorageApplyConfiguration{} + case v2beta1.SchemeGroupVersion.WithKind("ManifestSpec"): + return &akashnetworkv2beta1.ManifestSpecApplyConfiguration{} + case v2beta1.SchemeGroupVersion.WithKind("ManifestStatus"): + return &akashnetworkv2beta1.ManifestStatusApplyConfiguration{} + case v2beta1.SchemeGroupVersion.WithKind("ManifestStorageParams"): + return &akashnetworkv2beta1.ManifestStorageParamsApplyConfiguration{} + case v2beta1.SchemeGroupVersion.WithKind("ProviderHost"): + return &akashnetworkv2beta1.ProviderHostApplyConfiguration{} + case v2beta1.SchemeGroupVersion.WithKind("ProviderHostSpec"): + return &akashnetworkv2beta1.ProviderHostSpecApplyConfiguration{} + case v2beta1.SchemeGroupVersion.WithKind("ProviderHostStatus"): + return &akashnetworkv2beta1.ProviderHostStatusApplyConfiguration{} + case v2beta1.SchemeGroupVersion.WithKind("ProviderLeasedIP"): + return &akashnetworkv2beta1.ProviderLeasedIPApplyConfiguration{} + case v2beta1.SchemeGroupVersion.WithKind("ProviderLeasedIPSpec"): + return &akashnetworkv2beta1.ProviderLeasedIPSpecApplyConfiguration{} + case v2beta1.SchemeGroupVersion.WithKind("ProviderLeasedIPStatus"): + return &akashnetworkv2beta1.ProviderLeasedIPStatusApplyConfiguration{} + case v2beta1.SchemeGroupVersion.WithKind("ResourcePair"): + return &akashnetworkv2beta1.ResourcePairApplyConfiguration{} + case v2beta1.SchemeGroupVersion.WithKind("ResourceUnits"): + return &akashnetworkv2beta1.ResourceUnitsApplyConfiguration{} + + // Group=akash.network, Version=v2beta2 + case v2beta2.SchemeGroupVersion.WithKind("Inventory"): + return &akashnetworkv2beta2.InventoryApplyConfiguration{} + case v2beta2.SchemeGroupVersion.WithKind("InventoryClusterStorage"): + return &akashnetworkv2beta2.InventoryClusterStorageApplyConfiguration{} + case v2beta2.SchemeGroupVersion.WithKind("InventoryRequest"): + return &akashnetworkv2beta2.InventoryRequestApplyConfiguration{} + case v2beta2.SchemeGroupVersion.WithKind("InventoryRequestSpec"): + return &akashnetworkv2beta2.InventoryRequestSpecApplyConfiguration{} + case v2beta2.SchemeGroupVersion.WithKind("InventoryRequestStatus"): + return &akashnetworkv2beta2.InventoryRequestStatusApplyConfiguration{} + case v2beta2.SchemeGroupVersion.WithKind("InventorySpec"): + return &akashnetworkv2beta2.InventorySpecApplyConfiguration{} + case v2beta2.SchemeGroupVersion.WithKind("InventoryStatus"): + return &akashnetworkv2beta2.InventoryStatusApplyConfiguration{} + case v2beta2.SchemeGroupVersion.WithKind("LeaseID"): + return &akashnetworkv2beta2.LeaseIDApplyConfiguration{} + case v2beta2.SchemeGroupVersion.WithKind("Manifest"): + return &akashnetworkv2beta2.ManifestApplyConfiguration{} + case v2beta2.SchemeGroupVersion.WithKind("ManifestGroup"): + return &akashnetworkv2beta2.ManifestGroupApplyConfiguration{} + case v2beta2.SchemeGroupVersion.WithKind("ManifestService"): + return &akashnetworkv2beta2.ManifestServiceApplyConfiguration{} + case v2beta2.SchemeGroupVersion.WithKind("ManifestServiceCredentials"): + return &akashnetworkv2beta2.ManifestServiceCredentialsApplyConfiguration{} + case v2beta2.SchemeGroupVersion.WithKind("ManifestServiceExpose"): + return &akashnetworkv2beta2.ManifestServiceExposeApplyConfiguration{} + case v2beta2.SchemeGroupVersion.WithKind("ManifestServiceExposeHTTPOptions"): + return &akashnetworkv2beta2.ManifestServiceExposeHTTPOptionsApplyConfiguration{} + case v2beta2.SchemeGroupVersion.WithKind("ManifestServiceParams"): + return &akashnetworkv2beta2.ManifestServiceParamsApplyConfiguration{} + case v2beta2.SchemeGroupVersion.WithKind("ManifestSpec"): + return &akashnetworkv2beta2.ManifestSpecApplyConfiguration{} + case v2beta2.SchemeGroupVersion.WithKind("ManifestStorageParams"): + return &akashnetworkv2beta2.ManifestStorageParamsApplyConfiguration{} + case v2beta2.SchemeGroupVersion.WithKind("ProviderHost"): + return &akashnetworkv2beta2.ProviderHostApplyConfiguration{} + case v2beta2.SchemeGroupVersion.WithKind("ProviderHostSpec"): + return &akashnetworkv2beta2.ProviderHostSpecApplyConfiguration{} + case v2beta2.SchemeGroupVersion.WithKind("ProviderLeasedIP"): + return &akashnetworkv2beta2.ProviderLeasedIPApplyConfiguration{} + case v2beta2.SchemeGroupVersion.WithKind("ProviderLeasedIPSpec"): + return &akashnetworkv2beta2.ProviderLeasedIPSpecApplyConfiguration{} + case v2beta2.SchemeGroupVersion.WithKind("ResourceCPU"): + return &akashnetworkv2beta2.ResourceCPUApplyConfiguration{} + case v2beta2.SchemeGroupVersion.WithKind("ResourceGPU"): + return &akashnetworkv2beta2.ResourceGPUApplyConfiguration{} + case v2beta2.SchemeGroupVersion.WithKind("ResourceMemory"): + return &akashnetworkv2beta2.ResourceMemoryApplyConfiguration{} + case v2beta2.SchemeGroupVersion.WithKind("ResourcePair"): + return &akashnetworkv2beta2.ResourcePairApplyConfiguration{} + case v2beta2.SchemeGroupVersion.WithKind("Resources"): + return &akashnetworkv2beta2.ResourcesApplyConfiguration{} + case v2beta2.SchemeGroupVersion.WithKind("ResourceVolume"): + return &akashnetworkv2beta2.ResourceVolumeApplyConfiguration{} + case v2beta2.SchemeGroupVersion.WithKind("SchedulerParams"): + return &akashnetworkv2beta2.SchedulerParamsApplyConfiguration{} + case v2beta2.SchemeGroupVersion.WithKind("SchedulerResourceGPU"): + return &akashnetworkv2beta2.SchedulerResourceGPUApplyConfiguration{} + case v2beta2.SchemeGroupVersion.WithKind("SchedulerResources"): + return &akashnetworkv2beta2.SchedulerResourcesApplyConfiguration{} + + } + return nil +} + +func NewTypeConverter(scheme *runtime.Scheme) *testing.TypeConverter { + return &testing.TypeConverter{Scheme: scheme, TypeResolver: internal.Parser()} +} diff --git a/pkg/client/clientset/versioned/clientset.go b/pkg/client/clientset/versioned/clientset.go index a7614c7c8..577dfe31e 100644 --- a/pkg/client/clientset/versioned/clientset.go +++ b/pkg/client/clientset/versioned/clientset.go @@ -19,8 +19,8 @@ limitations under the License. package versioned import ( - "fmt" - "net/http" + fmt "fmt" + http "net/http" akashv2beta1 "github.com/akash-network/provider/pkg/client/clientset/versioned/typed/akash.network/v2beta1" akashv2beta2 "github.com/akash-network/provider/pkg/client/clientset/versioned/typed/akash.network/v2beta2" diff --git a/pkg/client/clientset/versioned/fake/clientset_generated.go b/pkg/client/clientset/versioned/fake/clientset_generated.go index ca2c1efb7..6fdd13a0a 100644 --- a/pkg/client/clientset/versioned/fake/clientset_generated.go +++ b/pkg/client/clientset/versioned/fake/clientset_generated.go @@ -19,6 +19,7 @@ limitations under the License. package fake import ( + applyconfiguration "github.com/akash-network/provider/pkg/client/applyconfiguration" clientset "github.com/akash-network/provider/pkg/client/clientset/versioned" akashv2beta1 "github.com/akash-network/provider/pkg/client/clientset/versioned/typed/akash.network/v2beta1" fakeakashv2beta1 "github.com/akash-network/provider/pkg/client/clientset/versioned/typed/akash.network/v2beta1/fake" @@ -33,8 +34,12 @@ import ( // NewSimpleClientset returns a clientset that will respond with the provided objects. // It's backed by a very simple object tracker that processes creates, updates and deletions as-is, -// without applying any validations and/or defaults. It shouldn't be considered a replacement +// without applying any field management, validations and/or defaults. It shouldn't be considered a replacement // for a real clientset and is mostly useful in simple unit tests. +// +// DEPRECATED: NewClientset replaces this with support for field management, which significantly improves +// server side apply testing. NewClientset is only available when apply configurations are generated (e.g. +// via --with-applyconfig). func NewSimpleClientset(objects ...runtime.Object) *Clientset { o := testing.NewObjectTracker(scheme, codecs.UniversalDecoder()) for _, obj := range objects { @@ -76,6 +81,38 @@ func (c *Clientset) Tracker() testing.ObjectTracker { return c.tracker } +// NewClientset returns a clientset that will respond with the provided objects. +// It's backed by a very simple object tracker that processes creates, updates and deletions as-is, +// without applying any validations and/or defaults. It shouldn't be considered a replacement +// for a real clientset and is mostly useful in simple unit tests. +func NewClientset(objects ...runtime.Object) *Clientset { + o := testing.NewFieldManagedObjectTracker( + scheme, + codecs.UniversalDecoder(), + applyconfiguration.NewTypeConverter(scheme), + ) + for _, obj := range objects { + if err := o.Add(obj); err != nil { + panic(err) + } + } + + cs := &Clientset{tracker: o} + cs.discovery = &fakediscovery.FakeDiscovery{Fake: &cs.Fake} + cs.AddReactor("*", "*", testing.ObjectReaction(o)) + cs.AddWatchReactor("*", func(action testing.Action) (handled bool, ret watch.Interface, err error) { + gvr := action.GetResource() + ns := action.GetNamespace() + watch, err := o.Watch(gvr, ns) + if err != nil { + return false, nil, err + } + return true, watch, nil + }) + + return cs +} + var ( _ clientset.Interface = &Clientset{} _ testing.FakeClient = &Clientset{} diff --git a/pkg/client/clientset/versioned/typed/akash.network/v2beta1/akash.network_client.go b/pkg/client/clientset/versioned/typed/akash.network/v2beta1/akash.network_client.go index 88a795ac6..c9972f1f4 100644 --- a/pkg/client/clientset/versioned/typed/akash.network/v2beta1/akash.network_client.go +++ b/pkg/client/clientset/versioned/typed/akash.network/v2beta1/akash.network_client.go @@ -19,10 +19,10 @@ limitations under the License. package v2beta1 import ( - "net/http" + http "net/http" - v2beta1 "github.com/akash-network/provider/pkg/apis/akash.network/v2beta1" - "github.com/akash-network/provider/pkg/client/clientset/versioned/scheme" + akashnetworkv2beta1 "github.com/akash-network/provider/pkg/apis/akash.network/v2beta1" + scheme "github.com/akash-network/provider/pkg/client/clientset/versioned/scheme" rest "k8s.io/client-go/rest" ) @@ -105,10 +105,10 @@ func New(c rest.Interface) *AkashV2beta1Client { } func setConfigDefaults(config *rest.Config) error { - gv := v2beta1.SchemeGroupVersion + gv := akashnetworkv2beta1.SchemeGroupVersion config.GroupVersion = &gv config.APIPath = "/apis" - config.NegotiatedSerializer = scheme.Codecs.WithoutConversion() + config.NegotiatedSerializer = rest.CodecFactoryForGeneratedClient(scheme.Scheme, scheme.Codecs).WithoutConversion() if config.UserAgent == "" { config.UserAgent = rest.DefaultKubernetesUserAgent() diff --git a/pkg/client/clientset/versioned/typed/akash.network/v2beta1/fake/fake_akash.network_client.go b/pkg/client/clientset/versioned/typed/akash.network/v2beta1/fake/fake_akash.network_client.go index 4667a5f54..ab7f2a407 100644 --- a/pkg/client/clientset/versioned/typed/akash.network/v2beta1/fake/fake_akash.network_client.go +++ b/pkg/client/clientset/versioned/typed/akash.network/v2beta1/fake/fake_akash.network_client.go @@ -29,23 +29,23 @@ type FakeAkashV2beta1 struct { } func (c *FakeAkashV2beta1) Inventories() v2beta1.InventoryInterface { - return &FakeInventories{c} + return newFakeInventories(c) } func (c *FakeAkashV2beta1) InventoryRequests() v2beta1.InventoryRequestInterface { - return &FakeInventoryRequests{c} + return newFakeInventoryRequests(c) } func (c *FakeAkashV2beta1) Manifests(namespace string) v2beta1.ManifestInterface { - return &FakeManifests{c, namespace} + return newFakeManifests(c, namespace) } func (c *FakeAkashV2beta1) ProviderHosts(namespace string) v2beta1.ProviderHostInterface { - return &FakeProviderHosts{c, namespace} + return newFakeProviderHosts(c, namespace) } func (c *FakeAkashV2beta1) ProviderLeasedIPs(namespace string) v2beta1.ProviderLeasedIPInterface { - return &FakeProviderLeasedIPs{c, namespace} + return newFakeProviderLeasedIPs(c, namespace) } // RESTClient returns a RESTClient that is used to communicate diff --git a/pkg/client/clientset/versioned/typed/akash.network/v2beta1/fake/fake_inventory.go b/pkg/client/clientset/versioned/typed/akash.network/v2beta1/fake/fake_inventory.go index 9420a0b38..f654ebef9 100644 --- a/pkg/client/clientset/versioned/typed/akash.network/v2beta1/fake/fake_inventory.go +++ b/pkg/client/clientset/versioned/typed/akash.network/v2beta1/fake/fake_inventory.go @@ -19,115 +19,33 @@ limitations under the License. package fake import ( - "context" - v2beta1 "github.com/akash-network/provider/pkg/apis/akash.network/v2beta1" - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - schema "k8s.io/apimachinery/pkg/runtime/schema" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" + akashnetworkv2beta1 "github.com/akash-network/provider/pkg/client/applyconfiguration/akash.network/v2beta1" + typedakashnetworkv2beta1 "github.com/akash-network/provider/pkg/client/clientset/versioned/typed/akash.network/v2beta1" + gentype "k8s.io/client-go/gentype" ) -// FakeInventories implements InventoryInterface -type FakeInventories struct { +// fakeInventories implements InventoryInterface +type fakeInventories struct { + *gentype.FakeClientWithListAndApply[*v2beta1.Inventory, *v2beta1.InventoryList, *akashnetworkv2beta1.InventoryApplyConfiguration] Fake *FakeAkashV2beta1 } -var inventoriesResource = schema.GroupVersionResource{Group: "akash.network", Version: "v2beta1", Resource: "inventories"} - -var inventoriesKind = schema.GroupVersionKind{Group: "akash.network", Version: "v2beta1", Kind: "Inventory"} - -// Get takes name of the inventory, and returns the corresponding inventory object, and an error if there is any. -func (c *FakeInventories) Get(ctx context.Context, name string, options v1.GetOptions) (result *v2beta1.Inventory, err error) { - obj, err := c.Fake. - Invokes(testing.NewRootGetAction(inventoriesResource, name), &v2beta1.Inventory{}) - if obj == nil { - return nil, err - } - return obj.(*v2beta1.Inventory), err -} - -// List takes label and field selectors, and returns the list of Inventories that match those selectors. -func (c *FakeInventories) List(ctx context.Context, opts v1.ListOptions) (result *v2beta1.InventoryList, err error) { - obj, err := c.Fake. - Invokes(testing.NewRootListAction(inventoriesResource, inventoriesKind, opts), &v2beta1.InventoryList{}) - if obj == nil { - return nil, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v2beta1.InventoryList{ListMeta: obj.(*v2beta1.InventoryList).ListMeta} - for _, item := range obj.(*v2beta1.InventoryList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested inventories. -func (c *FakeInventories) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewRootWatchAction(inventoriesResource, opts)) -} - -// Create takes the representation of a inventory and creates it. Returns the server's representation of the inventory, and an error, if there is any. -func (c *FakeInventories) Create(ctx context.Context, inventory *v2beta1.Inventory, opts v1.CreateOptions) (result *v2beta1.Inventory, err error) { - obj, err := c.Fake. - Invokes(testing.NewRootCreateAction(inventoriesResource, inventory), &v2beta1.Inventory{}) - if obj == nil { - return nil, err - } - return obj.(*v2beta1.Inventory), err -} - -// Update takes the representation of a inventory and updates it. Returns the server's representation of the inventory, and an error, if there is any. -func (c *FakeInventories) Update(ctx context.Context, inventory *v2beta1.Inventory, opts v1.UpdateOptions) (result *v2beta1.Inventory, err error) { - obj, err := c.Fake. - Invokes(testing.NewRootUpdateAction(inventoriesResource, inventory), &v2beta1.Inventory{}) - if obj == nil { - return nil, err - } - return obj.(*v2beta1.Inventory), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeInventories) UpdateStatus(ctx context.Context, inventory *v2beta1.Inventory, opts v1.UpdateOptions) (*v2beta1.Inventory, error) { - obj, err := c.Fake. - Invokes(testing.NewRootUpdateSubresourceAction(inventoriesResource, "status", inventory), &v2beta1.Inventory{}) - if obj == nil { - return nil, err - } - return obj.(*v2beta1.Inventory), err -} - -// Delete takes name of the inventory and deletes it. Returns an error if one occurs. -func (c *FakeInventories) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewRootDeleteActionWithOptions(inventoriesResource, name, opts), &v2beta1.Inventory{}) - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeInventories) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - action := testing.NewRootDeleteCollectionAction(inventoriesResource, listOpts) - - _, err := c.Fake.Invokes(action, &v2beta1.InventoryList{}) - return err -} - -// Patch applies the patch and returns the patched inventory. -func (c *FakeInventories) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v2beta1.Inventory, err error) { - obj, err := c.Fake. - Invokes(testing.NewRootPatchSubresourceAction(inventoriesResource, name, pt, data, subresources...), &v2beta1.Inventory{}) - if obj == nil { - return nil, err +func newFakeInventories(fake *FakeAkashV2beta1) typedakashnetworkv2beta1.InventoryInterface { + return &fakeInventories{ + gentype.NewFakeClientWithListAndApply[*v2beta1.Inventory, *v2beta1.InventoryList, *akashnetworkv2beta1.InventoryApplyConfiguration]( + fake.Fake, + "", + v2beta1.SchemeGroupVersion.WithResource("inventories"), + v2beta1.SchemeGroupVersion.WithKind("Inventory"), + func() *v2beta1.Inventory { return &v2beta1.Inventory{} }, + func() *v2beta1.InventoryList { return &v2beta1.InventoryList{} }, + func(dst, src *v2beta1.InventoryList) { dst.ListMeta = src.ListMeta }, + func(list *v2beta1.InventoryList) []*v2beta1.Inventory { return gentype.ToPointerSlice(list.Items) }, + func(list *v2beta1.InventoryList, items []*v2beta1.Inventory) { + list.Items = gentype.FromPointerSlice(items) + }, + ), + fake, } - return obj.(*v2beta1.Inventory), err } diff --git a/pkg/client/clientset/versioned/typed/akash.network/v2beta1/fake/fake_inventoryrequest.go b/pkg/client/clientset/versioned/typed/akash.network/v2beta1/fake/fake_inventoryrequest.go index 133860899..6026375c9 100644 --- a/pkg/client/clientset/versioned/typed/akash.network/v2beta1/fake/fake_inventoryrequest.go +++ b/pkg/client/clientset/versioned/typed/akash.network/v2beta1/fake/fake_inventoryrequest.go @@ -19,115 +19,35 @@ limitations under the License. package fake import ( - "context" - v2beta1 "github.com/akash-network/provider/pkg/apis/akash.network/v2beta1" - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - schema "k8s.io/apimachinery/pkg/runtime/schema" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" + akashnetworkv2beta1 "github.com/akash-network/provider/pkg/client/applyconfiguration/akash.network/v2beta1" + typedakashnetworkv2beta1 "github.com/akash-network/provider/pkg/client/clientset/versioned/typed/akash.network/v2beta1" + gentype "k8s.io/client-go/gentype" ) -// FakeInventoryRequests implements InventoryRequestInterface -type FakeInventoryRequests struct { +// fakeInventoryRequests implements InventoryRequestInterface +type fakeInventoryRequests struct { + *gentype.FakeClientWithListAndApply[*v2beta1.InventoryRequest, *v2beta1.InventoryRequestList, *akashnetworkv2beta1.InventoryRequestApplyConfiguration] Fake *FakeAkashV2beta1 } -var inventoryrequestsResource = schema.GroupVersionResource{Group: "akash.network", Version: "v2beta1", Resource: "inventoryrequests"} - -var inventoryrequestsKind = schema.GroupVersionKind{Group: "akash.network", Version: "v2beta1", Kind: "InventoryRequest"} - -// Get takes name of the inventoryRequest, and returns the corresponding inventoryRequest object, and an error if there is any. -func (c *FakeInventoryRequests) Get(ctx context.Context, name string, options v1.GetOptions) (result *v2beta1.InventoryRequest, err error) { - obj, err := c.Fake. - Invokes(testing.NewRootGetAction(inventoryrequestsResource, name), &v2beta1.InventoryRequest{}) - if obj == nil { - return nil, err - } - return obj.(*v2beta1.InventoryRequest), err -} - -// List takes label and field selectors, and returns the list of InventoryRequests that match those selectors. -func (c *FakeInventoryRequests) List(ctx context.Context, opts v1.ListOptions) (result *v2beta1.InventoryRequestList, err error) { - obj, err := c.Fake. - Invokes(testing.NewRootListAction(inventoryrequestsResource, inventoryrequestsKind, opts), &v2beta1.InventoryRequestList{}) - if obj == nil { - return nil, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v2beta1.InventoryRequestList{ListMeta: obj.(*v2beta1.InventoryRequestList).ListMeta} - for _, item := range obj.(*v2beta1.InventoryRequestList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested inventoryRequests. -func (c *FakeInventoryRequests) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewRootWatchAction(inventoryrequestsResource, opts)) -} - -// Create takes the representation of a inventoryRequest and creates it. Returns the server's representation of the inventoryRequest, and an error, if there is any. -func (c *FakeInventoryRequests) Create(ctx context.Context, inventoryRequest *v2beta1.InventoryRequest, opts v1.CreateOptions) (result *v2beta1.InventoryRequest, err error) { - obj, err := c.Fake. - Invokes(testing.NewRootCreateAction(inventoryrequestsResource, inventoryRequest), &v2beta1.InventoryRequest{}) - if obj == nil { - return nil, err - } - return obj.(*v2beta1.InventoryRequest), err -} - -// Update takes the representation of a inventoryRequest and updates it. Returns the server's representation of the inventoryRequest, and an error, if there is any. -func (c *FakeInventoryRequests) Update(ctx context.Context, inventoryRequest *v2beta1.InventoryRequest, opts v1.UpdateOptions) (result *v2beta1.InventoryRequest, err error) { - obj, err := c.Fake. - Invokes(testing.NewRootUpdateAction(inventoryrequestsResource, inventoryRequest), &v2beta1.InventoryRequest{}) - if obj == nil { - return nil, err - } - return obj.(*v2beta1.InventoryRequest), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeInventoryRequests) UpdateStatus(ctx context.Context, inventoryRequest *v2beta1.InventoryRequest, opts v1.UpdateOptions) (*v2beta1.InventoryRequest, error) { - obj, err := c.Fake. - Invokes(testing.NewRootUpdateSubresourceAction(inventoryrequestsResource, "status", inventoryRequest), &v2beta1.InventoryRequest{}) - if obj == nil { - return nil, err - } - return obj.(*v2beta1.InventoryRequest), err -} - -// Delete takes name of the inventoryRequest and deletes it. Returns an error if one occurs. -func (c *FakeInventoryRequests) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewRootDeleteActionWithOptions(inventoryrequestsResource, name, opts), &v2beta1.InventoryRequest{}) - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeInventoryRequests) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - action := testing.NewRootDeleteCollectionAction(inventoryrequestsResource, listOpts) - - _, err := c.Fake.Invokes(action, &v2beta1.InventoryRequestList{}) - return err -} - -// Patch applies the patch and returns the patched inventoryRequest. -func (c *FakeInventoryRequests) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v2beta1.InventoryRequest, err error) { - obj, err := c.Fake. - Invokes(testing.NewRootPatchSubresourceAction(inventoryrequestsResource, name, pt, data, subresources...), &v2beta1.InventoryRequest{}) - if obj == nil { - return nil, err +func newFakeInventoryRequests(fake *FakeAkashV2beta1) typedakashnetworkv2beta1.InventoryRequestInterface { + return &fakeInventoryRequests{ + gentype.NewFakeClientWithListAndApply[*v2beta1.InventoryRequest, *v2beta1.InventoryRequestList, *akashnetworkv2beta1.InventoryRequestApplyConfiguration]( + fake.Fake, + "", + v2beta1.SchemeGroupVersion.WithResource("inventoryrequests"), + v2beta1.SchemeGroupVersion.WithKind("InventoryRequest"), + func() *v2beta1.InventoryRequest { return &v2beta1.InventoryRequest{} }, + func() *v2beta1.InventoryRequestList { return &v2beta1.InventoryRequestList{} }, + func(dst, src *v2beta1.InventoryRequestList) { dst.ListMeta = src.ListMeta }, + func(list *v2beta1.InventoryRequestList) []*v2beta1.InventoryRequest { + return gentype.ToPointerSlice(list.Items) + }, + func(list *v2beta1.InventoryRequestList, items []*v2beta1.InventoryRequest) { + list.Items = gentype.FromPointerSlice(items) + }, + ), + fake, } - return obj.(*v2beta1.InventoryRequest), err } diff --git a/pkg/client/clientset/versioned/typed/akash.network/v2beta1/fake/fake_manifest.go b/pkg/client/clientset/versioned/typed/akash.network/v2beta1/fake/fake_manifest.go index 0f5be1136..6735b74c2 100644 --- a/pkg/client/clientset/versioned/typed/akash.network/v2beta1/fake/fake_manifest.go +++ b/pkg/client/clientset/versioned/typed/akash.network/v2beta1/fake/fake_manifest.go @@ -19,124 +19,33 @@ limitations under the License. package fake import ( - "context" - v2beta1 "github.com/akash-network/provider/pkg/apis/akash.network/v2beta1" - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - schema "k8s.io/apimachinery/pkg/runtime/schema" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" + akashnetworkv2beta1 "github.com/akash-network/provider/pkg/client/applyconfiguration/akash.network/v2beta1" + typedakashnetworkv2beta1 "github.com/akash-network/provider/pkg/client/clientset/versioned/typed/akash.network/v2beta1" + gentype "k8s.io/client-go/gentype" ) -// FakeManifests implements ManifestInterface -type FakeManifests struct { +// fakeManifests implements ManifestInterface +type fakeManifests struct { + *gentype.FakeClientWithListAndApply[*v2beta1.Manifest, *v2beta1.ManifestList, *akashnetworkv2beta1.ManifestApplyConfiguration] Fake *FakeAkashV2beta1 - ns string -} - -var manifestsResource = schema.GroupVersionResource{Group: "akash.network", Version: "v2beta1", Resource: "manifests"} - -var manifestsKind = schema.GroupVersionKind{Group: "akash.network", Version: "v2beta1", Kind: "Manifest"} - -// Get takes name of the manifest, and returns the corresponding manifest object, and an error if there is any. -func (c *FakeManifests) Get(ctx context.Context, name string, options v1.GetOptions) (result *v2beta1.Manifest, err error) { - obj, err := c.Fake. - Invokes(testing.NewGetAction(manifestsResource, c.ns, name), &v2beta1.Manifest{}) - - if obj == nil { - return nil, err - } - return obj.(*v2beta1.Manifest), err -} - -// List takes label and field selectors, and returns the list of Manifests that match those selectors. -func (c *FakeManifests) List(ctx context.Context, opts v1.ListOptions) (result *v2beta1.ManifestList, err error) { - obj, err := c.Fake. - Invokes(testing.NewListAction(manifestsResource, manifestsKind, c.ns, opts), &v2beta1.ManifestList{}) - - if obj == nil { - return nil, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v2beta1.ManifestList{ListMeta: obj.(*v2beta1.ManifestList).ListMeta} - for _, item := range obj.(*v2beta1.ManifestList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested manifests. -func (c *FakeManifests) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewWatchAction(manifestsResource, c.ns, opts)) - -} - -// Create takes the representation of a manifest and creates it. Returns the server's representation of the manifest, and an error, if there is any. -func (c *FakeManifests) Create(ctx context.Context, manifest *v2beta1.Manifest, opts v1.CreateOptions) (result *v2beta1.Manifest, err error) { - obj, err := c.Fake. - Invokes(testing.NewCreateAction(manifestsResource, c.ns, manifest), &v2beta1.Manifest{}) - - if obj == nil { - return nil, err - } - return obj.(*v2beta1.Manifest), err -} - -// Update takes the representation of a manifest and updates it. Returns the server's representation of the manifest, and an error, if there is any. -func (c *FakeManifests) Update(ctx context.Context, manifest *v2beta1.Manifest, opts v1.UpdateOptions) (result *v2beta1.Manifest, err error) { - obj, err := c.Fake. - Invokes(testing.NewUpdateAction(manifestsResource, c.ns, manifest), &v2beta1.Manifest{}) - - if obj == nil { - return nil, err - } - return obj.(*v2beta1.Manifest), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeManifests) UpdateStatus(ctx context.Context, manifest *v2beta1.Manifest, opts v1.UpdateOptions) (*v2beta1.Manifest, error) { - obj, err := c.Fake. - Invokes(testing.NewUpdateSubresourceAction(manifestsResource, "status", c.ns, manifest), &v2beta1.Manifest{}) - - if obj == nil { - return nil, err - } - return obj.(*v2beta1.Manifest), err -} - -// Delete takes name of the manifest and deletes it. Returns an error if one occurs. -func (c *FakeManifests) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewDeleteActionWithOptions(manifestsResource, c.ns, name, opts), &v2beta1.Manifest{}) - - return err } -// DeleteCollection deletes a collection of objects. -func (c *FakeManifests) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - action := testing.NewDeleteCollectionAction(manifestsResource, c.ns, listOpts) - - _, err := c.Fake.Invokes(action, &v2beta1.ManifestList{}) - return err -} - -// Patch applies the patch and returns the patched manifest. -func (c *FakeManifests) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v2beta1.Manifest, err error) { - obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceAction(manifestsResource, c.ns, name, pt, data, subresources...), &v2beta1.Manifest{}) - - if obj == nil { - return nil, err +func newFakeManifests(fake *FakeAkashV2beta1, namespace string) typedakashnetworkv2beta1.ManifestInterface { + return &fakeManifests{ + gentype.NewFakeClientWithListAndApply[*v2beta1.Manifest, *v2beta1.ManifestList, *akashnetworkv2beta1.ManifestApplyConfiguration]( + fake.Fake, + namespace, + v2beta1.SchemeGroupVersion.WithResource("manifests"), + v2beta1.SchemeGroupVersion.WithKind("Manifest"), + func() *v2beta1.Manifest { return &v2beta1.Manifest{} }, + func() *v2beta1.ManifestList { return &v2beta1.ManifestList{} }, + func(dst, src *v2beta1.ManifestList) { dst.ListMeta = src.ListMeta }, + func(list *v2beta1.ManifestList) []*v2beta1.Manifest { return gentype.ToPointerSlice(list.Items) }, + func(list *v2beta1.ManifestList, items []*v2beta1.Manifest) { + list.Items = gentype.FromPointerSlice(items) + }, + ), + fake, } - return obj.(*v2beta1.Manifest), err } diff --git a/pkg/client/clientset/versioned/typed/akash.network/v2beta1/fake/fake_providerhost.go b/pkg/client/clientset/versioned/typed/akash.network/v2beta1/fake/fake_providerhost.go index 8464ad602..18309d506 100644 --- a/pkg/client/clientset/versioned/typed/akash.network/v2beta1/fake/fake_providerhost.go +++ b/pkg/client/clientset/versioned/typed/akash.network/v2beta1/fake/fake_providerhost.go @@ -19,124 +19,35 @@ limitations under the License. package fake import ( - "context" - v2beta1 "github.com/akash-network/provider/pkg/apis/akash.network/v2beta1" - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - schema "k8s.io/apimachinery/pkg/runtime/schema" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" + akashnetworkv2beta1 "github.com/akash-network/provider/pkg/client/applyconfiguration/akash.network/v2beta1" + typedakashnetworkv2beta1 "github.com/akash-network/provider/pkg/client/clientset/versioned/typed/akash.network/v2beta1" + gentype "k8s.io/client-go/gentype" ) -// FakeProviderHosts implements ProviderHostInterface -type FakeProviderHosts struct { +// fakeProviderHosts implements ProviderHostInterface +type fakeProviderHosts struct { + *gentype.FakeClientWithListAndApply[*v2beta1.ProviderHost, *v2beta1.ProviderHostList, *akashnetworkv2beta1.ProviderHostApplyConfiguration] Fake *FakeAkashV2beta1 - ns string -} - -var providerhostsResource = schema.GroupVersionResource{Group: "akash.network", Version: "v2beta1", Resource: "providerhosts"} - -var providerhostsKind = schema.GroupVersionKind{Group: "akash.network", Version: "v2beta1", Kind: "ProviderHost"} - -// Get takes name of the providerHost, and returns the corresponding providerHost object, and an error if there is any. -func (c *FakeProviderHosts) Get(ctx context.Context, name string, options v1.GetOptions) (result *v2beta1.ProviderHost, err error) { - obj, err := c.Fake. - Invokes(testing.NewGetAction(providerhostsResource, c.ns, name), &v2beta1.ProviderHost{}) - - if obj == nil { - return nil, err - } - return obj.(*v2beta1.ProviderHost), err -} - -// List takes label and field selectors, and returns the list of ProviderHosts that match those selectors. -func (c *FakeProviderHosts) List(ctx context.Context, opts v1.ListOptions) (result *v2beta1.ProviderHostList, err error) { - obj, err := c.Fake. - Invokes(testing.NewListAction(providerhostsResource, providerhostsKind, c.ns, opts), &v2beta1.ProviderHostList{}) - - if obj == nil { - return nil, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v2beta1.ProviderHostList{ListMeta: obj.(*v2beta1.ProviderHostList).ListMeta} - for _, item := range obj.(*v2beta1.ProviderHostList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested providerHosts. -func (c *FakeProviderHosts) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewWatchAction(providerhostsResource, c.ns, opts)) - -} - -// Create takes the representation of a providerHost and creates it. Returns the server's representation of the providerHost, and an error, if there is any. -func (c *FakeProviderHosts) Create(ctx context.Context, providerHost *v2beta1.ProviderHost, opts v1.CreateOptions) (result *v2beta1.ProviderHost, err error) { - obj, err := c.Fake. - Invokes(testing.NewCreateAction(providerhostsResource, c.ns, providerHost), &v2beta1.ProviderHost{}) - - if obj == nil { - return nil, err - } - return obj.(*v2beta1.ProviderHost), err -} - -// Update takes the representation of a providerHost and updates it. Returns the server's representation of the providerHost, and an error, if there is any. -func (c *FakeProviderHosts) Update(ctx context.Context, providerHost *v2beta1.ProviderHost, opts v1.UpdateOptions) (result *v2beta1.ProviderHost, err error) { - obj, err := c.Fake. - Invokes(testing.NewUpdateAction(providerhostsResource, c.ns, providerHost), &v2beta1.ProviderHost{}) - - if obj == nil { - return nil, err - } - return obj.(*v2beta1.ProviderHost), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeProviderHosts) UpdateStatus(ctx context.Context, providerHost *v2beta1.ProviderHost, opts v1.UpdateOptions) (*v2beta1.ProviderHost, error) { - obj, err := c.Fake. - Invokes(testing.NewUpdateSubresourceAction(providerhostsResource, "status", c.ns, providerHost), &v2beta1.ProviderHost{}) - - if obj == nil { - return nil, err - } - return obj.(*v2beta1.ProviderHost), err -} - -// Delete takes name of the providerHost and deletes it. Returns an error if one occurs. -func (c *FakeProviderHosts) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewDeleteActionWithOptions(providerhostsResource, c.ns, name, opts), &v2beta1.ProviderHost{}) - - return err } -// DeleteCollection deletes a collection of objects. -func (c *FakeProviderHosts) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - action := testing.NewDeleteCollectionAction(providerhostsResource, c.ns, listOpts) - - _, err := c.Fake.Invokes(action, &v2beta1.ProviderHostList{}) - return err -} - -// Patch applies the patch and returns the patched providerHost. -func (c *FakeProviderHosts) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v2beta1.ProviderHost, err error) { - obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceAction(providerhostsResource, c.ns, name, pt, data, subresources...), &v2beta1.ProviderHost{}) - - if obj == nil { - return nil, err +func newFakeProviderHosts(fake *FakeAkashV2beta1, namespace string) typedakashnetworkv2beta1.ProviderHostInterface { + return &fakeProviderHosts{ + gentype.NewFakeClientWithListAndApply[*v2beta1.ProviderHost, *v2beta1.ProviderHostList, *akashnetworkv2beta1.ProviderHostApplyConfiguration]( + fake.Fake, + namespace, + v2beta1.SchemeGroupVersion.WithResource("providerhosts"), + v2beta1.SchemeGroupVersion.WithKind("ProviderHost"), + func() *v2beta1.ProviderHost { return &v2beta1.ProviderHost{} }, + func() *v2beta1.ProviderHostList { return &v2beta1.ProviderHostList{} }, + func(dst, src *v2beta1.ProviderHostList) { dst.ListMeta = src.ListMeta }, + func(list *v2beta1.ProviderHostList) []*v2beta1.ProviderHost { + return gentype.ToPointerSlice(list.Items) + }, + func(list *v2beta1.ProviderHostList, items []*v2beta1.ProviderHost) { + list.Items = gentype.FromPointerSlice(items) + }, + ), + fake, } - return obj.(*v2beta1.ProviderHost), err } diff --git a/pkg/client/clientset/versioned/typed/akash.network/v2beta1/fake/fake_providerleasedip.go b/pkg/client/clientset/versioned/typed/akash.network/v2beta1/fake/fake_providerleasedip.go index 6cc3996d1..55ca80132 100644 --- a/pkg/client/clientset/versioned/typed/akash.network/v2beta1/fake/fake_providerleasedip.go +++ b/pkg/client/clientset/versioned/typed/akash.network/v2beta1/fake/fake_providerleasedip.go @@ -19,124 +19,35 @@ limitations under the License. package fake import ( - "context" - v2beta1 "github.com/akash-network/provider/pkg/apis/akash.network/v2beta1" - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - schema "k8s.io/apimachinery/pkg/runtime/schema" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" + akashnetworkv2beta1 "github.com/akash-network/provider/pkg/client/applyconfiguration/akash.network/v2beta1" + typedakashnetworkv2beta1 "github.com/akash-network/provider/pkg/client/clientset/versioned/typed/akash.network/v2beta1" + gentype "k8s.io/client-go/gentype" ) -// FakeProviderLeasedIPs implements ProviderLeasedIPInterface -type FakeProviderLeasedIPs struct { +// fakeProviderLeasedIPs implements ProviderLeasedIPInterface +type fakeProviderLeasedIPs struct { + *gentype.FakeClientWithListAndApply[*v2beta1.ProviderLeasedIP, *v2beta1.ProviderLeasedIPList, *akashnetworkv2beta1.ProviderLeasedIPApplyConfiguration] Fake *FakeAkashV2beta1 - ns string -} - -var providerleasedipsResource = schema.GroupVersionResource{Group: "akash.network", Version: "v2beta1", Resource: "providerleasedips"} - -var providerleasedipsKind = schema.GroupVersionKind{Group: "akash.network", Version: "v2beta1", Kind: "ProviderLeasedIP"} - -// Get takes name of the providerLeasedIP, and returns the corresponding providerLeasedIP object, and an error if there is any. -func (c *FakeProviderLeasedIPs) Get(ctx context.Context, name string, options v1.GetOptions) (result *v2beta1.ProviderLeasedIP, err error) { - obj, err := c.Fake. - Invokes(testing.NewGetAction(providerleasedipsResource, c.ns, name), &v2beta1.ProviderLeasedIP{}) - - if obj == nil { - return nil, err - } - return obj.(*v2beta1.ProviderLeasedIP), err -} - -// List takes label and field selectors, and returns the list of ProviderLeasedIPs that match those selectors. -func (c *FakeProviderLeasedIPs) List(ctx context.Context, opts v1.ListOptions) (result *v2beta1.ProviderLeasedIPList, err error) { - obj, err := c.Fake. - Invokes(testing.NewListAction(providerleasedipsResource, providerleasedipsKind, c.ns, opts), &v2beta1.ProviderLeasedIPList{}) - - if obj == nil { - return nil, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v2beta1.ProviderLeasedIPList{ListMeta: obj.(*v2beta1.ProviderLeasedIPList).ListMeta} - for _, item := range obj.(*v2beta1.ProviderLeasedIPList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested providerLeasedIPs. -func (c *FakeProviderLeasedIPs) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewWatchAction(providerleasedipsResource, c.ns, opts)) - -} - -// Create takes the representation of a providerLeasedIP and creates it. Returns the server's representation of the providerLeasedIP, and an error, if there is any. -func (c *FakeProviderLeasedIPs) Create(ctx context.Context, providerLeasedIP *v2beta1.ProviderLeasedIP, opts v1.CreateOptions) (result *v2beta1.ProviderLeasedIP, err error) { - obj, err := c.Fake. - Invokes(testing.NewCreateAction(providerleasedipsResource, c.ns, providerLeasedIP), &v2beta1.ProviderLeasedIP{}) - - if obj == nil { - return nil, err - } - return obj.(*v2beta1.ProviderLeasedIP), err -} - -// Update takes the representation of a providerLeasedIP and updates it. Returns the server's representation of the providerLeasedIP, and an error, if there is any. -func (c *FakeProviderLeasedIPs) Update(ctx context.Context, providerLeasedIP *v2beta1.ProviderLeasedIP, opts v1.UpdateOptions) (result *v2beta1.ProviderLeasedIP, err error) { - obj, err := c.Fake. - Invokes(testing.NewUpdateAction(providerleasedipsResource, c.ns, providerLeasedIP), &v2beta1.ProviderLeasedIP{}) - - if obj == nil { - return nil, err - } - return obj.(*v2beta1.ProviderLeasedIP), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeProviderLeasedIPs) UpdateStatus(ctx context.Context, providerLeasedIP *v2beta1.ProviderLeasedIP, opts v1.UpdateOptions) (*v2beta1.ProviderLeasedIP, error) { - obj, err := c.Fake. - Invokes(testing.NewUpdateSubresourceAction(providerleasedipsResource, "status", c.ns, providerLeasedIP), &v2beta1.ProviderLeasedIP{}) - - if obj == nil { - return nil, err - } - return obj.(*v2beta1.ProviderLeasedIP), err -} - -// Delete takes name of the providerLeasedIP and deletes it. Returns an error if one occurs. -func (c *FakeProviderLeasedIPs) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewDeleteActionWithOptions(providerleasedipsResource, c.ns, name, opts), &v2beta1.ProviderLeasedIP{}) - - return err } -// DeleteCollection deletes a collection of objects. -func (c *FakeProviderLeasedIPs) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - action := testing.NewDeleteCollectionAction(providerleasedipsResource, c.ns, listOpts) - - _, err := c.Fake.Invokes(action, &v2beta1.ProviderLeasedIPList{}) - return err -} - -// Patch applies the patch and returns the patched providerLeasedIP. -func (c *FakeProviderLeasedIPs) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v2beta1.ProviderLeasedIP, err error) { - obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceAction(providerleasedipsResource, c.ns, name, pt, data, subresources...), &v2beta1.ProviderLeasedIP{}) - - if obj == nil { - return nil, err +func newFakeProviderLeasedIPs(fake *FakeAkashV2beta1, namespace string) typedakashnetworkv2beta1.ProviderLeasedIPInterface { + return &fakeProviderLeasedIPs{ + gentype.NewFakeClientWithListAndApply[*v2beta1.ProviderLeasedIP, *v2beta1.ProviderLeasedIPList, *akashnetworkv2beta1.ProviderLeasedIPApplyConfiguration]( + fake.Fake, + namespace, + v2beta1.SchemeGroupVersion.WithResource("providerleasedips"), + v2beta1.SchemeGroupVersion.WithKind("ProviderLeasedIP"), + func() *v2beta1.ProviderLeasedIP { return &v2beta1.ProviderLeasedIP{} }, + func() *v2beta1.ProviderLeasedIPList { return &v2beta1.ProviderLeasedIPList{} }, + func(dst, src *v2beta1.ProviderLeasedIPList) { dst.ListMeta = src.ListMeta }, + func(list *v2beta1.ProviderLeasedIPList) []*v2beta1.ProviderLeasedIP { + return gentype.ToPointerSlice(list.Items) + }, + func(list *v2beta1.ProviderLeasedIPList, items []*v2beta1.ProviderLeasedIP) { + list.Items = gentype.FromPointerSlice(items) + }, + ), + fake, } - return obj.(*v2beta1.ProviderLeasedIP), err } diff --git a/pkg/client/clientset/versioned/typed/akash.network/v2beta1/inventory.go b/pkg/client/clientset/versioned/typed/akash.network/v2beta1/inventory.go index 6243f55b7..062ea52f0 100644 --- a/pkg/client/clientset/versioned/typed/akash.network/v2beta1/inventory.go +++ b/pkg/client/clientset/versioned/typed/akash.network/v2beta1/inventory.go @@ -19,15 +19,15 @@ limitations under the License. package v2beta1 import ( - "context" - "time" + context "context" - v2beta1 "github.com/akash-network/provider/pkg/apis/akash.network/v2beta1" + akashnetworkv2beta1 "github.com/akash-network/provider/pkg/apis/akash.network/v2beta1" + applyconfigurationakashnetworkv2beta1 "github.com/akash-network/provider/pkg/client/applyconfiguration/akash.network/v2beta1" scheme "github.com/akash-network/provider/pkg/client/clientset/versioned/scheme" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" watch "k8s.io/apimachinery/pkg/watch" - rest "k8s.io/client-go/rest" + gentype "k8s.io/client-go/gentype" ) // InventoriesGetter has a method to return a InventoryInterface. @@ -38,147 +38,37 @@ type InventoriesGetter interface { // InventoryInterface has methods to work with Inventory resources. type InventoryInterface interface { - Create(ctx context.Context, inventory *v2beta1.Inventory, opts v1.CreateOptions) (*v2beta1.Inventory, error) - Update(ctx context.Context, inventory *v2beta1.Inventory, opts v1.UpdateOptions) (*v2beta1.Inventory, error) - UpdateStatus(ctx context.Context, inventory *v2beta1.Inventory, opts v1.UpdateOptions) (*v2beta1.Inventory, error) + Create(ctx context.Context, inventory *akashnetworkv2beta1.Inventory, opts v1.CreateOptions) (*akashnetworkv2beta1.Inventory, error) + Update(ctx context.Context, inventory *akashnetworkv2beta1.Inventory, opts v1.UpdateOptions) (*akashnetworkv2beta1.Inventory, error) + // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). + UpdateStatus(ctx context.Context, inventory *akashnetworkv2beta1.Inventory, opts v1.UpdateOptions) (*akashnetworkv2beta1.Inventory, error) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error - Get(ctx context.Context, name string, opts v1.GetOptions) (*v2beta1.Inventory, error) - List(ctx context.Context, opts v1.ListOptions) (*v2beta1.InventoryList, error) + Get(ctx context.Context, name string, opts v1.GetOptions) (*akashnetworkv2beta1.Inventory, error) + List(ctx context.Context, opts v1.ListOptions) (*akashnetworkv2beta1.InventoryList, error) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v2beta1.Inventory, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *akashnetworkv2beta1.Inventory, err error) + Apply(ctx context.Context, inventory *applyconfigurationakashnetworkv2beta1.InventoryApplyConfiguration, opts v1.ApplyOptions) (result *akashnetworkv2beta1.Inventory, err error) + // Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus(). + ApplyStatus(ctx context.Context, inventory *applyconfigurationakashnetworkv2beta1.InventoryApplyConfiguration, opts v1.ApplyOptions) (result *akashnetworkv2beta1.Inventory, err error) InventoryExpansion } // inventories implements InventoryInterface type inventories struct { - client rest.Interface + *gentype.ClientWithListAndApply[*akashnetworkv2beta1.Inventory, *akashnetworkv2beta1.InventoryList, *applyconfigurationakashnetworkv2beta1.InventoryApplyConfiguration] } // newInventories returns a Inventories func newInventories(c *AkashV2beta1Client) *inventories { return &inventories{ - client: c.RESTClient(), + gentype.NewClientWithListAndApply[*akashnetworkv2beta1.Inventory, *akashnetworkv2beta1.InventoryList, *applyconfigurationakashnetworkv2beta1.InventoryApplyConfiguration]( + "inventories", + c.RESTClient(), + scheme.ParameterCodec, + "", + func() *akashnetworkv2beta1.Inventory { return &akashnetworkv2beta1.Inventory{} }, + func() *akashnetworkv2beta1.InventoryList { return &akashnetworkv2beta1.InventoryList{} }, + ), } } - -// Get takes name of the inventory, and returns the corresponding inventory object, and an error if there is any. -func (c *inventories) Get(ctx context.Context, name string, options v1.GetOptions) (result *v2beta1.Inventory, err error) { - result = &v2beta1.Inventory{} - err = c.client.Get(). - Resource("inventories"). - Name(name). - VersionedParams(&options, scheme.ParameterCodec). - Do(ctx). - Into(result) - return -} - -// List takes label and field selectors, and returns the list of Inventories that match those selectors. -func (c *inventories) List(ctx context.Context, opts v1.ListOptions) (result *v2beta1.InventoryList, err error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - result = &v2beta1.InventoryList{} - err = c.client.Get(). - Resource("inventories"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Do(ctx). - Into(result) - return -} - -// Watch returns a watch.Interface that watches the requested inventories. -func (c *inventories) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - opts.Watch = true - return c.client.Get(). - Resource("inventories"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Watch(ctx) -} - -// Create takes the representation of a inventory and creates it. Returns the server's representation of the inventory, and an error, if there is any. -func (c *inventories) Create(ctx context.Context, inventory *v2beta1.Inventory, opts v1.CreateOptions) (result *v2beta1.Inventory, err error) { - result = &v2beta1.Inventory{} - err = c.client.Post(). - Resource("inventories"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(inventory). - Do(ctx). - Into(result) - return -} - -// Update takes the representation of a inventory and updates it. Returns the server's representation of the inventory, and an error, if there is any. -func (c *inventories) Update(ctx context.Context, inventory *v2beta1.Inventory, opts v1.UpdateOptions) (result *v2beta1.Inventory, err error) { - result = &v2beta1.Inventory{} - err = c.client.Put(). - Resource("inventories"). - Name(inventory.Name). - VersionedParams(&opts, scheme.ParameterCodec). - Body(inventory). - Do(ctx). - Into(result) - return -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *inventories) UpdateStatus(ctx context.Context, inventory *v2beta1.Inventory, opts v1.UpdateOptions) (result *v2beta1.Inventory, err error) { - result = &v2beta1.Inventory{} - err = c.client.Put(). - Resource("inventories"). - Name(inventory.Name). - SubResource("status"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(inventory). - Do(ctx). - Into(result) - return -} - -// Delete takes name of the inventory and deletes it. Returns an error if one occurs. -func (c *inventories) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - return c.client.Delete(). - Resource("inventories"). - Name(name). - Body(&opts). - Do(ctx). - Error() -} - -// DeleteCollection deletes a collection of objects. -func (c *inventories) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - var timeout time.Duration - if listOpts.TimeoutSeconds != nil { - timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second - } - return c.client.Delete(). - Resource("inventories"). - VersionedParams(&listOpts, scheme.ParameterCodec). - Timeout(timeout). - Body(&opts). - Do(ctx). - Error() -} - -// Patch applies the patch and returns the patched inventory. -func (c *inventories) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v2beta1.Inventory, err error) { - result = &v2beta1.Inventory{} - err = c.client.Patch(pt). - Resource("inventories"). - Name(name). - SubResource(subresources...). - VersionedParams(&opts, scheme.ParameterCodec). - Body(data). - Do(ctx). - Into(result) - return -} diff --git a/pkg/client/clientset/versioned/typed/akash.network/v2beta1/inventoryrequest.go b/pkg/client/clientset/versioned/typed/akash.network/v2beta1/inventoryrequest.go index 2cd1e2db4..386cea6da 100644 --- a/pkg/client/clientset/versioned/typed/akash.network/v2beta1/inventoryrequest.go +++ b/pkg/client/clientset/versioned/typed/akash.network/v2beta1/inventoryrequest.go @@ -19,15 +19,15 @@ limitations under the License. package v2beta1 import ( - "context" - "time" + context "context" - v2beta1 "github.com/akash-network/provider/pkg/apis/akash.network/v2beta1" + akashnetworkv2beta1 "github.com/akash-network/provider/pkg/apis/akash.network/v2beta1" + applyconfigurationakashnetworkv2beta1 "github.com/akash-network/provider/pkg/client/applyconfiguration/akash.network/v2beta1" scheme "github.com/akash-network/provider/pkg/client/clientset/versioned/scheme" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" watch "k8s.io/apimachinery/pkg/watch" - rest "k8s.io/client-go/rest" + gentype "k8s.io/client-go/gentype" ) // InventoryRequestsGetter has a method to return a InventoryRequestInterface. @@ -38,147 +38,37 @@ type InventoryRequestsGetter interface { // InventoryRequestInterface has methods to work with InventoryRequest resources. type InventoryRequestInterface interface { - Create(ctx context.Context, inventoryRequest *v2beta1.InventoryRequest, opts v1.CreateOptions) (*v2beta1.InventoryRequest, error) - Update(ctx context.Context, inventoryRequest *v2beta1.InventoryRequest, opts v1.UpdateOptions) (*v2beta1.InventoryRequest, error) - UpdateStatus(ctx context.Context, inventoryRequest *v2beta1.InventoryRequest, opts v1.UpdateOptions) (*v2beta1.InventoryRequest, error) + Create(ctx context.Context, inventoryRequest *akashnetworkv2beta1.InventoryRequest, opts v1.CreateOptions) (*akashnetworkv2beta1.InventoryRequest, error) + Update(ctx context.Context, inventoryRequest *akashnetworkv2beta1.InventoryRequest, opts v1.UpdateOptions) (*akashnetworkv2beta1.InventoryRequest, error) + // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). + UpdateStatus(ctx context.Context, inventoryRequest *akashnetworkv2beta1.InventoryRequest, opts v1.UpdateOptions) (*akashnetworkv2beta1.InventoryRequest, error) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error - Get(ctx context.Context, name string, opts v1.GetOptions) (*v2beta1.InventoryRequest, error) - List(ctx context.Context, opts v1.ListOptions) (*v2beta1.InventoryRequestList, error) + Get(ctx context.Context, name string, opts v1.GetOptions) (*akashnetworkv2beta1.InventoryRequest, error) + List(ctx context.Context, opts v1.ListOptions) (*akashnetworkv2beta1.InventoryRequestList, error) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v2beta1.InventoryRequest, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *akashnetworkv2beta1.InventoryRequest, err error) + Apply(ctx context.Context, inventoryRequest *applyconfigurationakashnetworkv2beta1.InventoryRequestApplyConfiguration, opts v1.ApplyOptions) (result *akashnetworkv2beta1.InventoryRequest, err error) + // Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus(). + ApplyStatus(ctx context.Context, inventoryRequest *applyconfigurationakashnetworkv2beta1.InventoryRequestApplyConfiguration, opts v1.ApplyOptions) (result *akashnetworkv2beta1.InventoryRequest, err error) InventoryRequestExpansion } // inventoryRequests implements InventoryRequestInterface type inventoryRequests struct { - client rest.Interface + *gentype.ClientWithListAndApply[*akashnetworkv2beta1.InventoryRequest, *akashnetworkv2beta1.InventoryRequestList, *applyconfigurationakashnetworkv2beta1.InventoryRequestApplyConfiguration] } // newInventoryRequests returns a InventoryRequests func newInventoryRequests(c *AkashV2beta1Client) *inventoryRequests { return &inventoryRequests{ - client: c.RESTClient(), + gentype.NewClientWithListAndApply[*akashnetworkv2beta1.InventoryRequest, *akashnetworkv2beta1.InventoryRequestList, *applyconfigurationakashnetworkv2beta1.InventoryRequestApplyConfiguration]( + "inventoryrequests", + c.RESTClient(), + scheme.ParameterCodec, + "", + func() *akashnetworkv2beta1.InventoryRequest { return &akashnetworkv2beta1.InventoryRequest{} }, + func() *akashnetworkv2beta1.InventoryRequestList { return &akashnetworkv2beta1.InventoryRequestList{} }, + ), } } - -// Get takes name of the inventoryRequest, and returns the corresponding inventoryRequest object, and an error if there is any. -func (c *inventoryRequests) Get(ctx context.Context, name string, options v1.GetOptions) (result *v2beta1.InventoryRequest, err error) { - result = &v2beta1.InventoryRequest{} - err = c.client.Get(). - Resource("inventoryrequests"). - Name(name). - VersionedParams(&options, scheme.ParameterCodec). - Do(ctx). - Into(result) - return -} - -// List takes label and field selectors, and returns the list of InventoryRequests that match those selectors. -func (c *inventoryRequests) List(ctx context.Context, opts v1.ListOptions) (result *v2beta1.InventoryRequestList, err error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - result = &v2beta1.InventoryRequestList{} - err = c.client.Get(). - Resource("inventoryrequests"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Do(ctx). - Into(result) - return -} - -// Watch returns a watch.Interface that watches the requested inventoryRequests. -func (c *inventoryRequests) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - opts.Watch = true - return c.client.Get(). - Resource("inventoryrequests"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Watch(ctx) -} - -// Create takes the representation of a inventoryRequest and creates it. Returns the server's representation of the inventoryRequest, and an error, if there is any. -func (c *inventoryRequests) Create(ctx context.Context, inventoryRequest *v2beta1.InventoryRequest, opts v1.CreateOptions) (result *v2beta1.InventoryRequest, err error) { - result = &v2beta1.InventoryRequest{} - err = c.client.Post(). - Resource("inventoryrequests"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(inventoryRequest). - Do(ctx). - Into(result) - return -} - -// Update takes the representation of a inventoryRequest and updates it. Returns the server's representation of the inventoryRequest, and an error, if there is any. -func (c *inventoryRequests) Update(ctx context.Context, inventoryRequest *v2beta1.InventoryRequest, opts v1.UpdateOptions) (result *v2beta1.InventoryRequest, err error) { - result = &v2beta1.InventoryRequest{} - err = c.client.Put(). - Resource("inventoryrequests"). - Name(inventoryRequest.Name). - VersionedParams(&opts, scheme.ParameterCodec). - Body(inventoryRequest). - Do(ctx). - Into(result) - return -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *inventoryRequests) UpdateStatus(ctx context.Context, inventoryRequest *v2beta1.InventoryRequest, opts v1.UpdateOptions) (result *v2beta1.InventoryRequest, err error) { - result = &v2beta1.InventoryRequest{} - err = c.client.Put(). - Resource("inventoryrequests"). - Name(inventoryRequest.Name). - SubResource("status"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(inventoryRequest). - Do(ctx). - Into(result) - return -} - -// Delete takes name of the inventoryRequest and deletes it. Returns an error if one occurs. -func (c *inventoryRequests) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - return c.client.Delete(). - Resource("inventoryrequests"). - Name(name). - Body(&opts). - Do(ctx). - Error() -} - -// DeleteCollection deletes a collection of objects. -func (c *inventoryRequests) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - var timeout time.Duration - if listOpts.TimeoutSeconds != nil { - timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second - } - return c.client.Delete(). - Resource("inventoryrequests"). - VersionedParams(&listOpts, scheme.ParameterCodec). - Timeout(timeout). - Body(&opts). - Do(ctx). - Error() -} - -// Patch applies the patch and returns the patched inventoryRequest. -func (c *inventoryRequests) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v2beta1.InventoryRequest, err error) { - result = &v2beta1.InventoryRequest{} - err = c.client.Patch(pt). - Resource("inventoryrequests"). - Name(name). - SubResource(subresources...). - VersionedParams(&opts, scheme.ParameterCodec). - Body(data). - Do(ctx). - Into(result) - return -} diff --git a/pkg/client/clientset/versioned/typed/akash.network/v2beta1/manifest.go b/pkg/client/clientset/versioned/typed/akash.network/v2beta1/manifest.go index 45adcfc78..e1b0167eb 100644 --- a/pkg/client/clientset/versioned/typed/akash.network/v2beta1/manifest.go +++ b/pkg/client/clientset/versioned/typed/akash.network/v2beta1/manifest.go @@ -19,15 +19,15 @@ limitations under the License. package v2beta1 import ( - "context" - "time" + context "context" - v2beta1 "github.com/akash-network/provider/pkg/apis/akash.network/v2beta1" + akashnetworkv2beta1 "github.com/akash-network/provider/pkg/apis/akash.network/v2beta1" + applyconfigurationakashnetworkv2beta1 "github.com/akash-network/provider/pkg/client/applyconfiguration/akash.network/v2beta1" scheme "github.com/akash-network/provider/pkg/client/clientset/versioned/scheme" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" watch "k8s.io/apimachinery/pkg/watch" - rest "k8s.io/client-go/rest" + gentype "k8s.io/client-go/gentype" ) // ManifestsGetter has a method to return a ManifestInterface. @@ -38,158 +38,37 @@ type ManifestsGetter interface { // ManifestInterface has methods to work with Manifest resources. type ManifestInterface interface { - Create(ctx context.Context, manifest *v2beta1.Manifest, opts v1.CreateOptions) (*v2beta1.Manifest, error) - Update(ctx context.Context, manifest *v2beta1.Manifest, opts v1.UpdateOptions) (*v2beta1.Manifest, error) - UpdateStatus(ctx context.Context, manifest *v2beta1.Manifest, opts v1.UpdateOptions) (*v2beta1.Manifest, error) + Create(ctx context.Context, manifest *akashnetworkv2beta1.Manifest, opts v1.CreateOptions) (*akashnetworkv2beta1.Manifest, error) + Update(ctx context.Context, manifest *akashnetworkv2beta1.Manifest, opts v1.UpdateOptions) (*akashnetworkv2beta1.Manifest, error) + // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). + UpdateStatus(ctx context.Context, manifest *akashnetworkv2beta1.Manifest, opts v1.UpdateOptions) (*akashnetworkv2beta1.Manifest, error) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error - Get(ctx context.Context, name string, opts v1.GetOptions) (*v2beta1.Manifest, error) - List(ctx context.Context, opts v1.ListOptions) (*v2beta1.ManifestList, error) + Get(ctx context.Context, name string, opts v1.GetOptions) (*akashnetworkv2beta1.Manifest, error) + List(ctx context.Context, opts v1.ListOptions) (*akashnetworkv2beta1.ManifestList, error) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v2beta1.Manifest, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *akashnetworkv2beta1.Manifest, err error) + Apply(ctx context.Context, manifest *applyconfigurationakashnetworkv2beta1.ManifestApplyConfiguration, opts v1.ApplyOptions) (result *akashnetworkv2beta1.Manifest, err error) + // Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus(). + ApplyStatus(ctx context.Context, manifest *applyconfigurationakashnetworkv2beta1.ManifestApplyConfiguration, opts v1.ApplyOptions) (result *akashnetworkv2beta1.Manifest, err error) ManifestExpansion } // manifests implements ManifestInterface type manifests struct { - client rest.Interface - ns string + *gentype.ClientWithListAndApply[*akashnetworkv2beta1.Manifest, *akashnetworkv2beta1.ManifestList, *applyconfigurationakashnetworkv2beta1.ManifestApplyConfiguration] } // newManifests returns a Manifests func newManifests(c *AkashV2beta1Client, namespace string) *manifests { return &manifests{ - client: c.RESTClient(), - ns: namespace, + gentype.NewClientWithListAndApply[*akashnetworkv2beta1.Manifest, *akashnetworkv2beta1.ManifestList, *applyconfigurationakashnetworkv2beta1.ManifestApplyConfiguration]( + "manifests", + c.RESTClient(), + scheme.ParameterCodec, + namespace, + func() *akashnetworkv2beta1.Manifest { return &akashnetworkv2beta1.Manifest{} }, + func() *akashnetworkv2beta1.ManifestList { return &akashnetworkv2beta1.ManifestList{} }, + ), } } - -// Get takes name of the manifest, and returns the corresponding manifest object, and an error if there is any. -func (c *manifests) Get(ctx context.Context, name string, options v1.GetOptions) (result *v2beta1.Manifest, err error) { - result = &v2beta1.Manifest{} - err = c.client.Get(). - Namespace(c.ns). - Resource("manifests"). - Name(name). - VersionedParams(&options, scheme.ParameterCodec). - Do(ctx). - Into(result) - return -} - -// List takes label and field selectors, and returns the list of Manifests that match those selectors. -func (c *manifests) List(ctx context.Context, opts v1.ListOptions) (result *v2beta1.ManifestList, err error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - result = &v2beta1.ManifestList{} - err = c.client.Get(). - Namespace(c.ns). - Resource("manifests"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Do(ctx). - Into(result) - return -} - -// Watch returns a watch.Interface that watches the requested manifests. -func (c *manifests) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - opts.Watch = true - return c.client.Get(). - Namespace(c.ns). - Resource("manifests"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Watch(ctx) -} - -// Create takes the representation of a manifest and creates it. Returns the server's representation of the manifest, and an error, if there is any. -func (c *manifests) Create(ctx context.Context, manifest *v2beta1.Manifest, opts v1.CreateOptions) (result *v2beta1.Manifest, err error) { - result = &v2beta1.Manifest{} - err = c.client.Post(). - Namespace(c.ns). - Resource("manifests"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(manifest). - Do(ctx). - Into(result) - return -} - -// Update takes the representation of a manifest and updates it. Returns the server's representation of the manifest, and an error, if there is any. -func (c *manifests) Update(ctx context.Context, manifest *v2beta1.Manifest, opts v1.UpdateOptions) (result *v2beta1.Manifest, err error) { - result = &v2beta1.Manifest{} - err = c.client.Put(). - Namespace(c.ns). - Resource("manifests"). - Name(manifest.Name). - VersionedParams(&opts, scheme.ParameterCodec). - Body(manifest). - Do(ctx). - Into(result) - return -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *manifests) UpdateStatus(ctx context.Context, manifest *v2beta1.Manifest, opts v1.UpdateOptions) (result *v2beta1.Manifest, err error) { - result = &v2beta1.Manifest{} - err = c.client.Put(). - Namespace(c.ns). - Resource("manifests"). - Name(manifest.Name). - SubResource("status"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(manifest). - Do(ctx). - Into(result) - return -} - -// Delete takes name of the manifest and deletes it. Returns an error if one occurs. -func (c *manifests) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - return c.client.Delete(). - Namespace(c.ns). - Resource("manifests"). - Name(name). - Body(&opts). - Do(ctx). - Error() -} - -// DeleteCollection deletes a collection of objects. -func (c *manifests) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - var timeout time.Duration - if listOpts.TimeoutSeconds != nil { - timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second - } - return c.client.Delete(). - Namespace(c.ns). - Resource("manifests"). - VersionedParams(&listOpts, scheme.ParameterCodec). - Timeout(timeout). - Body(&opts). - Do(ctx). - Error() -} - -// Patch applies the patch and returns the patched manifest. -func (c *manifests) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v2beta1.Manifest, err error) { - result = &v2beta1.Manifest{} - err = c.client.Patch(pt). - Namespace(c.ns). - Resource("manifests"). - Name(name). - SubResource(subresources...). - VersionedParams(&opts, scheme.ParameterCodec). - Body(data). - Do(ctx). - Into(result) - return -} diff --git a/pkg/client/clientset/versioned/typed/akash.network/v2beta1/providerhost.go b/pkg/client/clientset/versioned/typed/akash.network/v2beta1/providerhost.go index 5cf9bc000..d6bb01eb5 100644 --- a/pkg/client/clientset/versioned/typed/akash.network/v2beta1/providerhost.go +++ b/pkg/client/clientset/versioned/typed/akash.network/v2beta1/providerhost.go @@ -19,15 +19,15 @@ limitations under the License. package v2beta1 import ( - "context" - "time" + context "context" - v2beta1 "github.com/akash-network/provider/pkg/apis/akash.network/v2beta1" + akashnetworkv2beta1 "github.com/akash-network/provider/pkg/apis/akash.network/v2beta1" + applyconfigurationakashnetworkv2beta1 "github.com/akash-network/provider/pkg/client/applyconfiguration/akash.network/v2beta1" scheme "github.com/akash-network/provider/pkg/client/clientset/versioned/scheme" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" watch "k8s.io/apimachinery/pkg/watch" - rest "k8s.io/client-go/rest" + gentype "k8s.io/client-go/gentype" ) // ProviderHostsGetter has a method to return a ProviderHostInterface. @@ -38,158 +38,37 @@ type ProviderHostsGetter interface { // ProviderHostInterface has methods to work with ProviderHost resources. type ProviderHostInterface interface { - Create(ctx context.Context, providerHost *v2beta1.ProviderHost, opts v1.CreateOptions) (*v2beta1.ProviderHost, error) - Update(ctx context.Context, providerHost *v2beta1.ProviderHost, opts v1.UpdateOptions) (*v2beta1.ProviderHost, error) - UpdateStatus(ctx context.Context, providerHost *v2beta1.ProviderHost, opts v1.UpdateOptions) (*v2beta1.ProviderHost, error) + Create(ctx context.Context, providerHost *akashnetworkv2beta1.ProviderHost, opts v1.CreateOptions) (*akashnetworkv2beta1.ProviderHost, error) + Update(ctx context.Context, providerHost *akashnetworkv2beta1.ProviderHost, opts v1.UpdateOptions) (*akashnetworkv2beta1.ProviderHost, error) + // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). + UpdateStatus(ctx context.Context, providerHost *akashnetworkv2beta1.ProviderHost, opts v1.UpdateOptions) (*akashnetworkv2beta1.ProviderHost, error) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error - Get(ctx context.Context, name string, opts v1.GetOptions) (*v2beta1.ProviderHost, error) - List(ctx context.Context, opts v1.ListOptions) (*v2beta1.ProviderHostList, error) + Get(ctx context.Context, name string, opts v1.GetOptions) (*akashnetworkv2beta1.ProviderHost, error) + List(ctx context.Context, opts v1.ListOptions) (*akashnetworkv2beta1.ProviderHostList, error) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v2beta1.ProviderHost, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *akashnetworkv2beta1.ProviderHost, err error) + Apply(ctx context.Context, providerHost *applyconfigurationakashnetworkv2beta1.ProviderHostApplyConfiguration, opts v1.ApplyOptions) (result *akashnetworkv2beta1.ProviderHost, err error) + // Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus(). + ApplyStatus(ctx context.Context, providerHost *applyconfigurationakashnetworkv2beta1.ProviderHostApplyConfiguration, opts v1.ApplyOptions) (result *akashnetworkv2beta1.ProviderHost, err error) ProviderHostExpansion } // providerHosts implements ProviderHostInterface type providerHosts struct { - client rest.Interface - ns string + *gentype.ClientWithListAndApply[*akashnetworkv2beta1.ProviderHost, *akashnetworkv2beta1.ProviderHostList, *applyconfigurationakashnetworkv2beta1.ProviderHostApplyConfiguration] } // newProviderHosts returns a ProviderHosts func newProviderHosts(c *AkashV2beta1Client, namespace string) *providerHosts { return &providerHosts{ - client: c.RESTClient(), - ns: namespace, + gentype.NewClientWithListAndApply[*akashnetworkv2beta1.ProviderHost, *akashnetworkv2beta1.ProviderHostList, *applyconfigurationakashnetworkv2beta1.ProviderHostApplyConfiguration]( + "providerhosts", + c.RESTClient(), + scheme.ParameterCodec, + namespace, + func() *akashnetworkv2beta1.ProviderHost { return &akashnetworkv2beta1.ProviderHost{} }, + func() *akashnetworkv2beta1.ProviderHostList { return &akashnetworkv2beta1.ProviderHostList{} }, + ), } } - -// Get takes name of the providerHost, and returns the corresponding providerHost object, and an error if there is any. -func (c *providerHosts) Get(ctx context.Context, name string, options v1.GetOptions) (result *v2beta1.ProviderHost, err error) { - result = &v2beta1.ProviderHost{} - err = c.client.Get(). - Namespace(c.ns). - Resource("providerhosts"). - Name(name). - VersionedParams(&options, scheme.ParameterCodec). - Do(ctx). - Into(result) - return -} - -// List takes label and field selectors, and returns the list of ProviderHosts that match those selectors. -func (c *providerHosts) List(ctx context.Context, opts v1.ListOptions) (result *v2beta1.ProviderHostList, err error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - result = &v2beta1.ProviderHostList{} - err = c.client.Get(). - Namespace(c.ns). - Resource("providerhosts"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Do(ctx). - Into(result) - return -} - -// Watch returns a watch.Interface that watches the requested providerHosts. -func (c *providerHosts) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - opts.Watch = true - return c.client.Get(). - Namespace(c.ns). - Resource("providerhosts"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Watch(ctx) -} - -// Create takes the representation of a providerHost and creates it. Returns the server's representation of the providerHost, and an error, if there is any. -func (c *providerHosts) Create(ctx context.Context, providerHost *v2beta1.ProviderHost, opts v1.CreateOptions) (result *v2beta1.ProviderHost, err error) { - result = &v2beta1.ProviderHost{} - err = c.client.Post(). - Namespace(c.ns). - Resource("providerhosts"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(providerHost). - Do(ctx). - Into(result) - return -} - -// Update takes the representation of a providerHost and updates it. Returns the server's representation of the providerHost, and an error, if there is any. -func (c *providerHosts) Update(ctx context.Context, providerHost *v2beta1.ProviderHost, opts v1.UpdateOptions) (result *v2beta1.ProviderHost, err error) { - result = &v2beta1.ProviderHost{} - err = c.client.Put(). - Namespace(c.ns). - Resource("providerhosts"). - Name(providerHost.Name). - VersionedParams(&opts, scheme.ParameterCodec). - Body(providerHost). - Do(ctx). - Into(result) - return -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *providerHosts) UpdateStatus(ctx context.Context, providerHost *v2beta1.ProviderHost, opts v1.UpdateOptions) (result *v2beta1.ProviderHost, err error) { - result = &v2beta1.ProviderHost{} - err = c.client.Put(). - Namespace(c.ns). - Resource("providerhosts"). - Name(providerHost.Name). - SubResource("status"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(providerHost). - Do(ctx). - Into(result) - return -} - -// Delete takes name of the providerHost and deletes it. Returns an error if one occurs. -func (c *providerHosts) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - return c.client.Delete(). - Namespace(c.ns). - Resource("providerhosts"). - Name(name). - Body(&opts). - Do(ctx). - Error() -} - -// DeleteCollection deletes a collection of objects. -func (c *providerHosts) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - var timeout time.Duration - if listOpts.TimeoutSeconds != nil { - timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second - } - return c.client.Delete(). - Namespace(c.ns). - Resource("providerhosts"). - VersionedParams(&listOpts, scheme.ParameterCodec). - Timeout(timeout). - Body(&opts). - Do(ctx). - Error() -} - -// Patch applies the patch and returns the patched providerHost. -func (c *providerHosts) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v2beta1.ProviderHost, err error) { - result = &v2beta1.ProviderHost{} - err = c.client.Patch(pt). - Namespace(c.ns). - Resource("providerhosts"). - Name(name). - SubResource(subresources...). - VersionedParams(&opts, scheme.ParameterCodec). - Body(data). - Do(ctx). - Into(result) - return -} diff --git a/pkg/client/clientset/versioned/typed/akash.network/v2beta1/providerleasedip.go b/pkg/client/clientset/versioned/typed/akash.network/v2beta1/providerleasedip.go index 13af899e1..e965fdfa1 100644 --- a/pkg/client/clientset/versioned/typed/akash.network/v2beta1/providerleasedip.go +++ b/pkg/client/clientset/versioned/typed/akash.network/v2beta1/providerleasedip.go @@ -19,15 +19,15 @@ limitations under the License. package v2beta1 import ( - "context" - "time" + context "context" - v2beta1 "github.com/akash-network/provider/pkg/apis/akash.network/v2beta1" + akashnetworkv2beta1 "github.com/akash-network/provider/pkg/apis/akash.network/v2beta1" + applyconfigurationakashnetworkv2beta1 "github.com/akash-network/provider/pkg/client/applyconfiguration/akash.network/v2beta1" scheme "github.com/akash-network/provider/pkg/client/clientset/versioned/scheme" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" watch "k8s.io/apimachinery/pkg/watch" - rest "k8s.io/client-go/rest" + gentype "k8s.io/client-go/gentype" ) // ProviderLeasedIPsGetter has a method to return a ProviderLeasedIPInterface. @@ -38,158 +38,37 @@ type ProviderLeasedIPsGetter interface { // ProviderLeasedIPInterface has methods to work with ProviderLeasedIP resources. type ProviderLeasedIPInterface interface { - Create(ctx context.Context, providerLeasedIP *v2beta1.ProviderLeasedIP, opts v1.CreateOptions) (*v2beta1.ProviderLeasedIP, error) - Update(ctx context.Context, providerLeasedIP *v2beta1.ProviderLeasedIP, opts v1.UpdateOptions) (*v2beta1.ProviderLeasedIP, error) - UpdateStatus(ctx context.Context, providerLeasedIP *v2beta1.ProviderLeasedIP, opts v1.UpdateOptions) (*v2beta1.ProviderLeasedIP, error) + Create(ctx context.Context, providerLeasedIP *akashnetworkv2beta1.ProviderLeasedIP, opts v1.CreateOptions) (*akashnetworkv2beta1.ProviderLeasedIP, error) + Update(ctx context.Context, providerLeasedIP *akashnetworkv2beta1.ProviderLeasedIP, opts v1.UpdateOptions) (*akashnetworkv2beta1.ProviderLeasedIP, error) + // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). + UpdateStatus(ctx context.Context, providerLeasedIP *akashnetworkv2beta1.ProviderLeasedIP, opts v1.UpdateOptions) (*akashnetworkv2beta1.ProviderLeasedIP, error) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error - Get(ctx context.Context, name string, opts v1.GetOptions) (*v2beta1.ProviderLeasedIP, error) - List(ctx context.Context, opts v1.ListOptions) (*v2beta1.ProviderLeasedIPList, error) + Get(ctx context.Context, name string, opts v1.GetOptions) (*akashnetworkv2beta1.ProviderLeasedIP, error) + List(ctx context.Context, opts v1.ListOptions) (*akashnetworkv2beta1.ProviderLeasedIPList, error) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v2beta1.ProviderLeasedIP, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *akashnetworkv2beta1.ProviderLeasedIP, err error) + Apply(ctx context.Context, providerLeasedIP *applyconfigurationakashnetworkv2beta1.ProviderLeasedIPApplyConfiguration, opts v1.ApplyOptions) (result *akashnetworkv2beta1.ProviderLeasedIP, err error) + // Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus(). + ApplyStatus(ctx context.Context, providerLeasedIP *applyconfigurationakashnetworkv2beta1.ProviderLeasedIPApplyConfiguration, opts v1.ApplyOptions) (result *akashnetworkv2beta1.ProviderLeasedIP, err error) ProviderLeasedIPExpansion } // providerLeasedIPs implements ProviderLeasedIPInterface type providerLeasedIPs struct { - client rest.Interface - ns string + *gentype.ClientWithListAndApply[*akashnetworkv2beta1.ProviderLeasedIP, *akashnetworkv2beta1.ProviderLeasedIPList, *applyconfigurationakashnetworkv2beta1.ProviderLeasedIPApplyConfiguration] } // newProviderLeasedIPs returns a ProviderLeasedIPs func newProviderLeasedIPs(c *AkashV2beta1Client, namespace string) *providerLeasedIPs { return &providerLeasedIPs{ - client: c.RESTClient(), - ns: namespace, + gentype.NewClientWithListAndApply[*akashnetworkv2beta1.ProviderLeasedIP, *akashnetworkv2beta1.ProviderLeasedIPList, *applyconfigurationakashnetworkv2beta1.ProviderLeasedIPApplyConfiguration]( + "providerleasedips", + c.RESTClient(), + scheme.ParameterCodec, + namespace, + func() *akashnetworkv2beta1.ProviderLeasedIP { return &akashnetworkv2beta1.ProviderLeasedIP{} }, + func() *akashnetworkv2beta1.ProviderLeasedIPList { return &akashnetworkv2beta1.ProviderLeasedIPList{} }, + ), } } - -// Get takes name of the providerLeasedIP, and returns the corresponding providerLeasedIP object, and an error if there is any. -func (c *providerLeasedIPs) Get(ctx context.Context, name string, options v1.GetOptions) (result *v2beta1.ProviderLeasedIP, err error) { - result = &v2beta1.ProviderLeasedIP{} - err = c.client.Get(). - Namespace(c.ns). - Resource("providerleasedips"). - Name(name). - VersionedParams(&options, scheme.ParameterCodec). - Do(ctx). - Into(result) - return -} - -// List takes label and field selectors, and returns the list of ProviderLeasedIPs that match those selectors. -func (c *providerLeasedIPs) List(ctx context.Context, opts v1.ListOptions) (result *v2beta1.ProviderLeasedIPList, err error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - result = &v2beta1.ProviderLeasedIPList{} - err = c.client.Get(). - Namespace(c.ns). - Resource("providerleasedips"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Do(ctx). - Into(result) - return -} - -// Watch returns a watch.Interface that watches the requested providerLeasedIPs. -func (c *providerLeasedIPs) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - opts.Watch = true - return c.client.Get(). - Namespace(c.ns). - Resource("providerleasedips"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Watch(ctx) -} - -// Create takes the representation of a providerLeasedIP and creates it. Returns the server's representation of the providerLeasedIP, and an error, if there is any. -func (c *providerLeasedIPs) Create(ctx context.Context, providerLeasedIP *v2beta1.ProviderLeasedIP, opts v1.CreateOptions) (result *v2beta1.ProviderLeasedIP, err error) { - result = &v2beta1.ProviderLeasedIP{} - err = c.client.Post(). - Namespace(c.ns). - Resource("providerleasedips"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(providerLeasedIP). - Do(ctx). - Into(result) - return -} - -// Update takes the representation of a providerLeasedIP and updates it. Returns the server's representation of the providerLeasedIP, and an error, if there is any. -func (c *providerLeasedIPs) Update(ctx context.Context, providerLeasedIP *v2beta1.ProviderLeasedIP, opts v1.UpdateOptions) (result *v2beta1.ProviderLeasedIP, err error) { - result = &v2beta1.ProviderLeasedIP{} - err = c.client.Put(). - Namespace(c.ns). - Resource("providerleasedips"). - Name(providerLeasedIP.Name). - VersionedParams(&opts, scheme.ParameterCodec). - Body(providerLeasedIP). - Do(ctx). - Into(result) - return -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *providerLeasedIPs) UpdateStatus(ctx context.Context, providerLeasedIP *v2beta1.ProviderLeasedIP, opts v1.UpdateOptions) (result *v2beta1.ProviderLeasedIP, err error) { - result = &v2beta1.ProviderLeasedIP{} - err = c.client.Put(). - Namespace(c.ns). - Resource("providerleasedips"). - Name(providerLeasedIP.Name). - SubResource("status"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(providerLeasedIP). - Do(ctx). - Into(result) - return -} - -// Delete takes name of the providerLeasedIP and deletes it. Returns an error if one occurs. -func (c *providerLeasedIPs) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - return c.client.Delete(). - Namespace(c.ns). - Resource("providerleasedips"). - Name(name). - Body(&opts). - Do(ctx). - Error() -} - -// DeleteCollection deletes a collection of objects. -func (c *providerLeasedIPs) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - var timeout time.Duration - if listOpts.TimeoutSeconds != nil { - timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second - } - return c.client.Delete(). - Namespace(c.ns). - Resource("providerleasedips"). - VersionedParams(&listOpts, scheme.ParameterCodec). - Timeout(timeout). - Body(&opts). - Do(ctx). - Error() -} - -// Patch applies the patch and returns the patched providerLeasedIP. -func (c *providerLeasedIPs) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v2beta1.ProviderLeasedIP, err error) { - result = &v2beta1.ProviderLeasedIP{} - err = c.client.Patch(pt). - Namespace(c.ns). - Resource("providerleasedips"). - Name(name). - SubResource(subresources...). - VersionedParams(&opts, scheme.ParameterCodec). - Body(data). - Do(ctx). - Into(result) - return -} diff --git a/pkg/client/clientset/versioned/typed/akash.network/v2beta2/akash.network_client.go b/pkg/client/clientset/versioned/typed/akash.network/v2beta2/akash.network_client.go index e7470cd56..c1dd54033 100644 --- a/pkg/client/clientset/versioned/typed/akash.network/v2beta2/akash.network_client.go +++ b/pkg/client/clientset/versioned/typed/akash.network/v2beta2/akash.network_client.go @@ -19,10 +19,10 @@ limitations under the License. package v2beta2 import ( - "net/http" + http "net/http" - v2beta2 "github.com/akash-network/provider/pkg/apis/akash.network/v2beta2" - "github.com/akash-network/provider/pkg/client/clientset/versioned/scheme" + akashnetworkv2beta2 "github.com/akash-network/provider/pkg/apis/akash.network/v2beta2" + scheme "github.com/akash-network/provider/pkg/client/clientset/versioned/scheme" rest "k8s.io/client-go/rest" ) @@ -105,10 +105,10 @@ func New(c rest.Interface) *AkashV2beta2Client { } func setConfigDefaults(config *rest.Config) error { - gv := v2beta2.SchemeGroupVersion + gv := akashnetworkv2beta2.SchemeGroupVersion config.GroupVersion = &gv config.APIPath = "/apis" - config.NegotiatedSerializer = scheme.Codecs.WithoutConversion() + config.NegotiatedSerializer = rest.CodecFactoryForGeneratedClient(scheme.Scheme, scheme.Codecs).WithoutConversion() if config.UserAgent == "" { config.UserAgent = rest.DefaultKubernetesUserAgent() diff --git a/pkg/client/clientset/versioned/typed/akash.network/v2beta2/fake/fake_akash.network_client.go b/pkg/client/clientset/versioned/typed/akash.network/v2beta2/fake/fake_akash.network_client.go index 34a8a12ce..234d7a2fb 100644 --- a/pkg/client/clientset/versioned/typed/akash.network/v2beta2/fake/fake_akash.network_client.go +++ b/pkg/client/clientset/versioned/typed/akash.network/v2beta2/fake/fake_akash.network_client.go @@ -29,23 +29,23 @@ type FakeAkashV2beta2 struct { } func (c *FakeAkashV2beta2) Inventories() v2beta2.InventoryInterface { - return &FakeInventories{c} + return newFakeInventories(c) } func (c *FakeAkashV2beta2) InventoryRequests() v2beta2.InventoryRequestInterface { - return &FakeInventoryRequests{c} + return newFakeInventoryRequests(c) } func (c *FakeAkashV2beta2) Manifests(namespace string) v2beta2.ManifestInterface { - return &FakeManifests{c, namespace} + return newFakeManifests(c, namespace) } func (c *FakeAkashV2beta2) ProviderHosts(namespace string) v2beta2.ProviderHostInterface { - return &FakeProviderHosts{c, namespace} + return newFakeProviderHosts(c, namespace) } func (c *FakeAkashV2beta2) ProviderLeasedIPs(namespace string) v2beta2.ProviderLeasedIPInterface { - return &FakeProviderLeasedIPs{c, namespace} + return newFakeProviderLeasedIPs(c, namespace) } // RESTClient returns a RESTClient that is used to communicate diff --git a/pkg/client/clientset/versioned/typed/akash.network/v2beta2/fake/fake_inventory.go b/pkg/client/clientset/versioned/typed/akash.network/v2beta2/fake/fake_inventory.go index 203c4795c..00bf28abc 100644 --- a/pkg/client/clientset/versioned/typed/akash.network/v2beta2/fake/fake_inventory.go +++ b/pkg/client/clientset/versioned/typed/akash.network/v2beta2/fake/fake_inventory.go @@ -19,115 +19,33 @@ limitations under the License. package fake import ( - "context" - v2beta2 "github.com/akash-network/provider/pkg/apis/akash.network/v2beta2" - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - schema "k8s.io/apimachinery/pkg/runtime/schema" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" + akashnetworkv2beta2 "github.com/akash-network/provider/pkg/client/applyconfiguration/akash.network/v2beta2" + typedakashnetworkv2beta2 "github.com/akash-network/provider/pkg/client/clientset/versioned/typed/akash.network/v2beta2" + gentype "k8s.io/client-go/gentype" ) -// FakeInventories implements InventoryInterface -type FakeInventories struct { +// fakeInventories implements InventoryInterface +type fakeInventories struct { + *gentype.FakeClientWithListAndApply[*v2beta2.Inventory, *v2beta2.InventoryList, *akashnetworkv2beta2.InventoryApplyConfiguration] Fake *FakeAkashV2beta2 } -var inventoriesResource = schema.GroupVersionResource{Group: "akash.network", Version: "v2beta2", Resource: "inventories"} - -var inventoriesKind = schema.GroupVersionKind{Group: "akash.network", Version: "v2beta2", Kind: "Inventory"} - -// Get takes name of the inventory, and returns the corresponding inventory object, and an error if there is any. -func (c *FakeInventories) Get(ctx context.Context, name string, options v1.GetOptions) (result *v2beta2.Inventory, err error) { - obj, err := c.Fake. - Invokes(testing.NewRootGetAction(inventoriesResource, name), &v2beta2.Inventory{}) - if obj == nil { - return nil, err - } - return obj.(*v2beta2.Inventory), err -} - -// List takes label and field selectors, and returns the list of Inventories that match those selectors. -func (c *FakeInventories) List(ctx context.Context, opts v1.ListOptions) (result *v2beta2.InventoryList, err error) { - obj, err := c.Fake. - Invokes(testing.NewRootListAction(inventoriesResource, inventoriesKind, opts), &v2beta2.InventoryList{}) - if obj == nil { - return nil, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v2beta2.InventoryList{ListMeta: obj.(*v2beta2.InventoryList).ListMeta} - for _, item := range obj.(*v2beta2.InventoryList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested inventories. -func (c *FakeInventories) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewRootWatchAction(inventoriesResource, opts)) -} - -// Create takes the representation of a inventory and creates it. Returns the server's representation of the inventory, and an error, if there is any. -func (c *FakeInventories) Create(ctx context.Context, inventory *v2beta2.Inventory, opts v1.CreateOptions) (result *v2beta2.Inventory, err error) { - obj, err := c.Fake. - Invokes(testing.NewRootCreateAction(inventoriesResource, inventory), &v2beta2.Inventory{}) - if obj == nil { - return nil, err - } - return obj.(*v2beta2.Inventory), err -} - -// Update takes the representation of a inventory and updates it. Returns the server's representation of the inventory, and an error, if there is any. -func (c *FakeInventories) Update(ctx context.Context, inventory *v2beta2.Inventory, opts v1.UpdateOptions) (result *v2beta2.Inventory, err error) { - obj, err := c.Fake. - Invokes(testing.NewRootUpdateAction(inventoriesResource, inventory), &v2beta2.Inventory{}) - if obj == nil { - return nil, err - } - return obj.(*v2beta2.Inventory), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeInventories) UpdateStatus(ctx context.Context, inventory *v2beta2.Inventory, opts v1.UpdateOptions) (*v2beta2.Inventory, error) { - obj, err := c.Fake. - Invokes(testing.NewRootUpdateSubresourceAction(inventoriesResource, "status", inventory), &v2beta2.Inventory{}) - if obj == nil { - return nil, err - } - return obj.(*v2beta2.Inventory), err -} - -// Delete takes name of the inventory and deletes it. Returns an error if one occurs. -func (c *FakeInventories) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewRootDeleteActionWithOptions(inventoriesResource, name, opts), &v2beta2.Inventory{}) - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeInventories) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - action := testing.NewRootDeleteCollectionAction(inventoriesResource, listOpts) - - _, err := c.Fake.Invokes(action, &v2beta2.InventoryList{}) - return err -} - -// Patch applies the patch and returns the patched inventory. -func (c *FakeInventories) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v2beta2.Inventory, err error) { - obj, err := c.Fake. - Invokes(testing.NewRootPatchSubresourceAction(inventoriesResource, name, pt, data, subresources...), &v2beta2.Inventory{}) - if obj == nil { - return nil, err +func newFakeInventories(fake *FakeAkashV2beta2) typedakashnetworkv2beta2.InventoryInterface { + return &fakeInventories{ + gentype.NewFakeClientWithListAndApply[*v2beta2.Inventory, *v2beta2.InventoryList, *akashnetworkv2beta2.InventoryApplyConfiguration]( + fake.Fake, + "", + v2beta2.SchemeGroupVersion.WithResource("inventories"), + v2beta2.SchemeGroupVersion.WithKind("Inventory"), + func() *v2beta2.Inventory { return &v2beta2.Inventory{} }, + func() *v2beta2.InventoryList { return &v2beta2.InventoryList{} }, + func(dst, src *v2beta2.InventoryList) { dst.ListMeta = src.ListMeta }, + func(list *v2beta2.InventoryList) []*v2beta2.Inventory { return gentype.ToPointerSlice(list.Items) }, + func(list *v2beta2.InventoryList, items []*v2beta2.Inventory) { + list.Items = gentype.FromPointerSlice(items) + }, + ), + fake, } - return obj.(*v2beta2.Inventory), err } diff --git a/pkg/client/clientset/versioned/typed/akash.network/v2beta2/fake/fake_inventoryrequest.go b/pkg/client/clientset/versioned/typed/akash.network/v2beta2/fake/fake_inventoryrequest.go index 441bd3d41..a813505a4 100644 --- a/pkg/client/clientset/versioned/typed/akash.network/v2beta2/fake/fake_inventoryrequest.go +++ b/pkg/client/clientset/versioned/typed/akash.network/v2beta2/fake/fake_inventoryrequest.go @@ -19,115 +19,35 @@ limitations under the License. package fake import ( - "context" - v2beta2 "github.com/akash-network/provider/pkg/apis/akash.network/v2beta2" - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - schema "k8s.io/apimachinery/pkg/runtime/schema" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" + akashnetworkv2beta2 "github.com/akash-network/provider/pkg/client/applyconfiguration/akash.network/v2beta2" + typedakashnetworkv2beta2 "github.com/akash-network/provider/pkg/client/clientset/versioned/typed/akash.network/v2beta2" + gentype "k8s.io/client-go/gentype" ) -// FakeInventoryRequests implements InventoryRequestInterface -type FakeInventoryRequests struct { +// fakeInventoryRequests implements InventoryRequestInterface +type fakeInventoryRequests struct { + *gentype.FakeClientWithListAndApply[*v2beta2.InventoryRequest, *v2beta2.InventoryRequestList, *akashnetworkv2beta2.InventoryRequestApplyConfiguration] Fake *FakeAkashV2beta2 } -var inventoryrequestsResource = schema.GroupVersionResource{Group: "akash.network", Version: "v2beta2", Resource: "inventoryrequests"} - -var inventoryrequestsKind = schema.GroupVersionKind{Group: "akash.network", Version: "v2beta2", Kind: "InventoryRequest"} - -// Get takes name of the inventoryRequest, and returns the corresponding inventoryRequest object, and an error if there is any. -func (c *FakeInventoryRequests) Get(ctx context.Context, name string, options v1.GetOptions) (result *v2beta2.InventoryRequest, err error) { - obj, err := c.Fake. - Invokes(testing.NewRootGetAction(inventoryrequestsResource, name), &v2beta2.InventoryRequest{}) - if obj == nil { - return nil, err - } - return obj.(*v2beta2.InventoryRequest), err -} - -// List takes label and field selectors, and returns the list of InventoryRequests that match those selectors. -func (c *FakeInventoryRequests) List(ctx context.Context, opts v1.ListOptions) (result *v2beta2.InventoryRequestList, err error) { - obj, err := c.Fake. - Invokes(testing.NewRootListAction(inventoryrequestsResource, inventoryrequestsKind, opts), &v2beta2.InventoryRequestList{}) - if obj == nil { - return nil, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v2beta2.InventoryRequestList{ListMeta: obj.(*v2beta2.InventoryRequestList).ListMeta} - for _, item := range obj.(*v2beta2.InventoryRequestList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested inventoryRequests. -func (c *FakeInventoryRequests) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewRootWatchAction(inventoryrequestsResource, opts)) -} - -// Create takes the representation of a inventoryRequest and creates it. Returns the server's representation of the inventoryRequest, and an error, if there is any. -func (c *FakeInventoryRequests) Create(ctx context.Context, inventoryRequest *v2beta2.InventoryRequest, opts v1.CreateOptions) (result *v2beta2.InventoryRequest, err error) { - obj, err := c.Fake. - Invokes(testing.NewRootCreateAction(inventoryrequestsResource, inventoryRequest), &v2beta2.InventoryRequest{}) - if obj == nil { - return nil, err - } - return obj.(*v2beta2.InventoryRequest), err -} - -// Update takes the representation of a inventoryRequest and updates it. Returns the server's representation of the inventoryRequest, and an error, if there is any. -func (c *FakeInventoryRequests) Update(ctx context.Context, inventoryRequest *v2beta2.InventoryRequest, opts v1.UpdateOptions) (result *v2beta2.InventoryRequest, err error) { - obj, err := c.Fake. - Invokes(testing.NewRootUpdateAction(inventoryrequestsResource, inventoryRequest), &v2beta2.InventoryRequest{}) - if obj == nil { - return nil, err - } - return obj.(*v2beta2.InventoryRequest), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeInventoryRequests) UpdateStatus(ctx context.Context, inventoryRequest *v2beta2.InventoryRequest, opts v1.UpdateOptions) (*v2beta2.InventoryRequest, error) { - obj, err := c.Fake. - Invokes(testing.NewRootUpdateSubresourceAction(inventoryrequestsResource, "status", inventoryRequest), &v2beta2.InventoryRequest{}) - if obj == nil { - return nil, err - } - return obj.(*v2beta2.InventoryRequest), err -} - -// Delete takes name of the inventoryRequest and deletes it. Returns an error if one occurs. -func (c *FakeInventoryRequests) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewRootDeleteActionWithOptions(inventoryrequestsResource, name, opts), &v2beta2.InventoryRequest{}) - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeInventoryRequests) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - action := testing.NewRootDeleteCollectionAction(inventoryrequestsResource, listOpts) - - _, err := c.Fake.Invokes(action, &v2beta2.InventoryRequestList{}) - return err -} - -// Patch applies the patch and returns the patched inventoryRequest. -func (c *FakeInventoryRequests) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v2beta2.InventoryRequest, err error) { - obj, err := c.Fake. - Invokes(testing.NewRootPatchSubresourceAction(inventoryrequestsResource, name, pt, data, subresources...), &v2beta2.InventoryRequest{}) - if obj == nil { - return nil, err +func newFakeInventoryRequests(fake *FakeAkashV2beta2) typedakashnetworkv2beta2.InventoryRequestInterface { + return &fakeInventoryRequests{ + gentype.NewFakeClientWithListAndApply[*v2beta2.InventoryRequest, *v2beta2.InventoryRequestList, *akashnetworkv2beta2.InventoryRequestApplyConfiguration]( + fake.Fake, + "", + v2beta2.SchemeGroupVersion.WithResource("inventoryrequests"), + v2beta2.SchemeGroupVersion.WithKind("InventoryRequest"), + func() *v2beta2.InventoryRequest { return &v2beta2.InventoryRequest{} }, + func() *v2beta2.InventoryRequestList { return &v2beta2.InventoryRequestList{} }, + func(dst, src *v2beta2.InventoryRequestList) { dst.ListMeta = src.ListMeta }, + func(list *v2beta2.InventoryRequestList) []*v2beta2.InventoryRequest { + return gentype.ToPointerSlice(list.Items) + }, + func(list *v2beta2.InventoryRequestList, items []*v2beta2.InventoryRequest) { + list.Items = gentype.FromPointerSlice(items) + }, + ), + fake, } - return obj.(*v2beta2.InventoryRequest), err } diff --git a/pkg/client/clientset/versioned/typed/akash.network/v2beta2/fake/fake_manifest.go b/pkg/client/clientset/versioned/typed/akash.network/v2beta2/fake/fake_manifest.go index 836869136..cc653ec85 100644 --- a/pkg/client/clientset/versioned/typed/akash.network/v2beta2/fake/fake_manifest.go +++ b/pkg/client/clientset/versioned/typed/akash.network/v2beta2/fake/fake_manifest.go @@ -19,112 +19,33 @@ limitations under the License. package fake import ( - "context" - v2beta2 "github.com/akash-network/provider/pkg/apis/akash.network/v2beta2" - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - schema "k8s.io/apimachinery/pkg/runtime/schema" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" + akashnetworkv2beta2 "github.com/akash-network/provider/pkg/client/applyconfiguration/akash.network/v2beta2" + typedakashnetworkv2beta2 "github.com/akash-network/provider/pkg/client/clientset/versioned/typed/akash.network/v2beta2" + gentype "k8s.io/client-go/gentype" ) -// FakeManifests implements ManifestInterface -type FakeManifests struct { +// fakeManifests implements ManifestInterface +type fakeManifests struct { + *gentype.FakeClientWithListAndApply[*v2beta2.Manifest, *v2beta2.ManifestList, *akashnetworkv2beta2.ManifestApplyConfiguration] Fake *FakeAkashV2beta2 - ns string -} - -var manifestsResource = schema.GroupVersionResource{Group: "akash.network", Version: "v2beta2", Resource: "manifests"} - -var manifestsKind = schema.GroupVersionKind{Group: "akash.network", Version: "v2beta2", Kind: "Manifest"} - -// Get takes name of the manifest, and returns the corresponding manifest object, and an error if there is any. -func (c *FakeManifests) Get(ctx context.Context, name string, options v1.GetOptions) (result *v2beta2.Manifest, err error) { - obj, err := c.Fake. - Invokes(testing.NewGetAction(manifestsResource, c.ns, name), &v2beta2.Manifest{}) - - if obj == nil { - return nil, err - } - return obj.(*v2beta2.Manifest), err -} - -// List takes label and field selectors, and returns the list of Manifests that match those selectors. -func (c *FakeManifests) List(ctx context.Context, opts v1.ListOptions) (result *v2beta2.ManifestList, err error) { - obj, err := c.Fake. - Invokes(testing.NewListAction(manifestsResource, manifestsKind, c.ns, opts), &v2beta2.ManifestList{}) - - if obj == nil { - return nil, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v2beta2.ManifestList{ListMeta: obj.(*v2beta2.ManifestList).ListMeta} - for _, item := range obj.(*v2beta2.ManifestList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested manifests. -func (c *FakeManifests) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewWatchAction(manifestsResource, c.ns, opts)) - -} - -// Create takes the representation of a manifest and creates it. Returns the server's representation of the manifest, and an error, if there is any. -func (c *FakeManifests) Create(ctx context.Context, manifest *v2beta2.Manifest, opts v1.CreateOptions) (result *v2beta2.Manifest, err error) { - obj, err := c.Fake. - Invokes(testing.NewCreateAction(manifestsResource, c.ns, manifest), &v2beta2.Manifest{}) - - if obj == nil { - return nil, err - } - return obj.(*v2beta2.Manifest), err -} - -// Update takes the representation of a manifest and updates it. Returns the server's representation of the manifest, and an error, if there is any. -func (c *FakeManifests) Update(ctx context.Context, manifest *v2beta2.Manifest, opts v1.UpdateOptions) (result *v2beta2.Manifest, err error) { - obj, err := c.Fake. - Invokes(testing.NewUpdateAction(manifestsResource, c.ns, manifest), &v2beta2.Manifest{}) - - if obj == nil { - return nil, err - } - return obj.(*v2beta2.Manifest), err -} - -// Delete takes name of the manifest and deletes it. Returns an error if one occurs. -func (c *FakeManifests) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewDeleteActionWithOptions(manifestsResource, c.ns, name, opts), &v2beta2.Manifest{}) - - return err } -// DeleteCollection deletes a collection of objects. -func (c *FakeManifests) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - action := testing.NewDeleteCollectionAction(manifestsResource, c.ns, listOpts) - - _, err := c.Fake.Invokes(action, &v2beta2.ManifestList{}) - return err -} - -// Patch applies the patch and returns the patched manifest. -func (c *FakeManifests) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v2beta2.Manifest, err error) { - obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceAction(manifestsResource, c.ns, name, pt, data, subresources...), &v2beta2.Manifest{}) - - if obj == nil { - return nil, err +func newFakeManifests(fake *FakeAkashV2beta2, namespace string) typedakashnetworkv2beta2.ManifestInterface { + return &fakeManifests{ + gentype.NewFakeClientWithListAndApply[*v2beta2.Manifest, *v2beta2.ManifestList, *akashnetworkv2beta2.ManifestApplyConfiguration]( + fake.Fake, + namespace, + v2beta2.SchemeGroupVersion.WithResource("manifests"), + v2beta2.SchemeGroupVersion.WithKind("Manifest"), + func() *v2beta2.Manifest { return &v2beta2.Manifest{} }, + func() *v2beta2.ManifestList { return &v2beta2.ManifestList{} }, + func(dst, src *v2beta2.ManifestList) { dst.ListMeta = src.ListMeta }, + func(list *v2beta2.ManifestList) []*v2beta2.Manifest { return gentype.ToPointerSlice(list.Items) }, + func(list *v2beta2.ManifestList, items []*v2beta2.Manifest) { + list.Items = gentype.FromPointerSlice(items) + }, + ), + fake, } - return obj.(*v2beta2.Manifest), err } diff --git a/pkg/client/clientset/versioned/typed/akash.network/v2beta2/fake/fake_providerhost.go b/pkg/client/clientset/versioned/typed/akash.network/v2beta2/fake/fake_providerhost.go index 10aa9d8e5..8d4aa7edc 100644 --- a/pkg/client/clientset/versioned/typed/akash.network/v2beta2/fake/fake_providerhost.go +++ b/pkg/client/clientset/versioned/typed/akash.network/v2beta2/fake/fake_providerhost.go @@ -19,112 +19,35 @@ limitations under the License. package fake import ( - "context" - v2beta2 "github.com/akash-network/provider/pkg/apis/akash.network/v2beta2" - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - schema "k8s.io/apimachinery/pkg/runtime/schema" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" + akashnetworkv2beta2 "github.com/akash-network/provider/pkg/client/applyconfiguration/akash.network/v2beta2" + typedakashnetworkv2beta2 "github.com/akash-network/provider/pkg/client/clientset/versioned/typed/akash.network/v2beta2" + gentype "k8s.io/client-go/gentype" ) -// FakeProviderHosts implements ProviderHostInterface -type FakeProviderHosts struct { +// fakeProviderHosts implements ProviderHostInterface +type fakeProviderHosts struct { + *gentype.FakeClientWithListAndApply[*v2beta2.ProviderHost, *v2beta2.ProviderHostList, *akashnetworkv2beta2.ProviderHostApplyConfiguration] Fake *FakeAkashV2beta2 - ns string -} - -var providerhostsResource = schema.GroupVersionResource{Group: "akash.network", Version: "v2beta2", Resource: "providerhosts"} - -var providerhostsKind = schema.GroupVersionKind{Group: "akash.network", Version: "v2beta2", Kind: "ProviderHost"} - -// Get takes name of the providerHost, and returns the corresponding providerHost object, and an error if there is any. -func (c *FakeProviderHosts) Get(ctx context.Context, name string, options v1.GetOptions) (result *v2beta2.ProviderHost, err error) { - obj, err := c.Fake. - Invokes(testing.NewGetAction(providerhostsResource, c.ns, name), &v2beta2.ProviderHost{}) - - if obj == nil { - return nil, err - } - return obj.(*v2beta2.ProviderHost), err -} - -// List takes label and field selectors, and returns the list of ProviderHosts that match those selectors. -func (c *FakeProviderHosts) List(ctx context.Context, opts v1.ListOptions) (result *v2beta2.ProviderHostList, err error) { - obj, err := c.Fake. - Invokes(testing.NewListAction(providerhostsResource, providerhostsKind, c.ns, opts), &v2beta2.ProviderHostList{}) - - if obj == nil { - return nil, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v2beta2.ProviderHostList{ListMeta: obj.(*v2beta2.ProviderHostList).ListMeta} - for _, item := range obj.(*v2beta2.ProviderHostList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested providerHosts. -func (c *FakeProviderHosts) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewWatchAction(providerhostsResource, c.ns, opts)) - -} - -// Create takes the representation of a providerHost and creates it. Returns the server's representation of the providerHost, and an error, if there is any. -func (c *FakeProviderHosts) Create(ctx context.Context, providerHost *v2beta2.ProviderHost, opts v1.CreateOptions) (result *v2beta2.ProviderHost, err error) { - obj, err := c.Fake. - Invokes(testing.NewCreateAction(providerhostsResource, c.ns, providerHost), &v2beta2.ProviderHost{}) - - if obj == nil { - return nil, err - } - return obj.(*v2beta2.ProviderHost), err -} - -// Update takes the representation of a providerHost and updates it. Returns the server's representation of the providerHost, and an error, if there is any. -func (c *FakeProviderHosts) Update(ctx context.Context, providerHost *v2beta2.ProviderHost, opts v1.UpdateOptions) (result *v2beta2.ProviderHost, err error) { - obj, err := c.Fake. - Invokes(testing.NewUpdateAction(providerhostsResource, c.ns, providerHost), &v2beta2.ProviderHost{}) - - if obj == nil { - return nil, err - } - return obj.(*v2beta2.ProviderHost), err -} - -// Delete takes name of the providerHost and deletes it. Returns an error if one occurs. -func (c *FakeProviderHosts) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewDeleteActionWithOptions(providerhostsResource, c.ns, name, opts), &v2beta2.ProviderHost{}) - - return err } -// DeleteCollection deletes a collection of objects. -func (c *FakeProviderHosts) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - action := testing.NewDeleteCollectionAction(providerhostsResource, c.ns, listOpts) - - _, err := c.Fake.Invokes(action, &v2beta2.ProviderHostList{}) - return err -} - -// Patch applies the patch and returns the patched providerHost. -func (c *FakeProviderHosts) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v2beta2.ProviderHost, err error) { - obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceAction(providerhostsResource, c.ns, name, pt, data, subresources...), &v2beta2.ProviderHost{}) - - if obj == nil { - return nil, err +func newFakeProviderHosts(fake *FakeAkashV2beta2, namespace string) typedakashnetworkv2beta2.ProviderHostInterface { + return &fakeProviderHosts{ + gentype.NewFakeClientWithListAndApply[*v2beta2.ProviderHost, *v2beta2.ProviderHostList, *akashnetworkv2beta2.ProviderHostApplyConfiguration]( + fake.Fake, + namespace, + v2beta2.SchemeGroupVersion.WithResource("providerhosts"), + v2beta2.SchemeGroupVersion.WithKind("ProviderHost"), + func() *v2beta2.ProviderHost { return &v2beta2.ProviderHost{} }, + func() *v2beta2.ProviderHostList { return &v2beta2.ProviderHostList{} }, + func(dst, src *v2beta2.ProviderHostList) { dst.ListMeta = src.ListMeta }, + func(list *v2beta2.ProviderHostList) []*v2beta2.ProviderHost { + return gentype.ToPointerSlice(list.Items) + }, + func(list *v2beta2.ProviderHostList, items []*v2beta2.ProviderHost) { + list.Items = gentype.FromPointerSlice(items) + }, + ), + fake, } - return obj.(*v2beta2.ProviderHost), err } diff --git a/pkg/client/clientset/versioned/typed/akash.network/v2beta2/fake/fake_providerleasedip.go b/pkg/client/clientset/versioned/typed/akash.network/v2beta2/fake/fake_providerleasedip.go index b0a5714bc..c1e98a0ca 100644 --- a/pkg/client/clientset/versioned/typed/akash.network/v2beta2/fake/fake_providerleasedip.go +++ b/pkg/client/clientset/versioned/typed/akash.network/v2beta2/fake/fake_providerleasedip.go @@ -19,112 +19,35 @@ limitations under the License. package fake import ( - "context" - v2beta2 "github.com/akash-network/provider/pkg/apis/akash.network/v2beta2" - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - schema "k8s.io/apimachinery/pkg/runtime/schema" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" + akashnetworkv2beta2 "github.com/akash-network/provider/pkg/client/applyconfiguration/akash.network/v2beta2" + typedakashnetworkv2beta2 "github.com/akash-network/provider/pkg/client/clientset/versioned/typed/akash.network/v2beta2" + gentype "k8s.io/client-go/gentype" ) -// FakeProviderLeasedIPs implements ProviderLeasedIPInterface -type FakeProviderLeasedIPs struct { +// fakeProviderLeasedIPs implements ProviderLeasedIPInterface +type fakeProviderLeasedIPs struct { + *gentype.FakeClientWithListAndApply[*v2beta2.ProviderLeasedIP, *v2beta2.ProviderLeasedIPList, *akashnetworkv2beta2.ProviderLeasedIPApplyConfiguration] Fake *FakeAkashV2beta2 - ns string -} - -var providerleasedipsResource = schema.GroupVersionResource{Group: "akash.network", Version: "v2beta2", Resource: "providerleasedips"} - -var providerleasedipsKind = schema.GroupVersionKind{Group: "akash.network", Version: "v2beta2", Kind: "ProviderLeasedIP"} - -// Get takes name of the providerLeasedIP, and returns the corresponding providerLeasedIP object, and an error if there is any. -func (c *FakeProviderLeasedIPs) Get(ctx context.Context, name string, options v1.GetOptions) (result *v2beta2.ProviderLeasedIP, err error) { - obj, err := c.Fake. - Invokes(testing.NewGetAction(providerleasedipsResource, c.ns, name), &v2beta2.ProviderLeasedIP{}) - - if obj == nil { - return nil, err - } - return obj.(*v2beta2.ProviderLeasedIP), err -} - -// List takes label and field selectors, and returns the list of ProviderLeasedIPs that match those selectors. -func (c *FakeProviderLeasedIPs) List(ctx context.Context, opts v1.ListOptions) (result *v2beta2.ProviderLeasedIPList, err error) { - obj, err := c.Fake. - Invokes(testing.NewListAction(providerleasedipsResource, providerleasedipsKind, c.ns, opts), &v2beta2.ProviderLeasedIPList{}) - - if obj == nil { - return nil, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v2beta2.ProviderLeasedIPList{ListMeta: obj.(*v2beta2.ProviderLeasedIPList).ListMeta} - for _, item := range obj.(*v2beta2.ProviderLeasedIPList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested providerLeasedIPs. -func (c *FakeProviderLeasedIPs) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewWatchAction(providerleasedipsResource, c.ns, opts)) - -} - -// Create takes the representation of a providerLeasedIP and creates it. Returns the server's representation of the providerLeasedIP, and an error, if there is any. -func (c *FakeProviderLeasedIPs) Create(ctx context.Context, providerLeasedIP *v2beta2.ProviderLeasedIP, opts v1.CreateOptions) (result *v2beta2.ProviderLeasedIP, err error) { - obj, err := c.Fake. - Invokes(testing.NewCreateAction(providerleasedipsResource, c.ns, providerLeasedIP), &v2beta2.ProviderLeasedIP{}) - - if obj == nil { - return nil, err - } - return obj.(*v2beta2.ProviderLeasedIP), err -} - -// Update takes the representation of a providerLeasedIP and updates it. Returns the server's representation of the providerLeasedIP, and an error, if there is any. -func (c *FakeProviderLeasedIPs) Update(ctx context.Context, providerLeasedIP *v2beta2.ProviderLeasedIP, opts v1.UpdateOptions) (result *v2beta2.ProviderLeasedIP, err error) { - obj, err := c.Fake. - Invokes(testing.NewUpdateAction(providerleasedipsResource, c.ns, providerLeasedIP), &v2beta2.ProviderLeasedIP{}) - - if obj == nil { - return nil, err - } - return obj.(*v2beta2.ProviderLeasedIP), err -} - -// Delete takes name of the providerLeasedIP and deletes it. Returns an error if one occurs. -func (c *FakeProviderLeasedIPs) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewDeleteActionWithOptions(providerleasedipsResource, c.ns, name, opts), &v2beta2.ProviderLeasedIP{}) - - return err } -// DeleteCollection deletes a collection of objects. -func (c *FakeProviderLeasedIPs) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - action := testing.NewDeleteCollectionAction(providerleasedipsResource, c.ns, listOpts) - - _, err := c.Fake.Invokes(action, &v2beta2.ProviderLeasedIPList{}) - return err -} - -// Patch applies the patch and returns the patched providerLeasedIP. -func (c *FakeProviderLeasedIPs) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v2beta2.ProviderLeasedIP, err error) { - obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceAction(providerleasedipsResource, c.ns, name, pt, data, subresources...), &v2beta2.ProviderLeasedIP{}) - - if obj == nil { - return nil, err +func newFakeProviderLeasedIPs(fake *FakeAkashV2beta2, namespace string) typedakashnetworkv2beta2.ProviderLeasedIPInterface { + return &fakeProviderLeasedIPs{ + gentype.NewFakeClientWithListAndApply[*v2beta2.ProviderLeasedIP, *v2beta2.ProviderLeasedIPList, *akashnetworkv2beta2.ProviderLeasedIPApplyConfiguration]( + fake.Fake, + namespace, + v2beta2.SchemeGroupVersion.WithResource("providerleasedips"), + v2beta2.SchemeGroupVersion.WithKind("ProviderLeasedIP"), + func() *v2beta2.ProviderLeasedIP { return &v2beta2.ProviderLeasedIP{} }, + func() *v2beta2.ProviderLeasedIPList { return &v2beta2.ProviderLeasedIPList{} }, + func(dst, src *v2beta2.ProviderLeasedIPList) { dst.ListMeta = src.ListMeta }, + func(list *v2beta2.ProviderLeasedIPList) []*v2beta2.ProviderLeasedIP { + return gentype.ToPointerSlice(list.Items) + }, + func(list *v2beta2.ProviderLeasedIPList, items []*v2beta2.ProviderLeasedIP) { + list.Items = gentype.FromPointerSlice(items) + }, + ), + fake, } - return obj.(*v2beta2.ProviderLeasedIP), err } diff --git a/pkg/client/clientset/versioned/typed/akash.network/v2beta2/inventory.go b/pkg/client/clientset/versioned/typed/akash.network/v2beta2/inventory.go index f97ad41a6..f28044a5c 100644 --- a/pkg/client/clientset/versioned/typed/akash.network/v2beta2/inventory.go +++ b/pkg/client/clientset/versioned/typed/akash.network/v2beta2/inventory.go @@ -19,15 +19,15 @@ limitations under the License. package v2beta2 import ( - "context" - "time" + context "context" - v2beta2 "github.com/akash-network/provider/pkg/apis/akash.network/v2beta2" + akashnetworkv2beta2 "github.com/akash-network/provider/pkg/apis/akash.network/v2beta2" + applyconfigurationakashnetworkv2beta2 "github.com/akash-network/provider/pkg/client/applyconfiguration/akash.network/v2beta2" scheme "github.com/akash-network/provider/pkg/client/clientset/versioned/scheme" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" watch "k8s.io/apimachinery/pkg/watch" - rest "k8s.io/client-go/rest" + gentype "k8s.io/client-go/gentype" ) // InventoriesGetter has a method to return a InventoryInterface. @@ -38,147 +38,37 @@ type InventoriesGetter interface { // InventoryInterface has methods to work with Inventory resources. type InventoryInterface interface { - Create(ctx context.Context, inventory *v2beta2.Inventory, opts v1.CreateOptions) (*v2beta2.Inventory, error) - Update(ctx context.Context, inventory *v2beta2.Inventory, opts v1.UpdateOptions) (*v2beta2.Inventory, error) - UpdateStatus(ctx context.Context, inventory *v2beta2.Inventory, opts v1.UpdateOptions) (*v2beta2.Inventory, error) + Create(ctx context.Context, inventory *akashnetworkv2beta2.Inventory, opts v1.CreateOptions) (*akashnetworkv2beta2.Inventory, error) + Update(ctx context.Context, inventory *akashnetworkv2beta2.Inventory, opts v1.UpdateOptions) (*akashnetworkv2beta2.Inventory, error) + // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). + UpdateStatus(ctx context.Context, inventory *akashnetworkv2beta2.Inventory, opts v1.UpdateOptions) (*akashnetworkv2beta2.Inventory, error) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error - Get(ctx context.Context, name string, opts v1.GetOptions) (*v2beta2.Inventory, error) - List(ctx context.Context, opts v1.ListOptions) (*v2beta2.InventoryList, error) + Get(ctx context.Context, name string, opts v1.GetOptions) (*akashnetworkv2beta2.Inventory, error) + List(ctx context.Context, opts v1.ListOptions) (*akashnetworkv2beta2.InventoryList, error) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v2beta2.Inventory, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *akashnetworkv2beta2.Inventory, err error) + Apply(ctx context.Context, inventory *applyconfigurationakashnetworkv2beta2.InventoryApplyConfiguration, opts v1.ApplyOptions) (result *akashnetworkv2beta2.Inventory, err error) + // Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus(). + ApplyStatus(ctx context.Context, inventory *applyconfigurationakashnetworkv2beta2.InventoryApplyConfiguration, opts v1.ApplyOptions) (result *akashnetworkv2beta2.Inventory, err error) InventoryExpansion } // inventories implements InventoryInterface type inventories struct { - client rest.Interface + *gentype.ClientWithListAndApply[*akashnetworkv2beta2.Inventory, *akashnetworkv2beta2.InventoryList, *applyconfigurationakashnetworkv2beta2.InventoryApplyConfiguration] } // newInventories returns a Inventories func newInventories(c *AkashV2beta2Client) *inventories { return &inventories{ - client: c.RESTClient(), + gentype.NewClientWithListAndApply[*akashnetworkv2beta2.Inventory, *akashnetworkv2beta2.InventoryList, *applyconfigurationakashnetworkv2beta2.InventoryApplyConfiguration]( + "inventories", + c.RESTClient(), + scheme.ParameterCodec, + "", + func() *akashnetworkv2beta2.Inventory { return &akashnetworkv2beta2.Inventory{} }, + func() *akashnetworkv2beta2.InventoryList { return &akashnetworkv2beta2.InventoryList{} }, + ), } } - -// Get takes name of the inventory, and returns the corresponding inventory object, and an error if there is any. -func (c *inventories) Get(ctx context.Context, name string, options v1.GetOptions) (result *v2beta2.Inventory, err error) { - result = &v2beta2.Inventory{} - err = c.client.Get(). - Resource("inventories"). - Name(name). - VersionedParams(&options, scheme.ParameterCodec). - Do(ctx). - Into(result) - return -} - -// List takes label and field selectors, and returns the list of Inventories that match those selectors. -func (c *inventories) List(ctx context.Context, opts v1.ListOptions) (result *v2beta2.InventoryList, err error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - result = &v2beta2.InventoryList{} - err = c.client.Get(). - Resource("inventories"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Do(ctx). - Into(result) - return -} - -// Watch returns a watch.Interface that watches the requested inventories. -func (c *inventories) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - opts.Watch = true - return c.client.Get(). - Resource("inventories"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Watch(ctx) -} - -// Create takes the representation of a inventory and creates it. Returns the server's representation of the inventory, and an error, if there is any. -func (c *inventories) Create(ctx context.Context, inventory *v2beta2.Inventory, opts v1.CreateOptions) (result *v2beta2.Inventory, err error) { - result = &v2beta2.Inventory{} - err = c.client.Post(). - Resource("inventories"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(inventory). - Do(ctx). - Into(result) - return -} - -// Update takes the representation of a inventory and updates it. Returns the server's representation of the inventory, and an error, if there is any. -func (c *inventories) Update(ctx context.Context, inventory *v2beta2.Inventory, opts v1.UpdateOptions) (result *v2beta2.Inventory, err error) { - result = &v2beta2.Inventory{} - err = c.client.Put(). - Resource("inventories"). - Name(inventory.Name). - VersionedParams(&opts, scheme.ParameterCodec). - Body(inventory). - Do(ctx). - Into(result) - return -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *inventories) UpdateStatus(ctx context.Context, inventory *v2beta2.Inventory, opts v1.UpdateOptions) (result *v2beta2.Inventory, err error) { - result = &v2beta2.Inventory{} - err = c.client.Put(). - Resource("inventories"). - Name(inventory.Name). - SubResource("status"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(inventory). - Do(ctx). - Into(result) - return -} - -// Delete takes name of the inventory and deletes it. Returns an error if one occurs. -func (c *inventories) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - return c.client.Delete(). - Resource("inventories"). - Name(name). - Body(&opts). - Do(ctx). - Error() -} - -// DeleteCollection deletes a collection of objects. -func (c *inventories) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - var timeout time.Duration - if listOpts.TimeoutSeconds != nil { - timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second - } - return c.client.Delete(). - Resource("inventories"). - VersionedParams(&listOpts, scheme.ParameterCodec). - Timeout(timeout). - Body(&opts). - Do(ctx). - Error() -} - -// Patch applies the patch and returns the patched inventory. -func (c *inventories) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v2beta2.Inventory, err error) { - result = &v2beta2.Inventory{} - err = c.client.Patch(pt). - Resource("inventories"). - Name(name). - SubResource(subresources...). - VersionedParams(&opts, scheme.ParameterCodec). - Body(data). - Do(ctx). - Into(result) - return -} diff --git a/pkg/client/clientset/versioned/typed/akash.network/v2beta2/inventoryrequest.go b/pkg/client/clientset/versioned/typed/akash.network/v2beta2/inventoryrequest.go index b1aa65741..b14adfe99 100644 --- a/pkg/client/clientset/versioned/typed/akash.network/v2beta2/inventoryrequest.go +++ b/pkg/client/clientset/versioned/typed/akash.network/v2beta2/inventoryrequest.go @@ -19,15 +19,15 @@ limitations under the License. package v2beta2 import ( - "context" - "time" + context "context" - v2beta2 "github.com/akash-network/provider/pkg/apis/akash.network/v2beta2" + akashnetworkv2beta2 "github.com/akash-network/provider/pkg/apis/akash.network/v2beta2" + applyconfigurationakashnetworkv2beta2 "github.com/akash-network/provider/pkg/client/applyconfiguration/akash.network/v2beta2" scheme "github.com/akash-network/provider/pkg/client/clientset/versioned/scheme" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" watch "k8s.io/apimachinery/pkg/watch" - rest "k8s.io/client-go/rest" + gentype "k8s.io/client-go/gentype" ) // InventoryRequestsGetter has a method to return a InventoryRequestInterface. @@ -38,147 +38,37 @@ type InventoryRequestsGetter interface { // InventoryRequestInterface has methods to work with InventoryRequest resources. type InventoryRequestInterface interface { - Create(ctx context.Context, inventoryRequest *v2beta2.InventoryRequest, opts v1.CreateOptions) (*v2beta2.InventoryRequest, error) - Update(ctx context.Context, inventoryRequest *v2beta2.InventoryRequest, opts v1.UpdateOptions) (*v2beta2.InventoryRequest, error) - UpdateStatus(ctx context.Context, inventoryRequest *v2beta2.InventoryRequest, opts v1.UpdateOptions) (*v2beta2.InventoryRequest, error) + Create(ctx context.Context, inventoryRequest *akashnetworkv2beta2.InventoryRequest, opts v1.CreateOptions) (*akashnetworkv2beta2.InventoryRequest, error) + Update(ctx context.Context, inventoryRequest *akashnetworkv2beta2.InventoryRequest, opts v1.UpdateOptions) (*akashnetworkv2beta2.InventoryRequest, error) + // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). + UpdateStatus(ctx context.Context, inventoryRequest *akashnetworkv2beta2.InventoryRequest, opts v1.UpdateOptions) (*akashnetworkv2beta2.InventoryRequest, error) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error - Get(ctx context.Context, name string, opts v1.GetOptions) (*v2beta2.InventoryRequest, error) - List(ctx context.Context, opts v1.ListOptions) (*v2beta2.InventoryRequestList, error) + Get(ctx context.Context, name string, opts v1.GetOptions) (*akashnetworkv2beta2.InventoryRequest, error) + List(ctx context.Context, opts v1.ListOptions) (*akashnetworkv2beta2.InventoryRequestList, error) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v2beta2.InventoryRequest, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *akashnetworkv2beta2.InventoryRequest, err error) + Apply(ctx context.Context, inventoryRequest *applyconfigurationakashnetworkv2beta2.InventoryRequestApplyConfiguration, opts v1.ApplyOptions) (result *akashnetworkv2beta2.InventoryRequest, err error) + // Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus(). + ApplyStatus(ctx context.Context, inventoryRequest *applyconfigurationakashnetworkv2beta2.InventoryRequestApplyConfiguration, opts v1.ApplyOptions) (result *akashnetworkv2beta2.InventoryRequest, err error) InventoryRequestExpansion } // inventoryRequests implements InventoryRequestInterface type inventoryRequests struct { - client rest.Interface + *gentype.ClientWithListAndApply[*akashnetworkv2beta2.InventoryRequest, *akashnetworkv2beta2.InventoryRequestList, *applyconfigurationakashnetworkv2beta2.InventoryRequestApplyConfiguration] } // newInventoryRequests returns a InventoryRequests func newInventoryRequests(c *AkashV2beta2Client) *inventoryRequests { return &inventoryRequests{ - client: c.RESTClient(), + gentype.NewClientWithListAndApply[*akashnetworkv2beta2.InventoryRequest, *akashnetworkv2beta2.InventoryRequestList, *applyconfigurationakashnetworkv2beta2.InventoryRequestApplyConfiguration]( + "inventoryrequests", + c.RESTClient(), + scheme.ParameterCodec, + "", + func() *akashnetworkv2beta2.InventoryRequest { return &akashnetworkv2beta2.InventoryRequest{} }, + func() *akashnetworkv2beta2.InventoryRequestList { return &akashnetworkv2beta2.InventoryRequestList{} }, + ), } } - -// Get takes name of the inventoryRequest, and returns the corresponding inventoryRequest object, and an error if there is any. -func (c *inventoryRequests) Get(ctx context.Context, name string, options v1.GetOptions) (result *v2beta2.InventoryRequest, err error) { - result = &v2beta2.InventoryRequest{} - err = c.client.Get(). - Resource("inventoryrequests"). - Name(name). - VersionedParams(&options, scheme.ParameterCodec). - Do(ctx). - Into(result) - return -} - -// List takes label and field selectors, and returns the list of InventoryRequests that match those selectors. -func (c *inventoryRequests) List(ctx context.Context, opts v1.ListOptions) (result *v2beta2.InventoryRequestList, err error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - result = &v2beta2.InventoryRequestList{} - err = c.client.Get(). - Resource("inventoryrequests"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Do(ctx). - Into(result) - return -} - -// Watch returns a watch.Interface that watches the requested inventoryRequests. -func (c *inventoryRequests) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - opts.Watch = true - return c.client.Get(). - Resource("inventoryrequests"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Watch(ctx) -} - -// Create takes the representation of a inventoryRequest and creates it. Returns the server's representation of the inventoryRequest, and an error, if there is any. -func (c *inventoryRequests) Create(ctx context.Context, inventoryRequest *v2beta2.InventoryRequest, opts v1.CreateOptions) (result *v2beta2.InventoryRequest, err error) { - result = &v2beta2.InventoryRequest{} - err = c.client.Post(). - Resource("inventoryrequests"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(inventoryRequest). - Do(ctx). - Into(result) - return -} - -// Update takes the representation of a inventoryRequest and updates it. Returns the server's representation of the inventoryRequest, and an error, if there is any. -func (c *inventoryRequests) Update(ctx context.Context, inventoryRequest *v2beta2.InventoryRequest, opts v1.UpdateOptions) (result *v2beta2.InventoryRequest, err error) { - result = &v2beta2.InventoryRequest{} - err = c.client.Put(). - Resource("inventoryrequests"). - Name(inventoryRequest.Name). - VersionedParams(&opts, scheme.ParameterCodec). - Body(inventoryRequest). - Do(ctx). - Into(result) - return -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *inventoryRequests) UpdateStatus(ctx context.Context, inventoryRequest *v2beta2.InventoryRequest, opts v1.UpdateOptions) (result *v2beta2.InventoryRequest, err error) { - result = &v2beta2.InventoryRequest{} - err = c.client.Put(). - Resource("inventoryrequests"). - Name(inventoryRequest.Name). - SubResource("status"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(inventoryRequest). - Do(ctx). - Into(result) - return -} - -// Delete takes name of the inventoryRequest and deletes it. Returns an error if one occurs. -func (c *inventoryRequests) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - return c.client.Delete(). - Resource("inventoryrequests"). - Name(name). - Body(&opts). - Do(ctx). - Error() -} - -// DeleteCollection deletes a collection of objects. -func (c *inventoryRequests) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - var timeout time.Duration - if listOpts.TimeoutSeconds != nil { - timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second - } - return c.client.Delete(). - Resource("inventoryrequests"). - VersionedParams(&listOpts, scheme.ParameterCodec). - Timeout(timeout). - Body(&opts). - Do(ctx). - Error() -} - -// Patch applies the patch and returns the patched inventoryRequest. -func (c *inventoryRequests) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v2beta2.InventoryRequest, err error) { - result = &v2beta2.InventoryRequest{} - err = c.client.Patch(pt). - Resource("inventoryrequests"). - Name(name). - SubResource(subresources...). - VersionedParams(&opts, scheme.ParameterCodec). - Body(data). - Do(ctx). - Into(result) - return -} diff --git a/pkg/client/clientset/versioned/typed/akash.network/v2beta2/manifest.go b/pkg/client/clientset/versioned/typed/akash.network/v2beta2/manifest.go index df59ae64c..07b983ff4 100644 --- a/pkg/client/clientset/versioned/typed/akash.network/v2beta2/manifest.go +++ b/pkg/client/clientset/versioned/typed/akash.network/v2beta2/manifest.go @@ -19,15 +19,15 @@ limitations under the License. package v2beta2 import ( - "context" - "time" + context "context" - v2beta2 "github.com/akash-network/provider/pkg/apis/akash.network/v2beta2" + akashnetworkv2beta2 "github.com/akash-network/provider/pkg/apis/akash.network/v2beta2" + applyconfigurationakashnetworkv2beta2 "github.com/akash-network/provider/pkg/client/applyconfiguration/akash.network/v2beta2" scheme "github.com/akash-network/provider/pkg/client/clientset/versioned/scheme" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" watch "k8s.io/apimachinery/pkg/watch" - rest "k8s.io/client-go/rest" + gentype "k8s.io/client-go/gentype" ) // ManifestsGetter has a method to return a ManifestInterface. @@ -38,141 +38,33 @@ type ManifestsGetter interface { // ManifestInterface has methods to work with Manifest resources. type ManifestInterface interface { - Create(ctx context.Context, manifest *v2beta2.Manifest, opts v1.CreateOptions) (*v2beta2.Manifest, error) - Update(ctx context.Context, manifest *v2beta2.Manifest, opts v1.UpdateOptions) (*v2beta2.Manifest, error) + Create(ctx context.Context, manifest *akashnetworkv2beta2.Manifest, opts v1.CreateOptions) (*akashnetworkv2beta2.Manifest, error) + Update(ctx context.Context, manifest *akashnetworkv2beta2.Manifest, opts v1.UpdateOptions) (*akashnetworkv2beta2.Manifest, error) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error - Get(ctx context.Context, name string, opts v1.GetOptions) (*v2beta2.Manifest, error) - List(ctx context.Context, opts v1.ListOptions) (*v2beta2.ManifestList, error) + Get(ctx context.Context, name string, opts v1.GetOptions) (*akashnetworkv2beta2.Manifest, error) + List(ctx context.Context, opts v1.ListOptions) (*akashnetworkv2beta2.ManifestList, error) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v2beta2.Manifest, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *akashnetworkv2beta2.Manifest, err error) + Apply(ctx context.Context, manifest *applyconfigurationakashnetworkv2beta2.ManifestApplyConfiguration, opts v1.ApplyOptions) (result *akashnetworkv2beta2.Manifest, err error) ManifestExpansion } // manifests implements ManifestInterface type manifests struct { - client rest.Interface - ns string + *gentype.ClientWithListAndApply[*akashnetworkv2beta2.Manifest, *akashnetworkv2beta2.ManifestList, *applyconfigurationakashnetworkv2beta2.ManifestApplyConfiguration] } // newManifests returns a Manifests func newManifests(c *AkashV2beta2Client, namespace string) *manifests { return &manifests{ - client: c.RESTClient(), - ns: namespace, + gentype.NewClientWithListAndApply[*akashnetworkv2beta2.Manifest, *akashnetworkv2beta2.ManifestList, *applyconfigurationakashnetworkv2beta2.ManifestApplyConfiguration]( + "manifests", + c.RESTClient(), + scheme.ParameterCodec, + namespace, + func() *akashnetworkv2beta2.Manifest { return &akashnetworkv2beta2.Manifest{} }, + func() *akashnetworkv2beta2.ManifestList { return &akashnetworkv2beta2.ManifestList{} }, + ), } } - -// Get takes name of the manifest, and returns the corresponding manifest object, and an error if there is any. -func (c *manifests) Get(ctx context.Context, name string, options v1.GetOptions) (result *v2beta2.Manifest, err error) { - result = &v2beta2.Manifest{} - err = c.client.Get(). - Namespace(c.ns). - Resource("manifests"). - Name(name). - VersionedParams(&options, scheme.ParameterCodec). - Do(ctx). - Into(result) - return -} - -// List takes label and field selectors, and returns the list of Manifests that match those selectors. -func (c *manifests) List(ctx context.Context, opts v1.ListOptions) (result *v2beta2.ManifestList, err error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - result = &v2beta2.ManifestList{} - err = c.client.Get(). - Namespace(c.ns). - Resource("manifests"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Do(ctx). - Into(result) - return -} - -// Watch returns a watch.Interface that watches the requested manifests. -func (c *manifests) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - opts.Watch = true - return c.client.Get(). - Namespace(c.ns). - Resource("manifests"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Watch(ctx) -} - -// Create takes the representation of a manifest and creates it. Returns the server's representation of the manifest, and an error, if there is any. -func (c *manifests) Create(ctx context.Context, manifest *v2beta2.Manifest, opts v1.CreateOptions) (result *v2beta2.Manifest, err error) { - result = &v2beta2.Manifest{} - err = c.client.Post(). - Namespace(c.ns). - Resource("manifests"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(manifest). - Do(ctx). - Into(result) - return -} - -// Update takes the representation of a manifest and updates it. Returns the server's representation of the manifest, and an error, if there is any. -func (c *manifests) Update(ctx context.Context, manifest *v2beta2.Manifest, opts v1.UpdateOptions) (result *v2beta2.Manifest, err error) { - result = &v2beta2.Manifest{} - err = c.client.Put(). - Namespace(c.ns). - Resource("manifests"). - Name(manifest.Name). - VersionedParams(&opts, scheme.ParameterCodec). - Body(manifest). - Do(ctx). - Into(result) - return -} - -// Delete takes name of the manifest and deletes it. Returns an error if one occurs. -func (c *manifests) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - return c.client.Delete(). - Namespace(c.ns). - Resource("manifests"). - Name(name). - Body(&opts). - Do(ctx). - Error() -} - -// DeleteCollection deletes a collection of objects. -func (c *manifests) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - var timeout time.Duration - if listOpts.TimeoutSeconds != nil { - timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second - } - return c.client.Delete(). - Namespace(c.ns). - Resource("manifests"). - VersionedParams(&listOpts, scheme.ParameterCodec). - Timeout(timeout). - Body(&opts). - Do(ctx). - Error() -} - -// Patch applies the patch and returns the patched manifest. -func (c *manifests) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v2beta2.Manifest, err error) { - result = &v2beta2.Manifest{} - err = c.client.Patch(pt). - Namespace(c.ns). - Resource("manifests"). - Name(name). - SubResource(subresources...). - VersionedParams(&opts, scheme.ParameterCodec). - Body(data). - Do(ctx). - Into(result) - return -} diff --git a/pkg/client/clientset/versioned/typed/akash.network/v2beta2/providerhost.go b/pkg/client/clientset/versioned/typed/akash.network/v2beta2/providerhost.go index e5d42d186..72b947052 100644 --- a/pkg/client/clientset/versioned/typed/akash.network/v2beta2/providerhost.go +++ b/pkg/client/clientset/versioned/typed/akash.network/v2beta2/providerhost.go @@ -19,15 +19,15 @@ limitations under the License. package v2beta2 import ( - "context" - "time" + context "context" - v2beta2 "github.com/akash-network/provider/pkg/apis/akash.network/v2beta2" + akashnetworkv2beta2 "github.com/akash-network/provider/pkg/apis/akash.network/v2beta2" + applyconfigurationakashnetworkv2beta2 "github.com/akash-network/provider/pkg/client/applyconfiguration/akash.network/v2beta2" scheme "github.com/akash-network/provider/pkg/client/clientset/versioned/scheme" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" watch "k8s.io/apimachinery/pkg/watch" - rest "k8s.io/client-go/rest" + gentype "k8s.io/client-go/gentype" ) // ProviderHostsGetter has a method to return a ProviderHostInterface. @@ -38,141 +38,33 @@ type ProviderHostsGetter interface { // ProviderHostInterface has methods to work with ProviderHost resources. type ProviderHostInterface interface { - Create(ctx context.Context, providerHost *v2beta2.ProviderHost, opts v1.CreateOptions) (*v2beta2.ProviderHost, error) - Update(ctx context.Context, providerHost *v2beta2.ProviderHost, opts v1.UpdateOptions) (*v2beta2.ProviderHost, error) + Create(ctx context.Context, providerHost *akashnetworkv2beta2.ProviderHost, opts v1.CreateOptions) (*akashnetworkv2beta2.ProviderHost, error) + Update(ctx context.Context, providerHost *akashnetworkv2beta2.ProviderHost, opts v1.UpdateOptions) (*akashnetworkv2beta2.ProviderHost, error) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error - Get(ctx context.Context, name string, opts v1.GetOptions) (*v2beta2.ProviderHost, error) - List(ctx context.Context, opts v1.ListOptions) (*v2beta2.ProviderHostList, error) + Get(ctx context.Context, name string, opts v1.GetOptions) (*akashnetworkv2beta2.ProviderHost, error) + List(ctx context.Context, opts v1.ListOptions) (*akashnetworkv2beta2.ProviderHostList, error) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v2beta2.ProviderHost, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *akashnetworkv2beta2.ProviderHost, err error) + Apply(ctx context.Context, providerHost *applyconfigurationakashnetworkv2beta2.ProviderHostApplyConfiguration, opts v1.ApplyOptions) (result *akashnetworkv2beta2.ProviderHost, err error) ProviderHostExpansion } // providerHosts implements ProviderHostInterface type providerHosts struct { - client rest.Interface - ns string + *gentype.ClientWithListAndApply[*akashnetworkv2beta2.ProviderHost, *akashnetworkv2beta2.ProviderHostList, *applyconfigurationakashnetworkv2beta2.ProviderHostApplyConfiguration] } // newProviderHosts returns a ProviderHosts func newProviderHosts(c *AkashV2beta2Client, namespace string) *providerHosts { return &providerHosts{ - client: c.RESTClient(), - ns: namespace, + gentype.NewClientWithListAndApply[*akashnetworkv2beta2.ProviderHost, *akashnetworkv2beta2.ProviderHostList, *applyconfigurationakashnetworkv2beta2.ProviderHostApplyConfiguration]( + "providerhosts", + c.RESTClient(), + scheme.ParameterCodec, + namespace, + func() *akashnetworkv2beta2.ProviderHost { return &akashnetworkv2beta2.ProviderHost{} }, + func() *akashnetworkv2beta2.ProviderHostList { return &akashnetworkv2beta2.ProviderHostList{} }, + ), } } - -// Get takes name of the providerHost, and returns the corresponding providerHost object, and an error if there is any. -func (c *providerHosts) Get(ctx context.Context, name string, options v1.GetOptions) (result *v2beta2.ProviderHost, err error) { - result = &v2beta2.ProviderHost{} - err = c.client.Get(). - Namespace(c.ns). - Resource("providerhosts"). - Name(name). - VersionedParams(&options, scheme.ParameterCodec). - Do(ctx). - Into(result) - return -} - -// List takes label and field selectors, and returns the list of ProviderHosts that match those selectors. -func (c *providerHosts) List(ctx context.Context, opts v1.ListOptions) (result *v2beta2.ProviderHostList, err error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - result = &v2beta2.ProviderHostList{} - err = c.client.Get(). - Namespace(c.ns). - Resource("providerhosts"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Do(ctx). - Into(result) - return -} - -// Watch returns a watch.Interface that watches the requested providerHosts. -func (c *providerHosts) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - opts.Watch = true - return c.client.Get(). - Namespace(c.ns). - Resource("providerhosts"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Watch(ctx) -} - -// Create takes the representation of a providerHost and creates it. Returns the server's representation of the providerHost, and an error, if there is any. -func (c *providerHosts) Create(ctx context.Context, providerHost *v2beta2.ProviderHost, opts v1.CreateOptions) (result *v2beta2.ProviderHost, err error) { - result = &v2beta2.ProviderHost{} - err = c.client.Post(). - Namespace(c.ns). - Resource("providerhosts"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(providerHost). - Do(ctx). - Into(result) - return -} - -// Update takes the representation of a providerHost and updates it. Returns the server's representation of the providerHost, and an error, if there is any. -func (c *providerHosts) Update(ctx context.Context, providerHost *v2beta2.ProviderHost, opts v1.UpdateOptions) (result *v2beta2.ProviderHost, err error) { - result = &v2beta2.ProviderHost{} - err = c.client.Put(). - Namespace(c.ns). - Resource("providerhosts"). - Name(providerHost.Name). - VersionedParams(&opts, scheme.ParameterCodec). - Body(providerHost). - Do(ctx). - Into(result) - return -} - -// Delete takes name of the providerHost and deletes it. Returns an error if one occurs. -func (c *providerHosts) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - return c.client.Delete(). - Namespace(c.ns). - Resource("providerhosts"). - Name(name). - Body(&opts). - Do(ctx). - Error() -} - -// DeleteCollection deletes a collection of objects. -func (c *providerHosts) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - var timeout time.Duration - if listOpts.TimeoutSeconds != nil { - timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second - } - return c.client.Delete(). - Namespace(c.ns). - Resource("providerhosts"). - VersionedParams(&listOpts, scheme.ParameterCodec). - Timeout(timeout). - Body(&opts). - Do(ctx). - Error() -} - -// Patch applies the patch and returns the patched providerHost. -func (c *providerHosts) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v2beta2.ProviderHost, err error) { - result = &v2beta2.ProviderHost{} - err = c.client.Patch(pt). - Namespace(c.ns). - Resource("providerhosts"). - Name(name). - SubResource(subresources...). - VersionedParams(&opts, scheme.ParameterCodec). - Body(data). - Do(ctx). - Into(result) - return -} diff --git a/pkg/client/clientset/versioned/typed/akash.network/v2beta2/providerleasedip.go b/pkg/client/clientset/versioned/typed/akash.network/v2beta2/providerleasedip.go index 0238a3110..4d42eaaa0 100644 --- a/pkg/client/clientset/versioned/typed/akash.network/v2beta2/providerleasedip.go +++ b/pkg/client/clientset/versioned/typed/akash.network/v2beta2/providerleasedip.go @@ -19,15 +19,15 @@ limitations under the License. package v2beta2 import ( - "context" - "time" + context "context" - v2beta2 "github.com/akash-network/provider/pkg/apis/akash.network/v2beta2" + akashnetworkv2beta2 "github.com/akash-network/provider/pkg/apis/akash.network/v2beta2" + applyconfigurationakashnetworkv2beta2 "github.com/akash-network/provider/pkg/client/applyconfiguration/akash.network/v2beta2" scheme "github.com/akash-network/provider/pkg/client/clientset/versioned/scheme" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" watch "k8s.io/apimachinery/pkg/watch" - rest "k8s.io/client-go/rest" + gentype "k8s.io/client-go/gentype" ) // ProviderLeasedIPsGetter has a method to return a ProviderLeasedIPInterface. @@ -38,141 +38,33 @@ type ProviderLeasedIPsGetter interface { // ProviderLeasedIPInterface has methods to work with ProviderLeasedIP resources. type ProviderLeasedIPInterface interface { - Create(ctx context.Context, providerLeasedIP *v2beta2.ProviderLeasedIP, opts v1.CreateOptions) (*v2beta2.ProviderLeasedIP, error) - Update(ctx context.Context, providerLeasedIP *v2beta2.ProviderLeasedIP, opts v1.UpdateOptions) (*v2beta2.ProviderLeasedIP, error) + Create(ctx context.Context, providerLeasedIP *akashnetworkv2beta2.ProviderLeasedIP, opts v1.CreateOptions) (*akashnetworkv2beta2.ProviderLeasedIP, error) + Update(ctx context.Context, providerLeasedIP *akashnetworkv2beta2.ProviderLeasedIP, opts v1.UpdateOptions) (*akashnetworkv2beta2.ProviderLeasedIP, error) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error - Get(ctx context.Context, name string, opts v1.GetOptions) (*v2beta2.ProviderLeasedIP, error) - List(ctx context.Context, opts v1.ListOptions) (*v2beta2.ProviderLeasedIPList, error) + Get(ctx context.Context, name string, opts v1.GetOptions) (*akashnetworkv2beta2.ProviderLeasedIP, error) + List(ctx context.Context, opts v1.ListOptions) (*akashnetworkv2beta2.ProviderLeasedIPList, error) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v2beta2.ProviderLeasedIP, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *akashnetworkv2beta2.ProviderLeasedIP, err error) + Apply(ctx context.Context, providerLeasedIP *applyconfigurationakashnetworkv2beta2.ProviderLeasedIPApplyConfiguration, opts v1.ApplyOptions) (result *akashnetworkv2beta2.ProviderLeasedIP, err error) ProviderLeasedIPExpansion } // providerLeasedIPs implements ProviderLeasedIPInterface type providerLeasedIPs struct { - client rest.Interface - ns string + *gentype.ClientWithListAndApply[*akashnetworkv2beta2.ProviderLeasedIP, *akashnetworkv2beta2.ProviderLeasedIPList, *applyconfigurationakashnetworkv2beta2.ProviderLeasedIPApplyConfiguration] } // newProviderLeasedIPs returns a ProviderLeasedIPs func newProviderLeasedIPs(c *AkashV2beta2Client, namespace string) *providerLeasedIPs { return &providerLeasedIPs{ - client: c.RESTClient(), - ns: namespace, + gentype.NewClientWithListAndApply[*akashnetworkv2beta2.ProviderLeasedIP, *akashnetworkv2beta2.ProviderLeasedIPList, *applyconfigurationakashnetworkv2beta2.ProviderLeasedIPApplyConfiguration]( + "providerleasedips", + c.RESTClient(), + scheme.ParameterCodec, + namespace, + func() *akashnetworkv2beta2.ProviderLeasedIP { return &akashnetworkv2beta2.ProviderLeasedIP{} }, + func() *akashnetworkv2beta2.ProviderLeasedIPList { return &akashnetworkv2beta2.ProviderLeasedIPList{} }, + ), } } - -// Get takes name of the providerLeasedIP, and returns the corresponding providerLeasedIP object, and an error if there is any. -func (c *providerLeasedIPs) Get(ctx context.Context, name string, options v1.GetOptions) (result *v2beta2.ProviderLeasedIP, err error) { - result = &v2beta2.ProviderLeasedIP{} - err = c.client.Get(). - Namespace(c.ns). - Resource("providerleasedips"). - Name(name). - VersionedParams(&options, scheme.ParameterCodec). - Do(ctx). - Into(result) - return -} - -// List takes label and field selectors, and returns the list of ProviderLeasedIPs that match those selectors. -func (c *providerLeasedIPs) List(ctx context.Context, opts v1.ListOptions) (result *v2beta2.ProviderLeasedIPList, err error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - result = &v2beta2.ProviderLeasedIPList{} - err = c.client.Get(). - Namespace(c.ns). - Resource("providerleasedips"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Do(ctx). - Into(result) - return -} - -// Watch returns a watch.Interface that watches the requested providerLeasedIPs. -func (c *providerLeasedIPs) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - opts.Watch = true - return c.client.Get(). - Namespace(c.ns). - Resource("providerleasedips"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Watch(ctx) -} - -// Create takes the representation of a providerLeasedIP and creates it. Returns the server's representation of the providerLeasedIP, and an error, if there is any. -func (c *providerLeasedIPs) Create(ctx context.Context, providerLeasedIP *v2beta2.ProviderLeasedIP, opts v1.CreateOptions) (result *v2beta2.ProviderLeasedIP, err error) { - result = &v2beta2.ProviderLeasedIP{} - err = c.client.Post(). - Namespace(c.ns). - Resource("providerleasedips"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(providerLeasedIP). - Do(ctx). - Into(result) - return -} - -// Update takes the representation of a providerLeasedIP and updates it. Returns the server's representation of the providerLeasedIP, and an error, if there is any. -func (c *providerLeasedIPs) Update(ctx context.Context, providerLeasedIP *v2beta2.ProviderLeasedIP, opts v1.UpdateOptions) (result *v2beta2.ProviderLeasedIP, err error) { - result = &v2beta2.ProviderLeasedIP{} - err = c.client.Put(). - Namespace(c.ns). - Resource("providerleasedips"). - Name(providerLeasedIP.Name). - VersionedParams(&opts, scheme.ParameterCodec). - Body(providerLeasedIP). - Do(ctx). - Into(result) - return -} - -// Delete takes name of the providerLeasedIP and deletes it. Returns an error if one occurs. -func (c *providerLeasedIPs) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - return c.client.Delete(). - Namespace(c.ns). - Resource("providerleasedips"). - Name(name). - Body(&opts). - Do(ctx). - Error() -} - -// DeleteCollection deletes a collection of objects. -func (c *providerLeasedIPs) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - var timeout time.Duration - if listOpts.TimeoutSeconds != nil { - timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second - } - return c.client.Delete(). - Namespace(c.ns). - Resource("providerleasedips"). - VersionedParams(&listOpts, scheme.ParameterCodec). - Timeout(timeout). - Body(&opts). - Do(ctx). - Error() -} - -// Patch applies the patch and returns the patched providerLeasedIP. -func (c *providerLeasedIPs) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v2beta2.ProviderLeasedIP, err error) { - result = &v2beta2.ProviderLeasedIP{} - err = c.client.Patch(pt). - Namespace(c.ns). - Resource("providerleasedips"). - Name(name). - SubResource(subresources...). - VersionedParams(&opts, scheme.ParameterCodec). - Body(data). - Do(ctx). - Into(result) - return -} diff --git a/pkg/client/informers/externalversions/akash.network/v2beta1/inventory.go b/pkg/client/informers/externalversions/akash.network/v2beta1/inventory.go index 5429cdba0..6613634ab 100644 --- a/pkg/client/informers/externalversions/akash.network/v2beta1/inventory.go +++ b/pkg/client/informers/externalversions/akash.network/v2beta1/inventory.go @@ -19,13 +19,13 @@ limitations under the License. package v2beta1 import ( - "context" + context "context" time "time" - akashnetworkv2beta1 "github.com/akash-network/provider/pkg/apis/akash.network/v2beta1" + apisakashnetworkv2beta1 "github.com/akash-network/provider/pkg/apis/akash.network/v2beta1" versioned "github.com/akash-network/provider/pkg/client/clientset/versioned" internalinterfaces "github.com/akash-network/provider/pkg/client/informers/externalversions/internalinterfaces" - v2beta1 "github.com/akash-network/provider/pkg/client/listers/akash.network/v2beta1" + akashnetworkv2beta1 "github.com/akash-network/provider/pkg/client/listers/akash.network/v2beta1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" @@ -36,7 +36,7 @@ import ( // Inventories. type InventoryInformer interface { Informer() cache.SharedIndexInformer - Lister() v2beta1.InventoryLister + Lister() akashnetworkv2beta1.InventoryLister } type inventoryInformer struct { @@ -70,7 +70,7 @@ func NewFilteredInventoryInformer(client versioned.Interface, resyncPeriod time. return client.AkashV2beta1().Inventories().Watch(context.TODO(), options) }, }, - &akashnetworkv2beta1.Inventory{}, + &apisakashnetworkv2beta1.Inventory{}, resyncPeriod, indexers, ) @@ -81,9 +81,9 @@ func (f *inventoryInformer) defaultInformer(client versioned.Interface, resyncPe } func (f *inventoryInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&akashnetworkv2beta1.Inventory{}, f.defaultInformer) + return f.factory.InformerFor(&apisakashnetworkv2beta1.Inventory{}, f.defaultInformer) } -func (f *inventoryInformer) Lister() v2beta1.InventoryLister { - return v2beta1.NewInventoryLister(f.Informer().GetIndexer()) +func (f *inventoryInformer) Lister() akashnetworkv2beta1.InventoryLister { + return akashnetworkv2beta1.NewInventoryLister(f.Informer().GetIndexer()) } diff --git a/pkg/client/informers/externalversions/akash.network/v2beta1/inventoryrequest.go b/pkg/client/informers/externalversions/akash.network/v2beta1/inventoryrequest.go index e48bec62c..f6d2c6d89 100644 --- a/pkg/client/informers/externalversions/akash.network/v2beta1/inventoryrequest.go +++ b/pkg/client/informers/externalversions/akash.network/v2beta1/inventoryrequest.go @@ -19,13 +19,13 @@ limitations under the License. package v2beta1 import ( - "context" + context "context" time "time" - akashnetworkv2beta1 "github.com/akash-network/provider/pkg/apis/akash.network/v2beta1" + apisakashnetworkv2beta1 "github.com/akash-network/provider/pkg/apis/akash.network/v2beta1" versioned "github.com/akash-network/provider/pkg/client/clientset/versioned" internalinterfaces "github.com/akash-network/provider/pkg/client/informers/externalversions/internalinterfaces" - v2beta1 "github.com/akash-network/provider/pkg/client/listers/akash.network/v2beta1" + akashnetworkv2beta1 "github.com/akash-network/provider/pkg/client/listers/akash.network/v2beta1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" @@ -36,7 +36,7 @@ import ( // InventoryRequests. type InventoryRequestInformer interface { Informer() cache.SharedIndexInformer - Lister() v2beta1.InventoryRequestLister + Lister() akashnetworkv2beta1.InventoryRequestLister } type inventoryRequestInformer struct { @@ -70,7 +70,7 @@ func NewFilteredInventoryRequestInformer(client versioned.Interface, resyncPerio return client.AkashV2beta1().InventoryRequests().Watch(context.TODO(), options) }, }, - &akashnetworkv2beta1.InventoryRequest{}, + &apisakashnetworkv2beta1.InventoryRequest{}, resyncPeriod, indexers, ) @@ -81,9 +81,9 @@ func (f *inventoryRequestInformer) defaultInformer(client versioned.Interface, r } func (f *inventoryRequestInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&akashnetworkv2beta1.InventoryRequest{}, f.defaultInformer) + return f.factory.InformerFor(&apisakashnetworkv2beta1.InventoryRequest{}, f.defaultInformer) } -func (f *inventoryRequestInformer) Lister() v2beta1.InventoryRequestLister { - return v2beta1.NewInventoryRequestLister(f.Informer().GetIndexer()) +func (f *inventoryRequestInformer) Lister() akashnetworkv2beta1.InventoryRequestLister { + return akashnetworkv2beta1.NewInventoryRequestLister(f.Informer().GetIndexer()) } diff --git a/pkg/client/informers/externalversions/akash.network/v2beta1/manifest.go b/pkg/client/informers/externalversions/akash.network/v2beta1/manifest.go index 535712b25..00cabafef 100644 --- a/pkg/client/informers/externalversions/akash.network/v2beta1/manifest.go +++ b/pkg/client/informers/externalversions/akash.network/v2beta1/manifest.go @@ -19,13 +19,13 @@ limitations under the License. package v2beta1 import ( - "context" + context "context" time "time" - akashnetworkv2beta1 "github.com/akash-network/provider/pkg/apis/akash.network/v2beta1" + apisakashnetworkv2beta1 "github.com/akash-network/provider/pkg/apis/akash.network/v2beta1" versioned "github.com/akash-network/provider/pkg/client/clientset/versioned" internalinterfaces "github.com/akash-network/provider/pkg/client/informers/externalversions/internalinterfaces" - v2beta1 "github.com/akash-network/provider/pkg/client/listers/akash.network/v2beta1" + akashnetworkv2beta1 "github.com/akash-network/provider/pkg/client/listers/akash.network/v2beta1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" @@ -36,7 +36,7 @@ import ( // Manifests. type ManifestInformer interface { Informer() cache.SharedIndexInformer - Lister() v2beta1.ManifestLister + Lister() akashnetworkv2beta1.ManifestLister } type manifestInformer struct { @@ -71,7 +71,7 @@ func NewFilteredManifestInformer(client versioned.Interface, namespace string, r return client.AkashV2beta1().Manifests(namespace).Watch(context.TODO(), options) }, }, - &akashnetworkv2beta1.Manifest{}, + &apisakashnetworkv2beta1.Manifest{}, resyncPeriod, indexers, ) @@ -82,9 +82,9 @@ func (f *manifestInformer) defaultInformer(client versioned.Interface, resyncPer } func (f *manifestInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&akashnetworkv2beta1.Manifest{}, f.defaultInformer) + return f.factory.InformerFor(&apisakashnetworkv2beta1.Manifest{}, f.defaultInformer) } -func (f *manifestInformer) Lister() v2beta1.ManifestLister { - return v2beta1.NewManifestLister(f.Informer().GetIndexer()) +func (f *manifestInformer) Lister() akashnetworkv2beta1.ManifestLister { + return akashnetworkv2beta1.NewManifestLister(f.Informer().GetIndexer()) } diff --git a/pkg/client/informers/externalversions/akash.network/v2beta1/providerhost.go b/pkg/client/informers/externalversions/akash.network/v2beta1/providerhost.go index 19472e92a..122b4cc3d 100644 --- a/pkg/client/informers/externalversions/akash.network/v2beta1/providerhost.go +++ b/pkg/client/informers/externalversions/akash.network/v2beta1/providerhost.go @@ -19,13 +19,13 @@ limitations under the License. package v2beta1 import ( - "context" + context "context" time "time" - akashnetworkv2beta1 "github.com/akash-network/provider/pkg/apis/akash.network/v2beta1" + apisakashnetworkv2beta1 "github.com/akash-network/provider/pkg/apis/akash.network/v2beta1" versioned "github.com/akash-network/provider/pkg/client/clientset/versioned" internalinterfaces "github.com/akash-network/provider/pkg/client/informers/externalversions/internalinterfaces" - v2beta1 "github.com/akash-network/provider/pkg/client/listers/akash.network/v2beta1" + akashnetworkv2beta1 "github.com/akash-network/provider/pkg/client/listers/akash.network/v2beta1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" @@ -36,7 +36,7 @@ import ( // ProviderHosts. type ProviderHostInformer interface { Informer() cache.SharedIndexInformer - Lister() v2beta1.ProviderHostLister + Lister() akashnetworkv2beta1.ProviderHostLister } type providerHostInformer struct { @@ -71,7 +71,7 @@ func NewFilteredProviderHostInformer(client versioned.Interface, namespace strin return client.AkashV2beta1().ProviderHosts(namespace).Watch(context.TODO(), options) }, }, - &akashnetworkv2beta1.ProviderHost{}, + &apisakashnetworkv2beta1.ProviderHost{}, resyncPeriod, indexers, ) @@ -82,9 +82,9 @@ func (f *providerHostInformer) defaultInformer(client versioned.Interface, resyn } func (f *providerHostInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&akashnetworkv2beta1.ProviderHost{}, f.defaultInformer) + return f.factory.InformerFor(&apisakashnetworkv2beta1.ProviderHost{}, f.defaultInformer) } -func (f *providerHostInformer) Lister() v2beta1.ProviderHostLister { - return v2beta1.NewProviderHostLister(f.Informer().GetIndexer()) +func (f *providerHostInformer) Lister() akashnetworkv2beta1.ProviderHostLister { + return akashnetworkv2beta1.NewProviderHostLister(f.Informer().GetIndexer()) } diff --git a/pkg/client/informers/externalversions/akash.network/v2beta1/providerleasedip.go b/pkg/client/informers/externalversions/akash.network/v2beta1/providerleasedip.go index 70819ccd8..3dda9c2d4 100644 --- a/pkg/client/informers/externalversions/akash.network/v2beta1/providerleasedip.go +++ b/pkg/client/informers/externalversions/akash.network/v2beta1/providerleasedip.go @@ -19,13 +19,13 @@ limitations under the License. package v2beta1 import ( - "context" + context "context" time "time" - akashnetworkv2beta1 "github.com/akash-network/provider/pkg/apis/akash.network/v2beta1" + apisakashnetworkv2beta1 "github.com/akash-network/provider/pkg/apis/akash.network/v2beta1" versioned "github.com/akash-network/provider/pkg/client/clientset/versioned" internalinterfaces "github.com/akash-network/provider/pkg/client/informers/externalversions/internalinterfaces" - v2beta1 "github.com/akash-network/provider/pkg/client/listers/akash.network/v2beta1" + akashnetworkv2beta1 "github.com/akash-network/provider/pkg/client/listers/akash.network/v2beta1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" @@ -36,7 +36,7 @@ import ( // ProviderLeasedIPs. type ProviderLeasedIPInformer interface { Informer() cache.SharedIndexInformer - Lister() v2beta1.ProviderLeasedIPLister + Lister() akashnetworkv2beta1.ProviderLeasedIPLister } type providerLeasedIPInformer struct { @@ -71,7 +71,7 @@ func NewFilteredProviderLeasedIPInformer(client versioned.Interface, namespace s return client.AkashV2beta1().ProviderLeasedIPs(namespace).Watch(context.TODO(), options) }, }, - &akashnetworkv2beta1.ProviderLeasedIP{}, + &apisakashnetworkv2beta1.ProviderLeasedIP{}, resyncPeriod, indexers, ) @@ -82,9 +82,9 @@ func (f *providerLeasedIPInformer) defaultInformer(client versioned.Interface, r } func (f *providerLeasedIPInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&akashnetworkv2beta1.ProviderLeasedIP{}, f.defaultInformer) + return f.factory.InformerFor(&apisakashnetworkv2beta1.ProviderLeasedIP{}, f.defaultInformer) } -func (f *providerLeasedIPInformer) Lister() v2beta1.ProviderLeasedIPLister { - return v2beta1.NewProviderLeasedIPLister(f.Informer().GetIndexer()) +func (f *providerLeasedIPInformer) Lister() akashnetworkv2beta1.ProviderLeasedIPLister { + return akashnetworkv2beta1.NewProviderLeasedIPLister(f.Informer().GetIndexer()) } diff --git a/pkg/client/informers/externalversions/akash.network/v2beta2/inventory.go b/pkg/client/informers/externalversions/akash.network/v2beta2/inventory.go index 2480c7cd3..32c7a8957 100644 --- a/pkg/client/informers/externalversions/akash.network/v2beta2/inventory.go +++ b/pkg/client/informers/externalversions/akash.network/v2beta2/inventory.go @@ -19,13 +19,13 @@ limitations under the License. package v2beta2 import ( - "context" + context "context" time "time" - akashnetworkv2beta2 "github.com/akash-network/provider/pkg/apis/akash.network/v2beta2" + apisakashnetworkv2beta2 "github.com/akash-network/provider/pkg/apis/akash.network/v2beta2" versioned "github.com/akash-network/provider/pkg/client/clientset/versioned" internalinterfaces "github.com/akash-network/provider/pkg/client/informers/externalversions/internalinterfaces" - v2beta2 "github.com/akash-network/provider/pkg/client/listers/akash.network/v2beta2" + akashnetworkv2beta2 "github.com/akash-network/provider/pkg/client/listers/akash.network/v2beta2" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" @@ -36,7 +36,7 @@ import ( // Inventories. type InventoryInformer interface { Informer() cache.SharedIndexInformer - Lister() v2beta2.InventoryLister + Lister() akashnetworkv2beta2.InventoryLister } type inventoryInformer struct { @@ -70,7 +70,7 @@ func NewFilteredInventoryInformer(client versioned.Interface, resyncPeriod time. return client.AkashV2beta2().Inventories().Watch(context.TODO(), options) }, }, - &akashnetworkv2beta2.Inventory{}, + &apisakashnetworkv2beta2.Inventory{}, resyncPeriod, indexers, ) @@ -81,9 +81,9 @@ func (f *inventoryInformer) defaultInformer(client versioned.Interface, resyncPe } func (f *inventoryInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&akashnetworkv2beta2.Inventory{}, f.defaultInformer) + return f.factory.InformerFor(&apisakashnetworkv2beta2.Inventory{}, f.defaultInformer) } -func (f *inventoryInformer) Lister() v2beta2.InventoryLister { - return v2beta2.NewInventoryLister(f.Informer().GetIndexer()) +func (f *inventoryInformer) Lister() akashnetworkv2beta2.InventoryLister { + return akashnetworkv2beta2.NewInventoryLister(f.Informer().GetIndexer()) } diff --git a/pkg/client/informers/externalversions/akash.network/v2beta2/inventoryrequest.go b/pkg/client/informers/externalversions/akash.network/v2beta2/inventoryrequest.go index 1c41c0b0c..aafb86113 100644 --- a/pkg/client/informers/externalversions/akash.network/v2beta2/inventoryrequest.go +++ b/pkg/client/informers/externalversions/akash.network/v2beta2/inventoryrequest.go @@ -19,13 +19,13 @@ limitations under the License. package v2beta2 import ( - "context" + context "context" time "time" - akashnetworkv2beta2 "github.com/akash-network/provider/pkg/apis/akash.network/v2beta2" + apisakashnetworkv2beta2 "github.com/akash-network/provider/pkg/apis/akash.network/v2beta2" versioned "github.com/akash-network/provider/pkg/client/clientset/versioned" internalinterfaces "github.com/akash-network/provider/pkg/client/informers/externalversions/internalinterfaces" - v2beta2 "github.com/akash-network/provider/pkg/client/listers/akash.network/v2beta2" + akashnetworkv2beta2 "github.com/akash-network/provider/pkg/client/listers/akash.network/v2beta2" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" @@ -36,7 +36,7 @@ import ( // InventoryRequests. type InventoryRequestInformer interface { Informer() cache.SharedIndexInformer - Lister() v2beta2.InventoryRequestLister + Lister() akashnetworkv2beta2.InventoryRequestLister } type inventoryRequestInformer struct { @@ -70,7 +70,7 @@ func NewFilteredInventoryRequestInformer(client versioned.Interface, resyncPerio return client.AkashV2beta2().InventoryRequests().Watch(context.TODO(), options) }, }, - &akashnetworkv2beta2.InventoryRequest{}, + &apisakashnetworkv2beta2.InventoryRequest{}, resyncPeriod, indexers, ) @@ -81,9 +81,9 @@ func (f *inventoryRequestInformer) defaultInformer(client versioned.Interface, r } func (f *inventoryRequestInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&akashnetworkv2beta2.InventoryRequest{}, f.defaultInformer) + return f.factory.InformerFor(&apisakashnetworkv2beta2.InventoryRequest{}, f.defaultInformer) } -func (f *inventoryRequestInformer) Lister() v2beta2.InventoryRequestLister { - return v2beta2.NewInventoryRequestLister(f.Informer().GetIndexer()) +func (f *inventoryRequestInformer) Lister() akashnetworkv2beta2.InventoryRequestLister { + return akashnetworkv2beta2.NewInventoryRequestLister(f.Informer().GetIndexer()) } diff --git a/pkg/client/informers/externalversions/akash.network/v2beta2/manifest.go b/pkg/client/informers/externalversions/akash.network/v2beta2/manifest.go index 664ea0e4e..cb87c7620 100644 --- a/pkg/client/informers/externalversions/akash.network/v2beta2/manifest.go +++ b/pkg/client/informers/externalversions/akash.network/v2beta2/manifest.go @@ -19,13 +19,13 @@ limitations under the License. package v2beta2 import ( - "context" + context "context" time "time" - akashnetworkv2beta2 "github.com/akash-network/provider/pkg/apis/akash.network/v2beta2" + apisakashnetworkv2beta2 "github.com/akash-network/provider/pkg/apis/akash.network/v2beta2" versioned "github.com/akash-network/provider/pkg/client/clientset/versioned" internalinterfaces "github.com/akash-network/provider/pkg/client/informers/externalversions/internalinterfaces" - v2beta2 "github.com/akash-network/provider/pkg/client/listers/akash.network/v2beta2" + akashnetworkv2beta2 "github.com/akash-network/provider/pkg/client/listers/akash.network/v2beta2" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" @@ -36,7 +36,7 @@ import ( // Manifests. type ManifestInformer interface { Informer() cache.SharedIndexInformer - Lister() v2beta2.ManifestLister + Lister() akashnetworkv2beta2.ManifestLister } type manifestInformer struct { @@ -71,7 +71,7 @@ func NewFilteredManifestInformer(client versioned.Interface, namespace string, r return client.AkashV2beta2().Manifests(namespace).Watch(context.TODO(), options) }, }, - &akashnetworkv2beta2.Manifest{}, + &apisakashnetworkv2beta2.Manifest{}, resyncPeriod, indexers, ) @@ -82,9 +82,9 @@ func (f *manifestInformer) defaultInformer(client versioned.Interface, resyncPer } func (f *manifestInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&akashnetworkv2beta2.Manifest{}, f.defaultInformer) + return f.factory.InformerFor(&apisakashnetworkv2beta2.Manifest{}, f.defaultInformer) } -func (f *manifestInformer) Lister() v2beta2.ManifestLister { - return v2beta2.NewManifestLister(f.Informer().GetIndexer()) +func (f *manifestInformer) Lister() akashnetworkv2beta2.ManifestLister { + return akashnetworkv2beta2.NewManifestLister(f.Informer().GetIndexer()) } diff --git a/pkg/client/informers/externalversions/akash.network/v2beta2/providerhost.go b/pkg/client/informers/externalversions/akash.network/v2beta2/providerhost.go index c363b3f8e..15e3c02c5 100644 --- a/pkg/client/informers/externalversions/akash.network/v2beta2/providerhost.go +++ b/pkg/client/informers/externalversions/akash.network/v2beta2/providerhost.go @@ -19,13 +19,13 @@ limitations under the License. package v2beta2 import ( - "context" + context "context" time "time" - akashnetworkv2beta2 "github.com/akash-network/provider/pkg/apis/akash.network/v2beta2" + apisakashnetworkv2beta2 "github.com/akash-network/provider/pkg/apis/akash.network/v2beta2" versioned "github.com/akash-network/provider/pkg/client/clientset/versioned" internalinterfaces "github.com/akash-network/provider/pkg/client/informers/externalversions/internalinterfaces" - v2beta2 "github.com/akash-network/provider/pkg/client/listers/akash.network/v2beta2" + akashnetworkv2beta2 "github.com/akash-network/provider/pkg/client/listers/akash.network/v2beta2" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" @@ -36,7 +36,7 @@ import ( // ProviderHosts. type ProviderHostInformer interface { Informer() cache.SharedIndexInformer - Lister() v2beta2.ProviderHostLister + Lister() akashnetworkv2beta2.ProviderHostLister } type providerHostInformer struct { @@ -71,7 +71,7 @@ func NewFilteredProviderHostInformer(client versioned.Interface, namespace strin return client.AkashV2beta2().ProviderHosts(namespace).Watch(context.TODO(), options) }, }, - &akashnetworkv2beta2.ProviderHost{}, + &apisakashnetworkv2beta2.ProviderHost{}, resyncPeriod, indexers, ) @@ -82,9 +82,9 @@ func (f *providerHostInformer) defaultInformer(client versioned.Interface, resyn } func (f *providerHostInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&akashnetworkv2beta2.ProviderHost{}, f.defaultInformer) + return f.factory.InformerFor(&apisakashnetworkv2beta2.ProviderHost{}, f.defaultInformer) } -func (f *providerHostInformer) Lister() v2beta2.ProviderHostLister { - return v2beta2.NewProviderHostLister(f.Informer().GetIndexer()) +func (f *providerHostInformer) Lister() akashnetworkv2beta2.ProviderHostLister { + return akashnetworkv2beta2.NewProviderHostLister(f.Informer().GetIndexer()) } diff --git a/pkg/client/informers/externalversions/akash.network/v2beta2/providerleasedip.go b/pkg/client/informers/externalversions/akash.network/v2beta2/providerleasedip.go index 8c4a214fc..57a6b7f9e 100644 --- a/pkg/client/informers/externalversions/akash.network/v2beta2/providerleasedip.go +++ b/pkg/client/informers/externalversions/akash.network/v2beta2/providerleasedip.go @@ -19,13 +19,13 @@ limitations under the License. package v2beta2 import ( - "context" + context "context" time "time" - akashnetworkv2beta2 "github.com/akash-network/provider/pkg/apis/akash.network/v2beta2" + apisakashnetworkv2beta2 "github.com/akash-network/provider/pkg/apis/akash.network/v2beta2" versioned "github.com/akash-network/provider/pkg/client/clientset/versioned" internalinterfaces "github.com/akash-network/provider/pkg/client/informers/externalversions/internalinterfaces" - v2beta2 "github.com/akash-network/provider/pkg/client/listers/akash.network/v2beta2" + akashnetworkv2beta2 "github.com/akash-network/provider/pkg/client/listers/akash.network/v2beta2" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" @@ -36,7 +36,7 @@ import ( // ProviderLeasedIPs. type ProviderLeasedIPInformer interface { Informer() cache.SharedIndexInformer - Lister() v2beta2.ProviderLeasedIPLister + Lister() akashnetworkv2beta2.ProviderLeasedIPLister } type providerLeasedIPInformer struct { @@ -71,7 +71,7 @@ func NewFilteredProviderLeasedIPInformer(client versioned.Interface, namespace s return client.AkashV2beta2().ProviderLeasedIPs(namespace).Watch(context.TODO(), options) }, }, - &akashnetworkv2beta2.ProviderLeasedIP{}, + &apisakashnetworkv2beta2.ProviderLeasedIP{}, resyncPeriod, indexers, ) @@ -82,9 +82,9 @@ func (f *providerLeasedIPInformer) defaultInformer(client versioned.Interface, r } func (f *providerLeasedIPInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&akashnetworkv2beta2.ProviderLeasedIP{}, f.defaultInformer) + return f.factory.InformerFor(&apisakashnetworkv2beta2.ProviderLeasedIP{}, f.defaultInformer) } -func (f *providerLeasedIPInformer) Lister() v2beta2.ProviderLeasedIPLister { - return v2beta2.NewProviderLeasedIPLister(f.Informer().GetIndexer()) +func (f *providerLeasedIPInformer) Lister() akashnetworkv2beta2.ProviderLeasedIPLister { + return akashnetworkv2beta2.NewProviderLeasedIPLister(f.Informer().GetIndexer()) } diff --git a/pkg/client/informers/externalversions/factory.go b/pkg/client/informers/externalversions/factory.go index 437b58c2a..b99be8d16 100644 --- a/pkg/client/informers/externalversions/factory.go +++ b/pkg/client/informers/externalversions/factory.go @@ -42,6 +42,7 @@ type sharedInformerFactory struct { lock sync.Mutex defaultResync time.Duration customResync map[reflect.Type]time.Duration + transform cache.TransformFunc informers map[reflect.Type]cache.SharedIndexInformer // startedInformers is used for tracking which informers have been started. @@ -80,6 +81,14 @@ func WithNamespace(namespace string) SharedInformerOption { } } +// WithTransform sets a transform on all informers. +func WithTransform(transform cache.TransformFunc) SharedInformerOption { + return func(factory *sharedInformerFactory) *sharedInformerFactory { + factory.transform = transform + return factory + } +} + // NewSharedInformerFactory constructs a new instance of sharedInformerFactory for all namespaces. func NewSharedInformerFactory(client versioned.Interface, defaultResync time.Duration) SharedInformerFactory { return NewSharedInformerFactoryWithOptions(client, defaultResync) @@ -166,7 +175,7 @@ func (f *sharedInformerFactory) WaitForCacheSync(stopCh <-chan struct{}) map[ref return res } -// InternalInformerFor returns the SharedIndexInformer for obj using an internal +// InformerFor returns the SharedIndexInformer for obj using an internal // client. func (f *sharedInformerFactory) InformerFor(obj runtime.Object, newFunc internalinterfaces.NewInformerFunc) cache.SharedIndexInformer { f.lock.Lock() @@ -184,6 +193,7 @@ func (f *sharedInformerFactory) InformerFor(obj runtime.Object, newFunc internal } informer = newFunc(f.client, resyncPeriod) + informer.SetTransform(f.transform) f.informers[informerType] = informer return informer @@ -218,6 +228,7 @@ type SharedInformerFactory interface { // Start initializes all requested informers. They are handled in goroutines // which run until the stop channel gets closed. + // Warning: Start does not block. When run in a go-routine, it will race with a later WaitForCacheSync. Start(stopCh <-chan struct{}) // Shutdown marks a factory as shutting down. At that point no new @@ -239,7 +250,7 @@ type SharedInformerFactory interface { // ForResource gives generic access to a shared informer of the matching type. ForResource(resource schema.GroupVersionResource) (GenericInformer, error) - // InternalInformerFor returns the SharedIndexInformer for obj using an internal + // InformerFor returns the SharedIndexInformer for obj using an internal // client. InformerFor(obj runtime.Object, newFunc internalinterfaces.NewInformerFunc) cache.SharedIndexInformer diff --git a/pkg/client/informers/externalversions/generic.go b/pkg/client/informers/externalversions/generic.go index 00ef08a71..95eafb9db 100644 --- a/pkg/client/informers/externalversions/generic.go +++ b/pkg/client/informers/externalversions/generic.go @@ -19,7 +19,7 @@ limitations under the License. package externalversions import ( - "fmt" + fmt "fmt" v2beta1 "github.com/akash-network/provider/pkg/apis/akash.network/v2beta1" v2beta2 "github.com/akash-network/provider/pkg/apis/akash.network/v2beta2" diff --git a/pkg/client/listers/akash.network/v2beta1/inventory.go b/pkg/client/listers/akash.network/v2beta1/inventory.go index 9d994c120..574bc827e 100644 --- a/pkg/client/listers/akash.network/v2beta1/inventory.go +++ b/pkg/client/listers/akash.network/v2beta1/inventory.go @@ -19,10 +19,10 @@ limitations under the License. package v2beta1 import ( - v2beta1 "github.com/akash-network/provider/pkg/apis/akash.network/v2beta1" - "k8s.io/apimachinery/pkg/api/errors" - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/tools/cache" + akashnetworkv2beta1 "github.com/akash-network/provider/pkg/apis/akash.network/v2beta1" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" ) // InventoryLister helps list Inventories. @@ -30,39 +30,19 @@ import ( type InventoryLister interface { // List lists all Inventories in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v2beta1.Inventory, err error) + List(selector labels.Selector) (ret []*akashnetworkv2beta1.Inventory, err error) // Get retrieves the Inventory from the index for a given name. // Objects returned here must be treated as read-only. - Get(name string) (*v2beta1.Inventory, error) + Get(name string) (*akashnetworkv2beta1.Inventory, error) InventoryListerExpansion } // inventoryLister implements the InventoryLister interface. type inventoryLister struct { - indexer cache.Indexer + listers.ResourceIndexer[*akashnetworkv2beta1.Inventory] } // NewInventoryLister returns a new InventoryLister. func NewInventoryLister(indexer cache.Indexer) InventoryLister { - return &inventoryLister{indexer: indexer} -} - -// List lists all Inventories in the indexer. -func (s *inventoryLister) List(selector labels.Selector) (ret []*v2beta1.Inventory, err error) { - err = cache.ListAll(s.indexer, selector, func(m interface{}) { - ret = append(ret, m.(*v2beta1.Inventory)) - }) - return ret, err -} - -// Get retrieves the Inventory from the index for a given name. -func (s *inventoryLister) Get(name string) (*v2beta1.Inventory, error) { - obj, exists, err := s.indexer.GetByKey(name) - if err != nil { - return nil, err - } - if !exists { - return nil, errors.NewNotFound(v2beta1.Resource("inventory"), name) - } - return obj.(*v2beta1.Inventory), nil + return &inventoryLister{listers.New[*akashnetworkv2beta1.Inventory](indexer, akashnetworkv2beta1.Resource("inventory"))} } diff --git a/pkg/client/listers/akash.network/v2beta1/inventoryrequest.go b/pkg/client/listers/akash.network/v2beta1/inventoryrequest.go index 6dee555b2..e483252f9 100644 --- a/pkg/client/listers/akash.network/v2beta1/inventoryrequest.go +++ b/pkg/client/listers/akash.network/v2beta1/inventoryrequest.go @@ -19,10 +19,10 @@ limitations under the License. package v2beta1 import ( - v2beta1 "github.com/akash-network/provider/pkg/apis/akash.network/v2beta1" - "k8s.io/apimachinery/pkg/api/errors" - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/tools/cache" + akashnetworkv2beta1 "github.com/akash-network/provider/pkg/apis/akash.network/v2beta1" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" ) // InventoryRequestLister helps list InventoryRequests. @@ -30,39 +30,19 @@ import ( type InventoryRequestLister interface { // List lists all InventoryRequests in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v2beta1.InventoryRequest, err error) + List(selector labels.Selector) (ret []*akashnetworkv2beta1.InventoryRequest, err error) // Get retrieves the InventoryRequest from the index for a given name. // Objects returned here must be treated as read-only. - Get(name string) (*v2beta1.InventoryRequest, error) + Get(name string) (*akashnetworkv2beta1.InventoryRequest, error) InventoryRequestListerExpansion } // inventoryRequestLister implements the InventoryRequestLister interface. type inventoryRequestLister struct { - indexer cache.Indexer + listers.ResourceIndexer[*akashnetworkv2beta1.InventoryRequest] } // NewInventoryRequestLister returns a new InventoryRequestLister. func NewInventoryRequestLister(indexer cache.Indexer) InventoryRequestLister { - return &inventoryRequestLister{indexer: indexer} -} - -// List lists all InventoryRequests in the indexer. -func (s *inventoryRequestLister) List(selector labels.Selector) (ret []*v2beta1.InventoryRequest, err error) { - err = cache.ListAll(s.indexer, selector, func(m interface{}) { - ret = append(ret, m.(*v2beta1.InventoryRequest)) - }) - return ret, err -} - -// Get retrieves the InventoryRequest from the index for a given name. -func (s *inventoryRequestLister) Get(name string) (*v2beta1.InventoryRequest, error) { - obj, exists, err := s.indexer.GetByKey(name) - if err != nil { - return nil, err - } - if !exists { - return nil, errors.NewNotFound(v2beta1.Resource("inventoryrequest"), name) - } - return obj.(*v2beta1.InventoryRequest), nil + return &inventoryRequestLister{listers.New[*akashnetworkv2beta1.InventoryRequest](indexer, akashnetworkv2beta1.Resource("inventoryrequest"))} } diff --git a/pkg/client/listers/akash.network/v2beta1/manifest.go b/pkg/client/listers/akash.network/v2beta1/manifest.go index 4458fdacd..c4a10a499 100644 --- a/pkg/client/listers/akash.network/v2beta1/manifest.go +++ b/pkg/client/listers/akash.network/v2beta1/manifest.go @@ -19,10 +19,10 @@ limitations under the License. package v2beta1 import ( - v2beta1 "github.com/akash-network/provider/pkg/apis/akash.network/v2beta1" - "k8s.io/apimachinery/pkg/api/errors" - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/tools/cache" + akashnetworkv2beta1 "github.com/akash-network/provider/pkg/apis/akash.network/v2beta1" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" ) // ManifestLister helps list Manifests. @@ -30,7 +30,7 @@ import ( type ManifestLister interface { // List lists all Manifests in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v2beta1.Manifest, err error) + List(selector labels.Selector) (ret []*akashnetworkv2beta1.Manifest, err error) // Manifests returns an object that can list and get Manifests. Manifests(namespace string) ManifestNamespaceLister ManifestListerExpansion @@ -38,25 +38,17 @@ type ManifestLister interface { // manifestLister implements the ManifestLister interface. type manifestLister struct { - indexer cache.Indexer + listers.ResourceIndexer[*akashnetworkv2beta1.Manifest] } // NewManifestLister returns a new ManifestLister. func NewManifestLister(indexer cache.Indexer) ManifestLister { - return &manifestLister{indexer: indexer} -} - -// List lists all Manifests in the indexer. -func (s *manifestLister) List(selector labels.Selector) (ret []*v2beta1.Manifest, err error) { - err = cache.ListAll(s.indexer, selector, func(m interface{}) { - ret = append(ret, m.(*v2beta1.Manifest)) - }) - return ret, err + return &manifestLister{listers.New[*akashnetworkv2beta1.Manifest](indexer, akashnetworkv2beta1.Resource("manifest"))} } // Manifests returns an object that can list and get Manifests. func (s *manifestLister) Manifests(namespace string) ManifestNamespaceLister { - return manifestNamespaceLister{indexer: s.indexer, namespace: namespace} + return manifestNamespaceLister{listers.NewNamespaced[*akashnetworkv2beta1.Manifest](s.ResourceIndexer, namespace)} } // ManifestNamespaceLister helps list and get Manifests. @@ -64,36 +56,15 @@ func (s *manifestLister) Manifests(namespace string) ManifestNamespaceLister { type ManifestNamespaceLister interface { // List lists all Manifests in the indexer for a given namespace. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v2beta1.Manifest, err error) + List(selector labels.Selector) (ret []*akashnetworkv2beta1.Manifest, err error) // Get retrieves the Manifest from the indexer for a given namespace and name. // Objects returned here must be treated as read-only. - Get(name string) (*v2beta1.Manifest, error) + Get(name string) (*akashnetworkv2beta1.Manifest, error) ManifestNamespaceListerExpansion } // manifestNamespaceLister implements the ManifestNamespaceLister // interface. type manifestNamespaceLister struct { - indexer cache.Indexer - namespace string -} - -// List lists all Manifests in the indexer for a given namespace. -func (s manifestNamespaceLister) List(selector labels.Selector) (ret []*v2beta1.Manifest, err error) { - err = cache.ListAllByNamespace(s.indexer, s.namespace, selector, func(m interface{}) { - ret = append(ret, m.(*v2beta1.Manifest)) - }) - return ret, err -} - -// Get retrieves the Manifest from the indexer for a given namespace and name. -func (s manifestNamespaceLister) Get(name string) (*v2beta1.Manifest, error) { - obj, exists, err := s.indexer.GetByKey(s.namespace + "/" + name) - if err != nil { - return nil, err - } - if !exists { - return nil, errors.NewNotFound(v2beta1.Resource("manifest"), name) - } - return obj.(*v2beta1.Manifest), nil + listers.ResourceIndexer[*akashnetworkv2beta1.Manifest] } diff --git a/pkg/client/listers/akash.network/v2beta1/providerhost.go b/pkg/client/listers/akash.network/v2beta1/providerhost.go index 337026696..e455ad7d0 100644 --- a/pkg/client/listers/akash.network/v2beta1/providerhost.go +++ b/pkg/client/listers/akash.network/v2beta1/providerhost.go @@ -19,10 +19,10 @@ limitations under the License. package v2beta1 import ( - v2beta1 "github.com/akash-network/provider/pkg/apis/akash.network/v2beta1" - "k8s.io/apimachinery/pkg/api/errors" - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/tools/cache" + akashnetworkv2beta1 "github.com/akash-network/provider/pkg/apis/akash.network/v2beta1" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" ) // ProviderHostLister helps list ProviderHosts. @@ -30,7 +30,7 @@ import ( type ProviderHostLister interface { // List lists all ProviderHosts in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v2beta1.ProviderHost, err error) + List(selector labels.Selector) (ret []*akashnetworkv2beta1.ProviderHost, err error) // ProviderHosts returns an object that can list and get ProviderHosts. ProviderHosts(namespace string) ProviderHostNamespaceLister ProviderHostListerExpansion @@ -38,25 +38,17 @@ type ProviderHostLister interface { // providerHostLister implements the ProviderHostLister interface. type providerHostLister struct { - indexer cache.Indexer + listers.ResourceIndexer[*akashnetworkv2beta1.ProviderHost] } // NewProviderHostLister returns a new ProviderHostLister. func NewProviderHostLister(indexer cache.Indexer) ProviderHostLister { - return &providerHostLister{indexer: indexer} -} - -// List lists all ProviderHosts in the indexer. -func (s *providerHostLister) List(selector labels.Selector) (ret []*v2beta1.ProviderHost, err error) { - err = cache.ListAll(s.indexer, selector, func(m interface{}) { - ret = append(ret, m.(*v2beta1.ProviderHost)) - }) - return ret, err + return &providerHostLister{listers.New[*akashnetworkv2beta1.ProviderHost](indexer, akashnetworkv2beta1.Resource("providerhost"))} } // ProviderHosts returns an object that can list and get ProviderHosts. func (s *providerHostLister) ProviderHosts(namespace string) ProviderHostNamespaceLister { - return providerHostNamespaceLister{indexer: s.indexer, namespace: namespace} + return providerHostNamespaceLister{listers.NewNamespaced[*akashnetworkv2beta1.ProviderHost](s.ResourceIndexer, namespace)} } // ProviderHostNamespaceLister helps list and get ProviderHosts. @@ -64,36 +56,15 @@ func (s *providerHostLister) ProviderHosts(namespace string) ProviderHostNamespa type ProviderHostNamespaceLister interface { // List lists all ProviderHosts in the indexer for a given namespace. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v2beta1.ProviderHost, err error) + List(selector labels.Selector) (ret []*akashnetworkv2beta1.ProviderHost, err error) // Get retrieves the ProviderHost from the indexer for a given namespace and name. // Objects returned here must be treated as read-only. - Get(name string) (*v2beta1.ProviderHost, error) + Get(name string) (*akashnetworkv2beta1.ProviderHost, error) ProviderHostNamespaceListerExpansion } // providerHostNamespaceLister implements the ProviderHostNamespaceLister // interface. type providerHostNamespaceLister struct { - indexer cache.Indexer - namespace string -} - -// List lists all ProviderHosts in the indexer for a given namespace. -func (s providerHostNamespaceLister) List(selector labels.Selector) (ret []*v2beta1.ProviderHost, err error) { - err = cache.ListAllByNamespace(s.indexer, s.namespace, selector, func(m interface{}) { - ret = append(ret, m.(*v2beta1.ProviderHost)) - }) - return ret, err -} - -// Get retrieves the ProviderHost from the indexer for a given namespace and name. -func (s providerHostNamespaceLister) Get(name string) (*v2beta1.ProviderHost, error) { - obj, exists, err := s.indexer.GetByKey(s.namespace + "/" + name) - if err != nil { - return nil, err - } - if !exists { - return nil, errors.NewNotFound(v2beta1.Resource("providerhost"), name) - } - return obj.(*v2beta1.ProviderHost), nil + listers.ResourceIndexer[*akashnetworkv2beta1.ProviderHost] } diff --git a/pkg/client/listers/akash.network/v2beta1/providerleasedip.go b/pkg/client/listers/akash.network/v2beta1/providerleasedip.go index 844cf8e90..0f26ce393 100644 --- a/pkg/client/listers/akash.network/v2beta1/providerleasedip.go +++ b/pkg/client/listers/akash.network/v2beta1/providerleasedip.go @@ -19,10 +19,10 @@ limitations under the License. package v2beta1 import ( - v2beta1 "github.com/akash-network/provider/pkg/apis/akash.network/v2beta1" - "k8s.io/apimachinery/pkg/api/errors" - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/tools/cache" + akashnetworkv2beta1 "github.com/akash-network/provider/pkg/apis/akash.network/v2beta1" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" ) // ProviderLeasedIPLister helps list ProviderLeasedIPs. @@ -30,7 +30,7 @@ import ( type ProviderLeasedIPLister interface { // List lists all ProviderLeasedIPs in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v2beta1.ProviderLeasedIP, err error) + List(selector labels.Selector) (ret []*akashnetworkv2beta1.ProviderLeasedIP, err error) // ProviderLeasedIPs returns an object that can list and get ProviderLeasedIPs. ProviderLeasedIPs(namespace string) ProviderLeasedIPNamespaceLister ProviderLeasedIPListerExpansion @@ -38,25 +38,17 @@ type ProviderLeasedIPLister interface { // providerLeasedIPLister implements the ProviderLeasedIPLister interface. type providerLeasedIPLister struct { - indexer cache.Indexer + listers.ResourceIndexer[*akashnetworkv2beta1.ProviderLeasedIP] } // NewProviderLeasedIPLister returns a new ProviderLeasedIPLister. func NewProviderLeasedIPLister(indexer cache.Indexer) ProviderLeasedIPLister { - return &providerLeasedIPLister{indexer: indexer} -} - -// List lists all ProviderLeasedIPs in the indexer. -func (s *providerLeasedIPLister) List(selector labels.Selector) (ret []*v2beta1.ProviderLeasedIP, err error) { - err = cache.ListAll(s.indexer, selector, func(m interface{}) { - ret = append(ret, m.(*v2beta1.ProviderLeasedIP)) - }) - return ret, err + return &providerLeasedIPLister{listers.New[*akashnetworkv2beta1.ProviderLeasedIP](indexer, akashnetworkv2beta1.Resource("providerleasedip"))} } // ProviderLeasedIPs returns an object that can list and get ProviderLeasedIPs. func (s *providerLeasedIPLister) ProviderLeasedIPs(namespace string) ProviderLeasedIPNamespaceLister { - return providerLeasedIPNamespaceLister{indexer: s.indexer, namespace: namespace} + return providerLeasedIPNamespaceLister{listers.NewNamespaced[*akashnetworkv2beta1.ProviderLeasedIP](s.ResourceIndexer, namespace)} } // ProviderLeasedIPNamespaceLister helps list and get ProviderLeasedIPs. @@ -64,36 +56,15 @@ func (s *providerLeasedIPLister) ProviderLeasedIPs(namespace string) ProviderLea type ProviderLeasedIPNamespaceLister interface { // List lists all ProviderLeasedIPs in the indexer for a given namespace. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v2beta1.ProviderLeasedIP, err error) + List(selector labels.Selector) (ret []*akashnetworkv2beta1.ProviderLeasedIP, err error) // Get retrieves the ProviderLeasedIP from the indexer for a given namespace and name. // Objects returned here must be treated as read-only. - Get(name string) (*v2beta1.ProviderLeasedIP, error) + Get(name string) (*akashnetworkv2beta1.ProviderLeasedIP, error) ProviderLeasedIPNamespaceListerExpansion } // providerLeasedIPNamespaceLister implements the ProviderLeasedIPNamespaceLister // interface. type providerLeasedIPNamespaceLister struct { - indexer cache.Indexer - namespace string -} - -// List lists all ProviderLeasedIPs in the indexer for a given namespace. -func (s providerLeasedIPNamespaceLister) List(selector labels.Selector) (ret []*v2beta1.ProviderLeasedIP, err error) { - err = cache.ListAllByNamespace(s.indexer, s.namespace, selector, func(m interface{}) { - ret = append(ret, m.(*v2beta1.ProviderLeasedIP)) - }) - return ret, err -} - -// Get retrieves the ProviderLeasedIP from the indexer for a given namespace and name. -func (s providerLeasedIPNamespaceLister) Get(name string) (*v2beta1.ProviderLeasedIP, error) { - obj, exists, err := s.indexer.GetByKey(s.namespace + "/" + name) - if err != nil { - return nil, err - } - if !exists { - return nil, errors.NewNotFound(v2beta1.Resource("providerleasedip"), name) - } - return obj.(*v2beta1.ProviderLeasedIP), nil + listers.ResourceIndexer[*akashnetworkv2beta1.ProviderLeasedIP] } diff --git a/pkg/client/listers/akash.network/v2beta2/inventory.go b/pkg/client/listers/akash.network/v2beta2/inventory.go index 5eb4db790..ad79596e2 100644 --- a/pkg/client/listers/akash.network/v2beta2/inventory.go +++ b/pkg/client/listers/akash.network/v2beta2/inventory.go @@ -19,10 +19,10 @@ limitations under the License. package v2beta2 import ( - v2beta2 "github.com/akash-network/provider/pkg/apis/akash.network/v2beta2" - "k8s.io/apimachinery/pkg/api/errors" - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/tools/cache" + akashnetworkv2beta2 "github.com/akash-network/provider/pkg/apis/akash.network/v2beta2" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" ) // InventoryLister helps list Inventories. @@ -30,39 +30,19 @@ import ( type InventoryLister interface { // List lists all Inventories in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v2beta2.Inventory, err error) + List(selector labels.Selector) (ret []*akashnetworkv2beta2.Inventory, err error) // Get retrieves the Inventory from the index for a given name. // Objects returned here must be treated as read-only. - Get(name string) (*v2beta2.Inventory, error) + Get(name string) (*akashnetworkv2beta2.Inventory, error) InventoryListerExpansion } // inventoryLister implements the InventoryLister interface. type inventoryLister struct { - indexer cache.Indexer + listers.ResourceIndexer[*akashnetworkv2beta2.Inventory] } // NewInventoryLister returns a new InventoryLister. func NewInventoryLister(indexer cache.Indexer) InventoryLister { - return &inventoryLister{indexer: indexer} -} - -// List lists all Inventories in the indexer. -func (s *inventoryLister) List(selector labels.Selector) (ret []*v2beta2.Inventory, err error) { - err = cache.ListAll(s.indexer, selector, func(m interface{}) { - ret = append(ret, m.(*v2beta2.Inventory)) - }) - return ret, err -} - -// Get retrieves the Inventory from the index for a given name. -func (s *inventoryLister) Get(name string) (*v2beta2.Inventory, error) { - obj, exists, err := s.indexer.GetByKey(name) - if err != nil { - return nil, err - } - if !exists { - return nil, errors.NewNotFound(v2beta2.Resource("inventory"), name) - } - return obj.(*v2beta2.Inventory), nil + return &inventoryLister{listers.New[*akashnetworkv2beta2.Inventory](indexer, akashnetworkv2beta2.Resource("inventory"))} } diff --git a/pkg/client/listers/akash.network/v2beta2/inventoryrequest.go b/pkg/client/listers/akash.network/v2beta2/inventoryrequest.go index 108bcec13..0c2e18a38 100644 --- a/pkg/client/listers/akash.network/v2beta2/inventoryrequest.go +++ b/pkg/client/listers/akash.network/v2beta2/inventoryrequest.go @@ -19,10 +19,10 @@ limitations under the License. package v2beta2 import ( - v2beta2 "github.com/akash-network/provider/pkg/apis/akash.network/v2beta2" - "k8s.io/apimachinery/pkg/api/errors" - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/tools/cache" + akashnetworkv2beta2 "github.com/akash-network/provider/pkg/apis/akash.network/v2beta2" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" ) // InventoryRequestLister helps list InventoryRequests. @@ -30,39 +30,19 @@ import ( type InventoryRequestLister interface { // List lists all InventoryRequests in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v2beta2.InventoryRequest, err error) + List(selector labels.Selector) (ret []*akashnetworkv2beta2.InventoryRequest, err error) // Get retrieves the InventoryRequest from the index for a given name. // Objects returned here must be treated as read-only. - Get(name string) (*v2beta2.InventoryRequest, error) + Get(name string) (*akashnetworkv2beta2.InventoryRequest, error) InventoryRequestListerExpansion } // inventoryRequestLister implements the InventoryRequestLister interface. type inventoryRequestLister struct { - indexer cache.Indexer + listers.ResourceIndexer[*akashnetworkv2beta2.InventoryRequest] } // NewInventoryRequestLister returns a new InventoryRequestLister. func NewInventoryRequestLister(indexer cache.Indexer) InventoryRequestLister { - return &inventoryRequestLister{indexer: indexer} -} - -// List lists all InventoryRequests in the indexer. -func (s *inventoryRequestLister) List(selector labels.Selector) (ret []*v2beta2.InventoryRequest, err error) { - err = cache.ListAll(s.indexer, selector, func(m interface{}) { - ret = append(ret, m.(*v2beta2.InventoryRequest)) - }) - return ret, err -} - -// Get retrieves the InventoryRequest from the index for a given name. -func (s *inventoryRequestLister) Get(name string) (*v2beta2.InventoryRequest, error) { - obj, exists, err := s.indexer.GetByKey(name) - if err != nil { - return nil, err - } - if !exists { - return nil, errors.NewNotFound(v2beta2.Resource("inventoryrequest"), name) - } - return obj.(*v2beta2.InventoryRequest), nil + return &inventoryRequestLister{listers.New[*akashnetworkv2beta2.InventoryRequest](indexer, akashnetworkv2beta2.Resource("inventoryrequest"))} } diff --git a/pkg/client/listers/akash.network/v2beta2/manifest.go b/pkg/client/listers/akash.network/v2beta2/manifest.go index ecbab3cdc..71f461b8b 100644 --- a/pkg/client/listers/akash.network/v2beta2/manifest.go +++ b/pkg/client/listers/akash.network/v2beta2/manifest.go @@ -19,10 +19,10 @@ limitations under the License. package v2beta2 import ( - v2beta2 "github.com/akash-network/provider/pkg/apis/akash.network/v2beta2" - "k8s.io/apimachinery/pkg/api/errors" - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/tools/cache" + akashnetworkv2beta2 "github.com/akash-network/provider/pkg/apis/akash.network/v2beta2" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" ) // ManifestLister helps list Manifests. @@ -30,7 +30,7 @@ import ( type ManifestLister interface { // List lists all Manifests in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v2beta2.Manifest, err error) + List(selector labels.Selector) (ret []*akashnetworkv2beta2.Manifest, err error) // Manifests returns an object that can list and get Manifests. Manifests(namespace string) ManifestNamespaceLister ManifestListerExpansion @@ -38,25 +38,17 @@ type ManifestLister interface { // manifestLister implements the ManifestLister interface. type manifestLister struct { - indexer cache.Indexer + listers.ResourceIndexer[*akashnetworkv2beta2.Manifest] } // NewManifestLister returns a new ManifestLister. func NewManifestLister(indexer cache.Indexer) ManifestLister { - return &manifestLister{indexer: indexer} -} - -// List lists all Manifests in the indexer. -func (s *manifestLister) List(selector labels.Selector) (ret []*v2beta2.Manifest, err error) { - err = cache.ListAll(s.indexer, selector, func(m interface{}) { - ret = append(ret, m.(*v2beta2.Manifest)) - }) - return ret, err + return &manifestLister{listers.New[*akashnetworkv2beta2.Manifest](indexer, akashnetworkv2beta2.Resource("manifest"))} } // Manifests returns an object that can list and get Manifests. func (s *manifestLister) Manifests(namespace string) ManifestNamespaceLister { - return manifestNamespaceLister{indexer: s.indexer, namespace: namespace} + return manifestNamespaceLister{listers.NewNamespaced[*akashnetworkv2beta2.Manifest](s.ResourceIndexer, namespace)} } // ManifestNamespaceLister helps list and get Manifests. @@ -64,36 +56,15 @@ func (s *manifestLister) Manifests(namespace string) ManifestNamespaceLister { type ManifestNamespaceLister interface { // List lists all Manifests in the indexer for a given namespace. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v2beta2.Manifest, err error) + List(selector labels.Selector) (ret []*akashnetworkv2beta2.Manifest, err error) // Get retrieves the Manifest from the indexer for a given namespace and name. // Objects returned here must be treated as read-only. - Get(name string) (*v2beta2.Manifest, error) + Get(name string) (*akashnetworkv2beta2.Manifest, error) ManifestNamespaceListerExpansion } // manifestNamespaceLister implements the ManifestNamespaceLister // interface. type manifestNamespaceLister struct { - indexer cache.Indexer - namespace string -} - -// List lists all Manifests in the indexer for a given namespace. -func (s manifestNamespaceLister) List(selector labels.Selector) (ret []*v2beta2.Manifest, err error) { - err = cache.ListAllByNamespace(s.indexer, s.namespace, selector, func(m interface{}) { - ret = append(ret, m.(*v2beta2.Manifest)) - }) - return ret, err -} - -// Get retrieves the Manifest from the indexer for a given namespace and name. -func (s manifestNamespaceLister) Get(name string) (*v2beta2.Manifest, error) { - obj, exists, err := s.indexer.GetByKey(s.namespace + "/" + name) - if err != nil { - return nil, err - } - if !exists { - return nil, errors.NewNotFound(v2beta2.Resource("manifest"), name) - } - return obj.(*v2beta2.Manifest), nil + listers.ResourceIndexer[*akashnetworkv2beta2.Manifest] } diff --git a/pkg/client/listers/akash.network/v2beta2/providerhost.go b/pkg/client/listers/akash.network/v2beta2/providerhost.go index 611bd692c..a166cb14b 100644 --- a/pkg/client/listers/akash.network/v2beta2/providerhost.go +++ b/pkg/client/listers/akash.network/v2beta2/providerhost.go @@ -19,10 +19,10 @@ limitations under the License. package v2beta2 import ( - v2beta2 "github.com/akash-network/provider/pkg/apis/akash.network/v2beta2" - "k8s.io/apimachinery/pkg/api/errors" - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/tools/cache" + akashnetworkv2beta2 "github.com/akash-network/provider/pkg/apis/akash.network/v2beta2" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" ) // ProviderHostLister helps list ProviderHosts. @@ -30,7 +30,7 @@ import ( type ProviderHostLister interface { // List lists all ProviderHosts in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v2beta2.ProviderHost, err error) + List(selector labels.Selector) (ret []*akashnetworkv2beta2.ProviderHost, err error) // ProviderHosts returns an object that can list and get ProviderHosts. ProviderHosts(namespace string) ProviderHostNamespaceLister ProviderHostListerExpansion @@ -38,25 +38,17 @@ type ProviderHostLister interface { // providerHostLister implements the ProviderHostLister interface. type providerHostLister struct { - indexer cache.Indexer + listers.ResourceIndexer[*akashnetworkv2beta2.ProviderHost] } // NewProviderHostLister returns a new ProviderHostLister. func NewProviderHostLister(indexer cache.Indexer) ProviderHostLister { - return &providerHostLister{indexer: indexer} -} - -// List lists all ProviderHosts in the indexer. -func (s *providerHostLister) List(selector labels.Selector) (ret []*v2beta2.ProviderHost, err error) { - err = cache.ListAll(s.indexer, selector, func(m interface{}) { - ret = append(ret, m.(*v2beta2.ProviderHost)) - }) - return ret, err + return &providerHostLister{listers.New[*akashnetworkv2beta2.ProviderHost](indexer, akashnetworkv2beta2.Resource("providerhost"))} } // ProviderHosts returns an object that can list and get ProviderHosts. func (s *providerHostLister) ProviderHosts(namespace string) ProviderHostNamespaceLister { - return providerHostNamespaceLister{indexer: s.indexer, namespace: namespace} + return providerHostNamespaceLister{listers.NewNamespaced[*akashnetworkv2beta2.ProviderHost](s.ResourceIndexer, namespace)} } // ProviderHostNamespaceLister helps list and get ProviderHosts. @@ -64,36 +56,15 @@ func (s *providerHostLister) ProviderHosts(namespace string) ProviderHostNamespa type ProviderHostNamespaceLister interface { // List lists all ProviderHosts in the indexer for a given namespace. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v2beta2.ProviderHost, err error) + List(selector labels.Selector) (ret []*akashnetworkv2beta2.ProviderHost, err error) // Get retrieves the ProviderHost from the indexer for a given namespace and name. // Objects returned here must be treated as read-only. - Get(name string) (*v2beta2.ProviderHost, error) + Get(name string) (*akashnetworkv2beta2.ProviderHost, error) ProviderHostNamespaceListerExpansion } // providerHostNamespaceLister implements the ProviderHostNamespaceLister // interface. type providerHostNamespaceLister struct { - indexer cache.Indexer - namespace string -} - -// List lists all ProviderHosts in the indexer for a given namespace. -func (s providerHostNamespaceLister) List(selector labels.Selector) (ret []*v2beta2.ProviderHost, err error) { - err = cache.ListAllByNamespace(s.indexer, s.namespace, selector, func(m interface{}) { - ret = append(ret, m.(*v2beta2.ProviderHost)) - }) - return ret, err -} - -// Get retrieves the ProviderHost from the indexer for a given namespace and name. -func (s providerHostNamespaceLister) Get(name string) (*v2beta2.ProviderHost, error) { - obj, exists, err := s.indexer.GetByKey(s.namespace + "/" + name) - if err != nil { - return nil, err - } - if !exists { - return nil, errors.NewNotFound(v2beta2.Resource("providerhost"), name) - } - return obj.(*v2beta2.ProviderHost), nil + listers.ResourceIndexer[*akashnetworkv2beta2.ProviderHost] } diff --git a/pkg/client/listers/akash.network/v2beta2/providerleasedip.go b/pkg/client/listers/akash.network/v2beta2/providerleasedip.go index fe3c30f82..b23f0de3d 100644 --- a/pkg/client/listers/akash.network/v2beta2/providerleasedip.go +++ b/pkg/client/listers/akash.network/v2beta2/providerleasedip.go @@ -19,10 +19,10 @@ limitations under the License. package v2beta2 import ( - v2beta2 "github.com/akash-network/provider/pkg/apis/akash.network/v2beta2" - "k8s.io/apimachinery/pkg/api/errors" - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/tools/cache" + akashnetworkv2beta2 "github.com/akash-network/provider/pkg/apis/akash.network/v2beta2" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" ) // ProviderLeasedIPLister helps list ProviderLeasedIPs. @@ -30,7 +30,7 @@ import ( type ProviderLeasedIPLister interface { // List lists all ProviderLeasedIPs in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v2beta2.ProviderLeasedIP, err error) + List(selector labels.Selector) (ret []*akashnetworkv2beta2.ProviderLeasedIP, err error) // ProviderLeasedIPs returns an object that can list and get ProviderLeasedIPs. ProviderLeasedIPs(namespace string) ProviderLeasedIPNamespaceLister ProviderLeasedIPListerExpansion @@ -38,25 +38,17 @@ type ProviderLeasedIPLister interface { // providerLeasedIPLister implements the ProviderLeasedIPLister interface. type providerLeasedIPLister struct { - indexer cache.Indexer + listers.ResourceIndexer[*akashnetworkv2beta2.ProviderLeasedIP] } // NewProviderLeasedIPLister returns a new ProviderLeasedIPLister. func NewProviderLeasedIPLister(indexer cache.Indexer) ProviderLeasedIPLister { - return &providerLeasedIPLister{indexer: indexer} -} - -// List lists all ProviderLeasedIPs in the indexer. -func (s *providerLeasedIPLister) List(selector labels.Selector) (ret []*v2beta2.ProviderLeasedIP, err error) { - err = cache.ListAll(s.indexer, selector, func(m interface{}) { - ret = append(ret, m.(*v2beta2.ProviderLeasedIP)) - }) - return ret, err + return &providerLeasedIPLister{listers.New[*akashnetworkv2beta2.ProviderLeasedIP](indexer, akashnetworkv2beta2.Resource("providerleasedip"))} } // ProviderLeasedIPs returns an object that can list and get ProviderLeasedIPs. func (s *providerLeasedIPLister) ProviderLeasedIPs(namespace string) ProviderLeasedIPNamespaceLister { - return providerLeasedIPNamespaceLister{indexer: s.indexer, namespace: namespace} + return providerLeasedIPNamespaceLister{listers.NewNamespaced[*akashnetworkv2beta2.ProviderLeasedIP](s.ResourceIndexer, namespace)} } // ProviderLeasedIPNamespaceLister helps list and get ProviderLeasedIPs. @@ -64,36 +56,15 @@ func (s *providerLeasedIPLister) ProviderLeasedIPs(namespace string) ProviderLea type ProviderLeasedIPNamespaceLister interface { // List lists all ProviderLeasedIPs in the indexer for a given namespace. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v2beta2.ProviderLeasedIP, err error) + List(selector labels.Selector) (ret []*akashnetworkv2beta2.ProviderLeasedIP, err error) // Get retrieves the ProviderLeasedIP from the indexer for a given namespace and name. // Objects returned here must be treated as read-only. - Get(name string) (*v2beta2.ProviderLeasedIP, error) + Get(name string) (*akashnetworkv2beta2.ProviderLeasedIP, error) ProviderLeasedIPNamespaceListerExpansion } // providerLeasedIPNamespaceLister implements the ProviderLeasedIPNamespaceLister // interface. type providerLeasedIPNamespaceLister struct { - indexer cache.Indexer - namespace string -} - -// List lists all ProviderLeasedIPs in the indexer for a given namespace. -func (s providerLeasedIPNamespaceLister) List(selector labels.Selector) (ret []*v2beta2.ProviderLeasedIP, err error) { - err = cache.ListAllByNamespace(s.indexer, s.namespace, selector, func(m interface{}) { - ret = append(ret, m.(*v2beta2.ProviderLeasedIP)) - }) - return ret, err -} - -// Get retrieves the ProviderLeasedIP from the indexer for a given namespace and name. -func (s providerLeasedIPNamespaceLister) Get(name string) (*v2beta2.ProviderLeasedIP, error) { - obj, exists, err := s.indexer.GetByKey(s.namespace + "/" + name) - if err != nil { - return nil, err - } - if !exists { - return nil, errors.NewNotFound(v2beta2.Resource("providerleasedip"), name) - } - return obj.(*v2beta2.ProviderLeasedIP), nil + listers.ResourceIndexer[*akashnetworkv2beta2.ProviderLeasedIP] } diff --git a/script/tools.sh b/script/tools.sh index 490a0555d..cadaa8123 100755 --- a/script/tools.sh +++ b/script/tools.sh @@ -84,6 +84,24 @@ function run_bump_module() { fi } +function run_k8s_gen() { + rm -rf "${ROOT_DIR}/pkg/client/*" + + source "$AP_DEVCACHE_BIN/kube_codegen.sh" + + kube::codegen::gen_helpers \ + --boilerplate "${ROOT_DIR}/pkg/apis/boilerplate.go.txt" \ + "${ROOT_DIR}/pkg/apis" + + kube::codegen::gen_client \ + --output-pkg github.com/akash-network/provider/pkg/client \ + --output-dir "${ROOT_DIR}/pkg/client" \ + --boilerplate "${ROOT_DIR}/pkg/apis/boilerplate.go.txt" \ + --with-watch \ + --with-applyconfig \ + "${ROOT_DIR}/pkg/apis" +} + case "$1" in gotoolchain) get_gotoolchain @@ -103,4 +121,7 @@ case "$1" in shift run_bump_module "$@" ;; + k8s-gen) + run_k8s_gen + ;; esac diff --git a/service.go b/service.go index 89c7eecd2..32f4440c2 100644 --- a/service.go +++ b/service.go @@ -8,12 +8,10 @@ import ( "github.com/pkg/errors" tpubsub "github.com/troian/pubsub" - "github.com/cosmos/cosmos-sdk/client" - sdk "github.com/cosmos/cosmos-sdk/types" - bankTypes "github.com/cosmos/cosmos-sdk/x/bank/types" - dtypes "github.com/akash-network/akash-api/go/node/deployment/v1beta3" provider "github.com/akash-network/akash-api/go/provider/v1" + "github.com/cosmos/cosmos-sdk/client" + sdk "github.com/cosmos/cosmos-sdk/types" "github.com/akash-network/node/pubsub" @@ -80,14 +78,14 @@ func NewService(ctx context.Context, return nil, err } - bc, err := newBalanceChecker(ctx, bankTypes.NewQueryClient(cctx), cl, accAddr, session, bus, cfg.BalanceCheckerCfg) + bc, err := newBalanceChecker(ctx, cl, accAddr, session, bus, cfg.BalanceCheckerCfg) if err != nil { session.Log().Error("starting balance checker", "err", err) cancel() return nil, err } - cluster, err := cluster.NewService(ctx, session, bus, cclient, waiter, cfg.Config) + cluster, err := cluster.NewService(ctx, session, bus, cl, accAddr, cclient, waiter, cfg.Config) if err != nil { cancel() <-bc.lc.Done() diff --git a/tools/fromctx/context.go b/tools/fromctx/context.go index 0f61e9629..811d1f5f7 100644 --- a/tools/fromctx/context.go +++ b/tools/fromctx/context.go @@ -8,13 +8,12 @@ import ( "github.com/boz/go-lifecycle" "github.com/go-logr/logr" "github.com/spf13/cobra" + cmblog "github.com/tendermint/tendermint/libs/log" "github.com/troian/pubsub" "golang.org/x/sync/errgroup" "k8s.io/client-go/kubernetes" "k8s.io/client-go/rest" - cmblog "github.com/tendermint/tendermint/libs/log" - providerflags "github.com/akash-network/provider/cmd/provider-services/cmd/flags" akashclientset "github.com/akash-network/provider/pkg/client/clientset/versioned" )