diff --git a/CHANGELOG.md b/CHANGELOG.md index 154d837..29c6e6b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [v1.1.1] - 2024-10-07 +### Changed +- Upgrade go to v1.23 +- Upgrade golang-ci to v1.61.0 +- Update Dependencies + ## [v1.1.0] - 2024-09-19 ### Changed - Relicense to AGPL-3.0-only diff --git a/Dockerfile b/Dockerfile index 75fdfdd..2db1faf 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # Build the manager binary -FROM golang:1.22.0 AS builder +FROM golang:1.23.0 AS builder ENV GOPRIVATE=github.com/cloudogu/cesapp/v5 @@ -35,7 +35,7 @@ RUN make compile-generic FROM gcr.io/distroless/static:nonroot LABEL maintainer="hello@cloudogu.com" \ NAME="k8s-component-operator" \ - VERSION="1.1.0" + VERSION="1.1.1" WORKDIR / COPY --from=builder /workspace/target/k8s-component-operator . diff --git a/Jenkinsfile b/Jenkinsfile index b54bd07..14cb9e1 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -12,7 +12,7 @@ github = new GitHub(this, git) changelog = new Changelog(this) Docker docker = new Docker(this) gpg = new Gpg(this, docker) -goVersion = "1.22" +goVersion = "1.23" makefile = new Makefile(this) // Configuration of repository diff --git a/Makefile b/Makefile index 13107c9..d10cce9 100644 --- a/Makefile +++ b/Makefile @@ -1,11 +1,11 @@ # Set these to the desired values ARTIFACT_ID=k8s-component-operator -VERSION=1.1.0 +VERSION=1.1.1 ## Image URL to use all building/pushing image targets IMAGE=cloudogu/${ARTIFACT_ID}:${VERSION} -GOTAG?=1.22.0 +GOTAG?=1.23.0 MAKEFILES_VERSION=9.0.5 -LINT_VERSION?=v1.59.1 +LINT_VERSION?=v1.61.0 ADDITIONAL_CLEAN=dist-clean diff --git a/go.mod b/go.mod index cef2e79..ae18d6f 100644 --- a/go.mod +++ b/go.mod @@ -1,50 +1,52 @@ module github.com/cloudogu/k8s-component-operator -go 1.22.0 +go 1.23.0 require ( - github.com/Masterminds/semver/v3 v3.2.1 + github.com/Masterminds/semver/v3 v3.3.0 github.com/bombsimon/logrusr/v2 v2.0.1 - github.com/cloudogu/cesapp-lib v0.12.2 - github.com/cloudogu/k8s-apply-lib v0.4.2 - github.com/go-logr/logr v1.4.1 + github.com/cloudogu/cesapp-lib v0.14.0 + github.com/cloudogu/k8s-apply-lib v0.5.0 + github.com/go-logr/logr v1.4.2 github.com/onsi/ginkgo v1.16.5 - github.com/onsi/gomega v1.31.1 + github.com/onsi/gomega v1.34.2 github.com/pkg/errors v0.9.1 github.com/sirupsen/logrus v1.9.3 github.com/spf13/pflag v1.0.5 github.com/stretchr/testify v1.9.0 - helm.sh/helm/v3 v3.14.3 - k8s.io/api v0.29.3 - k8s.io/apimachinery v0.29.3 - k8s.io/cli-runtime v0.29.3 - k8s.io/client-go v0.29.3 - sigs.k8s.io/controller-runtime v0.17.2 + helm.sh/helm/v3 v3.16.1 + k8s.io/api v0.31.1 + k8s.io/apimachinery v0.31.1 + k8s.io/cli-runtime v0.31.1 + k8s.io/client-go v0.31.1 + sigs.k8s.io/controller-runtime v0.19.0 sigs.k8s.io/yaml v1.4.0 ) require ( + dario.cat/mergo v1.0.1 // indirect github.com/AdaLogics/go-fuzz-headers v0.0.0-20230811130428-ced1acdcaa24 // indirect github.com/Azure/go-ansiterm v0.0.0-20230124172434-306776ec8161 // indirect github.com/BurntSushi/toml v1.3.2 // indirect github.com/MakeNowJust/heredoc v1.0.0 // indirect github.com/Masterminds/goutils v1.1.1 // indirect - github.com/Masterminds/sprig/v3 v3.2.3 // indirect + github.com/Masterminds/sprig/v3 v3.3.0 // indirect github.com/Masterminds/squirrel v1.5.4 // indirect github.com/Microsoft/hcsshim v0.12.0 // indirect github.com/asaskevich/govalidator v0.0.0-20230301143203-a9d515a09cc2 // indirect github.com/beorn7/perks v1.0.1 // indirect - github.com/cespare/xxhash/v2 v2.2.0 // indirect + github.com/blang/semver/v4 v4.0.0 // indirect + github.com/cespare/xxhash/v2 v2.3.0 // indirect github.com/chai2010/gettext-go v1.0.2 // indirect github.com/containerd/cgroups/v3 v3.0.3 // indirect github.com/containerd/containerd v1.7.14 // indirect github.com/containerd/log v0.1.0 // indirect - github.com/cyphar/filepath-securejoin v0.2.4 // indirect - github.com/davecgh/go-spew v1.1.1 // indirect + github.com/cyphar/filepath-securejoin v0.3.1 // indirect + github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect github.com/distribution/reference v0.5.0 // indirect github.com/docker/cli v25.0.4+incompatible // indirect github.com/docker/distribution v2.8.3+incompatible // indirect - github.com/docker/docker v25.0.4+incompatible // indirect + github.com/docker/docker v25.0.6+incompatible // indirect github.com/docker/docker-credential-helpers v0.8.1 // indirect github.com/docker/go-connections v0.5.0 // indirect github.com/docker/go-metrics v0.0.1 // indirect @@ -56,6 +58,7 @@ require ( github.com/fatih/color v1.16.0 // indirect github.com/felixge/httpsnoop v1.0.4 // indirect github.com/fsnotify/fsnotify v1.7.0 // indirect + github.com/fxamacker/cbor/v2 v2.7.0 // indirect github.com/go-errors/errors v1.5.1 // indirect github.com/go-gorp/gorp/v3 v3.1.0 // indirect github.com/go-logr/stdr v1.2.2 // indirect @@ -78,10 +81,10 @@ require ( github.com/gregjones/httpcache v0.0.0-20190611155906-901d90724c79 // indirect github.com/hashicorp/errwrap v1.1.0 // indirect github.com/hashicorp/go-multierror v1.1.1 // indirect - github.com/huandu/xstrings v1.4.0 // indirect + github.com/huandu/xstrings v1.5.0 // indirect github.com/imdario/mergo v0.3.16 // indirect github.com/inconshreveable/mousetrap v1.1.0 // indirect - github.com/jmoiron/sqlx v1.3.5 // indirect + github.com/jmoiron/sqlx v1.4.0 // indirect github.com/josharian/intern v1.0.0 // indirect github.com/json-iterator/go v1.1.12 // indirect github.com/klauspost/compress v1.17.7 // indirect @@ -97,7 +100,7 @@ require ( github.com/mitchellh/go-wordwrap v1.0.1 // indirect github.com/mitchellh/reflectwalk v1.0.2 // indirect github.com/moby/locker v1.0.1 // indirect - github.com/moby/spdystream v0.2.0 // indirect + github.com/moby/spdystream v0.4.0 // indirect github.com/moby/term v0.5.0 // indirect github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect github.com/modern-go/reflect2 v1.0.2 // indirect @@ -108,57 +111,59 @@ require ( github.com/opencontainers/go-digest v1.0.0 // indirect github.com/opencontainers/image-spec v1.1.0 // indirect github.com/peterbourgon/diskv v2.0.1+incompatible // indirect - github.com/pmezard/go-difflib v1.0.0 // indirect - github.com/prometheus/client_golang v1.19.0 // indirect - github.com/prometheus/client_model v0.6.0 // indirect - github.com/prometheus/common v0.50.0 // indirect - github.com/prometheus/procfs v0.13.0 // indirect + github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect + github.com/prometheus/client_golang v1.19.1 // indirect + github.com/prometheus/client_model v0.6.1 // indirect + github.com/prometheus/common v0.55.0 // indirect + github.com/prometheus/procfs v0.15.1 // indirect github.com/rivo/uniseg v0.4.7 // indirect - github.com/rubenv/sql-migrate v1.6.1 // indirect + github.com/rubenv/sql-migrate v1.7.0 // indirect github.com/russross/blackfriday/v2 v2.1.0 // indirect - github.com/shopspring/decimal v1.3.1 // indirect - github.com/spf13/cast v1.6.0 // indirect - github.com/spf13/cobra v1.8.0 // indirect + github.com/shopspring/decimal v1.4.0 // indirect + github.com/spf13/cast v1.7.0 // indirect + github.com/spf13/cobra v1.8.1 // indirect github.com/stretchr/objx v0.5.2 // indirect + github.com/x448/float16 v0.8.4 // indirect github.com/xeipuuv/gojsonpointer v0.0.0-20190905194746-02993c407bfb // indirect github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415 // indirect github.com/xeipuuv/gojsonschema v1.2.0 // indirect github.com/xlab/treeprint v1.2.0 // indirect - go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.49.0 // indirect - go.opentelemetry.io/otel v1.24.0 // indirect - go.opentelemetry.io/otel/metric v1.24.0 // indirect - go.opentelemetry.io/otel/trace v1.24.0 // indirect + go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.53.0 // indirect + go.opentelemetry.io/otel v1.28.0 // indirect + go.opentelemetry.io/otel/metric v1.28.0 // indirect + go.opentelemetry.io/otel/trace v1.28.0 // indirect go.starlark.net v0.0.0-20240314022150-ee8ed142361c // indirect - golang.org/x/crypto v0.21.0 // indirect + golang.org/x/crypto v0.26.0 // indirect golang.org/x/exp v0.0.0-20240314144324-c7f7c6466f7f // indirect - golang.org/x/net v0.22.0 // indirect - golang.org/x/oauth2 v0.18.0 // indirect - golang.org/x/sync v0.6.0 // indirect - golang.org/x/sys v0.18.0 // indirect - golang.org/x/term v0.18.0 // indirect - golang.org/x/text v0.14.0 // indirect + golang.org/x/mod v0.20.0 // indirect + golang.org/x/net v0.28.0 // indirect + golang.org/x/oauth2 v0.21.0 // indirect + golang.org/x/sync v0.8.0 // indirect + golang.org/x/sys v0.24.0 // indirect + golang.org/x/term v0.23.0 // indirect + golang.org/x/text v0.17.0 // indirect golang.org/x/time v0.5.0 // indirect - golang.org/x/tools v0.19.0 // indirect gomodules.xyz/jsonpatch/v2 v2.4.0 // indirect google.golang.org/appengine v1.6.8 // indirect - google.golang.org/genproto/googleapis/rpc v0.0.0-20240314234333-6e1732d8331c // indirect - google.golang.org/grpc v1.62.1 // indirect - google.golang.org/protobuf v1.33.0 // indirect + google.golang.org/genproto/googleapis/rpc v0.0.0-20240701130421-f6361c86f094 // indirect + google.golang.org/grpc v1.65.0 // indirect + google.golang.org/protobuf v1.34.2 // indirect + gopkg.in/evanphx/json-patch.v4 v4.12.0 // indirect gopkg.in/evanphx/json-patch.v5 v5.6.0 // indirect gopkg.in/inf.v0 v0.9.1 // indirect gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect - k8s.io/apiextensions-apiserver v0.29.3 // indirect - k8s.io/apiserver v0.29.3 // indirect - k8s.io/component-base v0.29.3 // indirect - k8s.io/klog/v2 v2.120.1 // indirect + k8s.io/apiextensions-apiserver v0.31.0 // indirect + k8s.io/apiserver v0.31.0 // indirect + k8s.io/component-base v0.31.0 // indirect + k8s.io/klog/v2 v2.130.1 // indirect k8s.io/kube-openapi v0.0.0-20240228011516-70dd3763d340 // indirect - k8s.io/kubectl v0.29.3 // indirect - k8s.io/utils v0.0.0-20240310230437-4693a0247e57 // indirect + k8s.io/kubectl v0.31.0 // indirect + k8s.io/utils v0.0.0-20240711033017-18e509b52bc8 // indirect oras.land/oras-go v1.2.5 // indirect sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect - sigs.k8s.io/kustomize/api v0.16.0 // indirect - sigs.k8s.io/kustomize/kyaml v0.16.0 // indirect + sigs.k8s.io/kustomize/api v0.17.2 // indirect + sigs.k8s.io/kustomize/kyaml v0.17.1 // indirect sigs.k8s.io/structured-merge-diff/v4 v4.4.1 // indirect ) diff --git a/go.sum b/go.sum index d9684af..1ac5d1e 100644 --- a/go.sum +++ b/go.sum @@ -1,3 +1,6 @@ +dario.cat/mergo v1.0.1 h1:Ra4+bf83h2ztPIQYNP99R6m+Y7KfnARDfID+a+vLl4s= +dario.cat/mergo v1.0.1/go.mod h1:uNxQE+84aUszobStD9th8a29P2fMDhsBdgRYvZOxGmk= +filippo.io/edwards25519 v1.1.0/go.mod h1:BxyFTGdWcka3PhytdK4V28tE5sGfRvvvRV7EaN4VDT4= github.com/AdaLogics/go-fuzz-headers v0.0.0-20230811130428-ced1acdcaa24 h1:bvDV9vkmnHYOMsOr4WLk+Vo07yKIzd94sVoIqshQ4bU= github.com/AdaLogics/go-fuzz-headers v0.0.0-20230811130428-ced1acdcaa24/go.mod h1:8o94RPi1/7XTJvwPpRSzSUedZrtlirdB3r9Z20bi2f8= github.com/Azure/go-ansiterm v0.0.0-20230124172434-306776ec8161 h1:L/gRVlceqvL25UVaW/CKtUDjefjrs0SPonmDGUVOYP0= @@ -11,10 +14,12 @@ github.com/MakeNowJust/heredoc v1.0.0/go.mod h1:mG5amYoWBHf8vpLOuehzbGGw0EHxpZZ6 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/v3 v3.2.0/go.mod h1:qvl/7zhW3nngYb5+80sSMF+FG2BjYrf8m9wsX0PNOMQ= -github.com/Masterminds/semver/v3 v3.2.1 h1:RN9w6+7QoMeJVGyfmbcgs28Br8cvmnucEXnY0rYXWg0= -github.com/Masterminds/semver/v3 v3.2.1/go.mod h1:qvl/7zhW3nngYb5+80sSMF+FG2BjYrf8m9wsX0PNOMQ= +github.com/Masterminds/semver/v3 v3.3.0 h1:B8LGeaivUe71a5qox1ICM/JLl0NqZSW5CHyL+hmvYS0= +github.com/Masterminds/semver/v3 v3.3.0/go.mod h1:4V+yj/TJE1HU9XfppCwVMZq3I84lprf4nC11bSS5beM= github.com/Masterminds/sprig/v3 v3.2.3 h1:eL2fZNezLomi0uOLqjQoN6BfsDD+fyLtgbJMAj9n6YA= github.com/Masterminds/sprig/v3 v3.2.3/go.mod h1:rXcFaZ2zZbLRJv/xSysmlgIM1u11eBaRMhvYXJNkGuM= +github.com/Masterminds/sprig/v3 v3.3.0 h1:mQh0Yrg1XPo6vjYXgtf5OtijNAKJRNcTdOOGZe3tPhs= +github.com/Masterminds/sprig/v3 v3.3.0/go.mod h1:Zy1iXRYNqNLUolqCpL4uhk6SHUMAOSCzdgBfDb35Lz0= github.com/Masterminds/squirrel v1.5.4 h1:uUcX/aBc8O7Fg9kaISIUsHXdKuqehiXAMQTYX8afzqM= github.com/Masterminds/squirrel v1.5.4/go.mod h1:NNaOrjSoIDfDA40n7sr2tPNZRfjzjA400rg+riTZj10= github.com/Microsoft/go-winio v0.6.1 h1:9/kr64B9VUZrLm5YYwbGtUJnMgqWVOdUAXu6Migciow= @@ -33,6 +38,8 @@ github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24 github.com/beorn7/perks v1.0.0/go.mod h1:KWe93zE9D1o94FZ5RNwFwVgaQK1VOXiVxmqh+CedLV8= github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM= github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw= +github.com/blang/semver/v4 v4.0.0 h1:1PFHFE6yCCTv8C1TeyNNarDzntLi7wMI5i/pzqYIsAM= +github.com/blang/semver/v4 v4.0.0/go.mod h1:IbckMUScFkM3pff0VJDNKRiT6TG/YpiHIM2yvyW5YoQ= github.com/bombsimon/logrusr/v2 v2.0.1 h1:1VgxVNQMCvjirZIYaT9JYn6sAVGVEcNtRE0y4mvaOAM= github.com/bombsimon/logrusr/v2 v2.0.1/go.mod h1:ByVAX+vHdLGAfdroiMg6q0zgq2FODY2lc5YJvzmOJio= github.com/bshuster-repo/logrus-logstash-hook v1.0.0 h1:e+C0SB5R1pu//O4MQ3f9cFuPGoOVeF2fE4Og9otCc70= @@ -45,12 +52,14 @@ github.com/bugsnag/panicwrap v0.0.0-20151223152923-e2c28503fcd0 h1:nvj0OLI3YqYXe github.com/bugsnag/panicwrap v0.0.0-20151223152923-e2c28503fcd0/go.mod h1:D/8v3kj0zr8ZAKg1AQ6crr+5VwKN5eIywRkfhyM/+dE= 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/cespare/xxhash/v2 v2.3.0 h1:UL815xU9SqsFlibzuggzjXhog7bL6oX9BbNZnL2UFvs= +github.com/cespare/xxhash/v2 v2.3.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= github.com/chai2010/gettext-go v1.0.2 h1:1Lwwip6Q2QGsAdl/ZKPCwTe9fe0CjlUbqj5bFNSjIRk= github.com/chai2010/gettext-go v1.0.2/go.mod h1:y+wnP2cHYaVj19NZhYKAwEMH2CI1gNHeQQ+5AjwawxA= -github.com/cloudogu/cesapp-lib v0.12.2 h1:++yK7s69DMCtpIt1nQ2x05cGAe6UH4KnsgEscV7wdq0= -github.com/cloudogu/cesapp-lib v0.12.2/go.mod h1:PTQqI3xs1ReJMXYE6BGTF33yAfmS4J7P8UiE4AwDMDY= -github.com/cloudogu/k8s-apply-lib v0.4.2 h1:D5hTYvIZya+tAyGCUGaZ1T83otvpQwzrZXz5JPHQQ5M= -github.com/cloudogu/k8s-apply-lib v0.4.2/go.mod h1:jR/+7q47O5gb++4gVsmEElT8/EJoi+Msw2dVzArTPW0= +github.com/cloudogu/cesapp-lib v0.14.0 h1:955cU7ivgiSJGPJ36/YHhbrT0d7Km+7BwOITPrAJijo= +github.com/cloudogu/cesapp-lib v0.14.0/go.mod h1:PTQqI3xs1ReJMXYE6BGTF33yAfmS4J7P8UiE4AwDMDY= +github.com/cloudogu/k8s-apply-lib v0.5.0 h1:XeQKwTgT8FIozpqyPO/b09LAenPswBilmatw/+1L4fI= +github.com/cloudogu/k8s-apply-lib v0.5.0/go.mod h1:jR/+7q47O5gb++4gVsmEElT8/EJoi+Msw2dVzArTPW0= github.com/containerd/cgroups/v3 v3.0.3 h1:S5ByHZ/h9PMe5IOQoN7E+nMc2UcLEM/V48DGDJ9kip0= github.com/containerd/cgroups/v3 v3.0.3/go.mod h1:8HBe7V3aWGLFPd/k03swSIsGjZhHI2WzJmticMgVuz0= github.com/containerd/containerd v1.7.14 h1:H/XLzbnGuenZEGK+v0RkwTdv2u1QFAruMe5N0GNPJwA= @@ -62,14 +71,19 @@ github.com/containerd/errdefs v0.1.0/go.mod h1:YgWiiHtLmSeBrvpw+UfPijzbLaB77mEG1 github.com/containerd/log v0.1.0 h1:TCJt7ioM2cr/tfR8GPbGf9/VRAX8D2B4PjzCpfX540I= github.com/containerd/log v0.1.0/go.mod h1:VRRf09a7mHDIRezVKTRCrOq78v577GXq3bSa3EhrzVo= 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/creack/pty v1.1.9/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/cyphar/filepath-securejoin v0.2.4 h1:Ugdm7cg7i6ZK6x3xDF1oEu1nfkyfH53EtKeQYTC3kyg= github.com/cyphar/filepath-securejoin v0.2.4/go.mod h1:aPGpWjXOXUn2NCNjFvBE6aRxGGx79pTxQpKOJNYHHl4= +github.com/cyphar/filepath-securejoin v0.3.1 h1:1V7cHiaW+C+39wEfpH6XlLBQo3j/PciWFrgfCLS8XrE= +github.com/cyphar/filepath-securejoin v0.3.1/go.mod h1:F7i41x/9cBF7lzCrVsYs9fuzwRZm4NQsGTBdpp6mETc= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/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/distribution/distribution/v3 v3.0.0-20221208165359-362910506bc2 h1:aBfCb7iqHmDEIp6fBvC/hQUddQfg+3qdYjwzaiP9Hnc= github.com/distribution/distribution/v3 v3.0.0-20221208165359-362910506bc2/go.mod h1:WHNsWjnIn2V1LYOrME7e8KxSeKunYHsxEm4am0BUtcI= github.com/distribution/reference v0.5.0 h1:/FUIFXtfc/x2gpa5/VGfiGLuOIdYa1t65IKK2OFGvA0= @@ -80,6 +94,8 @@ github.com/docker/distribution v2.8.3+incompatible h1:AtKxIZ36LoNK51+Z6RpzLpddBi github.com/docker/distribution v2.8.3+incompatible/go.mod h1:J2gT2udsDAN96Uj4KfcMRqY0/ypR+oyYUYmja8H+y+w= github.com/docker/docker v25.0.4+incompatible h1:XITZTrq+52tZyZxUOtFIahUf3aH367FLxJzt9vZeAF8= github.com/docker/docker v25.0.4+incompatible/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk= +github.com/docker/docker v25.0.6+incompatible h1:5cPwbwriIcsua2REJe8HqQV+6WlWc1byg2QSXzBxBGg= +github.com/docker/docker v25.0.6+incompatible/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk= github.com/docker/docker-credential-helpers v0.8.1 h1:j/eKUktUltBtMzKqmfLB0PAgqYyMHOp5vfsD1807oKo= github.com/docker/docker-credential-helpers v0.8.1/go.mod h1:P3ci7E3lwkZg6XiHdRKft1KckHiO9a2rNtyFbZ/ry9M= github.com/docker/go-connections v0.5.0 h1:USnMq7hx7gwdVZq1L49hLXaFtUdTADjXGp+uj1Br63c= @@ -113,6 +129,8 @@ github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4 github.com/fsnotify/fsnotify v1.6.0/go.mod h1:sl3t1tCWJFWoRz9R8WJCbQihKKwmorjAbSClcnxKAGw= 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/fxamacker/cbor/v2 v2.7.0 h1:iM5WgngdRBanHcxugY4JySA0nk1wZorNOpTgCMedv5E= +github.com/fxamacker/cbor/v2 v2.7.0/go.mod h1:pxXPTn3joSm21Gbwsv0w9OSA2y1HFR9qXEeXQVeNoDQ= 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-gorp/gorp/v3 v3.1.0 h1:ItKF/Vbuj31dmV4jxA1qblpSwkl9g1typ24xoe70IGs= @@ -122,8 +140,8 @@ github.com/go-logfmt/logfmt v0.3.0/go.mod h1:Qt1PoO58o5twSAckw1HlFXLmHsOX5/0LbT9 github.com/go-logfmt/logfmt v0.4.0/go.mod h1:3RMwSq7FuexP4Kalkev3ejPJsZTpXXBr9+V4qmtdjCk= github.com/go-logr/logr v1.0.0/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= github.com/go-logr/logr v1.2.2/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= -github.com/go-logr/logr v1.4.1 h1:pKouT5E8xu9zeFC39JXRDukb6JFQPXM5p5I91188VAQ= -github.com/go-logr/logr v1.4.1/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY= +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/stdr v1.2.2 h1:hSWxHoqTgW2S2qGc0LTAI563KZ5YKYRhT3MFKZMbjag= github.com/go-logr/stdr v1.2.2/go.mod h1:mMo/vtBO5dYbehREoey6XUKy/eSumjCCveDpRre4VKE= github.com/go-logr/zapr v1.3.0 h1:XGdV8XW8zdwFiwOA2Dryh1gj2KRQyOOoNmBy4EplIcQ= @@ -136,10 +154,13 @@ github.com/go-openapi/swag v0.23.0 h1:vsEVJDUo2hPJ2tu0/Xc+4noaxyEffXNIs3cOULZ+Gr github.com/go-openapi/swag v0.23.0/go.mod h1:esZ8ITTYEsH1V2trKHjAN8Ai7xHb8RV+YSZ577vPjgQ= 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-sql-driver/mysql v1.8.1/go.mod h1:wEBSXgmK//2ZFJyE+qWnIsVGmvmEKlqwuVSjsCm7DZg= github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY= +github.com/go-task/slim-sprig v0.0.0-20210107165309-348f09dbbbc0 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 v0.0.0-20230315185526-52ccab3ef572 h1:tfuBGBXKqDEevZMzYi5KSi8KkcZtzBcTgAUUtapy0OI= -github.com/go-task/slim-sprig v0.0.0-20230315185526-52ccab3ef572/go.mod h1:9Pwr4B2jHnOSGXyyzV8ROjYa2ojvAY6HCGYYfMoC3Ls= +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/gobwas/glob v0.2.3 h1:A4xDbljILXROh+kObIiy5kIaPYD8e96x1tgBhUI5J+Y= github.com/gobwas/glob v0.2.3/go.mod h1:d3Ez4x06l9bZtSvzIay5+Yzi0fmZzPgnTbPcKjJAkT8= github.com/gogo/protobuf v1.1.1/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ= @@ -176,8 +197,8 @@ github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeN github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= github.com/google/gofuzz v1.2.0 h1:xRy4A+RhZaiKjJ1bPfwQ8sedCA+YS2YcCHW6ec7JMi0= github.com/google/gofuzz v1.2.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= -github.com/google/pprof v0.0.0-20210720184732-4bb14d4b1be1 h1:K6RDEckDVWvDI9JAJYCmNdQXq6neHJOYx3V6jnqNEec= -github.com/google/pprof v0.0.0-20210720184732-4bb14d4b1be1/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= +github.com/google/pprof v0.0.0-20240827171923-fa2c70bbbfe5 h1:5iH8iuqE5apketRbSFBy+X1V0o+l+8NF1avt4HWl7cA= +github.com/google/pprof v0.0.0-20240827171923-fa2c70bbbfe5/go.mod h1:vavhavw2zAxS5dIdcRluK6cSGGPlZynqzFM8NdvU144= github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510 h1:El6M4kTTCOh6aBiKaUGG7oYTSPP8MxqL4YI3kZKwcP4= github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510/go.mod h1:pupxD2MaaD3pAXIBCelhxNneeOaAeabZDe5s4K6zSpQ= github.com/google/uuid v1.1.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= @@ -205,6 +226,8 @@ github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpO github.com/huandu/xstrings v1.3.3/go.mod h1:y5/lhBue+AyNmUVz9RLU9xbLR0o4KIIExikq4ovT0aE= github.com/huandu/xstrings v1.4.0 h1:D17IlohoQq4UcpqD7fDk80P7l+lwAmlFaBHgOipl2FU= github.com/huandu/xstrings v1.4.0/go.mod h1:y5/lhBue+AyNmUVz9RLU9xbLR0o4KIIExikq4ovT0aE= +github.com/huandu/xstrings v1.5.0 h1:2ag3IFq9ZDANvthTwTiqSSZLjDc+BedvHPAp5tJy2TI= +github.com/huandu/xstrings v1.5.0/go.mod h1:y5/lhBue+AyNmUVz9RLU9xbLR0o4KIIExikq4ovT0aE= github.com/imdario/mergo v0.3.11/go.mod h1:jmQim1M+e3UYxmgPu/WyfjB3N3VflVyUjjjwH0dnCYA= github.com/imdario/mergo v0.3.16 h1:wwQJbIsHYGMUyLSPrEq1CT16AhnhNJQ51+4fdHUnCl4= github.com/imdario/mergo v0.3.16/go.mod h1:WBLT9ZmE3lPoWsEzCh9LPo3TiwVN+ZKEjmz+hD27ysY= @@ -212,6 +235,8 @@ github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2 github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw= github.com/jmoiron/sqlx v1.3.5 h1:vFFPA71p1o5gAeqtEAwLU4dnX2napprKtHr7PYIcN3g= github.com/jmoiron/sqlx v1.3.5/go.mod h1:nRVWtLre0KfCLJvgxzCsLVMogSvQ1zNJtpYr2Ccp0mQ= +github.com/jmoiron/sqlx v1.4.0 h1:1PLqN7S1UYp5t4SrVVnt4nUVNemrDAtxlulVe+Qgm3o= +github.com/jmoiron/sqlx v1.4.0/go.mod h1:ZrZ7UsYB/weZdl2Bxg6jCRO9c3YHl8r3ahlKmRT4JLY= 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/json-iterator/go v1.1.6/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU= @@ -254,6 +279,7 @@ github.com/mattn/go-runewidth v0.0.15/go.mod h1:Jdepj2loyihRzMpdS35Xk/zdY8IAYHsh github.com/mattn/go-sqlite3 v1.14.6/go.mod h1:NyWgC/yNuGj7Q9rpYnZvas74GogHl5/Z4A/KQRfk6bU= github.com/mattn/go-sqlite3 v1.14.19 h1:fhGleo2h1p8tVChob4I9HpmVFIAkKGpiukdrgQbWfGI= github.com/mattn/go-sqlite3 v1.14.19/go.mod h1:2eHXhiwb8IkHr+BDWZGa96P6+rkvnG63S2DGjv9HUNg= +github.com/mattn/go-sqlite3 v1.14.22/go.mod h1:Uh1q+B4BYcTPb+yiD3kU8Ct7aC0hY9fxUwlHK0RXw+Y= github.com/matttproud/golang_protobuf_extensions v1.0.1/go.mod h1:D8He9yQNgCq6Z5Ld7szi9bcBfOoFv/3dc6xSMkL2PC0= github.com/miekg/dns v1.1.25 h1:dFwPR6SfLtrSwgDcIq2bcU/gVutB4sNApq2HBdqcakg= github.com/miekg/dns v1.1.25/go.mod h1:bPDLeHnStXmXAq1m/Ch/hvfNHr14JKNPMBo3VZKjuso= @@ -269,6 +295,8 @@ github.com/moby/locker v1.0.1 h1:fOXqR41zeveg4fFODix+1Ch4mj/gT0NE1XJbp/epuBg= github.com/moby/locker v1.0.1/go.mod h1:S7SDdo5zpBK84bzzVlKr2V0hz+7x9hWbYC/kq7oQppc= github.com/moby/spdystream v0.2.0 h1:cjW1zVyyoiM0T7b6UoySUFqzXMoqRckQtXwGPiBhOM8= github.com/moby/spdystream v0.2.0/go.mod h1:f7i0iNDQJ059oMTcWxx8MA/zKFIuD/lY+0GqbN2Wy8c= +github.com/moby/spdystream v0.4.0 h1:Vy79D6mHeJJjiPdFEL2yku1kl0chZpJfZcPpb16BRl8= +github.com/moby/spdystream v0.4.0/go.mod h1:xBAYlnt/ay+11ShkdFKNAG7LsyK/tmNBVvVOwrfMgdI= github.com/moby/sys/mountinfo v0.6.2 h1:BzJjoreD5BMFNmD9Rus6gdd1pLuecOFPt8wC+Vygl78= github.com/moby/sys/mountinfo v0.6.2/go.mod h1:IJb6JQeOklcdMU9F5xQ8ZALD+CUr5VlGpwtX+VE0rpI= github.com/moby/term v0.5.0 h1:xt8Q1nalod/v7BqbG21f8mQPqH+xAaC9C3N3wfWbVP0= @@ -295,12 +323,12 @@ github.com/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+W github.com/onsi/ginkgo v1.12.1/go.mod h1:zj2OWP4+oCPe1qIXoGWkgMRwljMUYCdkwsT2108oapk= 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.15.0 h1:79HwNRBAZHOEwrczrgSOPy+eFTTlIGELKy5as+ClttY= -github.com/onsi/ginkgo/v2 v2.15.0/go.mod h1:HlxMHtYF57y6Dpf+mc5529KKmSq9h2FpCF+/ZkwUxKM= +github.com/onsi/ginkgo/v2 v2.20.1 h1:YlVIbqct+ZmnEph770q9Q7NVAz4wwIiVNahee6JyUzo= +github.com/onsi/ginkgo/v2 v2.20.1/go.mod h1:lG9ey2Z29hR41WMVthyJBGUBcBhGOtoPF2VFMvBXFCI= 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.31.1 h1:KYppCUK+bUgAZwHOu7EXVBKyQA6ILvOESHkn/tgoqvo= -github.com/onsi/gomega v1.31.1/go.mod h1:y40C95dwAD1Nz36SsEnxvfFe8FFfNxzI5eJ0EYGyAy0= +github.com/onsi/gomega v1.34.2 h1:pNCwDkzrsv7MS9kpaQvVb1aVLahQXyJ/Tv5oAZMI3i8= +github.com/onsi/gomega v1.34.2/go.mod h1:v1xfxRgk0KIsG+QOdm7p8UosrOzPYRo60fd3B/1Dukc= 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.1.0 h1:8SG7/vwALn54lVB/0yZ/MMwhFrPYtpEHQb2IpWsCzug= @@ -314,6 +342,8 @@ github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 h1:Jamvg5psRIccs7FGNTlIRMkT8wgtp5eCXdBlqhYGL6U= +github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/poy/onpar v1.1.2 h1:QaNrNiZx0+Nar5dLgTVp5mXkyoVFIbepjyEoGSnhbAY= github.com/poy/onpar v1.1.2/go.mod h1:6X8FLNoxyr9kkmnlqpK6LSoiOtrO6MICtWwEuWkLjzg= github.com/prometheus/client_golang v0.9.1/go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXPKyh/dDVn+NZz0KFw= @@ -321,19 +351,27 @@ github.com/prometheus/client_golang v1.0.0/go.mod h1:db9x61etRT2tGnBNRi70OPL5Fsn github.com/prometheus/client_golang v1.1.0/go.mod h1:I1FGZT9+L76gKKOs5djB6ezCbFQP1xR9D75/vuwEF3g= github.com/prometheus/client_golang v1.19.0 h1:ygXvpU1AoN1MhdzckN+PyD9QJOSD4x7kmXYlnfbA6JU= github.com/prometheus/client_golang v1.19.0/go.mod h1:ZRM9uEAypZakd+q/x7+gmsvXdURP+DABIEIjnmDdp+k= +github.com/prometheus/client_golang v1.19.1 h1:wZWJDwK+NameRJuPGDhlnFgx8e8HN3XHQeLaYJFJBOE= +github.com/prometheus/client_golang v1.19.1/go.mod h1:mP78NwGzrVks5S2H6ab8+ZZGJLZUq1hoULYBAYBw1Ho= github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo= github.com/prometheus/client_model v0.0.0-20190129233127-fd36f4220a90/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= github.com/prometheus/client_model v0.6.0 h1:k1v3CzpSRUTrKMppY35TLwPvxHqBu0bYgxZzqGIgaos= github.com/prometheus/client_model v0.6.0/go.mod h1:NTQHnmxFpouOD0DpvP4XujX3CdOAGQPoaGhyTchlyt8= +github.com/prometheus/client_model v0.6.1 h1:ZKSh/rekM+n3CeS952MLRAdFwIKqeY8b62p8ais2e9E= +github.com/prometheus/client_model v0.6.1/go.mod h1:OrxVMOVHjw3lKMa8+x6HeMGkHMQyHDk9E3jmP2AmGiY= github.com/prometheus/common v0.4.1/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4= github.com/prometheus/common v0.6.0/go.mod h1:eBmuwkDJBwy6iBfxCBob6t6dR6ENT/y+J+Zk0j9GMYc= github.com/prometheus/common v0.50.0 h1:YSZE6aa9+luNa2da6/Tik0q0A5AbR+U003TItK57CPQ= github.com/prometheus/common v0.50.0/go.mod h1:wHFBCEVWVmHMUpg7pYcOm2QUR/ocQdYSJVQJKnHc3xQ= +github.com/prometheus/common v0.55.0 h1:KEi6DK7lXW/m7Ig5i47x0vRzuBsHuvJdi5ee6Y3G1dc= +github.com/prometheus/common v0.55.0/go.mod h1:2SECS4xJG1kd8XF9IcM1gMX6510RAEL65zxzNImwdc8= github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk= github.com/prometheus/procfs v0.0.2/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA= github.com/prometheus/procfs v0.0.3/go.mod h1:4A/X28fw3Fc593LaREMrKMqOKvUAntwMDaekg4FpcdQ= github.com/prometheus/procfs v0.13.0 h1:GqzLlQyfsPbaEHaQkO7tbDlriv/4o5Hudv6OXHGKX7o= github.com/prometheus/procfs v0.13.0/go.mod h1:cd4PFCR54QLnGKPaKGA6l+cfuNXtht43ZKY6tow0Y1g= +github.com/prometheus/procfs v0.15.1 h1:YagwOFzUgYfKKHX6Dr+sHT7km/hxC76UB0learggepc= +github.com/prometheus/procfs v0.15.1/go.mod h1:fB45yRUv8NstnjriLhBQLuOUt+WW4BsoGhij/e3PBqk= github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc= github.com/rivo/uniseg v0.4.7 h1:WUdvkW8uEhrYfLC4ZzdpI2ztxP1I582+49Oc5Mq64VQ= github.com/rivo/uniseg v0.4.7/go.mod h1:FN3SvrM+Zdj16jyLfmOkMNblXMcoc8DfTHruCPUcx88= @@ -341,6 +379,8 @@ github.com/rogpeppe/go-internal v1.11.0 h1:cWPaGQEPrBb5/AsnsZesgZZ9yb1OQ+GOISoDN github.com/rogpeppe/go-internal v1.11.0/go.mod h1:ddIwULY96R17DhadqLgMfk9H9tvdUzkipdSkR5nkCZA= github.com/rubenv/sql-migrate v1.6.1 h1:bo6/sjsan9HaXAsNxYP/jCEDUGibHp8JmOBw7NTGRos= github.com/rubenv/sql-migrate v1.6.1/go.mod h1:tPzespupJS0jacLfhbwto/UjSX+8h2FdWB7ar+QlHa0= +github.com/rubenv/sql-migrate v1.7.0 h1:HtQq1xyTN2ISmQDggnh0c9U3JlP8apWh8YO2jzlXpTI= +github.com/rubenv/sql-migrate v1.7.0/go.mod h1:S4wtDEG1CKn+0ShpTtzWhFpHHI5PvCUtiGI+C+Z2THE= github.com/russross/blackfriday/v2 v2.1.0 h1:JIOH55/0cWyOuilr9/qlrm0BSXldqnqwMsf35Ld67mk= github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= github.com/sergi/go-diff v1.1.0 h1:we8PVUC3FE2uYfodKH/nBHMSetSfHDR6scGdBi+erh0= @@ -348,6 +388,8 @@ github.com/sergi/go-diff v1.1.0/go.mod h1:STckp+ISIX8hZLjrqAeVduY0gWCT9IjLuqbuNX github.com/shopspring/decimal v1.2.0/go.mod h1:DKyhrW/HYNuLGql+MJL6WCR6knT2jwCFRcu2hWCYk4o= github.com/shopspring/decimal v1.3.1 h1:2Usl1nmF/WZucqkFZhnfFYxxxu8LG21F6nPQBE5gKV8= github.com/shopspring/decimal v1.3.1/go.mod h1:DKyhrW/HYNuLGql+MJL6WCR6knT2jwCFRcu2hWCYk4o= +github.com/shopspring/decimal v1.4.0 h1:bxl37RwXBklmTi0C79JfXCEBD1cqqHt0bbgBAGFp81k= +github.com/shopspring/decimal v1.4.0/go.mod h1:gawqmDU56v4yIKSwfBSFip1HdCCXN8/+DMd9qYNcwME= github.com/sirupsen/logrus v1.2.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo= github.com/sirupsen/logrus v1.8.1/go.mod h1:yWOB1SBYBC5VeMP7gHvWumXLIWorT60ONWic61uBYv0= github.com/sirupsen/logrus v1.9.3 h1:dueUQJ1C2q9oE3F7wvmSGAaVtTmUizReu6fjN8uqzbQ= @@ -355,8 +397,12 @@ github.com/sirupsen/logrus v1.9.3/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVs 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/cast v1.7.0 h1:ntdiHjuueXFgm5nzDRdOS4yfT43P5Fnud6DH50rz/7w= +github.com/spf13/cast v1.7.0/go.mod h1:ancEpBxwJDODSW/UG4rDrAqiKolqNNh2DX3mk86cAdo= 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/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA= github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= @@ -370,6 +416,8 @@ github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/ github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg= github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= +github.com/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/gojsonpointer v0.0.0-20190905194746-02993c407bfb h1:zGWFAtiMcyryUHoUjUJX0/lt1H2+i2Ka2n+D3DImSNo= github.com/xeipuuv/gojsonpointer v0.0.0-20190905194746-02993c407bfb/go.mod h1:N2zxlSyiKSe5eX1tZViRH5QA0qijqEDrYZiPEAiq3wU= @@ -392,12 +440,20 @@ 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/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/contrib/instrumentation/net/http/otelhttp v0.53.0 h1:4K4tsIXefpVJtvA/8srF4V4y0akAoPHkIslgAkjixJA= +go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.53.0/go.mod h1:jjdQuTGVsXV4vSs+CJ2qYDeDPf9yIJV23qlIzBm73Vg= 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 v1.28.0 h1:/SqNcYk+idO0CxKEUOtKQClMK/MimZihKYMruSMViUo= +go.opentelemetry.io/otel v1.28.0/go.mod h1:q68ijF8Fc8CnMHKyzqL6akLO46ePnjkgfIMIjUIX9z4= 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/metric v1.28.0 h1:f0HGvSl1KRAU1DLgLGFjrwVyismPlnuU6JD6bOeuA5Q= +go.opentelemetry.io/otel/metric v1.28.0/go.mod h1:Fb1eVBFZmLVTMb6PPohq3TO9IIhUisDsbJoL/+uQW4s= 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/otel/trace v1.28.0 h1:GhQ9cUuQGmNDd5BTCP2dAvv75RdMxEfTmYejp+lkx9g= +go.opentelemetry.io/otel/trace v1.28.0/go.mod h1:jPyXzNPg6da9+38HEwElrQiHlVMTnVfM3/yv2OlIHaI= go.starlark.net v0.0.0-20240314022150-ee8ed142361c h1:roAjH18hZcwI4hHStHbkXjF5b7UUyZ/0SG3hXNN1SjA= go.starlark.net v0.0.0-20240314022150-ee8ed142361c/go.mod h1:YKMCv9b1WrfWmeqdV5MAuEHWsu5iC+fe6kYl2sQjdI8= go.uber.org/goleak v1.3.0 h1:2K3zAYmnTNqV73imy9J1T3WC+gmCePx2hEGkimedGto= @@ -412,15 +468,15 @@ golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8U golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= golang.org/x/crypto v0.3.0/go.mod h1:hebNnKkNXi2UzZN1eVRvBB7co0a+JxK6XbPiWVs/3J4= -golang.org/x/crypto v0.21.0 h1:X31++rzVUdKhX5sWmSOFZxx8UW/ldWx55cbf08iNAMA= -golang.org/x/crypto v0.21.0/go.mod h1:0BP7YvVV9gBbVKyeTG0Gyn+gZm94bibOW5BjDEYAOMs= +golang.org/x/crypto v0.26.0 h1:RrRspgV4mU+YwB4FYnuBoKsUapNIL5cohGAmSH3azsw= +golang.org/x/crypto v0.26.0/go.mod h1:GY7jblb9wI+FOo5y8/S2oY4zWP07AkOJ4+jxCqdqn54= golang.org/x/exp v0.0.0-20240314144324-c7f7c6466f7f h1:3CW0unweImhOzd5FmYuRsD4Y4oQFKZIjAnKbjV4WIrw= golang.org/x/exp v0.0.0-20240314144324-c7f7c6466f7f/go.mod h1:CxmFvTBINI24O/j8iY7H1xHzx2i4OsyguNBmN/uPtqc= golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4= -golang.org/x/mod v0.16.0 h1:QX4fJ0Rr5cPQCF7O9lh9Se4pmwfwskqZfq5moyldzic= -golang.org/x/mod v0.16.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c= +golang.org/x/mod v0.20.0 h1:utOm6MM3R3dnawAiJgn0y+xvuYRsm1RKM/4giyfDgV0= +golang.org/x/mod v0.20.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c= golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/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-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= @@ -432,10 +488,12 @@ golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwY golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= golang.org/x/net v0.2.0/go.mod h1:KqCZLdyyvdV855qA2rE3GC2aiw5xGR5TEjj8smXukLY= -golang.org/x/net v0.22.0 h1:9sGLhx7iRIHEiX0oAJ3MRZMUCElJgy7Br1nO+AMN3Tc= -golang.org/x/net v0.22.0/go.mod h1:JKghWKKOSdJwpW2GEx0Ja7fmaKnMsbu+MWVZTokSYmg= +golang.org/x/net v0.28.0 h1:a9JDOJc5GMUJ0+UDqmLT86WiEy7iWyIhz8gz8E4e5hE= +golang.org/x/net v0.28.0/go.mod h1:yqtgsTWOOnlGLG9GFRrK3++bGOUEkNBoHZc8MEDWPNg= golang.org/x/oauth2 v0.18.0 h1:09qnuIAgzdx1XplqJvW6CQqMCtGZykZWcXzPMPUusvI= golang.org/x/oauth2 v0.18.0/go.mod h1:Wf7knwG0MPoWIMMBgFlEaSUDaKskp0dCfrlJRJXbBi8= +golang.org/x/oauth2 v0.21.0 h1:tsimM75w1tF/uws5rbeHzIWxEqElMehnc+iW793zsZs= +golang.org/x/oauth2 v0.21.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= @@ -443,8 +501,8 @@ golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJ golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.6.0 h1:5BMeUDZ7vkXGfEr1x9B4bRcTH4lpkTkpdh0T/J+qjbQ= -golang.org/x/sync v0.6.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= +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-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20181116152217-5ac8a444bdc5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= @@ -469,20 +527,20 @@ golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.0.0-20220908164124-27713097b956/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.2.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.18.0 h1:DBdB3niSjOA/O0blCZBqDefyWNYveAYMNF1Wum0DYQ4= -golang.org/x/sys v0.18.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.24.0 h1:Twjiwq9dn6R1fQcyiK+wQyHWfaz/BJB+YIpzU/Cv3Xg= +golang.org/x/sys v0.24.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/term v0.2.0/go.mod h1:TVmDHMZPmdnySmBfhjOoOdhjzdE1h4u1VwSiw2l1Nuc= -golang.org/x/term v0.18.0 h1:FcHjZXDMxI8mM3nwhX9HlKop4C0YQvCVCdwYl2wOtE8= -golang.org/x/term v0.18.0/go.mod h1:ILwASektA3OnRv7amZ1xhE/KTR+u50pbXfZ03+6Nx58= +golang.org/x/term v0.23.0 h1:F6D4vR+EHoL9/sWAWgAR1H2DcHr4PareCbAaCo1RpuU= +golang.org/x/term v0.23.0/go.mod h1:DgV24QBUrK6jhZXl+20l6UWznPlwAHm1Q1mGHtydmSk= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= golang.org/x/text v0.3.8/go.mod h1:E6s5w1FMmriuDzIBO73fBruAKo1PCIq6d2Q6DHfQ8WQ= golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= -golang.org/x/text v0.14.0 h1:ScX5w1eTa3QqT8oi6+ziP7dTV1S2+ALU0bI+0zXKWiQ= -golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= +golang.org/x/text v0.17.0 h1:XtiM5bkSOt+ewxlOE/aE/AKEHibwj/6gvWMl9Rsh0Qc= +golang.org/x/text v0.17.0/go.mod h1:BuEKDfySbSR4drPmRPG/7iBdf8hvFMuRexcpahXilzY= 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/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= @@ -491,8 +549,8 @@ golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roY golang.org/x/tools v0.0.0-20201224043029-2b0845dc783e/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc= -golang.org/x/tools v0.19.0 h1:tfGCXNR1OsFG+sVdLAitlpjAvD/I6dHDKnYrpEZUHkw= -golang.org/x/tools v0.19.0/go.mod h1:qoJWxmGSIBmAeriMx19ogtrEPrGtDbPK634QFIcLAhc= +golang.org/x/tools v0.24.0 h1:J1shsA93PJUEVaUSaay7UXAyE8aimq3GW0pjlolpa24= +golang.org/x/tools v0.24.0/go.mod h1:YhNqVBIfWHdzvTLs0d8LCuMhkKUgSUKldakyV7W/WDQ= 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= @@ -505,8 +563,12 @@ google.golang.org/appengine v1.6.8 h1:IhEN5q69dyKagZPYMSdIjS2HqprW324FRQZJcGqPAs google.golang.org/appengine v1.6.8/go.mod h1:1jJ3jBArFh5pcgW8gCtRJnepW8FzD1V44FJffLiz/Ds= google.golang.org/genproto/googleapis/rpc v0.0.0-20240314234333-6e1732d8331c h1:lfpJ/2rWPa/kJgxyyXM8PrNnfCzcmxJ265mADgwmvLI= google.golang.org/genproto/googleapis/rpc v0.0.0-20240314234333-6e1732d8331c/go.mod h1:WtryC6hu0hhx87FDGxWCDptyssuo68sk10vYjF+T9fY= +google.golang.org/genproto/googleapis/rpc v0.0.0-20240701130421-f6361c86f094 h1:BwIjyKYGsK9dMCBOorzRri8MQwmi7mT9rGHsCEinZkA= +google.golang.org/genproto/googleapis/rpc v0.0.0-20240701130421-f6361c86f094/go.mod h1:Ue6ibwXGpU+dqIcODieyLOcgj7z8+IcskoNIgZxtrFY= google.golang.org/grpc v1.62.1 h1:B4n+nfKzOICUXMgyrNd19h/I9oH0L1pizfk1d4zSgTk= google.golang.org/grpc v1.62.1/go.mod h1:IWTG0VlJLCh1SkC58F7np9ka9mx/WNkjl4PGJaiq+QE= +google.golang.org/grpc v1.65.0 h1:bs/cUb4lp1G5iImFFd3u5ixQzweKizoZJAwBNLR42lc= +google.golang.org/grpc v1.65.0/go.mod h1:WgYC2ypjlB0EiQi6wdKixMqukr6lBc0Vo+oOgjrM5ZQ= 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= @@ -515,12 +577,16 @@ google.golang.org/protobuf v1.21.0/go.mod h1:47Nbq4nVaFHyn7ilMalzfO3qCViNmqZ2kzi google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= -google.golang.org/protobuf v1.33.0 h1:uNO2rsAINq/JlFpSdYEKIZ0uKD/R9cpdv0T+yoGwGmI= -google.golang.org/protobuf v1.33.0/go.mod h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHhKbcUYpos= +google.golang.org/protobuf v1.34.1 h1:9ddQBjfCyZPOHPUiPxpYESBLc+T8P3E+Vo4IbKZgFWg= +google.golang.org/protobuf v1.34.1/go.mod h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHhKbcUYpos= +google.golang.org/protobuf v1.34.2 h1:6xV6lTsCfpGD21XK49h7MhtcApnLqkfYgPcdHftf6hg= +google.golang.org/protobuf v1.34.2/go.mod h1:qYOHts0dSfpeUzUFpOMr/WGzszTmLH+DiWniOlNbLDw= gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk= gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q= +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/evanphx/json-patch.v5 v5.6.0 h1:BMT6KIwBD9CaU91PJCZIe46bDmBWa9ynTQgJIOpfQBk= gopkg.in/evanphx/json-patch.v5 v5.6.0/go.mod h1:/kvTRh1TVm5wuM6OkHxqXtE/1nUZZpihg29RtuIyfvk= gopkg.in/fsnotify.v1 v1.4.7/go.mod h1:Tz8NjZHkW78fSQdbUxIjBTcgA1z1m8ZHf0WmKUhAMys= @@ -543,38 +609,74 @@ gotest.tools/v3 v3.4.0 h1:ZazjZUfuVeZGLAmlKKuyv3IKP5orXcwtOwDQH6YVr6o= gotest.tools/v3 v3.4.0/go.mod h1:CtbdzLSsqVhDgMtKsx03ird5YTGB3ar27v0u/yKBW5g= helm.sh/helm/v3 v3.14.3 h1:HmvRJlwyyt9HjgmAuxHbHv3PhMz9ir/XNWHyXfmnOP4= helm.sh/helm/v3 v3.14.3/go.mod h1:v6myVbyseSBJTzhmeE39UcPLNv6cQK6qss3dvgAySaE= +helm.sh/helm/v3 v3.16.1 h1:cER6tI/8PgUAsaJaQCVBUg3VI9KN4oVaZJgY60RIc0c= +helm.sh/helm/v3 v3.16.1/go.mod h1:r+xBHHP20qJeEqtvBXMf7W35QDJnzY/eiEBzt+TfHps= k8s.io/api v0.29.3 h1:2ORfZ7+bGC3YJqGpV0KSDDEVf8hdGQ6A03/50vj8pmw= k8s.io/api v0.29.3/go.mod h1:y2yg2NTyHUUkIoTC+phinTnEa3KFM6RZ3szxt014a80= +k8s.io/api v0.31.0 h1:b9LiSjR2ym/SzTOlfMHm1tr7/21aD7fSkqgD/CVJBCo= +k8s.io/api v0.31.0/go.mod h1:0YiFF+JfFxMM6+1hQei8FY8M7s1Mth+z/q7eF1aJkTE= +k8s.io/api v0.31.1 h1:Xe1hX/fPW3PXYYv8BlozYqw63ytA92snr96zMW9gWTU= +k8s.io/api v0.31.1/go.mod h1:sbN1g6eY6XVLeqNsZGLnI5FwVseTrZX7Fv3O26rhAaI= k8s.io/apiextensions-apiserver v0.29.3 h1:9HF+EtZaVpFjStakF4yVufnXGPRppWFEQ87qnO91YeI= k8s.io/apiextensions-apiserver v0.29.3/go.mod h1:po0XiY5scnpJfFizNGo6puNU6Fq6D70UJY2Cb2KwAVc= +k8s.io/apiextensions-apiserver v0.31.0 h1:fZgCVhGwsclj3qCw1buVXCV6khjRzKC5eCFt24kyLSk= +k8s.io/apiextensions-apiserver v0.31.0/go.mod h1:b9aMDEYaEe5sdK+1T0KU78ApR/5ZVp4i56VacZYEHxk= k8s.io/apimachinery v0.29.3 h1:2tbx+5L7RNvqJjn7RIuIKu9XTsIZ9Z5wX2G22XAa5EU= k8s.io/apimachinery v0.29.3/go.mod h1:hx/S4V2PNW4OMg3WizRrHutyB5la0iCUbZym+W0EQIU= +k8s.io/apimachinery v0.31.0 h1:m9jOiSr3FoSSL5WO9bjm1n6B9KROYYgNZOb4tyZ1lBc= +k8s.io/apimachinery v0.31.0/go.mod h1:rsPdaZJfTfLsNJSQzNHQvYoTmxhoOEofxtOsF3rtsMo= +k8s.io/apimachinery v0.31.1 h1:mhcUBbj7KUjaVhyXILglcVjuS4nYXiwC+KKFBgIVy7U= +k8s.io/apimachinery v0.31.1/go.mod h1:rsPdaZJfTfLsNJSQzNHQvYoTmxhoOEofxtOsF3rtsMo= k8s.io/apiserver v0.29.3 h1:xR7ELlJ/BZSr2n4CnD3lfA4gzFivh0wwfNfz9L0WZcE= k8s.io/apiserver v0.29.3/go.mod h1:hrvXlwfRulbMbBgmWRQlFru2b/JySDpmzvQwwk4GUOs= +k8s.io/apiserver v0.31.0 h1:p+2dgJjy+bk+B1Csz+mc2wl5gHwvNkC9QJV+w55LVrY= +k8s.io/apiserver v0.31.0/go.mod h1:KI9ox5Yu902iBnnyMmy7ajonhKnkeZYJhTZ/YI+WEMk= k8s.io/cli-runtime v0.29.3 h1:r68rephmmytoywkw2MyJ+CxjpasJDQY7AGc3XY2iv1k= k8s.io/cli-runtime v0.29.3/go.mod h1:aqVUsk86/RhaGJwDhHXH0jcdqBrgdF3bZWk4Z9D4mkM= +k8s.io/cli-runtime v0.31.0 h1:V2Q1gj1u3/WfhD475HBQrIYsoryg/LrhhK4RwpN+DhA= +k8s.io/cli-runtime v0.31.0/go.mod h1:vg3H94wsubuvWfSmStDbekvbla5vFGC+zLWqcf+bGDw= +k8s.io/cli-runtime v0.31.1 h1:/ZmKhmZ6hNqDM+yf9s3Y4KEYakNXUn5sod2LWGGwCuk= +k8s.io/cli-runtime v0.31.1/go.mod h1:pKv1cDIaq7ehWGuXQ+A//1OIF+7DI+xudXtExMCbe9U= k8s.io/client-go v0.29.3 h1:R/zaZbEAxqComZ9FHeQwOh3Y1ZUs7FaHKZdQtIc2WZg= k8s.io/client-go v0.29.3/go.mod h1:tkDisCvgPfiRpxGnOORfkljmS+UrW+WtXAy2fTvXJB0= +k8s.io/client-go v0.31.0 h1:QqEJzNjbN2Yv1H79SsS+SWnXkBgVu4Pj3CJQgbx0gI8= +k8s.io/client-go v0.31.0/go.mod h1:Y9wvC76g4fLjmU0BA+rV+h2cncoadjvjjkkIGoTLcGU= +k8s.io/client-go v0.31.1 h1:f0ugtWSbWpxHR7sjVpQwuvw9a3ZKLXX0u0itkFXufb0= +k8s.io/client-go v0.31.1/go.mod h1:sKI8871MJN2OyeqRlmA4W4KM9KBdBUpDLu/43eGemCg= k8s.io/component-base v0.29.3 h1:Oq9/nddUxlnrCuuR2K/jp6aflVvc0uDvxMzAWxnGzAo= k8s.io/component-base v0.29.3/go.mod h1:Yuj33XXjuOk2BAaHsIGHhCKZQAgYKhqIxIjIr2UXYio= +k8s.io/component-base v0.31.0 h1:/KIzGM5EvPNQcYgwq5NwoQBaOlVFrghoVGr8lG6vNRs= +k8s.io/component-base v0.31.0/go.mod h1:TYVuzI1QmN4L5ItVdMSXKvH7/DtvIuas5/mm8YT3rTo= k8s.io/klog/v2 v2.120.1 h1:QXU6cPEOIslTGvZaXvFWiP9VKyeet3sawzTOvdXb4Vw= k8s.io/klog/v2 v2.120.1/go.mod h1:3Jpz1GvMt720eyJH1ckRHK1EDfpxISzJ7I9OYgaDtPE= +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-20240228011516-70dd3763d340 h1:BZqlfIlq5YbRMFko6/PM7FjZpUb45WallggurYhKGag= k8s.io/kube-openapi v0.0.0-20240228011516-70dd3763d340/go.mod h1:yD4MZYeKMBwQKVht279WycxKyM84kkAx2DPrTXaeb98= k8s.io/kubectl v0.29.3 h1:RuwyyIU42MAISRIePaa8Q7A3U74Q9P4MoJbDFz9o3us= k8s.io/kubectl v0.29.3/go.mod h1:yCxfY1dbwgVdEt2zkJ6d5NNLOhhWgTyrqACIoFhpdd4= +k8s.io/kubectl v0.31.0 h1:kANwAAPVY02r4U4jARP/C+Q1sssCcN/1p9Nk+7BQKVg= +k8s.io/kubectl v0.31.0/go.mod h1:pB47hhFypGsaHAPjlwrNbvhXgmuAr01ZBvAIIUaI8d4= k8s.io/utils v0.0.0-20240310230437-4693a0247e57 h1:gbqbevonBh57eILzModw6mrkbwM0gQBEuevE/AaBsHY= k8s.io/utils v0.0.0-20240310230437-4693a0247e57/go.mod h1:OLgZIPagt7ERELqWJFomSt595RzquPNLL48iOWgYOg0= +k8s.io/utils v0.0.0-20240711033017-18e509b52bc8 h1:pUdcCO1Lk/tbT5ztQWOBi5HBgbBP1J8+AsQnQCKsi8A= +k8s.io/utils v0.0.0-20240711033017-18e509b52bc8/go.mod h1:OLgZIPagt7ERELqWJFomSt595RzquPNLL48iOWgYOg0= oras.land/oras-go v1.2.5 h1:XpYuAwAb0DfQsunIyMfeET92emK8km3W4yEzZvUbsTo= oras.land/oras-go v1.2.5/go.mod h1:PuAwRShRZCsZb7g8Ar3jKKQR/2A/qN+pkYxIOd/FAoo= sigs.k8s.io/controller-runtime v0.17.2 h1:FwHwD1CTUemg0pW2otk7/U5/i5m2ymzvOXdbeGOUvw0= sigs.k8s.io/controller-runtime v0.17.2/go.mod h1:+MngTvIQQQhfXtwfdGw/UOQ/aIaqsYywfCINOtwMO/s= +sigs.k8s.io/controller-runtime v0.19.0 h1:nWVM7aq+Il2ABxwiCizrVDSlmDcshi9llbaFbC0ji/Q= +sigs.k8s.io/controller-runtime v0.19.0/go.mod h1:iRmWllt8IlaLjvTTDLhRBXIEtkCK6hwVBJJsYS9Ajf4= sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd h1:EDPBXCAspyGV4jQlpZSudPeMmr1bNJefnuqLsRAsHZo= sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd/go.mod h1:B8JuhiUyNFVKdsE8h686QcCxMaH6HrOAZj4vswFpcB0= sigs.k8s.io/kustomize/api v0.16.0 h1:/zAR4FOQDCkgSDmVzV2uiFbuy9bhu3jEzthrHCuvm1g= sigs.k8s.io/kustomize/api v0.16.0/go.mod h1:MnFZ7IP2YqVyVwMWoRxPtgl/5hpA+eCCrQR/866cm5c= +sigs.k8s.io/kustomize/api v0.17.2 h1:E7/Fjk7V5fboiuijoZHgs4aHuexi5Y2loXlVOAVAG5g= +sigs.k8s.io/kustomize/api v0.17.2/go.mod h1:UWTz9Ct+MvoeQsHcJ5e+vziRRkwimm3HytpZgIYqye0= sigs.k8s.io/kustomize/kyaml v0.16.0 h1:6J33uKSoATlKZH16unr2XOhDI+otoe2sR3M8PDzW3K0= sigs.k8s.io/kustomize/kyaml v0.16.0/go.mod h1:xOK/7i+vmE14N2FdFyugIshB8eF6ALpy7jI87Q2nRh4= +sigs.k8s.io/kustomize/kyaml v0.17.1 h1:TnxYQxFXzbmNG6gOINgGWQt09GghzgTP6mIurOgrLCQ= +sigs.k8s.io/kustomize/kyaml v0.17.1/go.mod h1:9V0mCjIEYjlXuCdYsSXvyoy2BTsLESH7TlGV81S282U= sigs.k8s.io/structured-merge-diff/v4 v4.4.1 h1:150L+0vs/8DA78h1u02ooW1/fFq/Lwr+sGiqlzvrtq4= sigs.k8s.io/structured-merge-diff/v4 v4.4.1/go.mod h1:N8hJocpFajUSSeSJ9bOZ77VzejKZaXsTtZo4/u7Io08= sigs.k8s.io/yaml v1.4.0 h1:Mk1wCc2gy/F0THH0TAp1QYyJNzRm2KCLy3o5ASXVI5E= diff --git a/interfaces.go b/interfaces.go new file mode 100644 index 0000000..52d1a17 --- /dev/null +++ b/interfaces.go @@ -0,0 +1,12 @@ +// Code generated by mockery v2.14.0. DO NOT EDIT. + +package main + +import ( + "sigs.k8s.io/controller-runtime/pkg/manager" +) + +// Manager was an autogenerated mock type for the Manager type but must somehow maintained manually. +type Manager interface { + manager.Manager +} diff --git a/k8s/helm/component-patch-tpl.yaml b/k8s/helm/component-patch-tpl.yaml index 3d08f7f..1ef3576 100644 --- a/k8s/helm/component-patch-tpl.yaml +++ b/k8s/helm/component-patch-tpl.yaml @@ -1,7 +1,7 @@ apiVersion: v1 values: images: - componentOperator: cloudogu/k8s-component-operator:1.1.0 + componentOperator: cloudogu/k8s-component-operator:1.1.1 kubeRbacProxy: gcr.io/kubebuilder/kube-rbac-proxy:v0.14.1 patches: values.yaml: diff --git a/k8s/helm/values.yaml b/k8s/helm/values.yaml index 8e499fc..735fb53 100644 --- a/k8s/helm/values.yaml +++ b/k8s/helm/values.yaml @@ -1,7 +1,7 @@ manager: image: repository: cloudogu/k8s-component-operator - tag: 1.1.0 + tag: 1.1.1 imagePullPolicy: IfNotPresent env: logLevel: info diff --git a/main_internal_test.go b/main_internal_test.go index 23a9bec..b407abd 100644 --- a/main_internal_test.go +++ b/main_internal_test.go @@ -9,8 +9,6 @@ import ( "sigs.k8s.io/controller-runtime/pkg/config" "testing" - "github.com/cloudogu/k8s-component-operator/pkg/mocks/external" - "github.com/go-logr/logr" "github.com/stretchr/testify/mock" "github.com/stretchr/testify/require" @@ -35,8 +33,8 @@ func getCopyMap(definitions map[string]mockDefinition) map[string]mockDefinition return newCopyMap } -func getNewMockManager(expectedErrorOnNewManager error, definitions map[string]mockDefinition) manager.Manager { - k8sManager := &external.Manager{} +func getNewMockManager(t *testing.T, expectedErrorOnNewManager error, definitions map[string]mockDefinition) manager.Manager { + k8sManager := NewMockManager(t) ctrl.NewManager = func(config *rest.Config, options manager.Options) (manager.Manager, error) { for key, value := range definitions { k8sManager.Mock.On(key, value.Arguments...).Return(value.ReturnValue) @@ -44,7 +42,7 @@ func getNewMockManager(expectedErrorOnNewManager error, definitions map[string]m return k8sManager, expectedErrorOnNewManager } ctrl.SetLogger = func(l logr.Logger) { - k8sManager.Mock.On("GetLogger").Return(l) + k8sManager.Mock.On("GetLogger").Return(l).Maybe() } flag.CommandLine = flag.NewFlagSet(os.Args[0], flag.ContinueOnError) @@ -87,22 +85,25 @@ func Test_startDoguOperator(t *testing.T) { utilruntime.Must(v1.AddToScheme(scheme)) myConfig := &rest.Config{} + skipNameValidation := true defaultMockDefinitions := map[string]mockDefinition{ - "GetScheme": {ReturnValue: scheme}, - "GetConfig": {ReturnValue: myConfig}, - "Add": {Arguments: []interface{}{mock.Anything}, ReturnValue: nil}, - "AddHealthzCheck": {Arguments: []interface{}{mock.Anything, mock.Anything}, ReturnValue: nil}, - "AddReadyzCheck": {Arguments: []interface{}{mock.Anything, mock.Anything}, ReturnValue: nil}, - "Start": {Arguments: []interface{}{mock.Anything}, ReturnValue: nil}, - "GetControllerOptions": {ReturnValue: config.Controller{}}, - "GetEventRecorderFor": {Arguments: []interface{}{mock.Anything}, ReturnValue: nil}, - "GetCache": {Arguments: []interface{}{mock.Anything}, ReturnValue: nil}, + "GetScheme": {ReturnValue: scheme}, + "GetConfig": {ReturnValue: myConfig}, + "GetEventRecorderFor": {Arguments: []interface{}{mock.Anything}, ReturnValue: nil}, + "GetControllerOptions": {ReturnValue: config.Controller{ + SkipNameValidation: &skipNameValidation, + }}, + "Add": {Arguments: []interface{}{mock.Anything}, ReturnValue: nil}, + "GetCache": {Arguments: []interface{}{mock.Anything}, ReturnValue: nil}, + "AddHealthzCheck": {Arguments: []interface{}{mock.Anything, mock.Anything}, ReturnValue: nil}, + "AddReadyzCheck": {Arguments: []interface{}{mock.Anything, mock.Anything}, ReturnValue: nil}, + "Start": {Arguments: []interface{}{mock.Anything}, ReturnValue: nil}, } t.Run("Error on missing namespace environment variable", func(t *testing.T) { // given _ = os.Unsetenv("NAMESPACE") - getNewMockManager(nil, defaultMockDefinitions) + getNewMockManager(t, nil, defaultMockDefinitions) // when err := startOperator() @@ -116,7 +117,7 @@ func Test_startDoguOperator(t *testing.T) { t.Setenv("RUNTIME", "local") t.Run("Test without logger environment variables", func(t *testing.T) { // given - k8sManager := getNewMockManager(nil, defaultMockDefinitions) + k8sManager := getNewMockManager(t, nil, defaultMockDefinitions) // when err := startOperator() @@ -126,11 +127,10 @@ func Test_startDoguOperator(t *testing.T) { mock.AssertExpectationsForObjects(t, k8sManager) }) - expectedError := fmt.Errorf("this is my expected error") - t.Run("Test with error on manager creation", func(t *testing.T) { // given - getNewMockManager(expectedError, defaultMockDefinitions) + expectedError := fmt.Errorf("this is my expected error") + getNewMockManager(t, expectedError, map[string]mockDefinition{}) // when err := startOperator() @@ -139,28 +139,76 @@ func Test_startDoguOperator(t *testing.T) { require.ErrorIs(t, err, expectedError) }) - mockDefinitionsThatCanFail := []string{ - "Add", - "AddHealthzCheck", - "AddReadyzCheck", - "Start", - } + t.Run(fmt.Sprintf("fail setup when error on %s", "Add"), func(t *testing.T) { + // given + expectedError := fmt.Errorf("this is my expected error for Add") + adaptedMockDefinitions := getCopyMap(defaultMockDefinitions) + adaptedMockDefinitions["Add"] = mockDefinition{ + Arguments: adaptedMockDefinitions["Add"].Arguments, + ReturnValue: expectedError, + } + delete(adaptedMockDefinitions, "GetCache") + delete(adaptedMockDefinitions, "AddHealthzCheck") + delete(adaptedMockDefinitions, "AddReadyzCheck") + delete(adaptedMockDefinitions, "Start") - for _, mockDefinitionName := range mockDefinitionsThatCanFail { - t.Run(fmt.Sprintf("fail setup when error on %s", mockDefinitionName), func(t *testing.T) { - // given - adaptedMockDefinitions := getCopyMap(defaultMockDefinitions) - adaptedMockDefinitions[mockDefinitionName] = mockDefinition{ - Arguments: adaptedMockDefinitions[mockDefinitionName].Arguments, - ReturnValue: expectedError, - } - getNewMockManager(nil, adaptedMockDefinitions) - - // when - err := startOperator() - - // then - require.ErrorIs(t, err, expectedError) - }) - } + getNewMockManager(t, nil, adaptedMockDefinitions) + + // when + err := startOperator() + + // then + require.ErrorIs(t, err, expectedError) + }) + t.Run(fmt.Sprintf("fail setup when error on %s", "AddHealthzCheck"), func(t *testing.T) { + // given + expectedError := fmt.Errorf("this is my expected error for AddHealthzCheck") + adaptedMockDefinitions := getCopyMap(defaultMockDefinitions) + adaptedMockDefinitions["AddHealthzCheck"] = mockDefinition{ + Arguments: adaptedMockDefinitions["AddHealthzCheck"].Arguments, + ReturnValue: expectedError, + } + delete(adaptedMockDefinitions, "AddReadyzCheck") + delete(adaptedMockDefinitions, "Start") + getNewMockManager(t, nil, adaptedMockDefinitions) + + // when + err := startOperator() + + // then + require.ErrorIs(t, err, expectedError) + }) + t.Run(fmt.Sprintf("fail setup when error on %s", "AddReadyzCheck"), func(t *testing.T) { + // given + expectedError := fmt.Errorf("this is my expected error for AddReadyzCheck") + adaptedMockDefinitions := getCopyMap(defaultMockDefinitions) + adaptedMockDefinitions["AddReadyzCheck"] = mockDefinition{ + Arguments: adaptedMockDefinitions["AddReadyzCheck"].Arguments, + ReturnValue: expectedError, + } + delete(adaptedMockDefinitions, "Start") + getNewMockManager(t, nil, adaptedMockDefinitions) + + // when + err := startOperator() + + // then + require.ErrorIs(t, err, expectedError) + }) + t.Run(fmt.Sprintf("fail setup when error on %s", "Start"), func(t *testing.T) { + // given + expectedError := fmt.Errorf("this is my expected error for Start") + adaptedMockDefinitions := getCopyMap(defaultMockDefinitions) + adaptedMockDefinitions["Start"] = mockDefinition{ + Arguments: adaptedMockDefinitions["Start"].Arguments, + ReturnValue: expectedError, + } + getNewMockManager(t, nil, adaptedMockDefinitions) + + // when + err := startOperator() + + // then + require.ErrorIs(t, err, expectedError) + }) } diff --git a/mock_Manager_test.go b/mock_Manager_test.go new file mode 100644 index 0000000..919fb9e --- /dev/null +++ b/mock_Manager_test.go @@ -0,0 +1,900 @@ +// Code generated by mockery v2.42.1. DO NOT EDIT. + +package main + +import ( + cache "sigs.k8s.io/controller-runtime/pkg/cache" + client "sigs.k8s.io/controller-runtime/pkg/client" + + config "sigs.k8s.io/controller-runtime/pkg/config" + + context "context" + + healthz "sigs.k8s.io/controller-runtime/pkg/healthz" + + http "net/http" + + logr "github.com/go-logr/logr" + + manager "sigs.k8s.io/controller-runtime/pkg/manager" + + meta "k8s.io/apimachinery/pkg/api/meta" + + mock "github.com/stretchr/testify/mock" + + record "k8s.io/client-go/tools/record" + + rest "k8s.io/client-go/rest" + + runtime "k8s.io/apimachinery/pkg/runtime" + + webhook "sigs.k8s.io/controller-runtime/pkg/webhook" +) + +// MockManager is an autogenerated mock type for the Manager type +type MockManager struct { + mock.Mock +} + +type MockManager_Expecter struct { + mock *mock.Mock +} + +func (_m *MockManager) EXPECT() *MockManager_Expecter { + return &MockManager_Expecter{mock: &_m.Mock} +} + +// Add provides a mock function with given fields: _a0 +func (_m *MockManager) Add(_a0 manager.Runnable) error { + ret := _m.Called(_a0) + + if len(ret) == 0 { + panic("no return value specified for Add") + } + + var r0 error + if rf, ok := ret.Get(0).(func(manager.Runnable) error); ok { + r0 = rf(_a0) + } else { + r0 = ret.Error(0) + } + + return r0 +} + +// MockManager_Add_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Add' +type MockManager_Add_Call struct { + *mock.Call +} + +// Add is a helper method to define mock.On call +// - _a0 manager.Runnable +func (_e *MockManager_Expecter) Add(_a0 interface{}) *MockManager_Add_Call { + return &MockManager_Add_Call{Call: _e.mock.On("Add", _a0)} +} + +func (_c *MockManager_Add_Call) Run(run func(_a0 manager.Runnable)) *MockManager_Add_Call { + _c.Call.Run(func(args mock.Arguments) { + run(args[0].(manager.Runnable)) + }) + return _c +} + +func (_c *MockManager_Add_Call) Return(_a0 error) *MockManager_Add_Call { + _c.Call.Return(_a0) + return _c +} + +func (_c *MockManager_Add_Call) RunAndReturn(run func(manager.Runnable) error) *MockManager_Add_Call { + _c.Call.Return(run) + return _c +} + +// AddHealthzCheck provides a mock function with given fields: name, check +func (_m *MockManager) AddHealthzCheck(name string, check healthz.Checker) error { + ret := _m.Called(name, check) + + if len(ret) == 0 { + panic("no return value specified for AddHealthzCheck") + } + + var r0 error + if rf, ok := ret.Get(0).(func(string, healthz.Checker) error); ok { + r0 = rf(name, check) + } else { + r0 = ret.Error(0) + } + + return r0 +} + +// MockManager_AddHealthzCheck_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddHealthzCheck' +type MockManager_AddHealthzCheck_Call struct { + *mock.Call +} + +// AddHealthzCheck is a helper method to define mock.On call +// - name string +// - check healthz.Checker +func (_e *MockManager_Expecter) AddHealthzCheck(name interface{}, check interface{}) *MockManager_AddHealthzCheck_Call { + return &MockManager_AddHealthzCheck_Call{Call: _e.mock.On("AddHealthzCheck", name, check)} +} + +func (_c *MockManager_AddHealthzCheck_Call) Run(run func(name string, check healthz.Checker)) *MockManager_AddHealthzCheck_Call { + _c.Call.Run(func(args mock.Arguments) { + run(args[0].(string), args[1].(healthz.Checker)) + }) + return _c +} + +func (_c *MockManager_AddHealthzCheck_Call) Return(_a0 error) *MockManager_AddHealthzCheck_Call { + _c.Call.Return(_a0) + return _c +} + +func (_c *MockManager_AddHealthzCheck_Call) RunAndReturn(run func(string, healthz.Checker) error) *MockManager_AddHealthzCheck_Call { + _c.Call.Return(run) + return _c +} + +// AddMetricsServerExtraHandler provides a mock function with given fields: path, handler +func (_m *MockManager) AddMetricsServerExtraHandler(path string, handler http.Handler) error { + ret := _m.Called(path, handler) + + if len(ret) == 0 { + panic("no return value specified for AddMetricsServerExtraHandler") + } + + var r0 error + if rf, ok := ret.Get(0).(func(string, http.Handler) error); ok { + r0 = rf(path, handler) + } else { + r0 = ret.Error(0) + } + + return r0 +} + +// MockManager_AddMetricsServerExtraHandler_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddMetricsServerExtraHandler' +type MockManager_AddMetricsServerExtraHandler_Call struct { + *mock.Call +} + +// AddMetricsServerExtraHandler is a helper method to define mock.On call +// - path string +// - handler http.Handler +func (_e *MockManager_Expecter) AddMetricsServerExtraHandler(path interface{}, handler interface{}) *MockManager_AddMetricsServerExtraHandler_Call { + return &MockManager_AddMetricsServerExtraHandler_Call{Call: _e.mock.On("AddMetricsServerExtraHandler", path, handler)} +} + +func (_c *MockManager_AddMetricsServerExtraHandler_Call) Run(run func(path string, handler http.Handler)) *MockManager_AddMetricsServerExtraHandler_Call { + _c.Call.Run(func(args mock.Arguments) { + run(args[0].(string), args[1].(http.Handler)) + }) + return _c +} + +func (_c *MockManager_AddMetricsServerExtraHandler_Call) Return(_a0 error) *MockManager_AddMetricsServerExtraHandler_Call { + _c.Call.Return(_a0) + return _c +} + +func (_c *MockManager_AddMetricsServerExtraHandler_Call) RunAndReturn(run func(string, http.Handler) error) *MockManager_AddMetricsServerExtraHandler_Call { + _c.Call.Return(run) + return _c +} + +// AddReadyzCheck provides a mock function with given fields: name, check +func (_m *MockManager) AddReadyzCheck(name string, check healthz.Checker) error { + ret := _m.Called(name, check) + + if len(ret) == 0 { + panic("no return value specified for AddReadyzCheck") + } + + var r0 error + if rf, ok := ret.Get(0).(func(string, healthz.Checker) error); ok { + r0 = rf(name, check) + } else { + r0 = ret.Error(0) + } + + return r0 +} + +// MockManager_AddReadyzCheck_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddReadyzCheck' +type MockManager_AddReadyzCheck_Call struct { + *mock.Call +} + +// AddReadyzCheck is a helper method to define mock.On call +// - name string +// - check healthz.Checker +func (_e *MockManager_Expecter) AddReadyzCheck(name interface{}, check interface{}) *MockManager_AddReadyzCheck_Call { + return &MockManager_AddReadyzCheck_Call{Call: _e.mock.On("AddReadyzCheck", name, check)} +} + +func (_c *MockManager_AddReadyzCheck_Call) Run(run func(name string, check healthz.Checker)) *MockManager_AddReadyzCheck_Call { + _c.Call.Run(func(args mock.Arguments) { + run(args[0].(string), args[1].(healthz.Checker)) + }) + return _c +} + +func (_c *MockManager_AddReadyzCheck_Call) Return(_a0 error) *MockManager_AddReadyzCheck_Call { + _c.Call.Return(_a0) + return _c +} + +func (_c *MockManager_AddReadyzCheck_Call) RunAndReturn(run func(string, healthz.Checker) error) *MockManager_AddReadyzCheck_Call { + _c.Call.Return(run) + return _c +} + +// Elected provides a mock function with given fields: +func (_m *MockManager) Elected() <-chan struct{} { + ret := _m.Called() + + if len(ret) == 0 { + panic("no return value specified for Elected") + } + + var r0 <-chan struct{} + if rf, ok := ret.Get(0).(func() <-chan struct{}); ok { + r0 = rf() + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(<-chan struct{}) + } + } + + return r0 +} + +// MockManager_Elected_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Elected' +type MockManager_Elected_Call struct { + *mock.Call +} + +// Elected is a helper method to define mock.On call +func (_e *MockManager_Expecter) Elected() *MockManager_Elected_Call { + return &MockManager_Elected_Call{Call: _e.mock.On("Elected")} +} + +func (_c *MockManager_Elected_Call) Run(run func()) *MockManager_Elected_Call { + _c.Call.Run(func(args mock.Arguments) { + run() + }) + return _c +} + +func (_c *MockManager_Elected_Call) Return(_a0 <-chan struct{}) *MockManager_Elected_Call { + _c.Call.Return(_a0) + return _c +} + +func (_c *MockManager_Elected_Call) RunAndReturn(run func() <-chan struct{}) *MockManager_Elected_Call { + _c.Call.Return(run) + return _c +} + +// GetAPIReader provides a mock function with given fields: +func (_m *MockManager) GetAPIReader() client.Reader { + ret := _m.Called() + + if len(ret) == 0 { + panic("no return value specified for GetAPIReader") + } + + var r0 client.Reader + if rf, ok := ret.Get(0).(func() client.Reader); ok { + r0 = rf() + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(client.Reader) + } + } + + return r0 +} + +// MockManager_GetAPIReader_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAPIReader' +type MockManager_GetAPIReader_Call struct { + *mock.Call +} + +// GetAPIReader is a helper method to define mock.On call +func (_e *MockManager_Expecter) GetAPIReader() *MockManager_GetAPIReader_Call { + return &MockManager_GetAPIReader_Call{Call: _e.mock.On("GetAPIReader")} +} + +func (_c *MockManager_GetAPIReader_Call) Run(run func()) *MockManager_GetAPIReader_Call { + _c.Call.Run(func(args mock.Arguments) { + run() + }) + return _c +} + +func (_c *MockManager_GetAPIReader_Call) Return(_a0 client.Reader) *MockManager_GetAPIReader_Call { + _c.Call.Return(_a0) + return _c +} + +func (_c *MockManager_GetAPIReader_Call) RunAndReturn(run func() client.Reader) *MockManager_GetAPIReader_Call { + _c.Call.Return(run) + return _c +} + +// GetCache provides a mock function with given fields: +func (_m *MockManager) GetCache() cache.Cache { + ret := _m.Called() + + if len(ret) == 0 { + panic("no return value specified for GetCache") + } + + var r0 cache.Cache + if rf, ok := ret.Get(0).(func() cache.Cache); ok { + r0 = rf() + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(cache.Cache) + } + } + + return r0 +} + +// MockManager_GetCache_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetCache' +type MockManager_GetCache_Call struct { + *mock.Call +} + +// GetCache is a helper method to define mock.On call +func (_e *MockManager_Expecter) GetCache() *MockManager_GetCache_Call { + return &MockManager_GetCache_Call{Call: _e.mock.On("GetCache")} +} + +func (_c *MockManager_GetCache_Call) Run(run func()) *MockManager_GetCache_Call { + _c.Call.Run(func(args mock.Arguments) { + run() + }) + return _c +} + +func (_c *MockManager_GetCache_Call) Return(_a0 cache.Cache) *MockManager_GetCache_Call { + _c.Call.Return(_a0) + return _c +} + +func (_c *MockManager_GetCache_Call) RunAndReturn(run func() cache.Cache) *MockManager_GetCache_Call { + _c.Call.Return(run) + return _c +} + +// GetClient provides a mock function with given fields: +func (_m *MockManager) GetClient() client.Client { + ret := _m.Called() + + if len(ret) == 0 { + panic("no return value specified for GetClient") + } + + var r0 client.Client + if rf, ok := ret.Get(0).(func() client.Client); ok { + r0 = rf() + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(client.Client) + } + } + + return r0 +} + +// MockManager_GetClient_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetClient' +type MockManager_GetClient_Call struct { + *mock.Call +} + +// GetClient is a helper method to define mock.On call +func (_e *MockManager_Expecter) GetClient() *MockManager_GetClient_Call { + return &MockManager_GetClient_Call{Call: _e.mock.On("GetClient")} +} + +func (_c *MockManager_GetClient_Call) Run(run func()) *MockManager_GetClient_Call { + _c.Call.Run(func(args mock.Arguments) { + run() + }) + return _c +} + +func (_c *MockManager_GetClient_Call) Return(_a0 client.Client) *MockManager_GetClient_Call { + _c.Call.Return(_a0) + return _c +} + +func (_c *MockManager_GetClient_Call) RunAndReturn(run func() client.Client) *MockManager_GetClient_Call { + _c.Call.Return(run) + return _c +} + +// GetConfig provides a mock function with given fields: +func (_m *MockManager) GetConfig() *rest.Config { + ret := _m.Called() + + if len(ret) == 0 { + panic("no return value specified for GetConfig") + } + + var r0 *rest.Config + if rf, ok := ret.Get(0).(func() *rest.Config); ok { + r0 = rf() + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*rest.Config) + } + } + + return r0 +} + +// MockManager_GetConfig_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetConfig' +type MockManager_GetConfig_Call struct { + *mock.Call +} + +// GetConfig is a helper method to define mock.On call +func (_e *MockManager_Expecter) GetConfig() *MockManager_GetConfig_Call { + return &MockManager_GetConfig_Call{Call: _e.mock.On("GetConfig")} +} + +func (_c *MockManager_GetConfig_Call) Run(run func()) *MockManager_GetConfig_Call { + _c.Call.Run(func(args mock.Arguments) { + run() + }) + return _c +} + +func (_c *MockManager_GetConfig_Call) Return(_a0 *rest.Config) *MockManager_GetConfig_Call { + _c.Call.Return(_a0) + return _c +} + +func (_c *MockManager_GetConfig_Call) RunAndReturn(run func() *rest.Config) *MockManager_GetConfig_Call { + _c.Call.Return(run) + return _c +} + +// GetControllerOptions provides a mock function with given fields: +func (_m *MockManager) GetControllerOptions() config.Controller { + ret := _m.Called() + + if len(ret) == 0 { + panic("no return value specified for GetControllerOptions") + } + + var r0 config.Controller + if rf, ok := ret.Get(0).(func() config.Controller); ok { + r0 = rf() + } else { + r0 = ret.Get(0).(config.Controller) + } + + return r0 +} + +// MockManager_GetControllerOptions_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetControllerOptions' +type MockManager_GetControllerOptions_Call struct { + *mock.Call +} + +// GetControllerOptions is a helper method to define mock.On call +func (_e *MockManager_Expecter) GetControllerOptions() *MockManager_GetControllerOptions_Call { + return &MockManager_GetControllerOptions_Call{Call: _e.mock.On("GetControllerOptions")} +} + +func (_c *MockManager_GetControllerOptions_Call) Run(run func()) *MockManager_GetControllerOptions_Call { + _c.Call.Run(func(args mock.Arguments) { + run() + }) + return _c +} + +func (_c *MockManager_GetControllerOptions_Call) Return(_a0 config.Controller) *MockManager_GetControllerOptions_Call { + _c.Call.Return(_a0) + return _c +} + +func (_c *MockManager_GetControllerOptions_Call) RunAndReturn(run func() config.Controller) *MockManager_GetControllerOptions_Call { + _c.Call.Return(run) + return _c +} + +// GetEventRecorderFor provides a mock function with given fields: name +func (_m *MockManager) GetEventRecorderFor(name string) record.EventRecorder { + ret := _m.Called(name) + + if len(ret) == 0 { + panic("no return value specified for GetEventRecorderFor") + } + + var r0 record.EventRecorder + if rf, ok := ret.Get(0).(func(string) record.EventRecorder); ok { + r0 = rf(name) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(record.EventRecorder) + } + } + + return r0 +} + +// MockManager_GetEventRecorderFor_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetEventRecorderFor' +type MockManager_GetEventRecorderFor_Call struct { + *mock.Call +} + +// GetEventRecorderFor is a helper method to define mock.On call +// - name string +func (_e *MockManager_Expecter) GetEventRecorderFor(name interface{}) *MockManager_GetEventRecorderFor_Call { + return &MockManager_GetEventRecorderFor_Call{Call: _e.mock.On("GetEventRecorderFor", name)} +} + +func (_c *MockManager_GetEventRecorderFor_Call) Run(run func(name string)) *MockManager_GetEventRecorderFor_Call { + _c.Call.Run(func(args mock.Arguments) { + run(args[0].(string)) + }) + return _c +} + +func (_c *MockManager_GetEventRecorderFor_Call) Return(_a0 record.EventRecorder) *MockManager_GetEventRecorderFor_Call { + _c.Call.Return(_a0) + return _c +} + +func (_c *MockManager_GetEventRecorderFor_Call) RunAndReturn(run func(string) record.EventRecorder) *MockManager_GetEventRecorderFor_Call { + _c.Call.Return(run) + return _c +} + +// GetFieldIndexer provides a mock function with given fields: +func (_m *MockManager) GetFieldIndexer() client.FieldIndexer { + ret := _m.Called() + + if len(ret) == 0 { + panic("no return value specified for GetFieldIndexer") + } + + var r0 client.FieldIndexer + if rf, ok := ret.Get(0).(func() client.FieldIndexer); ok { + r0 = rf() + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(client.FieldIndexer) + } + } + + return r0 +} + +// MockManager_GetFieldIndexer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetFieldIndexer' +type MockManager_GetFieldIndexer_Call struct { + *mock.Call +} + +// GetFieldIndexer is a helper method to define mock.On call +func (_e *MockManager_Expecter) GetFieldIndexer() *MockManager_GetFieldIndexer_Call { + return &MockManager_GetFieldIndexer_Call{Call: _e.mock.On("GetFieldIndexer")} +} + +func (_c *MockManager_GetFieldIndexer_Call) Run(run func()) *MockManager_GetFieldIndexer_Call { + _c.Call.Run(func(args mock.Arguments) { + run() + }) + return _c +} + +func (_c *MockManager_GetFieldIndexer_Call) Return(_a0 client.FieldIndexer) *MockManager_GetFieldIndexer_Call { + _c.Call.Return(_a0) + return _c +} + +func (_c *MockManager_GetFieldIndexer_Call) RunAndReturn(run func() client.FieldIndexer) *MockManager_GetFieldIndexer_Call { + _c.Call.Return(run) + return _c +} + +// GetHTTPClient provides a mock function with given fields: +func (_m *MockManager) GetHTTPClient() *http.Client { + ret := _m.Called() + + if len(ret) == 0 { + panic("no return value specified for GetHTTPClient") + } + + var r0 *http.Client + if rf, ok := ret.Get(0).(func() *http.Client); ok { + r0 = rf() + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*http.Client) + } + } + + return r0 +} + +// MockManager_GetHTTPClient_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetHTTPClient' +type MockManager_GetHTTPClient_Call struct { + *mock.Call +} + +// GetHTTPClient is a helper method to define mock.On call +func (_e *MockManager_Expecter) GetHTTPClient() *MockManager_GetHTTPClient_Call { + return &MockManager_GetHTTPClient_Call{Call: _e.mock.On("GetHTTPClient")} +} + +func (_c *MockManager_GetHTTPClient_Call) Run(run func()) *MockManager_GetHTTPClient_Call { + _c.Call.Run(func(args mock.Arguments) { + run() + }) + return _c +} + +func (_c *MockManager_GetHTTPClient_Call) Return(_a0 *http.Client) *MockManager_GetHTTPClient_Call { + _c.Call.Return(_a0) + return _c +} + +func (_c *MockManager_GetHTTPClient_Call) RunAndReturn(run func() *http.Client) *MockManager_GetHTTPClient_Call { + _c.Call.Return(run) + return _c +} + +// GetLogger provides a mock function with given fields: +func (_m *MockManager) GetLogger() logr.Logger { + ret := _m.Called() + + if len(ret) == 0 { + panic("no return value specified for GetLogger") + } + + var r0 logr.Logger + if rf, ok := ret.Get(0).(func() logr.Logger); ok { + r0 = rf() + } else { + r0 = ret.Get(0).(logr.Logger) + } + + return r0 +} + +// MockManager_GetLogger_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetLogger' +type MockManager_GetLogger_Call struct { + *mock.Call +} + +// GetLogger is a helper method to define mock.On call +func (_e *MockManager_Expecter) GetLogger() *MockManager_GetLogger_Call { + return &MockManager_GetLogger_Call{Call: _e.mock.On("GetLogger")} +} + +func (_c *MockManager_GetLogger_Call) Run(run func()) *MockManager_GetLogger_Call { + _c.Call.Run(func(args mock.Arguments) { + run() + }) + return _c +} + +func (_c *MockManager_GetLogger_Call) Return(_a0 logr.Logger) *MockManager_GetLogger_Call { + _c.Call.Return(_a0) + return _c +} + +func (_c *MockManager_GetLogger_Call) RunAndReturn(run func() logr.Logger) *MockManager_GetLogger_Call { + _c.Call.Return(run) + return _c +} + +// GetRESTMapper provides a mock function with given fields: +func (_m *MockManager) GetRESTMapper() meta.RESTMapper { + ret := _m.Called() + + if len(ret) == 0 { + panic("no return value specified for GetRESTMapper") + } + + var r0 meta.RESTMapper + if rf, ok := ret.Get(0).(func() meta.RESTMapper); ok { + r0 = rf() + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(meta.RESTMapper) + } + } + + return r0 +} + +// MockManager_GetRESTMapper_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetRESTMapper' +type MockManager_GetRESTMapper_Call struct { + *mock.Call +} + +// GetRESTMapper is a helper method to define mock.On call +func (_e *MockManager_Expecter) GetRESTMapper() *MockManager_GetRESTMapper_Call { + return &MockManager_GetRESTMapper_Call{Call: _e.mock.On("GetRESTMapper")} +} + +func (_c *MockManager_GetRESTMapper_Call) Run(run func()) *MockManager_GetRESTMapper_Call { + _c.Call.Run(func(args mock.Arguments) { + run() + }) + return _c +} + +func (_c *MockManager_GetRESTMapper_Call) Return(_a0 meta.RESTMapper) *MockManager_GetRESTMapper_Call { + _c.Call.Return(_a0) + return _c +} + +func (_c *MockManager_GetRESTMapper_Call) RunAndReturn(run func() meta.RESTMapper) *MockManager_GetRESTMapper_Call { + _c.Call.Return(run) + return _c +} + +// GetScheme provides a mock function with given fields: +func (_m *MockManager) GetScheme() *runtime.Scheme { + ret := _m.Called() + + if len(ret) == 0 { + panic("no return value specified for GetScheme") + } + + var r0 *runtime.Scheme + if rf, ok := ret.Get(0).(func() *runtime.Scheme); ok { + r0 = rf() + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*runtime.Scheme) + } + } + + return r0 +} + +// MockManager_GetScheme_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetScheme' +type MockManager_GetScheme_Call struct { + *mock.Call +} + +// GetScheme is a helper method to define mock.On call +func (_e *MockManager_Expecter) GetScheme() *MockManager_GetScheme_Call { + return &MockManager_GetScheme_Call{Call: _e.mock.On("GetScheme")} +} + +func (_c *MockManager_GetScheme_Call) Run(run func()) *MockManager_GetScheme_Call { + _c.Call.Run(func(args mock.Arguments) { + run() + }) + return _c +} + +func (_c *MockManager_GetScheme_Call) Return(_a0 *runtime.Scheme) *MockManager_GetScheme_Call { + _c.Call.Return(_a0) + return _c +} + +func (_c *MockManager_GetScheme_Call) RunAndReturn(run func() *runtime.Scheme) *MockManager_GetScheme_Call { + _c.Call.Return(run) + return _c +} + +// GetWebhookServer provides a mock function with given fields: +func (_m *MockManager) GetWebhookServer() webhook.Server { + ret := _m.Called() + + if len(ret) == 0 { + panic("no return value specified for GetWebhookServer") + } + + var r0 webhook.Server + if rf, ok := ret.Get(0).(func() webhook.Server); ok { + r0 = rf() + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(webhook.Server) + } + } + + return r0 +} + +// MockManager_GetWebhookServer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetWebhookServer' +type MockManager_GetWebhookServer_Call struct { + *mock.Call +} + +// GetWebhookServer is a helper method to define mock.On call +func (_e *MockManager_Expecter) GetWebhookServer() *MockManager_GetWebhookServer_Call { + return &MockManager_GetWebhookServer_Call{Call: _e.mock.On("GetWebhookServer")} +} + +func (_c *MockManager_GetWebhookServer_Call) Run(run func()) *MockManager_GetWebhookServer_Call { + _c.Call.Run(func(args mock.Arguments) { + run() + }) + return _c +} + +func (_c *MockManager_GetWebhookServer_Call) Return(_a0 webhook.Server) *MockManager_GetWebhookServer_Call { + _c.Call.Return(_a0) + return _c +} + +func (_c *MockManager_GetWebhookServer_Call) RunAndReturn(run func() webhook.Server) *MockManager_GetWebhookServer_Call { + _c.Call.Return(run) + return _c +} + +// Start provides a mock function with given fields: ctx +func (_m *MockManager) Start(ctx context.Context) error { + ret := _m.Called(ctx) + + if len(ret) == 0 { + panic("no return value specified for Start") + } + + var r0 error + if rf, ok := ret.Get(0).(func(context.Context) error); ok { + r0 = rf(ctx) + } else { + r0 = ret.Error(0) + } + + return r0 +} + +// MockManager_Start_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Start' +type MockManager_Start_Call struct { + *mock.Call +} + +// Start is a helper method to define mock.On call +// - ctx context.Context +func (_e *MockManager_Expecter) Start(ctx interface{}) *MockManager_Start_Call { + return &MockManager_Start_Call{Call: _e.mock.On("Start", ctx)} +} + +func (_c *MockManager_Start_Call) Run(run func(ctx context.Context)) *MockManager_Start_Call { + _c.Call.Run(func(args mock.Arguments) { + run(args[0].(context.Context)) + }) + return _c +} + +func (_c *MockManager_Start_Call) Return(_a0 error) *MockManager_Start_Call { + _c.Call.Return(_a0) + return _c +} + +func (_c *MockManager_Start_Call) RunAndReturn(run func(context.Context) error) *MockManager_Start_Call { + _c.Call.Return(run) + return _c +} + +// NewMockManager creates a new instance of MockManager. 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 NewMockManager(t interface { + mock.TestingT + Cleanup(func()) +}) *MockManager { + mock := &MockManager{} + mock.Mock.Test(t) + + t.Cleanup(func() { mock.AssertExpectations(t) }) + + return mock +} diff --git a/pkg/api/ecosystem/componentRestClient_test.go b/pkg/api/ecosystem/componentRestClient_test.go index 3e4037a..1aeaab2 100644 --- a/pkg/api/ecosystem/componentRestClient_test.go +++ b/pkg/api/ecosystem/componentRestClient_test.go @@ -36,7 +36,6 @@ func Test_componentClient_Get(t *testing.T) { require.NoError(t, err) _, err = writer.Write(componentBytes) require.NoError(t, err) - writer.WriteHeader(200) })) config := rest.Config{ @@ -109,7 +108,6 @@ func Test_componentClient_Create(t *testing.T) { writer.Header().Add("content-type", "application/json") _, err = writer.Write(bytes) require.NoError(t, err) - writer.WriteHeader(200) })) config := rest.Config{ @@ -146,7 +144,6 @@ func Test_componentClient_Update(t *testing.T) { writer.Header().Add("content-type", "application/json") _, err = writer.Write(bytes) require.NoError(t, err) - writer.WriteHeader(200) })) config := rest.Config{ @@ -183,7 +180,6 @@ func Test_componentClient_UpdateStatus(t *testing.T) { writer.Header().Add("content-type", "application/json") _, err = writer.Write(bytes) require.NoError(t, err) - writer.WriteHeader(200) })) config := rest.Config{ @@ -269,7 +265,6 @@ func Test_componentClient_Patch(t *testing.T) { writer.Header().Add("content-type", "application/json") _, err = writer.Write(result) require.NoError(t, err) - writer.WriteHeader(200) })) config := rest.Config{ @@ -301,7 +296,6 @@ func Test_componentClient_Watch(t *testing.T) { writer.Header().Add("content-type", "application/json") _, err := writer.Write([]byte("egal")) require.NoError(t, err) - writer.WriteHeader(200) })) config := rest.Config{ @@ -531,7 +525,6 @@ func Test_componentClient_AddFinalizer(t *testing.T) { writer.Header().Add("content-type", "application/json") _, err = writer.Write(bytes) require.NoError(t, err) - writer.WriteHeader(200) })) config := rest.Config{ @@ -610,7 +603,6 @@ func Test_componentClient_RemoveFinalizer(t *testing.T) { writer.Header().Add("content-type", "application/json") _, err = writer.Write(bytes) require.NoError(t, err) - writer.WriteHeader(200) })) config := rest.Config{ @@ -687,7 +679,6 @@ func mockClientForStatusUpdates(t *testing.T, expectedComponent *v1.Component, e writer.Header().Add("content-type", "application/json") _, err = writer.Write(componentJson) require.NoError(t, err) - writer.WriteHeader(200) } assertUpdateStatusRequest := func(writer http.ResponseWriter, request *http.Request) { @@ -705,7 +696,6 @@ func mockClientForStatusUpdates(t *testing.T, expectedComponent *v1.Component, e writer.Header().Add("content-type", "application/json") _, err = writer.Write(bytes) require.NoError(t, err) - writer.WriteHeader(200) } conflictUpdateStatusRequest := func(writer http.ResponseWriter, request *http.Request) { @@ -779,7 +769,6 @@ func Test_componentClient_UpdateExpectedComponentVersion(t *testing.T) { require.NoError(t, err) _, err = writer.Write(componentBytes) require.NoError(t, err) - writer.WriteHeader(200) } else { assert.Equal(t, "/apis/k8s.cloudogu.com/v1/namespaces/test/components/myComponent", request.URL.Path) @@ -793,7 +782,6 @@ func Test_componentClient_UpdateExpectedComponentVersion(t *testing.T) { writer.Header().Add("content-type", "application/json") _, err = writer.Write(bytes) require.NoError(t, err) - writer.WriteHeader(200) } })) @@ -843,7 +831,6 @@ func Test_componentClient_UpdateExpectedComponentVersion(t *testing.T) { require.NoError(t, err) _, err = writer.Write(componentBytes) require.NoError(t, err) - writer.WriteHeader(200) } else { requestPutCounter++ assert.Equal(t, "/apis/k8s.cloudogu.com/v1/namespaces/test/components/myComponent", request.URL.Path) @@ -858,7 +845,6 @@ func Test_componentClient_UpdateExpectedComponentVersion(t *testing.T) { writer.Header().Add("content-type", "application/json") _, err = writer.Write(bytes) require.NoError(t, err) - writer.WriteHeader(200) } } })) @@ -946,7 +932,6 @@ func Test_componentClient_UpdateExpectedComponentVersion(t *testing.T) { require.NoError(t, err) _, err = writer.Write(componentBytes) require.NoError(t, err) - writer.WriteHeader(200) } else { assert.Equal(t, "/apis/k8s.cloudogu.com/v1/namespaces/test/components/myComponent", request.URL.Path) diff --git a/pkg/api/ecosystem/mock_ComponentEcosystemInterface_test.go b/pkg/api/ecosystem/mock_ComponentEcosystemInterface_test.go index 6524f3b..6e41b09 100644 --- a/pkg/api/ecosystem/mock_ComponentEcosystemInterface_test.go +++ b/pkg/api/ecosystem/mock_ComponentEcosystemInterface_test.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.20.0. DO NOT EDIT. +// Code generated by mockery v2.42.1. DO NOT EDIT. package ecosystem @@ -32,6 +32,8 @@ import ( coordinationv1 "k8s.io/client-go/kubernetes/typed/coordination/v1" + coordinationv1alpha1 "k8s.io/client-go/kubernetes/typed/coordination/v1alpha1" + coordinationv1beta1 "k8s.io/client-go/kubernetes/typed/coordination/v1beta1" corev1 "k8s.io/client-go/kubernetes/typed/core/v1" @@ -84,6 +86,8 @@ import ( schedulingv1beta1 "k8s.io/client-go/kubernetes/typed/scheduling/v1beta1" + storagemigrationv1alpha1 "k8s.io/client-go/kubernetes/typed/storagemigration/v1alpha1" + storagev1 "k8s.io/client-go/kubernetes/typed/storage/v1" storagev1alpha1 "k8s.io/client-go/kubernetes/typed/storage/v1alpha1" @@ -94,7 +98,7 @@ import ( v1alpha1 "k8s.io/client-go/kubernetes/typed/admissionregistration/v1alpha1" - v1alpha2 "k8s.io/client-go/kubernetes/typed/resource/v1alpha2" + v1alpha3 "k8s.io/client-go/kubernetes/typed/resource/v1alpha3" v1beta1 "k8s.io/client-go/kubernetes/typed/admissionregistration/v1beta1" @@ -126,6 +130,10 @@ func (_m *MockComponentEcosystemInterface) EXPECT() *MockComponentEcosystemInter func (_m *MockComponentEcosystemInterface) AdmissionregistrationV1() v1.AdmissionregistrationV1Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for AdmissionregistrationV1") + } + var r0 v1.AdmissionregistrationV1Interface if rf, ok := ret.Get(0).(func() v1.AdmissionregistrationV1Interface); ok { r0 = rf() @@ -169,6 +177,10 @@ func (_c *MockComponentEcosystemInterface_AdmissionregistrationV1_Call) RunAndRe func (_m *MockComponentEcosystemInterface) AdmissionregistrationV1alpha1() v1alpha1.AdmissionregistrationV1alpha1Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for AdmissionregistrationV1alpha1") + } + var r0 v1alpha1.AdmissionregistrationV1alpha1Interface if rf, ok := ret.Get(0).(func() v1alpha1.AdmissionregistrationV1alpha1Interface); ok { r0 = rf() @@ -212,6 +224,10 @@ func (_c *MockComponentEcosystemInterface_AdmissionregistrationV1alpha1_Call) Ru func (_m *MockComponentEcosystemInterface) AdmissionregistrationV1beta1() v1beta1.AdmissionregistrationV1beta1Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for AdmissionregistrationV1beta1") + } + var r0 v1beta1.AdmissionregistrationV1beta1Interface if rf, ok := ret.Get(0).(func() v1beta1.AdmissionregistrationV1beta1Interface); ok { r0 = rf() @@ -255,6 +271,10 @@ func (_c *MockComponentEcosystemInterface_AdmissionregistrationV1beta1_Call) Run func (_m *MockComponentEcosystemInterface) AppsV1() appsv1.AppsV1Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for AppsV1") + } + var r0 appsv1.AppsV1Interface if rf, ok := ret.Get(0).(func() appsv1.AppsV1Interface); ok { r0 = rf() @@ -298,6 +318,10 @@ func (_c *MockComponentEcosystemInterface_AppsV1_Call) RunAndReturn(run func() a func (_m *MockComponentEcosystemInterface) AppsV1beta1() appsv1beta1.AppsV1beta1Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for AppsV1beta1") + } + var r0 appsv1beta1.AppsV1beta1Interface if rf, ok := ret.Get(0).(func() appsv1beta1.AppsV1beta1Interface); ok { r0 = rf() @@ -341,6 +365,10 @@ func (_c *MockComponentEcosystemInterface_AppsV1beta1_Call) RunAndReturn(run fun func (_m *MockComponentEcosystemInterface) AppsV1beta2() v1beta2.AppsV1beta2Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for AppsV1beta2") + } + var r0 v1beta2.AppsV1beta2Interface if rf, ok := ret.Get(0).(func() v1beta2.AppsV1beta2Interface); ok { r0 = rf() @@ -384,6 +412,10 @@ func (_c *MockComponentEcosystemInterface_AppsV1beta2_Call) RunAndReturn(run fun func (_m *MockComponentEcosystemInterface) AuthenticationV1() authenticationv1.AuthenticationV1Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for AuthenticationV1") + } + var r0 authenticationv1.AuthenticationV1Interface if rf, ok := ret.Get(0).(func() authenticationv1.AuthenticationV1Interface); ok { r0 = rf() @@ -427,6 +459,10 @@ func (_c *MockComponentEcosystemInterface_AuthenticationV1_Call) RunAndReturn(ru func (_m *MockComponentEcosystemInterface) AuthenticationV1alpha1() authenticationv1alpha1.AuthenticationV1alpha1Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for AuthenticationV1alpha1") + } + var r0 authenticationv1alpha1.AuthenticationV1alpha1Interface if rf, ok := ret.Get(0).(func() authenticationv1alpha1.AuthenticationV1alpha1Interface); ok { r0 = rf() @@ -470,6 +506,10 @@ func (_c *MockComponentEcosystemInterface_AuthenticationV1alpha1_Call) RunAndRet func (_m *MockComponentEcosystemInterface) AuthenticationV1beta1() authenticationv1beta1.AuthenticationV1beta1Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for AuthenticationV1beta1") + } + var r0 authenticationv1beta1.AuthenticationV1beta1Interface if rf, ok := ret.Get(0).(func() authenticationv1beta1.AuthenticationV1beta1Interface); ok { r0 = rf() @@ -513,6 +553,10 @@ func (_c *MockComponentEcosystemInterface_AuthenticationV1beta1_Call) RunAndRetu func (_m *MockComponentEcosystemInterface) AuthorizationV1() authorizationv1.AuthorizationV1Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for AuthorizationV1") + } + var r0 authorizationv1.AuthorizationV1Interface if rf, ok := ret.Get(0).(func() authorizationv1.AuthorizationV1Interface); ok { r0 = rf() @@ -556,6 +600,10 @@ func (_c *MockComponentEcosystemInterface_AuthorizationV1_Call) RunAndReturn(run func (_m *MockComponentEcosystemInterface) AuthorizationV1beta1() authorizationv1beta1.AuthorizationV1beta1Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for AuthorizationV1beta1") + } + var r0 authorizationv1beta1.AuthorizationV1beta1Interface if rf, ok := ret.Get(0).(func() authorizationv1beta1.AuthorizationV1beta1Interface); ok { r0 = rf() @@ -599,6 +647,10 @@ func (_c *MockComponentEcosystemInterface_AuthorizationV1beta1_Call) RunAndRetur func (_m *MockComponentEcosystemInterface) AutoscalingV1() autoscalingv1.AutoscalingV1Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for AutoscalingV1") + } + var r0 autoscalingv1.AutoscalingV1Interface if rf, ok := ret.Get(0).(func() autoscalingv1.AutoscalingV1Interface); ok { r0 = rf() @@ -642,6 +694,10 @@ func (_c *MockComponentEcosystemInterface_AutoscalingV1_Call) RunAndReturn(run f func (_m *MockComponentEcosystemInterface) AutoscalingV2() v2.AutoscalingV2Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for AutoscalingV2") + } + var r0 v2.AutoscalingV2Interface if rf, ok := ret.Get(0).(func() v2.AutoscalingV2Interface); ok { r0 = rf() @@ -685,6 +741,10 @@ func (_c *MockComponentEcosystemInterface_AutoscalingV2_Call) RunAndReturn(run f func (_m *MockComponentEcosystemInterface) AutoscalingV2beta1() v2beta1.AutoscalingV2beta1Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for AutoscalingV2beta1") + } + var r0 v2beta1.AutoscalingV2beta1Interface if rf, ok := ret.Get(0).(func() v2beta1.AutoscalingV2beta1Interface); ok { r0 = rf() @@ -728,6 +788,10 @@ func (_c *MockComponentEcosystemInterface_AutoscalingV2beta1_Call) RunAndReturn( func (_m *MockComponentEcosystemInterface) AutoscalingV2beta2() v2beta2.AutoscalingV2beta2Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for AutoscalingV2beta2") + } + var r0 v2beta2.AutoscalingV2beta2Interface if rf, ok := ret.Get(0).(func() v2beta2.AutoscalingV2beta2Interface); ok { r0 = rf() @@ -771,6 +835,10 @@ func (_c *MockComponentEcosystemInterface_AutoscalingV2beta2_Call) RunAndReturn( func (_m *MockComponentEcosystemInterface) BatchV1() batchv1.BatchV1Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for BatchV1") + } + var r0 batchv1.BatchV1Interface if rf, ok := ret.Get(0).(func() batchv1.BatchV1Interface); ok { r0 = rf() @@ -814,6 +882,10 @@ func (_c *MockComponentEcosystemInterface_BatchV1_Call) RunAndReturn(run func() func (_m *MockComponentEcosystemInterface) BatchV1beta1() batchv1beta1.BatchV1beta1Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for BatchV1beta1") + } + var r0 batchv1beta1.BatchV1beta1Interface if rf, ok := ret.Get(0).(func() batchv1beta1.BatchV1beta1Interface); ok { r0 = rf() @@ -857,6 +929,10 @@ func (_c *MockComponentEcosystemInterface_BatchV1beta1_Call) RunAndReturn(run fu func (_m *MockComponentEcosystemInterface) CertificatesV1() certificatesv1.CertificatesV1Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for CertificatesV1") + } + var r0 certificatesv1.CertificatesV1Interface if rf, ok := ret.Get(0).(func() certificatesv1.CertificatesV1Interface); ok { r0 = rf() @@ -900,6 +976,10 @@ func (_c *MockComponentEcosystemInterface_CertificatesV1_Call) RunAndReturn(run func (_m *MockComponentEcosystemInterface) CertificatesV1alpha1() certificatesv1alpha1.CertificatesV1alpha1Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for CertificatesV1alpha1") + } + var r0 certificatesv1alpha1.CertificatesV1alpha1Interface if rf, ok := ret.Get(0).(func() certificatesv1alpha1.CertificatesV1alpha1Interface); ok { r0 = rf() @@ -943,6 +1023,10 @@ func (_c *MockComponentEcosystemInterface_CertificatesV1alpha1_Call) RunAndRetur func (_m *MockComponentEcosystemInterface) CertificatesV1beta1() certificatesv1beta1.CertificatesV1beta1Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for CertificatesV1beta1") + } + var r0 certificatesv1beta1.CertificatesV1beta1Interface if rf, ok := ret.Get(0).(func() certificatesv1beta1.CertificatesV1beta1Interface); ok { r0 = rf() @@ -986,6 +1070,10 @@ func (_c *MockComponentEcosystemInterface_CertificatesV1beta1_Call) RunAndReturn func (_m *MockComponentEcosystemInterface) ComponentV1Alpha1() ComponentV1Alpha1Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for ComponentV1Alpha1") + } + var r0 ComponentV1Alpha1Interface if rf, ok := ret.Get(0).(func() ComponentV1Alpha1Interface); ok { r0 = rf() @@ -1029,6 +1117,10 @@ func (_c *MockComponentEcosystemInterface_ComponentV1Alpha1_Call) RunAndReturn(r func (_m *MockComponentEcosystemInterface) CoordinationV1() coordinationv1.CoordinationV1Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for CoordinationV1") + } + var r0 coordinationv1.CoordinationV1Interface if rf, ok := ret.Get(0).(func() coordinationv1.CoordinationV1Interface); ok { r0 = rf() @@ -1068,10 +1160,61 @@ func (_c *MockComponentEcosystemInterface_CoordinationV1_Call) RunAndReturn(run return _c } +// CoordinationV1alpha1 provides a mock function with given fields: +func (_m *MockComponentEcosystemInterface) CoordinationV1alpha1() coordinationv1alpha1.CoordinationV1alpha1Interface { + ret := _m.Called() + + if len(ret) == 0 { + panic("no return value specified for CoordinationV1alpha1") + } + + var r0 coordinationv1alpha1.CoordinationV1alpha1Interface + if rf, ok := ret.Get(0).(func() coordinationv1alpha1.CoordinationV1alpha1Interface); ok { + r0 = rf() + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(coordinationv1alpha1.CoordinationV1alpha1Interface) + } + } + + return r0 +} + +// MockComponentEcosystemInterface_CoordinationV1alpha1_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CoordinationV1alpha1' +type MockComponentEcosystemInterface_CoordinationV1alpha1_Call struct { + *mock.Call +} + +// CoordinationV1alpha1 is a helper method to define mock.On call +func (_e *MockComponentEcosystemInterface_Expecter) CoordinationV1alpha1() *MockComponentEcosystemInterface_CoordinationV1alpha1_Call { + return &MockComponentEcosystemInterface_CoordinationV1alpha1_Call{Call: _e.mock.On("CoordinationV1alpha1")} +} + +func (_c *MockComponentEcosystemInterface_CoordinationV1alpha1_Call) Run(run func()) *MockComponentEcosystemInterface_CoordinationV1alpha1_Call { + _c.Call.Run(func(args mock.Arguments) { + run() + }) + return _c +} + +func (_c *MockComponentEcosystemInterface_CoordinationV1alpha1_Call) Return(_a0 coordinationv1alpha1.CoordinationV1alpha1Interface) *MockComponentEcosystemInterface_CoordinationV1alpha1_Call { + _c.Call.Return(_a0) + return _c +} + +func (_c *MockComponentEcosystemInterface_CoordinationV1alpha1_Call) RunAndReturn(run func() coordinationv1alpha1.CoordinationV1alpha1Interface) *MockComponentEcosystemInterface_CoordinationV1alpha1_Call { + _c.Call.Return(run) + return _c +} + // CoordinationV1beta1 provides a mock function with given fields: func (_m *MockComponentEcosystemInterface) CoordinationV1beta1() coordinationv1beta1.CoordinationV1beta1Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for CoordinationV1beta1") + } + var r0 coordinationv1beta1.CoordinationV1beta1Interface if rf, ok := ret.Get(0).(func() coordinationv1beta1.CoordinationV1beta1Interface); ok { r0 = rf() @@ -1115,6 +1258,10 @@ func (_c *MockComponentEcosystemInterface_CoordinationV1beta1_Call) RunAndReturn func (_m *MockComponentEcosystemInterface) CoreV1() corev1.CoreV1Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for CoreV1") + } + var r0 corev1.CoreV1Interface if rf, ok := ret.Get(0).(func() corev1.CoreV1Interface); ok { r0 = rf() @@ -1158,6 +1305,10 @@ func (_c *MockComponentEcosystemInterface_CoreV1_Call) RunAndReturn(run func() c func (_m *MockComponentEcosystemInterface) Discovery() discovery.DiscoveryInterface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for Discovery") + } + var r0 discovery.DiscoveryInterface if rf, ok := ret.Get(0).(func() discovery.DiscoveryInterface); ok { r0 = rf() @@ -1201,6 +1352,10 @@ func (_c *MockComponentEcosystemInterface_Discovery_Call) RunAndReturn(run func( func (_m *MockComponentEcosystemInterface) DiscoveryV1() discoveryv1.DiscoveryV1Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for DiscoveryV1") + } + var r0 discoveryv1.DiscoveryV1Interface if rf, ok := ret.Get(0).(func() discoveryv1.DiscoveryV1Interface); ok { r0 = rf() @@ -1244,6 +1399,10 @@ func (_c *MockComponentEcosystemInterface_DiscoveryV1_Call) RunAndReturn(run fun func (_m *MockComponentEcosystemInterface) DiscoveryV1beta1() discoveryv1beta1.DiscoveryV1beta1Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for DiscoveryV1beta1") + } + var r0 discoveryv1beta1.DiscoveryV1beta1Interface if rf, ok := ret.Get(0).(func() discoveryv1beta1.DiscoveryV1beta1Interface); ok { r0 = rf() @@ -1287,6 +1446,10 @@ func (_c *MockComponentEcosystemInterface_DiscoveryV1beta1_Call) RunAndReturn(ru func (_m *MockComponentEcosystemInterface) EventsV1() eventsv1.EventsV1Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for EventsV1") + } + var r0 eventsv1.EventsV1Interface if rf, ok := ret.Get(0).(func() eventsv1.EventsV1Interface); ok { r0 = rf() @@ -1330,6 +1493,10 @@ func (_c *MockComponentEcosystemInterface_EventsV1_Call) RunAndReturn(run func() func (_m *MockComponentEcosystemInterface) EventsV1beta1() eventsv1beta1.EventsV1beta1Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for EventsV1beta1") + } + var r0 eventsv1beta1.EventsV1beta1Interface if rf, ok := ret.Get(0).(func() eventsv1beta1.EventsV1beta1Interface); ok { r0 = rf() @@ -1373,6 +1540,10 @@ func (_c *MockComponentEcosystemInterface_EventsV1beta1_Call) RunAndReturn(run f func (_m *MockComponentEcosystemInterface) ExtensionsV1beta1() extensionsv1beta1.ExtensionsV1beta1Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for ExtensionsV1beta1") + } + var r0 extensionsv1beta1.ExtensionsV1beta1Interface if rf, ok := ret.Get(0).(func() extensionsv1beta1.ExtensionsV1beta1Interface); ok { r0 = rf() @@ -1416,6 +1587,10 @@ func (_c *MockComponentEcosystemInterface_ExtensionsV1beta1_Call) RunAndReturn(r func (_m *MockComponentEcosystemInterface) FlowcontrolV1() flowcontrolv1.FlowcontrolV1Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for FlowcontrolV1") + } + var r0 flowcontrolv1.FlowcontrolV1Interface if rf, ok := ret.Get(0).(func() flowcontrolv1.FlowcontrolV1Interface); ok { r0 = rf() @@ -1459,6 +1634,10 @@ func (_c *MockComponentEcosystemInterface_FlowcontrolV1_Call) RunAndReturn(run f func (_m *MockComponentEcosystemInterface) FlowcontrolV1beta1() flowcontrolv1beta1.FlowcontrolV1beta1Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for FlowcontrolV1beta1") + } + var r0 flowcontrolv1beta1.FlowcontrolV1beta1Interface if rf, ok := ret.Get(0).(func() flowcontrolv1beta1.FlowcontrolV1beta1Interface); ok { r0 = rf() @@ -1502,6 +1681,10 @@ func (_c *MockComponentEcosystemInterface_FlowcontrolV1beta1_Call) RunAndReturn( func (_m *MockComponentEcosystemInterface) FlowcontrolV1beta2() flowcontrolv1beta2.FlowcontrolV1beta2Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for FlowcontrolV1beta2") + } + var r0 flowcontrolv1beta2.FlowcontrolV1beta2Interface if rf, ok := ret.Get(0).(func() flowcontrolv1beta2.FlowcontrolV1beta2Interface); ok { r0 = rf() @@ -1545,6 +1728,10 @@ func (_c *MockComponentEcosystemInterface_FlowcontrolV1beta2_Call) RunAndReturn( func (_m *MockComponentEcosystemInterface) FlowcontrolV1beta3() v1beta3.FlowcontrolV1beta3Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for FlowcontrolV1beta3") + } + var r0 v1beta3.FlowcontrolV1beta3Interface if rf, ok := ret.Get(0).(func() v1beta3.FlowcontrolV1beta3Interface); ok { r0 = rf() @@ -1588,6 +1775,10 @@ func (_c *MockComponentEcosystemInterface_FlowcontrolV1beta3_Call) RunAndReturn( func (_m *MockComponentEcosystemInterface) InternalV1alpha1() apiserverinternalv1alpha1.InternalV1alpha1Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for InternalV1alpha1") + } + var r0 apiserverinternalv1alpha1.InternalV1alpha1Interface if rf, ok := ret.Get(0).(func() apiserverinternalv1alpha1.InternalV1alpha1Interface); ok { r0 = rf() @@ -1631,6 +1822,10 @@ func (_c *MockComponentEcosystemInterface_InternalV1alpha1_Call) RunAndReturn(ru func (_m *MockComponentEcosystemInterface) NetworkingV1() networkingv1.NetworkingV1Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for NetworkingV1") + } + var r0 networkingv1.NetworkingV1Interface if rf, ok := ret.Get(0).(func() networkingv1.NetworkingV1Interface); ok { r0 = rf() @@ -1674,6 +1869,10 @@ func (_c *MockComponentEcosystemInterface_NetworkingV1_Call) RunAndReturn(run fu func (_m *MockComponentEcosystemInterface) NetworkingV1alpha1() networkingv1alpha1.NetworkingV1alpha1Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for NetworkingV1alpha1") + } + var r0 networkingv1alpha1.NetworkingV1alpha1Interface if rf, ok := ret.Get(0).(func() networkingv1alpha1.NetworkingV1alpha1Interface); ok { r0 = rf() @@ -1717,6 +1916,10 @@ func (_c *MockComponentEcosystemInterface_NetworkingV1alpha1_Call) RunAndReturn( func (_m *MockComponentEcosystemInterface) NetworkingV1beta1() networkingv1beta1.NetworkingV1beta1Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for NetworkingV1beta1") + } + var r0 networkingv1beta1.NetworkingV1beta1Interface if rf, ok := ret.Get(0).(func() networkingv1beta1.NetworkingV1beta1Interface); ok { r0 = rf() @@ -1760,6 +1963,10 @@ func (_c *MockComponentEcosystemInterface_NetworkingV1beta1_Call) RunAndReturn(r func (_m *MockComponentEcosystemInterface) NodeV1() nodev1.NodeV1Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for NodeV1") + } + var r0 nodev1.NodeV1Interface if rf, ok := ret.Get(0).(func() nodev1.NodeV1Interface); ok { r0 = rf() @@ -1803,6 +2010,10 @@ func (_c *MockComponentEcosystemInterface_NodeV1_Call) RunAndReturn(run func() n func (_m *MockComponentEcosystemInterface) NodeV1alpha1() nodev1alpha1.NodeV1alpha1Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for NodeV1alpha1") + } + var r0 nodev1alpha1.NodeV1alpha1Interface if rf, ok := ret.Get(0).(func() nodev1alpha1.NodeV1alpha1Interface); ok { r0 = rf() @@ -1846,6 +2057,10 @@ func (_c *MockComponentEcosystemInterface_NodeV1alpha1_Call) RunAndReturn(run fu func (_m *MockComponentEcosystemInterface) NodeV1beta1() nodev1beta1.NodeV1beta1Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for NodeV1beta1") + } + var r0 nodev1beta1.NodeV1beta1Interface if rf, ok := ret.Get(0).(func() nodev1beta1.NodeV1beta1Interface); ok { r0 = rf() @@ -1889,6 +2104,10 @@ func (_c *MockComponentEcosystemInterface_NodeV1beta1_Call) RunAndReturn(run fun func (_m *MockComponentEcosystemInterface) PolicyV1() policyv1.PolicyV1Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for PolicyV1") + } + var r0 policyv1.PolicyV1Interface if rf, ok := ret.Get(0).(func() policyv1.PolicyV1Interface); ok { r0 = rf() @@ -1932,6 +2151,10 @@ func (_c *MockComponentEcosystemInterface_PolicyV1_Call) RunAndReturn(run func() func (_m *MockComponentEcosystemInterface) PolicyV1beta1() policyv1beta1.PolicyV1beta1Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for PolicyV1beta1") + } + var r0 policyv1beta1.PolicyV1beta1Interface if rf, ok := ret.Get(0).(func() policyv1beta1.PolicyV1beta1Interface); ok { r0 = rf() @@ -1975,6 +2198,10 @@ func (_c *MockComponentEcosystemInterface_PolicyV1beta1_Call) RunAndReturn(run f func (_m *MockComponentEcosystemInterface) RbacV1() rbacv1.RbacV1Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for RbacV1") + } + var r0 rbacv1.RbacV1Interface if rf, ok := ret.Get(0).(func() rbacv1.RbacV1Interface); ok { r0 = rf() @@ -2018,6 +2245,10 @@ func (_c *MockComponentEcosystemInterface_RbacV1_Call) RunAndReturn(run func() r func (_m *MockComponentEcosystemInterface) RbacV1alpha1() rbacv1alpha1.RbacV1alpha1Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for RbacV1alpha1") + } + var r0 rbacv1alpha1.RbacV1alpha1Interface if rf, ok := ret.Get(0).(func() rbacv1alpha1.RbacV1alpha1Interface); ok { r0 = rf() @@ -2061,6 +2292,10 @@ func (_c *MockComponentEcosystemInterface_RbacV1alpha1_Call) RunAndReturn(run fu func (_m *MockComponentEcosystemInterface) RbacV1beta1() rbacv1beta1.RbacV1beta1Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for RbacV1beta1") + } + var r0 rbacv1beta1.RbacV1beta1Interface if rf, ok := ret.Get(0).(func() rbacv1beta1.RbacV1beta1Interface); ok { r0 = rf() @@ -2100,45 +2335,49 @@ func (_c *MockComponentEcosystemInterface_RbacV1beta1_Call) RunAndReturn(run fun return _c } -// ResourceV1alpha2 provides a mock function with given fields: -func (_m *MockComponentEcosystemInterface) ResourceV1alpha2() v1alpha2.ResourceV1alpha2Interface { +// ResourceV1alpha3 provides a mock function with given fields: +func (_m *MockComponentEcosystemInterface) ResourceV1alpha3() v1alpha3.ResourceV1alpha3Interface { ret := _m.Called() - var r0 v1alpha2.ResourceV1alpha2Interface - if rf, ok := ret.Get(0).(func() v1alpha2.ResourceV1alpha2Interface); ok { + if len(ret) == 0 { + panic("no return value specified for ResourceV1alpha3") + } + + var r0 v1alpha3.ResourceV1alpha3Interface + if rf, ok := ret.Get(0).(func() v1alpha3.ResourceV1alpha3Interface); ok { r0 = rf() } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(v1alpha2.ResourceV1alpha2Interface) + r0 = ret.Get(0).(v1alpha3.ResourceV1alpha3Interface) } } return r0 } -// MockComponentEcosystemInterface_ResourceV1alpha2_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ResourceV1alpha2' -type MockComponentEcosystemInterface_ResourceV1alpha2_Call struct { +// MockComponentEcosystemInterface_ResourceV1alpha3_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ResourceV1alpha3' +type MockComponentEcosystemInterface_ResourceV1alpha3_Call struct { *mock.Call } -// ResourceV1alpha2 is a helper method to define mock.On call -func (_e *MockComponentEcosystemInterface_Expecter) ResourceV1alpha2() *MockComponentEcosystemInterface_ResourceV1alpha2_Call { - return &MockComponentEcosystemInterface_ResourceV1alpha2_Call{Call: _e.mock.On("ResourceV1alpha2")} +// ResourceV1alpha3 is a helper method to define mock.On call +func (_e *MockComponentEcosystemInterface_Expecter) ResourceV1alpha3() *MockComponentEcosystemInterface_ResourceV1alpha3_Call { + return &MockComponentEcosystemInterface_ResourceV1alpha3_Call{Call: _e.mock.On("ResourceV1alpha3")} } -func (_c *MockComponentEcosystemInterface_ResourceV1alpha2_Call) Run(run func()) *MockComponentEcosystemInterface_ResourceV1alpha2_Call { +func (_c *MockComponentEcosystemInterface_ResourceV1alpha3_Call) Run(run func()) *MockComponentEcosystemInterface_ResourceV1alpha3_Call { _c.Call.Run(func(args mock.Arguments) { run() }) return _c } -func (_c *MockComponentEcosystemInterface_ResourceV1alpha2_Call) Return(_a0 v1alpha2.ResourceV1alpha2Interface) *MockComponentEcosystemInterface_ResourceV1alpha2_Call { +func (_c *MockComponentEcosystemInterface_ResourceV1alpha3_Call) Return(_a0 v1alpha3.ResourceV1alpha3Interface) *MockComponentEcosystemInterface_ResourceV1alpha3_Call { _c.Call.Return(_a0) return _c } -func (_c *MockComponentEcosystemInterface_ResourceV1alpha2_Call) RunAndReturn(run func() v1alpha2.ResourceV1alpha2Interface) *MockComponentEcosystemInterface_ResourceV1alpha2_Call { +func (_c *MockComponentEcosystemInterface_ResourceV1alpha3_Call) RunAndReturn(run func() v1alpha3.ResourceV1alpha3Interface) *MockComponentEcosystemInterface_ResourceV1alpha3_Call { _c.Call.Return(run) return _c } @@ -2147,6 +2386,10 @@ func (_c *MockComponentEcosystemInterface_ResourceV1alpha2_Call) RunAndReturn(ru func (_m *MockComponentEcosystemInterface) SchedulingV1() schedulingv1.SchedulingV1Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for SchedulingV1") + } + var r0 schedulingv1.SchedulingV1Interface if rf, ok := ret.Get(0).(func() schedulingv1.SchedulingV1Interface); ok { r0 = rf() @@ -2190,6 +2433,10 @@ func (_c *MockComponentEcosystemInterface_SchedulingV1_Call) RunAndReturn(run fu func (_m *MockComponentEcosystemInterface) SchedulingV1alpha1() schedulingv1alpha1.SchedulingV1alpha1Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for SchedulingV1alpha1") + } + var r0 schedulingv1alpha1.SchedulingV1alpha1Interface if rf, ok := ret.Get(0).(func() schedulingv1alpha1.SchedulingV1alpha1Interface); ok { r0 = rf() @@ -2233,6 +2480,10 @@ func (_c *MockComponentEcosystemInterface_SchedulingV1alpha1_Call) RunAndReturn( func (_m *MockComponentEcosystemInterface) SchedulingV1beta1() schedulingv1beta1.SchedulingV1beta1Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for SchedulingV1beta1") + } + var r0 schedulingv1beta1.SchedulingV1beta1Interface if rf, ok := ret.Get(0).(func() schedulingv1beta1.SchedulingV1beta1Interface); ok { r0 = rf() @@ -2276,6 +2527,10 @@ func (_c *MockComponentEcosystemInterface_SchedulingV1beta1_Call) RunAndReturn(r func (_m *MockComponentEcosystemInterface) StorageV1() storagev1.StorageV1Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for StorageV1") + } + var r0 storagev1.StorageV1Interface if rf, ok := ret.Get(0).(func() storagev1.StorageV1Interface); ok { r0 = rf() @@ -2319,6 +2574,10 @@ func (_c *MockComponentEcosystemInterface_StorageV1_Call) RunAndReturn(run func( func (_m *MockComponentEcosystemInterface) StorageV1alpha1() storagev1alpha1.StorageV1alpha1Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for StorageV1alpha1") + } + var r0 storagev1alpha1.StorageV1alpha1Interface if rf, ok := ret.Get(0).(func() storagev1alpha1.StorageV1alpha1Interface); ok { r0 = rf() @@ -2362,6 +2621,10 @@ func (_c *MockComponentEcosystemInterface_StorageV1alpha1_Call) RunAndReturn(run func (_m *MockComponentEcosystemInterface) StorageV1beta1() storagev1beta1.StorageV1beta1Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for StorageV1beta1") + } + var r0 storagev1beta1.StorageV1beta1Interface if rf, ok := ret.Get(0).(func() storagev1beta1.StorageV1beta1Interface); ok { r0 = rf() @@ -2401,13 +2664,59 @@ func (_c *MockComponentEcosystemInterface_StorageV1beta1_Call) RunAndReturn(run return _c } -type mockConstructorTestingTNewMockComponentEcosystemInterface interface { - mock.TestingT - Cleanup(func()) +// StoragemigrationV1alpha1 provides a mock function with given fields: +func (_m *MockComponentEcosystemInterface) StoragemigrationV1alpha1() storagemigrationv1alpha1.StoragemigrationV1alpha1Interface { + ret := _m.Called() + + if len(ret) == 0 { + panic("no return value specified for StoragemigrationV1alpha1") + } + + var r0 storagemigrationv1alpha1.StoragemigrationV1alpha1Interface + if rf, ok := ret.Get(0).(func() storagemigrationv1alpha1.StoragemigrationV1alpha1Interface); ok { + r0 = rf() + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(storagemigrationv1alpha1.StoragemigrationV1alpha1Interface) + } + } + + return r0 +} + +// MockComponentEcosystemInterface_StoragemigrationV1alpha1_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StoragemigrationV1alpha1' +type MockComponentEcosystemInterface_StoragemigrationV1alpha1_Call struct { + *mock.Call +} + +// StoragemigrationV1alpha1 is a helper method to define mock.On call +func (_e *MockComponentEcosystemInterface_Expecter) StoragemigrationV1alpha1() *MockComponentEcosystemInterface_StoragemigrationV1alpha1_Call { + return &MockComponentEcosystemInterface_StoragemigrationV1alpha1_Call{Call: _e.mock.On("StoragemigrationV1alpha1")} +} + +func (_c *MockComponentEcosystemInterface_StoragemigrationV1alpha1_Call) Run(run func()) *MockComponentEcosystemInterface_StoragemigrationV1alpha1_Call { + _c.Call.Run(func(args mock.Arguments) { + run() + }) + return _c +} + +func (_c *MockComponentEcosystemInterface_StoragemigrationV1alpha1_Call) Return(_a0 storagemigrationv1alpha1.StoragemigrationV1alpha1Interface) *MockComponentEcosystemInterface_StoragemigrationV1alpha1_Call { + _c.Call.Return(_a0) + return _c +} + +func (_c *MockComponentEcosystemInterface_StoragemigrationV1alpha1_Call) RunAndReturn(run func() storagemigrationv1alpha1.StoragemigrationV1alpha1Interface) *MockComponentEcosystemInterface_StoragemigrationV1alpha1_Call { + _c.Call.Return(run) + return _c } // NewMockComponentEcosystemInterface creates a new instance of MockComponentEcosystemInterface. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. -func NewMockComponentEcosystemInterface(t mockConstructorTestingTNewMockComponentEcosystemInterface) *MockComponentEcosystemInterface { +// The first argument is typically a *testing.T value. +func NewMockComponentEcosystemInterface(t interface { + mock.TestingT + Cleanup(func()) +}) *MockComponentEcosystemInterface { mock := &MockComponentEcosystemInterface{} mock.Mock.Test(t) diff --git a/pkg/api/ecosystem/mock_ComponentInterface_test.go b/pkg/api/ecosystem/mock_ComponentInterface_test.go index 7714662..1df9750 100644 --- a/pkg/api/ecosystem/mock_ComponentInterface_test.go +++ b/pkg/api/ecosystem/mock_ComponentInterface_test.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.20.0. DO NOT EDIT. +// Code generated by mockery v2.42.1. DO NOT EDIT. package ecosystem @@ -32,6 +32,10 @@ func (_m *MockComponentInterface) EXPECT() *MockComponentInterface_Expecter { func (_m *MockComponentInterface) AddFinalizer(ctx context.Context, component *v1.Component, finalizer string) (*v1.Component, error) { ret := _m.Called(ctx, component, finalizer) + if len(ret) == 0 { + panic("no return value specified for AddFinalizer") + } + var r0 *v1.Component var r1 error if rf, ok := ret.Get(0).(func(context.Context, *v1.Component, string) (*v1.Component, error)); ok { @@ -88,6 +92,10 @@ func (_c *MockComponentInterface_AddFinalizer_Call) RunAndReturn(run func(contex func (_m *MockComponentInterface) Create(ctx context.Context, component *v1.Component, opts metav1.CreateOptions) (*v1.Component, error) { ret := _m.Called(ctx, component, opts) + if len(ret) == 0 { + panic("no return value specified for Create") + } + var r0 *v1.Component var r1 error if rf, ok := ret.Get(0).(func(context.Context, *v1.Component, metav1.CreateOptions) (*v1.Component, error)); ok { @@ -144,6 +152,10 @@ func (_c *MockComponentInterface_Create_Call) RunAndReturn(run func(context.Cont func (_m *MockComponentInterface) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error { ret := _m.Called(ctx, name, opts) + if len(ret) == 0 { + panic("no return value specified for Delete") + } + var r0 error if rf, ok := ret.Get(0).(func(context.Context, string, metav1.DeleteOptions) error); ok { r0 = rf(ctx, name, opts) @@ -188,6 +200,10 @@ func (_c *MockComponentInterface_Delete_Call) RunAndReturn(run func(context.Cont func (_m *MockComponentInterface) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { ret := _m.Called(ctx, opts, listOpts) + if len(ret) == 0 { + panic("no return value specified for DeleteCollection") + } + var r0 error if rf, ok := ret.Get(0).(func(context.Context, metav1.DeleteOptions, metav1.ListOptions) error); ok { r0 = rf(ctx, opts, listOpts) @@ -232,6 +248,10 @@ func (_c *MockComponentInterface_DeleteCollection_Call) RunAndReturn(run func(co func (_m *MockComponentInterface) Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.Component, error) { ret := _m.Called(ctx, name, opts) + if len(ret) == 0 { + panic("no return value specified for Get") + } + var r0 *v1.Component var r1 error if rf, ok := ret.Get(0).(func(context.Context, string, metav1.GetOptions) (*v1.Component, error)); ok { @@ -288,6 +308,10 @@ func (_c *MockComponentInterface_Get_Call) RunAndReturn(run func(context.Context func (_m *MockComponentInterface) List(ctx context.Context, opts metav1.ListOptions) (*v1.ComponentList, error) { ret := _m.Called(ctx, opts) + if len(ret) == 0 { + panic("no return value specified for List") + } + var r0 *v1.ComponentList var r1 error if rf, ok := ret.Get(0).(func(context.Context, metav1.ListOptions) (*v1.ComponentList, error)); ok { @@ -350,6 +374,10 @@ func (_m *MockComponentInterface) Patch(ctx context.Context, name string, pt typ _ca = append(_ca, _va...) ret := _m.Called(_ca...) + if len(ret) == 0 { + panic("no return value specified for Patch") + } + var r0 *v1.Component var r1 error if rf, ok := ret.Get(0).(func(context.Context, string, types.PatchType, []byte, metav1.PatchOptions, ...string) (*v1.Component, error)); ok { @@ -416,6 +444,10 @@ func (_c *MockComponentInterface_Patch_Call) RunAndReturn(run func(context.Conte func (_m *MockComponentInterface) RemoveFinalizer(ctx context.Context, component *v1.Component, finalizer string) (*v1.Component, error) { ret := _m.Called(ctx, component, finalizer) + if len(ret) == 0 { + panic("no return value specified for RemoveFinalizer") + } + var r0 *v1.Component var r1 error if rf, ok := ret.Get(0).(func(context.Context, *v1.Component, string) (*v1.Component, error)); ok { @@ -472,6 +504,10 @@ func (_c *MockComponentInterface_RemoveFinalizer_Call) RunAndReturn(run func(con func (_m *MockComponentInterface) Update(ctx context.Context, component *v1.Component, opts metav1.UpdateOptions) (*v1.Component, error) { ret := _m.Called(ctx, component, opts) + if len(ret) == 0 { + panic("no return value specified for Update") + } + var r0 *v1.Component var r1 error if rf, ok := ret.Get(0).(func(context.Context, *v1.Component, metav1.UpdateOptions) (*v1.Component, error)); ok { @@ -528,6 +564,10 @@ func (_c *MockComponentInterface_Update_Call) RunAndReturn(run func(context.Cont func (_m *MockComponentInterface) UpdateExpectedComponentVersion(ctx context.Context, componentName string, version string) (*v1.Component, error) { ret := _m.Called(ctx, componentName, version) + if len(ret) == 0 { + panic("no return value specified for UpdateExpectedComponentVersion") + } + var r0 *v1.Component var r1 error if rf, ok := ret.Get(0).(func(context.Context, string, string) (*v1.Component, error)); ok { @@ -584,6 +624,10 @@ func (_c *MockComponentInterface_UpdateExpectedComponentVersion_Call) RunAndRetu func (_m *MockComponentInterface) UpdateStatus(ctx context.Context, component *v1.Component, opts metav1.UpdateOptions) (*v1.Component, error) { ret := _m.Called(ctx, component, opts) + if len(ret) == 0 { + panic("no return value specified for UpdateStatus") + } + var r0 *v1.Component var r1 error if rf, ok := ret.Get(0).(func(context.Context, *v1.Component, metav1.UpdateOptions) (*v1.Component, error)); ok { @@ -640,6 +684,10 @@ func (_c *MockComponentInterface_UpdateStatus_Call) RunAndReturn(run func(contex func (_m *MockComponentInterface) UpdateStatusDeleting(ctx context.Context, component *v1.Component) (*v1.Component, error) { ret := _m.Called(ctx, component) + if len(ret) == 0 { + panic("no return value specified for UpdateStatusDeleting") + } + var r0 *v1.Component var r1 error if rf, ok := ret.Get(0).(func(context.Context, *v1.Component) (*v1.Component, error)); ok { @@ -695,6 +743,10 @@ func (_c *MockComponentInterface_UpdateStatusDeleting_Call) RunAndReturn(run fun func (_m *MockComponentInterface) UpdateStatusInstalled(ctx context.Context, component *v1.Component) (*v1.Component, error) { ret := _m.Called(ctx, component) + if len(ret) == 0 { + panic("no return value specified for UpdateStatusInstalled") + } + var r0 *v1.Component var r1 error if rf, ok := ret.Get(0).(func(context.Context, *v1.Component) (*v1.Component, error)); ok { @@ -750,6 +802,10 @@ func (_c *MockComponentInterface_UpdateStatusInstalled_Call) RunAndReturn(run fu func (_m *MockComponentInterface) UpdateStatusInstalling(ctx context.Context, component *v1.Component) (*v1.Component, error) { ret := _m.Called(ctx, component) + if len(ret) == 0 { + panic("no return value specified for UpdateStatusInstalling") + } + var r0 *v1.Component var r1 error if rf, ok := ret.Get(0).(func(context.Context, *v1.Component) (*v1.Component, error)); ok { @@ -805,6 +861,10 @@ func (_c *MockComponentInterface_UpdateStatusInstalling_Call) RunAndReturn(run f func (_m *MockComponentInterface) UpdateStatusNotInstalled(ctx context.Context, component *v1.Component) (*v1.Component, error) { ret := _m.Called(ctx, component) + if len(ret) == 0 { + panic("no return value specified for UpdateStatusNotInstalled") + } + var r0 *v1.Component var r1 error if rf, ok := ret.Get(0).(func(context.Context, *v1.Component) (*v1.Component, error)); ok { @@ -860,6 +920,10 @@ func (_c *MockComponentInterface_UpdateStatusNotInstalled_Call) RunAndReturn(run func (_m *MockComponentInterface) UpdateStatusUpgrading(ctx context.Context, component *v1.Component) (*v1.Component, error) { ret := _m.Called(ctx, component) + if len(ret) == 0 { + panic("no return value specified for UpdateStatusUpgrading") + } + var r0 *v1.Component var r1 error if rf, ok := ret.Get(0).(func(context.Context, *v1.Component) (*v1.Component, error)); ok { @@ -915,6 +979,10 @@ func (_c *MockComponentInterface_UpdateStatusUpgrading_Call) RunAndReturn(run fu func (_m *MockComponentInterface) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { ret := _m.Called(ctx, opts) + if len(ret) == 0 { + panic("no return value specified for Watch") + } + var r0 watch.Interface var r1 error if rf, ok := ret.Get(0).(func(context.Context, metav1.ListOptions) (watch.Interface, error)); ok { @@ -966,13 +1034,12 @@ func (_c *MockComponentInterface_Watch_Call) RunAndReturn(run func(context.Conte return _c } -type mockConstructorTestingTNewMockComponentInterface interface { +// NewMockComponentInterface creates a new instance of MockComponentInterface. 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 NewMockComponentInterface(t interface { mock.TestingT Cleanup(func()) -} - -// NewMockComponentInterface creates a new instance of MockComponentInterface. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. -func NewMockComponentInterface(t mockConstructorTestingTNewMockComponentInterface) *MockComponentInterface { +}) *MockComponentInterface { mock := &MockComponentInterface{} mock.Mock.Test(t) diff --git a/pkg/api/ecosystem/mock_ComponentV1Alpha1Interface_test.go b/pkg/api/ecosystem/mock_ComponentV1Alpha1Interface_test.go index dd3bdc9..ddf00c1 100644 --- a/pkg/api/ecosystem/mock_ComponentV1Alpha1Interface_test.go +++ b/pkg/api/ecosystem/mock_ComponentV1Alpha1Interface_test.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.20.0. DO NOT EDIT. +// Code generated by mockery v2.42.1. DO NOT EDIT. package ecosystem @@ -21,6 +21,10 @@ func (_m *MockComponentV1Alpha1Interface) EXPECT() *MockComponentV1Alpha1Interfa func (_m *MockComponentV1Alpha1Interface) Components(namespace string) ComponentInterface { ret := _m.Called(namespace) + if len(ret) == 0 { + panic("no return value specified for Components") + } + var r0 ComponentInterface if rf, ok := ret.Get(0).(func(string) ComponentInterface); ok { r0 = rf(namespace) @@ -61,13 +65,12 @@ func (_c *MockComponentV1Alpha1Interface_Components_Call) RunAndReturn(run func( return _c } -type mockConstructorTestingTNewMockComponentV1Alpha1Interface interface { +// NewMockComponentV1Alpha1Interface creates a new instance of MockComponentV1Alpha1Interface. 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 NewMockComponentV1Alpha1Interface(t interface { mock.TestingT Cleanup(func()) -} - -// NewMockComponentV1Alpha1Interface creates a new instance of MockComponentV1Alpha1Interface. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. -func NewMockComponentV1Alpha1Interface(t mockConstructorTestingTNewMockComponentV1Alpha1Interface) *MockComponentV1Alpha1Interface { +}) *MockComponentV1Alpha1Interface { mock := &MockComponentV1Alpha1Interface{} mock.Mock.Test(t) diff --git a/pkg/config/mock_configMapInterface_test.go b/pkg/config/mock_configMapInterface_test.go index e8ff214..c3bd799 100644 --- a/pkg/config/mock_configMapInterface_test.go +++ b/pkg/config/mock_configMapInterface_test.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.20.0. DO NOT EDIT. +// Code generated by mockery v2.42.1. DO NOT EDIT. package config @@ -35,6 +35,10 @@ func (_m *mockConfigMapInterface) EXPECT() *mockConfigMapInterface_Expecter { func (_m *mockConfigMapInterface) Apply(ctx context.Context, configMap *v1.ConfigMapApplyConfiguration, opts metav1.ApplyOptions) (*corev1.ConfigMap, error) { ret := _m.Called(ctx, configMap, opts) + if len(ret) == 0 { + panic("no return value specified for Apply") + } + var r0 *corev1.ConfigMap var r1 error if rf, ok := ret.Get(0).(func(context.Context, *v1.ConfigMapApplyConfiguration, metav1.ApplyOptions) (*corev1.ConfigMap, error)); ok { @@ -91,6 +95,10 @@ func (_c *mockConfigMapInterface_Apply_Call) RunAndReturn(run func(context.Conte func (_m *mockConfigMapInterface) Create(ctx context.Context, configMap *corev1.ConfigMap, opts metav1.CreateOptions) (*corev1.ConfigMap, error) { ret := _m.Called(ctx, configMap, opts) + if len(ret) == 0 { + panic("no return value specified for Create") + } + var r0 *corev1.ConfigMap var r1 error if rf, ok := ret.Get(0).(func(context.Context, *corev1.ConfigMap, metav1.CreateOptions) (*corev1.ConfigMap, error)); ok { @@ -147,6 +155,10 @@ func (_c *mockConfigMapInterface_Create_Call) RunAndReturn(run func(context.Cont func (_m *mockConfigMapInterface) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error { ret := _m.Called(ctx, name, opts) + if len(ret) == 0 { + panic("no return value specified for Delete") + } + var r0 error if rf, ok := ret.Get(0).(func(context.Context, string, metav1.DeleteOptions) error); ok { r0 = rf(ctx, name, opts) @@ -191,6 +203,10 @@ func (_c *mockConfigMapInterface_Delete_Call) RunAndReturn(run func(context.Cont func (_m *mockConfigMapInterface) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { ret := _m.Called(ctx, opts, listOpts) + if len(ret) == 0 { + panic("no return value specified for DeleteCollection") + } + var r0 error if rf, ok := ret.Get(0).(func(context.Context, metav1.DeleteOptions, metav1.ListOptions) error); ok { r0 = rf(ctx, opts, listOpts) @@ -235,6 +251,10 @@ func (_c *mockConfigMapInterface_DeleteCollection_Call) RunAndReturn(run func(co func (_m *mockConfigMapInterface) Get(ctx context.Context, name string, opts metav1.GetOptions) (*corev1.ConfigMap, error) { ret := _m.Called(ctx, name, opts) + if len(ret) == 0 { + panic("no return value specified for Get") + } + var r0 *corev1.ConfigMap var r1 error if rf, ok := ret.Get(0).(func(context.Context, string, metav1.GetOptions) (*corev1.ConfigMap, error)); ok { @@ -291,6 +311,10 @@ func (_c *mockConfigMapInterface_Get_Call) RunAndReturn(run func(context.Context func (_m *mockConfigMapInterface) List(ctx context.Context, opts metav1.ListOptions) (*corev1.ConfigMapList, error) { ret := _m.Called(ctx, opts) + if len(ret) == 0 { + panic("no return value specified for List") + } + var r0 *corev1.ConfigMapList var r1 error if rf, ok := ret.Get(0).(func(context.Context, metav1.ListOptions) (*corev1.ConfigMapList, error)); ok { @@ -353,6 +377,10 @@ func (_m *mockConfigMapInterface) Patch(ctx context.Context, name string, pt typ _ca = append(_ca, _va...) ret := _m.Called(_ca...) + if len(ret) == 0 { + panic("no return value specified for Patch") + } + var r0 *corev1.ConfigMap var r1 error if rf, ok := ret.Get(0).(func(context.Context, string, types.PatchType, []byte, metav1.PatchOptions, ...string) (*corev1.ConfigMap, error)); ok { @@ -419,6 +447,10 @@ func (_c *mockConfigMapInterface_Patch_Call) RunAndReturn(run func(context.Conte func (_m *mockConfigMapInterface) Update(ctx context.Context, configMap *corev1.ConfigMap, opts metav1.UpdateOptions) (*corev1.ConfigMap, error) { ret := _m.Called(ctx, configMap, opts) + if len(ret) == 0 { + panic("no return value specified for Update") + } + var r0 *corev1.ConfigMap var r1 error if rf, ok := ret.Get(0).(func(context.Context, *corev1.ConfigMap, metav1.UpdateOptions) (*corev1.ConfigMap, error)); ok { @@ -475,6 +507,10 @@ func (_c *mockConfigMapInterface_Update_Call) RunAndReturn(run func(context.Cont func (_m *mockConfigMapInterface) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { ret := _m.Called(ctx, opts) + if len(ret) == 0 { + panic("no return value specified for Watch") + } + var r0 watch.Interface var r1 error if rf, ok := ret.Get(0).(func(context.Context, metav1.ListOptions) (watch.Interface, error)); ok { @@ -526,13 +562,12 @@ func (_c *mockConfigMapInterface_Watch_Call) RunAndReturn(run func(context.Conte return _c } -type mockConstructorTestingTnewMockConfigMapInterface interface { +// newMockConfigMapInterface creates a new instance of mockConfigMapInterface. 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 newMockConfigMapInterface(t interface { mock.TestingT Cleanup(func()) -} - -// newMockConfigMapInterface creates a new instance of mockConfigMapInterface. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. -func newMockConfigMapInterface(t mockConstructorTestingTnewMockConfigMapInterface) *mockConfigMapInterface { +}) *mockConfigMapInterface { mock := &mockConfigMapInterface{} mock.Mock.Test(t) diff --git a/pkg/controllers/componentController.go b/pkg/controllers/componentController.go index 533ca94..7351732 100644 --- a/pkg/controllers/componentController.go +++ b/pkg/controllers/componentController.go @@ -5,6 +5,8 @@ import ( "fmt" "github.com/cloudogu/k8s-component-operator/pkg/health" "reflect" + "sigs.k8s.io/controller-runtime/pkg/controller" + "sigs.k8s.io/controller-runtime/pkg/reconcile" "strings" k8sv1 "github.com/cloudogu/k8s-component-operator/pkg/api/v1" @@ -329,8 +331,16 @@ func (r *ComponentReconciler) getChangeOperationForRelease(component *k8sv1.Comp // SetupWithManager sets up the controller with the Manager. func (r *ComponentReconciler) SetupWithManager(mgr ctrl.Manager) error { + controllerOptions := mgr.GetControllerOptions() + options := controller.TypedOptions[reconcile.Request]{ + SkipNameValidation: controllerOptions.SkipNameValidation, + RecoverPanic: controllerOptions.RecoverPanic, + NeedLeaderElection: controllerOptions.NeedLeaderElection, + } + return ctrl.NewControllerManagedBy(mgr). WithEventFilter(predicate.GenerationChangedPredicate{}). + WithOptions(options). For(&k8sv1.Component{}). Complete(r) } diff --git a/pkg/controllers/mock_ComponentManager_test.go b/pkg/controllers/mock_ComponentManager_test.go index a227a55..d0d415a 100644 --- a/pkg/controllers/mock_ComponentManager_test.go +++ b/pkg/controllers/mock_ComponentManager_test.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.20.0. DO NOT EDIT. +// Code generated by mockery v2.42.1. DO NOT EDIT. package controllers @@ -26,6 +26,10 @@ func (_m *MockComponentManager) EXPECT() *MockComponentManager_Expecter { func (_m *MockComponentManager) Delete(ctx context.Context, component *v1.Component) error { ret := _m.Called(ctx, component) + if len(ret) == 0 { + panic("no return value specified for Delete") + } + var r0 error if rf, ok := ret.Get(0).(func(context.Context, *v1.Component) error); ok { r0 = rf(ctx, component) @@ -69,6 +73,10 @@ func (_c *MockComponentManager_Delete_Call) RunAndReturn(run func(context.Contex func (_m *MockComponentManager) Install(ctx context.Context, component *v1.Component) error { ret := _m.Called(ctx, component) + if len(ret) == 0 { + panic("no return value specified for Install") + } + var r0 error if rf, ok := ret.Get(0).(func(context.Context, *v1.Component) error); ok { r0 = rf(ctx, component) @@ -112,6 +120,10 @@ func (_c *MockComponentManager_Install_Call) RunAndReturn(run func(context.Conte func (_m *MockComponentManager) Upgrade(ctx context.Context, component *v1.Component) error { ret := _m.Called(ctx, component) + if len(ret) == 0 { + panic("no return value specified for Upgrade") + } + var r0 error if rf, ok := ret.Get(0).(func(context.Context, *v1.Component) error); ok { r0 = rf(ctx, component) @@ -151,13 +163,12 @@ func (_c *MockComponentManager_Upgrade_Call) RunAndReturn(run func(context.Conte return _c } -type mockConstructorTestingTNewMockComponentManager interface { +// NewMockComponentManager creates a new instance of MockComponentManager. 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 NewMockComponentManager(t interface { mock.TestingT Cleanup(func()) -} - -// NewMockComponentManager creates a new instance of MockComponentManager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. -func NewMockComponentManager(t mockConstructorTestingTNewMockComponentManager) *MockComponentManager { +}) *MockComponentManager { mock := &MockComponentManager{} mock.Mock.Test(t) diff --git a/pkg/controllers/mock_appsV1Interface_test.go b/pkg/controllers/mock_appsV1Interface_test.go index dbc940a..aefda4a 100644 --- a/pkg/controllers/mock_appsV1Interface_test.go +++ b/pkg/controllers/mock_appsV1Interface_test.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.20.0. DO NOT EDIT. +// Code generated by mockery v2.42.1. DO NOT EDIT. package controllers @@ -26,6 +26,10 @@ func (_m *mockAppsV1Interface) EXPECT() *mockAppsV1Interface_Expecter { func (_m *mockAppsV1Interface) ControllerRevisions(namespace string) v1.ControllerRevisionInterface { ret := _m.Called(namespace) + if len(ret) == 0 { + panic("no return value specified for ControllerRevisions") + } + var r0 v1.ControllerRevisionInterface if rf, ok := ret.Get(0).(func(string) v1.ControllerRevisionInterface); ok { r0 = rf(namespace) @@ -70,6 +74,10 @@ func (_c *mockAppsV1Interface_ControllerRevisions_Call) RunAndReturn(run func(st func (_m *mockAppsV1Interface) DaemonSets(namespace string) v1.DaemonSetInterface { ret := _m.Called(namespace) + if len(ret) == 0 { + panic("no return value specified for DaemonSets") + } + var r0 v1.DaemonSetInterface if rf, ok := ret.Get(0).(func(string) v1.DaemonSetInterface); ok { r0 = rf(namespace) @@ -114,6 +122,10 @@ func (_c *mockAppsV1Interface_DaemonSets_Call) RunAndReturn(run func(string) v1. func (_m *mockAppsV1Interface) Deployments(namespace string) v1.DeploymentInterface { ret := _m.Called(namespace) + if len(ret) == 0 { + panic("no return value specified for Deployments") + } + var r0 v1.DeploymentInterface if rf, ok := ret.Get(0).(func(string) v1.DeploymentInterface); ok { r0 = rf(namespace) @@ -158,6 +170,10 @@ func (_c *mockAppsV1Interface_Deployments_Call) RunAndReturn(run func(string) v1 func (_m *mockAppsV1Interface) RESTClient() rest.Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for RESTClient") + } + var r0 rest.Interface if rf, ok := ret.Get(0).(func() rest.Interface); ok { r0 = rf() @@ -201,6 +217,10 @@ func (_c *mockAppsV1Interface_RESTClient_Call) RunAndReturn(run func() rest.Inte func (_m *mockAppsV1Interface) ReplicaSets(namespace string) v1.ReplicaSetInterface { ret := _m.Called(namespace) + if len(ret) == 0 { + panic("no return value specified for ReplicaSets") + } + var r0 v1.ReplicaSetInterface if rf, ok := ret.Get(0).(func(string) v1.ReplicaSetInterface); ok { r0 = rf(namespace) @@ -245,6 +265,10 @@ func (_c *mockAppsV1Interface_ReplicaSets_Call) RunAndReturn(run func(string) v1 func (_m *mockAppsV1Interface) StatefulSets(namespace string) v1.StatefulSetInterface { ret := _m.Called(namespace) + if len(ret) == 0 { + panic("no return value specified for StatefulSets") + } + var r0 v1.StatefulSetInterface if rf, ok := ret.Get(0).(func(string) v1.StatefulSetInterface); ok { r0 = rf(namespace) @@ -285,13 +309,12 @@ func (_c *mockAppsV1Interface_StatefulSets_Call) RunAndReturn(run func(string) v return _c } -type mockConstructorTestingTnewMockAppsV1Interface interface { +// newMockAppsV1Interface creates a new instance of mockAppsV1Interface. 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 newMockAppsV1Interface(t interface { mock.TestingT Cleanup(func()) -} - -// newMockAppsV1Interface creates a new instance of mockAppsV1Interface. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. -func newMockAppsV1Interface(t mockConstructorTestingTnewMockAppsV1Interface) *mockAppsV1Interface { +}) *mockAppsV1Interface { mock := &mockAppsV1Interface{} mock.Mock.Test(t) diff --git a/pkg/controllers/mock_componentEcosystemInterface_test.go b/pkg/controllers/mock_componentEcosystemInterface_test.go index 09f8f9c..04fe9f2 100644 --- a/pkg/controllers/mock_componentEcosystemInterface_test.go +++ b/pkg/controllers/mock_componentEcosystemInterface_test.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.20.0. DO NOT EDIT. +// Code generated by mockery v2.42.1. DO NOT EDIT. package controllers @@ -32,6 +32,8 @@ import ( coordinationv1 "k8s.io/client-go/kubernetes/typed/coordination/v1" + coordinationv1alpha1 "k8s.io/client-go/kubernetes/typed/coordination/v1alpha1" + coordinationv1beta1 "k8s.io/client-go/kubernetes/typed/coordination/v1beta1" corev1 "k8s.io/client-go/kubernetes/typed/core/v1" @@ -86,6 +88,8 @@ import ( schedulingv1beta1 "k8s.io/client-go/kubernetes/typed/scheduling/v1beta1" + storagemigrationv1alpha1 "k8s.io/client-go/kubernetes/typed/storagemigration/v1alpha1" + storagev1 "k8s.io/client-go/kubernetes/typed/storage/v1" storagev1alpha1 "k8s.io/client-go/kubernetes/typed/storage/v1alpha1" @@ -96,7 +100,7 @@ import ( v1alpha1 "k8s.io/client-go/kubernetes/typed/admissionregistration/v1alpha1" - v1alpha2 "k8s.io/client-go/kubernetes/typed/resource/v1alpha2" + v1alpha3 "k8s.io/client-go/kubernetes/typed/resource/v1alpha3" v1beta1 "k8s.io/client-go/kubernetes/typed/admissionregistration/v1beta1" @@ -128,6 +132,10 @@ func (_m *mockComponentEcosystemInterface) EXPECT() *mockComponentEcosystemInter func (_m *mockComponentEcosystemInterface) AdmissionregistrationV1() v1.AdmissionregistrationV1Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for AdmissionregistrationV1") + } + var r0 v1.AdmissionregistrationV1Interface if rf, ok := ret.Get(0).(func() v1.AdmissionregistrationV1Interface); ok { r0 = rf() @@ -171,6 +179,10 @@ func (_c *mockComponentEcosystemInterface_AdmissionregistrationV1_Call) RunAndRe func (_m *mockComponentEcosystemInterface) AdmissionregistrationV1alpha1() v1alpha1.AdmissionregistrationV1alpha1Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for AdmissionregistrationV1alpha1") + } + var r0 v1alpha1.AdmissionregistrationV1alpha1Interface if rf, ok := ret.Get(0).(func() v1alpha1.AdmissionregistrationV1alpha1Interface); ok { r0 = rf() @@ -214,6 +226,10 @@ func (_c *mockComponentEcosystemInterface_AdmissionregistrationV1alpha1_Call) Ru func (_m *mockComponentEcosystemInterface) AdmissionregistrationV1beta1() v1beta1.AdmissionregistrationV1beta1Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for AdmissionregistrationV1beta1") + } + var r0 v1beta1.AdmissionregistrationV1beta1Interface if rf, ok := ret.Get(0).(func() v1beta1.AdmissionregistrationV1beta1Interface); ok { r0 = rf() @@ -257,6 +273,10 @@ func (_c *mockComponentEcosystemInterface_AdmissionregistrationV1beta1_Call) Run func (_m *mockComponentEcosystemInterface) AppsV1() appsv1.AppsV1Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for AppsV1") + } + var r0 appsv1.AppsV1Interface if rf, ok := ret.Get(0).(func() appsv1.AppsV1Interface); ok { r0 = rf() @@ -300,6 +320,10 @@ func (_c *mockComponentEcosystemInterface_AppsV1_Call) RunAndReturn(run func() a func (_m *mockComponentEcosystemInterface) AppsV1beta1() appsv1beta1.AppsV1beta1Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for AppsV1beta1") + } + var r0 appsv1beta1.AppsV1beta1Interface if rf, ok := ret.Get(0).(func() appsv1beta1.AppsV1beta1Interface); ok { r0 = rf() @@ -343,6 +367,10 @@ func (_c *mockComponentEcosystemInterface_AppsV1beta1_Call) RunAndReturn(run fun func (_m *mockComponentEcosystemInterface) AppsV1beta2() v1beta2.AppsV1beta2Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for AppsV1beta2") + } + var r0 v1beta2.AppsV1beta2Interface if rf, ok := ret.Get(0).(func() v1beta2.AppsV1beta2Interface); ok { r0 = rf() @@ -386,6 +414,10 @@ func (_c *mockComponentEcosystemInterface_AppsV1beta2_Call) RunAndReturn(run fun func (_m *mockComponentEcosystemInterface) AuthenticationV1() authenticationv1.AuthenticationV1Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for AuthenticationV1") + } + var r0 authenticationv1.AuthenticationV1Interface if rf, ok := ret.Get(0).(func() authenticationv1.AuthenticationV1Interface); ok { r0 = rf() @@ -429,6 +461,10 @@ func (_c *mockComponentEcosystemInterface_AuthenticationV1_Call) RunAndReturn(ru func (_m *mockComponentEcosystemInterface) AuthenticationV1alpha1() authenticationv1alpha1.AuthenticationV1alpha1Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for AuthenticationV1alpha1") + } + var r0 authenticationv1alpha1.AuthenticationV1alpha1Interface if rf, ok := ret.Get(0).(func() authenticationv1alpha1.AuthenticationV1alpha1Interface); ok { r0 = rf() @@ -472,6 +508,10 @@ func (_c *mockComponentEcosystemInterface_AuthenticationV1alpha1_Call) RunAndRet func (_m *mockComponentEcosystemInterface) AuthenticationV1beta1() authenticationv1beta1.AuthenticationV1beta1Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for AuthenticationV1beta1") + } + var r0 authenticationv1beta1.AuthenticationV1beta1Interface if rf, ok := ret.Get(0).(func() authenticationv1beta1.AuthenticationV1beta1Interface); ok { r0 = rf() @@ -515,6 +555,10 @@ func (_c *mockComponentEcosystemInterface_AuthenticationV1beta1_Call) RunAndRetu func (_m *mockComponentEcosystemInterface) AuthorizationV1() authorizationv1.AuthorizationV1Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for AuthorizationV1") + } + var r0 authorizationv1.AuthorizationV1Interface if rf, ok := ret.Get(0).(func() authorizationv1.AuthorizationV1Interface); ok { r0 = rf() @@ -558,6 +602,10 @@ func (_c *mockComponentEcosystemInterface_AuthorizationV1_Call) RunAndReturn(run func (_m *mockComponentEcosystemInterface) AuthorizationV1beta1() authorizationv1beta1.AuthorizationV1beta1Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for AuthorizationV1beta1") + } + var r0 authorizationv1beta1.AuthorizationV1beta1Interface if rf, ok := ret.Get(0).(func() authorizationv1beta1.AuthorizationV1beta1Interface); ok { r0 = rf() @@ -601,6 +649,10 @@ func (_c *mockComponentEcosystemInterface_AuthorizationV1beta1_Call) RunAndRetur func (_m *mockComponentEcosystemInterface) AutoscalingV1() autoscalingv1.AutoscalingV1Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for AutoscalingV1") + } + var r0 autoscalingv1.AutoscalingV1Interface if rf, ok := ret.Get(0).(func() autoscalingv1.AutoscalingV1Interface); ok { r0 = rf() @@ -644,6 +696,10 @@ func (_c *mockComponentEcosystemInterface_AutoscalingV1_Call) RunAndReturn(run f func (_m *mockComponentEcosystemInterface) AutoscalingV2() v2.AutoscalingV2Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for AutoscalingV2") + } + var r0 v2.AutoscalingV2Interface if rf, ok := ret.Get(0).(func() v2.AutoscalingV2Interface); ok { r0 = rf() @@ -687,6 +743,10 @@ func (_c *mockComponentEcosystemInterface_AutoscalingV2_Call) RunAndReturn(run f func (_m *mockComponentEcosystemInterface) AutoscalingV2beta1() v2beta1.AutoscalingV2beta1Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for AutoscalingV2beta1") + } + var r0 v2beta1.AutoscalingV2beta1Interface if rf, ok := ret.Get(0).(func() v2beta1.AutoscalingV2beta1Interface); ok { r0 = rf() @@ -730,6 +790,10 @@ func (_c *mockComponentEcosystemInterface_AutoscalingV2beta1_Call) RunAndReturn( func (_m *mockComponentEcosystemInterface) AutoscalingV2beta2() v2beta2.AutoscalingV2beta2Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for AutoscalingV2beta2") + } + var r0 v2beta2.AutoscalingV2beta2Interface if rf, ok := ret.Get(0).(func() v2beta2.AutoscalingV2beta2Interface); ok { r0 = rf() @@ -773,6 +837,10 @@ func (_c *mockComponentEcosystemInterface_AutoscalingV2beta2_Call) RunAndReturn( func (_m *mockComponentEcosystemInterface) BatchV1() batchv1.BatchV1Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for BatchV1") + } + var r0 batchv1.BatchV1Interface if rf, ok := ret.Get(0).(func() batchv1.BatchV1Interface); ok { r0 = rf() @@ -816,6 +884,10 @@ func (_c *mockComponentEcosystemInterface_BatchV1_Call) RunAndReturn(run func() func (_m *mockComponentEcosystemInterface) BatchV1beta1() batchv1beta1.BatchV1beta1Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for BatchV1beta1") + } + var r0 batchv1beta1.BatchV1beta1Interface if rf, ok := ret.Get(0).(func() batchv1beta1.BatchV1beta1Interface); ok { r0 = rf() @@ -859,6 +931,10 @@ func (_c *mockComponentEcosystemInterface_BatchV1beta1_Call) RunAndReturn(run fu func (_m *mockComponentEcosystemInterface) CertificatesV1() certificatesv1.CertificatesV1Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for CertificatesV1") + } + var r0 certificatesv1.CertificatesV1Interface if rf, ok := ret.Get(0).(func() certificatesv1.CertificatesV1Interface); ok { r0 = rf() @@ -902,6 +978,10 @@ func (_c *mockComponentEcosystemInterface_CertificatesV1_Call) RunAndReturn(run func (_m *mockComponentEcosystemInterface) CertificatesV1alpha1() certificatesv1alpha1.CertificatesV1alpha1Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for CertificatesV1alpha1") + } + var r0 certificatesv1alpha1.CertificatesV1alpha1Interface if rf, ok := ret.Get(0).(func() certificatesv1alpha1.CertificatesV1alpha1Interface); ok { r0 = rf() @@ -945,6 +1025,10 @@ func (_c *mockComponentEcosystemInterface_CertificatesV1alpha1_Call) RunAndRetur func (_m *mockComponentEcosystemInterface) CertificatesV1beta1() certificatesv1beta1.CertificatesV1beta1Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for CertificatesV1beta1") + } + var r0 certificatesv1beta1.CertificatesV1beta1Interface if rf, ok := ret.Get(0).(func() certificatesv1beta1.CertificatesV1beta1Interface); ok { r0 = rf() @@ -988,6 +1072,10 @@ func (_c *mockComponentEcosystemInterface_CertificatesV1beta1_Call) RunAndReturn func (_m *mockComponentEcosystemInterface) ComponentV1Alpha1() ecosystem.ComponentV1Alpha1Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for ComponentV1Alpha1") + } + var r0 ecosystem.ComponentV1Alpha1Interface if rf, ok := ret.Get(0).(func() ecosystem.ComponentV1Alpha1Interface); ok { r0 = rf() @@ -1031,6 +1119,10 @@ func (_c *mockComponentEcosystemInterface_ComponentV1Alpha1_Call) RunAndReturn(r func (_m *mockComponentEcosystemInterface) CoordinationV1() coordinationv1.CoordinationV1Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for CoordinationV1") + } + var r0 coordinationv1.CoordinationV1Interface if rf, ok := ret.Get(0).(func() coordinationv1.CoordinationV1Interface); ok { r0 = rf() @@ -1070,10 +1162,61 @@ func (_c *mockComponentEcosystemInterface_CoordinationV1_Call) RunAndReturn(run return _c } +// CoordinationV1alpha1 provides a mock function with given fields: +func (_m *mockComponentEcosystemInterface) CoordinationV1alpha1() coordinationv1alpha1.CoordinationV1alpha1Interface { + ret := _m.Called() + + if len(ret) == 0 { + panic("no return value specified for CoordinationV1alpha1") + } + + var r0 coordinationv1alpha1.CoordinationV1alpha1Interface + if rf, ok := ret.Get(0).(func() coordinationv1alpha1.CoordinationV1alpha1Interface); ok { + r0 = rf() + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(coordinationv1alpha1.CoordinationV1alpha1Interface) + } + } + + return r0 +} + +// mockComponentEcosystemInterface_CoordinationV1alpha1_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CoordinationV1alpha1' +type mockComponentEcosystemInterface_CoordinationV1alpha1_Call struct { + *mock.Call +} + +// CoordinationV1alpha1 is a helper method to define mock.On call +func (_e *mockComponentEcosystemInterface_Expecter) CoordinationV1alpha1() *mockComponentEcosystemInterface_CoordinationV1alpha1_Call { + return &mockComponentEcosystemInterface_CoordinationV1alpha1_Call{Call: _e.mock.On("CoordinationV1alpha1")} +} + +func (_c *mockComponentEcosystemInterface_CoordinationV1alpha1_Call) Run(run func()) *mockComponentEcosystemInterface_CoordinationV1alpha1_Call { + _c.Call.Run(func(args mock.Arguments) { + run() + }) + return _c +} + +func (_c *mockComponentEcosystemInterface_CoordinationV1alpha1_Call) Return(_a0 coordinationv1alpha1.CoordinationV1alpha1Interface) *mockComponentEcosystemInterface_CoordinationV1alpha1_Call { + _c.Call.Return(_a0) + return _c +} + +func (_c *mockComponentEcosystemInterface_CoordinationV1alpha1_Call) RunAndReturn(run func() coordinationv1alpha1.CoordinationV1alpha1Interface) *mockComponentEcosystemInterface_CoordinationV1alpha1_Call { + _c.Call.Return(run) + return _c +} + // CoordinationV1beta1 provides a mock function with given fields: func (_m *mockComponentEcosystemInterface) CoordinationV1beta1() coordinationv1beta1.CoordinationV1beta1Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for CoordinationV1beta1") + } + var r0 coordinationv1beta1.CoordinationV1beta1Interface if rf, ok := ret.Get(0).(func() coordinationv1beta1.CoordinationV1beta1Interface); ok { r0 = rf() @@ -1117,6 +1260,10 @@ func (_c *mockComponentEcosystemInterface_CoordinationV1beta1_Call) RunAndReturn func (_m *mockComponentEcosystemInterface) CoreV1() corev1.CoreV1Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for CoreV1") + } + var r0 corev1.CoreV1Interface if rf, ok := ret.Get(0).(func() corev1.CoreV1Interface); ok { r0 = rf() @@ -1160,6 +1307,10 @@ func (_c *mockComponentEcosystemInterface_CoreV1_Call) RunAndReturn(run func() c func (_m *mockComponentEcosystemInterface) Discovery() discovery.DiscoveryInterface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for Discovery") + } + var r0 discovery.DiscoveryInterface if rf, ok := ret.Get(0).(func() discovery.DiscoveryInterface); ok { r0 = rf() @@ -1203,6 +1354,10 @@ func (_c *mockComponentEcosystemInterface_Discovery_Call) RunAndReturn(run func( func (_m *mockComponentEcosystemInterface) DiscoveryV1() discoveryv1.DiscoveryV1Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for DiscoveryV1") + } + var r0 discoveryv1.DiscoveryV1Interface if rf, ok := ret.Get(0).(func() discoveryv1.DiscoveryV1Interface); ok { r0 = rf() @@ -1246,6 +1401,10 @@ func (_c *mockComponentEcosystemInterface_DiscoveryV1_Call) RunAndReturn(run fun func (_m *mockComponentEcosystemInterface) DiscoveryV1beta1() discoveryv1beta1.DiscoveryV1beta1Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for DiscoveryV1beta1") + } + var r0 discoveryv1beta1.DiscoveryV1beta1Interface if rf, ok := ret.Get(0).(func() discoveryv1beta1.DiscoveryV1beta1Interface); ok { r0 = rf() @@ -1289,6 +1448,10 @@ func (_c *mockComponentEcosystemInterface_DiscoveryV1beta1_Call) RunAndReturn(ru func (_m *mockComponentEcosystemInterface) EventsV1() eventsv1.EventsV1Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for EventsV1") + } + var r0 eventsv1.EventsV1Interface if rf, ok := ret.Get(0).(func() eventsv1.EventsV1Interface); ok { r0 = rf() @@ -1332,6 +1495,10 @@ func (_c *mockComponentEcosystemInterface_EventsV1_Call) RunAndReturn(run func() func (_m *mockComponentEcosystemInterface) EventsV1beta1() eventsv1beta1.EventsV1beta1Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for EventsV1beta1") + } + var r0 eventsv1beta1.EventsV1beta1Interface if rf, ok := ret.Get(0).(func() eventsv1beta1.EventsV1beta1Interface); ok { r0 = rf() @@ -1375,6 +1542,10 @@ func (_c *mockComponentEcosystemInterface_EventsV1beta1_Call) RunAndReturn(run f func (_m *mockComponentEcosystemInterface) ExtensionsV1beta1() extensionsv1beta1.ExtensionsV1beta1Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for ExtensionsV1beta1") + } + var r0 extensionsv1beta1.ExtensionsV1beta1Interface if rf, ok := ret.Get(0).(func() extensionsv1beta1.ExtensionsV1beta1Interface); ok { r0 = rf() @@ -1418,6 +1589,10 @@ func (_c *mockComponentEcosystemInterface_ExtensionsV1beta1_Call) RunAndReturn(r func (_m *mockComponentEcosystemInterface) FlowcontrolV1() flowcontrolv1.FlowcontrolV1Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for FlowcontrolV1") + } + var r0 flowcontrolv1.FlowcontrolV1Interface if rf, ok := ret.Get(0).(func() flowcontrolv1.FlowcontrolV1Interface); ok { r0 = rf() @@ -1461,6 +1636,10 @@ func (_c *mockComponentEcosystemInterface_FlowcontrolV1_Call) RunAndReturn(run f func (_m *mockComponentEcosystemInterface) FlowcontrolV1beta1() flowcontrolv1beta1.FlowcontrolV1beta1Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for FlowcontrolV1beta1") + } + var r0 flowcontrolv1beta1.FlowcontrolV1beta1Interface if rf, ok := ret.Get(0).(func() flowcontrolv1beta1.FlowcontrolV1beta1Interface); ok { r0 = rf() @@ -1504,6 +1683,10 @@ func (_c *mockComponentEcosystemInterface_FlowcontrolV1beta1_Call) RunAndReturn( func (_m *mockComponentEcosystemInterface) FlowcontrolV1beta2() flowcontrolv1beta2.FlowcontrolV1beta2Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for FlowcontrolV1beta2") + } + var r0 flowcontrolv1beta2.FlowcontrolV1beta2Interface if rf, ok := ret.Get(0).(func() flowcontrolv1beta2.FlowcontrolV1beta2Interface); ok { r0 = rf() @@ -1547,6 +1730,10 @@ func (_c *mockComponentEcosystemInterface_FlowcontrolV1beta2_Call) RunAndReturn( func (_m *mockComponentEcosystemInterface) FlowcontrolV1beta3() v1beta3.FlowcontrolV1beta3Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for FlowcontrolV1beta3") + } + var r0 v1beta3.FlowcontrolV1beta3Interface if rf, ok := ret.Get(0).(func() v1beta3.FlowcontrolV1beta3Interface); ok { r0 = rf() @@ -1590,6 +1777,10 @@ func (_c *mockComponentEcosystemInterface_FlowcontrolV1beta3_Call) RunAndReturn( func (_m *mockComponentEcosystemInterface) InternalV1alpha1() apiserverinternalv1alpha1.InternalV1alpha1Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for InternalV1alpha1") + } + var r0 apiserverinternalv1alpha1.InternalV1alpha1Interface if rf, ok := ret.Get(0).(func() apiserverinternalv1alpha1.InternalV1alpha1Interface); ok { r0 = rf() @@ -1633,6 +1824,10 @@ func (_c *mockComponentEcosystemInterface_InternalV1alpha1_Call) RunAndReturn(ru func (_m *mockComponentEcosystemInterface) NetworkingV1() networkingv1.NetworkingV1Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for NetworkingV1") + } + var r0 networkingv1.NetworkingV1Interface if rf, ok := ret.Get(0).(func() networkingv1.NetworkingV1Interface); ok { r0 = rf() @@ -1676,6 +1871,10 @@ func (_c *mockComponentEcosystemInterface_NetworkingV1_Call) RunAndReturn(run fu func (_m *mockComponentEcosystemInterface) NetworkingV1alpha1() networkingv1alpha1.NetworkingV1alpha1Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for NetworkingV1alpha1") + } + var r0 networkingv1alpha1.NetworkingV1alpha1Interface if rf, ok := ret.Get(0).(func() networkingv1alpha1.NetworkingV1alpha1Interface); ok { r0 = rf() @@ -1719,6 +1918,10 @@ func (_c *mockComponentEcosystemInterface_NetworkingV1alpha1_Call) RunAndReturn( func (_m *mockComponentEcosystemInterface) NetworkingV1beta1() networkingv1beta1.NetworkingV1beta1Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for NetworkingV1beta1") + } + var r0 networkingv1beta1.NetworkingV1beta1Interface if rf, ok := ret.Get(0).(func() networkingv1beta1.NetworkingV1beta1Interface); ok { r0 = rf() @@ -1762,6 +1965,10 @@ func (_c *mockComponentEcosystemInterface_NetworkingV1beta1_Call) RunAndReturn(r func (_m *mockComponentEcosystemInterface) NodeV1() nodev1.NodeV1Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for NodeV1") + } + var r0 nodev1.NodeV1Interface if rf, ok := ret.Get(0).(func() nodev1.NodeV1Interface); ok { r0 = rf() @@ -1805,6 +2012,10 @@ func (_c *mockComponentEcosystemInterface_NodeV1_Call) RunAndReturn(run func() n func (_m *mockComponentEcosystemInterface) NodeV1alpha1() nodev1alpha1.NodeV1alpha1Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for NodeV1alpha1") + } + var r0 nodev1alpha1.NodeV1alpha1Interface if rf, ok := ret.Get(0).(func() nodev1alpha1.NodeV1alpha1Interface); ok { r0 = rf() @@ -1848,6 +2059,10 @@ func (_c *mockComponentEcosystemInterface_NodeV1alpha1_Call) RunAndReturn(run fu func (_m *mockComponentEcosystemInterface) NodeV1beta1() nodev1beta1.NodeV1beta1Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for NodeV1beta1") + } + var r0 nodev1beta1.NodeV1beta1Interface if rf, ok := ret.Get(0).(func() nodev1beta1.NodeV1beta1Interface); ok { r0 = rf() @@ -1891,6 +2106,10 @@ func (_c *mockComponentEcosystemInterface_NodeV1beta1_Call) RunAndReturn(run fun func (_m *mockComponentEcosystemInterface) PolicyV1() policyv1.PolicyV1Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for PolicyV1") + } + var r0 policyv1.PolicyV1Interface if rf, ok := ret.Get(0).(func() policyv1.PolicyV1Interface); ok { r0 = rf() @@ -1934,6 +2153,10 @@ func (_c *mockComponentEcosystemInterface_PolicyV1_Call) RunAndReturn(run func() func (_m *mockComponentEcosystemInterface) PolicyV1beta1() policyv1beta1.PolicyV1beta1Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for PolicyV1beta1") + } + var r0 policyv1beta1.PolicyV1beta1Interface if rf, ok := ret.Get(0).(func() policyv1beta1.PolicyV1beta1Interface); ok { r0 = rf() @@ -1977,6 +2200,10 @@ func (_c *mockComponentEcosystemInterface_PolicyV1beta1_Call) RunAndReturn(run f func (_m *mockComponentEcosystemInterface) RbacV1() rbacv1.RbacV1Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for RbacV1") + } + var r0 rbacv1.RbacV1Interface if rf, ok := ret.Get(0).(func() rbacv1.RbacV1Interface); ok { r0 = rf() @@ -2020,6 +2247,10 @@ func (_c *mockComponentEcosystemInterface_RbacV1_Call) RunAndReturn(run func() r func (_m *mockComponentEcosystemInterface) RbacV1alpha1() rbacv1alpha1.RbacV1alpha1Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for RbacV1alpha1") + } + var r0 rbacv1alpha1.RbacV1alpha1Interface if rf, ok := ret.Get(0).(func() rbacv1alpha1.RbacV1alpha1Interface); ok { r0 = rf() @@ -2063,6 +2294,10 @@ func (_c *mockComponentEcosystemInterface_RbacV1alpha1_Call) RunAndReturn(run fu func (_m *mockComponentEcosystemInterface) RbacV1beta1() rbacv1beta1.RbacV1beta1Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for RbacV1beta1") + } + var r0 rbacv1beta1.RbacV1beta1Interface if rf, ok := ret.Get(0).(func() rbacv1beta1.RbacV1beta1Interface); ok { r0 = rf() @@ -2102,45 +2337,49 @@ func (_c *mockComponentEcosystemInterface_RbacV1beta1_Call) RunAndReturn(run fun return _c } -// ResourceV1alpha2 provides a mock function with given fields: -func (_m *mockComponentEcosystemInterface) ResourceV1alpha2() v1alpha2.ResourceV1alpha2Interface { +// ResourceV1alpha3 provides a mock function with given fields: +func (_m *mockComponentEcosystemInterface) ResourceV1alpha3() v1alpha3.ResourceV1alpha3Interface { ret := _m.Called() - var r0 v1alpha2.ResourceV1alpha2Interface - if rf, ok := ret.Get(0).(func() v1alpha2.ResourceV1alpha2Interface); ok { + if len(ret) == 0 { + panic("no return value specified for ResourceV1alpha3") + } + + var r0 v1alpha3.ResourceV1alpha3Interface + if rf, ok := ret.Get(0).(func() v1alpha3.ResourceV1alpha3Interface); ok { r0 = rf() } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(v1alpha2.ResourceV1alpha2Interface) + r0 = ret.Get(0).(v1alpha3.ResourceV1alpha3Interface) } } return r0 } -// mockComponentEcosystemInterface_ResourceV1alpha2_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ResourceV1alpha2' -type mockComponentEcosystemInterface_ResourceV1alpha2_Call struct { +// mockComponentEcosystemInterface_ResourceV1alpha3_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ResourceV1alpha3' +type mockComponentEcosystemInterface_ResourceV1alpha3_Call struct { *mock.Call } -// ResourceV1alpha2 is a helper method to define mock.On call -func (_e *mockComponentEcosystemInterface_Expecter) ResourceV1alpha2() *mockComponentEcosystemInterface_ResourceV1alpha2_Call { - return &mockComponentEcosystemInterface_ResourceV1alpha2_Call{Call: _e.mock.On("ResourceV1alpha2")} +// ResourceV1alpha3 is a helper method to define mock.On call +func (_e *mockComponentEcosystemInterface_Expecter) ResourceV1alpha3() *mockComponentEcosystemInterface_ResourceV1alpha3_Call { + return &mockComponentEcosystemInterface_ResourceV1alpha3_Call{Call: _e.mock.On("ResourceV1alpha3")} } -func (_c *mockComponentEcosystemInterface_ResourceV1alpha2_Call) Run(run func()) *mockComponentEcosystemInterface_ResourceV1alpha2_Call { +func (_c *mockComponentEcosystemInterface_ResourceV1alpha3_Call) Run(run func()) *mockComponentEcosystemInterface_ResourceV1alpha3_Call { _c.Call.Run(func(args mock.Arguments) { run() }) return _c } -func (_c *mockComponentEcosystemInterface_ResourceV1alpha2_Call) Return(_a0 v1alpha2.ResourceV1alpha2Interface) *mockComponentEcosystemInterface_ResourceV1alpha2_Call { +func (_c *mockComponentEcosystemInterface_ResourceV1alpha3_Call) Return(_a0 v1alpha3.ResourceV1alpha3Interface) *mockComponentEcosystemInterface_ResourceV1alpha3_Call { _c.Call.Return(_a0) return _c } -func (_c *mockComponentEcosystemInterface_ResourceV1alpha2_Call) RunAndReturn(run func() v1alpha2.ResourceV1alpha2Interface) *mockComponentEcosystemInterface_ResourceV1alpha2_Call { +func (_c *mockComponentEcosystemInterface_ResourceV1alpha3_Call) RunAndReturn(run func() v1alpha3.ResourceV1alpha3Interface) *mockComponentEcosystemInterface_ResourceV1alpha3_Call { _c.Call.Return(run) return _c } @@ -2149,6 +2388,10 @@ func (_c *mockComponentEcosystemInterface_ResourceV1alpha2_Call) RunAndReturn(ru func (_m *mockComponentEcosystemInterface) SchedulingV1() schedulingv1.SchedulingV1Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for SchedulingV1") + } + var r0 schedulingv1.SchedulingV1Interface if rf, ok := ret.Get(0).(func() schedulingv1.SchedulingV1Interface); ok { r0 = rf() @@ -2192,6 +2435,10 @@ func (_c *mockComponentEcosystemInterface_SchedulingV1_Call) RunAndReturn(run fu func (_m *mockComponentEcosystemInterface) SchedulingV1alpha1() schedulingv1alpha1.SchedulingV1alpha1Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for SchedulingV1alpha1") + } + var r0 schedulingv1alpha1.SchedulingV1alpha1Interface if rf, ok := ret.Get(0).(func() schedulingv1alpha1.SchedulingV1alpha1Interface); ok { r0 = rf() @@ -2235,6 +2482,10 @@ func (_c *mockComponentEcosystemInterface_SchedulingV1alpha1_Call) RunAndReturn( func (_m *mockComponentEcosystemInterface) SchedulingV1beta1() schedulingv1beta1.SchedulingV1beta1Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for SchedulingV1beta1") + } + var r0 schedulingv1beta1.SchedulingV1beta1Interface if rf, ok := ret.Get(0).(func() schedulingv1beta1.SchedulingV1beta1Interface); ok { r0 = rf() @@ -2278,6 +2529,10 @@ func (_c *mockComponentEcosystemInterface_SchedulingV1beta1_Call) RunAndReturn(r func (_m *mockComponentEcosystemInterface) StorageV1() storagev1.StorageV1Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for StorageV1") + } + var r0 storagev1.StorageV1Interface if rf, ok := ret.Get(0).(func() storagev1.StorageV1Interface); ok { r0 = rf() @@ -2321,6 +2576,10 @@ func (_c *mockComponentEcosystemInterface_StorageV1_Call) RunAndReturn(run func( func (_m *mockComponentEcosystemInterface) StorageV1alpha1() storagev1alpha1.StorageV1alpha1Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for StorageV1alpha1") + } + var r0 storagev1alpha1.StorageV1alpha1Interface if rf, ok := ret.Get(0).(func() storagev1alpha1.StorageV1alpha1Interface); ok { r0 = rf() @@ -2364,6 +2623,10 @@ func (_c *mockComponentEcosystemInterface_StorageV1alpha1_Call) RunAndReturn(run func (_m *mockComponentEcosystemInterface) StorageV1beta1() storagev1beta1.StorageV1beta1Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for StorageV1beta1") + } + var r0 storagev1beta1.StorageV1beta1Interface if rf, ok := ret.Get(0).(func() storagev1beta1.StorageV1beta1Interface); ok { r0 = rf() @@ -2403,13 +2666,59 @@ func (_c *mockComponentEcosystemInterface_StorageV1beta1_Call) RunAndReturn(run return _c } -type mockConstructorTestingTnewMockComponentEcosystemInterface interface { - mock.TestingT - Cleanup(func()) +// StoragemigrationV1alpha1 provides a mock function with given fields: +func (_m *mockComponentEcosystemInterface) StoragemigrationV1alpha1() storagemigrationv1alpha1.StoragemigrationV1alpha1Interface { + ret := _m.Called() + + if len(ret) == 0 { + panic("no return value specified for StoragemigrationV1alpha1") + } + + var r0 storagemigrationv1alpha1.StoragemigrationV1alpha1Interface + if rf, ok := ret.Get(0).(func() storagemigrationv1alpha1.StoragemigrationV1alpha1Interface); ok { + r0 = rf() + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(storagemigrationv1alpha1.StoragemigrationV1alpha1Interface) + } + } + + return r0 +} + +// mockComponentEcosystemInterface_StoragemigrationV1alpha1_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StoragemigrationV1alpha1' +type mockComponentEcosystemInterface_StoragemigrationV1alpha1_Call struct { + *mock.Call +} + +// StoragemigrationV1alpha1 is a helper method to define mock.On call +func (_e *mockComponentEcosystemInterface_Expecter) StoragemigrationV1alpha1() *mockComponentEcosystemInterface_StoragemigrationV1alpha1_Call { + return &mockComponentEcosystemInterface_StoragemigrationV1alpha1_Call{Call: _e.mock.On("StoragemigrationV1alpha1")} +} + +func (_c *mockComponentEcosystemInterface_StoragemigrationV1alpha1_Call) Run(run func()) *mockComponentEcosystemInterface_StoragemigrationV1alpha1_Call { + _c.Call.Run(func(args mock.Arguments) { + run() + }) + return _c +} + +func (_c *mockComponentEcosystemInterface_StoragemigrationV1alpha1_Call) Return(_a0 storagemigrationv1alpha1.StoragemigrationV1alpha1Interface) *mockComponentEcosystemInterface_StoragemigrationV1alpha1_Call { + _c.Call.Return(_a0) + return _c +} + +func (_c *mockComponentEcosystemInterface_StoragemigrationV1alpha1_Call) RunAndReturn(run func() storagemigrationv1alpha1.StoragemigrationV1alpha1Interface) *mockComponentEcosystemInterface_StoragemigrationV1alpha1_Call { + _c.Call.Return(run) + return _c } // newMockComponentEcosystemInterface creates a new instance of mockComponentEcosystemInterface. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. -func newMockComponentEcosystemInterface(t mockConstructorTestingTnewMockComponentEcosystemInterface) *mockComponentEcosystemInterface { +// The first argument is typically a *testing.T value. +func newMockComponentEcosystemInterface(t interface { + mock.TestingT + Cleanup(func()) +}) *mockComponentEcosystemInterface { mock := &mockComponentEcosystemInterface{} mock.Mock.Test(t) diff --git a/pkg/controllers/mock_componentInterface_test.go b/pkg/controllers/mock_componentInterface_test.go index 5fcfa6b..fc17ad8 100644 --- a/pkg/controllers/mock_componentInterface_test.go +++ b/pkg/controllers/mock_componentInterface_test.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.20.0. DO NOT EDIT. +// Code generated by mockery v2.42.1. DO NOT EDIT. package controllers @@ -32,6 +32,10 @@ func (_m *mockComponentInterface) EXPECT() *mockComponentInterface_Expecter { func (_m *mockComponentInterface) AddFinalizer(ctx context.Context, component *v1.Component, finalizer string) (*v1.Component, error) { ret := _m.Called(ctx, component, finalizer) + if len(ret) == 0 { + panic("no return value specified for AddFinalizer") + } + var r0 *v1.Component var r1 error if rf, ok := ret.Get(0).(func(context.Context, *v1.Component, string) (*v1.Component, error)); ok { @@ -88,6 +92,10 @@ func (_c *mockComponentInterface_AddFinalizer_Call) RunAndReturn(run func(contex func (_m *mockComponentInterface) Create(ctx context.Context, component *v1.Component, opts metav1.CreateOptions) (*v1.Component, error) { ret := _m.Called(ctx, component, opts) + if len(ret) == 0 { + panic("no return value specified for Create") + } + var r0 *v1.Component var r1 error if rf, ok := ret.Get(0).(func(context.Context, *v1.Component, metav1.CreateOptions) (*v1.Component, error)); ok { @@ -144,6 +152,10 @@ func (_c *mockComponentInterface_Create_Call) RunAndReturn(run func(context.Cont func (_m *mockComponentInterface) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error { ret := _m.Called(ctx, name, opts) + if len(ret) == 0 { + panic("no return value specified for Delete") + } + var r0 error if rf, ok := ret.Get(0).(func(context.Context, string, metav1.DeleteOptions) error); ok { r0 = rf(ctx, name, opts) @@ -188,6 +200,10 @@ func (_c *mockComponentInterface_Delete_Call) RunAndReturn(run func(context.Cont func (_m *mockComponentInterface) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { ret := _m.Called(ctx, opts, listOpts) + if len(ret) == 0 { + panic("no return value specified for DeleteCollection") + } + var r0 error if rf, ok := ret.Get(0).(func(context.Context, metav1.DeleteOptions, metav1.ListOptions) error); ok { r0 = rf(ctx, opts, listOpts) @@ -232,6 +248,10 @@ func (_c *mockComponentInterface_DeleteCollection_Call) RunAndReturn(run func(co func (_m *mockComponentInterface) Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.Component, error) { ret := _m.Called(ctx, name, opts) + if len(ret) == 0 { + panic("no return value specified for Get") + } + var r0 *v1.Component var r1 error if rf, ok := ret.Get(0).(func(context.Context, string, metav1.GetOptions) (*v1.Component, error)); ok { @@ -288,6 +308,10 @@ func (_c *mockComponentInterface_Get_Call) RunAndReturn(run func(context.Context func (_m *mockComponentInterface) List(ctx context.Context, opts metav1.ListOptions) (*v1.ComponentList, error) { ret := _m.Called(ctx, opts) + if len(ret) == 0 { + panic("no return value specified for List") + } + var r0 *v1.ComponentList var r1 error if rf, ok := ret.Get(0).(func(context.Context, metav1.ListOptions) (*v1.ComponentList, error)); ok { @@ -350,6 +374,10 @@ func (_m *mockComponentInterface) Patch(ctx context.Context, name string, pt typ _ca = append(_ca, _va...) ret := _m.Called(_ca...) + if len(ret) == 0 { + panic("no return value specified for Patch") + } + var r0 *v1.Component var r1 error if rf, ok := ret.Get(0).(func(context.Context, string, types.PatchType, []byte, metav1.PatchOptions, ...string) (*v1.Component, error)); ok { @@ -416,6 +444,10 @@ func (_c *mockComponentInterface_Patch_Call) RunAndReturn(run func(context.Conte func (_m *mockComponentInterface) RemoveFinalizer(ctx context.Context, component *v1.Component, finalizer string) (*v1.Component, error) { ret := _m.Called(ctx, component, finalizer) + if len(ret) == 0 { + panic("no return value specified for RemoveFinalizer") + } + var r0 *v1.Component var r1 error if rf, ok := ret.Get(0).(func(context.Context, *v1.Component, string) (*v1.Component, error)); ok { @@ -472,6 +504,10 @@ func (_c *mockComponentInterface_RemoveFinalizer_Call) RunAndReturn(run func(con func (_m *mockComponentInterface) Update(ctx context.Context, component *v1.Component, opts metav1.UpdateOptions) (*v1.Component, error) { ret := _m.Called(ctx, component, opts) + if len(ret) == 0 { + panic("no return value specified for Update") + } + var r0 *v1.Component var r1 error if rf, ok := ret.Get(0).(func(context.Context, *v1.Component, metav1.UpdateOptions) (*v1.Component, error)); ok { @@ -528,6 +564,10 @@ func (_c *mockComponentInterface_Update_Call) RunAndReturn(run func(context.Cont func (_m *mockComponentInterface) UpdateExpectedComponentVersion(ctx context.Context, componentName string, version string) (*v1.Component, error) { ret := _m.Called(ctx, componentName, version) + if len(ret) == 0 { + panic("no return value specified for UpdateExpectedComponentVersion") + } + var r0 *v1.Component var r1 error if rf, ok := ret.Get(0).(func(context.Context, string, string) (*v1.Component, error)); ok { @@ -584,6 +624,10 @@ func (_c *mockComponentInterface_UpdateExpectedComponentVersion_Call) RunAndRetu func (_m *mockComponentInterface) UpdateStatus(ctx context.Context, component *v1.Component, opts metav1.UpdateOptions) (*v1.Component, error) { ret := _m.Called(ctx, component, opts) + if len(ret) == 0 { + panic("no return value specified for UpdateStatus") + } + var r0 *v1.Component var r1 error if rf, ok := ret.Get(0).(func(context.Context, *v1.Component, metav1.UpdateOptions) (*v1.Component, error)); ok { @@ -640,6 +684,10 @@ func (_c *mockComponentInterface_UpdateStatus_Call) RunAndReturn(run func(contex func (_m *mockComponentInterface) UpdateStatusDeleting(ctx context.Context, component *v1.Component) (*v1.Component, error) { ret := _m.Called(ctx, component) + if len(ret) == 0 { + panic("no return value specified for UpdateStatusDeleting") + } + var r0 *v1.Component var r1 error if rf, ok := ret.Get(0).(func(context.Context, *v1.Component) (*v1.Component, error)); ok { @@ -695,6 +743,10 @@ func (_c *mockComponentInterface_UpdateStatusDeleting_Call) RunAndReturn(run fun func (_m *mockComponentInterface) UpdateStatusInstalled(ctx context.Context, component *v1.Component) (*v1.Component, error) { ret := _m.Called(ctx, component) + if len(ret) == 0 { + panic("no return value specified for UpdateStatusInstalled") + } + var r0 *v1.Component var r1 error if rf, ok := ret.Get(0).(func(context.Context, *v1.Component) (*v1.Component, error)); ok { @@ -750,6 +802,10 @@ func (_c *mockComponentInterface_UpdateStatusInstalled_Call) RunAndReturn(run fu func (_m *mockComponentInterface) UpdateStatusInstalling(ctx context.Context, component *v1.Component) (*v1.Component, error) { ret := _m.Called(ctx, component) + if len(ret) == 0 { + panic("no return value specified for UpdateStatusInstalling") + } + var r0 *v1.Component var r1 error if rf, ok := ret.Get(0).(func(context.Context, *v1.Component) (*v1.Component, error)); ok { @@ -805,6 +861,10 @@ func (_c *mockComponentInterface_UpdateStatusInstalling_Call) RunAndReturn(run f func (_m *mockComponentInterface) UpdateStatusNotInstalled(ctx context.Context, component *v1.Component) (*v1.Component, error) { ret := _m.Called(ctx, component) + if len(ret) == 0 { + panic("no return value specified for UpdateStatusNotInstalled") + } + var r0 *v1.Component var r1 error if rf, ok := ret.Get(0).(func(context.Context, *v1.Component) (*v1.Component, error)); ok { @@ -860,6 +920,10 @@ func (_c *mockComponentInterface_UpdateStatusNotInstalled_Call) RunAndReturn(run func (_m *mockComponentInterface) UpdateStatusUpgrading(ctx context.Context, component *v1.Component) (*v1.Component, error) { ret := _m.Called(ctx, component) + if len(ret) == 0 { + panic("no return value specified for UpdateStatusUpgrading") + } + var r0 *v1.Component var r1 error if rf, ok := ret.Get(0).(func(context.Context, *v1.Component) (*v1.Component, error)); ok { @@ -915,6 +979,10 @@ func (_c *mockComponentInterface_UpdateStatusUpgrading_Call) RunAndReturn(run fu func (_m *mockComponentInterface) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { ret := _m.Called(ctx, opts) + if len(ret) == 0 { + panic("no return value specified for Watch") + } + var r0 watch.Interface var r1 error if rf, ok := ret.Get(0).(func(context.Context, metav1.ListOptions) (watch.Interface, error)); ok { @@ -966,13 +1034,12 @@ func (_c *mockComponentInterface_Watch_Call) RunAndReturn(run func(context.Conte return _c } -type mockConstructorTestingTnewMockComponentInterface interface { +// newMockComponentInterface creates a new instance of mockComponentInterface. 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 newMockComponentInterface(t interface { mock.TestingT Cleanup(func()) -} - -// newMockComponentInterface creates a new instance of mockComponentInterface. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. -func newMockComponentInterface(t mockConstructorTestingTnewMockComponentInterface) *mockComponentInterface { +}) *mockComponentInterface { mock := &mockComponentInterface{} mock.Mock.Test(t) diff --git a/pkg/controllers/mock_componentV1Alpha1Interface_test.go b/pkg/controllers/mock_componentV1Alpha1Interface_test.go index fbd0629..ecf68a1 100644 --- a/pkg/controllers/mock_componentV1Alpha1Interface_test.go +++ b/pkg/controllers/mock_componentV1Alpha1Interface_test.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.20.0. DO NOT EDIT. +// Code generated by mockery v2.42.1. DO NOT EDIT. package controllers @@ -24,6 +24,10 @@ func (_m *mockComponentV1Alpha1Interface) EXPECT() *mockComponentV1Alpha1Interfa func (_m *mockComponentV1Alpha1Interface) Components(namespace string) ecosystem.ComponentInterface { ret := _m.Called(namespace) + if len(ret) == 0 { + panic("no return value specified for Components") + } + var r0 ecosystem.ComponentInterface if rf, ok := ret.Get(0).(func(string) ecosystem.ComponentInterface); ok { r0 = rf(namespace) @@ -64,13 +68,12 @@ func (_c *mockComponentV1Alpha1Interface_Components_Call) RunAndReturn(run func( return _c } -type mockConstructorTestingTnewMockComponentV1Alpha1Interface interface { +// newMockComponentV1Alpha1Interface creates a new instance of mockComponentV1Alpha1Interface. 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 newMockComponentV1Alpha1Interface(t interface { mock.TestingT Cleanup(func()) -} - -// newMockComponentV1Alpha1Interface creates a new instance of mockComponentV1Alpha1Interface. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. -func newMockComponentV1Alpha1Interface(t mockConstructorTestingTnewMockComponentV1Alpha1Interface) *mockComponentV1Alpha1Interface { +}) *mockComponentV1Alpha1Interface { mock := &mockComponentV1Alpha1Interface{} mock.Mock.Test(t) diff --git a/pkg/controllers/mock_deleteManager_test.go b/pkg/controllers/mock_deleteManager_test.go index b6b1799..a4d3969 100644 --- a/pkg/controllers/mock_deleteManager_test.go +++ b/pkg/controllers/mock_deleteManager_test.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.20.0. DO NOT EDIT. +// Code generated by mockery v2.42.1. DO NOT EDIT. package controllers @@ -26,6 +26,10 @@ func (_m *mockDeleteManager) EXPECT() *mockDeleteManager_Expecter { func (_m *mockDeleteManager) Delete(ctx context.Context, component *v1.Component) error { ret := _m.Called(ctx, component) + if len(ret) == 0 { + panic("no return value specified for Delete") + } + var r0 error if rf, ok := ret.Get(0).(func(context.Context, *v1.Component) error); ok { r0 = rf(ctx, component) @@ -65,13 +69,12 @@ func (_c *mockDeleteManager_Delete_Call) RunAndReturn(run func(context.Context, return _c } -type mockConstructorTestingTnewMockDeleteManager interface { +// newMockDeleteManager creates a new instance of mockDeleteManager. 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 newMockDeleteManager(t interface { mock.TestingT Cleanup(func()) -} - -// newMockDeleteManager creates a new instance of mockDeleteManager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. -func newMockDeleteManager(t mockConstructorTestingTnewMockDeleteManager) *mockDeleteManager { +}) *mockDeleteManager { mock := &mockDeleteManager{} mock.Mock.Test(t) diff --git a/pkg/controllers/mock_eventRecorder_test.go b/pkg/controllers/mock_eventRecorder_test.go index cd6de49..fdc2727 100644 --- a/pkg/controllers/mock_eventRecorder_test.go +++ b/pkg/controllers/mock_eventRecorder_test.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.20.0. DO NOT EDIT. +// Code generated by mockery v2.42.1. DO NOT EDIT. package controllers @@ -151,13 +151,12 @@ func (_c *mockEventRecorder_Eventf_Call) RunAndReturn(run func(runtime.Object, s return _c } -type mockConstructorTestingTnewMockEventRecorder interface { +// newMockEventRecorder creates a new instance of mockEventRecorder. 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 newMockEventRecorder(t interface { mock.TestingT Cleanup(func()) -} - -// newMockEventRecorder creates a new instance of mockEventRecorder. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. -func newMockEventRecorder(t mockConstructorTestingTnewMockEventRecorder) *mockEventRecorder { +}) *mockEventRecorder { mock := &mockEventRecorder{} mock.Mock.Test(t) diff --git a/pkg/controllers/mock_healthManager_test.go b/pkg/controllers/mock_healthManager_test.go index b1c53e1..0dc06f0 100644 --- a/pkg/controllers/mock_healthManager_test.go +++ b/pkg/controllers/mock_healthManager_test.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.20.0. DO NOT EDIT. +// Code generated by mockery v2.42.1. DO NOT EDIT. package controllers @@ -25,6 +25,10 @@ func (_m *mockHealthManager) EXPECT() *mockHealthManager_Expecter { func (_m *mockHealthManager) UpdateComponentHealth(ctx context.Context, componentName string, namespace string) error { ret := _m.Called(ctx, componentName, namespace) + if len(ret) == 0 { + panic("no return value specified for UpdateComponentHealth") + } + var r0 error if rf, ok := ret.Get(0).(func(context.Context, string, string) error); ok { r0 = rf(ctx, componentName, namespace) @@ -69,6 +73,10 @@ func (_c *mockHealthManager_UpdateComponentHealth_Call) RunAndReturn(run func(co func (_m *mockHealthManager) UpdateComponentHealthAll(ctx context.Context) error { ret := _m.Called(ctx) + if len(ret) == 0 { + panic("no return value specified for UpdateComponentHealthAll") + } + var r0 error if rf, ok := ret.Get(0).(func(context.Context) error); ok { r0 = rf(ctx) @@ -111,6 +119,10 @@ func (_c *mockHealthManager_UpdateComponentHealthAll_Call) RunAndReturn(run func func (_m *mockHealthManager) UpdateComponentHealthWithInstalledVersion(ctx context.Context, componentName string, namespace string, version string) error { ret := _m.Called(ctx, componentName, namespace, version) + if len(ret) == 0 { + panic("no return value specified for UpdateComponentHealthWithInstalledVersion") + } + var r0 error if rf, ok := ret.Get(0).(func(context.Context, string, string, string) error); ok { r0 = rf(ctx, componentName, namespace, version) @@ -152,13 +164,12 @@ func (_c *mockHealthManager_UpdateComponentHealthWithInstalledVersion_Call) RunA return _c } -type mockConstructorTestingTnewMockHealthManager interface { +// newMockHealthManager creates a new instance of mockHealthManager. 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 newMockHealthManager(t interface { mock.TestingT Cleanup(func()) -} - -// newMockHealthManager creates a new instance of mockHealthManager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. -func newMockHealthManager(t mockConstructorTestingTnewMockHealthManager) *mockHealthManager { +}) *mockHealthManager { mock := &mockHealthManager{} mock.Mock.Test(t) diff --git a/pkg/controllers/mock_helmClient_test.go b/pkg/controllers/mock_helmClient_test.go index ce1963f..80667b1 100644 --- a/pkg/controllers/mock_helmClient_test.go +++ b/pkg/controllers/mock_helmClient_test.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.20.0. DO NOT EDIT. +// Code generated by mockery v2.42.1. DO NOT EDIT. package controllers @@ -29,6 +29,10 @@ func (_m *mockHelmClient) EXPECT() *mockHelmClient_Expecter { func (_m *mockHelmClient) GetChartSpecValues(chart *client.ChartSpec) (map[string]interface{}, error) { ret := _m.Called(chart) + if len(ret) == 0 { + panic("no return value specified for GetChartSpecValues") + } + var r0 map[string]interface{} var r1 error if rf, ok := ret.Get(0).(func(*client.ChartSpec) (map[string]interface{}, error)); ok { @@ -83,6 +87,10 @@ func (_c *mockHelmClient_GetChartSpecValues_Call) RunAndReturn(run func(*client. func (_m *mockHelmClient) GetDeployedReleaseVersion(ctx context.Context, name string) (string, error) { ret := _m.Called(ctx, name) + if len(ret) == 0 { + panic("no return value specified for GetDeployedReleaseVersion") + } + var r0 string var r1 error if rf, ok := ret.Get(0).(func(context.Context, string) (string, error)); ok { @@ -136,6 +144,10 @@ func (_c *mockHelmClient_GetDeployedReleaseVersion_Call) RunAndReturn(run func(c func (_m *mockHelmClient) GetReleaseValues(name string, allValues bool) (map[string]interface{}, error) { ret := _m.Called(name, allValues) + if len(ret) == 0 { + panic("no return value specified for GetReleaseValues") + } + var r0 map[string]interface{} var r1 error if rf, ok := ret.Get(0).(func(string, bool) (map[string]interface{}, error)); ok { @@ -191,6 +203,10 @@ func (_c *mockHelmClient_GetReleaseValues_Call) RunAndReturn(run func(string, bo func (_m *mockHelmClient) InstallOrUpgrade(ctx context.Context, chart *client.ChartSpec) error { ret := _m.Called(ctx, chart) + if len(ret) == 0 { + panic("no return value specified for InstallOrUpgrade") + } + var r0 error if rf, ok := ret.Get(0).(func(context.Context, *client.ChartSpec) error); ok { r0 = rf(ctx, chart) @@ -234,6 +250,10 @@ func (_c *mockHelmClient_InstallOrUpgrade_Call) RunAndReturn(run func(context.Co func (_m *mockHelmClient) ListDeployedReleases() ([]*release.Release, error) { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for ListDeployedReleases") + } + var r0 []*release.Release var r1 error if rf, ok := ret.Get(0).(func() ([]*release.Release, error)); ok { @@ -287,6 +307,10 @@ func (_c *mockHelmClient_ListDeployedReleases_Call) RunAndReturn(run func() ([]* func (_m *mockHelmClient) SatisfiesDependencies(ctx context.Context, chart *client.ChartSpec) error { ret := _m.Called(ctx, chart) + if len(ret) == 0 { + panic("no return value specified for SatisfiesDependencies") + } + var r0 error if rf, ok := ret.Get(0).(func(context.Context, *client.ChartSpec) error); ok { r0 = rf(ctx, chart) @@ -330,6 +354,10 @@ func (_c *mockHelmClient_SatisfiesDependencies_Call) RunAndReturn(run func(conte func (_m *mockHelmClient) Uninstall(releaseName string) error { ret := _m.Called(releaseName) + if len(ret) == 0 { + panic("no return value specified for Uninstall") + } + var r0 error if rf, ok := ret.Get(0).(func(string) error); ok { r0 = rf(releaseName) @@ -368,13 +396,12 @@ func (_c *mockHelmClient_Uninstall_Call) RunAndReturn(run func(string) error) *m return _c } -type mockConstructorTestingTnewMockHelmClient interface { +// newMockHelmClient creates a new instance of mockHelmClient. 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 newMockHelmClient(t interface { mock.TestingT Cleanup(func()) -} - -// newMockHelmClient creates a new instance of mockHelmClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. -func newMockHelmClient(t mockConstructorTestingTnewMockHelmClient) *mockHelmClient { +}) *mockHelmClient { mock := &mockHelmClient{} mock.Mock.Test(t) diff --git a/pkg/controllers/mock_installManager_test.go b/pkg/controllers/mock_installManager_test.go index 492536c..01a75a0 100644 --- a/pkg/controllers/mock_installManager_test.go +++ b/pkg/controllers/mock_installManager_test.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.20.0. DO NOT EDIT. +// Code generated by mockery v2.42.1. DO NOT EDIT. package controllers @@ -26,6 +26,10 @@ func (_m *mockInstallManager) EXPECT() *mockInstallManager_Expecter { func (_m *mockInstallManager) Install(ctx context.Context, component *v1.Component) error { ret := _m.Called(ctx, component) + if len(ret) == 0 { + panic("no return value specified for Install") + } + var r0 error if rf, ok := ret.Get(0).(func(context.Context, *v1.Component) error); ok { r0 = rf(ctx, component) @@ -65,13 +69,12 @@ func (_c *mockInstallManager_Install_Call) RunAndReturn(run func(context.Context return _c } -type mockConstructorTestingTnewMockInstallManager interface { +// newMockInstallManager creates a new instance of mockInstallManager. 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 newMockInstallManager(t interface { mock.TestingT Cleanup(func()) -} - -// newMockInstallManager creates a new instance of mockInstallManager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. -func newMockInstallManager(t mockConstructorTestingTnewMockInstallManager) *mockInstallManager { +}) *mockInstallManager { mock := &mockInstallManager{} mock.Mock.Test(t) diff --git a/pkg/controllers/mock_requeuableError_test.go b/pkg/controllers/mock_requeuableError_test.go index 9f2fe87..e4ff891 100644 --- a/pkg/controllers/mock_requeuableError_test.go +++ b/pkg/controllers/mock_requeuableError_test.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.20.0. DO NOT EDIT. +// Code generated by mockery v2.42.1. DO NOT EDIT. package controllers @@ -25,6 +25,10 @@ func (_m *mockRequeuableError) EXPECT() *mockRequeuableError_Expecter { func (_m *mockRequeuableError) Error() string { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for Error") + } + var r0 string if rf, ok := ret.Get(0).(func() string); ok { r0 = rf() @@ -66,6 +70,10 @@ func (_c *mockRequeuableError_Error_Call) RunAndReturn(run func() string) *mockR func (_m *mockRequeuableError) GetRequeueTime(requeueTimeNanos time.Duration) time.Duration { ret := _m.Called(requeueTimeNanos) + if len(ret) == 0 { + panic("no return value specified for GetRequeueTime") + } + var r0 time.Duration if rf, ok := ret.Get(0).(func(time.Duration) time.Duration); ok { r0 = rf(requeueTimeNanos) @@ -104,13 +112,12 @@ func (_c *mockRequeuableError_GetRequeueTime_Call) RunAndReturn(run func(time.Du return _c } -type mockConstructorTestingTnewMockRequeuableError interface { +// newMockRequeuableError creates a new instance of mockRequeuableError. 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 newMockRequeuableError(t interface { mock.TestingT Cleanup(func()) -} - -// newMockRequeuableError creates a new instance of mockRequeuableError. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. -func newMockRequeuableError(t mockConstructorTestingTnewMockRequeuableError) *mockRequeuableError { +}) *mockRequeuableError { mock := &mockRequeuableError{} mock.Mock.Test(t) diff --git a/pkg/controllers/mock_requeueHandler_test.go b/pkg/controllers/mock_requeueHandler_test.go index dca7bfd..59f5777 100644 --- a/pkg/controllers/mock_requeueHandler_test.go +++ b/pkg/controllers/mock_requeueHandler_test.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.20.0. DO NOT EDIT. +// Code generated by mockery v2.42.1. DO NOT EDIT. package controllers @@ -28,6 +28,10 @@ func (_m *mockRequeueHandler) EXPECT() *mockRequeueHandler_Expecter { func (_m *mockRequeueHandler) Handle(ctx context.Context, contextMessage string, componentResource *v1.Component, originalErr error, requeueStatus string) (reconcile.Result, error) { ret := _m.Called(ctx, contextMessage, componentResource, originalErr, requeueStatus) + if len(ret) == 0 { + panic("no return value specified for Handle") + } + var r0 reconcile.Result var r1 error if rf, ok := ret.Get(0).(func(context.Context, string, *v1.Component, error, string) (reconcile.Result, error)); ok { @@ -80,13 +84,12 @@ func (_c *mockRequeueHandler_Handle_Call) RunAndReturn(run func(context.Context, return _c } -type mockConstructorTestingTnewMockRequeueHandler interface { +// newMockRequeueHandler creates a new instance of mockRequeueHandler. 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 newMockRequeueHandler(t interface { mock.TestingT Cleanup(func()) -} - -// newMockRequeueHandler creates a new instance of mockRequeueHandler. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. -func newMockRequeueHandler(t mockConstructorTestingTnewMockRequeueHandler) *mockRequeueHandler { +}) *mockRequeueHandler { mock := &mockRequeueHandler{} mock.Mock.Test(t) diff --git a/pkg/controllers/mock_upgradeManager_test.go b/pkg/controllers/mock_upgradeManager_test.go index f5c3a16..341d141 100644 --- a/pkg/controllers/mock_upgradeManager_test.go +++ b/pkg/controllers/mock_upgradeManager_test.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.20.0. DO NOT EDIT. +// Code generated by mockery v2.42.1. DO NOT EDIT. package controllers @@ -26,6 +26,10 @@ func (_m *mockUpgradeManager) EXPECT() *mockUpgradeManager_Expecter { func (_m *mockUpgradeManager) Upgrade(ctx context.Context, component *v1.Component) error { ret := _m.Called(ctx, component) + if len(ret) == 0 { + panic("no return value specified for Upgrade") + } + var r0 error if rf, ok := ret.Get(0).(func(context.Context, *v1.Component) error); ok { r0 = rf(ctx, component) @@ -65,13 +69,12 @@ func (_c *mockUpgradeManager_Upgrade_Call) RunAndReturn(run func(context.Context return _c } -type mockConstructorTestingTnewMockUpgradeManager interface { +// newMockUpgradeManager creates a new instance of mockUpgradeManager. 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 newMockUpgradeManager(t interface { mock.TestingT Cleanup(func()) -} - -// newMockUpgradeManager creates a new instance of mockUpgradeManager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. -func newMockUpgradeManager(t mockConstructorTestingTnewMockUpgradeManager) *mockUpgradeManager { +}) *mockUpgradeManager { mock := &mockUpgradeManager{} mock.Mock.Test(t) diff --git a/pkg/health/mock_ComponentManager_test.go b/pkg/health/mock_ComponentManager_test.go index d3888cf..f3bec1d 100644 --- a/pkg/health/mock_ComponentManager_test.go +++ b/pkg/health/mock_ComponentManager_test.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.20.0. DO NOT EDIT. +// Code generated by mockery v2.42.1. DO NOT EDIT. package health @@ -25,6 +25,10 @@ func (_m *MockComponentManager) EXPECT() *MockComponentManager_Expecter { func (_m *MockComponentManager) UpdateComponentHealth(ctx context.Context, componentName string, namespace string) error { ret := _m.Called(ctx, componentName, namespace) + if len(ret) == 0 { + panic("no return value specified for UpdateComponentHealth") + } + var r0 error if rf, ok := ret.Get(0).(func(context.Context, string, string) error); ok { r0 = rf(ctx, componentName, namespace) @@ -69,6 +73,10 @@ func (_c *MockComponentManager_UpdateComponentHealth_Call) RunAndReturn(run func func (_m *MockComponentManager) UpdateComponentHealthAll(ctx context.Context) error { ret := _m.Called(ctx) + if len(ret) == 0 { + panic("no return value specified for UpdateComponentHealthAll") + } + var r0 error if rf, ok := ret.Get(0).(func(context.Context) error); ok { r0 = rf(ctx) @@ -111,6 +119,10 @@ func (_c *MockComponentManager_UpdateComponentHealthAll_Call) RunAndReturn(run f func (_m *MockComponentManager) UpdateComponentHealthWithInstalledVersion(ctx context.Context, componentName string, namespace string, version string) error { ret := _m.Called(ctx, componentName, namespace, version) + if len(ret) == 0 { + panic("no return value specified for UpdateComponentHealthWithInstalledVersion") + } + var r0 error if rf, ok := ret.Get(0).(func(context.Context, string, string, string) error); ok { r0 = rf(ctx, componentName, namespace, version) @@ -152,13 +164,12 @@ func (_c *MockComponentManager_UpdateComponentHealthWithInstalledVersion_Call) R return _c } -type mockConstructorTestingTNewMockComponentManager interface { +// NewMockComponentManager creates a new instance of MockComponentManager. 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 NewMockComponentManager(t interface { mock.TestingT Cleanup(func()) -} - -// NewMockComponentManager creates a new instance of MockComponentManager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. -func NewMockComponentManager(t mockConstructorTestingTNewMockComponentManager) *MockComponentManager { +}) *MockComponentManager { mock := &MockComponentManager{} mock.Mock.Test(t) diff --git a/pkg/health/mock_RegistrableController_test.go b/pkg/health/mock_RegistrableController_test.go index abae00c..b7412d5 100644 --- a/pkg/health/mock_RegistrableController_test.go +++ b/pkg/health/mock_RegistrableController_test.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.20.0. DO NOT EDIT. +// Code generated by mockery v2.42.1. DO NOT EDIT. package health @@ -24,6 +24,10 @@ func (_m *MockRegistrableController) EXPECT() *MockRegistrableController_Expecte func (_m *MockRegistrableController) SetupWithManager(mgr manager.Manager) error { ret := _m.Called(mgr) + if len(ret) == 0 { + panic("no return value specified for SetupWithManager") + } + var r0 error if rf, ok := ret.Get(0).(func(manager.Manager) error); ok { r0 = rf(mgr) @@ -62,13 +66,12 @@ func (_c *MockRegistrableController_SetupWithManager_Call) RunAndReturn(run func return _c } -type mockConstructorTestingTNewMockRegistrableController interface { +// NewMockRegistrableController creates a new instance of MockRegistrableController. 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 NewMockRegistrableController(t interface { mock.TestingT Cleanup(func()) -} - -// NewMockRegistrableController creates a new instance of MockRegistrableController. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. -func NewMockRegistrableController(t mockConstructorTestingTNewMockRegistrableController) *MockRegistrableController { +}) *MockRegistrableController { mock := &MockRegistrableController{} mock.Mock.Test(t) diff --git a/pkg/health/mock_applicationFinder_test.go b/pkg/health/mock_applicationFinder_test.go index 66d2659..9f1787e 100644 --- a/pkg/health/mock_applicationFinder_test.go +++ b/pkg/health/mock_applicationFinder_test.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.20.0. DO NOT EDIT. +// Code generated by mockery v2.42.1. DO NOT EDIT. package health @@ -26,6 +26,10 @@ func (_m *mockApplicationFinder) EXPECT() *mockApplicationFinder_Expecter { func (_m *mockApplicationFinder) findComponentApplications(ctx context.Context, componentName string, namespace string) (*v1.DeploymentList, *v1.StatefulSetList, *v1.DaemonSetList, error) { ret := _m.Called(ctx, componentName, namespace) + if len(ret) == 0 { + panic("no return value specified for findComponentApplications") + } + var r0 *v1.DeploymentList var r1 *v1.StatefulSetList var r2 *v1.DaemonSetList @@ -96,13 +100,12 @@ func (_c *mockApplicationFinder_findComponentApplications_Call) RunAndReturn(run return _c } -type mockConstructorTestingTnewMockApplicationFinder interface { +// newMockApplicationFinder creates a new instance of mockApplicationFinder. 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 newMockApplicationFinder(t interface { mock.TestingT Cleanup(func()) -} - -// newMockApplicationFinder creates a new instance of mockApplicationFinder. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. -func newMockApplicationFinder(t mockConstructorTestingTnewMockApplicationFinder) *mockApplicationFinder { +}) *mockApplicationFinder { mock := &mockApplicationFinder{} mock.Mock.Test(t) diff --git a/pkg/health/mock_appsV1Client_test.go b/pkg/health/mock_appsV1Client_test.go index c3389c6..8fa8c26 100644 --- a/pkg/health/mock_appsV1Client_test.go +++ b/pkg/health/mock_appsV1Client_test.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.20.0. DO NOT EDIT. +// Code generated by mockery v2.42.1. DO NOT EDIT. package health @@ -26,6 +26,10 @@ func (_m *mockAppsV1Client) EXPECT() *mockAppsV1Client_Expecter { func (_m *mockAppsV1Client) ControllerRevisions(namespace string) v1.ControllerRevisionInterface { ret := _m.Called(namespace) + if len(ret) == 0 { + panic("no return value specified for ControllerRevisions") + } + var r0 v1.ControllerRevisionInterface if rf, ok := ret.Get(0).(func(string) v1.ControllerRevisionInterface); ok { r0 = rf(namespace) @@ -70,6 +74,10 @@ func (_c *mockAppsV1Client_ControllerRevisions_Call) RunAndReturn(run func(strin func (_m *mockAppsV1Client) DaemonSets(namespace string) v1.DaemonSetInterface { ret := _m.Called(namespace) + if len(ret) == 0 { + panic("no return value specified for DaemonSets") + } + var r0 v1.DaemonSetInterface if rf, ok := ret.Get(0).(func(string) v1.DaemonSetInterface); ok { r0 = rf(namespace) @@ -114,6 +122,10 @@ func (_c *mockAppsV1Client_DaemonSets_Call) RunAndReturn(run func(string) v1.Dae func (_m *mockAppsV1Client) Deployments(namespace string) v1.DeploymentInterface { ret := _m.Called(namespace) + if len(ret) == 0 { + panic("no return value specified for Deployments") + } + var r0 v1.DeploymentInterface if rf, ok := ret.Get(0).(func(string) v1.DeploymentInterface); ok { r0 = rf(namespace) @@ -158,6 +170,10 @@ func (_c *mockAppsV1Client_Deployments_Call) RunAndReturn(run func(string) v1.De func (_m *mockAppsV1Client) RESTClient() rest.Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for RESTClient") + } + var r0 rest.Interface if rf, ok := ret.Get(0).(func() rest.Interface); ok { r0 = rf() @@ -201,6 +217,10 @@ func (_c *mockAppsV1Client_RESTClient_Call) RunAndReturn(run func() rest.Interfa func (_m *mockAppsV1Client) ReplicaSets(namespace string) v1.ReplicaSetInterface { ret := _m.Called(namespace) + if len(ret) == 0 { + panic("no return value specified for ReplicaSets") + } + var r0 v1.ReplicaSetInterface if rf, ok := ret.Get(0).(func(string) v1.ReplicaSetInterface); ok { r0 = rf(namespace) @@ -245,6 +265,10 @@ func (_c *mockAppsV1Client_ReplicaSets_Call) RunAndReturn(run func(string) v1.Re func (_m *mockAppsV1Client) StatefulSets(namespace string) v1.StatefulSetInterface { ret := _m.Called(namespace) + if len(ret) == 0 { + panic("no return value specified for StatefulSets") + } + var r0 v1.StatefulSetInterface if rf, ok := ret.Get(0).(func(string) v1.StatefulSetInterface); ok { r0 = rf(namespace) @@ -285,13 +309,12 @@ func (_c *mockAppsV1Client_StatefulSets_Call) RunAndReturn(run func(string) v1.S return _c } -type mockConstructorTestingTnewMockAppsV1Client interface { +// newMockAppsV1Client creates a new instance of mockAppsV1Client. 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 newMockAppsV1Client(t interface { mock.TestingT Cleanup(func()) -} - -// newMockAppsV1Client creates a new instance of mockAppsV1Client. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. -func newMockAppsV1Client(t mockConstructorTestingTnewMockAppsV1Client) *mockAppsV1Client { +}) *mockAppsV1Client { mock := &mockAppsV1Client{} mock.Mock.Test(t) diff --git a/pkg/health/mock_componentClient_test.go b/pkg/health/mock_componentClient_test.go index 8e236db..da6552a 100644 --- a/pkg/health/mock_componentClient_test.go +++ b/pkg/health/mock_componentClient_test.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.20.0. DO NOT EDIT. +// Code generated by mockery v2.42.1. DO NOT EDIT. package health @@ -32,6 +32,10 @@ func (_m *mockComponentClient) EXPECT() *mockComponentClient_Expecter { func (_m *mockComponentClient) AddFinalizer(ctx context.Context, component *v1.Component, finalizer string) (*v1.Component, error) { ret := _m.Called(ctx, component, finalizer) + if len(ret) == 0 { + panic("no return value specified for AddFinalizer") + } + var r0 *v1.Component var r1 error if rf, ok := ret.Get(0).(func(context.Context, *v1.Component, string) (*v1.Component, error)); ok { @@ -88,6 +92,10 @@ func (_c *mockComponentClient_AddFinalizer_Call) RunAndReturn(run func(context.C func (_m *mockComponentClient) Create(ctx context.Context, component *v1.Component, opts metav1.CreateOptions) (*v1.Component, error) { ret := _m.Called(ctx, component, opts) + if len(ret) == 0 { + panic("no return value specified for Create") + } + var r0 *v1.Component var r1 error if rf, ok := ret.Get(0).(func(context.Context, *v1.Component, metav1.CreateOptions) (*v1.Component, error)); ok { @@ -144,6 +152,10 @@ func (_c *mockComponentClient_Create_Call) RunAndReturn(run func(context.Context func (_m *mockComponentClient) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error { ret := _m.Called(ctx, name, opts) + if len(ret) == 0 { + panic("no return value specified for Delete") + } + var r0 error if rf, ok := ret.Get(0).(func(context.Context, string, metav1.DeleteOptions) error); ok { r0 = rf(ctx, name, opts) @@ -188,6 +200,10 @@ func (_c *mockComponentClient_Delete_Call) RunAndReturn(run func(context.Context func (_m *mockComponentClient) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { ret := _m.Called(ctx, opts, listOpts) + if len(ret) == 0 { + panic("no return value specified for DeleteCollection") + } + var r0 error if rf, ok := ret.Get(0).(func(context.Context, metav1.DeleteOptions, metav1.ListOptions) error); ok { r0 = rf(ctx, opts, listOpts) @@ -232,6 +248,10 @@ func (_c *mockComponentClient_DeleteCollection_Call) RunAndReturn(run func(conte func (_m *mockComponentClient) Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.Component, error) { ret := _m.Called(ctx, name, opts) + if len(ret) == 0 { + panic("no return value specified for Get") + } + var r0 *v1.Component var r1 error if rf, ok := ret.Get(0).(func(context.Context, string, metav1.GetOptions) (*v1.Component, error)); ok { @@ -288,6 +308,10 @@ func (_c *mockComponentClient_Get_Call) RunAndReturn(run func(context.Context, s func (_m *mockComponentClient) List(ctx context.Context, opts metav1.ListOptions) (*v1.ComponentList, error) { ret := _m.Called(ctx, opts) + if len(ret) == 0 { + panic("no return value specified for List") + } + var r0 *v1.ComponentList var r1 error if rf, ok := ret.Get(0).(func(context.Context, metav1.ListOptions) (*v1.ComponentList, error)); ok { @@ -350,6 +374,10 @@ func (_m *mockComponentClient) Patch(ctx context.Context, name string, pt types. _ca = append(_ca, _va...) ret := _m.Called(_ca...) + if len(ret) == 0 { + panic("no return value specified for Patch") + } + var r0 *v1.Component var r1 error if rf, ok := ret.Get(0).(func(context.Context, string, types.PatchType, []byte, metav1.PatchOptions, ...string) (*v1.Component, error)); ok { @@ -416,6 +444,10 @@ func (_c *mockComponentClient_Patch_Call) RunAndReturn(run func(context.Context, func (_m *mockComponentClient) RemoveFinalizer(ctx context.Context, component *v1.Component, finalizer string) (*v1.Component, error) { ret := _m.Called(ctx, component, finalizer) + if len(ret) == 0 { + panic("no return value specified for RemoveFinalizer") + } + var r0 *v1.Component var r1 error if rf, ok := ret.Get(0).(func(context.Context, *v1.Component, string) (*v1.Component, error)); ok { @@ -472,6 +504,10 @@ func (_c *mockComponentClient_RemoveFinalizer_Call) RunAndReturn(run func(contex func (_m *mockComponentClient) Update(ctx context.Context, component *v1.Component, opts metav1.UpdateOptions) (*v1.Component, error) { ret := _m.Called(ctx, component, opts) + if len(ret) == 0 { + panic("no return value specified for Update") + } + var r0 *v1.Component var r1 error if rf, ok := ret.Get(0).(func(context.Context, *v1.Component, metav1.UpdateOptions) (*v1.Component, error)); ok { @@ -528,6 +564,10 @@ func (_c *mockComponentClient_Update_Call) RunAndReturn(run func(context.Context func (_m *mockComponentClient) UpdateExpectedComponentVersion(ctx context.Context, componentName string, version string) (*v1.Component, error) { ret := _m.Called(ctx, componentName, version) + if len(ret) == 0 { + panic("no return value specified for UpdateExpectedComponentVersion") + } + var r0 *v1.Component var r1 error if rf, ok := ret.Get(0).(func(context.Context, string, string) (*v1.Component, error)); ok { @@ -584,6 +624,10 @@ func (_c *mockComponentClient_UpdateExpectedComponentVersion_Call) RunAndReturn( func (_m *mockComponentClient) UpdateStatus(ctx context.Context, component *v1.Component, opts metav1.UpdateOptions) (*v1.Component, error) { ret := _m.Called(ctx, component, opts) + if len(ret) == 0 { + panic("no return value specified for UpdateStatus") + } + var r0 *v1.Component var r1 error if rf, ok := ret.Get(0).(func(context.Context, *v1.Component, metav1.UpdateOptions) (*v1.Component, error)); ok { @@ -640,6 +684,10 @@ func (_c *mockComponentClient_UpdateStatus_Call) RunAndReturn(run func(context.C func (_m *mockComponentClient) UpdateStatusDeleting(ctx context.Context, component *v1.Component) (*v1.Component, error) { ret := _m.Called(ctx, component) + if len(ret) == 0 { + panic("no return value specified for UpdateStatusDeleting") + } + var r0 *v1.Component var r1 error if rf, ok := ret.Get(0).(func(context.Context, *v1.Component) (*v1.Component, error)); ok { @@ -695,6 +743,10 @@ func (_c *mockComponentClient_UpdateStatusDeleting_Call) RunAndReturn(run func(c func (_m *mockComponentClient) UpdateStatusInstalled(ctx context.Context, component *v1.Component) (*v1.Component, error) { ret := _m.Called(ctx, component) + if len(ret) == 0 { + panic("no return value specified for UpdateStatusInstalled") + } + var r0 *v1.Component var r1 error if rf, ok := ret.Get(0).(func(context.Context, *v1.Component) (*v1.Component, error)); ok { @@ -750,6 +802,10 @@ func (_c *mockComponentClient_UpdateStatusInstalled_Call) RunAndReturn(run func( func (_m *mockComponentClient) UpdateStatusInstalling(ctx context.Context, component *v1.Component) (*v1.Component, error) { ret := _m.Called(ctx, component) + if len(ret) == 0 { + panic("no return value specified for UpdateStatusInstalling") + } + var r0 *v1.Component var r1 error if rf, ok := ret.Get(0).(func(context.Context, *v1.Component) (*v1.Component, error)); ok { @@ -805,6 +861,10 @@ func (_c *mockComponentClient_UpdateStatusInstalling_Call) RunAndReturn(run func func (_m *mockComponentClient) UpdateStatusNotInstalled(ctx context.Context, component *v1.Component) (*v1.Component, error) { ret := _m.Called(ctx, component) + if len(ret) == 0 { + panic("no return value specified for UpdateStatusNotInstalled") + } + var r0 *v1.Component var r1 error if rf, ok := ret.Get(0).(func(context.Context, *v1.Component) (*v1.Component, error)); ok { @@ -860,6 +920,10 @@ func (_c *mockComponentClient_UpdateStatusNotInstalled_Call) RunAndReturn(run fu func (_m *mockComponentClient) UpdateStatusUpgrading(ctx context.Context, component *v1.Component) (*v1.Component, error) { ret := _m.Called(ctx, component) + if len(ret) == 0 { + panic("no return value specified for UpdateStatusUpgrading") + } + var r0 *v1.Component var r1 error if rf, ok := ret.Get(0).(func(context.Context, *v1.Component) (*v1.Component, error)); ok { @@ -915,6 +979,10 @@ func (_c *mockComponentClient_UpdateStatusUpgrading_Call) RunAndReturn(run func( func (_m *mockComponentClient) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { ret := _m.Called(ctx, opts) + if len(ret) == 0 { + panic("no return value specified for Watch") + } + var r0 watch.Interface var r1 error if rf, ok := ret.Get(0).(func(context.Context, metav1.ListOptions) (watch.Interface, error)); ok { @@ -966,13 +1034,12 @@ func (_c *mockComponentClient_Watch_Call) RunAndReturn(run func(context.Context, return _c } -type mockConstructorTestingTnewMockComponentClient interface { +// newMockComponentClient creates a new instance of mockComponentClient. 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 newMockComponentClient(t interface { mock.TestingT Cleanup(func()) -} - -// newMockComponentClient creates a new instance of mockComponentClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. -func newMockComponentClient(t mockConstructorTestingTnewMockComponentClient) *mockComponentClient { +}) *mockComponentClient { mock := &mockComponentClient{} mock.Mock.Test(t) diff --git a/pkg/health/mock_componentRepo_test.go b/pkg/health/mock_componentRepo_test.go index ab30f81..45014ef 100644 --- a/pkg/health/mock_componentRepo_test.go +++ b/pkg/health/mock_componentRepo_test.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.20.0. DO NOT EDIT. +// Code generated by mockery v2.42.1. DO NOT EDIT. package health @@ -26,6 +26,10 @@ func (_m *mockComponentRepo) EXPECT() *mockComponentRepo_Expecter { func (_m *mockComponentRepo) get(ctx context.Context, name string) (*v1.Component, error) { ret := _m.Called(ctx, name) + if len(ret) == 0 { + panic("no return value specified for get") + } + var r0 *v1.Component var r1 error if rf, ok := ret.Get(0).(func(context.Context, string) (*v1.Component, error)); ok { @@ -81,6 +85,10 @@ func (_c *mockComponentRepo_get_Call) RunAndReturn(run func(context.Context, str func (_m *mockComponentRepo) list(ctx context.Context) (*v1.ComponentList, error) { ret := _m.Called(ctx) + if len(ret) == 0 { + panic("no return value specified for list") + } + var r0 *v1.ComponentList var r1 error if rf, ok := ret.Get(0).(func(context.Context) (*v1.ComponentList, error)); ok { @@ -135,6 +143,10 @@ func (_c *mockComponentRepo_list_Call) RunAndReturn(run func(context.Context) (* func (_m *mockComponentRepo) updateCondition(ctx context.Context, component *v1.Component, status v1.HealthStatus, version string) error { ret := _m.Called(ctx, component, status, version) + if len(ret) == 0 { + panic("no return value specified for updateCondition") + } + var r0 error if rf, ok := ret.Get(0).(func(context.Context, *v1.Component, v1.HealthStatus, string) error); ok { r0 = rf(ctx, component, status, version) @@ -176,13 +188,12 @@ func (_c *mockComponentRepo_updateCondition_Call) RunAndReturn(run func(context. return _c } -type mockConstructorTestingTnewMockComponentRepo interface { +// newMockComponentRepo creates a new instance of mockComponentRepo. 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 newMockComponentRepo(t interface { mock.TestingT Cleanup(func()) -} - -// newMockComponentRepo creates a new instance of mockComponentRepo. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. -func newMockComponentRepo(t mockConstructorTestingTnewMockComponentRepo) *mockComponentRepo { +}) *mockComponentRepo { mock := &mockComponentRepo{} mock.Mock.Test(t) diff --git a/pkg/health/mock_componentV1Alpha1Client_test.go b/pkg/health/mock_componentV1Alpha1Client_test.go index 89f5fc2..5c4d804 100644 --- a/pkg/health/mock_componentV1Alpha1Client_test.go +++ b/pkg/health/mock_componentV1Alpha1Client_test.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.20.0. DO NOT EDIT. +// Code generated by mockery v2.42.1. DO NOT EDIT. package health @@ -24,6 +24,10 @@ func (_m *mockComponentV1Alpha1Client) EXPECT() *mockComponentV1Alpha1Client_Exp func (_m *mockComponentV1Alpha1Client) Components(namespace string) ecosystem.ComponentInterface { ret := _m.Called(namespace) + if len(ret) == 0 { + panic("no return value specified for Components") + } + var r0 ecosystem.ComponentInterface if rf, ok := ret.Get(0).(func(string) ecosystem.ComponentInterface); ok { r0 = rf(namespace) @@ -64,13 +68,12 @@ func (_c *mockComponentV1Alpha1Client_Components_Call) RunAndReturn(run func(str return _c } -type mockConstructorTestingTnewMockComponentV1Alpha1Client interface { +// newMockComponentV1Alpha1Client creates a new instance of mockComponentV1Alpha1Client. 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 newMockComponentV1Alpha1Client(t interface { mock.TestingT Cleanup(func()) -} - -// newMockComponentV1Alpha1Client creates a new instance of mockComponentV1Alpha1Client. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. -func newMockComponentV1Alpha1Client(t mockConstructorTestingTnewMockComponentV1Alpha1Client) *mockComponentV1Alpha1Client { +}) *mockComponentV1Alpha1Client { mock := &mockComponentV1Alpha1Client{} mock.Mock.Test(t) diff --git a/pkg/health/mock_controllerManager_test.go b/pkg/health/mock_controllerManager_test.go index fb760be..592fb64 100644 --- a/pkg/health/mock_controllerManager_test.go +++ b/pkg/health/mock_controllerManager_test.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.20.0. DO NOT EDIT. +// Code generated by mockery v2.42.1. DO NOT EDIT. package health @@ -48,6 +48,10 @@ func (_m *mockControllerManager) EXPECT() *mockControllerManager_Expecter { func (_m *mockControllerManager) Add(_a0 manager.Runnable) error { ret := _m.Called(_a0) + if len(ret) == 0 { + panic("no return value specified for Add") + } + var r0 error if rf, ok := ret.Get(0).(func(manager.Runnable) error); ok { r0 = rf(_a0) @@ -90,6 +94,10 @@ func (_c *mockControllerManager_Add_Call) RunAndReturn(run func(manager.Runnable func (_m *mockControllerManager) AddHealthzCheck(name string, check healthz.Checker) error { ret := _m.Called(name, check) + if len(ret) == 0 { + panic("no return value specified for AddHealthzCheck") + } + var r0 error if rf, ok := ret.Get(0).(func(string, healthz.Checker) error); ok { r0 = rf(name, check) @@ -129,10 +137,61 @@ func (_c *mockControllerManager_AddHealthzCheck_Call) RunAndReturn(run func(stri return _c } +// AddMetricsServerExtraHandler provides a mock function with given fields: path, handler +func (_m *mockControllerManager) AddMetricsServerExtraHandler(path string, handler http.Handler) error { + ret := _m.Called(path, handler) + + if len(ret) == 0 { + panic("no return value specified for AddMetricsServerExtraHandler") + } + + var r0 error + if rf, ok := ret.Get(0).(func(string, http.Handler) error); ok { + r0 = rf(path, handler) + } else { + r0 = ret.Error(0) + } + + return r0 +} + +// mockControllerManager_AddMetricsServerExtraHandler_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddMetricsServerExtraHandler' +type mockControllerManager_AddMetricsServerExtraHandler_Call struct { + *mock.Call +} + +// AddMetricsServerExtraHandler is a helper method to define mock.On call +// - path string +// - handler http.Handler +func (_e *mockControllerManager_Expecter) AddMetricsServerExtraHandler(path interface{}, handler interface{}) *mockControllerManager_AddMetricsServerExtraHandler_Call { + return &mockControllerManager_AddMetricsServerExtraHandler_Call{Call: _e.mock.On("AddMetricsServerExtraHandler", path, handler)} +} + +func (_c *mockControllerManager_AddMetricsServerExtraHandler_Call) Run(run func(path string, handler http.Handler)) *mockControllerManager_AddMetricsServerExtraHandler_Call { + _c.Call.Run(func(args mock.Arguments) { + run(args[0].(string), args[1].(http.Handler)) + }) + return _c +} + +func (_c *mockControllerManager_AddMetricsServerExtraHandler_Call) Return(_a0 error) *mockControllerManager_AddMetricsServerExtraHandler_Call { + _c.Call.Return(_a0) + return _c +} + +func (_c *mockControllerManager_AddMetricsServerExtraHandler_Call) RunAndReturn(run func(string, http.Handler) error) *mockControllerManager_AddMetricsServerExtraHandler_Call { + _c.Call.Return(run) + return _c +} + // AddReadyzCheck provides a mock function with given fields: name, check func (_m *mockControllerManager) AddReadyzCheck(name string, check healthz.Checker) error { ret := _m.Called(name, check) + if len(ret) == 0 { + panic("no return value specified for AddReadyzCheck") + } + var r0 error if rf, ok := ret.Get(0).(func(string, healthz.Checker) error); ok { r0 = rf(name, check) @@ -176,6 +235,10 @@ func (_c *mockControllerManager_AddReadyzCheck_Call) RunAndReturn(run func(strin func (_m *mockControllerManager) Elected() <-chan struct{} { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for Elected") + } + var r0 <-chan struct{} if rf, ok := ret.Get(0).(func() <-chan struct{}); ok { r0 = rf() @@ -219,6 +282,10 @@ func (_c *mockControllerManager_Elected_Call) RunAndReturn(run func() <-chan str func (_m *mockControllerManager) GetAPIReader() client.Reader { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for GetAPIReader") + } + var r0 client.Reader if rf, ok := ret.Get(0).(func() client.Reader); ok { r0 = rf() @@ -262,6 +329,10 @@ func (_c *mockControllerManager_GetAPIReader_Call) RunAndReturn(run func() clien func (_m *mockControllerManager) GetCache() cache.Cache { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for GetCache") + } + var r0 cache.Cache if rf, ok := ret.Get(0).(func() cache.Cache); ok { r0 = rf() @@ -305,6 +376,10 @@ func (_c *mockControllerManager_GetCache_Call) RunAndReturn(run func() cache.Cac func (_m *mockControllerManager) GetClient() client.Client { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for GetClient") + } + var r0 client.Client if rf, ok := ret.Get(0).(func() client.Client); ok { r0 = rf() @@ -348,6 +423,10 @@ func (_c *mockControllerManager_GetClient_Call) RunAndReturn(run func() client.C func (_m *mockControllerManager) GetConfig() *rest.Config { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for GetConfig") + } + var r0 *rest.Config if rf, ok := ret.Get(0).(func() *rest.Config); ok { r0 = rf() @@ -391,6 +470,10 @@ func (_c *mockControllerManager_GetConfig_Call) RunAndReturn(run func() *rest.Co func (_m *mockControllerManager) GetControllerOptions() config.Controller { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for GetControllerOptions") + } + var r0 config.Controller if rf, ok := ret.Get(0).(func() config.Controller); ok { r0 = rf() @@ -432,6 +515,10 @@ func (_c *mockControllerManager_GetControllerOptions_Call) RunAndReturn(run func func (_m *mockControllerManager) GetEventRecorderFor(name string) record.EventRecorder { ret := _m.Called(name) + if len(ret) == 0 { + panic("no return value specified for GetEventRecorderFor") + } + var r0 record.EventRecorder if rf, ok := ret.Get(0).(func(string) record.EventRecorder); ok { r0 = rf(name) @@ -476,6 +563,10 @@ func (_c *mockControllerManager_GetEventRecorderFor_Call) RunAndReturn(run func( func (_m *mockControllerManager) GetFieldIndexer() client.FieldIndexer { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for GetFieldIndexer") + } + var r0 client.FieldIndexer if rf, ok := ret.Get(0).(func() client.FieldIndexer); ok { r0 = rf() @@ -519,6 +610,10 @@ func (_c *mockControllerManager_GetFieldIndexer_Call) RunAndReturn(run func() cl func (_m *mockControllerManager) GetHTTPClient() *http.Client { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for GetHTTPClient") + } + var r0 *http.Client if rf, ok := ret.Get(0).(func() *http.Client); ok { r0 = rf() @@ -562,6 +657,10 @@ func (_c *mockControllerManager_GetHTTPClient_Call) RunAndReturn(run func() *htt func (_m *mockControllerManager) GetLogger() logr.Logger { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for GetLogger") + } + var r0 logr.Logger if rf, ok := ret.Get(0).(func() logr.Logger); ok { r0 = rf() @@ -603,6 +702,10 @@ func (_c *mockControllerManager_GetLogger_Call) RunAndReturn(run func() logr.Log func (_m *mockControllerManager) GetRESTMapper() meta.RESTMapper { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for GetRESTMapper") + } + var r0 meta.RESTMapper if rf, ok := ret.Get(0).(func() meta.RESTMapper); ok { r0 = rf() @@ -646,6 +749,10 @@ func (_c *mockControllerManager_GetRESTMapper_Call) RunAndReturn(run func() meta func (_m *mockControllerManager) GetScheme() *runtime.Scheme { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for GetScheme") + } + var r0 *runtime.Scheme if rf, ok := ret.Get(0).(func() *runtime.Scheme); ok { r0 = rf() @@ -689,6 +796,10 @@ func (_c *mockControllerManager_GetScheme_Call) RunAndReturn(run func() *runtime func (_m *mockControllerManager) GetWebhookServer() webhook.Server { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for GetWebhookServer") + } + var r0 webhook.Server if rf, ok := ret.Get(0).(func() webhook.Server); ok { r0 = rf() @@ -732,6 +843,10 @@ func (_c *mockControllerManager_GetWebhookServer_Call) RunAndReturn(run func() w func (_m *mockControllerManager) Start(ctx context.Context) error { ret := _m.Called(ctx) + if len(ret) == 0 { + panic("no return value specified for Start") + } + var r0 error if rf, ok := ret.Get(0).(func(context.Context) error); ok { r0 = rf(ctx) @@ -770,13 +885,12 @@ func (_c *mockControllerManager_Start_Call) RunAndReturn(run func(context.Contex return _c } -type mockConstructorTestingTnewMockControllerManager interface { +// newMockControllerManager creates a new instance of mockControllerManager. 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 newMockControllerManager(t interface { mock.TestingT Cleanup(func()) -} - -// newMockControllerManager creates a new instance of mockControllerManager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. -func newMockControllerManager(t mockConstructorTestingTnewMockControllerManager) *mockControllerManager { +}) *mockControllerManager { mock := &mockControllerManager{} mock.Mock.Test(t) diff --git a/pkg/health/mock_daemonSetClient_test.go b/pkg/health/mock_daemonSetClient_test.go index 9045f9a..4577373 100644 --- a/pkg/health/mock_daemonSetClient_test.go +++ b/pkg/health/mock_daemonSetClient_test.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.20.0. DO NOT EDIT. +// Code generated by mockery v2.42.1. DO NOT EDIT. package health @@ -35,6 +35,10 @@ func (_m *mockDaemonSetClient) EXPECT() *mockDaemonSetClient_Expecter { func (_m *mockDaemonSetClient) Apply(ctx context.Context, daemonSet *v1.DaemonSetApplyConfiguration, opts metav1.ApplyOptions) (*appsv1.DaemonSet, error) { ret := _m.Called(ctx, daemonSet, opts) + if len(ret) == 0 { + panic("no return value specified for Apply") + } + var r0 *appsv1.DaemonSet var r1 error if rf, ok := ret.Get(0).(func(context.Context, *v1.DaemonSetApplyConfiguration, metav1.ApplyOptions) (*appsv1.DaemonSet, error)); ok { @@ -91,6 +95,10 @@ func (_c *mockDaemonSetClient_Apply_Call) RunAndReturn(run func(context.Context, func (_m *mockDaemonSetClient) ApplyStatus(ctx context.Context, daemonSet *v1.DaemonSetApplyConfiguration, opts metav1.ApplyOptions) (*appsv1.DaemonSet, error) { ret := _m.Called(ctx, daemonSet, opts) + if len(ret) == 0 { + panic("no return value specified for ApplyStatus") + } + var r0 *appsv1.DaemonSet var r1 error if rf, ok := ret.Get(0).(func(context.Context, *v1.DaemonSetApplyConfiguration, metav1.ApplyOptions) (*appsv1.DaemonSet, error)); ok { @@ -147,6 +155,10 @@ func (_c *mockDaemonSetClient_ApplyStatus_Call) RunAndReturn(run func(context.Co func (_m *mockDaemonSetClient) Create(ctx context.Context, daemonSet *appsv1.DaemonSet, opts metav1.CreateOptions) (*appsv1.DaemonSet, error) { ret := _m.Called(ctx, daemonSet, opts) + if len(ret) == 0 { + panic("no return value specified for Create") + } + var r0 *appsv1.DaemonSet var r1 error if rf, ok := ret.Get(0).(func(context.Context, *appsv1.DaemonSet, metav1.CreateOptions) (*appsv1.DaemonSet, error)); ok { @@ -203,6 +215,10 @@ func (_c *mockDaemonSetClient_Create_Call) RunAndReturn(run func(context.Context func (_m *mockDaemonSetClient) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error { ret := _m.Called(ctx, name, opts) + if len(ret) == 0 { + panic("no return value specified for Delete") + } + var r0 error if rf, ok := ret.Get(0).(func(context.Context, string, metav1.DeleteOptions) error); ok { r0 = rf(ctx, name, opts) @@ -247,6 +263,10 @@ func (_c *mockDaemonSetClient_Delete_Call) RunAndReturn(run func(context.Context func (_m *mockDaemonSetClient) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { ret := _m.Called(ctx, opts, listOpts) + if len(ret) == 0 { + panic("no return value specified for DeleteCollection") + } + var r0 error if rf, ok := ret.Get(0).(func(context.Context, metav1.DeleteOptions, metav1.ListOptions) error); ok { r0 = rf(ctx, opts, listOpts) @@ -291,6 +311,10 @@ func (_c *mockDaemonSetClient_DeleteCollection_Call) RunAndReturn(run func(conte func (_m *mockDaemonSetClient) Get(ctx context.Context, name string, opts metav1.GetOptions) (*appsv1.DaemonSet, error) { ret := _m.Called(ctx, name, opts) + if len(ret) == 0 { + panic("no return value specified for Get") + } + var r0 *appsv1.DaemonSet var r1 error if rf, ok := ret.Get(0).(func(context.Context, string, metav1.GetOptions) (*appsv1.DaemonSet, error)); ok { @@ -347,6 +371,10 @@ func (_c *mockDaemonSetClient_Get_Call) RunAndReturn(run func(context.Context, s func (_m *mockDaemonSetClient) List(ctx context.Context, opts metav1.ListOptions) (*appsv1.DaemonSetList, error) { ret := _m.Called(ctx, opts) + if len(ret) == 0 { + panic("no return value specified for List") + } + var r0 *appsv1.DaemonSetList var r1 error if rf, ok := ret.Get(0).(func(context.Context, metav1.ListOptions) (*appsv1.DaemonSetList, error)); ok { @@ -409,6 +437,10 @@ func (_m *mockDaemonSetClient) Patch(ctx context.Context, name string, pt types. _ca = append(_ca, _va...) ret := _m.Called(_ca...) + if len(ret) == 0 { + panic("no return value specified for Patch") + } + var r0 *appsv1.DaemonSet var r1 error if rf, ok := ret.Get(0).(func(context.Context, string, types.PatchType, []byte, metav1.PatchOptions, ...string) (*appsv1.DaemonSet, error)); ok { @@ -475,6 +507,10 @@ func (_c *mockDaemonSetClient_Patch_Call) RunAndReturn(run func(context.Context, func (_m *mockDaemonSetClient) Update(ctx context.Context, daemonSet *appsv1.DaemonSet, opts metav1.UpdateOptions) (*appsv1.DaemonSet, error) { ret := _m.Called(ctx, daemonSet, opts) + if len(ret) == 0 { + panic("no return value specified for Update") + } + var r0 *appsv1.DaemonSet var r1 error if rf, ok := ret.Get(0).(func(context.Context, *appsv1.DaemonSet, metav1.UpdateOptions) (*appsv1.DaemonSet, error)); ok { @@ -531,6 +567,10 @@ func (_c *mockDaemonSetClient_Update_Call) RunAndReturn(run func(context.Context func (_m *mockDaemonSetClient) UpdateStatus(ctx context.Context, daemonSet *appsv1.DaemonSet, opts metav1.UpdateOptions) (*appsv1.DaemonSet, error) { ret := _m.Called(ctx, daemonSet, opts) + if len(ret) == 0 { + panic("no return value specified for UpdateStatus") + } + var r0 *appsv1.DaemonSet var r1 error if rf, ok := ret.Get(0).(func(context.Context, *appsv1.DaemonSet, metav1.UpdateOptions) (*appsv1.DaemonSet, error)); ok { @@ -587,6 +627,10 @@ func (_c *mockDaemonSetClient_UpdateStatus_Call) RunAndReturn(run func(context.C func (_m *mockDaemonSetClient) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { ret := _m.Called(ctx, opts) + if len(ret) == 0 { + panic("no return value specified for Watch") + } + var r0 watch.Interface var r1 error if rf, ok := ret.Get(0).(func(context.Context, metav1.ListOptions) (watch.Interface, error)); ok { @@ -638,13 +682,12 @@ func (_c *mockDaemonSetClient_Watch_Call) RunAndReturn(run func(context.Context, return _c } -type mockConstructorTestingTnewMockDaemonSetClient interface { +// newMockDaemonSetClient creates a new instance of mockDaemonSetClient. 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 newMockDaemonSetClient(t interface { mock.TestingT Cleanup(func()) -} - -// newMockDaemonSetClient creates a new instance of mockDaemonSetClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. -func newMockDaemonSetClient(t mockConstructorTestingTnewMockDaemonSetClient) *mockDaemonSetClient { +}) *mockDaemonSetClient { mock := &mockDaemonSetClient{} mock.Mock.Test(t) diff --git a/pkg/health/mock_deploymentClient_test.go b/pkg/health/mock_deploymentClient_test.go index 9177db1..f4c59e3 100644 --- a/pkg/health/mock_deploymentClient_test.go +++ b/pkg/health/mock_deploymentClient_test.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.20.0. DO NOT EDIT. +// Code generated by mockery v2.42.1. DO NOT EDIT. package health @@ -38,6 +38,10 @@ func (_m *mockDeploymentClient) EXPECT() *mockDeploymentClient_Expecter { func (_m *mockDeploymentClient) Apply(ctx context.Context, deployment *v1.DeploymentApplyConfiguration, opts metav1.ApplyOptions) (*appsv1.Deployment, error) { ret := _m.Called(ctx, deployment, opts) + if len(ret) == 0 { + panic("no return value specified for Apply") + } + var r0 *appsv1.Deployment var r1 error if rf, ok := ret.Get(0).(func(context.Context, *v1.DeploymentApplyConfiguration, metav1.ApplyOptions) (*appsv1.Deployment, error)); ok { @@ -94,6 +98,10 @@ func (_c *mockDeploymentClient_Apply_Call) RunAndReturn(run func(context.Context func (_m *mockDeploymentClient) ApplyScale(ctx context.Context, deploymentName string, scale *autoscalingv1.ScaleApplyConfiguration, opts metav1.ApplyOptions) (*apiautoscalingv1.Scale, error) { ret := _m.Called(ctx, deploymentName, scale, opts) + if len(ret) == 0 { + panic("no return value specified for ApplyScale") + } + var r0 *apiautoscalingv1.Scale var r1 error if rf, ok := ret.Get(0).(func(context.Context, string, *autoscalingv1.ScaleApplyConfiguration, metav1.ApplyOptions) (*apiautoscalingv1.Scale, error)); ok { @@ -151,6 +159,10 @@ func (_c *mockDeploymentClient_ApplyScale_Call) RunAndReturn(run func(context.Co func (_m *mockDeploymentClient) ApplyStatus(ctx context.Context, deployment *v1.DeploymentApplyConfiguration, opts metav1.ApplyOptions) (*appsv1.Deployment, error) { ret := _m.Called(ctx, deployment, opts) + if len(ret) == 0 { + panic("no return value specified for ApplyStatus") + } + var r0 *appsv1.Deployment var r1 error if rf, ok := ret.Get(0).(func(context.Context, *v1.DeploymentApplyConfiguration, metav1.ApplyOptions) (*appsv1.Deployment, error)); ok { @@ -207,6 +219,10 @@ func (_c *mockDeploymentClient_ApplyStatus_Call) RunAndReturn(run func(context.C func (_m *mockDeploymentClient) Create(ctx context.Context, deployment *appsv1.Deployment, opts metav1.CreateOptions) (*appsv1.Deployment, error) { ret := _m.Called(ctx, deployment, opts) + if len(ret) == 0 { + panic("no return value specified for Create") + } + var r0 *appsv1.Deployment var r1 error if rf, ok := ret.Get(0).(func(context.Context, *appsv1.Deployment, metav1.CreateOptions) (*appsv1.Deployment, error)); ok { @@ -263,6 +279,10 @@ func (_c *mockDeploymentClient_Create_Call) RunAndReturn(run func(context.Contex func (_m *mockDeploymentClient) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error { ret := _m.Called(ctx, name, opts) + if len(ret) == 0 { + panic("no return value specified for Delete") + } + var r0 error if rf, ok := ret.Get(0).(func(context.Context, string, metav1.DeleteOptions) error); ok { r0 = rf(ctx, name, opts) @@ -307,6 +327,10 @@ func (_c *mockDeploymentClient_Delete_Call) RunAndReturn(run func(context.Contex func (_m *mockDeploymentClient) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { ret := _m.Called(ctx, opts, listOpts) + if len(ret) == 0 { + panic("no return value specified for DeleteCollection") + } + var r0 error if rf, ok := ret.Get(0).(func(context.Context, metav1.DeleteOptions, metav1.ListOptions) error); ok { r0 = rf(ctx, opts, listOpts) @@ -351,6 +375,10 @@ func (_c *mockDeploymentClient_DeleteCollection_Call) RunAndReturn(run func(cont func (_m *mockDeploymentClient) Get(ctx context.Context, name string, opts metav1.GetOptions) (*appsv1.Deployment, error) { ret := _m.Called(ctx, name, opts) + if len(ret) == 0 { + panic("no return value specified for Get") + } + var r0 *appsv1.Deployment var r1 error if rf, ok := ret.Get(0).(func(context.Context, string, metav1.GetOptions) (*appsv1.Deployment, error)); ok { @@ -407,6 +435,10 @@ func (_c *mockDeploymentClient_Get_Call) RunAndReturn(run func(context.Context, func (_m *mockDeploymentClient) GetScale(ctx context.Context, deploymentName string, options metav1.GetOptions) (*apiautoscalingv1.Scale, error) { ret := _m.Called(ctx, deploymentName, options) + if len(ret) == 0 { + panic("no return value specified for GetScale") + } + var r0 *apiautoscalingv1.Scale var r1 error if rf, ok := ret.Get(0).(func(context.Context, string, metav1.GetOptions) (*apiautoscalingv1.Scale, error)); ok { @@ -463,6 +495,10 @@ func (_c *mockDeploymentClient_GetScale_Call) RunAndReturn(run func(context.Cont func (_m *mockDeploymentClient) List(ctx context.Context, opts metav1.ListOptions) (*appsv1.DeploymentList, error) { ret := _m.Called(ctx, opts) + if len(ret) == 0 { + panic("no return value specified for List") + } + var r0 *appsv1.DeploymentList var r1 error if rf, ok := ret.Get(0).(func(context.Context, metav1.ListOptions) (*appsv1.DeploymentList, error)); ok { @@ -525,6 +561,10 @@ func (_m *mockDeploymentClient) Patch(ctx context.Context, name string, pt types _ca = append(_ca, _va...) ret := _m.Called(_ca...) + if len(ret) == 0 { + panic("no return value specified for Patch") + } + var r0 *appsv1.Deployment var r1 error if rf, ok := ret.Get(0).(func(context.Context, string, types.PatchType, []byte, metav1.PatchOptions, ...string) (*appsv1.Deployment, error)); ok { @@ -591,6 +631,10 @@ func (_c *mockDeploymentClient_Patch_Call) RunAndReturn(run func(context.Context func (_m *mockDeploymentClient) Update(ctx context.Context, deployment *appsv1.Deployment, opts metav1.UpdateOptions) (*appsv1.Deployment, error) { ret := _m.Called(ctx, deployment, opts) + if len(ret) == 0 { + panic("no return value specified for Update") + } + var r0 *appsv1.Deployment var r1 error if rf, ok := ret.Get(0).(func(context.Context, *appsv1.Deployment, metav1.UpdateOptions) (*appsv1.Deployment, error)); ok { @@ -647,6 +691,10 @@ func (_c *mockDeploymentClient_Update_Call) RunAndReturn(run func(context.Contex func (_m *mockDeploymentClient) UpdateScale(ctx context.Context, deploymentName string, scale *apiautoscalingv1.Scale, opts metav1.UpdateOptions) (*apiautoscalingv1.Scale, error) { ret := _m.Called(ctx, deploymentName, scale, opts) + if len(ret) == 0 { + panic("no return value specified for UpdateScale") + } + var r0 *apiautoscalingv1.Scale var r1 error if rf, ok := ret.Get(0).(func(context.Context, string, *apiautoscalingv1.Scale, metav1.UpdateOptions) (*apiautoscalingv1.Scale, error)); ok { @@ -704,6 +752,10 @@ func (_c *mockDeploymentClient_UpdateScale_Call) RunAndReturn(run func(context.C func (_m *mockDeploymentClient) UpdateStatus(ctx context.Context, deployment *appsv1.Deployment, opts metav1.UpdateOptions) (*appsv1.Deployment, error) { ret := _m.Called(ctx, deployment, opts) + if len(ret) == 0 { + panic("no return value specified for UpdateStatus") + } + var r0 *appsv1.Deployment var r1 error if rf, ok := ret.Get(0).(func(context.Context, *appsv1.Deployment, metav1.UpdateOptions) (*appsv1.Deployment, error)); ok { @@ -760,6 +812,10 @@ func (_c *mockDeploymentClient_UpdateStatus_Call) RunAndReturn(run func(context. func (_m *mockDeploymentClient) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { ret := _m.Called(ctx, opts) + if len(ret) == 0 { + panic("no return value specified for Watch") + } + var r0 watch.Interface var r1 error if rf, ok := ret.Get(0).(func(context.Context, metav1.ListOptions) (watch.Interface, error)); ok { @@ -811,13 +867,12 @@ func (_c *mockDeploymentClient_Watch_Call) RunAndReturn(run func(context.Context return _c } -type mockConstructorTestingTnewMockDeploymentClient interface { +// newMockDeploymentClient creates a new instance of mockDeploymentClient. 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 newMockDeploymentClient(t interface { mock.TestingT Cleanup(func()) -} - -// newMockDeploymentClient creates a new instance of mockDeploymentClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. -func newMockDeploymentClient(t mockConstructorTestingTnewMockDeploymentClient) *mockDeploymentClient { +}) *mockDeploymentClient { mock := &mockDeploymentClient{} mock.Mock.Test(t) diff --git a/pkg/health/mock_ecosystemClientSet_test.go b/pkg/health/mock_ecosystemClientSet_test.go index 72b2778..1b3abc3 100644 --- a/pkg/health/mock_ecosystemClientSet_test.go +++ b/pkg/health/mock_ecosystemClientSet_test.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.20.0. DO NOT EDIT. +// Code generated by mockery v2.42.1. DO NOT EDIT. package health @@ -32,6 +32,8 @@ import ( coordinationv1 "k8s.io/client-go/kubernetes/typed/coordination/v1" + coordinationv1alpha1 "k8s.io/client-go/kubernetes/typed/coordination/v1alpha1" + coordinationv1beta1 "k8s.io/client-go/kubernetes/typed/coordination/v1beta1" corev1 "k8s.io/client-go/kubernetes/typed/core/v1" @@ -86,6 +88,8 @@ import ( schedulingv1beta1 "k8s.io/client-go/kubernetes/typed/scheduling/v1beta1" + storagemigrationv1alpha1 "k8s.io/client-go/kubernetes/typed/storagemigration/v1alpha1" + storagev1 "k8s.io/client-go/kubernetes/typed/storage/v1" storagev1alpha1 "k8s.io/client-go/kubernetes/typed/storage/v1alpha1" @@ -96,7 +100,7 @@ import ( v1alpha1 "k8s.io/client-go/kubernetes/typed/admissionregistration/v1alpha1" - v1alpha2 "k8s.io/client-go/kubernetes/typed/resource/v1alpha2" + v1alpha3 "k8s.io/client-go/kubernetes/typed/resource/v1alpha3" v1beta1 "k8s.io/client-go/kubernetes/typed/admissionregistration/v1beta1" @@ -128,6 +132,10 @@ func (_m *mockEcosystemClientSet) EXPECT() *mockEcosystemClientSet_Expecter { func (_m *mockEcosystemClientSet) AdmissionregistrationV1() v1.AdmissionregistrationV1Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for AdmissionregistrationV1") + } + var r0 v1.AdmissionregistrationV1Interface if rf, ok := ret.Get(0).(func() v1.AdmissionregistrationV1Interface); ok { r0 = rf() @@ -171,6 +179,10 @@ func (_c *mockEcosystemClientSet_AdmissionregistrationV1_Call) RunAndReturn(run func (_m *mockEcosystemClientSet) AdmissionregistrationV1alpha1() v1alpha1.AdmissionregistrationV1alpha1Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for AdmissionregistrationV1alpha1") + } + var r0 v1alpha1.AdmissionregistrationV1alpha1Interface if rf, ok := ret.Get(0).(func() v1alpha1.AdmissionregistrationV1alpha1Interface); ok { r0 = rf() @@ -214,6 +226,10 @@ func (_c *mockEcosystemClientSet_AdmissionregistrationV1alpha1_Call) RunAndRetur func (_m *mockEcosystemClientSet) AdmissionregistrationV1beta1() v1beta1.AdmissionregistrationV1beta1Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for AdmissionregistrationV1beta1") + } + var r0 v1beta1.AdmissionregistrationV1beta1Interface if rf, ok := ret.Get(0).(func() v1beta1.AdmissionregistrationV1beta1Interface); ok { r0 = rf() @@ -257,6 +273,10 @@ func (_c *mockEcosystemClientSet_AdmissionregistrationV1beta1_Call) RunAndReturn func (_m *mockEcosystemClientSet) AppsV1() appsv1.AppsV1Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for AppsV1") + } + var r0 appsv1.AppsV1Interface if rf, ok := ret.Get(0).(func() appsv1.AppsV1Interface); ok { r0 = rf() @@ -300,6 +320,10 @@ func (_c *mockEcosystemClientSet_AppsV1_Call) RunAndReturn(run func() appsv1.App func (_m *mockEcosystemClientSet) AppsV1beta1() appsv1beta1.AppsV1beta1Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for AppsV1beta1") + } + var r0 appsv1beta1.AppsV1beta1Interface if rf, ok := ret.Get(0).(func() appsv1beta1.AppsV1beta1Interface); ok { r0 = rf() @@ -343,6 +367,10 @@ func (_c *mockEcosystemClientSet_AppsV1beta1_Call) RunAndReturn(run func() appsv func (_m *mockEcosystemClientSet) AppsV1beta2() v1beta2.AppsV1beta2Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for AppsV1beta2") + } + var r0 v1beta2.AppsV1beta2Interface if rf, ok := ret.Get(0).(func() v1beta2.AppsV1beta2Interface); ok { r0 = rf() @@ -386,6 +414,10 @@ func (_c *mockEcosystemClientSet_AppsV1beta2_Call) RunAndReturn(run func() v1bet func (_m *mockEcosystemClientSet) AuthenticationV1() authenticationv1.AuthenticationV1Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for AuthenticationV1") + } + var r0 authenticationv1.AuthenticationV1Interface if rf, ok := ret.Get(0).(func() authenticationv1.AuthenticationV1Interface); ok { r0 = rf() @@ -429,6 +461,10 @@ func (_c *mockEcosystemClientSet_AuthenticationV1_Call) RunAndReturn(run func() func (_m *mockEcosystemClientSet) AuthenticationV1alpha1() authenticationv1alpha1.AuthenticationV1alpha1Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for AuthenticationV1alpha1") + } + var r0 authenticationv1alpha1.AuthenticationV1alpha1Interface if rf, ok := ret.Get(0).(func() authenticationv1alpha1.AuthenticationV1alpha1Interface); ok { r0 = rf() @@ -472,6 +508,10 @@ func (_c *mockEcosystemClientSet_AuthenticationV1alpha1_Call) RunAndReturn(run f func (_m *mockEcosystemClientSet) AuthenticationV1beta1() authenticationv1beta1.AuthenticationV1beta1Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for AuthenticationV1beta1") + } + var r0 authenticationv1beta1.AuthenticationV1beta1Interface if rf, ok := ret.Get(0).(func() authenticationv1beta1.AuthenticationV1beta1Interface); ok { r0 = rf() @@ -515,6 +555,10 @@ func (_c *mockEcosystemClientSet_AuthenticationV1beta1_Call) RunAndReturn(run fu func (_m *mockEcosystemClientSet) AuthorizationV1() authorizationv1.AuthorizationV1Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for AuthorizationV1") + } + var r0 authorizationv1.AuthorizationV1Interface if rf, ok := ret.Get(0).(func() authorizationv1.AuthorizationV1Interface); ok { r0 = rf() @@ -558,6 +602,10 @@ func (_c *mockEcosystemClientSet_AuthorizationV1_Call) RunAndReturn(run func() a func (_m *mockEcosystemClientSet) AuthorizationV1beta1() authorizationv1beta1.AuthorizationV1beta1Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for AuthorizationV1beta1") + } + var r0 authorizationv1beta1.AuthorizationV1beta1Interface if rf, ok := ret.Get(0).(func() authorizationv1beta1.AuthorizationV1beta1Interface); ok { r0 = rf() @@ -601,6 +649,10 @@ func (_c *mockEcosystemClientSet_AuthorizationV1beta1_Call) RunAndReturn(run fun func (_m *mockEcosystemClientSet) AutoscalingV1() autoscalingv1.AutoscalingV1Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for AutoscalingV1") + } + var r0 autoscalingv1.AutoscalingV1Interface if rf, ok := ret.Get(0).(func() autoscalingv1.AutoscalingV1Interface); ok { r0 = rf() @@ -644,6 +696,10 @@ func (_c *mockEcosystemClientSet_AutoscalingV1_Call) RunAndReturn(run func() aut func (_m *mockEcosystemClientSet) AutoscalingV2() v2.AutoscalingV2Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for AutoscalingV2") + } + var r0 v2.AutoscalingV2Interface if rf, ok := ret.Get(0).(func() v2.AutoscalingV2Interface); ok { r0 = rf() @@ -687,6 +743,10 @@ func (_c *mockEcosystemClientSet_AutoscalingV2_Call) RunAndReturn(run func() v2. func (_m *mockEcosystemClientSet) AutoscalingV2beta1() v2beta1.AutoscalingV2beta1Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for AutoscalingV2beta1") + } + var r0 v2beta1.AutoscalingV2beta1Interface if rf, ok := ret.Get(0).(func() v2beta1.AutoscalingV2beta1Interface); ok { r0 = rf() @@ -730,6 +790,10 @@ func (_c *mockEcosystemClientSet_AutoscalingV2beta1_Call) RunAndReturn(run func( func (_m *mockEcosystemClientSet) AutoscalingV2beta2() v2beta2.AutoscalingV2beta2Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for AutoscalingV2beta2") + } + var r0 v2beta2.AutoscalingV2beta2Interface if rf, ok := ret.Get(0).(func() v2beta2.AutoscalingV2beta2Interface); ok { r0 = rf() @@ -773,6 +837,10 @@ func (_c *mockEcosystemClientSet_AutoscalingV2beta2_Call) RunAndReturn(run func( func (_m *mockEcosystemClientSet) BatchV1() batchv1.BatchV1Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for BatchV1") + } + var r0 batchv1.BatchV1Interface if rf, ok := ret.Get(0).(func() batchv1.BatchV1Interface); ok { r0 = rf() @@ -816,6 +884,10 @@ func (_c *mockEcosystemClientSet_BatchV1_Call) RunAndReturn(run func() batchv1.B func (_m *mockEcosystemClientSet) BatchV1beta1() batchv1beta1.BatchV1beta1Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for BatchV1beta1") + } + var r0 batchv1beta1.BatchV1beta1Interface if rf, ok := ret.Get(0).(func() batchv1beta1.BatchV1beta1Interface); ok { r0 = rf() @@ -859,6 +931,10 @@ func (_c *mockEcosystemClientSet_BatchV1beta1_Call) RunAndReturn(run func() batc func (_m *mockEcosystemClientSet) CertificatesV1() certificatesv1.CertificatesV1Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for CertificatesV1") + } + var r0 certificatesv1.CertificatesV1Interface if rf, ok := ret.Get(0).(func() certificatesv1.CertificatesV1Interface); ok { r0 = rf() @@ -902,6 +978,10 @@ func (_c *mockEcosystemClientSet_CertificatesV1_Call) RunAndReturn(run func() ce func (_m *mockEcosystemClientSet) CertificatesV1alpha1() certificatesv1alpha1.CertificatesV1alpha1Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for CertificatesV1alpha1") + } + var r0 certificatesv1alpha1.CertificatesV1alpha1Interface if rf, ok := ret.Get(0).(func() certificatesv1alpha1.CertificatesV1alpha1Interface); ok { r0 = rf() @@ -945,6 +1025,10 @@ func (_c *mockEcosystemClientSet_CertificatesV1alpha1_Call) RunAndReturn(run fun func (_m *mockEcosystemClientSet) CertificatesV1beta1() certificatesv1beta1.CertificatesV1beta1Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for CertificatesV1beta1") + } + var r0 certificatesv1beta1.CertificatesV1beta1Interface if rf, ok := ret.Get(0).(func() certificatesv1beta1.CertificatesV1beta1Interface); ok { r0 = rf() @@ -988,6 +1072,10 @@ func (_c *mockEcosystemClientSet_CertificatesV1beta1_Call) RunAndReturn(run func func (_m *mockEcosystemClientSet) ComponentV1Alpha1() ecosystem.ComponentV1Alpha1Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for ComponentV1Alpha1") + } + var r0 ecosystem.ComponentV1Alpha1Interface if rf, ok := ret.Get(0).(func() ecosystem.ComponentV1Alpha1Interface); ok { r0 = rf() @@ -1031,6 +1119,10 @@ func (_c *mockEcosystemClientSet_ComponentV1Alpha1_Call) RunAndReturn(run func() func (_m *mockEcosystemClientSet) CoordinationV1() coordinationv1.CoordinationV1Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for CoordinationV1") + } + var r0 coordinationv1.CoordinationV1Interface if rf, ok := ret.Get(0).(func() coordinationv1.CoordinationV1Interface); ok { r0 = rf() @@ -1070,10 +1162,61 @@ func (_c *mockEcosystemClientSet_CoordinationV1_Call) RunAndReturn(run func() co return _c } +// CoordinationV1alpha1 provides a mock function with given fields: +func (_m *mockEcosystemClientSet) CoordinationV1alpha1() coordinationv1alpha1.CoordinationV1alpha1Interface { + ret := _m.Called() + + if len(ret) == 0 { + panic("no return value specified for CoordinationV1alpha1") + } + + var r0 coordinationv1alpha1.CoordinationV1alpha1Interface + if rf, ok := ret.Get(0).(func() coordinationv1alpha1.CoordinationV1alpha1Interface); ok { + r0 = rf() + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(coordinationv1alpha1.CoordinationV1alpha1Interface) + } + } + + return r0 +} + +// mockEcosystemClientSet_CoordinationV1alpha1_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CoordinationV1alpha1' +type mockEcosystemClientSet_CoordinationV1alpha1_Call struct { + *mock.Call +} + +// CoordinationV1alpha1 is a helper method to define mock.On call +func (_e *mockEcosystemClientSet_Expecter) CoordinationV1alpha1() *mockEcosystemClientSet_CoordinationV1alpha1_Call { + return &mockEcosystemClientSet_CoordinationV1alpha1_Call{Call: _e.mock.On("CoordinationV1alpha1")} +} + +func (_c *mockEcosystemClientSet_CoordinationV1alpha1_Call) Run(run func()) *mockEcosystemClientSet_CoordinationV1alpha1_Call { + _c.Call.Run(func(args mock.Arguments) { + run() + }) + return _c +} + +func (_c *mockEcosystemClientSet_CoordinationV1alpha1_Call) Return(_a0 coordinationv1alpha1.CoordinationV1alpha1Interface) *mockEcosystemClientSet_CoordinationV1alpha1_Call { + _c.Call.Return(_a0) + return _c +} + +func (_c *mockEcosystemClientSet_CoordinationV1alpha1_Call) RunAndReturn(run func() coordinationv1alpha1.CoordinationV1alpha1Interface) *mockEcosystemClientSet_CoordinationV1alpha1_Call { + _c.Call.Return(run) + return _c +} + // CoordinationV1beta1 provides a mock function with given fields: func (_m *mockEcosystemClientSet) CoordinationV1beta1() coordinationv1beta1.CoordinationV1beta1Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for CoordinationV1beta1") + } + var r0 coordinationv1beta1.CoordinationV1beta1Interface if rf, ok := ret.Get(0).(func() coordinationv1beta1.CoordinationV1beta1Interface); ok { r0 = rf() @@ -1117,6 +1260,10 @@ func (_c *mockEcosystemClientSet_CoordinationV1beta1_Call) RunAndReturn(run func func (_m *mockEcosystemClientSet) CoreV1() corev1.CoreV1Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for CoreV1") + } + var r0 corev1.CoreV1Interface if rf, ok := ret.Get(0).(func() corev1.CoreV1Interface); ok { r0 = rf() @@ -1160,6 +1307,10 @@ func (_c *mockEcosystemClientSet_CoreV1_Call) RunAndReturn(run func() corev1.Cor func (_m *mockEcosystemClientSet) Discovery() discovery.DiscoveryInterface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for Discovery") + } + var r0 discovery.DiscoveryInterface if rf, ok := ret.Get(0).(func() discovery.DiscoveryInterface); ok { r0 = rf() @@ -1203,6 +1354,10 @@ func (_c *mockEcosystemClientSet_Discovery_Call) RunAndReturn(run func() discove func (_m *mockEcosystemClientSet) DiscoveryV1() discoveryv1.DiscoveryV1Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for DiscoveryV1") + } + var r0 discoveryv1.DiscoveryV1Interface if rf, ok := ret.Get(0).(func() discoveryv1.DiscoveryV1Interface); ok { r0 = rf() @@ -1246,6 +1401,10 @@ func (_c *mockEcosystemClientSet_DiscoveryV1_Call) RunAndReturn(run func() disco func (_m *mockEcosystemClientSet) DiscoveryV1beta1() discoveryv1beta1.DiscoveryV1beta1Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for DiscoveryV1beta1") + } + var r0 discoveryv1beta1.DiscoveryV1beta1Interface if rf, ok := ret.Get(0).(func() discoveryv1beta1.DiscoveryV1beta1Interface); ok { r0 = rf() @@ -1289,6 +1448,10 @@ func (_c *mockEcosystemClientSet_DiscoveryV1beta1_Call) RunAndReturn(run func() func (_m *mockEcosystemClientSet) EventsV1() eventsv1.EventsV1Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for EventsV1") + } + var r0 eventsv1.EventsV1Interface if rf, ok := ret.Get(0).(func() eventsv1.EventsV1Interface); ok { r0 = rf() @@ -1332,6 +1495,10 @@ func (_c *mockEcosystemClientSet_EventsV1_Call) RunAndReturn(run func() eventsv1 func (_m *mockEcosystemClientSet) EventsV1beta1() eventsv1beta1.EventsV1beta1Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for EventsV1beta1") + } + var r0 eventsv1beta1.EventsV1beta1Interface if rf, ok := ret.Get(0).(func() eventsv1beta1.EventsV1beta1Interface); ok { r0 = rf() @@ -1375,6 +1542,10 @@ func (_c *mockEcosystemClientSet_EventsV1beta1_Call) RunAndReturn(run func() eve func (_m *mockEcosystemClientSet) ExtensionsV1beta1() extensionsv1beta1.ExtensionsV1beta1Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for ExtensionsV1beta1") + } + var r0 extensionsv1beta1.ExtensionsV1beta1Interface if rf, ok := ret.Get(0).(func() extensionsv1beta1.ExtensionsV1beta1Interface); ok { r0 = rf() @@ -1418,6 +1589,10 @@ func (_c *mockEcosystemClientSet_ExtensionsV1beta1_Call) RunAndReturn(run func() func (_m *mockEcosystemClientSet) FlowcontrolV1() flowcontrolv1.FlowcontrolV1Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for FlowcontrolV1") + } + var r0 flowcontrolv1.FlowcontrolV1Interface if rf, ok := ret.Get(0).(func() flowcontrolv1.FlowcontrolV1Interface); ok { r0 = rf() @@ -1461,6 +1636,10 @@ func (_c *mockEcosystemClientSet_FlowcontrolV1_Call) RunAndReturn(run func() flo func (_m *mockEcosystemClientSet) FlowcontrolV1beta1() flowcontrolv1beta1.FlowcontrolV1beta1Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for FlowcontrolV1beta1") + } + var r0 flowcontrolv1beta1.FlowcontrolV1beta1Interface if rf, ok := ret.Get(0).(func() flowcontrolv1beta1.FlowcontrolV1beta1Interface); ok { r0 = rf() @@ -1504,6 +1683,10 @@ func (_c *mockEcosystemClientSet_FlowcontrolV1beta1_Call) RunAndReturn(run func( func (_m *mockEcosystemClientSet) FlowcontrolV1beta2() flowcontrolv1beta2.FlowcontrolV1beta2Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for FlowcontrolV1beta2") + } + var r0 flowcontrolv1beta2.FlowcontrolV1beta2Interface if rf, ok := ret.Get(0).(func() flowcontrolv1beta2.FlowcontrolV1beta2Interface); ok { r0 = rf() @@ -1547,6 +1730,10 @@ func (_c *mockEcosystemClientSet_FlowcontrolV1beta2_Call) RunAndReturn(run func( func (_m *mockEcosystemClientSet) FlowcontrolV1beta3() v1beta3.FlowcontrolV1beta3Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for FlowcontrolV1beta3") + } + var r0 v1beta3.FlowcontrolV1beta3Interface if rf, ok := ret.Get(0).(func() v1beta3.FlowcontrolV1beta3Interface); ok { r0 = rf() @@ -1590,6 +1777,10 @@ func (_c *mockEcosystemClientSet_FlowcontrolV1beta3_Call) RunAndReturn(run func( func (_m *mockEcosystemClientSet) InternalV1alpha1() apiserverinternalv1alpha1.InternalV1alpha1Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for InternalV1alpha1") + } + var r0 apiserverinternalv1alpha1.InternalV1alpha1Interface if rf, ok := ret.Get(0).(func() apiserverinternalv1alpha1.InternalV1alpha1Interface); ok { r0 = rf() @@ -1633,6 +1824,10 @@ func (_c *mockEcosystemClientSet_InternalV1alpha1_Call) RunAndReturn(run func() func (_m *mockEcosystemClientSet) NetworkingV1() networkingv1.NetworkingV1Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for NetworkingV1") + } + var r0 networkingv1.NetworkingV1Interface if rf, ok := ret.Get(0).(func() networkingv1.NetworkingV1Interface); ok { r0 = rf() @@ -1676,6 +1871,10 @@ func (_c *mockEcosystemClientSet_NetworkingV1_Call) RunAndReturn(run func() netw func (_m *mockEcosystemClientSet) NetworkingV1alpha1() networkingv1alpha1.NetworkingV1alpha1Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for NetworkingV1alpha1") + } + var r0 networkingv1alpha1.NetworkingV1alpha1Interface if rf, ok := ret.Get(0).(func() networkingv1alpha1.NetworkingV1alpha1Interface); ok { r0 = rf() @@ -1719,6 +1918,10 @@ func (_c *mockEcosystemClientSet_NetworkingV1alpha1_Call) RunAndReturn(run func( func (_m *mockEcosystemClientSet) NetworkingV1beta1() networkingv1beta1.NetworkingV1beta1Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for NetworkingV1beta1") + } + var r0 networkingv1beta1.NetworkingV1beta1Interface if rf, ok := ret.Get(0).(func() networkingv1beta1.NetworkingV1beta1Interface); ok { r0 = rf() @@ -1762,6 +1965,10 @@ func (_c *mockEcosystemClientSet_NetworkingV1beta1_Call) RunAndReturn(run func() func (_m *mockEcosystemClientSet) NodeV1() nodev1.NodeV1Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for NodeV1") + } + var r0 nodev1.NodeV1Interface if rf, ok := ret.Get(0).(func() nodev1.NodeV1Interface); ok { r0 = rf() @@ -1805,6 +2012,10 @@ func (_c *mockEcosystemClientSet_NodeV1_Call) RunAndReturn(run func() nodev1.Nod func (_m *mockEcosystemClientSet) NodeV1alpha1() nodev1alpha1.NodeV1alpha1Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for NodeV1alpha1") + } + var r0 nodev1alpha1.NodeV1alpha1Interface if rf, ok := ret.Get(0).(func() nodev1alpha1.NodeV1alpha1Interface); ok { r0 = rf() @@ -1848,6 +2059,10 @@ func (_c *mockEcosystemClientSet_NodeV1alpha1_Call) RunAndReturn(run func() node func (_m *mockEcosystemClientSet) NodeV1beta1() nodev1beta1.NodeV1beta1Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for NodeV1beta1") + } + var r0 nodev1beta1.NodeV1beta1Interface if rf, ok := ret.Get(0).(func() nodev1beta1.NodeV1beta1Interface); ok { r0 = rf() @@ -1891,6 +2106,10 @@ func (_c *mockEcosystemClientSet_NodeV1beta1_Call) RunAndReturn(run func() nodev func (_m *mockEcosystemClientSet) PolicyV1() policyv1.PolicyV1Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for PolicyV1") + } + var r0 policyv1.PolicyV1Interface if rf, ok := ret.Get(0).(func() policyv1.PolicyV1Interface); ok { r0 = rf() @@ -1934,6 +2153,10 @@ func (_c *mockEcosystemClientSet_PolicyV1_Call) RunAndReturn(run func() policyv1 func (_m *mockEcosystemClientSet) PolicyV1beta1() policyv1beta1.PolicyV1beta1Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for PolicyV1beta1") + } + var r0 policyv1beta1.PolicyV1beta1Interface if rf, ok := ret.Get(0).(func() policyv1beta1.PolicyV1beta1Interface); ok { r0 = rf() @@ -1977,6 +2200,10 @@ func (_c *mockEcosystemClientSet_PolicyV1beta1_Call) RunAndReturn(run func() pol func (_m *mockEcosystemClientSet) RbacV1() rbacv1.RbacV1Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for RbacV1") + } + var r0 rbacv1.RbacV1Interface if rf, ok := ret.Get(0).(func() rbacv1.RbacV1Interface); ok { r0 = rf() @@ -2020,6 +2247,10 @@ func (_c *mockEcosystemClientSet_RbacV1_Call) RunAndReturn(run func() rbacv1.Rba func (_m *mockEcosystemClientSet) RbacV1alpha1() rbacv1alpha1.RbacV1alpha1Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for RbacV1alpha1") + } + var r0 rbacv1alpha1.RbacV1alpha1Interface if rf, ok := ret.Get(0).(func() rbacv1alpha1.RbacV1alpha1Interface); ok { r0 = rf() @@ -2063,6 +2294,10 @@ func (_c *mockEcosystemClientSet_RbacV1alpha1_Call) RunAndReturn(run func() rbac func (_m *mockEcosystemClientSet) RbacV1beta1() rbacv1beta1.RbacV1beta1Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for RbacV1beta1") + } + var r0 rbacv1beta1.RbacV1beta1Interface if rf, ok := ret.Get(0).(func() rbacv1beta1.RbacV1beta1Interface); ok { r0 = rf() @@ -2102,45 +2337,49 @@ func (_c *mockEcosystemClientSet_RbacV1beta1_Call) RunAndReturn(run func() rbacv return _c } -// ResourceV1alpha2 provides a mock function with given fields: -func (_m *mockEcosystemClientSet) ResourceV1alpha2() v1alpha2.ResourceV1alpha2Interface { +// ResourceV1alpha3 provides a mock function with given fields: +func (_m *mockEcosystemClientSet) ResourceV1alpha3() v1alpha3.ResourceV1alpha3Interface { ret := _m.Called() - var r0 v1alpha2.ResourceV1alpha2Interface - if rf, ok := ret.Get(0).(func() v1alpha2.ResourceV1alpha2Interface); ok { + if len(ret) == 0 { + panic("no return value specified for ResourceV1alpha3") + } + + var r0 v1alpha3.ResourceV1alpha3Interface + if rf, ok := ret.Get(0).(func() v1alpha3.ResourceV1alpha3Interface); ok { r0 = rf() } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(v1alpha2.ResourceV1alpha2Interface) + r0 = ret.Get(0).(v1alpha3.ResourceV1alpha3Interface) } } return r0 } -// mockEcosystemClientSet_ResourceV1alpha2_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ResourceV1alpha2' -type mockEcosystemClientSet_ResourceV1alpha2_Call struct { +// mockEcosystemClientSet_ResourceV1alpha3_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ResourceV1alpha3' +type mockEcosystemClientSet_ResourceV1alpha3_Call struct { *mock.Call } -// ResourceV1alpha2 is a helper method to define mock.On call -func (_e *mockEcosystemClientSet_Expecter) ResourceV1alpha2() *mockEcosystemClientSet_ResourceV1alpha2_Call { - return &mockEcosystemClientSet_ResourceV1alpha2_Call{Call: _e.mock.On("ResourceV1alpha2")} +// ResourceV1alpha3 is a helper method to define mock.On call +func (_e *mockEcosystemClientSet_Expecter) ResourceV1alpha3() *mockEcosystemClientSet_ResourceV1alpha3_Call { + return &mockEcosystemClientSet_ResourceV1alpha3_Call{Call: _e.mock.On("ResourceV1alpha3")} } -func (_c *mockEcosystemClientSet_ResourceV1alpha2_Call) Run(run func()) *mockEcosystemClientSet_ResourceV1alpha2_Call { +func (_c *mockEcosystemClientSet_ResourceV1alpha3_Call) Run(run func()) *mockEcosystemClientSet_ResourceV1alpha3_Call { _c.Call.Run(func(args mock.Arguments) { run() }) return _c } -func (_c *mockEcosystemClientSet_ResourceV1alpha2_Call) Return(_a0 v1alpha2.ResourceV1alpha2Interface) *mockEcosystemClientSet_ResourceV1alpha2_Call { +func (_c *mockEcosystemClientSet_ResourceV1alpha3_Call) Return(_a0 v1alpha3.ResourceV1alpha3Interface) *mockEcosystemClientSet_ResourceV1alpha3_Call { _c.Call.Return(_a0) return _c } -func (_c *mockEcosystemClientSet_ResourceV1alpha2_Call) RunAndReturn(run func() v1alpha2.ResourceV1alpha2Interface) *mockEcosystemClientSet_ResourceV1alpha2_Call { +func (_c *mockEcosystemClientSet_ResourceV1alpha3_Call) RunAndReturn(run func() v1alpha3.ResourceV1alpha3Interface) *mockEcosystemClientSet_ResourceV1alpha3_Call { _c.Call.Return(run) return _c } @@ -2149,6 +2388,10 @@ func (_c *mockEcosystemClientSet_ResourceV1alpha2_Call) RunAndReturn(run func() func (_m *mockEcosystemClientSet) SchedulingV1() schedulingv1.SchedulingV1Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for SchedulingV1") + } + var r0 schedulingv1.SchedulingV1Interface if rf, ok := ret.Get(0).(func() schedulingv1.SchedulingV1Interface); ok { r0 = rf() @@ -2192,6 +2435,10 @@ func (_c *mockEcosystemClientSet_SchedulingV1_Call) RunAndReturn(run func() sche func (_m *mockEcosystemClientSet) SchedulingV1alpha1() schedulingv1alpha1.SchedulingV1alpha1Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for SchedulingV1alpha1") + } + var r0 schedulingv1alpha1.SchedulingV1alpha1Interface if rf, ok := ret.Get(0).(func() schedulingv1alpha1.SchedulingV1alpha1Interface); ok { r0 = rf() @@ -2235,6 +2482,10 @@ func (_c *mockEcosystemClientSet_SchedulingV1alpha1_Call) RunAndReturn(run func( func (_m *mockEcosystemClientSet) SchedulingV1beta1() schedulingv1beta1.SchedulingV1beta1Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for SchedulingV1beta1") + } + var r0 schedulingv1beta1.SchedulingV1beta1Interface if rf, ok := ret.Get(0).(func() schedulingv1beta1.SchedulingV1beta1Interface); ok { r0 = rf() @@ -2278,6 +2529,10 @@ func (_c *mockEcosystemClientSet_SchedulingV1beta1_Call) RunAndReturn(run func() func (_m *mockEcosystemClientSet) StorageV1() storagev1.StorageV1Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for StorageV1") + } + var r0 storagev1.StorageV1Interface if rf, ok := ret.Get(0).(func() storagev1.StorageV1Interface); ok { r0 = rf() @@ -2321,6 +2576,10 @@ func (_c *mockEcosystemClientSet_StorageV1_Call) RunAndReturn(run func() storage func (_m *mockEcosystemClientSet) StorageV1alpha1() storagev1alpha1.StorageV1alpha1Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for StorageV1alpha1") + } + var r0 storagev1alpha1.StorageV1alpha1Interface if rf, ok := ret.Get(0).(func() storagev1alpha1.StorageV1alpha1Interface); ok { r0 = rf() @@ -2364,6 +2623,10 @@ func (_c *mockEcosystemClientSet_StorageV1alpha1_Call) RunAndReturn(run func() s func (_m *mockEcosystemClientSet) StorageV1beta1() storagev1beta1.StorageV1beta1Interface { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for StorageV1beta1") + } + var r0 storagev1beta1.StorageV1beta1Interface if rf, ok := ret.Get(0).(func() storagev1beta1.StorageV1beta1Interface); ok { r0 = rf() @@ -2403,13 +2666,59 @@ func (_c *mockEcosystemClientSet_StorageV1beta1_Call) RunAndReturn(run func() st return _c } -type mockConstructorTestingTnewMockEcosystemClientSet interface { - mock.TestingT - Cleanup(func()) +// StoragemigrationV1alpha1 provides a mock function with given fields: +func (_m *mockEcosystemClientSet) StoragemigrationV1alpha1() storagemigrationv1alpha1.StoragemigrationV1alpha1Interface { + ret := _m.Called() + + if len(ret) == 0 { + panic("no return value specified for StoragemigrationV1alpha1") + } + + var r0 storagemigrationv1alpha1.StoragemigrationV1alpha1Interface + if rf, ok := ret.Get(0).(func() storagemigrationv1alpha1.StoragemigrationV1alpha1Interface); ok { + r0 = rf() + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(storagemigrationv1alpha1.StoragemigrationV1alpha1Interface) + } + } + + return r0 +} + +// mockEcosystemClientSet_StoragemigrationV1alpha1_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StoragemigrationV1alpha1' +type mockEcosystemClientSet_StoragemigrationV1alpha1_Call struct { + *mock.Call +} + +// StoragemigrationV1alpha1 is a helper method to define mock.On call +func (_e *mockEcosystemClientSet_Expecter) StoragemigrationV1alpha1() *mockEcosystemClientSet_StoragemigrationV1alpha1_Call { + return &mockEcosystemClientSet_StoragemigrationV1alpha1_Call{Call: _e.mock.On("StoragemigrationV1alpha1")} +} + +func (_c *mockEcosystemClientSet_StoragemigrationV1alpha1_Call) Run(run func()) *mockEcosystemClientSet_StoragemigrationV1alpha1_Call { + _c.Call.Run(func(args mock.Arguments) { + run() + }) + return _c +} + +func (_c *mockEcosystemClientSet_StoragemigrationV1alpha1_Call) Return(_a0 storagemigrationv1alpha1.StoragemigrationV1alpha1Interface) *mockEcosystemClientSet_StoragemigrationV1alpha1_Call { + _c.Call.Return(_a0) + return _c +} + +func (_c *mockEcosystemClientSet_StoragemigrationV1alpha1_Call) RunAndReturn(run func() storagemigrationv1alpha1.StoragemigrationV1alpha1Interface) *mockEcosystemClientSet_StoragemigrationV1alpha1_Call { + _c.Call.Return(run) + return _c } // newMockEcosystemClientSet creates a new instance of mockEcosystemClientSet. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. -func newMockEcosystemClientSet(t mockConstructorTestingTnewMockEcosystemClientSet) *mockEcosystemClientSet { +// The first argument is typically a *testing.T value. +func newMockEcosystemClientSet(t interface { + mock.TestingT + Cleanup(func()) +}) *mockEcosystemClientSet { mock := &mockEcosystemClientSet{} mock.Mock.Test(t) diff --git a/pkg/health/mock_statefulSetClient_test.go b/pkg/health/mock_statefulSetClient_test.go index da7d51c..fe861b3 100644 --- a/pkg/health/mock_statefulSetClient_test.go +++ b/pkg/health/mock_statefulSetClient_test.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.20.0. DO NOT EDIT. +// Code generated by mockery v2.42.1. DO NOT EDIT. package health @@ -38,6 +38,10 @@ func (_m *mockStatefulSetClient) EXPECT() *mockStatefulSetClient_Expecter { func (_m *mockStatefulSetClient) Apply(ctx context.Context, statefulSet *v1.StatefulSetApplyConfiguration, opts metav1.ApplyOptions) (*appsv1.StatefulSet, error) { ret := _m.Called(ctx, statefulSet, opts) + if len(ret) == 0 { + panic("no return value specified for Apply") + } + var r0 *appsv1.StatefulSet var r1 error if rf, ok := ret.Get(0).(func(context.Context, *v1.StatefulSetApplyConfiguration, metav1.ApplyOptions) (*appsv1.StatefulSet, error)); ok { @@ -94,6 +98,10 @@ func (_c *mockStatefulSetClient_Apply_Call) RunAndReturn(run func(context.Contex func (_m *mockStatefulSetClient) ApplyScale(ctx context.Context, statefulSetName string, scale *autoscalingv1.ScaleApplyConfiguration, opts metav1.ApplyOptions) (*apiautoscalingv1.Scale, error) { ret := _m.Called(ctx, statefulSetName, scale, opts) + if len(ret) == 0 { + panic("no return value specified for ApplyScale") + } + var r0 *apiautoscalingv1.Scale var r1 error if rf, ok := ret.Get(0).(func(context.Context, string, *autoscalingv1.ScaleApplyConfiguration, metav1.ApplyOptions) (*apiautoscalingv1.Scale, error)); ok { @@ -151,6 +159,10 @@ func (_c *mockStatefulSetClient_ApplyScale_Call) RunAndReturn(run func(context.C func (_m *mockStatefulSetClient) ApplyStatus(ctx context.Context, statefulSet *v1.StatefulSetApplyConfiguration, opts metav1.ApplyOptions) (*appsv1.StatefulSet, error) { ret := _m.Called(ctx, statefulSet, opts) + if len(ret) == 0 { + panic("no return value specified for ApplyStatus") + } + var r0 *appsv1.StatefulSet var r1 error if rf, ok := ret.Get(0).(func(context.Context, *v1.StatefulSetApplyConfiguration, metav1.ApplyOptions) (*appsv1.StatefulSet, error)); ok { @@ -207,6 +219,10 @@ func (_c *mockStatefulSetClient_ApplyStatus_Call) RunAndReturn(run func(context. func (_m *mockStatefulSetClient) Create(ctx context.Context, statefulSet *appsv1.StatefulSet, opts metav1.CreateOptions) (*appsv1.StatefulSet, error) { ret := _m.Called(ctx, statefulSet, opts) + if len(ret) == 0 { + panic("no return value specified for Create") + } + var r0 *appsv1.StatefulSet var r1 error if rf, ok := ret.Get(0).(func(context.Context, *appsv1.StatefulSet, metav1.CreateOptions) (*appsv1.StatefulSet, error)); ok { @@ -263,6 +279,10 @@ func (_c *mockStatefulSetClient_Create_Call) RunAndReturn(run func(context.Conte func (_m *mockStatefulSetClient) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error { ret := _m.Called(ctx, name, opts) + if len(ret) == 0 { + panic("no return value specified for Delete") + } + var r0 error if rf, ok := ret.Get(0).(func(context.Context, string, metav1.DeleteOptions) error); ok { r0 = rf(ctx, name, opts) @@ -307,6 +327,10 @@ func (_c *mockStatefulSetClient_Delete_Call) RunAndReturn(run func(context.Conte func (_m *mockStatefulSetClient) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { ret := _m.Called(ctx, opts, listOpts) + if len(ret) == 0 { + panic("no return value specified for DeleteCollection") + } + var r0 error if rf, ok := ret.Get(0).(func(context.Context, metav1.DeleteOptions, metav1.ListOptions) error); ok { r0 = rf(ctx, opts, listOpts) @@ -351,6 +375,10 @@ func (_c *mockStatefulSetClient_DeleteCollection_Call) RunAndReturn(run func(con func (_m *mockStatefulSetClient) Get(ctx context.Context, name string, opts metav1.GetOptions) (*appsv1.StatefulSet, error) { ret := _m.Called(ctx, name, opts) + if len(ret) == 0 { + panic("no return value specified for Get") + } + var r0 *appsv1.StatefulSet var r1 error if rf, ok := ret.Get(0).(func(context.Context, string, metav1.GetOptions) (*appsv1.StatefulSet, error)); ok { @@ -407,6 +435,10 @@ func (_c *mockStatefulSetClient_Get_Call) RunAndReturn(run func(context.Context, func (_m *mockStatefulSetClient) GetScale(ctx context.Context, statefulSetName string, options metav1.GetOptions) (*apiautoscalingv1.Scale, error) { ret := _m.Called(ctx, statefulSetName, options) + if len(ret) == 0 { + panic("no return value specified for GetScale") + } + var r0 *apiautoscalingv1.Scale var r1 error if rf, ok := ret.Get(0).(func(context.Context, string, metav1.GetOptions) (*apiautoscalingv1.Scale, error)); ok { @@ -463,6 +495,10 @@ func (_c *mockStatefulSetClient_GetScale_Call) RunAndReturn(run func(context.Con func (_m *mockStatefulSetClient) List(ctx context.Context, opts metav1.ListOptions) (*appsv1.StatefulSetList, error) { ret := _m.Called(ctx, opts) + if len(ret) == 0 { + panic("no return value specified for List") + } + var r0 *appsv1.StatefulSetList var r1 error if rf, ok := ret.Get(0).(func(context.Context, metav1.ListOptions) (*appsv1.StatefulSetList, error)); ok { @@ -525,6 +561,10 @@ func (_m *mockStatefulSetClient) Patch(ctx context.Context, name string, pt type _ca = append(_ca, _va...) ret := _m.Called(_ca...) + if len(ret) == 0 { + panic("no return value specified for Patch") + } + var r0 *appsv1.StatefulSet var r1 error if rf, ok := ret.Get(0).(func(context.Context, string, types.PatchType, []byte, metav1.PatchOptions, ...string) (*appsv1.StatefulSet, error)); ok { @@ -591,6 +631,10 @@ func (_c *mockStatefulSetClient_Patch_Call) RunAndReturn(run func(context.Contex func (_m *mockStatefulSetClient) Update(ctx context.Context, statefulSet *appsv1.StatefulSet, opts metav1.UpdateOptions) (*appsv1.StatefulSet, error) { ret := _m.Called(ctx, statefulSet, opts) + if len(ret) == 0 { + panic("no return value specified for Update") + } + var r0 *appsv1.StatefulSet var r1 error if rf, ok := ret.Get(0).(func(context.Context, *appsv1.StatefulSet, metav1.UpdateOptions) (*appsv1.StatefulSet, error)); ok { @@ -647,6 +691,10 @@ func (_c *mockStatefulSetClient_Update_Call) RunAndReturn(run func(context.Conte func (_m *mockStatefulSetClient) UpdateScale(ctx context.Context, statefulSetName string, scale *apiautoscalingv1.Scale, opts metav1.UpdateOptions) (*apiautoscalingv1.Scale, error) { ret := _m.Called(ctx, statefulSetName, scale, opts) + if len(ret) == 0 { + panic("no return value specified for UpdateScale") + } + var r0 *apiautoscalingv1.Scale var r1 error if rf, ok := ret.Get(0).(func(context.Context, string, *apiautoscalingv1.Scale, metav1.UpdateOptions) (*apiautoscalingv1.Scale, error)); ok { @@ -704,6 +752,10 @@ func (_c *mockStatefulSetClient_UpdateScale_Call) RunAndReturn(run func(context. func (_m *mockStatefulSetClient) UpdateStatus(ctx context.Context, statefulSet *appsv1.StatefulSet, opts metav1.UpdateOptions) (*appsv1.StatefulSet, error) { ret := _m.Called(ctx, statefulSet, opts) + if len(ret) == 0 { + panic("no return value specified for UpdateStatus") + } + var r0 *appsv1.StatefulSet var r1 error if rf, ok := ret.Get(0).(func(context.Context, *appsv1.StatefulSet, metav1.UpdateOptions) (*appsv1.StatefulSet, error)); ok { @@ -760,6 +812,10 @@ func (_c *mockStatefulSetClient_UpdateStatus_Call) RunAndReturn(run func(context func (_m *mockStatefulSetClient) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { ret := _m.Called(ctx, opts) + if len(ret) == 0 { + panic("no return value specified for Watch") + } + var r0 watch.Interface var r1 error if rf, ok := ret.Get(0).(func(context.Context, metav1.ListOptions) (watch.Interface, error)); ok { @@ -811,13 +867,12 @@ func (_c *mockStatefulSetClient_Watch_Call) RunAndReturn(run func(context.Contex return _c } -type mockConstructorTestingTnewMockStatefulSetClient interface { +// newMockStatefulSetClient creates a new instance of mockStatefulSetClient. 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 newMockStatefulSetClient(t interface { mock.TestingT Cleanup(func()) -} - -// newMockStatefulSetClient creates a new instance of mockStatefulSetClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. -func newMockStatefulSetClient(t mockConstructorTestingTnewMockStatefulSetClient) *mockStatefulSetClient { +}) *mockStatefulSetClient { mock := &mockStatefulSetClient{} mock.Mock.Test(t) diff --git a/pkg/helm/client/mock_Client_test.go b/pkg/helm/client/mock_Client_test.go index c1254e4..f3fa0dc 100644 --- a/pkg/helm/client/mock_Client_test.go +++ b/pkg/helm/client/mock_Client_test.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.20.0. DO NOT EDIT. +// Code generated by mockery v2.42.1. DO NOT EDIT. package client @@ -30,6 +30,10 @@ func (_m *MockClient) EXPECT() *MockClient_Expecter { func (_m *MockClient) GetChart(spec *ChartSpec) (*chart.Chart, string, error) { ret := _m.Called(spec) + if len(ret) == 0 { + panic("no return value specified for GetChart") + } + var r0 *chart.Chart var r1 string var r2 error @@ -91,6 +95,10 @@ func (_c *MockClient_GetChart_Call) RunAndReturn(run func(*ChartSpec) (*chart.Ch func (_m *MockClient) GetChartSpecValues(spec *ChartSpec) (map[string]interface{}, error) { ret := _m.Called(spec) + if len(ret) == 0 { + panic("no return value specified for GetChartSpecValues") + } + var r0 map[string]interface{} var r1 error if rf, ok := ret.Get(0).(func(*ChartSpec) (map[string]interface{}, error)); ok { @@ -145,6 +153,10 @@ func (_c *MockClient_GetChartSpecValues_Call) RunAndReturn(run func(*ChartSpec) func (_m *MockClient) GetRelease(name string) (*release.Release, error) { ret := _m.Called(name) + if len(ret) == 0 { + panic("no return value specified for GetRelease") + } + var r0 *release.Release var r1 error if rf, ok := ret.Get(0).(func(string) (*release.Release, error)); ok { @@ -199,6 +211,10 @@ func (_c *MockClient_GetRelease_Call) RunAndReturn(run func(string) (*release.Re func (_m *MockClient) GetReleaseValues(name string, allValues bool) (map[string]interface{}, error) { ret := _m.Called(name, allValues) + if len(ret) == 0 { + panic("no return value specified for GetReleaseValues") + } + var r0 map[string]interface{} var r1 error if rf, ok := ret.Get(0).(func(string, bool) (map[string]interface{}, error)); ok { @@ -254,6 +270,10 @@ func (_c *MockClient_GetReleaseValues_Call) RunAndReturn(run func(string, bool) func (_m *MockClient) InstallChart(ctx context.Context, spec *ChartSpec) (*release.Release, error) { ret := _m.Called(ctx, spec) + if len(ret) == 0 { + panic("no return value specified for InstallChart") + } + var r0 *release.Release var r1 error if rf, ok := ret.Get(0).(func(context.Context, *ChartSpec) (*release.Release, error)); ok { @@ -309,6 +329,10 @@ func (_c *MockClient_InstallChart_Call) RunAndReturn(run func(context.Context, * func (_m *MockClient) InstallOrUpgradeChart(ctx context.Context, spec *ChartSpec) (*release.Release, error) { ret := _m.Called(ctx, spec) + if len(ret) == 0 { + panic("no return value specified for InstallOrUpgradeChart") + } + var r0 *release.Release var r1 error if rf, ok := ret.Get(0).(func(context.Context, *ChartSpec) (*release.Release, error)); ok { @@ -364,6 +388,10 @@ func (_c *MockClient_InstallOrUpgradeChart_Call) RunAndReturn(run func(context.C func (_m *MockClient) ListDeployedReleases() ([]*release.Release, error) { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for ListDeployedReleases") + } + var r0 []*release.Release var r1 error if rf, ok := ret.Get(0).(func() ([]*release.Release, error)); ok { @@ -417,6 +445,10 @@ func (_c *MockClient_ListDeployedReleases_Call) RunAndReturn(run func() ([]*rele func (_m *MockClient) ListReleasesByStateMask(_a0 action.ListStates) ([]*release.Release, error) { ret := _m.Called(_a0) + if len(ret) == 0 { + panic("no return value specified for ListReleasesByStateMask") + } + var r0 []*release.Release var r1 error if rf, ok := ret.Get(0).(func(action.ListStates) ([]*release.Release, error)); ok { @@ -471,6 +503,10 @@ func (_c *MockClient_ListReleasesByStateMask_Call) RunAndReturn(run func(action. func (_m *MockClient) RollbackRelease(spec *ChartSpec) error { ret := _m.Called(spec) + if len(ret) == 0 { + panic("no return value specified for RollbackRelease") + } + var r0 error if rf, ok := ret.Get(0).(func(*ChartSpec) error); ok { r0 = rf(spec) @@ -513,6 +549,10 @@ func (_c *MockClient_RollbackRelease_Call) RunAndReturn(run func(*ChartSpec) err func (_m *MockClient) Tags(ref string) ([]string, error) { ret := _m.Called(ref) + if len(ret) == 0 { + panic("no return value specified for Tags") + } + var r0 []string var r1 error if rf, ok := ret.Get(0).(func(string) ([]string, error)); ok { @@ -567,6 +607,10 @@ func (_c *MockClient_Tags_Call) RunAndReturn(run func(string) ([]string, error)) func (_m *MockClient) UninstallRelease(spec *ChartSpec) error { ret := _m.Called(spec) + if len(ret) == 0 { + panic("no return value specified for UninstallRelease") + } + var r0 error if rf, ok := ret.Get(0).(func(*ChartSpec) error); ok { r0 = rf(spec) @@ -609,6 +653,10 @@ func (_c *MockClient_UninstallRelease_Call) RunAndReturn(run func(*ChartSpec) er func (_m *MockClient) UninstallReleaseByName(name string) error { ret := _m.Called(name) + if len(ret) == 0 { + panic("no return value specified for UninstallReleaseByName") + } + var r0 error if rf, ok := ret.Get(0).(func(string) error); ok { r0 = rf(name) @@ -651,6 +699,10 @@ func (_c *MockClient_UninstallReleaseByName_Call) RunAndReturn(run func(string) func (_m *MockClient) UpgradeChart(ctx context.Context, spec *ChartSpec) (*release.Release, error) { ret := _m.Called(ctx, spec) + if len(ret) == 0 { + panic("no return value specified for UpgradeChart") + } + var r0 *release.Release var r1 error if rf, ok := ret.Get(0).(func(context.Context, *ChartSpec) (*release.Release, error)); ok { @@ -702,13 +754,12 @@ func (_c *MockClient_UpgradeChart_Call) RunAndReturn(run func(context.Context, * return _c } -type mockConstructorTestingTNewMockClient interface { +// NewMockClient creates a new instance of MockClient. 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 NewMockClient(t interface { mock.TestingT Cleanup(func()) -} - -// NewMockClient creates a new instance of MockClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. -func NewMockClient(t mockConstructorTestingTNewMockClient) *MockClient { +}) *MockClient { mock := &MockClient{} mock.Mock.Test(t) diff --git a/pkg/helm/client/mock_RESTClientOption_test.go b/pkg/helm/client/mock_RESTClientOption_test.go index 48b9cd8..0d265b1 100644 --- a/pkg/helm/client/mock_RESTClientOption_test.go +++ b/pkg/helm/client/mock_RESTClientOption_test.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.20.0. DO NOT EDIT. +// Code generated by mockery v2.42.1. DO NOT EDIT. package client @@ -53,13 +53,12 @@ func (_c *MockRESTClientOption_Execute_Call) RunAndReturn(run func(*rest.Config) return _c } -type mockConstructorTestingTNewMockRESTClientOption interface { +// NewMockRESTClientOption creates a new instance of MockRESTClientOption. 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 NewMockRESTClientOption(t interface { mock.TestingT Cleanup(func()) -} - -// NewMockRESTClientOption creates a new instance of MockRESTClientOption. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. -func NewMockRESTClientOption(t mockConstructorTestingTNewMockRESTClientOption) *MockRESTClientOption { +}) *MockRESTClientOption { mock := &MockRESTClientOption{} mock.Mock.Test(t) diff --git a/pkg/helm/client/mock_RollBack_test.go b/pkg/helm/client/mock_RollBack_test.go index 9fa4005..1349fd3 100644 --- a/pkg/helm/client/mock_RollBack_test.go +++ b/pkg/helm/client/mock_RollBack_test.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.20.0. DO NOT EDIT. +// Code generated by mockery v2.42.1. DO NOT EDIT. package client @@ -21,6 +21,10 @@ func (_m *MockRollBack) EXPECT() *MockRollBack_Expecter { func (_m *MockRollBack) RollbackRelease(spec *ChartSpec) error { ret := _m.Called(spec) + if len(ret) == 0 { + panic("no return value specified for RollbackRelease") + } + var r0 error if rf, ok := ret.Get(0).(func(*ChartSpec) error); ok { r0 = rf(spec) @@ -59,13 +63,12 @@ func (_c *MockRollBack_RollbackRelease_Call) RunAndReturn(run func(*ChartSpec) e return _c } -type mockConstructorTestingTNewMockRollBack interface { +// NewMockRollBack creates a new instance of MockRollBack. 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 NewMockRollBack(t interface { mock.TestingT Cleanup(func()) -} - -// NewMockRollBack creates a new instance of MockRollBack. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. -func NewMockRollBack(t mockConstructorTestingTNewMockRollBack) *MockRollBack { +}) *MockRollBack { mock := &MockRollBack{} mock.Mock.Test(t) diff --git a/pkg/helm/client/mock_TagResolver_test.go b/pkg/helm/client/mock_TagResolver_test.go index cc4b4a8..990ab83 100644 --- a/pkg/helm/client/mock_TagResolver_test.go +++ b/pkg/helm/client/mock_TagResolver_test.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.20.0. DO NOT EDIT. +// Code generated by mockery v2.42.1. DO NOT EDIT. package client @@ -21,6 +21,10 @@ func (_m *MockTagResolver) EXPECT() *MockTagResolver_Expecter { func (_m *MockTagResolver) Tags(ref string) ([]string, error) { ret := _m.Called(ref) + if len(ret) == 0 { + panic("no return value specified for Tags") + } + var r0 []string var r1 error if rf, ok := ret.Get(0).(func(string) ([]string, error)); ok { @@ -71,13 +75,12 @@ func (_c *MockTagResolver_Tags_Call) RunAndReturn(run func(string) ([]string, er return _c } -type mockConstructorTestingTNewMockTagResolver interface { +// NewMockTagResolver creates a new instance of MockTagResolver. 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 NewMockTagResolver(t interface { mock.TestingT Cleanup(func()) -} - -// NewMockTagResolver creates a new instance of MockTagResolver. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. -func NewMockTagResolver(t mockConstructorTestingTNewMockTagResolver) *MockTagResolver { +}) *MockTagResolver { mock := &MockTagResolver{} mock.Mock.Test(t) diff --git a/pkg/helm/client/mock_actionProvider_test.go b/pkg/helm/client/mock_actionProvider_test.go index 0e616ec..f98b02e 100644 --- a/pkg/helm/client/mock_actionProvider_test.go +++ b/pkg/helm/client/mock_actionProvider_test.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.20.0. DO NOT EDIT. +// Code generated by mockery v2.42.1. DO NOT EDIT. package client @@ -21,6 +21,10 @@ func (_m *mockActionProvider) EXPECT() *mockActionProvider_Expecter { func (_m *mockActionProvider) newGetRelease() getReleaseAction { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for newGetRelease") + } + var r0 getReleaseAction if rf, ok := ret.Get(0).(func() getReleaseAction); ok { r0 = rf() @@ -64,6 +68,10 @@ func (_c *mockActionProvider_newGetRelease_Call) RunAndReturn(run func() getRele func (_m *mockActionProvider) newGetReleaseValues() getReleaseValuesAction { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for newGetReleaseValues") + } + var r0 getReleaseValuesAction if rf, ok := ret.Get(0).(func() getReleaseValuesAction); ok { r0 = rf() @@ -107,6 +115,10 @@ func (_c *mockActionProvider_newGetReleaseValues_Call) RunAndReturn(run func() g func (_m *mockActionProvider) newInstall() installAction { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for newInstall") + } + var r0 installAction if rf, ok := ret.Get(0).(func() installAction); ok { r0 = rf() @@ -150,6 +162,10 @@ func (_c *mockActionProvider_newInstall_Call) RunAndReturn(run func() installAct func (_m *mockActionProvider) newListReleases() listReleasesAction { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for newListReleases") + } + var r0 listReleasesAction if rf, ok := ret.Get(0).(func() listReleasesAction); ok { r0 = rf() @@ -193,6 +209,10 @@ func (_c *mockActionProvider_newListReleases_Call) RunAndReturn(run func() listR func (_m *mockActionProvider) newLocateChart() locateChartAction { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for newLocateChart") + } + var r0 locateChartAction if rf, ok := ret.Get(0).(func() locateChartAction); ok { r0 = rf() @@ -236,6 +256,10 @@ func (_c *mockActionProvider_newLocateChart_Call) RunAndReturn(run func() locate func (_m *mockActionProvider) newRollbackRelease() rollbackReleaseAction { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for newRollbackRelease") + } + var r0 rollbackReleaseAction if rf, ok := ret.Get(0).(func() rollbackReleaseAction); ok { r0 = rf() @@ -279,6 +303,10 @@ func (_c *mockActionProvider_newRollbackRelease_Call) RunAndReturn(run func() ro func (_m *mockActionProvider) newUninstall() uninstallAction { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for newUninstall") + } + var r0 uninstallAction if rf, ok := ret.Get(0).(func() uninstallAction); ok { r0 = rf() @@ -322,6 +350,10 @@ func (_c *mockActionProvider_newUninstall_Call) RunAndReturn(run func() uninstal func (_m *mockActionProvider) newUpgrade() upgradeAction { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for newUpgrade") + } + var r0 upgradeAction if rf, ok := ret.Get(0).(func() upgradeAction); ok { r0 = rf() @@ -361,13 +393,12 @@ func (_c *mockActionProvider_newUpgrade_Call) RunAndReturn(run func() upgradeAct return _c } -type mockConstructorTestingTnewMockActionProvider interface { +// newMockActionProvider creates a new instance of mockActionProvider. 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 newMockActionProvider(t interface { mock.TestingT Cleanup(func()) -} - -// newMockActionProvider creates a new instance of mockActionProvider. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. -func newMockActionProvider(t mockConstructorTestingTnewMockActionProvider) *mockActionProvider { +}) *mockActionProvider { mock := &mockActionProvider{} mock.Mock.Test(t) diff --git a/pkg/helm/client/mock_getReleaseAction_test.go b/pkg/helm/client/mock_getReleaseAction_test.go index 55b8ed5..e18986e 100644 --- a/pkg/helm/client/mock_getReleaseAction_test.go +++ b/pkg/helm/client/mock_getReleaseAction_test.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.20.0. DO NOT EDIT. +// Code generated by mockery v2.42.1. DO NOT EDIT. package client @@ -26,6 +26,10 @@ func (_m *mockGetReleaseAction) EXPECT() *mockGetReleaseAction_Expecter { func (_m *mockGetReleaseAction) getRelease(releaseName string) (*release.Release, error) { ret := _m.Called(releaseName) + if len(ret) == 0 { + panic("no return value specified for getRelease") + } + var r0 *release.Release var r1 error if rf, ok := ret.Get(0).(func(string) (*release.Release, error)); ok { @@ -80,6 +84,10 @@ func (_c *mockGetReleaseAction_getRelease_Call) RunAndReturn(run func(string) (* func (_m *mockGetReleaseAction) raw() *action.Get { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for raw") + } + var r0 *action.Get if rf, ok := ret.Get(0).(func() *action.Get); ok { r0 = rf() @@ -119,13 +127,12 @@ func (_c *mockGetReleaseAction_raw_Call) RunAndReturn(run func() *action.Get) *m return _c } -type mockConstructorTestingTnewMockGetReleaseAction interface { +// newMockGetReleaseAction creates a new instance of mockGetReleaseAction. 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 newMockGetReleaseAction(t interface { mock.TestingT Cleanup(func()) -} - -// newMockGetReleaseAction creates a new instance of mockGetReleaseAction. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. -func newMockGetReleaseAction(t mockConstructorTestingTnewMockGetReleaseAction) *mockGetReleaseAction { +}) *mockGetReleaseAction { mock := &mockGetReleaseAction{} mock.Mock.Test(t) diff --git a/pkg/helm/client/mock_getReleaseValuesAction_test.go b/pkg/helm/client/mock_getReleaseValuesAction_test.go index a301d5d..a68333d 100644 --- a/pkg/helm/client/mock_getReleaseValuesAction_test.go +++ b/pkg/helm/client/mock_getReleaseValuesAction_test.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.20.0. DO NOT EDIT. +// Code generated by mockery v2.42.1. DO NOT EDIT. package client @@ -24,6 +24,10 @@ func (_m *mockGetReleaseValuesAction) EXPECT() *mockGetReleaseValuesAction_Expec func (_m *mockGetReleaseValuesAction) getReleaseValues(releaseName string) (map[string]interface{}, error) { ret := _m.Called(releaseName) + if len(ret) == 0 { + panic("no return value specified for getReleaseValues") + } + var r0 map[string]interface{} var r1 error if rf, ok := ret.Get(0).(func(string) (map[string]interface{}, error)); ok { @@ -78,6 +82,10 @@ func (_c *mockGetReleaseValuesAction_getReleaseValues_Call) RunAndReturn(run fun func (_m *mockGetReleaseValuesAction) raw() *action.GetValues { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for raw") + } + var r0 *action.GetValues if rf, ok := ret.Get(0).(func() *action.GetValues); ok { r0 = rf() @@ -117,13 +125,12 @@ func (_c *mockGetReleaseValuesAction_raw_Call) RunAndReturn(run func() *action.G return _c } -type mockConstructorTestingTnewMockGetReleaseValuesAction interface { +// newMockGetReleaseValuesAction creates a new instance of mockGetReleaseValuesAction. 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 newMockGetReleaseValuesAction(t interface { mock.TestingT Cleanup(func()) -} - -// newMockGetReleaseValuesAction creates a new instance of mockGetReleaseValuesAction. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. -func newMockGetReleaseValuesAction(t mockConstructorTestingTnewMockGetReleaseValuesAction) *mockGetReleaseValuesAction { +}) *mockGetReleaseValuesAction { mock := &mockGetReleaseValuesAction{} mock.Mock.Test(t) diff --git a/pkg/helm/client/mock_installAction_test.go b/pkg/helm/client/mock_installAction_test.go index c27fc96..cec7822 100644 --- a/pkg/helm/client/mock_installAction_test.go +++ b/pkg/helm/client/mock_installAction_test.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.20.0. DO NOT EDIT. +// Code generated by mockery v2.42.1. DO NOT EDIT. package client @@ -30,6 +30,10 @@ func (_m *mockInstallAction) EXPECT() *mockInstallAction_Expecter { func (_m *mockInstallAction) install(ctx context.Context, _a1 *chart.Chart, values map[string]interface{}) (*release.Release, error) { ret := _m.Called(ctx, _a1, values) + if len(ret) == 0 { + panic("no return value specified for install") + } + var r0 *release.Release var r1 error if rf, ok := ret.Get(0).(func(context.Context, *chart.Chart, map[string]interface{}) (*release.Release, error)); ok { @@ -86,6 +90,10 @@ func (_c *mockInstallAction_install_Call) RunAndReturn(run func(context.Context, func (_m *mockInstallAction) raw() *action.Install { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for raw") + } + var r0 *action.Install if rf, ok := ret.Get(0).(func() *action.Install); ok { r0 = rf() @@ -125,13 +133,12 @@ func (_c *mockInstallAction_raw_Call) RunAndReturn(run func() *action.Install) * return _c } -type mockConstructorTestingTnewMockInstallAction interface { +// newMockInstallAction creates a new instance of mockInstallAction. 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 newMockInstallAction(t interface { mock.TestingT Cleanup(func()) -} - -// newMockInstallAction creates a new instance of mockInstallAction. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. -func newMockInstallAction(t mockConstructorTestingTnewMockInstallAction) *mockInstallAction { +}) *mockInstallAction { mock := &mockInstallAction{} mock.Mock.Test(t) diff --git a/pkg/helm/client/mock_listReleasesAction_test.go b/pkg/helm/client/mock_listReleasesAction_test.go index 7f746f7..9169a65 100644 --- a/pkg/helm/client/mock_listReleasesAction_test.go +++ b/pkg/helm/client/mock_listReleasesAction_test.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.20.0. DO NOT EDIT. +// Code generated by mockery v2.42.1. DO NOT EDIT. package client @@ -26,6 +26,10 @@ func (_m *mockListReleasesAction) EXPECT() *mockListReleasesAction_Expecter { func (_m *mockListReleasesAction) listReleases() ([]*release.Release, error) { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for listReleases") + } + var r0 []*release.Release var r1 error if rf, ok := ret.Get(0).(func() ([]*release.Release, error)); ok { @@ -79,6 +83,10 @@ func (_c *mockListReleasesAction_listReleases_Call) RunAndReturn(run func() ([]* func (_m *mockListReleasesAction) raw() *action.List { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for raw") + } + var r0 *action.List if rf, ok := ret.Get(0).(func() *action.List); ok { r0 = rf() @@ -118,13 +126,12 @@ func (_c *mockListReleasesAction_raw_Call) RunAndReturn(run func() *action.List) return _c } -type mockConstructorTestingTnewMockListReleasesAction interface { +// newMockListReleasesAction creates a new instance of mockListReleasesAction. 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 newMockListReleasesAction(t interface { mock.TestingT Cleanup(func()) -} - -// newMockListReleasesAction creates a new instance of mockListReleasesAction. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. -func newMockListReleasesAction(t mockConstructorTestingTnewMockListReleasesAction) *mockListReleasesAction { +}) *mockListReleasesAction { mock := &mockListReleasesAction{} mock.Mock.Test(t) diff --git a/pkg/helm/client/mock_locateChartAction_test.go b/pkg/helm/client/mock_locateChartAction_test.go index 6d1e804..131a3f8 100644 --- a/pkg/helm/client/mock_locateChartAction_test.go +++ b/pkg/helm/client/mock_locateChartAction_test.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.20.0. DO NOT EDIT. +// Code generated by mockery v2.42.1. DO NOT EDIT. package client @@ -24,6 +24,10 @@ func (_m *mockLocateChartAction) EXPECT() *mockLocateChartAction_Expecter { func (_m *mockLocateChartAction) locateChart(name string, version string, settings *cli.EnvSettings) (string, error) { ret := _m.Called(name, version, settings) + if len(ret) == 0 { + panic("no return value specified for locateChart") + } + var r0 string var r1 error if rf, ok := ret.Get(0).(func(string, string, *cli.EnvSettings) (string, error)); ok { @@ -74,13 +78,12 @@ func (_c *mockLocateChartAction_locateChart_Call) RunAndReturn(run func(string, return _c } -type mockConstructorTestingTnewMockLocateChartAction interface { +// newMockLocateChartAction creates a new instance of mockLocateChartAction. 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 newMockLocateChartAction(t interface { mock.TestingT Cleanup(func()) -} - -// newMockLocateChartAction creates a new instance of mockLocateChartAction. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. -func newMockLocateChartAction(t mockConstructorTestingTnewMockLocateChartAction) *mockLocateChartAction { +}) *mockLocateChartAction { mock := &mockLocateChartAction{} mock.Mock.Test(t) diff --git a/pkg/helm/client/mock_rollbackReleaseAction_test.go b/pkg/helm/client/mock_rollbackReleaseAction_test.go index 61345ae..a7b7452 100644 --- a/pkg/helm/client/mock_rollbackReleaseAction_test.go +++ b/pkg/helm/client/mock_rollbackReleaseAction_test.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.20.0. DO NOT EDIT. +// Code generated by mockery v2.42.1. DO NOT EDIT. package client @@ -24,6 +24,10 @@ func (_m *mockRollbackReleaseAction) EXPECT() *mockRollbackReleaseAction_Expecte func (_m *mockRollbackReleaseAction) raw() *action.Rollback { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for raw") + } + var r0 *action.Rollback if rf, ok := ret.Get(0).(func() *action.Rollback); ok { r0 = rf() @@ -67,6 +71,10 @@ func (_c *mockRollbackReleaseAction_raw_Call) RunAndReturn(run func() *action.Ro func (_m *mockRollbackReleaseAction) rollbackRelease(releaseName string) error { ret := _m.Called(releaseName) + if len(ret) == 0 { + panic("no return value specified for rollbackRelease") + } + var r0 error if rf, ok := ret.Get(0).(func(string) error); ok { r0 = rf(releaseName) @@ -105,13 +113,12 @@ func (_c *mockRollbackReleaseAction_rollbackRelease_Call) RunAndReturn(run func( return _c } -type mockConstructorTestingTnewMockRollbackReleaseAction interface { +// newMockRollbackReleaseAction creates a new instance of mockRollbackReleaseAction. 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 newMockRollbackReleaseAction(t interface { mock.TestingT Cleanup(func()) -} - -// newMockRollbackReleaseAction creates a new instance of mockRollbackReleaseAction. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. -func newMockRollbackReleaseAction(t mockConstructorTestingTnewMockRollbackReleaseAction) *mockRollbackReleaseAction { +}) *mockRollbackReleaseAction { mock := &mockRollbackReleaseAction{} mock.Mock.Test(t) diff --git a/pkg/helm/client/mock_uninstallAction_test.go b/pkg/helm/client/mock_uninstallAction_test.go index db627e6..cb2bce2 100644 --- a/pkg/helm/client/mock_uninstallAction_test.go +++ b/pkg/helm/client/mock_uninstallAction_test.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.20.0. DO NOT EDIT. +// Code generated by mockery v2.42.1. DO NOT EDIT. package client @@ -26,6 +26,10 @@ func (_m *mockUninstallAction) EXPECT() *mockUninstallAction_Expecter { func (_m *mockUninstallAction) raw() *action.Uninstall { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for raw") + } + var r0 *action.Uninstall if rf, ok := ret.Get(0).(func() *action.Uninstall); ok { r0 = rf() @@ -69,6 +73,10 @@ func (_c *mockUninstallAction_raw_Call) RunAndReturn(run func() *action.Uninstal func (_m *mockUninstallAction) uninstall(releaseName string) (*release.UninstallReleaseResponse, error) { ret := _m.Called(releaseName) + if len(ret) == 0 { + panic("no return value specified for uninstall") + } + var r0 *release.UninstallReleaseResponse var r1 error if rf, ok := ret.Get(0).(func(string) (*release.UninstallReleaseResponse, error)); ok { @@ -119,13 +127,12 @@ func (_c *mockUninstallAction_uninstall_Call) RunAndReturn(run func(string) (*re return _c } -type mockConstructorTestingTnewMockUninstallAction interface { +// newMockUninstallAction creates a new instance of mockUninstallAction. 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 newMockUninstallAction(t interface { mock.TestingT Cleanup(func()) -} - -// newMockUninstallAction creates a new instance of mockUninstallAction. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. -func newMockUninstallAction(t mockConstructorTestingTnewMockUninstallAction) *mockUninstallAction { +}) *mockUninstallAction { mock := &mockUninstallAction{} mock.Mock.Test(t) diff --git a/pkg/helm/client/mock_upgradeAction_test.go b/pkg/helm/client/mock_upgradeAction_test.go index 8624970..cd5b0f1 100644 --- a/pkg/helm/client/mock_upgradeAction_test.go +++ b/pkg/helm/client/mock_upgradeAction_test.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.20.0. DO NOT EDIT. +// Code generated by mockery v2.42.1. DO NOT EDIT. package client @@ -30,6 +30,10 @@ func (_m *mockUpgradeAction) EXPECT() *mockUpgradeAction_Expecter { func (_m *mockUpgradeAction) raw() *action.Upgrade { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for raw") + } + var r0 *action.Upgrade if rf, ok := ret.Get(0).(func() *action.Upgrade); ok { r0 = rf() @@ -73,6 +77,10 @@ func (_c *mockUpgradeAction_raw_Call) RunAndReturn(run func() *action.Upgrade) * func (_m *mockUpgradeAction) upgrade(ctx context.Context, releaseName string, _a2 *chart.Chart, values map[string]interface{}) (*release.Release, error) { ret := _m.Called(ctx, releaseName, _a2, values) + if len(ret) == 0 { + panic("no return value specified for upgrade") + } + var r0 *release.Release var r1 error if rf, ok := ret.Get(0).(func(context.Context, string, *chart.Chart, map[string]interface{}) (*release.Release, error)); ok { @@ -126,13 +134,12 @@ func (_c *mockUpgradeAction_upgrade_Call) RunAndReturn(run func(context.Context, return _c } -type mockConstructorTestingTnewMockUpgradeAction interface { +// newMockUpgradeAction creates a new instance of mockUpgradeAction. 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 newMockUpgradeAction(t interface { mock.TestingT Cleanup(func()) -} - -// newMockUpgradeAction creates a new instance of mockUpgradeAction. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. -func newMockUpgradeAction(t mockConstructorTestingTnewMockUpgradeAction) *mockUpgradeAction { +}) *mockUpgradeAction { mock := &mockUpgradeAction{} mock.Mock.Test(t) diff --git a/pkg/helm/mock_HelmClient_test.go b/pkg/helm/mock_HelmClient_test.go index b406b52..4041a8a 100644 --- a/pkg/helm/mock_HelmClient_test.go +++ b/pkg/helm/mock_HelmClient_test.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.20.0. DO NOT EDIT. +// Code generated by mockery v2.42.1. DO NOT EDIT. package helm @@ -32,6 +32,10 @@ func (_m *MockHelmClient) EXPECT() *MockHelmClient_Expecter { func (_m *MockHelmClient) GetChart(spec *client.ChartSpec) (*chart.Chart, string, error) { ret := _m.Called(spec) + if len(ret) == 0 { + panic("no return value specified for GetChart") + } + var r0 *chart.Chart var r1 string var r2 error @@ -93,6 +97,10 @@ func (_c *MockHelmClient_GetChart_Call) RunAndReturn(run func(*client.ChartSpec) func (_m *MockHelmClient) GetChartSpecValues(spec *client.ChartSpec) (map[string]interface{}, error) { ret := _m.Called(spec) + if len(ret) == 0 { + panic("no return value specified for GetChartSpecValues") + } + var r0 map[string]interface{} var r1 error if rf, ok := ret.Get(0).(func(*client.ChartSpec) (map[string]interface{}, error)); ok { @@ -147,6 +155,10 @@ func (_c *MockHelmClient_GetChartSpecValues_Call) RunAndReturn(run func(*client. func (_m *MockHelmClient) GetRelease(name string) (*release.Release, error) { ret := _m.Called(name) + if len(ret) == 0 { + panic("no return value specified for GetRelease") + } + var r0 *release.Release var r1 error if rf, ok := ret.Get(0).(func(string) (*release.Release, error)); ok { @@ -201,6 +213,10 @@ func (_c *MockHelmClient_GetRelease_Call) RunAndReturn(run func(string) (*releas func (_m *MockHelmClient) GetReleaseValues(name string, allValues bool) (map[string]interface{}, error) { ret := _m.Called(name, allValues) + if len(ret) == 0 { + panic("no return value specified for GetReleaseValues") + } + var r0 map[string]interface{} var r1 error if rf, ok := ret.Get(0).(func(string, bool) (map[string]interface{}, error)); ok { @@ -256,6 +272,10 @@ func (_c *MockHelmClient_GetReleaseValues_Call) RunAndReturn(run func(string, bo func (_m *MockHelmClient) InstallChart(ctx context.Context, spec *client.ChartSpec) (*release.Release, error) { ret := _m.Called(ctx, spec) + if len(ret) == 0 { + panic("no return value specified for InstallChart") + } + var r0 *release.Release var r1 error if rf, ok := ret.Get(0).(func(context.Context, *client.ChartSpec) (*release.Release, error)); ok { @@ -311,6 +331,10 @@ func (_c *MockHelmClient_InstallChart_Call) RunAndReturn(run func(context.Contex func (_m *MockHelmClient) InstallOrUpgradeChart(ctx context.Context, spec *client.ChartSpec) (*release.Release, error) { ret := _m.Called(ctx, spec) + if len(ret) == 0 { + panic("no return value specified for InstallOrUpgradeChart") + } + var r0 *release.Release var r1 error if rf, ok := ret.Get(0).(func(context.Context, *client.ChartSpec) (*release.Release, error)); ok { @@ -366,6 +390,10 @@ func (_c *MockHelmClient_InstallOrUpgradeChart_Call) RunAndReturn(run func(conte func (_m *MockHelmClient) ListDeployedReleases() ([]*release.Release, error) { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for ListDeployedReleases") + } + var r0 []*release.Release var r1 error if rf, ok := ret.Get(0).(func() ([]*release.Release, error)); ok { @@ -419,6 +447,10 @@ func (_c *MockHelmClient_ListDeployedReleases_Call) RunAndReturn(run func() ([]* func (_m *MockHelmClient) ListReleasesByStateMask(_a0 action.ListStates) ([]*release.Release, error) { ret := _m.Called(_a0) + if len(ret) == 0 { + panic("no return value specified for ListReleasesByStateMask") + } + var r0 []*release.Release var r1 error if rf, ok := ret.Get(0).(func(action.ListStates) ([]*release.Release, error)); ok { @@ -473,6 +505,10 @@ func (_c *MockHelmClient_ListReleasesByStateMask_Call) RunAndReturn(run func(act func (_m *MockHelmClient) RollbackRelease(spec *client.ChartSpec) error { ret := _m.Called(spec) + if len(ret) == 0 { + panic("no return value specified for RollbackRelease") + } + var r0 error if rf, ok := ret.Get(0).(func(*client.ChartSpec) error); ok { r0 = rf(spec) @@ -515,6 +551,10 @@ func (_c *MockHelmClient_RollbackRelease_Call) RunAndReturn(run func(*client.Cha func (_m *MockHelmClient) Tags(ref string) ([]string, error) { ret := _m.Called(ref) + if len(ret) == 0 { + panic("no return value specified for Tags") + } + var r0 []string var r1 error if rf, ok := ret.Get(0).(func(string) ([]string, error)); ok { @@ -569,6 +609,10 @@ func (_c *MockHelmClient_Tags_Call) RunAndReturn(run func(string) ([]string, err func (_m *MockHelmClient) UninstallRelease(spec *client.ChartSpec) error { ret := _m.Called(spec) + if len(ret) == 0 { + panic("no return value specified for UninstallRelease") + } + var r0 error if rf, ok := ret.Get(0).(func(*client.ChartSpec) error); ok { r0 = rf(spec) @@ -611,6 +655,10 @@ func (_c *MockHelmClient_UninstallRelease_Call) RunAndReturn(run func(*client.Ch func (_m *MockHelmClient) UninstallReleaseByName(name string) error { ret := _m.Called(name) + if len(ret) == 0 { + panic("no return value specified for UninstallReleaseByName") + } + var r0 error if rf, ok := ret.Get(0).(func(string) error); ok { r0 = rf(name) @@ -653,6 +701,10 @@ func (_c *MockHelmClient_UninstallReleaseByName_Call) RunAndReturn(run func(stri func (_m *MockHelmClient) UpgradeChart(ctx context.Context, spec *client.ChartSpec) (*release.Release, error) { ret := _m.Called(ctx, spec) + if len(ret) == 0 { + panic("no return value specified for UpgradeChart") + } + var r0 *release.Release var r1 error if rf, ok := ret.Get(0).(func(context.Context, *client.ChartSpec) (*release.Release, error)); ok { @@ -704,13 +756,12 @@ func (_c *MockHelmClient_UpgradeChart_Call) RunAndReturn(run func(context.Contex return _c } -type mockConstructorTestingTNewMockHelmClient interface { +// NewMockHelmClient creates a new instance of MockHelmClient. 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 NewMockHelmClient(t interface { mock.TestingT Cleanup(func()) -} - -// NewMockHelmClient creates a new instance of MockHelmClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. -func NewMockHelmClient(t mockConstructorTestingTNewMockHelmClient) *MockHelmClient { +}) *MockHelmClient { mock := &MockHelmClient{} mock.Mock.Test(t) diff --git a/pkg/helm/mock_dependencyChecker_test.go b/pkg/helm/mock_dependencyChecker_test.go index 2846c5c..f92dfc7 100644 --- a/pkg/helm/mock_dependencyChecker_test.go +++ b/pkg/helm/mock_dependencyChecker_test.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.20.0. DO NOT EDIT. +// Code generated by mockery v2.42.1. DO NOT EDIT. package helm @@ -24,6 +24,10 @@ func (_m *mockDependencyChecker) EXPECT() *mockDependencyChecker_Expecter { func (_m *mockDependencyChecker) CheckSatisfied(dependencies []Dependency, deployedReleases []*release.Release) error { ret := _m.Called(dependencies, deployedReleases) + if len(ret) == 0 { + panic("no return value specified for CheckSatisfied") + } + var r0 error if rf, ok := ret.Get(0).(func([]Dependency, []*release.Release) error); ok { r0 = rf(dependencies, deployedReleases) @@ -63,13 +67,12 @@ func (_c *mockDependencyChecker_CheckSatisfied_Call) RunAndReturn(run func([]Dep return _c } -type mockConstructorTestingTnewMockDependencyChecker interface { +// newMockDependencyChecker creates a new instance of mockDependencyChecker. 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 newMockDependencyChecker(t interface { mock.TestingT Cleanup(func()) -} - -// newMockDependencyChecker creates a new instance of mockDependencyChecker. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. -func newMockDependencyChecker(t mockConstructorTestingTnewMockDependencyChecker) *mockDependencyChecker { +}) *mockDependencyChecker { mock := &mockDependencyChecker{} mock.Mock.Test(t) diff --git a/pkg/labels/mock_documentSplitter_test.go b/pkg/labels/mock_documentSplitter_test.go index 9a34718..1e01674 100644 --- a/pkg/labels/mock_documentSplitter_test.go +++ b/pkg/labels/mock_documentSplitter_test.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.20.0. DO NOT EDIT. +// Code generated by mockery v2.42.1. DO NOT EDIT. package labels @@ -28,6 +28,10 @@ func (_m *mockDocumentSplitter) EXPECT() *mockDocumentSplitter_Expecter { func (_m *mockDocumentSplitter) Bytes() []byte { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for Bytes") + } + var r0 []byte if rf, ok := ret.Get(0).(func() []byte); ok { r0 = rf() @@ -71,6 +75,10 @@ func (_c *mockDocumentSplitter_Bytes_Call) RunAndReturn(run func() []byte) *mock func (_m *mockDocumentSplitter) Err() error { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for Err") + } + var r0 error if rf, ok := ret.Get(0).(func() error); ok { r0 = rf() @@ -112,6 +120,10 @@ func (_c *mockDocumentSplitter_Err_Call) RunAndReturn(run func() error) *mockDoc func (_m *mockDocumentSplitter) Next() bool { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for Next") + } + var r0 bool if rf, ok := ret.Get(0).(func() bool); ok { r0 = rf() @@ -153,6 +165,10 @@ func (_c *mockDocumentSplitter_Next_Call) RunAndReturn(run func() bool) *mockDoc func (_m *mockDocumentSplitter) Object() runtime.Object { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for Object") + } + var r0 runtime.Object if rf, ok := ret.Get(0).(func() runtime.Object); ok { r0 = rf() @@ -196,6 +212,10 @@ func (_c *mockDocumentSplitter_Object_Call) RunAndReturn(run func() runtime.Obje func (_m *mockDocumentSplitter) WithReader(r io.Reader) yaml.DocumentSplitter { ret := _m.Called(r) + if len(ret) == 0 { + panic("no return value specified for WithReader") + } + var r0 yaml.DocumentSplitter if rf, ok := ret.Get(0).(func(io.Reader) yaml.DocumentSplitter); ok { r0 = rf(r) @@ -236,13 +256,12 @@ func (_c *mockDocumentSplitter_WithReader_Call) RunAndReturn(run func(io.Reader) return _c } -type mockConstructorTestingTnewMockDocumentSplitter interface { +// newMockDocumentSplitter creates a new instance of mockDocumentSplitter. 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 newMockDocumentSplitter(t interface { mock.TestingT Cleanup(func()) -} - -// newMockDocumentSplitter creates a new instance of mockDocumentSplitter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. -func newMockDocumentSplitter(t mockConstructorTestingTnewMockDocumentSplitter) *mockDocumentSplitter { +}) *mockDocumentSplitter { mock := &mockDocumentSplitter{} mock.Mock.Test(t) diff --git a/pkg/labels/mock_genericYamlSerializer_test.go b/pkg/labels/mock_genericYamlSerializer_test.go index 6433447..03d78ef 100644 --- a/pkg/labels/mock_genericYamlSerializer_test.go +++ b/pkg/labels/mock_genericYamlSerializer_test.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.20.0. DO NOT EDIT. +// Code generated by mockery v2.42.1. DO NOT EDIT. package labels @@ -24,6 +24,10 @@ func (_m *mockGenericYamlSerializer) EXPECT() *mockGenericYamlSerializer_Expecte func (_m *mockGenericYamlSerializer) Marshal(o interface{}) ([]byte, error) { ret := _m.Called(o) + if len(ret) == 0 { + panic("no return value specified for Marshal") + } + var r0 []byte var r1 error if rf, ok := ret.Get(0).(func(interface{}) ([]byte, error)); ok { @@ -85,6 +89,10 @@ func (_m *mockGenericYamlSerializer) Unmarshal(y []byte, o interface{}, opts ... _ca = append(_ca, _va...) ret := _m.Called(_ca...) + if len(ret) == 0 { + panic("no return value specified for Unmarshal") + } + var r0 error if rf, ok := ret.Get(0).(func([]byte, interface{}, ...yaml.JSONOpt) error); ok { r0 = rf(y, o, opts...) @@ -132,13 +140,12 @@ func (_c *mockGenericYamlSerializer_Unmarshal_Call) RunAndReturn(run func([]byte return _c } -type mockConstructorTestingTnewMockGenericYamlSerializer interface { +// newMockGenericYamlSerializer creates a new instance of mockGenericYamlSerializer. 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 newMockGenericYamlSerializer(t interface { mock.TestingT Cleanup(func()) -} - -// newMockGenericYamlSerializer creates a new instance of mockGenericYamlSerializer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. -func newMockGenericYamlSerializer(t mockConstructorTestingTnewMockGenericYamlSerializer) *mockGenericYamlSerializer { +}) *mockGenericYamlSerializer { mock := &mockGenericYamlSerializer{} mock.Mock.Test(t) diff --git a/pkg/labels/mock_unstructuredConverter_test.go b/pkg/labels/mock_unstructuredConverter_test.go index 59222ac..9943480 100644 --- a/pkg/labels/mock_unstructuredConverter_test.go +++ b/pkg/labels/mock_unstructuredConverter_test.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.20.0. DO NOT EDIT. +// Code generated by mockery v2.42.1. DO NOT EDIT. package labels @@ -21,6 +21,10 @@ func (_m *mockUnstructuredConverter) EXPECT() *mockUnstructuredConverter_Expecte func (_m *mockUnstructuredConverter) FromUnstructured(u map[string]interface{}, obj interface{}) error { ret := _m.Called(u, obj) + if len(ret) == 0 { + panic("no return value specified for FromUnstructured") + } + var r0 error if rf, ok := ret.Get(0).(func(map[string]interface{}, interface{}) error); ok { r0 = rf(u, obj) @@ -64,6 +68,10 @@ func (_c *mockUnstructuredConverter_FromUnstructured_Call) RunAndReturn(run func func (_m *mockUnstructuredConverter) ToUnstructured(obj interface{}) (map[string]interface{}, error) { ret := _m.Called(obj) + if len(ret) == 0 { + panic("no return value specified for ToUnstructured") + } + var r0 map[string]interface{} var r1 error if rf, ok := ret.Get(0).(func(interface{}) (map[string]interface{}, error)); ok { @@ -114,13 +122,12 @@ func (_c *mockUnstructuredConverter_ToUnstructured_Call) RunAndReturn(run func(i return _c } -type mockConstructorTestingTnewMockUnstructuredConverter interface { +// newMockUnstructuredConverter creates a new instance of mockUnstructuredConverter. 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 newMockUnstructuredConverter(t interface { mock.TestingT Cleanup(func()) -} - -// newMockUnstructuredConverter creates a new instance of mockUnstructuredConverter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. -func newMockUnstructuredConverter(t mockConstructorTestingTnewMockUnstructuredConverter) *mockUnstructuredConverter { +}) *mockUnstructuredConverter { mock := &mockUnstructuredConverter{} mock.Mock.Test(t) diff --git a/pkg/labels/mock_unstructuredSerializer_test.go b/pkg/labels/mock_unstructuredSerializer_test.go index 3617646..b33c462 100644 --- a/pkg/labels/mock_unstructuredSerializer_test.go +++ b/pkg/labels/mock_unstructuredSerializer_test.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.20.0. DO NOT EDIT. +// Code generated by mockery v2.42.1. DO NOT EDIT. package labels @@ -28,6 +28,10 @@ func (_m *mockUnstructuredSerializer) EXPECT() *mockUnstructuredSerializer_Expec func (_m *mockUnstructuredSerializer) Decode(data []byte, defaults *schema.GroupVersionKind, into runtime.Object) (runtime.Object, *schema.GroupVersionKind, error) { ret := _m.Called(data, defaults, into) + if len(ret) == 0 { + panic("no return value specified for Decode") + } + var r0 runtime.Object var r1 *schema.GroupVersionKind var r2 error @@ -93,6 +97,10 @@ func (_c *mockUnstructuredSerializer_Decode_Call) RunAndReturn(run func([]byte, func (_m *mockUnstructuredSerializer) Encode(obj runtime.Object, w io.Writer) error { ret := _m.Called(obj, w) + if len(ret) == 0 { + panic("no return value specified for Encode") + } + var r0 error if rf, ok := ret.Get(0).(func(runtime.Object, io.Writer) error); ok { r0 = rf(obj, w) @@ -136,6 +144,10 @@ func (_c *mockUnstructuredSerializer_Encode_Call) RunAndReturn(run func(runtime. func (_m *mockUnstructuredSerializer) Identifier() runtime.Identifier { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for Identifier") + } + var r0 runtime.Identifier if rf, ok := ret.Get(0).(func() runtime.Identifier); ok { r0 = rf() @@ -173,13 +185,12 @@ func (_c *mockUnstructuredSerializer_Identifier_Call) RunAndReturn(run func() ru return _c } -type mockConstructorTestingTnewMockUnstructuredSerializer interface { +// newMockUnstructuredSerializer creates a new instance of mockUnstructuredSerializer. 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 newMockUnstructuredSerializer(t interface { mock.TestingT Cleanup(func()) -} - -// newMockUnstructuredSerializer creates a new instance of mockUnstructuredSerializer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. -func newMockUnstructuredSerializer(t mockConstructorTestingTnewMockUnstructuredSerializer) *mockUnstructuredSerializer { +}) *mockUnstructuredSerializer { mock := &mockUnstructuredSerializer{} mock.Mock.Test(t) diff --git a/pkg/mocks/external/Manager.go b/pkg/mocks/external/Manager.go deleted file mode 100644 index 0d89302..0000000 --- a/pkg/mocks/external/Manager.go +++ /dev/null @@ -1,329 +0,0 @@ -// Code generated by mockery v2.14.0. DO NOT EDIT. - -package external - -import ( - context "context" - http "net/http" - - logr "github.com/go-logr/logr" - mock "github.com/stretchr/testify/mock" - - meta "k8s.io/apimachinery/pkg/api/meta" - runtime "k8s.io/apimachinery/pkg/runtime" - rest "k8s.io/client-go/rest" - record "k8s.io/client-go/tools/record" - cache "sigs.k8s.io/controller-runtime/pkg/cache" - client "sigs.k8s.io/controller-runtime/pkg/client" - "sigs.k8s.io/controller-runtime/pkg/config" - healthz "sigs.k8s.io/controller-runtime/pkg/healthz" - manager "sigs.k8s.io/controller-runtime/pkg/manager" - webhook "sigs.k8s.io/controller-runtime/pkg/webhook" -) - -// Manager was an autogenerated mock type for the Manager type but must somehow maintained manually. -type Manager struct { - mock.Mock -} - -func (_m *Manager) GetHTTPClient() *http.Client { - ret := _m.Called() - - var r0 *http.Client - if rf, ok := ret.Get(0).(func() *http.Client); ok { - r0 = rf() - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*http.Client) - } - } - - return r0 -} - -// Add provides a mock function with given fields: _a0 -func (_m *Manager) Add(_a0 manager.Runnable) error { - ret := _m.Called(_a0) - - var r0 error - if rf, ok := ret.Get(0).(func(manager.Runnable) error); ok { - r0 = rf(_a0) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// AddHealthzCheck provides a mock function with given fields: name, check -func (_m *Manager) AddHealthzCheck(name string, check healthz.Checker) error { - ret := _m.Called(name, check) - - var r0 error - if rf, ok := ret.Get(0).(func(string, healthz.Checker) error); ok { - r0 = rf(name, check) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// AddMetricsExtraHandler provides a mock function with given fields: path, handler -func (_m *Manager) AddMetricsExtraHandler(path string, handler http.Handler) error { - ret := _m.Called(path, handler) - - var r0 error - if rf, ok := ret.Get(0).(func(string, http.Handler) error); ok { - r0 = rf(path, handler) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// AddReadyzCheck provides a mock function with given fields: name, check -func (_m *Manager) AddReadyzCheck(name string, check healthz.Checker) error { - ret := _m.Called(name, check) - - var r0 error - if rf, ok := ret.Get(0).(func(string, healthz.Checker) error); ok { - r0 = rf(name, check) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// Elected provides a mock function with given fields: -func (_m *Manager) Elected() <-chan struct{} { - ret := _m.Called() - - var r0 <-chan struct{} - if rf, ok := ret.Get(0).(func() <-chan struct{}); ok { - r0 = rf() - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(<-chan struct{}) - } - } - - return r0 -} - -// GetAPIReader provides a mock function with given fields: -func (_m *Manager) GetAPIReader() client.Reader { - ret := _m.Called() - - var r0 client.Reader - if rf, ok := ret.Get(0).(func() client.Reader); ok { - r0 = rf() - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(client.Reader) - } - } - - return r0 -} - -// GetCache provides a mock function with given fields: -func (_m *Manager) GetCache() cache.Cache { - ret := _m.Called() - - var r0 cache.Cache - if rf, ok := ret.Get(0).(func() cache.Cache); ok { - r0 = rf() - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(cache.Cache) - } - } - - return r0 -} - -// GetClient provides a mock function with given fields: -func (_m *Manager) GetClient() client.Client { - ret := _m.Called() - - var r0 client.Client - if rf, ok := ret.Get(0).(func() client.Client); ok { - r0 = rf() - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(client.Client) - } - } - - return r0 -} - -// GetConfig provides a mock function with given fields: -func (_m *Manager) GetConfig() *rest.Config { - ret := _m.Called() - - var r0 *rest.Config - if rf, ok := ret.Get(0).(func() *rest.Config); ok { - r0 = rf() - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*rest.Config) - } - } - - return r0 -} - -// GetControllerOptions provides a mock function with given fields: -func (_m *Manager) GetControllerOptions() config.Controller { - ret := _m.Called() - - var r0 config.Controller - if rf, ok := ret.Get(0).(func() config.Controller); ok { - r0 = rf() - } else { - r0 = ret.Get(0).(config.Controller) - } - - return r0 -} - -// GetEventRecorderFor provides a mock function with given fields: name -func (_m *Manager) GetEventRecorderFor(name string) record.EventRecorder { - ret := _m.Called(name) - - var r0 record.EventRecorder - if rf, ok := ret.Get(0).(func(string) record.EventRecorder); ok { - r0 = rf(name) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(record.EventRecorder) - } - } - - return r0 -} - -// GetFieldIndexer provides a mock function with given fields: -func (_m *Manager) GetFieldIndexer() client.FieldIndexer { - ret := _m.Called() - - var r0 client.FieldIndexer - if rf, ok := ret.Get(0).(func() client.FieldIndexer); ok { - r0 = rf() - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(client.FieldIndexer) - } - } - - return r0 -} - -// GetLogger provides a mock function with given fields: -func (_m *Manager) GetLogger() logr.Logger { - ret := _m.Called() - - var r0 logr.Logger - if rf, ok := ret.Get(0).(func() logr.Logger); ok { - r0 = rf() - } else { - r0 = ret.Get(0).(logr.Logger) - } - - return r0 -} - -// GetRESTMapper provides a mock function with given fields: -func (_m *Manager) GetRESTMapper() meta.RESTMapper { - ret := _m.Called() - - var r0 meta.RESTMapper - if rf, ok := ret.Get(0).(func() meta.RESTMapper); ok { - r0 = rf() - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(meta.RESTMapper) - } - } - - return r0 -} - -// GetScheme provides a mock function with given fields: -func (_m *Manager) GetScheme() *runtime.Scheme { - ret := _m.Called() - - var r0 *runtime.Scheme - if rf, ok := ret.Get(0).(func() *runtime.Scheme); ok { - r0 = rf() - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*runtime.Scheme) - } - } - - return r0 -} - -// GetWebhookServer provides a mock function with given fields: -func (_m *Manager) GetWebhookServer() webhook.Server { - ret := _m.Called() - - var r0 webhook.Server - if rf, ok := ret.Get(0).(func() webhook.Server); ok { - r0 = rf() - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(webhook.Server) - } - } - - return r0 -} - -// SetFields provides a mock function with given fields: _a0 -func (_m *Manager) SetFields(_a0 interface{}) error { - ret := _m.Called(_a0) - - var r0 error - if rf, ok := ret.Get(0).(func(interface{}) error); ok { - r0 = rf(_a0) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// Start provides a mock function with given fields: ctx -func (_m *Manager) Start(ctx context.Context) error { - ret := _m.Called(ctx) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context) error); ok { - r0 = rf(ctx) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -type mockConstructorTestingTNewManager interface { - mock.TestingT - Cleanup(func()) -} - -// NewManager creates a new instance of Manager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. -func NewManager(t mockConstructorTestingTNewManager) *Manager { - mock := &Manager{} - mock.Mock.Test(t) - - t.Cleanup(func() { mock.AssertExpectations(t) }) - - return mock -} diff --git a/pkg/yaml/mock_DocumentSplitter_test.go b/pkg/yaml/mock_DocumentSplitter_test.go index 68243d5..07e76b4 100644 --- a/pkg/yaml/mock_DocumentSplitter_test.go +++ b/pkg/yaml/mock_DocumentSplitter_test.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.20.0. DO NOT EDIT. +// Code generated by mockery v2.42.1. DO NOT EDIT. package yaml @@ -26,6 +26,10 @@ func (_m *MockDocumentSplitter) EXPECT() *MockDocumentSplitter_Expecter { func (_m *MockDocumentSplitter) Bytes() []byte { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for Bytes") + } + var r0 []byte if rf, ok := ret.Get(0).(func() []byte); ok { r0 = rf() @@ -69,6 +73,10 @@ func (_c *MockDocumentSplitter_Bytes_Call) RunAndReturn(run func() []byte) *Mock func (_m *MockDocumentSplitter) Err() error { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for Err") + } + var r0 error if rf, ok := ret.Get(0).(func() error); ok { r0 = rf() @@ -110,6 +118,10 @@ func (_c *MockDocumentSplitter_Err_Call) RunAndReturn(run func() error) *MockDoc func (_m *MockDocumentSplitter) Next() bool { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for Next") + } + var r0 bool if rf, ok := ret.Get(0).(func() bool); ok { r0 = rf() @@ -151,6 +163,10 @@ func (_c *MockDocumentSplitter_Next_Call) RunAndReturn(run func() bool) *MockDoc func (_m *MockDocumentSplitter) Object() runtime.Object { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for Object") + } + var r0 runtime.Object if rf, ok := ret.Get(0).(func() runtime.Object); ok { r0 = rf() @@ -194,6 +210,10 @@ func (_c *MockDocumentSplitter_Object_Call) RunAndReturn(run func() runtime.Obje func (_m *MockDocumentSplitter) WithReader(r io.Reader) DocumentSplitter { ret := _m.Called(r) + if len(ret) == 0 { + panic("no return value specified for WithReader") + } + var r0 DocumentSplitter if rf, ok := ret.Get(0).(func(io.Reader) DocumentSplitter); ok { r0 = rf(r) @@ -234,13 +254,12 @@ func (_c *MockDocumentSplitter_WithReader_Call) RunAndReturn(run func(io.Reader) return _c } -type mockConstructorTestingTNewMockDocumentSplitter interface { +// NewMockDocumentSplitter creates a new instance of MockDocumentSplitter. 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 NewMockDocumentSplitter(t interface { mock.TestingT Cleanup(func()) -} - -// NewMockDocumentSplitter creates a new instance of MockDocumentSplitter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. -func NewMockDocumentSplitter(t mockConstructorTestingTNewMockDocumentSplitter) *MockDocumentSplitter { +}) *MockDocumentSplitter { mock := &MockDocumentSplitter{} mock.Mock.Test(t) diff --git a/pkg/yaml/mock_Serializer_test.go b/pkg/yaml/mock_Serializer_test.go index fca375f..7364595 100644 --- a/pkg/yaml/mock_Serializer_test.go +++ b/pkg/yaml/mock_Serializer_test.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.20.0. DO NOT EDIT. +// Code generated by mockery v2.42.1. DO NOT EDIT. package yaml @@ -24,6 +24,10 @@ func (_m *MockSerializer) EXPECT() *MockSerializer_Expecter { func (_m *MockSerializer) Marshal(o interface{}) ([]byte, error) { ret := _m.Called(o) + if len(ret) == 0 { + panic("no return value specified for Marshal") + } + var r0 []byte var r1 error if rf, ok := ret.Get(0).(func(interface{}) ([]byte, error)); ok { @@ -85,6 +89,10 @@ func (_m *MockSerializer) Unmarshal(y []byte, o interface{}, opts ...sigs_k8s_io _ca = append(_ca, _va...) ret := _m.Called(_ca...) + if len(ret) == 0 { + panic("no return value specified for Unmarshal") + } + var r0 error if rf, ok := ret.Get(0).(func([]byte, interface{}, ...sigs_k8s_ioyaml.JSONOpt) error); ok { r0 = rf(y, o, opts...) @@ -132,13 +140,12 @@ func (_c *MockSerializer_Unmarshal_Call) RunAndReturn(run func([]byte, interface return _c } -type mockConstructorTestingTNewMockSerializer interface { +// NewMockSerializer creates a new instance of MockSerializer. 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 NewMockSerializer(t interface { mock.TestingT Cleanup(func()) -} - -// NewMockSerializer creates a new instance of MockSerializer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. -func NewMockSerializer(t mockConstructorTestingTNewMockSerializer) *MockSerializer { +}) *MockSerializer { mock := &MockSerializer{} mock.Mock.Test(t) diff --git a/pkg/yaml/mock_decoder_test.go b/pkg/yaml/mock_decoder_test.go index 3187bce..fd58015 100644 --- a/pkg/yaml/mock_decoder_test.go +++ b/pkg/yaml/mock_decoder_test.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.20.0. DO NOT EDIT. +// Code generated by mockery v2.42.1. DO NOT EDIT. package yaml @@ -21,6 +21,10 @@ func (_m *mockDecoder) EXPECT() *mockDecoder_Expecter { func (_m *mockDecoder) Decode(into interface{}) error { ret := _m.Called(into) + if len(ret) == 0 { + panic("no return value specified for Decode") + } + var r0 error if rf, ok := ret.Get(0).(func(interface{}) error); ok { r0 = rf(into) @@ -59,13 +63,12 @@ func (_c *mockDecoder_Decode_Call) RunAndReturn(run func(interface{}) error) *mo return _c } -type mockConstructorTestingTnewMockDecoder interface { +// newMockDecoder creates a new instance of mockDecoder. 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 newMockDecoder(t interface { mock.TestingT Cleanup(func()) -} - -// newMockDecoder creates a new instance of mockDecoder. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. -func newMockDecoder(t mockConstructorTestingTnewMockDecoder) *mockDecoder { +}) *mockDecoder { mock := &mockDecoder{} mock.Mock.Test(t)