From e960de56535f69dfd54b3eacbe6bb37bbcd75d61 Mon Sep 17 00:00:00 2001 From: Zhen Zhang Date: Mon, 29 Jan 2024 17:10:37 +0800 Subject: [PATCH] remote rollout api & client from the repo (#20) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 守辰 --- Makefile | 11 +- README.md | 19 + addtoscheme_rollouts_v1alphal1.go | 26 - client/clientset/versioned/clientset.go | 20 +- .../versioned/fake/clientset_generated.go | 7 - client/clientset/versioned/fake/register.go | 2 - client/clientset/versioned/scheme/register.go | 2 - .../typed/rollouts/v1alpha1/batchrelease.go | 195 -- .../versioned/typed/rollouts/v1alpha1/doc.go | 20 - .../typed/rollouts/v1alpha1/fake/doc.go | 20 - .../v1alpha1/fake/fake_batchrelease.go | 142 -- .../rollouts/v1alpha1/fake/fake_rollout.go | 142 -- .../v1alpha1/fake/fake_rollouthistory.go | 142 -- .../v1alpha1/fake/fake_rollouts_client.go | 48 - .../rollouts/v1alpha1/generated_expansion.go | 25 - .../typed/rollouts/v1alpha1/rollout.go | 195 -- .../typed/rollouts/v1alpha1/rollouthistory.go | 195 -- .../rollouts/v1alpha1/rollouts_client.go | 99 - client/informers/externalversions/factory.go | 6 - client/informers/externalversions/generic.go | 9 - .../externalversions/rollouts/interface.go | 46 - .../rollouts/v1alpha1/batchrelease.go | 90 - .../rollouts/v1alpha1/interface.go | 59 - .../rollouts/v1alpha1/rollout.go | 90 - .../rollouts/v1alpha1/rollouthistory.go | 90 - .../listers/rollouts/v1alpha1/batchrelease.go | 99 - .../rollouts/v1alpha1/expansion_generated.go | 43 - client/listers/rollouts/v1alpha1/rollout.go | 99 - .../rollouts/v1alpha1/rollouthistory.go | 99 - cmd/gen-schema/main.go | 8 +- .../create-update-delete-cloneset/main.go | 81 + go.mod | 1 - go.sum | 404 +--- hack/generate_client.sh | 4 +- pkg/rollouts/openapi_generated.go | 1648 ----------------- pkg/rollouts/violation_exceptions.list | 12 - rollouts/v1alpha1/batchrelease_plan_types.go | 143 -- rollouts/v1alpha1/batchrelease_types.go | 59 - rollouts/v1alpha1/deployment_types.go | 87 - rollouts/v1alpha1/doc.go | 19 - rollouts/v1alpha1/groupversion_info.go | 43 - rollouts/v1alpha1/rollout_types.go | 344 ---- rollouts/v1alpha1/rollouthistory_types.go | 151 -- rollouts/v1alpha1/zz_generated.deepcopy.go | 863 --------- .../openkruise_rollouts_kustomize_schema.json | 1193 ------------ 45 files changed, 112 insertions(+), 6988 deletions(-) delete mode 100644 addtoscheme_rollouts_v1alphal1.go delete mode 100644 client/clientset/versioned/typed/rollouts/v1alpha1/batchrelease.go delete mode 100644 client/clientset/versioned/typed/rollouts/v1alpha1/doc.go delete mode 100644 client/clientset/versioned/typed/rollouts/v1alpha1/fake/doc.go delete mode 100644 client/clientset/versioned/typed/rollouts/v1alpha1/fake/fake_batchrelease.go delete mode 100644 client/clientset/versioned/typed/rollouts/v1alpha1/fake/fake_rollout.go delete mode 100644 client/clientset/versioned/typed/rollouts/v1alpha1/fake/fake_rollouthistory.go delete mode 100644 client/clientset/versioned/typed/rollouts/v1alpha1/fake/fake_rollouts_client.go delete mode 100644 client/clientset/versioned/typed/rollouts/v1alpha1/generated_expansion.go delete mode 100644 client/clientset/versioned/typed/rollouts/v1alpha1/rollout.go delete mode 100644 client/clientset/versioned/typed/rollouts/v1alpha1/rollouthistory.go delete mode 100644 client/clientset/versioned/typed/rollouts/v1alpha1/rollouts_client.go delete mode 100644 client/informers/externalversions/rollouts/interface.go delete mode 100644 client/informers/externalversions/rollouts/v1alpha1/batchrelease.go delete mode 100644 client/informers/externalversions/rollouts/v1alpha1/interface.go delete mode 100644 client/informers/externalversions/rollouts/v1alpha1/rollout.go delete mode 100644 client/informers/externalversions/rollouts/v1alpha1/rollouthistory.go delete mode 100644 client/listers/rollouts/v1alpha1/batchrelease.go delete mode 100644 client/listers/rollouts/v1alpha1/expansion_generated.go delete mode 100644 client/listers/rollouts/v1alpha1/rollout.go delete mode 100644 client/listers/rollouts/v1alpha1/rollouthistory.go create mode 100644 examples/create-update-delete-cloneset/main.go delete mode 100644 pkg/rollouts/openapi_generated.go delete mode 100644 pkg/rollouts/violation_exceptions.list delete mode 100644 rollouts/v1alpha1/batchrelease_plan_types.go delete mode 100644 rollouts/v1alpha1/batchrelease_types.go delete mode 100644 rollouts/v1alpha1/deployment_types.go delete mode 100644 rollouts/v1alpha1/doc.go delete mode 100644 rollouts/v1alpha1/groupversion_info.go delete mode 100644 rollouts/v1alpha1/rollout_types.go delete mode 100644 rollouts/v1alpha1/rollouthistory_types.go delete mode 100644 rollouts/v1alpha1/zz_generated.deepcopy.go delete mode 100644 schema/openkruise_rollouts_kustomize_schema.json diff --git a/Makefile b/Makefile index c81bc358..05c5c981 100644 --- a/Makefile +++ b/Makefile @@ -59,7 +59,7 @@ gen-openapi-schema: gen-all-openapi gen-kruise-openapi gen-rollouts-openapi gen-all-openapi: openapi-gen $(OPENAPI_GEN) \ --go-header-file ./hack/boilerplate.go.txt \ - --input-dirs github.com/openkruise/kruise-api/apps/v1alpha1,github.com/openkruise/kruise-api/apps/pub,github.com/openkruise/kruise-api/apps/v1beta1,github.com/openkruise/kruise-api/policy/v1alpha1,github.com/openkruise/kruise-api/rollouts/v1alpha1,k8s.io/api/admission/v1,k8s.io/api/admissionregistration/v1,k8s.io/api/admissionregistration/v1beta1,k8s.io/api/authentication/v1,k8s.io/api/apps/v1,k8s.io/api/apps/v1beta1,k8s.io/api/apps/v1beta2,k8s.io/api/autoscaling/v1,k8s.io/api/batch/v1,k8s.io/api/batch/v1beta1,k8s.io/api/certificates/v1beta1,k8s.io/api/certificates/v1,k8s.io/api/core/v1,k8s.io/api/extensions/v1beta1,k8s.io/api/networking/v1,k8s.io/api/networking/v1beta1,k8s.io/api/policy/v1,k8s.io/api/policy/v1beta1,k8s.io/api/rbac/v1,k8s.io/api/rbac/v1alpha1,k8s.io/api/storage/v1,k8s.io/api/storage/v1alpha1,k8s.io/api/storage/v1beta1 \ + --input-dirs github.com/openkruise/kruise-api/apps/v1alpha1,github.com/openkruise/kruise-api/apps/pub,github.com/openkruise/kruise-api/apps/v1beta1,github.com/openkruise/kruise-api/policy/v1alpha1,k8s.io/api/admission/v1,k8s.io/api/admissionregistration/v1,k8s.io/api/admissionregistration/v1beta1,k8s.io/api/authentication/v1,k8s.io/api/apps/v1,k8s.io/api/apps/v1beta1,k8s.io/api/apps/v1beta2,k8s.io/api/autoscaling/v1,k8s.io/api/batch/v1,k8s.io/api/batch/v1beta1,k8s.io/api/certificates/v1beta1,k8s.io/api/certificates/v1,k8s.io/api/core/v1,k8s.io/api/extensions/v1beta1,k8s.io/api/networking/v1,k8s.io/api/networking/v1beta1,k8s.io/api/policy/v1,k8s.io/api/policy/v1beta1,k8s.io/api/rbac/v1,k8s.io/api/rbac/v1alpha1,k8s.io/api/storage/v1,k8s.io/api/storage/v1alpha1,k8s.io/api/storage/v1beta1 \ --output-package ./pkg/apis \ --report-filename ./pkg/apis/violation_exceptions.list \ -o $(CURRENT_DIR) @@ -72,12 +72,3 @@ gen-kruise-openapi: openapi-gen --output-package pkg/kruise/ \ --report-filename pkg/kruise/violation_exceptions.list \ -o $(CURRENT_DIR) - -.PHONY: gen-rollouts-openapi -gen-rollouts-openapi: openapi-gen - $(OPENAPI_GEN) \ - --go-header-file hack/boilerplate.go.txt \ - --input-dirs github.com/openkruise/kruise-api/rollouts/v1alpha1 \ - --output-package pkg/rollouts/ \ - --report-filename pkg/rollouts/violation_exceptions.list \ - -o $(CURRENT_DIR) diff --git a/README.md b/README.md index 3ab0c05b..8d2510c4 100644 --- a/README.md +++ b/README.md @@ -20,6 +20,25 @@ We recommend using the go types in this repo. You may serialize them directly to `kruise-api` is synced from [https://github.com/openkruise/kruise/tree/master/apis](https://github.com/openkruise/kruise/tree/master/apis). Code changes are made in that location, merged into `openkruise/kruise` and later synced here. + +### How to get it + +To get the latest version, use go1.16+ and fetch using the `go get` command. For example: + +``` +go get github.com/openkruise/kruise-api@latest +``` + +To get a specific version, use go1.11+ and fetch the desired version using the `go get` command. For example: + +``` +go get github.com/openkruise/kruise-api@v1.5.0 +``` + +### How to use it + +please refer to the [example](examples/create-update-delete-cloneset) + ## Things you should NOT do [https://github.com/openkruise/kruise/tree/master/apis](https://github.com/openkruise/kruise/tree/master/apis) is synced to here. diff --git a/addtoscheme_rollouts_v1alphal1.go b/addtoscheme_rollouts_v1alphal1.go deleted file mode 100644 index 9add2a28..00000000 --- a/addtoscheme_rollouts_v1alphal1.go +++ /dev/null @@ -1,26 +0,0 @@ -/* -Copyright 2022 The Kruise Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -package apis - -import ( - "github.com/openkruise/kruise-api/rollouts/v1alpha1" -) - -func init() { - // Register the types with the Scheme so the components can map objects to GroupVersionKinds and back - AddToSchemes = append(AddToSchemes, v1alpha1.SchemeBuilder.AddToScheme) -} diff --git a/client/clientset/versioned/clientset.go b/client/clientset/versioned/clientset.go index 715c9f3e..ba618b16 100644 --- a/client/clientset/versioned/clientset.go +++ b/client/clientset/versioned/clientset.go @@ -24,7 +24,6 @@ import ( appsv1alpha1 "github.com/openkruise/kruise-api/client/clientset/versioned/typed/apps/v1alpha1" appsv1beta1 "github.com/openkruise/kruise-api/client/clientset/versioned/typed/apps/v1beta1" policyv1alpha1 "github.com/openkruise/kruise-api/client/clientset/versioned/typed/policy/v1alpha1" - rolloutsv1alpha1 "github.com/openkruise/kruise-api/client/clientset/versioned/typed/rollouts/v1alpha1" discovery "k8s.io/client-go/discovery" rest "k8s.io/client-go/rest" flowcontrol "k8s.io/client-go/util/flowcontrol" @@ -35,17 +34,15 @@ type Interface interface { AppsV1alpha1() appsv1alpha1.AppsV1alpha1Interface AppsV1beta1() appsv1beta1.AppsV1beta1Interface PolicyV1alpha1() policyv1alpha1.PolicyV1alpha1Interface - RolloutsV1alpha1() rolloutsv1alpha1.RolloutsV1alpha1Interface } // Clientset contains the clients for groups. Each group has exactly one // version included in a Clientset. type Clientset struct { *discovery.DiscoveryClient - appsV1alpha1 *appsv1alpha1.AppsV1alpha1Client - appsV1beta1 *appsv1beta1.AppsV1beta1Client - policyV1alpha1 *policyv1alpha1.PolicyV1alpha1Client - rolloutsV1alpha1 *rolloutsv1alpha1.RolloutsV1alpha1Client + appsV1alpha1 *appsv1alpha1.AppsV1alpha1Client + appsV1beta1 *appsv1beta1.AppsV1beta1Client + policyV1alpha1 *policyv1alpha1.PolicyV1alpha1Client } // AppsV1alpha1 retrieves the AppsV1alpha1Client @@ -63,11 +60,6 @@ func (c *Clientset) PolicyV1alpha1() policyv1alpha1.PolicyV1alpha1Interface { return c.policyV1alpha1 } -// RolloutsV1alpha1 retrieves the RolloutsV1alpha1Client -func (c *Clientset) RolloutsV1alpha1() rolloutsv1alpha1.RolloutsV1alpha1Interface { - return c.rolloutsV1alpha1 -} - // Discovery retrieves the DiscoveryClient func (c *Clientset) Discovery() discovery.DiscoveryInterface { if c == nil { @@ -101,10 +93,6 @@ func NewForConfig(c *rest.Config) (*Clientset, error) { if err != nil { return nil, err } - cs.rolloutsV1alpha1, err = rolloutsv1alpha1.NewForConfig(&configShallowCopy) - if err != nil { - return nil, err - } cs.DiscoveryClient, err = discovery.NewDiscoveryClientForConfig(&configShallowCopy) if err != nil { @@ -120,7 +108,6 @@ func NewForConfigOrDie(c *rest.Config) *Clientset { cs.appsV1alpha1 = appsv1alpha1.NewForConfigOrDie(c) cs.appsV1beta1 = appsv1beta1.NewForConfigOrDie(c) cs.policyV1alpha1 = policyv1alpha1.NewForConfigOrDie(c) - cs.rolloutsV1alpha1 = rolloutsv1alpha1.NewForConfigOrDie(c) cs.DiscoveryClient = discovery.NewDiscoveryClientForConfigOrDie(c) return &cs @@ -132,7 +119,6 @@ func New(c rest.Interface) *Clientset { cs.appsV1alpha1 = appsv1alpha1.New(c) cs.appsV1beta1 = appsv1beta1.New(c) cs.policyV1alpha1 = policyv1alpha1.New(c) - cs.rolloutsV1alpha1 = rolloutsv1alpha1.New(c) cs.DiscoveryClient = discovery.NewDiscoveryClient(c) return &cs diff --git a/client/clientset/versioned/fake/clientset_generated.go b/client/clientset/versioned/fake/clientset_generated.go index b97e7a79..83b668a4 100644 --- a/client/clientset/versioned/fake/clientset_generated.go +++ b/client/clientset/versioned/fake/clientset_generated.go @@ -26,8 +26,6 @@ import ( fakeappsv1beta1 "github.com/openkruise/kruise-api/client/clientset/versioned/typed/apps/v1beta1/fake" policyv1alpha1 "github.com/openkruise/kruise-api/client/clientset/versioned/typed/policy/v1alpha1" fakepolicyv1alpha1 "github.com/openkruise/kruise-api/client/clientset/versioned/typed/policy/v1alpha1/fake" - rolloutsv1alpha1 "github.com/openkruise/kruise-api/client/clientset/versioned/typed/rollouts/v1alpha1" - fakerolloutsv1alpha1 "github.com/openkruise/kruise-api/client/clientset/versioned/typed/rollouts/v1alpha1/fake" "k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/watch" "k8s.io/client-go/discovery" @@ -99,8 +97,3 @@ func (c *Clientset) AppsV1beta1() appsv1beta1.AppsV1beta1Interface { func (c *Clientset) PolicyV1alpha1() policyv1alpha1.PolicyV1alpha1Interface { return &fakepolicyv1alpha1.FakePolicyV1alpha1{Fake: &c.Fake} } - -// RolloutsV1alpha1 retrieves the RolloutsV1alpha1Client -func (c *Clientset) RolloutsV1alpha1() rolloutsv1alpha1.RolloutsV1alpha1Interface { - return &fakerolloutsv1alpha1.FakeRolloutsV1alpha1{Fake: &c.Fake} -} diff --git a/client/clientset/versioned/fake/register.go b/client/clientset/versioned/fake/register.go index c291a28e..42d95567 100644 --- a/client/clientset/versioned/fake/register.go +++ b/client/clientset/versioned/fake/register.go @@ -22,7 +22,6 @@ import ( appsv1alpha1 "github.com/openkruise/kruise-api/apps/v1alpha1" appsv1beta1 "github.com/openkruise/kruise-api/apps/v1beta1" policyv1alpha1 "github.com/openkruise/kruise-api/policy/v1alpha1" - rolloutsv1alpha1 "github.com/openkruise/kruise-api/rollouts/v1alpha1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" schema "k8s.io/apimachinery/pkg/runtime/schema" @@ -37,7 +36,6 @@ var localSchemeBuilder = runtime.SchemeBuilder{ appsv1alpha1.AddToScheme, appsv1beta1.AddToScheme, policyv1alpha1.AddToScheme, - rolloutsv1alpha1.AddToScheme, } // AddToScheme adds all types of this clientset into the given scheme. This allows composition diff --git a/client/clientset/versioned/scheme/register.go b/client/clientset/versioned/scheme/register.go index 93f3aa93..b3629823 100644 --- a/client/clientset/versioned/scheme/register.go +++ b/client/clientset/versioned/scheme/register.go @@ -22,7 +22,6 @@ import ( appsv1alpha1 "github.com/openkruise/kruise-api/apps/v1alpha1" appsv1beta1 "github.com/openkruise/kruise-api/apps/v1beta1" policyv1alpha1 "github.com/openkruise/kruise-api/policy/v1alpha1" - rolloutsv1alpha1 "github.com/openkruise/kruise-api/rollouts/v1alpha1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" schema "k8s.io/apimachinery/pkg/runtime/schema" @@ -37,7 +36,6 @@ var localSchemeBuilder = runtime.SchemeBuilder{ appsv1alpha1.AddToScheme, appsv1beta1.AddToScheme, policyv1alpha1.AddToScheme, - rolloutsv1alpha1.AddToScheme, } // AddToScheme adds all types of this clientset into the given scheme. This allows composition diff --git a/client/clientset/versioned/typed/rollouts/v1alpha1/batchrelease.go b/client/clientset/versioned/typed/rollouts/v1alpha1/batchrelease.go deleted file mode 100644 index d92f8392..00000000 --- a/client/clientset/versioned/typed/rollouts/v1alpha1/batchrelease.go +++ /dev/null @@ -1,195 +0,0 @@ -/* -Copyright 2022 The Kruise Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package v1alpha1 - -import ( - "context" - "time" - - scheme "github.com/openkruise/kruise-api/client/clientset/versioned/scheme" - v1alpha1 "github.com/openkruise/kruise-api/rollouts/v1alpha1" - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - rest "k8s.io/client-go/rest" -) - -// BatchReleasesGetter has a method to return a BatchReleaseInterface. -// A group's client should implement this interface. -type BatchReleasesGetter interface { - BatchReleases(namespace string) BatchReleaseInterface -} - -// BatchReleaseInterface has methods to work with BatchRelease resources. -type BatchReleaseInterface interface { - Create(ctx context.Context, batchRelease *v1alpha1.BatchRelease, opts v1.CreateOptions) (*v1alpha1.BatchRelease, error) - Update(ctx context.Context, batchRelease *v1alpha1.BatchRelease, opts v1.UpdateOptions) (*v1alpha1.BatchRelease, error) - UpdateStatus(ctx context.Context, batchRelease *v1alpha1.BatchRelease, opts v1.UpdateOptions) (*v1alpha1.BatchRelease, error) - Delete(ctx context.Context, name string, opts v1.DeleteOptions) error - DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error - Get(ctx context.Context, name string, opts v1.GetOptions) (*v1alpha1.BatchRelease, error) - List(ctx context.Context, opts v1.ListOptions) (*v1alpha1.BatchReleaseList, error) - Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.BatchRelease, err error) - BatchReleaseExpansion -} - -// batchReleases implements BatchReleaseInterface -type batchReleases struct { - client rest.Interface - ns string -} - -// newBatchReleases returns a BatchReleases -func newBatchReleases(c *RolloutsV1alpha1Client, namespace string) *batchReleases { - return &batchReleases{ - client: c.RESTClient(), - ns: namespace, - } -} - -// Get takes name of the batchRelease, and returns the corresponding batchRelease object, and an error if there is any. -func (c *batchReleases) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.BatchRelease, err error) { - result = &v1alpha1.BatchRelease{} - err = c.client.Get(). - Namespace(c.ns). - Resource("batchreleases"). - Name(name). - VersionedParams(&options, scheme.ParameterCodec). - Do(ctx). - Into(result) - return -} - -// List takes label and field selectors, and returns the list of BatchReleases that match those selectors. -func (c *batchReleases) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.BatchReleaseList, err error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - result = &v1alpha1.BatchReleaseList{} - err = c.client.Get(). - Namespace(c.ns). - Resource("batchreleases"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Do(ctx). - Into(result) - return -} - -// Watch returns a watch.Interface that watches the requested batchReleases. -func (c *batchReleases) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - opts.Watch = true - return c.client.Get(). - Namespace(c.ns). - Resource("batchreleases"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Watch(ctx) -} - -// Create takes the representation of a batchRelease and creates it. Returns the server's representation of the batchRelease, and an error, if there is any. -func (c *batchReleases) Create(ctx context.Context, batchRelease *v1alpha1.BatchRelease, opts v1.CreateOptions) (result *v1alpha1.BatchRelease, err error) { - result = &v1alpha1.BatchRelease{} - err = c.client.Post(). - Namespace(c.ns). - Resource("batchreleases"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(batchRelease). - Do(ctx). - Into(result) - return -} - -// Update takes the representation of a batchRelease and updates it. Returns the server's representation of the batchRelease, and an error, if there is any. -func (c *batchReleases) Update(ctx context.Context, batchRelease *v1alpha1.BatchRelease, opts v1.UpdateOptions) (result *v1alpha1.BatchRelease, err error) { - result = &v1alpha1.BatchRelease{} - err = c.client.Put(). - Namespace(c.ns). - Resource("batchreleases"). - Name(batchRelease.Name). - VersionedParams(&opts, scheme.ParameterCodec). - Body(batchRelease). - Do(ctx). - Into(result) - return -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *batchReleases) UpdateStatus(ctx context.Context, batchRelease *v1alpha1.BatchRelease, opts v1.UpdateOptions) (result *v1alpha1.BatchRelease, err error) { - result = &v1alpha1.BatchRelease{} - err = c.client.Put(). - Namespace(c.ns). - Resource("batchreleases"). - Name(batchRelease.Name). - SubResource("status"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(batchRelease). - Do(ctx). - Into(result) - return -} - -// Delete takes name of the batchRelease and deletes it. Returns an error if one occurs. -func (c *batchReleases) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - return c.client.Delete(). - Namespace(c.ns). - Resource("batchreleases"). - Name(name). - Body(&opts). - Do(ctx). - Error() -} - -// DeleteCollection deletes a collection of objects. -func (c *batchReleases) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - var timeout time.Duration - if listOpts.TimeoutSeconds != nil { - timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second - } - return c.client.Delete(). - Namespace(c.ns). - Resource("batchreleases"). - VersionedParams(&listOpts, scheme.ParameterCodec). - Timeout(timeout). - Body(&opts). - Do(ctx). - Error() -} - -// Patch applies the patch and returns the patched batchRelease. -func (c *batchReleases) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.BatchRelease, err error) { - result = &v1alpha1.BatchRelease{} - err = c.client.Patch(pt). - Namespace(c.ns). - Resource("batchreleases"). - Name(name). - SubResource(subresources...). - VersionedParams(&opts, scheme.ParameterCodec). - Body(data). - Do(ctx). - Into(result) - return -} diff --git a/client/clientset/versioned/typed/rollouts/v1alpha1/doc.go b/client/clientset/versioned/typed/rollouts/v1alpha1/doc.go deleted file mode 100644 index bf7e7f46..00000000 --- a/client/clientset/versioned/typed/rollouts/v1alpha1/doc.go +++ /dev/null @@ -1,20 +0,0 @@ -/* -Copyright 2022 The Kruise Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -// This package has the automatically generated typed clients. -package v1alpha1 diff --git a/client/clientset/versioned/typed/rollouts/v1alpha1/fake/doc.go b/client/clientset/versioned/typed/rollouts/v1alpha1/fake/doc.go deleted file mode 100644 index d3b2e8a4..00000000 --- a/client/clientset/versioned/typed/rollouts/v1alpha1/fake/doc.go +++ /dev/null @@ -1,20 +0,0 @@ -/* -Copyright 2022 The Kruise Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -// Package fake has the automatically generated clients. -package fake diff --git a/client/clientset/versioned/typed/rollouts/v1alpha1/fake/fake_batchrelease.go b/client/clientset/versioned/typed/rollouts/v1alpha1/fake/fake_batchrelease.go deleted file mode 100644 index 29b3f914..00000000 --- a/client/clientset/versioned/typed/rollouts/v1alpha1/fake/fake_batchrelease.go +++ /dev/null @@ -1,142 +0,0 @@ -/* -Copyright 2022 The Kruise Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package fake - -import ( - "context" - - v1alpha1 "github.com/openkruise/kruise-api/rollouts/v1alpha1" - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - schema "k8s.io/apimachinery/pkg/runtime/schema" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" -) - -// FakeBatchReleases implements BatchReleaseInterface -type FakeBatchReleases struct { - Fake *FakeRolloutsV1alpha1 - ns string -} - -var batchreleasesResource = schema.GroupVersionResource{Group: "rollouts.kruise.io", Version: "v1alpha1", Resource: "batchreleases"} - -var batchreleasesKind = schema.GroupVersionKind{Group: "rollouts.kruise.io", Version: "v1alpha1", Kind: "BatchRelease"} - -// Get takes name of the batchRelease, and returns the corresponding batchRelease object, and an error if there is any. -func (c *FakeBatchReleases) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.BatchRelease, err error) { - obj, err := c.Fake. - Invokes(testing.NewGetAction(batchreleasesResource, c.ns, name), &v1alpha1.BatchRelease{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.BatchRelease), err -} - -// List takes label and field selectors, and returns the list of BatchReleases that match those selectors. -func (c *FakeBatchReleases) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.BatchReleaseList, err error) { - obj, err := c.Fake. - Invokes(testing.NewListAction(batchreleasesResource, batchreleasesKind, c.ns, opts), &v1alpha1.BatchReleaseList{}) - - if obj == nil { - return nil, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1alpha1.BatchReleaseList{ListMeta: obj.(*v1alpha1.BatchReleaseList).ListMeta} - for _, item := range obj.(*v1alpha1.BatchReleaseList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested batchReleases. -func (c *FakeBatchReleases) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewWatchAction(batchreleasesResource, c.ns, opts)) - -} - -// Create takes the representation of a batchRelease and creates it. Returns the server's representation of the batchRelease, and an error, if there is any. -func (c *FakeBatchReleases) Create(ctx context.Context, batchRelease *v1alpha1.BatchRelease, opts v1.CreateOptions) (result *v1alpha1.BatchRelease, err error) { - obj, err := c.Fake. - Invokes(testing.NewCreateAction(batchreleasesResource, c.ns, batchRelease), &v1alpha1.BatchRelease{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.BatchRelease), err -} - -// Update takes the representation of a batchRelease and updates it. Returns the server's representation of the batchRelease, and an error, if there is any. -func (c *FakeBatchReleases) Update(ctx context.Context, batchRelease *v1alpha1.BatchRelease, opts v1.UpdateOptions) (result *v1alpha1.BatchRelease, err error) { - obj, err := c.Fake. - Invokes(testing.NewUpdateAction(batchreleasesResource, c.ns, batchRelease), &v1alpha1.BatchRelease{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.BatchRelease), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeBatchReleases) UpdateStatus(ctx context.Context, batchRelease *v1alpha1.BatchRelease, opts v1.UpdateOptions) (*v1alpha1.BatchRelease, error) { - obj, err := c.Fake. - Invokes(testing.NewUpdateSubresourceAction(batchreleasesResource, "status", c.ns, batchRelease), &v1alpha1.BatchRelease{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.BatchRelease), err -} - -// Delete takes name of the batchRelease and deletes it. Returns an error if one occurs. -func (c *FakeBatchReleases) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewDeleteAction(batchreleasesResource, c.ns, name), &v1alpha1.BatchRelease{}) - - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeBatchReleases) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - action := testing.NewDeleteCollectionAction(batchreleasesResource, c.ns, listOpts) - - _, err := c.Fake.Invokes(action, &v1alpha1.BatchReleaseList{}) - return err -} - -// Patch applies the patch and returns the patched batchRelease. -func (c *FakeBatchReleases) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.BatchRelease, err error) { - obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceAction(batchreleasesResource, c.ns, name, pt, data, subresources...), &v1alpha1.BatchRelease{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.BatchRelease), err -} diff --git a/client/clientset/versioned/typed/rollouts/v1alpha1/fake/fake_rollout.go b/client/clientset/versioned/typed/rollouts/v1alpha1/fake/fake_rollout.go deleted file mode 100644 index 09322949..00000000 --- a/client/clientset/versioned/typed/rollouts/v1alpha1/fake/fake_rollout.go +++ /dev/null @@ -1,142 +0,0 @@ -/* -Copyright 2022 The Kruise Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package fake - -import ( - "context" - - v1alpha1 "github.com/openkruise/kruise-api/rollouts/v1alpha1" - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - schema "k8s.io/apimachinery/pkg/runtime/schema" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" -) - -// FakeRollouts implements RolloutInterface -type FakeRollouts struct { - Fake *FakeRolloutsV1alpha1 - ns string -} - -var rolloutsResource = schema.GroupVersionResource{Group: "rollouts.kruise.io", Version: "v1alpha1", Resource: "rollouts"} - -var rolloutsKind = schema.GroupVersionKind{Group: "rollouts.kruise.io", Version: "v1alpha1", Kind: "Rollout"} - -// Get takes name of the rollout, and returns the corresponding rollout object, and an error if there is any. -func (c *FakeRollouts) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.Rollout, err error) { - obj, err := c.Fake. - Invokes(testing.NewGetAction(rolloutsResource, c.ns, name), &v1alpha1.Rollout{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.Rollout), err -} - -// List takes label and field selectors, and returns the list of Rollouts that match those selectors. -func (c *FakeRollouts) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.RolloutList, err error) { - obj, err := c.Fake. - Invokes(testing.NewListAction(rolloutsResource, rolloutsKind, c.ns, opts), &v1alpha1.RolloutList{}) - - if obj == nil { - return nil, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1alpha1.RolloutList{ListMeta: obj.(*v1alpha1.RolloutList).ListMeta} - for _, item := range obj.(*v1alpha1.RolloutList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested rollouts. -func (c *FakeRollouts) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewWatchAction(rolloutsResource, c.ns, opts)) - -} - -// Create takes the representation of a rollout and creates it. Returns the server's representation of the rollout, and an error, if there is any. -func (c *FakeRollouts) Create(ctx context.Context, rollout *v1alpha1.Rollout, opts v1.CreateOptions) (result *v1alpha1.Rollout, err error) { - obj, err := c.Fake. - Invokes(testing.NewCreateAction(rolloutsResource, c.ns, rollout), &v1alpha1.Rollout{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.Rollout), err -} - -// Update takes the representation of a rollout and updates it. Returns the server's representation of the rollout, and an error, if there is any. -func (c *FakeRollouts) Update(ctx context.Context, rollout *v1alpha1.Rollout, opts v1.UpdateOptions) (result *v1alpha1.Rollout, err error) { - obj, err := c.Fake. - Invokes(testing.NewUpdateAction(rolloutsResource, c.ns, rollout), &v1alpha1.Rollout{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.Rollout), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeRollouts) UpdateStatus(ctx context.Context, rollout *v1alpha1.Rollout, opts v1.UpdateOptions) (*v1alpha1.Rollout, error) { - obj, err := c.Fake. - Invokes(testing.NewUpdateSubresourceAction(rolloutsResource, "status", c.ns, rollout), &v1alpha1.Rollout{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.Rollout), err -} - -// Delete takes name of the rollout and deletes it. Returns an error if one occurs. -func (c *FakeRollouts) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewDeleteAction(rolloutsResource, c.ns, name), &v1alpha1.Rollout{}) - - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeRollouts) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - action := testing.NewDeleteCollectionAction(rolloutsResource, c.ns, listOpts) - - _, err := c.Fake.Invokes(action, &v1alpha1.RolloutList{}) - return err -} - -// Patch applies the patch and returns the patched rollout. -func (c *FakeRollouts) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.Rollout, err error) { - obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceAction(rolloutsResource, c.ns, name, pt, data, subresources...), &v1alpha1.Rollout{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.Rollout), err -} diff --git a/client/clientset/versioned/typed/rollouts/v1alpha1/fake/fake_rollouthistory.go b/client/clientset/versioned/typed/rollouts/v1alpha1/fake/fake_rollouthistory.go deleted file mode 100644 index 5f72fb97..00000000 --- a/client/clientset/versioned/typed/rollouts/v1alpha1/fake/fake_rollouthistory.go +++ /dev/null @@ -1,142 +0,0 @@ -/* -Copyright 2022 The Kruise Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package fake - -import ( - "context" - - v1alpha1 "github.com/openkruise/kruise-api/rollouts/v1alpha1" - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - schema "k8s.io/apimachinery/pkg/runtime/schema" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" -) - -// FakeRolloutHistories implements RolloutHistoryInterface -type FakeRolloutHistories struct { - Fake *FakeRolloutsV1alpha1 - ns string -} - -var rollouthistoriesResource = schema.GroupVersionResource{Group: "rollouts.kruise.io", Version: "v1alpha1", Resource: "rollouthistories"} - -var rollouthistoriesKind = schema.GroupVersionKind{Group: "rollouts.kruise.io", Version: "v1alpha1", Kind: "RolloutHistory"} - -// Get takes name of the rolloutHistory, and returns the corresponding rolloutHistory object, and an error if there is any. -func (c *FakeRolloutHistories) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.RolloutHistory, err error) { - obj, err := c.Fake. - Invokes(testing.NewGetAction(rollouthistoriesResource, c.ns, name), &v1alpha1.RolloutHistory{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.RolloutHistory), err -} - -// List takes label and field selectors, and returns the list of RolloutHistories that match those selectors. -func (c *FakeRolloutHistories) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.RolloutHistoryList, err error) { - obj, err := c.Fake. - Invokes(testing.NewListAction(rollouthistoriesResource, rollouthistoriesKind, c.ns, opts), &v1alpha1.RolloutHistoryList{}) - - if obj == nil { - return nil, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1alpha1.RolloutHistoryList{ListMeta: obj.(*v1alpha1.RolloutHistoryList).ListMeta} - for _, item := range obj.(*v1alpha1.RolloutHistoryList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested rolloutHistories. -func (c *FakeRolloutHistories) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewWatchAction(rollouthistoriesResource, c.ns, opts)) - -} - -// Create takes the representation of a rolloutHistory and creates it. Returns the server's representation of the rolloutHistory, and an error, if there is any. -func (c *FakeRolloutHistories) Create(ctx context.Context, rolloutHistory *v1alpha1.RolloutHistory, opts v1.CreateOptions) (result *v1alpha1.RolloutHistory, err error) { - obj, err := c.Fake. - Invokes(testing.NewCreateAction(rollouthistoriesResource, c.ns, rolloutHistory), &v1alpha1.RolloutHistory{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.RolloutHistory), err -} - -// Update takes the representation of a rolloutHistory and updates it. Returns the server's representation of the rolloutHistory, and an error, if there is any. -func (c *FakeRolloutHistories) Update(ctx context.Context, rolloutHistory *v1alpha1.RolloutHistory, opts v1.UpdateOptions) (result *v1alpha1.RolloutHistory, err error) { - obj, err := c.Fake. - Invokes(testing.NewUpdateAction(rollouthistoriesResource, c.ns, rolloutHistory), &v1alpha1.RolloutHistory{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.RolloutHistory), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeRolloutHistories) UpdateStatus(ctx context.Context, rolloutHistory *v1alpha1.RolloutHistory, opts v1.UpdateOptions) (*v1alpha1.RolloutHistory, error) { - obj, err := c.Fake. - Invokes(testing.NewUpdateSubresourceAction(rollouthistoriesResource, "status", c.ns, rolloutHistory), &v1alpha1.RolloutHistory{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.RolloutHistory), err -} - -// Delete takes name of the rolloutHistory and deletes it. Returns an error if one occurs. -func (c *FakeRolloutHistories) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewDeleteAction(rollouthistoriesResource, c.ns, name), &v1alpha1.RolloutHistory{}) - - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeRolloutHistories) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - action := testing.NewDeleteCollectionAction(rollouthistoriesResource, c.ns, listOpts) - - _, err := c.Fake.Invokes(action, &v1alpha1.RolloutHistoryList{}) - return err -} - -// Patch applies the patch and returns the patched rolloutHistory. -func (c *FakeRolloutHistories) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.RolloutHistory, err error) { - obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceAction(rollouthistoriesResource, c.ns, name, pt, data, subresources...), &v1alpha1.RolloutHistory{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.RolloutHistory), err -} diff --git a/client/clientset/versioned/typed/rollouts/v1alpha1/fake/fake_rollouts_client.go b/client/clientset/versioned/typed/rollouts/v1alpha1/fake/fake_rollouts_client.go deleted file mode 100644 index 30baf2e9..00000000 --- a/client/clientset/versioned/typed/rollouts/v1alpha1/fake/fake_rollouts_client.go +++ /dev/null @@ -1,48 +0,0 @@ -/* -Copyright 2022 The Kruise Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package fake - -import ( - v1alpha1 "github.com/openkruise/kruise-api/client/clientset/versioned/typed/rollouts/v1alpha1" - rest "k8s.io/client-go/rest" - testing "k8s.io/client-go/testing" -) - -type FakeRolloutsV1alpha1 struct { - *testing.Fake -} - -func (c *FakeRolloutsV1alpha1) BatchReleases(namespace string) v1alpha1.BatchReleaseInterface { - return &FakeBatchReleases{c, namespace} -} - -func (c *FakeRolloutsV1alpha1) Rollouts(namespace string) v1alpha1.RolloutInterface { - return &FakeRollouts{c, namespace} -} - -func (c *FakeRolloutsV1alpha1) RolloutHistories(namespace string) v1alpha1.RolloutHistoryInterface { - return &FakeRolloutHistories{c, namespace} -} - -// RESTClient returns a RESTClient that is used to communicate -// with API server by this client implementation. -func (c *FakeRolloutsV1alpha1) RESTClient() rest.Interface { - var ret *rest.RESTClient - return ret -} diff --git a/client/clientset/versioned/typed/rollouts/v1alpha1/generated_expansion.go b/client/clientset/versioned/typed/rollouts/v1alpha1/generated_expansion.go deleted file mode 100644 index f5b88991..00000000 --- a/client/clientset/versioned/typed/rollouts/v1alpha1/generated_expansion.go +++ /dev/null @@ -1,25 +0,0 @@ -/* -Copyright 2022 The Kruise Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package v1alpha1 - -type BatchReleaseExpansion interface{} - -type RolloutExpansion interface{} - -type RolloutHistoryExpansion interface{} diff --git a/client/clientset/versioned/typed/rollouts/v1alpha1/rollout.go b/client/clientset/versioned/typed/rollouts/v1alpha1/rollout.go deleted file mode 100644 index 93c13113..00000000 --- a/client/clientset/versioned/typed/rollouts/v1alpha1/rollout.go +++ /dev/null @@ -1,195 +0,0 @@ -/* -Copyright 2022 The Kruise Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package v1alpha1 - -import ( - "context" - "time" - - scheme "github.com/openkruise/kruise-api/client/clientset/versioned/scheme" - v1alpha1 "github.com/openkruise/kruise-api/rollouts/v1alpha1" - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - rest "k8s.io/client-go/rest" -) - -// RolloutsGetter has a method to return a RolloutInterface. -// A group's client should implement this interface. -type RolloutsGetter interface { - Rollouts(namespace string) RolloutInterface -} - -// RolloutInterface has methods to work with Rollout resources. -type RolloutInterface interface { - Create(ctx context.Context, rollout *v1alpha1.Rollout, opts v1.CreateOptions) (*v1alpha1.Rollout, error) - Update(ctx context.Context, rollout *v1alpha1.Rollout, opts v1.UpdateOptions) (*v1alpha1.Rollout, error) - UpdateStatus(ctx context.Context, rollout *v1alpha1.Rollout, opts v1.UpdateOptions) (*v1alpha1.Rollout, error) - Delete(ctx context.Context, name string, opts v1.DeleteOptions) error - DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error - Get(ctx context.Context, name string, opts v1.GetOptions) (*v1alpha1.Rollout, error) - List(ctx context.Context, opts v1.ListOptions) (*v1alpha1.RolloutList, error) - Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.Rollout, err error) - RolloutExpansion -} - -// rollouts implements RolloutInterface -type rollouts struct { - client rest.Interface - ns string -} - -// newRollouts returns a Rollouts -func newRollouts(c *RolloutsV1alpha1Client, namespace string) *rollouts { - return &rollouts{ - client: c.RESTClient(), - ns: namespace, - } -} - -// Get takes name of the rollout, and returns the corresponding rollout object, and an error if there is any. -func (c *rollouts) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.Rollout, err error) { - result = &v1alpha1.Rollout{} - err = c.client.Get(). - Namespace(c.ns). - Resource("rollouts"). - Name(name). - VersionedParams(&options, scheme.ParameterCodec). - Do(ctx). - Into(result) - return -} - -// List takes label and field selectors, and returns the list of Rollouts that match those selectors. -func (c *rollouts) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.RolloutList, err error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - result = &v1alpha1.RolloutList{} - err = c.client.Get(). - Namespace(c.ns). - Resource("rollouts"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Do(ctx). - Into(result) - return -} - -// Watch returns a watch.Interface that watches the requested rollouts. -func (c *rollouts) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - opts.Watch = true - return c.client.Get(). - Namespace(c.ns). - Resource("rollouts"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Watch(ctx) -} - -// Create takes the representation of a rollout and creates it. Returns the server's representation of the rollout, and an error, if there is any. -func (c *rollouts) Create(ctx context.Context, rollout *v1alpha1.Rollout, opts v1.CreateOptions) (result *v1alpha1.Rollout, err error) { - result = &v1alpha1.Rollout{} - err = c.client.Post(). - Namespace(c.ns). - Resource("rollouts"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(rollout). - Do(ctx). - Into(result) - return -} - -// Update takes the representation of a rollout and updates it. Returns the server's representation of the rollout, and an error, if there is any. -func (c *rollouts) Update(ctx context.Context, rollout *v1alpha1.Rollout, opts v1.UpdateOptions) (result *v1alpha1.Rollout, err error) { - result = &v1alpha1.Rollout{} - err = c.client.Put(). - Namespace(c.ns). - Resource("rollouts"). - Name(rollout.Name). - VersionedParams(&opts, scheme.ParameterCodec). - Body(rollout). - Do(ctx). - Into(result) - return -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *rollouts) UpdateStatus(ctx context.Context, rollout *v1alpha1.Rollout, opts v1.UpdateOptions) (result *v1alpha1.Rollout, err error) { - result = &v1alpha1.Rollout{} - err = c.client.Put(). - Namespace(c.ns). - Resource("rollouts"). - Name(rollout.Name). - SubResource("status"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(rollout). - Do(ctx). - Into(result) - return -} - -// Delete takes name of the rollout and deletes it. Returns an error if one occurs. -func (c *rollouts) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - return c.client.Delete(). - Namespace(c.ns). - Resource("rollouts"). - Name(name). - Body(&opts). - Do(ctx). - Error() -} - -// DeleteCollection deletes a collection of objects. -func (c *rollouts) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - var timeout time.Duration - if listOpts.TimeoutSeconds != nil { - timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second - } - return c.client.Delete(). - Namespace(c.ns). - Resource("rollouts"). - VersionedParams(&listOpts, scheme.ParameterCodec). - Timeout(timeout). - Body(&opts). - Do(ctx). - Error() -} - -// Patch applies the patch and returns the patched rollout. -func (c *rollouts) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.Rollout, err error) { - result = &v1alpha1.Rollout{} - err = c.client.Patch(pt). - Namespace(c.ns). - Resource("rollouts"). - Name(name). - SubResource(subresources...). - VersionedParams(&opts, scheme.ParameterCodec). - Body(data). - Do(ctx). - Into(result) - return -} diff --git a/client/clientset/versioned/typed/rollouts/v1alpha1/rollouthistory.go b/client/clientset/versioned/typed/rollouts/v1alpha1/rollouthistory.go deleted file mode 100644 index a6f29ac7..00000000 --- a/client/clientset/versioned/typed/rollouts/v1alpha1/rollouthistory.go +++ /dev/null @@ -1,195 +0,0 @@ -/* -Copyright 2022 The Kruise Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package v1alpha1 - -import ( - "context" - "time" - - scheme "github.com/openkruise/kruise-api/client/clientset/versioned/scheme" - v1alpha1 "github.com/openkruise/kruise-api/rollouts/v1alpha1" - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - rest "k8s.io/client-go/rest" -) - -// RolloutHistoriesGetter has a method to return a RolloutHistoryInterface. -// A group's client should implement this interface. -type RolloutHistoriesGetter interface { - RolloutHistories(namespace string) RolloutHistoryInterface -} - -// RolloutHistoryInterface has methods to work with RolloutHistory resources. -type RolloutHistoryInterface interface { - Create(ctx context.Context, rolloutHistory *v1alpha1.RolloutHistory, opts v1.CreateOptions) (*v1alpha1.RolloutHistory, error) - Update(ctx context.Context, rolloutHistory *v1alpha1.RolloutHistory, opts v1.UpdateOptions) (*v1alpha1.RolloutHistory, error) - UpdateStatus(ctx context.Context, rolloutHistory *v1alpha1.RolloutHistory, opts v1.UpdateOptions) (*v1alpha1.RolloutHistory, error) - Delete(ctx context.Context, name string, opts v1.DeleteOptions) error - DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error - Get(ctx context.Context, name string, opts v1.GetOptions) (*v1alpha1.RolloutHistory, error) - List(ctx context.Context, opts v1.ListOptions) (*v1alpha1.RolloutHistoryList, error) - Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.RolloutHistory, err error) - RolloutHistoryExpansion -} - -// rolloutHistories implements RolloutHistoryInterface -type rolloutHistories struct { - client rest.Interface - ns string -} - -// newRolloutHistories returns a RolloutHistories -func newRolloutHistories(c *RolloutsV1alpha1Client, namespace string) *rolloutHistories { - return &rolloutHistories{ - client: c.RESTClient(), - ns: namespace, - } -} - -// Get takes name of the rolloutHistory, and returns the corresponding rolloutHistory object, and an error if there is any. -func (c *rolloutHistories) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.RolloutHistory, err error) { - result = &v1alpha1.RolloutHistory{} - err = c.client.Get(). - Namespace(c.ns). - Resource("rollouthistories"). - Name(name). - VersionedParams(&options, scheme.ParameterCodec). - Do(ctx). - Into(result) - return -} - -// List takes label and field selectors, and returns the list of RolloutHistories that match those selectors. -func (c *rolloutHistories) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.RolloutHistoryList, err error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - result = &v1alpha1.RolloutHistoryList{} - err = c.client.Get(). - Namespace(c.ns). - Resource("rollouthistories"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Do(ctx). - Into(result) - return -} - -// Watch returns a watch.Interface that watches the requested rolloutHistories. -func (c *rolloutHistories) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - opts.Watch = true - return c.client.Get(). - Namespace(c.ns). - Resource("rollouthistories"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Watch(ctx) -} - -// Create takes the representation of a rolloutHistory and creates it. Returns the server's representation of the rolloutHistory, and an error, if there is any. -func (c *rolloutHistories) Create(ctx context.Context, rolloutHistory *v1alpha1.RolloutHistory, opts v1.CreateOptions) (result *v1alpha1.RolloutHistory, err error) { - result = &v1alpha1.RolloutHistory{} - err = c.client.Post(). - Namespace(c.ns). - Resource("rollouthistories"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(rolloutHistory). - Do(ctx). - Into(result) - return -} - -// Update takes the representation of a rolloutHistory and updates it. Returns the server's representation of the rolloutHistory, and an error, if there is any. -func (c *rolloutHistories) Update(ctx context.Context, rolloutHistory *v1alpha1.RolloutHistory, opts v1.UpdateOptions) (result *v1alpha1.RolloutHistory, err error) { - result = &v1alpha1.RolloutHistory{} - err = c.client.Put(). - Namespace(c.ns). - Resource("rollouthistories"). - Name(rolloutHistory.Name). - VersionedParams(&opts, scheme.ParameterCodec). - Body(rolloutHistory). - Do(ctx). - Into(result) - return -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *rolloutHistories) UpdateStatus(ctx context.Context, rolloutHistory *v1alpha1.RolloutHistory, opts v1.UpdateOptions) (result *v1alpha1.RolloutHistory, err error) { - result = &v1alpha1.RolloutHistory{} - err = c.client.Put(). - Namespace(c.ns). - Resource("rollouthistories"). - Name(rolloutHistory.Name). - SubResource("status"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(rolloutHistory). - Do(ctx). - Into(result) - return -} - -// Delete takes name of the rolloutHistory and deletes it. Returns an error if one occurs. -func (c *rolloutHistories) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - return c.client.Delete(). - Namespace(c.ns). - Resource("rollouthistories"). - Name(name). - Body(&opts). - Do(ctx). - Error() -} - -// DeleteCollection deletes a collection of objects. -func (c *rolloutHistories) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - var timeout time.Duration - if listOpts.TimeoutSeconds != nil { - timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second - } - return c.client.Delete(). - Namespace(c.ns). - Resource("rollouthistories"). - VersionedParams(&listOpts, scheme.ParameterCodec). - Timeout(timeout). - Body(&opts). - Do(ctx). - Error() -} - -// Patch applies the patch and returns the patched rolloutHistory. -func (c *rolloutHistories) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.RolloutHistory, err error) { - result = &v1alpha1.RolloutHistory{} - err = c.client.Patch(pt). - Namespace(c.ns). - Resource("rollouthistories"). - Name(name). - SubResource(subresources...). - VersionedParams(&opts, scheme.ParameterCodec). - Body(data). - Do(ctx). - Into(result) - return -} diff --git a/client/clientset/versioned/typed/rollouts/v1alpha1/rollouts_client.go b/client/clientset/versioned/typed/rollouts/v1alpha1/rollouts_client.go deleted file mode 100644 index 593ac8e2..00000000 --- a/client/clientset/versioned/typed/rollouts/v1alpha1/rollouts_client.go +++ /dev/null @@ -1,99 +0,0 @@ -/* -Copyright 2022 The Kruise Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package v1alpha1 - -import ( - "github.com/openkruise/kruise-api/client/clientset/versioned/scheme" - v1alpha1 "github.com/openkruise/kruise-api/rollouts/v1alpha1" - rest "k8s.io/client-go/rest" -) - -type RolloutsV1alpha1Interface interface { - RESTClient() rest.Interface - BatchReleasesGetter - RolloutsGetter - RolloutHistoriesGetter -} - -// RolloutsV1alpha1Client is used to interact with features provided by the rollouts.kruise.io group. -type RolloutsV1alpha1Client struct { - restClient rest.Interface -} - -func (c *RolloutsV1alpha1Client) BatchReleases(namespace string) BatchReleaseInterface { - return newBatchReleases(c, namespace) -} - -func (c *RolloutsV1alpha1Client) Rollouts(namespace string) RolloutInterface { - return newRollouts(c, namespace) -} - -func (c *RolloutsV1alpha1Client) RolloutHistories(namespace string) RolloutHistoryInterface { - return newRolloutHistories(c, namespace) -} - -// NewForConfig creates a new RolloutsV1alpha1Client for the given config. -func NewForConfig(c *rest.Config) (*RolloutsV1alpha1Client, error) { - config := *c - if err := setConfigDefaults(&config); err != nil { - return nil, err - } - client, err := rest.RESTClientFor(&config) - if err != nil { - return nil, err - } - return &RolloutsV1alpha1Client{client}, nil -} - -// NewForConfigOrDie creates a new RolloutsV1alpha1Client for the given config and -// panics if there is an error in the config. -func NewForConfigOrDie(c *rest.Config) *RolloutsV1alpha1Client { - client, err := NewForConfig(c) - if err != nil { - panic(err) - } - return client -} - -// New creates a new RolloutsV1alpha1Client for the given RESTClient. -func New(c rest.Interface) *RolloutsV1alpha1Client { - return &RolloutsV1alpha1Client{c} -} - -func setConfigDefaults(config *rest.Config) error { - gv := v1alpha1.SchemeGroupVersion - config.GroupVersion = &gv - config.APIPath = "/apis" - config.NegotiatedSerializer = scheme.Codecs.WithoutConversion() - - if config.UserAgent == "" { - config.UserAgent = rest.DefaultKubernetesUserAgent() - } - - return nil -} - -// RESTClient returns a RESTClient that is used to communicate -// with API server by this client implementation. -func (c *RolloutsV1alpha1Client) RESTClient() rest.Interface { - if c == nil { - return nil - } - return c.restClient -} diff --git a/client/informers/externalversions/factory.go b/client/informers/externalversions/factory.go index bd0f4739..3975bcde 100644 --- a/client/informers/externalversions/factory.go +++ b/client/informers/externalversions/factory.go @@ -27,7 +27,6 @@ import ( apps "github.com/openkruise/kruise-api/client/informers/externalversions/apps" internalinterfaces "github.com/openkruise/kruise-api/client/informers/externalversions/internalinterfaces" policy "github.com/openkruise/kruise-api/client/informers/externalversions/policy" - rollouts "github.com/openkruise/kruise-api/client/informers/externalversions/rollouts" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" schema "k8s.io/apimachinery/pkg/runtime/schema" @@ -176,7 +175,6 @@ type SharedInformerFactory interface { Apps() apps.Interface Policy() policy.Interface - Rollouts() rollouts.Interface } func (f *sharedInformerFactory) Apps() apps.Interface { @@ -186,7 +184,3 @@ func (f *sharedInformerFactory) Apps() apps.Interface { func (f *sharedInformerFactory) Policy() policy.Interface { return policy.New(f, f.namespace, f.tweakListOptions) } - -func (f *sharedInformerFactory) Rollouts() rollouts.Interface { - return rollouts.New(f, f.namespace, f.tweakListOptions) -} diff --git a/client/informers/externalversions/generic.go b/client/informers/externalversions/generic.go index 39938bfc..a16f625f 100644 --- a/client/informers/externalversions/generic.go +++ b/client/informers/externalversions/generic.go @@ -24,7 +24,6 @@ import ( v1alpha1 "github.com/openkruise/kruise-api/apps/v1alpha1" v1beta1 "github.com/openkruise/kruise-api/apps/v1beta1" policyv1alpha1 "github.com/openkruise/kruise-api/policy/v1alpha1" - rolloutsv1alpha1 "github.com/openkruise/kruise-api/rollouts/v1alpha1" schema "k8s.io/apimachinery/pkg/runtime/schema" cache "k8s.io/client-go/tools/cache" ) @@ -97,14 +96,6 @@ func (f *sharedInformerFactory) ForResource(resource schema.GroupVersionResource case policyv1alpha1.SchemeGroupVersion.WithResource("podunavailablebudgets"): return &genericInformer{resource: resource.GroupResource(), informer: f.Policy().V1alpha1().PodUnavailableBudgets().Informer()}, nil - // Group=rollouts.kruise.io, Version=v1alpha1 - case rolloutsv1alpha1.SchemeGroupVersion.WithResource("batchreleases"): - return &genericInformer{resource: resource.GroupResource(), informer: f.Rollouts().V1alpha1().BatchReleases().Informer()}, nil - case rolloutsv1alpha1.SchemeGroupVersion.WithResource("rollouts"): - return &genericInformer{resource: resource.GroupResource(), informer: f.Rollouts().V1alpha1().Rollouts().Informer()}, nil - case rolloutsv1alpha1.SchemeGroupVersion.WithResource("rollouthistories"): - return &genericInformer{resource: resource.GroupResource(), informer: f.Rollouts().V1alpha1().RolloutHistories().Informer()}, nil - } return nil, fmt.Errorf("no informer found for %v", resource) diff --git a/client/informers/externalversions/rollouts/interface.go b/client/informers/externalversions/rollouts/interface.go deleted file mode 100644 index 07990b72..00000000 --- a/client/informers/externalversions/rollouts/interface.go +++ /dev/null @@ -1,46 +0,0 @@ -/* -Copyright 2022 The Kruise Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by informer-gen. DO NOT EDIT. - -package rollouts - -import ( - internalinterfaces "github.com/openkruise/kruise-api/client/informers/externalversions/internalinterfaces" - v1alpha1 "github.com/openkruise/kruise-api/client/informers/externalversions/rollouts/v1alpha1" -) - -// Interface provides access to each of this group's versions. -type Interface interface { - // V1alpha1 provides access to shared informers for resources in V1alpha1. - V1alpha1() v1alpha1.Interface -} - -type group struct { - factory internalinterfaces.SharedInformerFactory - namespace string - tweakListOptions internalinterfaces.TweakListOptionsFunc -} - -// New returns a new Interface. -func New(f internalinterfaces.SharedInformerFactory, namespace string, tweakListOptions internalinterfaces.TweakListOptionsFunc) Interface { - return &group{factory: f, namespace: namespace, tweakListOptions: tweakListOptions} -} - -// V1alpha1 returns a new v1alpha1.Interface. -func (g *group) V1alpha1() v1alpha1.Interface { - return v1alpha1.New(g.factory, g.namespace, g.tweakListOptions) -} diff --git a/client/informers/externalversions/rollouts/v1alpha1/batchrelease.go b/client/informers/externalversions/rollouts/v1alpha1/batchrelease.go deleted file mode 100644 index 6af72cdd..00000000 --- a/client/informers/externalversions/rollouts/v1alpha1/batchrelease.go +++ /dev/null @@ -1,90 +0,0 @@ -/* -Copyright 2022 The Kruise Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by informer-gen. DO NOT EDIT. - -package v1alpha1 - -import ( - "context" - time "time" - - versioned "github.com/openkruise/kruise-api/client/clientset/versioned" - internalinterfaces "github.com/openkruise/kruise-api/client/informers/externalversions/internalinterfaces" - v1alpha1 "github.com/openkruise/kruise-api/client/listers/rollouts/v1alpha1" - rolloutsv1alpha1 "github.com/openkruise/kruise-api/rollouts/v1alpha1" - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - runtime "k8s.io/apimachinery/pkg/runtime" - watch "k8s.io/apimachinery/pkg/watch" - cache "k8s.io/client-go/tools/cache" -) - -// BatchReleaseInformer provides access to a shared informer and lister for -// BatchReleases. -type BatchReleaseInformer interface { - Informer() cache.SharedIndexInformer - Lister() v1alpha1.BatchReleaseLister -} - -type batchReleaseInformer struct { - factory internalinterfaces.SharedInformerFactory - tweakListOptions internalinterfaces.TweakListOptionsFunc - namespace string -} - -// NewBatchReleaseInformer constructs a new informer for BatchRelease type. -// Always prefer using an informer factory to get a shared informer instead of getting an independent -// one. This reduces memory footprint and number of connections to the server. -func NewBatchReleaseInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer { - return NewFilteredBatchReleaseInformer(client, namespace, resyncPeriod, indexers, nil) -} - -// NewFilteredBatchReleaseInformer constructs a new informer for BatchRelease type. -// Always prefer using an informer factory to get a shared informer instead of getting an independent -// one. This reduces memory footprint and number of connections to the server. -func NewFilteredBatchReleaseInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { - return cache.NewSharedIndexInformer( - &cache.ListWatch{ - ListFunc: func(options v1.ListOptions) (runtime.Object, error) { - if tweakListOptions != nil { - tweakListOptions(&options) - } - return client.RolloutsV1alpha1().BatchReleases(namespace).List(context.TODO(), options) - }, - WatchFunc: func(options v1.ListOptions) (watch.Interface, error) { - if tweakListOptions != nil { - tweakListOptions(&options) - } - return client.RolloutsV1alpha1().BatchReleases(namespace).Watch(context.TODO(), options) - }, - }, - &rolloutsv1alpha1.BatchRelease{}, - resyncPeriod, - indexers, - ) -} - -func (f *batchReleaseInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { - return NewFilteredBatchReleaseInformer(client, f.namespace, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions) -} - -func (f *batchReleaseInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&rolloutsv1alpha1.BatchRelease{}, f.defaultInformer) -} - -func (f *batchReleaseInformer) Lister() v1alpha1.BatchReleaseLister { - return v1alpha1.NewBatchReleaseLister(f.Informer().GetIndexer()) -} diff --git a/client/informers/externalversions/rollouts/v1alpha1/interface.go b/client/informers/externalversions/rollouts/v1alpha1/interface.go deleted file mode 100644 index aa1cb186..00000000 --- a/client/informers/externalversions/rollouts/v1alpha1/interface.go +++ /dev/null @@ -1,59 +0,0 @@ -/* -Copyright 2022 The Kruise Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by informer-gen. DO NOT EDIT. - -package v1alpha1 - -import ( - internalinterfaces "github.com/openkruise/kruise-api/client/informers/externalversions/internalinterfaces" -) - -// Interface provides access to all the informers in this group version. -type Interface interface { - // BatchReleases returns a BatchReleaseInformer. - BatchReleases() BatchReleaseInformer - // Rollouts returns a RolloutInformer. - Rollouts() RolloutInformer - // RolloutHistories returns a RolloutHistoryInformer. - RolloutHistories() RolloutHistoryInformer -} - -type version struct { - factory internalinterfaces.SharedInformerFactory - namespace string - tweakListOptions internalinterfaces.TweakListOptionsFunc -} - -// New returns a new Interface. -func New(f internalinterfaces.SharedInformerFactory, namespace string, tweakListOptions internalinterfaces.TweakListOptionsFunc) Interface { - return &version{factory: f, namespace: namespace, tweakListOptions: tweakListOptions} -} - -// BatchReleases returns a BatchReleaseInformer. -func (v *version) BatchReleases() BatchReleaseInformer { - return &batchReleaseInformer{factory: v.factory, namespace: v.namespace, tweakListOptions: v.tweakListOptions} -} - -// Rollouts returns a RolloutInformer. -func (v *version) Rollouts() RolloutInformer { - return &rolloutInformer{factory: v.factory, namespace: v.namespace, tweakListOptions: v.tweakListOptions} -} - -// RolloutHistories returns a RolloutHistoryInformer. -func (v *version) RolloutHistories() RolloutHistoryInformer { - return &rolloutHistoryInformer{factory: v.factory, namespace: v.namespace, tweakListOptions: v.tweakListOptions} -} diff --git a/client/informers/externalversions/rollouts/v1alpha1/rollout.go b/client/informers/externalversions/rollouts/v1alpha1/rollout.go deleted file mode 100644 index 2699aa2a..00000000 --- a/client/informers/externalversions/rollouts/v1alpha1/rollout.go +++ /dev/null @@ -1,90 +0,0 @@ -/* -Copyright 2022 The Kruise Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by informer-gen. DO NOT EDIT. - -package v1alpha1 - -import ( - "context" - time "time" - - versioned "github.com/openkruise/kruise-api/client/clientset/versioned" - internalinterfaces "github.com/openkruise/kruise-api/client/informers/externalversions/internalinterfaces" - v1alpha1 "github.com/openkruise/kruise-api/client/listers/rollouts/v1alpha1" - rolloutsv1alpha1 "github.com/openkruise/kruise-api/rollouts/v1alpha1" - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - runtime "k8s.io/apimachinery/pkg/runtime" - watch "k8s.io/apimachinery/pkg/watch" - cache "k8s.io/client-go/tools/cache" -) - -// RolloutInformer provides access to a shared informer and lister for -// Rollouts. -type RolloutInformer interface { - Informer() cache.SharedIndexInformer - Lister() v1alpha1.RolloutLister -} - -type rolloutInformer struct { - factory internalinterfaces.SharedInformerFactory - tweakListOptions internalinterfaces.TweakListOptionsFunc - namespace string -} - -// NewRolloutInformer constructs a new informer for Rollout type. -// Always prefer using an informer factory to get a shared informer instead of getting an independent -// one. This reduces memory footprint and number of connections to the server. -func NewRolloutInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer { - return NewFilteredRolloutInformer(client, namespace, resyncPeriod, indexers, nil) -} - -// NewFilteredRolloutInformer constructs a new informer for Rollout type. -// Always prefer using an informer factory to get a shared informer instead of getting an independent -// one. This reduces memory footprint and number of connections to the server. -func NewFilteredRolloutInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { - return cache.NewSharedIndexInformer( - &cache.ListWatch{ - ListFunc: func(options v1.ListOptions) (runtime.Object, error) { - if tweakListOptions != nil { - tweakListOptions(&options) - } - return client.RolloutsV1alpha1().Rollouts(namespace).List(context.TODO(), options) - }, - WatchFunc: func(options v1.ListOptions) (watch.Interface, error) { - if tweakListOptions != nil { - tweakListOptions(&options) - } - return client.RolloutsV1alpha1().Rollouts(namespace).Watch(context.TODO(), options) - }, - }, - &rolloutsv1alpha1.Rollout{}, - resyncPeriod, - indexers, - ) -} - -func (f *rolloutInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { - return NewFilteredRolloutInformer(client, f.namespace, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions) -} - -func (f *rolloutInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&rolloutsv1alpha1.Rollout{}, f.defaultInformer) -} - -func (f *rolloutInformer) Lister() v1alpha1.RolloutLister { - return v1alpha1.NewRolloutLister(f.Informer().GetIndexer()) -} diff --git a/client/informers/externalversions/rollouts/v1alpha1/rollouthistory.go b/client/informers/externalversions/rollouts/v1alpha1/rollouthistory.go deleted file mode 100644 index 9aa81f04..00000000 --- a/client/informers/externalversions/rollouts/v1alpha1/rollouthistory.go +++ /dev/null @@ -1,90 +0,0 @@ -/* -Copyright 2022 The Kruise Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by informer-gen. DO NOT EDIT. - -package v1alpha1 - -import ( - "context" - time "time" - - versioned "github.com/openkruise/kruise-api/client/clientset/versioned" - internalinterfaces "github.com/openkruise/kruise-api/client/informers/externalversions/internalinterfaces" - v1alpha1 "github.com/openkruise/kruise-api/client/listers/rollouts/v1alpha1" - rolloutsv1alpha1 "github.com/openkruise/kruise-api/rollouts/v1alpha1" - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - runtime "k8s.io/apimachinery/pkg/runtime" - watch "k8s.io/apimachinery/pkg/watch" - cache "k8s.io/client-go/tools/cache" -) - -// RolloutHistoryInformer provides access to a shared informer and lister for -// RolloutHistories. -type RolloutHistoryInformer interface { - Informer() cache.SharedIndexInformer - Lister() v1alpha1.RolloutHistoryLister -} - -type rolloutHistoryInformer struct { - factory internalinterfaces.SharedInformerFactory - tweakListOptions internalinterfaces.TweakListOptionsFunc - namespace string -} - -// NewRolloutHistoryInformer constructs a new informer for RolloutHistory type. -// Always prefer using an informer factory to get a shared informer instead of getting an independent -// one. This reduces memory footprint and number of connections to the server. -func NewRolloutHistoryInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer { - return NewFilteredRolloutHistoryInformer(client, namespace, resyncPeriod, indexers, nil) -} - -// NewFilteredRolloutHistoryInformer constructs a new informer for RolloutHistory type. -// Always prefer using an informer factory to get a shared informer instead of getting an independent -// one. This reduces memory footprint and number of connections to the server. -func NewFilteredRolloutHistoryInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { - return cache.NewSharedIndexInformer( - &cache.ListWatch{ - ListFunc: func(options v1.ListOptions) (runtime.Object, error) { - if tweakListOptions != nil { - tweakListOptions(&options) - } - return client.RolloutsV1alpha1().RolloutHistories(namespace).List(context.TODO(), options) - }, - WatchFunc: func(options v1.ListOptions) (watch.Interface, error) { - if tweakListOptions != nil { - tweakListOptions(&options) - } - return client.RolloutsV1alpha1().RolloutHistories(namespace).Watch(context.TODO(), options) - }, - }, - &rolloutsv1alpha1.RolloutHistory{}, - resyncPeriod, - indexers, - ) -} - -func (f *rolloutHistoryInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { - return NewFilteredRolloutHistoryInformer(client, f.namespace, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions) -} - -func (f *rolloutHistoryInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&rolloutsv1alpha1.RolloutHistory{}, f.defaultInformer) -} - -func (f *rolloutHistoryInformer) Lister() v1alpha1.RolloutHistoryLister { - return v1alpha1.NewRolloutHistoryLister(f.Informer().GetIndexer()) -} diff --git a/client/listers/rollouts/v1alpha1/batchrelease.go b/client/listers/rollouts/v1alpha1/batchrelease.go deleted file mode 100644 index 28244cf6..00000000 --- a/client/listers/rollouts/v1alpha1/batchrelease.go +++ /dev/null @@ -1,99 +0,0 @@ -/* -Copyright 2022 The Kruise Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by lister-gen. DO NOT EDIT. - -package v1alpha1 - -import ( - v1alpha1 "github.com/openkruise/kruise-api/rollouts/v1alpha1" - "k8s.io/apimachinery/pkg/api/errors" - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/tools/cache" -) - -// BatchReleaseLister helps list BatchReleases. -// All objects returned here must be treated as read-only. -type BatchReleaseLister interface { - // List lists all BatchReleases in the indexer. - // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1alpha1.BatchRelease, err error) - // BatchReleases returns an object that can list and get BatchReleases. - BatchReleases(namespace string) BatchReleaseNamespaceLister - BatchReleaseListerExpansion -} - -// batchReleaseLister implements the BatchReleaseLister interface. -type batchReleaseLister struct { - indexer cache.Indexer -} - -// NewBatchReleaseLister returns a new BatchReleaseLister. -func NewBatchReleaseLister(indexer cache.Indexer) BatchReleaseLister { - return &batchReleaseLister{indexer: indexer} -} - -// List lists all BatchReleases in the indexer. -func (s *batchReleaseLister) List(selector labels.Selector) (ret []*v1alpha1.BatchRelease, err error) { - err = cache.ListAll(s.indexer, selector, func(m interface{}) { - ret = append(ret, m.(*v1alpha1.BatchRelease)) - }) - return ret, err -} - -// BatchReleases returns an object that can list and get BatchReleases. -func (s *batchReleaseLister) BatchReleases(namespace string) BatchReleaseNamespaceLister { - return batchReleaseNamespaceLister{indexer: s.indexer, namespace: namespace} -} - -// BatchReleaseNamespaceLister helps list and get BatchReleases. -// All objects returned here must be treated as read-only. -type BatchReleaseNamespaceLister interface { - // List lists all BatchReleases in the indexer for a given namespace. - // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1alpha1.BatchRelease, err error) - // Get retrieves the BatchRelease from the indexer for a given namespace and name. - // Objects returned here must be treated as read-only. - Get(name string) (*v1alpha1.BatchRelease, error) - BatchReleaseNamespaceListerExpansion -} - -// batchReleaseNamespaceLister implements the BatchReleaseNamespaceLister -// interface. -type batchReleaseNamespaceLister struct { - indexer cache.Indexer - namespace string -} - -// List lists all BatchReleases in the indexer for a given namespace. -func (s batchReleaseNamespaceLister) List(selector labels.Selector) (ret []*v1alpha1.BatchRelease, err error) { - err = cache.ListAllByNamespace(s.indexer, s.namespace, selector, func(m interface{}) { - ret = append(ret, m.(*v1alpha1.BatchRelease)) - }) - return ret, err -} - -// Get retrieves the BatchRelease from the indexer for a given namespace and name. -func (s batchReleaseNamespaceLister) Get(name string) (*v1alpha1.BatchRelease, error) { - obj, exists, err := s.indexer.GetByKey(s.namespace + "/" + name) - if err != nil { - return nil, err - } - if !exists { - return nil, errors.NewNotFound(v1alpha1.Resource("batchrelease"), name) - } - return obj.(*v1alpha1.BatchRelease), nil -} diff --git a/client/listers/rollouts/v1alpha1/expansion_generated.go b/client/listers/rollouts/v1alpha1/expansion_generated.go deleted file mode 100644 index 36494d53..00000000 --- a/client/listers/rollouts/v1alpha1/expansion_generated.go +++ /dev/null @@ -1,43 +0,0 @@ -/* -Copyright 2022 The Kruise Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by lister-gen. DO NOT EDIT. - -package v1alpha1 - -// BatchReleaseListerExpansion allows custom methods to be added to -// BatchReleaseLister. -type BatchReleaseListerExpansion interface{} - -// BatchReleaseNamespaceListerExpansion allows custom methods to be added to -// BatchReleaseNamespaceLister. -type BatchReleaseNamespaceListerExpansion interface{} - -// RolloutListerExpansion allows custom methods to be added to -// RolloutLister. -type RolloutListerExpansion interface{} - -// RolloutNamespaceListerExpansion allows custom methods to be added to -// RolloutNamespaceLister. -type RolloutNamespaceListerExpansion interface{} - -// RolloutHistoryListerExpansion allows custom methods to be added to -// RolloutHistoryLister. -type RolloutHistoryListerExpansion interface{} - -// RolloutHistoryNamespaceListerExpansion allows custom methods to be added to -// RolloutHistoryNamespaceLister. -type RolloutHistoryNamespaceListerExpansion interface{} diff --git a/client/listers/rollouts/v1alpha1/rollout.go b/client/listers/rollouts/v1alpha1/rollout.go deleted file mode 100644 index 7a1e8f3b..00000000 --- a/client/listers/rollouts/v1alpha1/rollout.go +++ /dev/null @@ -1,99 +0,0 @@ -/* -Copyright 2022 The Kruise Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by lister-gen. DO NOT EDIT. - -package v1alpha1 - -import ( - v1alpha1 "github.com/openkruise/kruise-api/rollouts/v1alpha1" - "k8s.io/apimachinery/pkg/api/errors" - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/tools/cache" -) - -// RolloutLister helps list Rollouts. -// All objects returned here must be treated as read-only. -type RolloutLister interface { - // List lists all Rollouts in the indexer. - // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1alpha1.Rollout, err error) - // Rollouts returns an object that can list and get Rollouts. - Rollouts(namespace string) RolloutNamespaceLister - RolloutListerExpansion -} - -// rolloutLister implements the RolloutLister interface. -type rolloutLister struct { - indexer cache.Indexer -} - -// NewRolloutLister returns a new RolloutLister. -func NewRolloutLister(indexer cache.Indexer) RolloutLister { - return &rolloutLister{indexer: indexer} -} - -// List lists all Rollouts in the indexer. -func (s *rolloutLister) List(selector labels.Selector) (ret []*v1alpha1.Rollout, err error) { - err = cache.ListAll(s.indexer, selector, func(m interface{}) { - ret = append(ret, m.(*v1alpha1.Rollout)) - }) - return ret, err -} - -// Rollouts returns an object that can list and get Rollouts. -func (s *rolloutLister) Rollouts(namespace string) RolloutNamespaceLister { - return rolloutNamespaceLister{indexer: s.indexer, namespace: namespace} -} - -// RolloutNamespaceLister helps list and get Rollouts. -// All objects returned here must be treated as read-only. -type RolloutNamespaceLister interface { - // List lists all Rollouts in the indexer for a given namespace. - // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1alpha1.Rollout, err error) - // Get retrieves the Rollout from the indexer for a given namespace and name. - // Objects returned here must be treated as read-only. - Get(name string) (*v1alpha1.Rollout, error) - RolloutNamespaceListerExpansion -} - -// rolloutNamespaceLister implements the RolloutNamespaceLister -// interface. -type rolloutNamespaceLister struct { - indexer cache.Indexer - namespace string -} - -// List lists all Rollouts in the indexer for a given namespace. -func (s rolloutNamespaceLister) List(selector labels.Selector) (ret []*v1alpha1.Rollout, err error) { - err = cache.ListAllByNamespace(s.indexer, s.namespace, selector, func(m interface{}) { - ret = append(ret, m.(*v1alpha1.Rollout)) - }) - return ret, err -} - -// Get retrieves the Rollout from the indexer for a given namespace and name. -func (s rolloutNamespaceLister) Get(name string) (*v1alpha1.Rollout, error) { - obj, exists, err := s.indexer.GetByKey(s.namespace + "/" + name) - if err != nil { - return nil, err - } - if !exists { - return nil, errors.NewNotFound(v1alpha1.Resource("rollout"), name) - } - return obj.(*v1alpha1.Rollout), nil -} diff --git a/client/listers/rollouts/v1alpha1/rollouthistory.go b/client/listers/rollouts/v1alpha1/rollouthistory.go deleted file mode 100644 index 0358cfcf..00000000 --- a/client/listers/rollouts/v1alpha1/rollouthistory.go +++ /dev/null @@ -1,99 +0,0 @@ -/* -Copyright 2022 The Kruise Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by lister-gen. DO NOT EDIT. - -package v1alpha1 - -import ( - v1alpha1 "github.com/openkruise/kruise-api/rollouts/v1alpha1" - "k8s.io/apimachinery/pkg/api/errors" - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/tools/cache" -) - -// RolloutHistoryLister helps list RolloutHistories. -// All objects returned here must be treated as read-only. -type RolloutHistoryLister interface { - // List lists all RolloutHistories in the indexer. - // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1alpha1.RolloutHistory, err error) - // RolloutHistories returns an object that can list and get RolloutHistories. - RolloutHistories(namespace string) RolloutHistoryNamespaceLister - RolloutHistoryListerExpansion -} - -// rolloutHistoryLister implements the RolloutHistoryLister interface. -type rolloutHistoryLister struct { - indexer cache.Indexer -} - -// NewRolloutHistoryLister returns a new RolloutHistoryLister. -func NewRolloutHistoryLister(indexer cache.Indexer) RolloutHistoryLister { - return &rolloutHistoryLister{indexer: indexer} -} - -// List lists all RolloutHistories in the indexer. -func (s *rolloutHistoryLister) List(selector labels.Selector) (ret []*v1alpha1.RolloutHistory, err error) { - err = cache.ListAll(s.indexer, selector, func(m interface{}) { - ret = append(ret, m.(*v1alpha1.RolloutHistory)) - }) - return ret, err -} - -// RolloutHistories returns an object that can list and get RolloutHistories. -func (s *rolloutHistoryLister) RolloutHistories(namespace string) RolloutHistoryNamespaceLister { - return rolloutHistoryNamespaceLister{indexer: s.indexer, namespace: namespace} -} - -// RolloutHistoryNamespaceLister helps list and get RolloutHistories. -// All objects returned here must be treated as read-only. -type RolloutHistoryNamespaceLister interface { - // List lists all RolloutHistories in the indexer for a given namespace. - // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1alpha1.RolloutHistory, err error) - // Get retrieves the RolloutHistory from the indexer for a given namespace and name. - // Objects returned here must be treated as read-only. - Get(name string) (*v1alpha1.RolloutHistory, error) - RolloutHistoryNamespaceListerExpansion -} - -// rolloutHistoryNamespaceLister implements the RolloutHistoryNamespaceLister -// interface. -type rolloutHistoryNamespaceLister struct { - indexer cache.Indexer - namespace string -} - -// List lists all RolloutHistories in the indexer for a given namespace. -func (s rolloutHistoryNamespaceLister) List(selector labels.Selector) (ret []*v1alpha1.RolloutHistory, err error) { - err = cache.ListAllByNamespace(s.indexer, s.namespace, selector, func(m interface{}) { - ret = append(ret, m.(*v1alpha1.RolloutHistory)) - }) - return ret, err -} - -// Get retrieves the RolloutHistory from the indexer for a given namespace and name. -func (s rolloutHistoryNamespaceLister) Get(name string) (*v1alpha1.RolloutHistory, error) { - obj, exists, err := s.indexer.GetByKey(s.namespace + "/" + name) - if err != nil { - return nil, err - } - if !exists { - return nil, errors.NewNotFound(v1alpha1.Resource("rollouthistory"), name) - } - return obj.(*v1alpha1.RolloutHistory), nil -} diff --git a/cmd/gen-schema/main.go b/cmd/gen-schema/main.go index 1c19749c..9a73f0be 100644 --- a/cmd/gen-schema/main.go +++ b/cmd/gen-schema/main.go @@ -17,7 +17,6 @@ import ( "github.com/openkruise/kruise-api/pkg/apis" "github.com/openkruise/kruise-api/pkg/kruise" - "github.com/openkruise/kruise-api/pkg/rollouts" ) var K8SVersions = []int{18, 21, 24} @@ -69,9 +68,8 @@ func generateOpenApiSchema(outputPath string, GetOpenAPIDefinitions func(ref com // kruise.io group. Kustomize does not care about the name as long as all the links match up and the `x-kubernetes-group-version-kind` // metadata is correct var kruiseMappings = map[string]string{ - "github.com/openkruise/kruise-api/apps": "apps.kruise.io", - "github.com/openkruise/kruise-api/rollouts": "rollouts.kruise.io", - "github.com/openkruise/kruise-api/policy": "policy.kruise.io", + "github.com/openkruise/kruise-api/apps": "apps.kruise.io", + "github.com/openkruise/kruise-api/policy": "policy.kruise.io", } defMap := GetOpenAPIDefinitions(func(path string) spec.Ref { @@ -193,8 +191,6 @@ func downloadK8SDefinitions(version uint, k8sGvkMapping *k8sGvkMapping) error { func main() { err := generateOpenApiSchema("schema/openkruise_kruise_kustomize_schema.json", kruise.GetOpenAPIDefinitions) checkErr(err) - err = generateOpenApiSchema("schema/openkruise_rollouts_kustomize_schema.json", rollouts.GetOpenAPIDefinitions) - checkErr(err) err = generateOpenApiSchema("schema/openkruise_all_k8s_kustomize_schema.json", apis.GetOpenAPIDefinitions) checkErr(err) } diff --git a/examples/create-update-delete-cloneset/main.go b/examples/create-update-delete-cloneset/main.go new file mode 100644 index 00000000..be374e69 --- /dev/null +++ b/examples/create-update-delete-cloneset/main.go @@ -0,0 +1,81 @@ +package main + +import ( + "context" + "flag" + "fmt" + appsv1alpha1 "github.com/openkruise/kruise-api/apps/v1alpha1" + kruiseclient "github.com/openkruise/kruise-api/client/clientset/versioned" + apiv1 "k8s.io/api/core/v1" + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + "k8s.io/client-go/tools/clientcmd" + "k8s.io/client-go/util/homedir" + "path/filepath" +) + +func main() { + var kubeconfig *string + if home := homedir.HomeDir(); home != "" { + kubeconfig = flag.String("kubeconfig", filepath.Join(home, ".kube", "config"), "(optional) absolute path to the kubeconfig file") + } else { + kubeconfig = flag.String("kubeconfig", "", "absolute path to the kubeconfig file") + } + flag.Parse() + + config, err := clientcmd.BuildConfigFromFlags("", *kubeconfig) + if err != nil { + panic(err) + } + + clientset, err := kruiseclient.NewForConfig(config) + if err != nil { + panic(err) + } + + client := clientset.AppsV1alpha1().CloneSets("default") + + rollout := appsv1alpha1.CloneSet{ + ObjectMeta: metav1.ObjectMeta{ + Name: "demo-rollout", + }, + + Spec: appsv1alpha1.CloneSetSpec{ + Replicas: int32Ptr(2), + Selector: &metav1.LabelSelector{ + MatchLabels: map[string]string{ + "app": "demo", + }, + }, + Template: apiv1.PodTemplateSpec{ + ObjectMeta: metav1.ObjectMeta{ + Labels: map[string]string{ + "app": "demo", + }, + }, + Spec: apiv1.PodSpec{ + Containers: []apiv1.Container{ + { + Name: "web", + Image: "nginx:1.12", + Ports: []apiv1.ContainerPort{ + { + Name: "http", + Protocol: apiv1.ProtocolTCP, + ContainerPort: 80, + }, + }, + }, + }, + }, + }, + }, + } + result, err := client.Create(context.TODO(), &rollout, metav1.CreateOptions{}) + if err != nil { + panic(err) + } + fmt.Printf("Created rollout %q.\n", result.GetObjectMeta().GetName()) + +} + +func int32Ptr(i int32) *int32 { return &i } diff --git a/go.mod b/go.mod index 581d8ae8..341d4af9 100644 --- a/go.mod +++ b/go.mod @@ -10,7 +10,6 @@ require ( k8s.io/client-go v0.22.6 k8s.io/code-generator v0.22.6 k8s.io/kube-openapi v0.0.0-20211109043538-20434351676c - sigs.k8s.io/gateway-api v0.4.3 ) require ( diff --git a/go.sum b/go.sum index ed217071..e1903aef 100644 --- a/go.sum +++ b/go.sum @@ -13,11 +13,6 @@ cloud.google.com/go v0.56.0/go.mod h1:jr7tqZxxKOVYizybht9+26Z/gUq7tiRzu+ACVAMbKV cloud.google.com/go v0.57.0/go.mod h1:oXiQ6Rzq3RAkkY7N6t3TcE6jE+CIBBbA36lwQ1JyzZs= cloud.google.com/go v0.62.0/go.mod h1:jmCYTdRCQuc1PHIIJ/maLInMho30T/Y0M4hTdTShOYc= cloud.google.com/go v0.65.0/go.mod h1:O5N8zS7uWy9vkA9vayVHs65eM1ubvY4h553ofrNHObY= -cloud.google.com/go v0.72.0/go.mod h1:M+5Vjvlc2wnp6tjzE102Dw08nGShTscUx2nZMufOKPI= -cloud.google.com/go v0.74.0/go.mod h1:VV1xSbzvo+9QJOxLDaJfTjx5e+MePCpCWwvftOeQmWk= -cloud.google.com/go v0.78.0/go.mod h1:QjdrLG0uq+YwhjoVOLsS1t7TW8fs36kLs4XO5R5ECHg= -cloud.google.com/go v0.79.0/go.mod h1:3bzgcEeQlzbuEAYu4mrWhKqWjmpprinYgKJLgKHnbb8= -cloud.google.com/go v0.81.0/go.mod h1:mk/AM35KwGk/Nm2YSeZbxXdrNK3KZOYHmLkOqC2V6E0= cloud.google.com/go/bigquery v1.0.1/go.mod h1:i/xbL2UlR5RvWAURpBYZTtm/cXjCha9lbfbpx4poX+o= cloud.google.com/go/bigquery v1.3.0/go.mod h1:PjpwJnslEMmckchkHFfq+HTD2DmtT67aNFKH1/VBDHE= cloud.google.com/go/bigquery v1.4.0/go.mod h1:S8dzgnTigyfTmLBfrtrhyYhwRxG72rYxvftPBK2Dvzc= @@ -26,7 +21,6 @@ cloud.google.com/go/bigquery v1.7.0/go.mod h1://okPTzCYNXSlb24MZs83e2Do+h+VXtc4g cloud.google.com/go/bigquery v1.8.0/go.mod h1:J5hqkt3O0uAFnINi6JXValWIb1v0goeZM77hZzJN/fQ= cloud.google.com/go/datastore v1.0.0/go.mod h1:LXYbyblFSglQ5pkeyhO+Qmw7ukd3C+pD7TKLgZqpHYE= cloud.google.com/go/datastore v1.1.0/go.mod h1:umbIZjpQpHh4hmRpGhH4tLFup+FVzqBi1b3c64qFpCk= -cloud.google.com/go/firestore v1.1.0/go.mod h1:ulACoGHTpvq5r8rxGJ4ddJZBZqakUQqClKRT5SZwBmk= cloud.google.com/go/pubsub v1.0.1/go.mod h1:R0Gpsv3s54REJCy4fxDixWD93lHJMoZTyQ2kNxGRt3I= cloud.google.com/go/pubsub v1.1.0/go.mod h1:EwwdRX2sKPjnvnqCa270oGRyludottCI76h+R3AArQw= cloud.google.com/go/pubsub v1.2.0/go.mod h1:jhfEVHT8odbXTkndysNHCcx0awwzvfOlguIAii9o8iA= @@ -37,78 +31,32 @@ cloud.google.com/go/storage v1.6.0/go.mod h1:N7U0C8pVQ/+NIKOBQyamJIeKQKkZ+mxpohl cloud.google.com/go/storage v1.8.0/go.mod h1:Wv1Oy7z6Yz3DshWRJFhqM/UCfaWIRTdp0RXyy7KQOVs= cloud.google.com/go/storage v1.10.0/go.mod h1:FLPqc6j+Ki4BU591ie1oL6qBQGu2Bl/tZ9ullr3+Kg0= dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= -github.com/Azure/go-ansiterm v0.0.0-20170929234023-d6e3b3328b78/go.mod h1:LmzpDX56iTiv29bbRTIsUNlaFfuhWRQBWjQdVyAevI8= github.com/Azure/go-autorest v14.2.0+incompatible/go.mod h1:r+4oMnoxhatjLLJ6zxSWATqVooLgysK6ZNox3g/xq24= -github.com/Azure/go-autorest/autorest v0.11.12/go.mod h1:eipySxLmqSyC5s5k1CLupqet0PSENBEDP93LQ9a8QYw= github.com/Azure/go-autorest/autorest v0.11.18/go.mod h1:dSiJPy22c3u0OtOKDNttNgqpNFY/GeWa7GH/Pz56QRA= -github.com/Azure/go-autorest/autorest/adal v0.9.5/go.mod h1:B7KF7jKIeC9Mct5spmyCB/A8CG/sEz1vwIRGv/bbw7A= github.com/Azure/go-autorest/autorest/adal v0.9.13/go.mod h1:W/MM4U6nLxnIskrw4UwWzlHfGjwUS50aOsc/I3yuU8M= github.com/Azure/go-autorest/autorest/date v0.3.0/go.mod h1:BI0uouVdmngYNUzGWeSYnokU+TrmwEsOqdt8Y6sso74= github.com/Azure/go-autorest/autorest/mocks v0.4.1/go.mod h1:LTp+uSrOhSkaKrUy935gNZuuIPPVsHlr9DSOxSayd+k= -github.com/Azure/go-autorest/logger v0.2.0/go.mod h1:T9E3cAhj2VqvPOtCYAvby9aBXkZmbF5NWuPV8+WeEW8= github.com/Azure/go-autorest/logger v0.2.1/go.mod h1:T9E3cAhj2VqvPOtCYAvby9aBXkZmbF5NWuPV8+WeEW8= github.com/Azure/go-autorest/tracing v0.6.0/go.mod h1:+vhtPC754Xsa23ID7GlGsrdKBpUA79WCAKPPZVC2DeU= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo= github.com/NYTimes/gziphandler v0.0.0-20170623195520-56545f4a5d46/go.mod h1:3wb06e3pkSAbeQ52E9H9iFoQsEEwGN64994WTCIhntQ= -github.com/NYTimes/gziphandler v1.1.1/go.mod h1:n/CVRwUEOgIxrgPvAQhUUr9oeUtvrhMomdKFjzJNB0c= -github.com/OneOfOne/xxhash v1.2.2/go.mod h1:HSdplMjZKSmBqAxg5vPj2TmRDmfkzw+cTzAElWljhcU= github.com/PuerkitoBio/purell v1.1.1/go.mod h1:c11w/QuzBsJSee3cPx9rAFu61PvFxuPbtSwDGJws/X0= github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578/go.mod h1:uGdkoq3SwY9Y+13GIhn11/XLaGBb4BfwItxLd5jeuXE= -github.com/ahmetb/gen-crd-api-reference-docs v0.3.0/go.mod h1:TdjdkYhlOifCQWPs1UdTma97kQQMozf5h26hTuG70u8= -github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= -github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= -github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0= -github.com/alecthomas/units v0.0.0-20190717042225-c3de453c63f4/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0= -github.com/alecthomas/units v0.0.0-20190924025748-f65c72e2690d/go.mod h1:rBZYJk541a8SKzHPHnH3zbiI+7dagKZ0cgpgrD7Fyho= -github.com/antihax/optional v1.0.0/go.mod h1:uupD/76wgC+ih3iEmQUL+0Ugr19nfwCT1kdvxnR2qWY= -github.com/armon/circbuf v0.0.0-20150827004946-bbbad097214e/go.mod h1:3U/XgcO3hCbHZ8TKRvWD2dDTCfh9M9ya+I9JpbB7O8o= -github.com/armon/go-metrics v0.0.0-20180917152333-f0300d1749da/go.mod h1:Q73ZrmVTwzkszR9V5SSuryQ31EELlFMUz1kKyl939pY= -github.com/armon/go-radix v0.0.0-20180808171621-7fddfc383310/go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgIH9cCH8= github.com/asaskevich/govalidator v0.0.0-20190424111038-f61b66f89f4a/go.mod h1:lB+ZfQJz7igIIfQNfa7Ml4HSf2uFQQRzpGGRXenZAgY= -github.com/benbjohnson/clock v1.1.0/go.mod h1:J11/hYXuz8f4ySSvYwY0FKfm+ezbsZBKZxNJlLklBHA= -github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q= -github.com/beorn7/perks v1.0.0/go.mod h1:KWe93zE9D1o94FZ5RNwFwVgaQK1VOXiVxmqh+CedLV8= -github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw= -github.com/bgentry/speakeasy v0.1.0/go.mod h1:+zsyZBPWlz7T6j88CTgSN5bM796AkVf0kBD4zp0CCIs= -github.com/bketelsen/crypt v0.0.3-0.20200106085610-5cbc8cc4026c/go.mod h1:MKsuJmJgSg28kpZDP6UIiPt0e0Oz0kqKNGyRaWEPv84= -github.com/bketelsen/crypt v0.0.4/go.mod h1:aI6NrJ0pMGgvZKL1iVgXLnfIFJtfV+bKCoqOes/6LfM= -github.com/blang/semver v3.5.1+incompatible/go.mod h1:kRBLl5iJ+tD4TcOOxsy/0fnwebNt5EWlYSAyrTnjyyk= github.com/blang/semver/v4 v4.0.0 h1:1PFHFE6yCCTv8C1TeyNNarDzntLi7wMI5i/pzqYIsAM= github.com/blang/semver/v4 v4.0.0/go.mod h1:IbckMUScFkM3pff0VJDNKRiT6TG/YpiHIM2yvyW5YoQ= github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= -github.com/cespare/xxhash v1.1.0/go.mod h1:XrSqR1VqqWfGrhpAt58auRo0WTKS1nRRg3ghfAqPWnc= -github.com/cespare/xxhash/v2 v2.1.1/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI= github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e/go.mod h1:nSuG5e5PlCu98SY8svDHJxuZscDgtXS6KTTbou5AhLI= github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU= github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc= -github.com/cncf/udpa/go v0.0.0-20200629203442-efcf912fb354/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk= -github.com/cncf/udpa/go v0.0.0-20201120205902-5459f2c99403/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk= -github.com/cockroachdb/datadriven v0.0.0-20190809214429-80d97fb3cbaa/go.mod h1:zn76sxSg3SzpJ0PPJaLDCu+Bu0Lg3sKTORVIj19EIF8= -github.com/coreos/bbolt v1.3.2/go.mod h1:iRUV2dpdMOn7Bo10OQBFzIJO9kkE559Wcmn+qkEiiKk= -github.com/coreos/etcd v3.3.13+incompatible/go.mod h1:uF7uidLiAD3TWHmW31ZFd/JWoc32PjwdhPthX9715RE= -github.com/coreos/go-oidc v2.1.0+incompatible/go.mod h1:CgnwVTmzoESiwO9qyAFEMiHoZ1nMCKZlZ9V6mm3/LKc= -github.com/coreos/go-semver v0.2.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk= -github.com/coreos/go-semver v0.3.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk= -github.com/coreos/go-systemd v0.0.0-20180511133405-39ca1b05acc7/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4= -github.com/coreos/go-systemd v0.0.0-20190321100706-95778dfbb74e/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4= -github.com/coreos/go-systemd/v22 v22.3.2/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= -github.com/coreos/pkg v0.0.0-20160727233714-3ac0863d7acf/go.mod h1:E3G3o1h8I7cfcXa63jLwjI0eiQQMgzzUDFVpN/nH/eA= -github.com/coreos/pkg v0.0.0-20180928190104-399ea9e2e55f/go.mod h1:E3G3o1h8I7cfcXa63jLwjI0eiQQMgzzUDFVpN/nH/eA= -github.com/cpuguy83/go-md2man/v2 v2.0.0/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU= -github.com/creack/pty v1.1.7/go.mod h1:lj5s0c3V2DBrqTV7llrYr5NG6My20zk30Fl46Y7DoTY= github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= -github.com/creack/pty v1.1.11/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/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/dgrijalva/jwt-go v3.2.0+incompatible/go.mod h1:E3ru+11k8xSBh+hMPgOLZmtrrCbhqsmaPHjLKYnJCaQ= -github.com/dgryski/go-sip13 v0.0.0-20181026042036-e10d5fee7954/go.mod h1:vAd38F8PWV+bWy6jNmig1y/TA+kYO4g3RSRF0IAv0no= github.com/docopt/docopt-go v0.0.0-20180111231733-ee0de3bc6815/go.mod h1:WwZ+bS3ebgob9U8Nd0kOddGdZWjyMGR8Wziv+TBNwSE= -github.com/dustin/go-humanize v0.0.0-20171111073723-bb3d318650d4/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25KnS6fMYU6eOk= -github.com/dustin/go-humanize v1.0.0/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25KnS6fMYU6eOk= github.com/elazarl/goproxy v0.0.0-20180725130230-947c36da3153/go.mod h1:/Zj4wYkgs4iZTTu3o/KG3Itv/qCCa8VVMlb3i9OVuzc= github.com/emicklei/go-restful v0.0.0-20170410110728-ff4f55a20633/go.mod h1:otzb+WCGbkyDHkqmQmT5YD2WR4BBwUdeQoFo8l/7tVs= github.com/emicklei/go-restful v2.9.5+incompatible h1:spTtZBk5DYEvbxMVutUuTyh1Ao2r4iyvLdACqsl/Ljk= @@ -116,67 +64,39 @@ github.com/emicklei/go-restful v2.9.5+incompatible/go.mod h1:otzb+WCGbkyDHkqmQmT github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1mIlRU8Am5FuJP05cCM98= -github.com/envoyproxy/go-control-plane v0.9.7/go.mod h1:cwu0lG7PUMfa9snN8LXBig5ynNVH9qI8YYLbd1fK2po= -github.com/envoyproxy/go-control-plane v0.9.9-0.20201210154907-fd9021fe5dad/go.mod h1:cXg6YxExXjJnVBQHBLXeUAgxn2UodCpnH306RInaBQk= -github.com/envoyproxy/go-control-plane v0.9.9-0.20210217033140-668b12f5399d/go.mod h1:cXg6YxExXjJnVBQHBLXeUAgxn2UodCpnH306RInaBQk= github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= -github.com/evanphx/json-patch v0.5.2/go.mod h1:ZWS5hhDbVDyob71nXKNL0+PWn6ToqBHMikGIFbs31qQ= -github.com/evanphx/json-patch v4.9.0+incompatible/go.mod h1:50XU6AFN0ol/bzJsmQLiYLvXMP4fmwYFNcr97nuDLSk= github.com/evanphx/json-patch v4.11.0+incompatible/go.mod h1:50XU6AFN0ol/bzJsmQLiYLvXMP4fmwYFNcr97nuDLSk= github.com/evanphx/json-patch v4.12.0+incompatible h1:4onqiflcdA9EOZ4RxV643DvftH5pOlLGNtQ5lPWQu84= github.com/evanphx/json-patch v4.12.0+incompatible/go.mod h1:50XU6AFN0ol/bzJsmQLiYLvXMP4fmwYFNcr97nuDLSk= -github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4= -github.com/fatih/color v1.12.0/go.mod h1:ELkj/draVOlAH/xkhN6mQ50Qd0MPOk5AAr3maGEBuJM= github.com/form3tech-oss/jwt-go v3.2.2+incompatible/go.mod h1:pbq4aXjuKjdthFRnoDwaVPLA+WlJuPGy+QneDUgJi2k= github.com/form3tech-oss/jwt-go v3.2.3+incompatible/go.mod h1:pbq4aXjuKjdthFRnoDwaVPLA+WlJuPGy+QneDUgJi2k= github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo= github.com/fsnotify/fsnotify v1.4.9 h1:hsms1Qyu0jgnwNXIxa+/V/PDsU6CfLf6CNO8H7IWoS4= github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4IgpuI1SZQ= -github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04= github.com/go-bindata/go-bindata v3.1.2+incompatible h1:5vjJMVhowQdPzjE1LdxyFF7YFTXg5IgGVW4gBr5IbvE= github.com/go-bindata/go-bindata v3.1.2+incompatible/go.mod h1:xK8Dsgwmeed+BBsSy2XTopBn/8uK2HWuGSnA11C3Joo= github.com/go-gl/glfw v0.0.0-20190409004039-e6da0acd62b1/go.mod h1:vR7hzQXu2zJy9AVAgeJqvqgH9Q5CA+iKCZ2gyEVpxRU= github.com/go-gl/glfw/v3.3/glfw v0.0.0-20191125211704-12ad95a8df72/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= github.com/go-gl/glfw/v3.3/glfw v0.0.0-20200222043503-6f7a984d4dc4/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= -github.com/go-kit/kit v0.8.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as= -github.com/go-kit/kit v0.9.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as= -github.com/go-kit/log v0.1.0/go.mod h1:zbhenjAZHb184qTLMA9ZjW7ThYL0H2mk7Q6pNt4vbaY= -github.com/go-logfmt/logfmt v0.3.0/go.mod h1:Qt1PoO58o5twSAckw1HlFXLmHsOX5/0LbT9GBnD5lWE= -github.com/go-logfmt/logfmt v0.4.0/go.mod h1:3RMwSq7FuexP4Kalkev3ejPJsZTpXXBr9+V4qmtdjCk= -github.com/go-logfmt/logfmt v0.5.0/go.mod h1:wCYkCAKZfumFQihp8CzCvQ3paCTfi41vtzG1KdI/P7A= github.com/go-logr/logr v0.1.0/go.mod h1:ixOQHD9gLJUVQQ2ZOR7zLEifBX6tGkNJF4QyIY7sIas= github.com/go-logr/logr v0.2.0/go.mod h1:z6/tIYblkpsD+a4lm/fGIIU9mZ+XfAiaFtq7xTgseGU= github.com/go-logr/logr v0.4.0/go.mod h1:z6/tIYblkpsD+a4lm/fGIIU9mZ+XfAiaFtq7xTgseGU= github.com/go-logr/logr v1.2.0/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= github.com/go-logr/logr v1.2.3 h1:2DntVwHkVopvECVRSlL5PSo9eG+cAkDCuckLubN+rq0= github.com/go-logr/logr v1.2.3/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= -github.com/go-logr/zapr v0.4.0/go.mod h1:tabnROwaDl0UNxkVeFRbY8bwB37GwRv0P8lg6aAiEnk= -github.com/go-openapi/jsonpointer v0.19.2/go.mod h1:3akKfEdA7DF1sugOqz1dVQHBcuDBPKZGEoHC/NkiQRg= github.com/go-openapi/jsonpointer v0.19.3/go.mod h1:Pl9vOtqEWErmShwVjC8pYs9cog34VGT37dQOVbmoatg= github.com/go-openapi/jsonpointer v0.19.5 h1:gZr+CIYByUqjcgeLXnQu2gHYQC9o73G2XUeOFYEICuY= github.com/go-openapi/jsonpointer v0.19.5/go.mod h1:Pl9vOtqEWErmShwVjC8pYs9cog34VGT37dQOVbmoatg= -github.com/go-openapi/jsonreference v0.19.2/go.mod h1:jMjeRr2HHw6nAVajTXJ4eiUwohSTlpa0o73RUL1owJc= github.com/go-openapi/jsonreference v0.19.3/go.mod h1:rjx6GuL8TTa9VaixXglHmQmIL98+wF9xc8zWvFonSJ8= github.com/go-openapi/jsonreference v0.19.5/go.mod h1:RdybgQwPxbL4UEjuAruzK1x3nE69AqPYEJeo/TWfEeg= github.com/go-openapi/jsonreference v0.20.0 h1:MYlu0sBgChmCfJxxUKZ8g1cPWFOB37YSZqewK7OKeyA= github.com/go-openapi/jsonreference v0.20.0/go.mod h1:Ag74Ico3lPc+zR+qjn4XBUmXymS4zJbYVCZmcgkasdo= -github.com/go-openapi/spec v0.19.3/go.mod h1:FpwSN1ksY1eteniUU7X0N/BgJ7a4WvBFVA8Lj9mJglo= -github.com/go-openapi/spec v0.19.5/go.mod h1:Hm2Jr4jv8G1ciIAo+frC/Ft+rR2kQDh8JHKHb3gWUSk= -github.com/go-openapi/swag v0.19.2/go.mod h1:POnQmlKehdgb5mhVOsnJFsivZCEZ/vjK9gh66Z9tfKk= github.com/go-openapi/swag v0.19.5/go.mod h1:POnQmlKehdgb5mhVOsnJFsivZCEZ/vjK9gh66Z9tfKk= github.com/go-openapi/swag v0.19.14 h1:gm3vOOXfiuw5i9p5N9xJvfjvuofpyvLA9Wr6QfK5Fng= github.com/go-openapi/swag v0.19.14/go.mod h1:QYRuS/SOXUCsnplDa677K7+DxSOj6IPNl/eQntq43wQ= -github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY= -github.com/go-task/slim-sprig v0.0.0-20210107165309-348f09dbbbc0/go.mod h1:fyg7847qk6SyHyPtNmDHnmrv/HOrqktSC+C9fM+CJOE= -github.com/gobuffalo/flect v0.2.3/go.mod h1:vmkQwuZYhN5Pc4ljYQZzP+1sq+NEkK+lh20jmEmX3jc= -github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA= -github.com/gogo/protobuf v1.1.1/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ= -github.com/gogo/protobuf v1.2.1/go.mod h1:hp+jE20tsWTFYpLwKvXlhS1hjn+gTNwPg2I6zVXpSg4= github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q= github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q= github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= -github.com/golang/groupcache v0.0.0-20160516000752-02826c3e7903/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= -github.com/golang/groupcache v0.0.0-20190129154638-5b532d6fd5ef/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= github.com/golang/groupcache v0.0.0-20191227052852-215e87163ea7/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= @@ -188,7 +108,6 @@ github.com/golang/mock v1.4.0/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt github.com/golang/mock v1.4.1/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= github.com/golang/mock v1.4.3/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= github.com/golang/mock v1.4.4/go.mod h1:l3mdAwkq5BuhzHwde/uurv3sEJeZMXNpwsxVWU71h+4= -github.com/golang/mock v1.5.0/go.mod h1:CWnOUgYIOo4TcNZ0wHX3YZCqsaM1I1Jvs6v3mP3KVu8= github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= @@ -202,9 +121,7 @@ github.com/golang/protobuf v1.4.0-rc.4.0.20200313231945-b860323f09d0/go.mod h1:W github.com/golang/protobuf v1.4.0/go.mod h1:jodUvKwWbYaEsadDk5Fwe5c77LiNKVO9IDvqG2KuDX0= github.com/golang/protobuf v1.4.1/go.mod h1:U8fpvMrcmy5pZrNK1lt4xCsGvpyWQ/VVv6QDs8UjoX8= github.com/golang/protobuf v1.4.2/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= -github.com/golang/protobuf v1.4.3/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= -github.com/golang/protobuf v1.5.1/go.mod h1:DopwsBzvsk0Fs44TXzsVbJyPhcCPeIwnvohx4u74HPM= github.com/golang/protobuf v1.5.2 h1:ROPKBNFfQgOUMifHyP+KYbvpjbdoFNs+aK7DXlji0Tw= github.com/golang/protobuf v1.5.2/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= @@ -217,11 +134,7 @@ github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.2/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.3/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.6/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= @@ -229,7 +142,6 @@ github.com/google/gofuzz v1.1.0 h1:Hsa8mG0dQ46ij8Sl2AYJDUv1oA9/d6Vk+3LG99Oe02g= github.com/google/gofuzz v1.1.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= github.com/google/martian v2.1.0+incompatible/go.mod h1:9I4somxYTbIHy5NJKHRl3wXiIaQGbYVAs8BPL6v8lEs= github.com/google/martian/v3 v3.0.0/go.mod h1:y5Zk1BBys9G+gd6Jrk0W3cC1+ELVxBWuIGO+w/tUAp0= -github.com/google/martian/v3 v3.1.0/go.mod h1:y5Zk1BBys9G+gd6Jrk0W3cC1+ELVxBWuIGO+w/tUAp0= github.com/google/pprof v0.0.0-20181206194817-3ea8567a2e57/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= github.com/google/pprof v0.0.0-20190515194954-54271f7e092f/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= github.com/google/pprof v0.0.0-20191218002539-d4f498aebedc/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= @@ -237,116 +149,44 @@ github.com/google/pprof v0.0.0-20200212024743-f11f1df84d12/go.mod h1:ZgVRPoUq/hf github.com/google/pprof v0.0.0-20200229191704-1ebb73c60ed3/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= github.com/google/pprof v0.0.0-20200430221834-fc25d7d30c6d/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= github.com/google/pprof v0.0.0-20200708004538-1a94d8640e99/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= -github.com/google/pprof v0.0.0-20201023163331-3e6fc7fc9c4c/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= -github.com/google/pprof v0.0.0-20201203190320-1bf35d6f28c2/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= -github.com/google/pprof v0.0.0-20210122040257-d980be63207e/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= -github.com/google/pprof v0.0.0-20210226084205-cbba55b83ad5/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= -github.com/google/uuid v1.0.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/google/uuid v1.1.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/google/uuid v1.1.2 h1:EVhdT+1Kseyi1/pUmXKaFxYsDNy9RQYkMWRH68J/W7Y= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/googleapis/gax-go/v2 v2.0.4/go.mod h1:0Wqv26UfaUD9n4G6kQubkQ+KchISgw+vpHVxEJEs9eg= github.com/googleapis/gax-go/v2 v2.0.5/go.mod h1:DWXyrwAJ9X0FpwwEdw+IPEYBICEFu5mhpdKc/us6bOk= -github.com/googleapis/gnostic v0.4.1/go.mod h1:LRhVm6pbyptWbWbuZ38d1eyptfvIytN3ir6b65WBswg= github.com/googleapis/gnostic v0.5.1/go.mod h1:6U4PtQXGIEt/Z3h5MAT7FNofLnw9vXk2cUuW7uA/OeU= github.com/googleapis/gnostic v0.5.5 h1:9fHAtK0uDfpveeqqo1hkEZJcFvYXAiCN3UutL8F9xHw= github.com/googleapis/gnostic v0.5.5/go.mod h1:7+EbHbldMins07ALC74bsA81Ovc97DwqyJO1AENw9kA= -github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1/go.mod h1:wJfORRmW1u3UXTncJ5qlYoELFm8eSnnEO6hX4iZ3EWY= -github.com/gorilla/websocket v0.0.0-20170926233335-4201258b820c/go.mod h1:E7qHFY5m1UJ88s3WnNqhKjPHQ0heANvMoAMk2YaljkQ= github.com/gorilla/websocket v1.4.2/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE= github.com/gregjones/httpcache v0.0.0-20180305231024-9cad4c3443a7/go.mod h1:FecbI9+v66THATjSRHfNgh1IVFe/9kFxbXtjV0ctIMA= -github.com/grpc-ecosystem/go-grpc-middleware v1.0.0/go.mod h1:FiyG127CGDf3tlThmgyCl78X/SZQqEOJBCDaAfeWzPs= -github.com/grpc-ecosystem/go-grpc-middleware v1.0.1-0.20190118093823-f849b5445de4/go.mod h1:FiyG127CGDf3tlThmgyCl78X/SZQqEOJBCDaAfeWzPs= -github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0/go.mod h1:8NvIoxWQoOIhqOTXgfV/d3M/q6VIi02HzZEHgUlZvzk= -github.com/grpc-ecosystem/grpc-gateway v1.9.0/go.mod h1:vNeuVxBJEsws4ogUvrchl83t/GYV9WGTSLVdBhOQFDY= -github.com/grpc-ecosystem/grpc-gateway v1.9.5/go.mod h1:vNeuVxBJEsws4ogUvrchl83t/GYV9WGTSLVdBhOQFDY= -github.com/grpc-ecosystem/grpc-gateway v1.16.0/go.mod h1:BDjrQk3hbvj6Nolgz8mAMFbcEtjT1g+wF4CSlocrBnw= -github.com/hashicorp/consul/api v1.1.0/go.mod h1:VmuI/Lkw1nC05EYQWNKwWGbkg+FbDBtguAZLlVdkD9Q= -github.com/hashicorp/consul/sdk v0.1.1/go.mod h1:VKf9jXwCTEY1QZP2MOLRhb5i/I/ssyNV1vwHyQBF0x8= -github.com/hashicorp/errwrap v1.0.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= -github.com/hashicorp/go-cleanhttp v0.5.1/go.mod h1:JpRdi6/HCYpAwUzNwuwqhbovhLtngrth3wmdIIUrZ80= -github.com/hashicorp/go-immutable-radix v1.0.0/go.mod h1:0y9vanUI8NX6FsYoO3zeMjhV/C5i9g4Q3DwcSNZ4P60= -github.com/hashicorp/go-msgpack v0.5.3/go.mod h1:ahLV/dePpqEmjfWmKiqvPkv/twdG7iPBM1vqhUKIvfM= -github.com/hashicorp/go-multierror v1.0.0/go.mod h1:dHtQlpGsu+cZNNAkkCN/P3hoUDHhCYQXV3UM06sGGrk= -github.com/hashicorp/go-rootcerts v1.0.0/go.mod h1:K6zTfqpRlCUIjkwsN4Z+hiSfzSTQa6eBIzfwKfwNnHU= -github.com/hashicorp/go-sockaddr v1.0.0/go.mod h1:7Xibr9yA9JjQq1JpNB2Vw7kxv8xerXegt+ozgdvDeDU= -github.com/hashicorp/go-syslog v1.0.0/go.mod h1:qPfqrKkXGihmCqbJM2mZgkZGvKG1dFdvsLplgctolz4= -github.com/hashicorp/go-uuid v1.0.0/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= -github.com/hashicorp/go-uuid v1.0.1/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= -github.com/hashicorp/go.net v0.0.1/go.mod h1:hjKkEWcCURg++eb33jQU7oqQcI9XDCnUzHA0oac0k90= github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= github.com/hashicorp/golang-lru v0.5.1/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= -github.com/hashicorp/golang-lru v0.5.4/go.mod h1:iADmTwqILo4mZ8BN3D2Q6+9jd8WM5uGBxy+E8yxSoD4= -github.com/hashicorp/hcl v1.0.0/go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T20WEQ= -github.com/hashicorp/logutils v1.0.0/go.mod h1:QIAnNjmIWmVIIkWDTG1z5v++HQmx9WQRO+LraFDTW64= -github.com/hashicorp/mdns v1.0.0/go.mod h1:tL+uN++7HEJ6SQLQ2/p+z2pH24WQKWjBPkE0mNTz8vQ= -github.com/hashicorp/memberlist v0.1.3/go.mod h1:ajVTdAv/9Im8oMAAj5G31PhhMCZJV2pPBoIllUwCN7I= -github.com/hashicorp/serf v0.8.2/go.mod h1:6hOLApaqBFA1NXqRQAsxw9QxuDEvNxSQRwA/JwenrHc= github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU= github.com/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= -github.com/ianlancetaylor/demangle v0.0.0-20200824232613-28f6c0f3b639/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= github.com/imdario/mergo v0.3.5/go.mod h1:2EnlNZ0deacrJVfApfmtdGgDfMuh/nq6Ok1EcJh5FfA= -github.com/imdario/mergo v0.3.12/go.mod h1:jmQim1M+e3UYxmgPu/WyfjB3N3VflVyUjjjwH0dnCYA= -github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8= -github.com/jessevdk/go-flags v1.4.0/go.mod h1:4FA24M0QyGHXBuZZK/XkWh8h0e1EYbRYJSGM75WSRxI= -github.com/jonboulle/clockwork v0.1.0/go.mod h1:Ii8DK3G1RaLaWxj9trq07+26W01tbo22gdxWY5EU2bo= github.com/josharian/intern v1.0.0 h1:vlS4z54oSdjm0bgjRigI+G1HpF+tI+9rE5LLzOg8HmY= github.com/josharian/intern v1.0.0/go.mod h1:5DoeVV0s6jJacbCEi61lwdGj/aVlrQvzHFFd8Hwg//Y= -github.com/jpillora/backoff v1.0.0/go.mod h1:J/6gKK9jxlEcS3zixgDgUAsiuZ7yrSoa/FX5e0EB2j4= github.com/json-iterator/go v1.1.6/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU= -github.com/json-iterator/go v1.1.7/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= -github.com/json-iterator/go v1.1.10/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= github.com/json-iterator/go v1.1.11/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= github.com/json-iterator/go v1.1.12 h1:PV8peI4a0ysnczrg+LtxykD8LfKY9ML6u2jnxaEnrnM= github.com/json-iterator/go v1.1.12/go.mod h1:e30LSqwooZae/UwlEbR2852Gd8hjQvJoHmT4TnhNGBo= github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024/go.mod h1:6v2b51hI/fHJwM22ozAgKL4VKDeJcHhJFhtBdhmNjmU= github.com/jstemmer/go-junit-report v0.9.1/go.mod h1:Brl9GWCQeLvo8nXZwPNNblvFj/XSXhF0NWZEnDohbsk= -github.com/jtolds/gls v4.20.0+incompatible/go.mod h1:QJZ7F/aHp+rZTRtaJ1ow/lLfFfVYBRgL+9YlvaHOwJU= -github.com/julienschmidt/httprouter v1.2.0/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7VTCxuUUipMqKk8s4w= -github.com/julienschmidt/httprouter v1.3.0/go.mod h1:JR6WtHb+2LUe8TCKY3cZOxFyyO8IZAc4RVcycCCAKdM= -github.com/kisielk/errcheck v1.1.0/go.mod h1:EZBBE59ingxPouuu3KfxchcWSUPOHkagtvWXihfKN4Q= github.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI2bnpBCr8= github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= -github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= -github.com/konsorten/go-windows-terminal-sequences v1.0.3/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= -github.com/kr/fs v0.1.0/go.mod h1:FFnZGqtBN9Gxj7eW1uZ42v5BccTP0vu6NEaFoC2HwRg= -github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515/go.mod h1:+0opPa2QZZtGFBFZlji/RkVcI2GknAs/DXo4wKdlNEc= github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= github.com/kr/pretty v0.2.0/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI= github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= -github.com/kr/pty v1.1.5/go.mod h1:9r2w37qlBe7rQ6e1fg1S/9xpWHSnaqNdHD3WcMdbPDA= github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= -github.com/lithammer/dedent v1.1.0/go.mod h1:jrXYCQtgg0nJiN+StA2KgR7w6CiQNv9Fd/Z9BP0jIOc= -github.com/magiconair/properties v1.8.1/go.mod h1:PppfXfuXeibc/6YijjN8zIbojt8czPbwD3XqdrwzmxQ= -github.com/magiconair/properties v1.8.5/go.mod h1:y3VJvCyxH9uVvJTWEGAELF3aiYNyPKd5NZ3oSwXrF60= github.com/mailru/easyjson v0.0.0-20190614124828-94de47d64c63/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc= github.com/mailru/easyjson v0.0.0-20190626092158-b2ccc519800e/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc= -github.com/mailru/easyjson v0.7.0/go.mod h1:KAzv3t3aY1NaHWoQz1+4F1ccyAH66Jk7yos7ldAVICs= github.com/mailru/easyjson v0.7.6 h1:8yTIVnZgCoiM1TgqoeTl+LfU5Jg6/xL3QhGQnimLYnA= github.com/mailru/easyjson v0.7.6/go.mod h1:xzfreul335JAWq5oZzymOObrkdz5UnU4kGfJJLY9Nlc= -github.com/mattn/go-colorable v0.0.9/go.mod h1:9vuHe8Xs5qXnSaW/c/ABM9alt+Vo+STaOChaDxuIBZU= -github.com/mattn/go-colorable v0.1.8/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc= -github.com/mattn/go-isatty v0.0.3/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4= -github.com/mattn/go-isatty v0.0.4/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4= -github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU= -github.com/mattn/go-runewidth v0.0.2/go.mod h1:LwmH8dsx7+W8Uxz3IHJYH5QSwggIsqBzpuz5H//U1FU= -github.com/matttproud/golang_protobuf_extensions v1.0.1/go.mod h1:D8He9yQNgCq6Z5Ld7szi9bcBfOoFv/3dc6xSMkL2PC0= -github.com/matttproud/golang_protobuf_extensions v1.0.2-0.20181231171920-c182affec369/go.mod h1:BSXmuO+STAnVfrANrmjBb36TMTDstsz7MSK+HVaYKv4= -github.com/miekg/dns v1.0.14/go.mod h1:W1PPwlIAgtquWBMBEV9nkV9Cazfe8ScdGz/Lj7v3Nrg= -github.com/mitchellh/cli v1.0.0/go.mod h1:hNIlj7HEI86fIcpObd7a0FcrxTWetlwJDGcceTlRvqc= -github.com/mitchellh/go-homedir v1.0.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0= -github.com/mitchellh/go-homedir v1.1.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0= -github.com/mitchellh/go-testing-interface v1.0.0/go.mod h1:kRemZodwjscx+RGhAo8eIhFbs2+BFgRtFPeD/KE+zxI= -github.com/mitchellh/gox v0.4.0/go.mod h1:Sd9lOJ0+aimLBi73mGofS1ycjY8lL3uZM3JPS42BGNg= -github.com/mitchellh/iochan v1.0.0/go.mod h1:JwYml1nuB7xOzsp52dPpHFffvOCDupsG0QubkSMEySY= -github.com/mitchellh/mapstructure v0.0.0-20160808181253-ca63d7c062ee/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y= github.com/mitchellh/mapstructure v1.1.2/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y= -github.com/mitchellh/mapstructure v1.4.1/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= github.com/moby/spdystream v0.2.0/go.mod h1:f7i0iNDQJ059oMTcWxx8MA/zKFIuD/lY+0GqbN2Wy8c= -github.com/moby/term v0.0.0-20201216013528-df9cb8a40635/go.mod h1:FBS0z0QWA44HXygs7VXDUOGoN/1TV3RuWkLO04am3wc= github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd h1:TRLaZ9cD/w8PVh93nsPXa1VrQ6jlwL5oN8l14QlcNfg= github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= @@ -355,148 +195,52 @@ github.com/modern-go/reflect2 v1.0.1/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3Rllmb github.com/modern-go/reflect2 v1.0.2 h1:xBagoLtFs94CBntxluKeaWgTMpvLxC4ur3nMaC9Gz0M= github.com/modern-go/reflect2 v1.0.2/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjYzDa0/r8luk= github.com/munnerz/goautoneg v0.0.0-20120707110453-a547fc61f48d/go.mod h1:+n7T8mK8HuQTcFwEeznm/DIxMOiR9yIdICNftLE1DvQ= -github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822/go.mod h1:+n7T8mK8HuQTcFwEeznm/DIxMOiR9yIdICNftLE1DvQ= -github.com/mwitkow/go-conntrack v0.0.0-20161129095857-cc309e4a2223/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U= -github.com/mwitkow/go-conntrack v0.0.0-20190716064945-2f068394615f/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U= github.com/mxk/go-flowrate v0.0.0-20140419014527-cca7078d478f/go.mod h1:ZdcZmHo+o7JKHSa8/e818NopupXU1YMK5fe1lsApnBw= github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e h1:fD57ERR4JtEqsWbfPhv4DMiApHyliiK5xCTNVSPiaAs= github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod h1:zD1mROLANZcx1PVRCS0qkT7pwLkGfwJo4zjcN/Tysno= +github.com/nxadm/tail v1.4.4 h1:DQuhQpB1tVlglWS2hLQ5OV6B5r8aGxSrPc5Qo6uTN78= github.com/nxadm/tail v1.4.4/go.mod h1:kenIhsEOeOJmVchQTgglprH7qJGnHDVpk1VPCcaMI8A= -github.com/nxadm/tail v1.4.8 h1:nPr65rt6Y5JFSKQO7qToXr7pePgD6Gwiw05lkbyAQTE= -github.com/nxadm/tail v1.4.8/go.mod h1:+ncqLTQzXmGhMZNUePPaPqPvBxHAIsmXswZKocGu+AU= -github.com/oklog/ulid v1.3.1/go.mod h1:CirwcVhetQ6Lv90oh/F+FBtV6XMibvdAFo93nm5qn4U= -github.com/olekukonko/tablewriter v0.0.0-20170122224234-a0225b3f23b5/go.mod h1:vsDQFd/mU46D+Z4whnwzcISnGGzXWMclvtLoiIKAKIo= github.com/onsi/ginkgo v0.0.0-20170829012221-11459a886d9c/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= github.com/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= -github.com/onsi/ginkgo v1.11.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= github.com/onsi/ginkgo v1.12.1/go.mod h1:zj2OWP4+oCPe1qIXoGWkgMRwljMUYCdkwsT2108oapk= +github.com/onsi/ginkgo v1.14.0 h1:2mOpI4JVVPBN+WQRa0WKH2eXR+Ey+uK4n7Zj0aYpIQA= github.com/onsi/ginkgo v1.14.0/go.mod h1:iSB4RoI2tjJc9BBv4NKIKWKya62Rps+oPG/Lv9klQyY= -github.com/onsi/ginkgo v1.16.4 h1:29JGrr5oVBm5ulCWet69zQkzWipVXIol6ygQUe/EzNc= -github.com/onsi/ginkgo v1.16.4/go.mod h1:dX+/inL/fNMqNlz0e9LfyB9TswhZpCVdJM/Z6Vvnwo0= github.com/onsi/gomega v0.0.0-20170829124025-dcabb60a477c/go.mod h1:C1qb7wdrVGGVU+Z6iS04AVkA3Q65CEZX59MT0QO5uiA= -github.com/onsi/gomega v1.7.0/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY= github.com/onsi/gomega v1.7.1/go.mod h1:XdKZgCCFLUoM/7CFJVPcG8C1xQ1AJ0vpAezJrB7JYyY= +github.com/onsi/gomega v1.10.1 h1:o0+MgICZLuZ7xjH7Vx6zS/zcu93/BEp1VwkIW1mEXCE= github.com/onsi/gomega v1.10.1/go.mod h1:iN09h71vgCQne3DLsj+A5owkum+a2tYe+TOCB1ybHNo= -github.com/onsi/gomega v1.14.0 h1:ep6kpPVwmr/nTbklSx2nrLNSIO62DoYAhnPNIMhK8gI= -github.com/onsi/gomega v1.14.0/go.mod h1:cIuvLEne0aoVhAgh/O6ac0Op8WWw9H6eYCriF+tEHG0= -github.com/pascaldekloe/goe v0.0.0-20180627143212-57f6aae5913c/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144TG7ZOy1lc= -github.com/pelletier/go-toml v1.2.0/go.mod h1:5z9KED0ma1S8pY6P1sdut58dfprrGBbd/94hg7ilaic= -github.com/pelletier/go-toml v1.9.3/go.mod h1:u1nR/EPcESfeI/szUZKdtJ0xRNbUoANCkoOuaOx1Y+c= github.com/peterbourgon/diskv v2.0.1+incompatible/go.mod h1:uqqh8zWWbv1HBMNONnaR/tNboyR3/BZd58JJSHlUSCU= -github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= -github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= -github.com/pkg/sftp v1.10.1/go.mod h1:lYOWFsE0bwd1+KfKJaKeuokY15vzFx25BLbzYYoAxZI= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= -github.com/posener/complete v1.1.1/go.mod h1:em0nMJCgc9GFtwrmVmEMR/ZL6WyhyjMBndrE9hABlRI= -github.com/pquerna/cachecontrol v0.0.0-20171018203845-0dec1b30a021/go.mod h1:prYjPmNq4d1NPVmpShWobRqXY3q7Vp+80DqgxxUrUIA= -github.com/prometheus/client_golang v0.9.1/go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXPKyh/dDVn+NZz0KFw= -github.com/prometheus/client_golang v0.9.3/go.mod h1:/TN21ttK/J9q6uSwhBd54HahCDft0ttaMvbicHlPoso= -github.com/prometheus/client_golang v1.0.0/go.mod h1:db9x61etRT2tGnBNRi70OPL5FsnadC4Ky3P0J6CfImo= -github.com/prometheus/client_golang v1.7.1/go.mod h1:PY5Wy2awLA44sXw4AOSfFBetzPP4j5+D6mVACh+pe2M= -github.com/prometheus/client_golang v1.11.0/go.mod h1:Z6t4BnS23TR94PD6BsDNk8yVqroYurpAkEiz0P2BEV0= -github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo= -github.com/prometheus/client_model v0.0.0-20190129233127-fd36f4220a90/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= -github.com/prometheus/client_model v0.2.0/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= -github.com/prometheus/common v0.0.0-20181113130724-41aa239b4cce/go.mod h1:daVV7qP5qjZbuso7PdcryaAu0sAZbrN9i7WWcTMWvro= -github.com/prometheus/common v0.4.0/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4= -github.com/prometheus/common v0.4.1/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4= -github.com/prometheus/common v0.10.0/go.mod h1:Tlit/dnDKsSWFlCLTWaA1cyBgKHSMdTB80sz/V91rCo= -github.com/prometheus/common v0.26.0/go.mod h1:M7rCNAaPfAosfx8veZJCuw84e35h3Cfd9VFqTh1DIvc= -github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk= -github.com/prometheus/procfs v0.0.0-20190507164030-5867b95ac084/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA= -github.com/prometheus/procfs v0.0.2/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA= -github.com/prometheus/procfs v0.1.3/go.mod h1:lV6e/gmhEcM9IjHGsFOCxxuZ+z1YqCvr4OA4YeYWdaU= -github.com/prometheus/procfs v0.2.0/go.mod h1:lV6e/gmhEcM9IjHGsFOCxxuZ+z1YqCvr4OA4YeYWdaU= -github.com/prometheus/procfs v0.6.0/go.mod h1:cz+aTbrPOrUb4q7XlbU9ygM+/jj0fzG6c1xBZuNvfVA= -github.com/prometheus/tsdb v0.7.1/go.mod h1:qhTCs0VvXwvX/y3TZrWD7rabWM+ijKTux40TwIPHuXU= -github.com/rogpeppe/fastuuid v0.0.0-20150106093220-6724a57986af/go.mod h1:XWv6SoW27p1b0cqNHllgS5HIMJraePCO15w5zCzIWYg= -github.com/rogpeppe/fastuuid v1.2.0/go.mod h1:jVj6XXZzXRy/MSR5jhDC/2q6DgLz+nrA6LYCDYWNEvQ= github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= -github.com/russross/blackfriday/v2 v2.0.1/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= -github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= -github.com/ryanuber/columnize v0.0.0-20160712163229-9b3edd62028f/go.mod h1:sm1tb6uqfes/u+d4ooFouqFdy9/2g9QGwK3SQygK0Ts= -github.com/sean-/seed v0.0.0-20170313163322-e2103e2c3529/go.mod h1:DxrIzT+xaE7yg65j358z/aeFdxmN0P9QXhEzd20vsDc= -github.com/shurcooL/sanitized_anchor_name v1.0.0/go.mod h1:1NzhyTcUVG4SuEtjjoZeVRXNmyL/1OwPU0+IJeTBvfc= -github.com/sirupsen/logrus v1.2.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo= -github.com/sirupsen/logrus v1.4.2/go.mod h1:tLMulIdttU9McNUspp0xgXVQah82FyeX6MwdIuYE2rE= -github.com/sirupsen/logrus v1.6.0/go.mod h1:7uNnSEd1DgxDLC74fIahvMZmmYsHGZGEOFrfsX/uA88= -github.com/sirupsen/logrus v1.7.0/go.mod h1:yWOB1SBYBC5VeMP7gHvWumXLIWorT60ONWic61uBYv0= -github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d/go.mod h1:OnSkiWE9lh6wB0YB77sQom3nweQdgAjqCqsofrRNTgc= -github.com/smartystreets/goconvey v1.6.4/go.mod h1:syvi0/a8iFYH4r/RixwvyeAJjdLS9QV7WQ/tjFTllLA= -github.com/soheilhy/cmux v0.1.4/go.mod h1:IM3LyeVVIOuxMH7sFAkER9+bJ4dT7Ms6E4xg4kGIyLM= -github.com/spaolacci/murmur3 v0.0.0-20180118202830-f09979ecbc72/go.mod h1:JwIasOWyU6f++ZhiEuf87xNszmSA2myDM2Kzu9HwQUA= -github.com/spf13/afero v1.1.2/go.mod h1:j4pytiNVoe2o6bmDsKpLACNPDBIoEAkihy7loJ1B0CQ= github.com/spf13/afero v1.2.2/go.mod h1:9ZxEEn6pIJ8Rxe320qSDBk6AsU0r9pR7Q4OcevTdifk= -github.com/spf13/afero v1.6.0/go.mod h1:Ai8FlHk4v/PARR026UzYexafAt9roJ7LcLMAmO6Z93I= -github.com/spf13/cast v1.3.0/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE= -github.com/spf13/cast v1.3.1/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE= -github.com/spf13/cobra v0.0.3/go.mod h1:1l0Ry5zgKvJasoi3XT1TypsSe7PqH0Sj9dhYf7v3XqQ= -github.com/spf13/cobra v1.1.1/go.mod h1:WnodtKOvamDL/PwE2M4iKs8aMDBZ5Q5klgD3qfVJQMI= -github.com/spf13/cobra v1.2.1/go.mod h1:ExllRjgxM/piMAM+3tAZvg8fsklGAf3tPfi+i8t68Nk= -github.com/spf13/jwalterweatherman v1.0.0/go.mod h1:cQK4TGJAtQXfYWX+Ddv3mKDzgVb68N+wFjFa4jdeBTo= -github.com/spf13/jwalterweatherman v1.1.0/go.mod h1:aNWZUN0dPAAO/Ljvb5BEdw96iTZ0EXowPYD95IqWIGo= github.com/spf13/pflag v0.0.0-20170130214245-9ff6c6923cff/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4= -github.com/spf13/pflag v1.0.1/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4= -github.com/spf13/pflag v1.0.3/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4= github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA= github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= -github.com/spf13/viper v1.7.0/go.mod h1:8WkrPz2fc9jxqZNCJI/76HCieCp4Q8HaLFoCha5qpdg= -github.com/spf13/viper v1.8.1/go.mod h1:o0Pch8wJ9BVSWGQMbra6iw0oQ5oktSIBaujf1rJH9Ns= github.com/stoewer/go-strcase v1.2.0/go.mod h1:IBiWB2sKIp3wVVQ3Y035++gc+knqhUQag1KpM8ahLw8= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= -github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= -github.com/stretchr/objx v0.2.0/go.mod h1:qt09Ya8vawLte6SNmTgCsAVtYtaKzEcn8ATUoHMkEqE= -github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA= github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY= github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= -github.com/subosito/gotenv v1.2.0/go.mod h1:N0PQaV/YGNqwC0u51sEeR/aUtSLEXKX9iv69rRypqCw= -github.com/tmc/grpc-websocket-proxy v0.0.0-20170815181823-89b8d40f7ca8/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U= -github.com/tmc/grpc-websocket-proxy v0.0.0-20190109142713-0ad062ec5ee5/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U= -github.com/urfave/cli v1.20.0/go.mod h1:70zkFmudgCuE/ngEzBv17Jvp/497gISqfk5gWijbERA= -github.com/xiang90/probing v0.0.0-20190116061207-43a291ad63a2/go.mod h1:UETIi67q53MR2AWcXfiuqkDkRtnGDLqkBTpCHuJHxtU= github.com/yuin/goldmark v1.1.25/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.1.32/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= -go.etcd.io/bbolt v1.3.2/go.mod h1:IbVyRI1SCnLcuJnV2u8VeU0CEYM7e686BmAb1XKL+uU= -go.etcd.io/bbolt v1.3.3/go.mod h1:IbVyRI1SCnLcuJnV2u8VeU0CEYM7e686BmAb1XKL+uU= -go.etcd.io/bbolt v1.3.5/go.mod h1:G5EMThwa9y8QZGBClrRx5EY+Yw9kAhnjy3bSjsnlVTQ= -go.etcd.io/etcd v0.5.0-alpha.5.0.20200910180754-dd1b699fc489/go.mod h1:yVHk9ub3CSBatqGNg7GRmsnfLWtoW60w4eDYfh7vHDg= -go.etcd.io/etcd/api/v3 v3.5.0/go.mod h1:cbVKeC6lCfl7j/8jBhAK6aIYO9XOjdptoxU/nLQcPvs= -go.etcd.io/etcd/client/pkg/v3 v3.5.0/go.mod h1:IJHfcCEKxYu1Os13ZdwCwIUTUVGYTSAM3YSwc9/Ac1g= -go.etcd.io/etcd/client/v2 v2.305.0/go.mod h1:h9puh54ZTgAKtEbut2oe9P4L/oqKCVB6xsXlzd7alYQ= go.opencensus.io v0.21.0/go.mod h1:mSImk1erAIZhrmZN+AvHh14ztQfjbGwt4TtuofqLduU= go.opencensus.io v0.22.0/go.mod h1:+kGneAE2xo2IficOXnaByMWTGM9T73dGwxeWcUqIpI8= go.opencensus.io v0.22.2/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= go.opencensus.io v0.22.3/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= go.opencensus.io v0.22.4/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= -go.opencensus.io v0.22.5/go.mod h1:5pWMHQbX5EPX2/62yrJeAkowc+lfs/XD7Uxpq3pI6kk= -go.opencensus.io v0.23.0/go.mod h1:XItmlyltB5F7CS4xOC1DcqMoFqwtC6OG2xF7mCv7P7E= -go.uber.org/atomic v1.3.2/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE= -go.uber.org/atomic v1.4.0/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE= -go.uber.org/atomic v1.7.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc= -go.uber.org/goleak v1.1.10/go.mod h1:8a7PlsEVH3e/a/GLqe5IIrQx6GzcnRmZEufDUTk4A7A= -go.uber.org/multierr v1.1.0/go.mod h1:wR5kodmAFQ0UK8QlbwjlSNy0Z68gJhDJUG5sjR94q/0= -go.uber.org/multierr v1.6.0/go.mod h1:cdWPpRnG4AhwMwsgIHip0KRBQjJy5kYEpYjJxpXp9iU= -go.uber.org/zap v1.10.0/go.mod h1:vwi/ZaCAaUcBkycHslxD9B2zi4UTXhF60s6SWpuDF0Q= -go.uber.org/zap v1.17.0/go.mod h1:MXVU+bhUf/A7Xi2HNOnopQOrmycQ5Ih87HtOu4q5SSo= -go.uber.org/zap v1.18.1/go.mod h1:xg/QME4nWcxGxrpdeYfq7UvYrLh66cuVKdrbD1XF/NI= -golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= -golang.org/x/crypto v0.0.0-20181029021203-45a5f77698d3/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20190605123033-f99c8df09eb5/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/crypto v0.0.0-20190611184440-5c40567a22f8/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/crypto v0.0.0-20190820162420-60c769a6c586/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20201002170205-7f63de1d35b0/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= @@ -523,8 +267,6 @@ golang.org/x/lint v0.0.0-20190930215403-16217165b5de/go.mod h1:6SW0HCj/g11FgYtHl golang.org/x/lint v0.0.0-20191125180803-fdd1cda4f05f/go.mod h1:5qLYkcX4OjUUV8bRuDixDT3tpyyb+LUpUlRWLxfhWrs= golang.org/x/lint v0.0.0-20200130185559-910be7a94367/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= golang.org/x/lint v0.0.0-20200302205851-738671d3881b/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= -golang.org/x/lint v0.0.0-20201208152925-83fdc39ff7b5/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= -golang.org/x/lint v0.0.0-20210508222113-6edffad5e616/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= golang.org/x/mobile v0.0.0-20190312151609-d3739f865fa6/go.mod h1:z+o9i4GpDbdi3rU15maQ/Ox0txvL9dWGYEHz965HBQE= golang.org/x/mobile v0.0.0-20190719004257-d2bd2a29d028/go.mod h1:E/iHnbuqvinMTCcRqshq8CkpyQDoeVncDDYHnLhea+o= golang.org/x/mod v0.0.0-20190513183733-4bf6d317e70e/go.mod h1:mXi4GBBbnImb6dmsKGUJ2LatrhH/nqhxcFungHvyanc= @@ -533,19 +275,12 @@ golang.org/x/mod v0.1.1-0.20191105210325-c90efee705ee/go.mod h1:QqPTAvyqsEbceGzB golang.org/x/mod v0.1.1-0.20191107180719-034126e5016b/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= -golang.org/x/mod v0.3.1-0.20200828183125-ce943fd02449/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= -golang.org/x/mod v0.4.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= -golang.org/x/mod v0.4.1/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.6.0 h1:b9gGHsz9/HhJ3HF5DHQytPpuwocVTChQJK3AvoLRD5I= golang.org/x/mod v0.6.0/go.mod h1:4mET923SAdbXp2ki8ey+zGs1SLqsuM2Y0uvdZR/fUNI= golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20181023162649-9b4f9f5ad519/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20181114220301-adae6a3d119a/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20181201002055-351d144fa1fc/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20181220203305-927f97764cc3/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= @@ -553,11 +288,9 @@ golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn golang.org/x/net v0.0.0-20190501004415-9ce7a6920f09/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190503192946-f4e77d36d62c/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= -golang.org/x/net v0.0.0-20190613194153-d28f0bde5980/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20190628185345-da137c7871d7/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20190724013045-ca1201d0de80/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20190813141303-74dc4d7220e7/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20190827160401-ba9fcec4b297/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20191209160850-c0dbc17a3553/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20200114155413-6afb5195e5aa/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= @@ -575,16 +308,7 @@ golang.org/x/net v0.0.0-20200625001655-4c5254603344/go.mod h1:/O7V0waA8r7cgGh81R golang.org/x/net v0.0.0-20200707034311-ab3426394381/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= golang.org/x/net v0.0.0-20200822124328-c89045814202/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= -golang.org/x/net v0.0.0-20201031054903-ff519b6c9102/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= -golang.org/x/net v0.0.0-20201110031124-69a78807bb2b/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= -golang.org/x/net v0.0.0-20201209123823-ac852fbbde11/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= -golang.org/x/net v0.0.0-20210119194325-5f4716e94777/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= -golang.org/x/net v0.0.0-20210224082022-3d97a244fca7/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= -golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= -golang.org/x/net v0.0.0-20210316092652-d523dce5a7f4/go.mod h1:RBQZq4jEuRlivfhVLdyRGr576XBO4/greRjx4P4O3yc= golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM= -golang.org/x/net v0.0.0-20210428140749-89ef3d95e781/go.mod h1:OJAsFXCWl8Ukc7SiCT/9KSuxbyM7479/AVlXFRxuMCk= -golang.org/x/net v0.0.0-20210520170846-37e1c6afe023/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/net v0.0.0-20211209124913-491a49abca63/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/net v0.3.1-0.20221206200815-1e63c2f08a10 h1:Frnccbp+ok2GkUS2tC84yAq/U9Vg+0sIO7aRL3T4Xnc= @@ -594,13 +318,6 @@ golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4Iltr golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/oauth2 v0.0.0-20191202225959-858c2ad4c8b6/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= -golang.org/x/oauth2 v0.0.0-20200902213428-5d25da1a8d43/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= -golang.org/x/oauth2 v0.0.0-20201109201403-9fd604954f58/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= -golang.org/x/oauth2 v0.0.0-20201208152858-08078c50e5b5/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= -golang.org/x/oauth2 v0.0.0-20210218202405-ba52d332ba99/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= -golang.org/x/oauth2 v0.0.0-20210220000619-9bb904979d93/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= -golang.org/x/oauth2 v0.0.0-20210313182246-cd4f82c27b84/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= -golang.org/x/oauth2 v0.0.0-20210402161424-2e8d93401602/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b h1:clP8eMhB30EHdc0bd2Twtq6kgU7yl5ub2cQLSdrv1Dg= golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -612,26 +329,17 @@ golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJ golang.org/x/sync v0.0.0-20200317015054-43a5402ce75a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20200625203802-6e8e738ad208/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20201207232520-09787c993a3a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sys v0.0.0-20180823144017-11551d06cbcc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20181026203630-95b1ffbd15a5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20181107165924-66b7b1311ac8/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20181116152217-5ac8a444bdc5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190312061237-fead79001313/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190422165155-953cdadca894/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190502145724-3ef323f4f1fd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190507160741-ecd444e8653b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190606165138-5da285871e9c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190616124812-15dcb6c0061f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190624142023-c5567b49c5d0/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190726091711-fc99dfbffb4e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190826190057-c7b8b68b1456/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190904154756-749cb33beabd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20191001151750-bb3f8db39f24/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20191005200804-aed5e4c7ecf9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= @@ -639,9 +347,7 @@ golang.org/x/sys v0.0.0-20191026070338-33540a1f6037/go.mod h1:h1NjWce9XRLGQEsW7w golang.org/x/sys v0.0.0-20191120155948-bd437916bb0e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20191204072324-ce4227a45e2e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20191228213918-04cbcbbfeed8/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200106162015-b016eb3dc98e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200113162924-86b910548bc1/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200116001909-b77594299b42/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200122134326-e047566fdf82/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200202164722-d101bd2416d5/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200212091648-12a6c2dcc1e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= @@ -654,31 +360,14 @@ golang.org/x/sys v0.0.0-20200511232937-7e40ca221e25/go.mod h1:h1NjWce9XRLGQEsW7w golang.org/x/sys v0.0.0-20200515095857-1151b9dac4a9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200519105757-fe76b779f299/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200523222454-059865788121/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200615200032-f1bc736245b1/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200625212154-ddb9806d33ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200803210538-64077c9b5642/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200831180312-196b9ba8737a/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200905004654-be1d3432aa8f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20201201145000-ef89a241ccb3/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210104204734-6f8348627aad/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210112080510-489259a85091/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210119212857-b64e53b001e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210220050731-9a76102bfb43/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210305230114-8fe3ee5dd75b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210315160823-c6e025ad8005/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210320140829-1e4c9ba3b0c4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210330210617-4fbd30eecc44/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210403161142-5e06dd20ab57/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210426230700-d19ff857e887/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210510120138-977fb7262007/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20210603081109-ebe580a85c40/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210616094352-59db8d763f22/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.3.0 h1:w8ZOecv6NaNa/zC8944JTU3vz4u6Lagfk4RPQxv92NQ= golang.org/x/sys v0.3.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= @@ -693,41 +382,31 @@ golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.3.4/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.3.5/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= golang.org/x/text v0.5.0 h1:OLmvp0KP+FVG99Ct/qFiL/Fhk4zp4QQnZ7b2U+5piUM= golang.org/x/text v0.5.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= -golang.org/x/time v0.0.0-20180412165947-fbb02b2291d2/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= -golang.org/x/time v0.0.0-20210220033141-f8bda1e9f3ba/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20210723032227-1f47c861a9ac/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20220210224613-90d013bbcef8 h1:vVKdlvoWBphwdxWKrFZEuM0kGgGLxUOYcY4U/2Vjg44= golang.org/x/time v0.0.0-20220210224613-90d013bbcef8/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= -golang.org/x/tools v0.0.0-20180221164845-07fd8470d635/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY= golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= golang.org/x/tools v0.0.0-20190312151545-0bb0c0a6e846/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= golang.org/x/tools v0.0.0-20190312170243-e65039ee4138/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= -golang.org/x/tools v0.0.0-20190328211700-ab21143f2384/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= golang.org/x/tools v0.0.0-20190425150028-36563e24a262/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= golang.org/x/tools v0.0.0-20190506145303-2d16b83fe98c/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= golang.org/x/tools v0.0.0-20190606124116-d0a3d012864b/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= -golang.org/x/tools v0.0.0-20190614205625-5aca471b1d59/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= golang.org/x/tools v0.0.0-20190621195816-6e04913cbbac/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= -golang.org/x/tools v0.0.0-20190624222133-a101b041ded4/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= golang.org/x/tools v0.0.0-20190628153133-6cdbf07be9d0/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= golang.org/x/tools v0.0.0-20190816200558-6889da9d5479/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20190911174233-4f2ddba30aff/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20191012152004-8de300cfc20a/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191108193012-7d206e10da11/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191112195655-aa38f8e97acc/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20191113191852-77e3bb0ad9e7/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20191115202509-3a792d9c32b2/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= @@ -755,23 +434,15 @@ golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roY golang.org/x/tools v0.0.0-20200729194436-6467de6f59a7/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= golang.org/x/tools v0.0.0-20200804011535-6c149bb5ef0d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= golang.org/x/tools v0.0.0-20200825202427-b303f430e36d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= -golang.org/x/tools v0.0.0-20200904185747-39188db58858/go.mod h1:Cj7w3i3Rnn0Xh82ur9kSqwfTHTeVxaDqrfMjpcNT6bE= -golang.org/x/tools v0.0.0-20201110124207-079ba7bd75cd/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= -golang.org/x/tools v0.0.0-20201201161351-ac6f37ff4c2a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= -golang.org/x/tools v0.0.0-20201208233053-a543418bbed2/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= -golang.org/x/tools v0.0.0-20201224043029-2b0845dc783e/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= -golang.org/x/tools v0.0.0-20210105154028-b0ab187a4818/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= -golang.org/x/tools v0.1.0/go.mod h1:xkSsbof2nBLbhDlRMhhhyNLN/zl3eTqcnHD5viDpcZ0= golang.org/x/tools v0.1.2/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= -golang.org/x/tools v0.1.5/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= golang.org/x/tools v0.2.0 h1:G6AHpWxTMGY1KyEYoAQ5WTtIekUUvDNjan3ugu60JvE= golang.org/x/tools v0.2.0/go.mod h1:y4OqIKeOV/fWJetJ8bXPU1sEVniLMIyDAZWeHdV+NTA= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 h1:go1bK/D/BFZV2I8cIQd1NKEZ+0owSTG1fDTci4IqFcE= golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -gomodules.xyz/jsonpatch/v2 v2.2.0/go.mod h1:WXp+iVDkoLQqPudfQ9GBlwB2eZ5DKOnjQZCYdOS8GPY= google.golang.org/api v0.4.0/go.mod h1:8k5glujaEP+g9n7WNsDg8QP6cUVNI86fCNMcbazEtwE= google.golang.org/api v0.7.0/go.mod h1:WtwebWUNSVBH/HAw79HIFXZNqEvBhG+Ra+ax0hx3E3M= google.golang.org/api v0.8.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= @@ -788,12 +459,6 @@ google.golang.org/api v0.24.0/go.mod h1:lIXQywCXRcnZPGlsd8NbLnOjtAoL6em04bJ9+z0M google.golang.org/api v0.28.0/go.mod h1:lIXQywCXRcnZPGlsd8NbLnOjtAoL6em04bJ9+z0MncE= google.golang.org/api v0.29.0/go.mod h1:Lcubydp8VUV7KeIHD9z2Bys/sm/vGKnG1UHuDBSrHWM= google.golang.org/api v0.30.0/go.mod h1:QGmEvQ87FHZNiUVJkT14jQNYJ4ZJjdRF23ZXz5138Fc= -google.golang.org/api v0.35.0/go.mod h1:/XrVsuzM0rZmrsbjJutiuftIzeuTQcEeaYcSk/mQ1dg= -google.golang.org/api v0.36.0/go.mod h1:+z5ficQTmoYpPn8LCUNVpK5I7hwkpjbcgqA7I34qYtE= -google.golang.org/api v0.40.0/go.mod h1:fYKFpnQN0DsDSKRVRcQSDQNtqWPfM9i+zNPxepjRCQ8= -google.golang.org/api v0.41.0/go.mod h1:RkxM5lITDfTzmyKFPt+wGrCJbVfniCr2ool8kTBzRTU= -google.golang.org/api v0.43.0/go.mod h1:nQsDGjRXMo4lvh5hP0TKqF244gqhGcr/YSIykhUk/94= -google.golang.org/api v0.44.0/go.mod h1:EBOGZqzyhtvMDoxwS97ctnh0zUmYY6CxqXsc1AvkYD8= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= @@ -825,26 +490,13 @@ google.golang.org/genproto v0.0.0-20200312145019-da6875a35672/go.mod h1:55QSHmfG google.golang.org/genproto v0.0.0-20200331122359-1ee6d9798940/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= google.golang.org/genproto v0.0.0-20200430143042-b979b6f78d84/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= google.golang.org/genproto v0.0.0-20200511104702-f5ebc3bea380/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= -google.golang.org/genproto v0.0.0-20200513103714-09dca8ec2884/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= google.golang.org/genproto v0.0.0-20200515170657-fc4c6c6a6587/go.mod h1:YsZOwe1myG/8QRHRsmBRE1LrgQY60beZKjly0O1fX9U= google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= google.golang.org/genproto v0.0.0-20200618031413-b414f8b61790/go.mod h1:jDfRM7FcilCzHH/e9qn6dsT145K34l5v+OpcnNgKAAA= google.golang.org/genproto v0.0.0-20200729003335-053ba62fc06f/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= google.golang.org/genproto v0.0.0-20200804131852-c06518451d9c/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= google.golang.org/genproto v0.0.0-20200825200019-8632dd797987/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20200904004341-0bd0a958aa1d/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= google.golang.org/genproto v0.0.0-20201019141844-1ed22bb0c154/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20201109203340-2640f1f9cdfb/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20201110150050-8816d57aaa9a/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20201201144952-b05cb90ed32e/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20201210142538-e3217bee35cc/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20201214200347-8c77b98c765d/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20210222152913-aa3ee6e6a81c/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20210303154014-9728d6b83eeb/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20210310155132-4ce2db91004e/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20210319143718-93e7006c17a6/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20210402141018-6c239bbf2bb1/go.mod h1:9lPAdzaEmUacj36I+k7YKbEc5CXzPIeORRgDAUOu28A= -google.golang.org/genproto v0.0.0-20210602131652-f16073e35f0c/go.mod h1:UODoCrxHCcBojKKwX1terBiRUaqAsFqJiF615XL43r0= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= @@ -857,14 +509,6 @@ google.golang.org/grpc v1.28.0/go.mod h1:rpkK4SK4GF4Ach/+MFLZUBavHOvF2JJB5uozKKa google.golang.org/grpc v1.29.1/go.mod h1:itym6AZVZYACWQqET3MqgPpjcuV5QH3BxFS3IjizoKk= google.golang.org/grpc v1.30.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= google.golang.org/grpc v1.31.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= -google.golang.org/grpc v1.31.1/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= -google.golang.org/grpc v1.33.1/go.mod h1:fr5YgcSWrqhRRxogOsw7RzIpsmvOZ6IcH4kBYTpR3n0= -google.golang.org/grpc v1.33.2/go.mod h1:JMHMWHQWaTccqQQlmk3MJZS+GWXOdAesneDmEnv2fbc= -google.golang.org/grpc v1.34.0/go.mod h1:WotjhfgOW/POjDeRt8vscBtXq+2VjORFy659qA51WJ8= -google.golang.org/grpc v1.35.0/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAGRRjU= -google.golang.org/grpc v1.36.0/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAGRRjU= -google.golang.org/grpc v1.36.1/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAGRRjU= -google.golang.org/grpc v1.38.0/go.mod h1:NREThFqKR1f3iQ6oBuvc5LadQuXVGo9rkm5ZGrQdJfM= 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= @@ -879,30 +523,20 @@ google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp0 google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= google.golang.org/protobuf v1.28.1 h1:d0NfwRgPtno5B1Wa6L2DAG+KivqkdutMf1UhdNx175w= google.golang.org/protobuf v1.28.1/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= -gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f h1:BLraFXnmrev5lT+xlilqcH8XK9/i0At2xKjWk4p6zsU= gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= -gopkg.in/cheggaaa/pb.v1 v1.0.25/go.mod h1:V/YB90LKu/1FcN3WVnfiiE5oMCibMjukxqG/qStrOgw= gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI= gopkg.in/fsnotify.v1 v1.4.7/go.mod h1:Tz8NjZHkW78fSQdbUxIjBTcgA1z1m8ZHf0WmKUhAMys= gopkg.in/inf.v0 v0.9.1 h1:73M5CoZyi3ZLMOyDlQh031Cx6N9NDJ2Vvfl76EDAgDc= gopkg.in/inf.v0 v0.9.1/go.mod h1:cWUDdTG/fYaXco+Dcufb5Vnc6Gp2YChqWtbxRZE0mXw= -gopkg.in/ini.v1 v1.51.0/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k= -gopkg.in/ini.v1 v1.62.0/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k= -gopkg.in/natefinch/lumberjack.v2 v2.0.0/go.mod h1:l0ndWWf7gzL7RNwBG7wST/UCcT4T24xpD6X8LsfU/+k= -gopkg.in/resty.v1 v1.12.0/go.mod h1:mDo4pnntr5jdWRML875a/NmxYqAlA73dVijT2AXvQQo= -gopkg.in/square/go-jose.v2 v2.2.2/go.mod h1:M9dMgbHiYLoDGQrXy7OpJDJWiKiU//h+vD76mk0e1AI= gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 h1:uRGJdciOHaEIrze2W8Q3AKkepLTh2hOroT7a+7czfdQ= gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod h1:dt/ZhP58zS4L8KSrWDmTeBkI65Dw0HsyUHuEVlX15mw= -gopkg.in/yaml.v2 v2.0.0-20170812160011-eb3733d160e7/go.mod h1:JAlM8MvJe8wmxCU4Bli9HhUf9+ttbYbLASfIpnQbh74= gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= -gopkg.in/yaml.v2 v2.2.3/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.2.4/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= -gopkg.in/yaml.v2 v2.2.5/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.3.0/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY= @@ -912,8 +546,6 @@ gopkg.in/yaml.v3 v3.0.0-20200615113413-eeeca48fe776/go.mod h1:K4uyk7z7BCEPqu6E+C gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= -gotest.tools/v3 v3.0.2/go.mod h1:3SzNCllyD9/Y+b5r9JIKQ474KzkZyqLqEfYqMsX94Bk= -gotest.tools/v3 v3.0.3/go.mod h1:Z7Lb0S5l+klDB31fvDQX8ss/FlKDxtlFlw3Oa8Ymbl8= honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= honnef.co/go/tools v0.0.0-20190106161140-3f1c8253044a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= honnef.co/go/tools v0.0.0-20190418001031-e561f6794a2a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= @@ -921,63 +553,35 @@ honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWh honnef.co/go/tools v0.0.1-2019.2.3/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt0JzvZhAg= honnef.co/go/tools v0.0.1-2020.1.3/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= honnef.co/go/tools v0.0.1-2020.1.4/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= -k8s.io/api v0.21.3/go.mod h1:hUgeYHUbBp23Ue4qdX9tR8/ANi/g3ehylAqDn9NWVOg= -k8s.io/api v0.22.1/go.mod h1:bh13rkTp3F1XEaLGykbyRD2QaTTzPm0e/BMd8ptFONY= k8s.io/api v0.22.6 h1:acjE5ABt0KpsBI9QCtLqaQEPSF94jOtE/LoFxSYasSE= k8s.io/api v0.22.6/go.mod h1:q1F7IfaNrbi/83ebLy3YFQYLjPSNyunZ/IXQxMmbwCg= -k8s.io/apiextensions-apiserver v0.21.3/go.mod h1:kl6dap3Gd45+21Jnh6utCx8Z2xxLm8LGDkprcd+KbsE= -k8s.io/apimachinery v0.21.3/go.mod h1:H/IM+5vH9kZRNJ4l3x/fXP/5bOPJaVP/guptnZPeCFI= -k8s.io/apimachinery v0.22.1/go.mod h1:O3oNtNadZdeOMxHFVxOreoznohCpy0z6mocxbZr7oJ0= k8s.io/apimachinery v0.22.6 h1:z7vxNRkFX0NToA+8D17kzLZ/T4t+DqwzUlqqbqRepRs= k8s.io/apimachinery v0.22.6/go.mod h1:ZvVLP5iLhwVFg2Yx9Gh5W0um0DUauExbRhe+2Z8I1EU= -k8s.io/apiserver v0.21.3/go.mod h1:eDPWlZG6/cCCMj/JBcEpDoK+I+6i3r9GsChYBHSbAzU= -k8s.io/client-go v0.21.3/go.mod h1:+VPhCgTsaFmGILxR/7E1N0S+ryO010QBeNCv5JwRGYU= -k8s.io/client-go v0.22.1/go.mod h1:BquC5A4UOo4qVDUtoc04/+Nxp1MeHcVc1HJm1KmG8kk= k8s.io/client-go v0.22.6 h1:ugAXeC312xeGXsn7zTRz+btgtLBnW3qYhtUUpVQL7YE= k8s.io/client-go v0.22.6/go.mod h1:TffU4AV2idZGeP+g3kdFZP+oHVHWPL1JYFySOALriw0= -k8s.io/code-generator v0.21.3/go.mod h1:K3y0Bv9Cz2cOW2vXUrNZlFbflhuPvuadW6JdnN6gGKo= -k8s.io/code-generator v0.22.0/go.mod h1:eV77Y09IopzeXOJzndrDyCI88UBok2h6WxAlBwpxa+o= k8s.io/code-generator v0.22.6 h1:nskDbd+etRmWhB/WoaevaFIJfL+lDt5HI7wAIvA4CcQ= k8s.io/code-generator v0.22.6/go.mod h1:iOZwYADSgFPNGWfqHFfg1V0TNJnl1t0WyZluQp4baqU= -k8s.io/component-base v0.21.3/go.mod h1:kkuhtfEHeZM6LkX0saqSK8PbdO7A0HigUngmhhrwfGQ= k8s.io/gengo v0.0.0-20200413195148-3a45101e95ac/go.mod h1:ezvh/TsK7cY6rbqRK0oQQ8IAqLxYwwyPxAX1Pzy0ii0= -k8s.io/gengo v0.0.0-20201203183100-97869a43a9d9/go.mod h1:FiNAH4ZV3gBg2Kwh89tzAEV2be7d5xI0vBa/VySYy3E= k8s.io/gengo v0.0.0-20201214224949-b6c5ce23f027/go.mod h1:FiNAH4ZV3gBg2Kwh89tzAEV2be7d5xI0vBa/VySYy3E= k8s.io/gengo v0.0.0-20220902162205-c0856e24416d h1:U9tB195lKdzwqicbJvyJeOXV7Klv+wNAWENRnXEGi08= k8s.io/gengo v0.0.0-20220902162205-c0856e24416d/go.mod h1:FiNAH4ZV3gBg2Kwh89tzAEV2be7d5xI0vBa/VySYy3E= -k8s.io/klog v0.2.0/go.mod h1:Gq+BEi5rUBO/HRz0bTSXDUcqjScdoY3a9IHpCEIOOfk= k8s.io/klog/v2 v2.0.0/go.mod h1:PBfzABfn139FHAV07az/IF9Wp1bkk3vpT2XSJ76fSDE= k8s.io/klog/v2 v2.2.0/go.mod h1:Od+F08eJP+W3HUb4pSrPpgp9DGU4GzlpG/TmITuYh/Y= -k8s.io/klog/v2 v2.8.0/go.mod h1:hy9LJ/NvuK+iVyP4Ehqva4HxZG/oXyIS3n3Jmire4Ec= k8s.io/klog/v2 v2.9.0/go.mod h1:hy9LJ/NvuK+iVyP4Ehqva4HxZG/oXyIS3n3Jmire4Ec= -k8s.io/klog/v2 v2.10.0/go.mod h1:hy9LJ/NvuK+iVyP4Ehqva4HxZG/oXyIS3n3Jmire4Ec= k8s.io/klog/v2 v2.80.1 h1:atnLQ121W371wYYFawwYx1aEY2eUfs4l3J72wtgAwV4= k8s.io/klog/v2 v2.80.1/go.mod h1:y1WjHnz7Dj687irZUWR/WLkLc5N1YHtjLdmgWjndZn0= -k8s.io/kube-openapi v0.0.0-20210305001622-591a79e4bda7/go.mod h1:wXW5VT87nVfh/iLV8FpR2uDvrFyomxbtb1KivDbvPTE= -k8s.io/kube-openapi v0.0.0-20210421082810-95288971da7e/go.mod h1:vHXdDvt9+2spS2Rx9ql3I8tycm3H9FDfdUoIuKCefvw= k8s.io/kube-openapi v0.0.0-20211109043538-20434351676c h1:jvamsI1tn9V0S8jicyX82qaFC0H/NKxv2e5mbqsgR80= k8s.io/kube-openapi v0.0.0-20211109043538-20434351676c/go.mod h1:vHXdDvt9+2spS2Rx9ql3I8tycm3H9FDfdUoIuKCefvw= -k8s.io/utils v0.0.0-20201110183641-67b214c5f920/go.mod h1:jPW/WVKK9YHAvNhRxK0md/EJ228hCsBRufyofKtW8HA= -k8s.io/utils v0.0.0-20210707171843-4b05e18ac7d9/go.mod h1:jPW/WVKK9YHAvNhRxK0md/EJ228hCsBRufyofKtW8HA= -k8s.io/utils v0.0.0-20210722164352-7f3ee0f31471/go.mod h1:jPW/WVKK9YHAvNhRxK0md/EJ228hCsBRufyofKtW8HA= k8s.io/utils v0.0.0-20210819203725-bdf08cb9a70a/go.mod h1:jPW/WVKK9YHAvNhRxK0md/EJ228hCsBRufyofKtW8HA= -k8s.io/utils v0.0.0-20210820185131-d34e5cb4466e/go.mod h1:jPW/WVKK9YHAvNhRxK0md/EJ228hCsBRufyofKtW8HA= k8s.io/utils v0.0.0-20221107191617-1a15be271d1d h1:0Smp/HP1OH4Rvhe+4B8nWGERtlqAGSftbSbbmm45oFs= k8s.io/utils v0.0.0-20221107191617-1a15be271d1d/go.mod h1:OLgZIPagt7ERELqWJFomSt595RzquPNLL48iOWgYOg0= rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8= rsc.io/quote/v3 v3.1.0/go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0= rsc.io/sampler v1.3.0/go.mod h1:T1hPZKmBbMNahiBKFy5HrXp6adAjACjK9JXDnKaTXpA= -sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.0.19/go.mod h1:LEScyzhFmoF5pso/YSeBstl57mOzx9xlU9n85RGrDQg= -sigs.k8s.io/controller-runtime v0.9.6/go.mod h1:q6PpkM5vqQubEKUKOM6qr06oXGzOBcCby1DA9FbyZeA= -sigs.k8s.io/controller-tools v0.6.2/go.mod h1:oaeGpjXn6+ZSEIQkUe/+3I40PNiDYp9aeawbt3xTgJ8= -sigs.k8s.io/gateway-api v0.4.3 h1:9kdHAcfkyP7jVMSFshc8EYEKNLlFM7hbZL8vCKcMwps= -sigs.k8s.io/gateway-api v0.4.3/go.mod h1:r3eiNP+0el+NTLwaTfOrCNXy8TukC+dIM3ggc+fbNWk= sigs.k8s.io/structured-merge-diff/v4 v4.0.2/go.mod h1:bJZC9H9iH24zzfZ/41RGcq60oK1F7G282QMXDPYydCw= -sigs.k8s.io/structured-merge-diff/v4 v4.1.2/go.mod h1:j/nl6xW8vLS49O8YvXW1ocPhZawJtm+Yrr7PPRQ0Vg4= sigs.k8s.io/structured-merge-diff/v4 v4.2.1/go.mod h1:j/nl6xW8vLS49O8YvXW1ocPhZawJtm+Yrr7PPRQ0Vg4= sigs.k8s.io/structured-merge-diff/v4 v4.2.3 h1:PRbqxJClWWYMNV1dhaG4NsibJbArud9kFxnAMREiWFE= sigs.k8s.io/structured-merge-diff/v4 v4.2.3/go.mod h1:qjx8mGObPmV2aSZepjQjbmb2ihdVs8cGKBraizNC69E= -sigs.k8s.io/yaml v1.1.0/go.mod h1:UJmg0vDUVViEyp3mgSv9WPwZCDxu4rQW1olrI1uml+o= sigs.k8s.io/yaml v1.2.0/go.mod h1:yfXDCHCao9+ENCvLSE62v9VSji2MKu5jeNfTrofGhJc= sigs.k8s.io/yaml v1.3.0 h1:a2VclLzOGrwOHDiV8EfBGhvjHvP46CtW5j6POvhYGGo= sigs.k8s.io/yaml v1.3.0/go.mod h1:GeOyir5tyXNByN85N/dRIT9es5UQNerPYEKK56eTBm8= diff --git a/hack/generate_client.sh b/hack/generate_client.sh index 656a2e0a..b6527e0e 100755 --- a/hack/generate_client.sh +++ b/hack/generate_client.sh @@ -9,11 +9,11 @@ fi set -e TMP_DIR=$(mktemp -d) mkdir -p "${TMP_DIR}"/src/github.com/openkruise/kruise-api -cp -r ./{apps,policy,rollouts,hack,vendor,go.mod} "${TMP_DIR}"/src/github.com/openkruise/kruise-api/ +cp -r ./{apps,policy,hack,vendor,go.mod} "${TMP_DIR}"/src/github.com/openkruise/kruise-api/ (cd "${TMP_DIR}"/src/github.com/openkruise/kruise-api; \ GOPATH=${TMP_DIR} GO111MODULE=on /bin/bash vendor/k8s.io/code-generator/generate-groups.sh all \ - github.com/openkruise/kruise-api/client github.com/openkruise/kruise-api "apps:v1alpha1 apps:v1beta1 policy:v1alpha1 rollouts:v1alpha1" -h ./hack/boilerplate.go.txt) + github.com/openkruise/kruise-api/client github.com/openkruise/kruise-api "apps:v1alpha1 apps:v1beta1 policy:v1alpha1" -h ./hack/boilerplate.go.txt) mkdir -p ./client rm -rf ./client/{clientset,informers,listers} diff --git a/pkg/rollouts/openapi_generated.go b/pkg/rollouts/openapi_generated.go deleted file mode 100644 index bdc5c043..00000000 --- a/pkg/rollouts/openapi_generated.go +++ /dev/null @@ -1,1648 +0,0 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - -/* -Copyright 2022 The Kruise Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by openapi-gen. DO NOT EDIT. - -// This file was autogenerated by openapi-gen. Do not edit it manually! - -package rollouts - -import ( - common "k8s.io/kube-openapi/pkg/common" - spec "k8s.io/kube-openapi/pkg/validation/spec" -) - -func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenAPIDefinition { - return map[string]common.OpenAPIDefinition{ - "github.com/openkruise/kruise-api/rollouts/v1alpha1.BatchRelease": schema_openkruise_kruise_api_rollouts_v1alpha1_BatchRelease(ref), - "github.com/openkruise/kruise-api/rollouts/v1alpha1.BatchReleaseCanaryStatus": schema_openkruise_kruise_api_rollouts_v1alpha1_BatchReleaseCanaryStatus(ref), - "github.com/openkruise/kruise-api/rollouts/v1alpha1.BatchReleaseList": schema_openkruise_kruise_api_rollouts_v1alpha1_BatchReleaseList(ref), - "github.com/openkruise/kruise-api/rollouts/v1alpha1.BatchReleaseSpec": schema_openkruise_kruise_api_rollouts_v1alpha1_BatchReleaseSpec(ref), - "github.com/openkruise/kruise-api/rollouts/v1alpha1.BatchReleaseStatus": schema_openkruise_kruise_api_rollouts_v1alpha1_BatchReleaseStatus(ref), - "github.com/openkruise/kruise-api/rollouts/v1alpha1.CanaryStatus": schema_openkruise_kruise_api_rollouts_v1alpha1_CanaryStatus(ref), - "github.com/openkruise/kruise-api/rollouts/v1alpha1.CanaryStep": schema_openkruise_kruise_api_rollouts_v1alpha1_CanaryStep(ref), - "github.com/openkruise/kruise-api/rollouts/v1alpha1.CanaryStepInfo": schema_openkruise_kruise_api_rollouts_v1alpha1_CanaryStepInfo(ref), - "github.com/openkruise/kruise-api/rollouts/v1alpha1.CanaryStrategy": schema_openkruise_kruise_api_rollouts_v1alpha1_CanaryStrategy(ref), - "github.com/openkruise/kruise-api/rollouts/v1alpha1.DeploymentExtraStatus": schema_openkruise_kruise_api_rollouts_v1alpha1_DeploymentExtraStatus(ref), - "github.com/openkruise/kruise-api/rollouts/v1alpha1.DeploymentStrategy": schema_openkruise_kruise_api_rollouts_v1alpha1_DeploymentStrategy(ref), - "github.com/openkruise/kruise-api/rollouts/v1alpha1.GatewayTrafficRouting": schema_openkruise_kruise_api_rollouts_v1alpha1_GatewayTrafficRouting(ref), - "github.com/openkruise/kruise-api/rollouts/v1alpha1.HTTPRouteInfo": schema_openkruise_kruise_api_rollouts_v1alpha1_HTTPRouteInfo(ref), - "github.com/openkruise/kruise-api/rollouts/v1alpha1.HttpRouteMatch": schema_openkruise_kruise_api_rollouts_v1alpha1_HttpRouteMatch(ref), - "github.com/openkruise/kruise-api/rollouts/v1alpha1.IngressInfo": schema_openkruise_kruise_api_rollouts_v1alpha1_IngressInfo(ref), - "github.com/openkruise/kruise-api/rollouts/v1alpha1.IngressTrafficRouting": schema_openkruise_kruise_api_rollouts_v1alpha1_IngressTrafficRouting(ref), - "github.com/openkruise/kruise-api/rollouts/v1alpha1.NameAndSpecData": schema_openkruise_kruise_api_rollouts_v1alpha1_NameAndSpecData(ref), - "github.com/openkruise/kruise-api/rollouts/v1alpha1.ObjectRef": schema_openkruise_kruise_api_rollouts_v1alpha1_ObjectRef(ref), - "github.com/openkruise/kruise-api/rollouts/v1alpha1.Pod": schema_openkruise_kruise_api_rollouts_v1alpha1_Pod(ref), - "github.com/openkruise/kruise-api/rollouts/v1alpha1.ReleaseBatch": schema_openkruise_kruise_api_rollouts_v1alpha1_ReleaseBatch(ref), - "github.com/openkruise/kruise-api/rollouts/v1alpha1.ReleasePlan": schema_openkruise_kruise_api_rollouts_v1alpha1_ReleasePlan(ref), - "github.com/openkruise/kruise-api/rollouts/v1alpha1.Rollout": schema_openkruise_kruise_api_rollouts_v1alpha1_Rollout(ref), - "github.com/openkruise/kruise-api/rollouts/v1alpha1.RolloutCondition": schema_openkruise_kruise_api_rollouts_v1alpha1_RolloutCondition(ref), - "github.com/openkruise/kruise-api/rollouts/v1alpha1.RolloutHistory": schema_openkruise_kruise_api_rollouts_v1alpha1_RolloutHistory(ref), - "github.com/openkruise/kruise-api/rollouts/v1alpha1.RolloutHistoryList": schema_openkruise_kruise_api_rollouts_v1alpha1_RolloutHistoryList(ref), - "github.com/openkruise/kruise-api/rollouts/v1alpha1.RolloutHistorySpec": schema_openkruise_kruise_api_rollouts_v1alpha1_RolloutHistorySpec(ref), - "github.com/openkruise/kruise-api/rollouts/v1alpha1.RolloutHistoryStatus": schema_openkruise_kruise_api_rollouts_v1alpha1_RolloutHistoryStatus(ref), - "github.com/openkruise/kruise-api/rollouts/v1alpha1.RolloutInfo": schema_openkruise_kruise_api_rollouts_v1alpha1_RolloutInfo(ref), - "github.com/openkruise/kruise-api/rollouts/v1alpha1.RolloutList": schema_openkruise_kruise_api_rollouts_v1alpha1_RolloutList(ref), - "github.com/openkruise/kruise-api/rollouts/v1alpha1.RolloutPause": schema_openkruise_kruise_api_rollouts_v1alpha1_RolloutPause(ref), - "github.com/openkruise/kruise-api/rollouts/v1alpha1.RolloutSpec": schema_openkruise_kruise_api_rollouts_v1alpha1_RolloutSpec(ref), - "github.com/openkruise/kruise-api/rollouts/v1alpha1.RolloutStatus": schema_openkruise_kruise_api_rollouts_v1alpha1_RolloutStatus(ref), - "github.com/openkruise/kruise-api/rollouts/v1alpha1.RolloutStrategy": schema_openkruise_kruise_api_rollouts_v1alpha1_RolloutStrategy(ref), - "github.com/openkruise/kruise-api/rollouts/v1alpha1.ServiceInfo": schema_openkruise_kruise_api_rollouts_v1alpha1_ServiceInfo(ref), - "github.com/openkruise/kruise-api/rollouts/v1alpha1.TrafficRouting": schema_openkruise_kruise_api_rollouts_v1alpha1_TrafficRouting(ref), - "github.com/openkruise/kruise-api/rollouts/v1alpha1.TrafficRoutingInfo": schema_openkruise_kruise_api_rollouts_v1alpha1_TrafficRoutingInfo(ref), - "github.com/openkruise/kruise-api/rollouts/v1alpha1.WorkloadInfo": schema_openkruise_kruise_api_rollouts_v1alpha1_WorkloadInfo(ref), - "github.com/openkruise/kruise-api/rollouts/v1alpha1.WorkloadRef": schema_openkruise_kruise_api_rollouts_v1alpha1_WorkloadRef(ref), - } -} - -func schema_openkruise_kruise_api_rollouts_v1alpha1_BatchRelease(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "kind": { - SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - Type: []string{"string"}, - Format: "", - }, - }, - "apiVersion": { - SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - Type: []string{"string"}, - Format: "", - }, - }, - "metadata": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), - }, - }, - "spec": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/openkruise/kruise-api/rollouts/v1alpha1.BatchReleaseSpec"), - }, - }, - "status": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/openkruise/kruise-api/rollouts/v1alpha1.BatchReleaseStatus"), - }, - }, - }, - }, - }, - Dependencies: []string{ - "github.com/openkruise/kruise-api/rollouts/v1alpha1.BatchReleaseSpec", "github.com/openkruise/kruise-api/rollouts/v1alpha1.BatchReleaseStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, - } -} - -func schema_openkruise_kruise_api_rollouts_v1alpha1_BatchReleaseCanaryStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "batchState": { - SchemaProps: spec.SchemaProps{ - Description: "CurrentBatchState indicates the release state of the current batch.", - Type: []string{"string"}, - Format: "", - }, - }, - "currentBatch": { - SchemaProps: spec.SchemaProps{ - Description: "The current batch the rollout is working on/blocked, it starts from 0", - Default: 0, - Type: []string{"integer"}, - Format: "int32", - }, - }, - "batchReadyTime": { - SchemaProps: spec.SchemaProps{ - Description: "BatchReadyTime is the ready timestamp of the current batch or the last batch. This field is updated once a batch ready, and the batches[x].pausedSeconds relies on this field to calculate the real-time duration.", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), - }, - }, - "updatedReplicas": { - SchemaProps: spec.SchemaProps{ - Description: "UpdatedReplicas is the number of upgraded Pods.", - Type: []string{"integer"}, - Format: "int32", - }, - }, - "updatedReadyReplicas": { - SchemaProps: spec.SchemaProps{ - Description: "UpdatedReadyReplicas is the number upgraded Pods that have a Ready Condition.", - Type: []string{"integer"}, - Format: "int32", - }, - }, - "noNeedUpdateReplicas": { - SchemaProps: spec.SchemaProps{ - Description: "the number of pods that no need to rollback in rollback scene.", - Type: []string{"integer"}, - Format: "int32", - }, - }, - }, - Required: []string{"currentBatch"}, - }, - }, - Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, - } -} - -func schema_openkruise_kruise_api_rollouts_v1alpha1_BatchReleaseList(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "BatchReleaseList contains a list of BatchRelease", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "kind": { - SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - Type: []string{"string"}, - Format: "", - }, - }, - "apiVersion": { - SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - Type: []string{"string"}, - Format: "", - }, - }, - "metadata": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), - }, - }, - "items": { - SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/openkruise/kruise-api/rollouts/v1alpha1.BatchRelease"), - }, - }, - }, - }, - }, - }, - Required: []string{"items"}, - }, - }, - Dependencies: []string{ - "github.com/openkruise/kruise-api/rollouts/v1alpha1.BatchRelease", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, - } -} - -func schema_openkruise_kruise_api_rollouts_v1alpha1_BatchReleaseSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "BatchReleaseSpec defines how to describe an update between different compRevision", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "targetReference": { - SchemaProps: spec.SchemaProps{ - Description: "TargetRef contains the GVK and name of the workload that we need to upgrade to.", - Default: map[string]interface{}{}, - Ref: ref("github.com/openkruise/kruise-api/rollouts/v1alpha1.ObjectRef"), - }, - }, - "releasePlan": { - SchemaProps: spec.SchemaProps{ - Description: "ReleasePlan is the details on how to rollout the resources", - Default: map[string]interface{}{}, - Ref: ref("github.com/openkruise/kruise-api/rollouts/v1alpha1.ReleasePlan"), - }, - }, - }, - Required: []string{"targetReference", "releasePlan"}, - }, - }, - Dependencies: []string{ - "github.com/openkruise/kruise-api/rollouts/v1alpha1.ObjectRef", "github.com/openkruise/kruise-api/rollouts/v1alpha1.ReleasePlan"}, - } -} - -func schema_openkruise_kruise_api_rollouts_v1alpha1_BatchReleaseStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "BatchReleaseStatus defines the observed state of a release plan", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "conditions": { - SchemaProps: spec.SchemaProps{ - Description: "Conditions represents the observed process state of each phase during executing the release plan.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/openkruise/kruise-api/rollouts/v1alpha1.RolloutCondition"), - }, - }, - }, - }, - }, - "canaryStatus": { - SchemaProps: spec.SchemaProps{ - Description: "CanaryStatus describes the state of the canary rollout.", - Default: map[string]interface{}{}, - Ref: ref("github.com/openkruise/kruise-api/rollouts/v1alpha1.BatchReleaseCanaryStatus"), - }, - }, - "stableRevision": { - SchemaProps: spec.SchemaProps{ - Description: "StableRevision is the pod-template-hash of stable revision pod template.", - Type: []string{"string"}, - Format: "", - }, - }, - "updateRevision": { - SchemaProps: spec.SchemaProps{ - Description: "UpdateRevision is the pod-template-hash of update revision pod template.", - Type: []string{"string"}, - Format: "", - }, - }, - "observedGeneration": { - SchemaProps: spec.SchemaProps{ - Description: "ObservedGeneration is the most recent generation observed for this BatchRelease. It corresponds to this BatchRelease's generation, which is updated on mutation by the API Server, and only if BatchRelease Spec was changed, its generation will increase 1.", - Type: []string{"integer"}, - Format: "int64", - }, - }, - "observedRolloutID": { - SchemaProps: spec.SchemaProps{ - Description: "ObservedRolloutID is the most recent rollout-id observed for this BatchRelease. If RolloutID was changed, we will restart to roll out from batch 0, to ensure the batch-id and rollout-id labels of Pods are correct.", - Type: []string{"string"}, - Format: "", - }, - }, - "observedWorkloadReplicas": { - SchemaProps: spec.SchemaProps{ - Description: "ObservedWorkloadReplicas is observed replicas of target referenced workload. This field is designed to deal with scaling event during rollout, if this field changed, it means that the workload is scaling during rollout.", - Type: []string{"integer"}, - Format: "int32", - }, - }, - "collisionCount": { - SchemaProps: spec.SchemaProps{ - Description: "Count of hash collisions for creating canary Deployment. The controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest canary Deployment.", - Type: []string{"integer"}, - Format: "int32", - }, - }, - "observedReleasePlanHash": { - SchemaProps: spec.SchemaProps{ - Description: "ObservedReleasePlanHash is a hash code of observed itself spec.releasePlan.", - Type: []string{"string"}, - Format: "", - }, - }, - "phase": { - SchemaProps: spec.SchemaProps{ - Description: "Phase is the release plan phase, which indicates the current state of release plan state machine in BatchRelease controller.", - Type: []string{"string"}, - Format: "", - }, - }, - }, - }, - }, - Dependencies: []string{ - "github.com/openkruise/kruise-api/rollouts/v1alpha1.BatchReleaseCanaryStatus", "github.com/openkruise/kruise-api/rollouts/v1alpha1.RolloutCondition"}, - } -} - -func schema_openkruise_kruise_api_rollouts_v1alpha1_CanaryStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "CanaryStatus status fields that only pertain to the canary rollout", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "observedWorkloadGeneration": { - SchemaProps: spec.SchemaProps{ - Description: "observedWorkloadGeneration is the most recent generation observed for this Rollout ref workload generation.", - Type: []string{"integer"}, - Format: "int64", - }, - }, - "observedRolloutID": { - SchemaProps: spec.SchemaProps{ - Description: "ObservedRolloutID will record the newest spec.RolloutID if status.canaryRevision equals to workload.updateRevision", - Type: []string{"string"}, - Format: "", - }, - }, - "rolloutHash": { - SchemaProps: spec.SchemaProps{ - Description: "RolloutHash from rollout.spec object", - Type: []string{"string"}, - Format: "", - }, - }, - "stableRevision": { - SchemaProps: spec.SchemaProps{ - Description: "StableRevision indicates the revision of stable pods", - Type: []string{"string"}, - Format: "", - }, - }, - "canaryRevision": { - SchemaProps: spec.SchemaProps{ - Description: "CanaryRevision is calculated by rollout based on podTemplateHash, and the internal logic flow uses It may be different from rs podTemplateHash in different k8s versions, so it cannot be used as service selector label", - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - "podTemplateHash": { - SchemaProps: spec.SchemaProps{ - Description: "pod template hash is used as service selector label", - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - "canaryReplicas": { - SchemaProps: spec.SchemaProps{ - Description: "CanaryReplicas the numbers of canary revision pods", - Default: 0, - Type: []string{"integer"}, - Format: "int32", - }, - }, - "canaryReadyReplicas": { - SchemaProps: spec.SchemaProps{ - Description: "CanaryReadyReplicas the numbers of ready canary revision pods", - Default: 0, - Type: []string{"integer"}, - Format: "int32", - }, - }, - "currentStepIndex": { - SchemaProps: spec.SchemaProps{ - Description: "CurrentStepIndex defines the current step of the rollout is on. If the current step index is null, the controller will execute the rollout.", - Default: 0, - Type: []string{"integer"}, - Format: "int32", - }, - }, - "currentStepState": { - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - "message": { - SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", - }, - }, - "lastUpdateTime": { - SchemaProps: spec.SchemaProps{ - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), - }, - }, - }, - Required: []string{"canaryRevision", "podTemplateHash", "canaryReplicas", "canaryReadyReplicas", "currentStepState"}, - }, - }, - Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, - } -} - -func schema_openkruise_kruise_api_rollouts_v1alpha1_CanaryStep(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "CanaryStep defines a step of a canary workload.", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "weight": { - SchemaProps: spec.SchemaProps{ - Description: "Weight indicate how many percentage of traffic the canary pods should receive", - Type: []string{"integer"}, - Format: "int32", - }, - }, - "replicas": { - SchemaProps: spec.SchemaProps{ - Description: "Replicas is the number of expected canary pods in this batch it can be an absolute number (ex: 5) or a percentage of total pods.", - Ref: ref("k8s.io/apimachinery/pkg/util/intstr.IntOrString"), - }, - }, - "pause": { - SchemaProps: spec.SchemaProps{ - Description: "Pause defines a pause stage for a rollout, manual or auto", - Default: map[string]interface{}{}, - Ref: ref("github.com/openkruise/kruise-api/rollouts/v1alpha1.RolloutPause"), - }, - }, - "matches": { - SchemaProps: spec.SchemaProps{ - Description: "Matches define conditions used for matching the incoming HTTP requests to canary service. Each match is independent, i.e. this rule will be matched if **any** one of the matches is satisfied. If Gateway API, current only support one match. And cannot support both weight and matches, if both are configured, then matches takes precedence.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/openkruise/kruise-api/rollouts/v1alpha1.HttpRouteMatch"), - }, - }, - }, - }, - }, - }, - }, - }, - Dependencies: []string{ - "github.com/openkruise/kruise-api/rollouts/v1alpha1.HttpRouteMatch", "github.com/openkruise/kruise-api/rollouts/v1alpha1.RolloutPause", "k8s.io/apimachinery/pkg/util/intstr.IntOrString"}, - } -} - -func schema_openkruise_kruise_api_rollouts_v1alpha1_CanaryStepInfo(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "CanaryStepInfo indicates the pods for a revision", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "canaryStepIndex": { - SchemaProps: spec.SchemaProps{ - Description: "CanaryStepIndex indicates step this revision", - Type: []string{"integer"}, - Format: "int32", - }, - }, - "pods": { - SchemaProps: spec.SchemaProps{ - Description: "Pods indicates the pods information", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/openkruise/kruise-api/rollouts/v1alpha1.Pod"), - }, - }, - }, - }, - }, - }, - }, - }, - Dependencies: []string{ - "github.com/openkruise/kruise-api/rollouts/v1alpha1.Pod"}, - } -} - -func schema_openkruise_kruise_api_rollouts_v1alpha1_CanaryStrategy(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "CanaryStrategy defines parameters for a Replica Based Canary", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "steps": { - SchemaProps: spec.SchemaProps{ - Description: "Steps define the order of phases to execute release in batches(20%, 40%, 60%, 80%, 100%)", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/openkruise/kruise-api/rollouts/v1alpha1.CanaryStep"), - }, - }, - }, - }, - }, - "trafficRoutings": { - SchemaProps: spec.SchemaProps{ - Description: "TrafficRoutings hosts all the supported service meshes supported to enable more fine-grained traffic routing todo current only support one TrafficRouting", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/openkruise/kruise-api/rollouts/v1alpha1.TrafficRouting"), - }, - }, - }, - }, - }, - "failureThreshold": { - SchemaProps: spec.SchemaProps{ - Description: "FailureThreshold indicates how many failed pods can be tolerated in all upgraded pods. Only when FailureThreshold are satisfied, Rollout can enter ready state. If FailureThreshold is nil, Rollout will use the MaxUnavailable of workload as its FailureThreshold. Defaults to nil.", - Ref: ref("k8s.io/apimachinery/pkg/util/intstr.IntOrString"), - }, - }, - }, - }, - }, - Dependencies: []string{ - "github.com/openkruise/kruise-api/rollouts/v1alpha1.CanaryStep", "github.com/openkruise/kruise-api/rollouts/v1alpha1.TrafficRouting", "k8s.io/apimachinery/pkg/util/intstr.IntOrString"}, - } -} - -func schema_openkruise_kruise_api_rollouts_v1alpha1_DeploymentExtraStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "DeploymentExtraStatus is extra status field for Advanced Deployment", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "updatedReadyReplicas": { - SchemaProps: spec.SchemaProps{ - Description: "UpdatedReadyReplicas the number of pods that has been updated and ready.", - Type: []string{"integer"}, - Format: "int32", - }, - }, - "expectedUpdatedReplicas": { - SchemaProps: spec.SchemaProps{ - Description: "ExpectedUpdatedReplicas is an absolute number calculated based on Partition and Deployment.Spec.Replicas, means how many pods are expected be updated under current strategy. This field is designed to avoid users to fall into the details of algorithm for Partition calculation.", - Type: []string{"integer"}, - Format: "int32", - }, - }, - }, - }, - }, - } -} - -func schema_openkruise_kruise_api_rollouts_v1alpha1_DeploymentStrategy(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "DeploymentStrategy is strategy field for Advanced Deployment", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "rollingStyle": { - SchemaProps: spec.SchemaProps{ - Description: "RollingStyle define the behavior of rolling for deployment.", - Type: []string{"string"}, - Format: "", - }, - }, - "rollingUpdate": { - SchemaProps: spec.SchemaProps{ - Description: "original deployment strategy rolling update fields", - Ref: ref("k8s.io/api/apps/v1.RollingUpdateDeployment"), - }, - }, - "paused": { - SchemaProps: spec.SchemaProps{ - Description: "Paused = true will block the upgrade of Pods", - Type: []string{"boolean"}, - Format: "", - }, - }, - "partition": { - SchemaProps: spec.SchemaProps{ - Description: "Partition describe how many Pods should be updated during rollout. We use this field to implement partition-style rolling update.", - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/util/intstr.IntOrString"), - }, - }, - }, - }, - }, - Dependencies: []string{ - "k8s.io/api/apps/v1.RollingUpdateDeployment", "k8s.io/apimachinery/pkg/util/intstr.IntOrString"}, - } -} - -func schema_openkruise_kruise_api_rollouts_v1alpha1_GatewayTrafficRouting(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "GatewayTrafficRouting configuration for gateway api", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "httpRouteName": { - SchemaProps: spec.SchemaProps{ - Description: "HTTPRouteName refers to the name of an `HTTPRoute` resource in the same namespace as the `Rollout`", - Type: []string{"string"}, - Format: "", - }, - }, - }, - }, - }, - } -} - -func schema_openkruise_kruise_api_rollouts_v1alpha1_HTTPRouteInfo(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "HTTPRouteInfo indicates information of gateway API", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "name": { - SchemaProps: spec.SchemaProps{ - Description: "Name indicates the name of object ref, such as rollout name, workload name, ingress name, etc.", - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - "data": { - SchemaProps: spec.SchemaProps{ - Description: "Data indecates the spec of object ref", - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/runtime.RawExtension"), - }, - }, - }, - Required: []string{"name"}, - }, - }, - Dependencies: []string{ - "k8s.io/apimachinery/pkg/runtime.RawExtension"}, - } -} - -func schema_openkruise_kruise_api_rollouts_v1alpha1_HttpRouteMatch(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "headers": { - SchemaProps: spec.SchemaProps{ - Description: "Headers specifies HTTP request header matchers. Multiple match values are ANDed together, meaning, a request must match all the specified headers to select the route.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("sigs.k8s.io/gateway-api/apis/v1alpha2.HTTPHeaderMatch"), - }, - }, - }, - }, - }, - }, - }, - }, - Dependencies: []string{ - "sigs.k8s.io/gateway-api/apis/v1alpha2.HTTPHeaderMatch"}, - } -} - -func schema_openkruise_kruise_api_rollouts_v1alpha1_IngressInfo(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "IngressInfo indicates information of the ingress related", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "name": { - SchemaProps: spec.SchemaProps{ - Description: "Name indicates the name of object ref, such as rollout name, workload name, ingress name, etc.", - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - "data": { - SchemaProps: spec.SchemaProps{ - Description: "Data indecates the spec of object ref", - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/runtime.RawExtension"), - }, - }, - }, - Required: []string{"name"}, - }, - }, - Dependencies: []string{ - "k8s.io/apimachinery/pkg/runtime.RawExtension"}, - } -} - -func schema_openkruise_kruise_api_rollouts_v1alpha1_IngressTrafficRouting(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "IngressTrafficRouting configuration for ingress controller to control traffic routing", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "classType": { - SchemaProps: spec.SchemaProps{ - Description: "ClassType refers to the type of `Ingress`. current support nginx, aliyun-alb. default is nginx.", - Type: []string{"string"}, - Format: "", - }, - }, - "name": { - SchemaProps: spec.SchemaProps{ - Description: "Name refers to the name of an `Ingress` resource in the same namespace as the `Rollout`", - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, - Required: []string{"name"}, - }, - }, - } -} - -func schema_openkruise_kruise_api_rollouts_v1alpha1_NameAndSpecData(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "name": { - SchemaProps: spec.SchemaProps{ - Description: "Name indicates the name of object ref, such as rollout name, workload name, ingress name, etc.", - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - "data": { - SchemaProps: spec.SchemaProps{ - Description: "Data indecates the spec of object ref", - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/runtime.RawExtension"), - }, - }, - }, - Required: []string{"name"}, - }, - }, - Dependencies: []string{ - "k8s.io/apimachinery/pkg/runtime.RawExtension"}, - } -} - -func schema_openkruise_kruise_api_rollouts_v1alpha1_ObjectRef(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "workloadRef": { - SchemaProps: spec.SchemaProps{ - Description: "WorkloadRef contains enough information to let you identify a workload for Rollout Batch release of the bypass", - Ref: ref("github.com/openkruise/kruise-api/rollouts/v1alpha1.WorkloadRef"), - }, - }, - }, - }, - }, - Dependencies: []string{ - "github.com/openkruise/kruise-api/rollouts/v1alpha1.WorkloadRef"}, - } -} - -func schema_openkruise_kruise_api_rollouts_v1alpha1_Pod(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "Pod indicates the information of a pod, including name, ip, node_name.", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "name": { - SchemaProps: spec.SchemaProps{ - Description: "Name indicates the node name", - Type: []string{"string"}, - Format: "", - }, - }, - "ip": { - SchemaProps: spec.SchemaProps{ - Description: "IP indicates the pod ip", - Type: []string{"string"}, - Format: "", - }, - }, - "nodeName": { - SchemaProps: spec.SchemaProps{ - Description: "NodeName indicates the node which pod is located at", - Type: []string{"string"}, - Format: "", - }, - }, - }, - }, - }, - } -} - -func schema_openkruise_kruise_api_rollouts_v1alpha1_ReleaseBatch(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "ReleaseBatch is used to describe how each batch release should be", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "canaryReplicas": { - SchemaProps: spec.SchemaProps{ - Description: "CanaryReplicas is the number of upgraded pods that should have in this batch. it can be an absolute number (ex: 5) or a percentage of workload replicas. batches[i].canaryReplicas should less than or equal to batches[j].canaryReplicas if i < j.", - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/util/intstr.IntOrString"), - }, - }, - }, - Required: []string{"canaryReplicas"}, - }, - }, - Dependencies: []string{ - "k8s.io/apimachinery/pkg/util/intstr.IntOrString"}, - } -} - -func schema_openkruise_kruise_api_rollouts_v1alpha1_ReleasePlan(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "ReleasePlan fines the details of the release plan", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "batches": { - SchemaProps: spec.SchemaProps{ - Description: "Batches is the details on each batch of the ReleasePlan. Users can specify their batch plan in this field, such as: batches: - canaryReplicas: 1 # batches 0 - canaryReplicas: 2 # batches 1 - canaryReplicas: 5 # batches 2 Not that these canaryReplicas should be a non-decreasing sequence.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/openkruise/kruise-api/rollouts/v1alpha1.ReleaseBatch"), - }, - }, - }, - }, - }, - "batchPartition": { - SchemaProps: spec.SchemaProps{ - Description: "All pods in the batches up to the batchPartition (included) will have the target resource specification while the rest still is the stable revision. This is designed for the operators to manually rollout. Default is nil, which means no partition and will release all batches. BatchPartition start from 0.", - Type: []string{"integer"}, - Format: "int32", - }, - }, - "rolloutID": { - SchemaProps: spec.SchemaProps{ - Description: "RolloutID indicates an id for each rollout progress", - Type: []string{"string"}, - Format: "", - }, - }, - "failureThreshold": { - SchemaProps: spec.SchemaProps{ - Description: "FailureThreshold indicates how many failed pods can be tolerated in all upgraded pods. Only when FailureThreshold are satisfied, Rollout can enter ready state. If FailureThreshold is nil, Rollout will use the MaxUnavailable of workload as its FailureThreshold. Defaults to nil.", - Ref: ref("k8s.io/apimachinery/pkg/util/intstr.IntOrString"), - }, - }, - "finalizingPolicy": { - SchemaProps: spec.SchemaProps{ - Description: "FinalizingPolicy define the behavior of controller when phase enter Finalizing Defaults to \"Immediate\"", - Type: []string{"string"}, - Format: "", - }, - }, - }, - }, - }, - Dependencies: []string{ - "github.com/openkruise/kruise-api/rollouts/v1alpha1.ReleaseBatch", "k8s.io/apimachinery/pkg/util/intstr.IntOrString"}, - } -} - -func schema_openkruise_kruise_api_rollouts_v1alpha1_Rollout(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "Rollout is the Schema for the rollouts API", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "kind": { - SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - Type: []string{"string"}, - Format: "", - }, - }, - "apiVersion": { - SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - Type: []string{"string"}, - Format: "", - }, - }, - "metadata": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), - }, - }, - "spec": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/openkruise/kruise-api/rollouts/v1alpha1.RolloutSpec"), - }, - }, - "status": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/openkruise/kruise-api/rollouts/v1alpha1.RolloutStatus"), - }, - }, - }, - }, - }, - Dependencies: []string{ - "github.com/openkruise/kruise-api/rollouts/v1alpha1.RolloutSpec", "github.com/openkruise/kruise-api/rollouts/v1alpha1.RolloutStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, - } -} - -func schema_openkruise_kruise_api_rollouts_v1alpha1_RolloutCondition(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "RolloutCondition describes the state of a rollout at a certain point.", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "type": { - SchemaProps: spec.SchemaProps{ - Description: "Type of rollout condition.", - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - "status": { - SchemaProps: spec.SchemaProps{ - Description: "Phase of the condition, one of True, False, Unknown.", - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - "lastUpdateTime": { - SchemaProps: spec.SchemaProps{ - Description: "The last time this condition was updated.", - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), - }, - }, - "lastTransitionTime": { - SchemaProps: spec.SchemaProps{ - Description: "Last time the condition transitioned from one status to another.", - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), - }, - }, - "reason": { - SchemaProps: spec.SchemaProps{ - Description: "The reason for the condition's last transition.", - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - "message": { - SchemaProps: spec.SchemaProps{ - Description: "A human readable message indicating details about the transition.", - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, - Required: []string{"type", "status", "reason", "message"}, - }, - }, - Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, - } -} - -func schema_openkruise_kruise_api_rollouts_v1alpha1_RolloutHistory(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "RolloutHistory is the Schema for the rollouthistories API", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "kind": { - SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - Type: []string{"string"}, - Format: "", - }, - }, - "apiVersion": { - SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - Type: []string{"string"}, - Format: "", - }, - }, - "metadata": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), - }, - }, - "spec": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/openkruise/kruise-api/rollouts/v1alpha1.RolloutHistorySpec"), - }, - }, - "status": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/openkruise/kruise-api/rollouts/v1alpha1.RolloutHistoryStatus"), - }, - }, - }, - }, - }, - Dependencies: []string{ - "github.com/openkruise/kruise-api/rollouts/v1alpha1.RolloutHistorySpec", "github.com/openkruise/kruise-api/rollouts/v1alpha1.RolloutHistoryStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, - } -} - -func schema_openkruise_kruise_api_rollouts_v1alpha1_RolloutHistoryList(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "RolloutHistoryList contains a list of RolloutHistory", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "kind": { - SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - Type: []string{"string"}, - Format: "", - }, - }, - "apiVersion": { - SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - Type: []string{"string"}, - Format: "", - }, - }, - "metadata": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), - }, - }, - "items": { - SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/openkruise/kruise-api/rollouts/v1alpha1.RolloutHistory"), - }, - }, - }, - }, - }, - }, - Required: []string{"items"}, - }, - }, - Dependencies: []string{ - "github.com/openkruise/kruise-api/rollouts/v1alpha1.RolloutHistory", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, - } -} - -func schema_openkruise_kruise_api_rollouts_v1alpha1_RolloutHistorySpec(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "RolloutHistorySpec defines the desired state of RolloutHistory", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "rollout": { - SchemaProps: spec.SchemaProps{ - Description: "Rollout indicates information of the rollout related with rollouthistory", - Default: map[string]interface{}{}, - Ref: ref("github.com/openkruise/kruise-api/rollouts/v1alpha1.RolloutInfo"), - }, - }, - "workload": { - SchemaProps: spec.SchemaProps{ - Description: "Workload indicates information of the workload, such as cloneset, deployment, advanced statefulset", - Default: map[string]interface{}{}, - Ref: ref("github.com/openkruise/kruise-api/rollouts/v1alpha1.WorkloadInfo"), - }, - }, - "service": { - SchemaProps: spec.SchemaProps{ - Description: "Service indicates information of the service related with workload", - Default: map[string]interface{}{}, - Ref: ref("github.com/openkruise/kruise-api/rollouts/v1alpha1.ServiceInfo"), - }, - }, - "trafficRouting": { - SchemaProps: spec.SchemaProps{ - Description: "TrafficRouting indicates information of traffic route related with workload", - Default: map[string]interface{}{}, - Ref: ref("github.com/openkruise/kruise-api/rollouts/v1alpha1.TrafficRoutingInfo"), - }, - }, - }, - }, - }, - Dependencies: []string{ - "github.com/openkruise/kruise-api/rollouts/v1alpha1.RolloutInfo", "github.com/openkruise/kruise-api/rollouts/v1alpha1.ServiceInfo", "github.com/openkruise/kruise-api/rollouts/v1alpha1.TrafficRoutingInfo", "github.com/openkruise/kruise-api/rollouts/v1alpha1.WorkloadInfo"}, - } -} - -func schema_openkruise_kruise_api_rollouts_v1alpha1_RolloutHistoryStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "RolloutHistoryStatus defines the observed state of RolloutHistory", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "phase": { - SchemaProps: spec.SchemaProps{ - Description: "Phase indicates phase of RolloutHistory, just \"\" or \"completed\"", - Type: []string{"string"}, - Format: "", - }, - }, - "canarySteps": { - SchemaProps: spec.SchemaProps{ - Description: "CanarySteps indicates the pods released each step", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/openkruise/kruise-api/rollouts/v1alpha1.CanaryStepInfo"), - }, - }, - }, - }, - }, - }, - }, - }, - Dependencies: []string{ - "github.com/openkruise/kruise-api/rollouts/v1alpha1.CanaryStepInfo"}, - } -} - -func schema_openkruise_kruise_api_rollouts_v1alpha1_RolloutInfo(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "RolloutInfo indicates information of the rollout related", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "rolloutID": { - SchemaProps: spec.SchemaProps{ - Description: "RolloutID indicates the new rollout if there is no new RolloutID this time, ignore it and not execute RolloutHistory", - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - "name": { - SchemaProps: spec.SchemaProps{ - Description: "Name indicates the name of object ref, such as rollout name, workload name, ingress name, etc.", - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - "data": { - SchemaProps: spec.SchemaProps{ - Description: "Data indecates the spec of object ref", - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/runtime.RawExtension"), - }, - }, - }, - Required: []string{"rolloutID", "name"}, - }, - }, - Dependencies: []string{ - "k8s.io/apimachinery/pkg/runtime.RawExtension"}, - } -} - -func schema_openkruise_kruise_api_rollouts_v1alpha1_RolloutList(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "RolloutList contains a list of Rollout", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "kind": { - SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - Type: []string{"string"}, - Format: "", - }, - }, - "apiVersion": { - SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - Type: []string{"string"}, - Format: "", - }, - }, - "metadata": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), - }, - }, - "items": { - SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/openkruise/kruise-api/rollouts/v1alpha1.Rollout"), - }, - }, - }, - }, - }, - }, - Required: []string{"items"}, - }, - }, - Dependencies: []string{ - "github.com/openkruise/kruise-api/rollouts/v1alpha1.Rollout", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, - } -} - -func schema_openkruise_kruise_api_rollouts_v1alpha1_RolloutPause(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "RolloutPause defines a pause stage for a rollout", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "duration": { - SchemaProps: spec.SchemaProps{ - Description: "Duration the amount of time to wait before moving to the next step.", - Type: []string{"integer"}, - Format: "int32", - }, - }, - }, - }, - }, - } -} - -func schema_openkruise_kruise_api_rollouts_v1alpha1_RolloutSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "RolloutSpec defines the desired state of Rollout", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "objectRef": { - SchemaProps: spec.SchemaProps{ - Description: "INSERT ADDITIONAL SPEC FIELDS - desired state of cluster Important: Run \"make\" to regenerate code after modifying this file ObjectRef indicates workload", - Default: map[string]interface{}{}, - Ref: ref("github.com/openkruise/kruise-api/rollouts/v1alpha1.ObjectRef"), - }, - }, - "strategy": { - SchemaProps: spec.SchemaProps{ - Description: "rollout strategy", - Default: map[string]interface{}{}, - Ref: ref("github.com/openkruise/kruise-api/rollouts/v1alpha1.RolloutStrategy"), - }, - }, - "rolloutID": { - SchemaProps: spec.SchemaProps{ - Description: "DeprecatedRolloutID is the deprecated field. It is recommended that configure RolloutId in workload.annotations[rollouts.kruise.io/rollout-id]. RolloutID should be changed before each workload revision publication. It is to distinguish consecutive multiple workload publications and rollout progress.", - Type: []string{"string"}, - Format: "", - }, - }, - }, - Required: []string{"objectRef", "strategy"}, - }, - }, - Dependencies: []string{ - "github.com/openkruise/kruise-api/rollouts/v1alpha1.ObjectRef", "github.com/openkruise/kruise-api/rollouts/v1alpha1.RolloutStrategy"}, - } -} - -func schema_openkruise_kruise_api_rollouts_v1alpha1_RolloutStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "RolloutStatus defines the observed state of Rollout", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "observedGeneration": { - SchemaProps: spec.SchemaProps{ - Description: "observedGeneration is the most recent generation observed for this Rollout.", - Type: []string{"integer"}, - Format: "int64", - }, - }, - "canaryStatus": { - SchemaProps: spec.SchemaProps{ - Description: "Canary describes the state of the canary rollout", - Ref: ref("github.com/openkruise/kruise-api/rollouts/v1alpha1.CanaryStatus"), - }, - }, - "conditions": { - SchemaProps: spec.SchemaProps{ - Description: "Conditions a list of conditions a rollout can have.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/openkruise/kruise-api/rollouts/v1alpha1.RolloutCondition"), - }, - }, - }, - }, - }, - "phase": { - SchemaProps: spec.SchemaProps{ - Description: "BlueGreenStatus *BlueGreenStatus `json:\"blueGreenStatus,omitempty\"` Phase is the rollout phase.", - Type: []string{"string"}, - Format: "", - }, - }, - "message": { - SchemaProps: spec.SchemaProps{ - Description: "Message provides details on why the rollout is in its current phase", - Type: []string{"string"}, - Format: "", - }, - }, - }, - }, - }, - Dependencies: []string{ - "github.com/openkruise/kruise-api/rollouts/v1alpha1.CanaryStatus", "github.com/openkruise/kruise-api/rollouts/v1alpha1.RolloutCondition"}, - } -} - -func schema_openkruise_kruise_api_rollouts_v1alpha1_RolloutStrategy(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "RolloutStrategy defines strategy to apply during next rollout", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "paused": { - SchemaProps: spec.SchemaProps{ - Description: "Paused indicates that the Rollout is paused. Default value is false", - Type: []string{"boolean"}, - Format: "", - }, - }, - "canary": { - SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/openkruise/kruise-api/rollouts/v1alpha1.CanaryStrategy"), - }, - }, - }, - }, - }, - Dependencies: []string{ - "github.com/openkruise/kruise-api/rollouts/v1alpha1.CanaryStrategy"}, - } -} - -func schema_openkruise_kruise_api_rollouts_v1alpha1_ServiceInfo(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "ServiceInfo indicates information of the service related", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "name": { - SchemaProps: spec.SchemaProps{ - Description: "Name indicates the name of object ref, such as rollout name, workload name, ingress name, etc.", - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - "data": { - SchemaProps: spec.SchemaProps{ - Description: "Data indecates the spec of object ref", - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/runtime.RawExtension"), - }, - }, - }, - Required: []string{"name"}, - }, - }, - Dependencies: []string{ - "k8s.io/apimachinery/pkg/runtime.RawExtension"}, - } -} - -func schema_openkruise_kruise_api_rollouts_v1alpha1_TrafficRouting(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "TrafficRouting hosts all the different configuration for supported service meshes to enable more fine-grained traffic routing", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "service": { - SchemaProps: spec.SchemaProps{ - Description: "Service holds the name of a service which selects pods with stable version and don't select any pods with canary version.", - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - "gracePeriodSeconds": { - SchemaProps: spec.SchemaProps{ - Description: "Optional duration in seconds the traffic provider(e.g. nginx ingress controller) consumes the service, ingress configuration changes gracefully.", - Type: []string{"integer"}, - Format: "int32", - }, - }, - "ingress": { - SchemaProps: spec.SchemaProps{ - Description: "Ingress holds Ingress specific configuration to route traffic, e.g. Nginx, Alb.", - Ref: ref("github.com/openkruise/kruise-api/rollouts/v1alpha1.IngressTrafficRouting"), - }, - }, - "gateway": { - SchemaProps: spec.SchemaProps{ - Description: "Gateway holds Gateway specific configuration to route traffic Gateway configuration only supports >= v0.4.0 (v1alpha2).", - Ref: ref("github.com/openkruise/kruise-api/rollouts/v1alpha1.GatewayTrafficRouting"), - }, - }, - }, - Required: []string{"service"}, - }, - }, - Dependencies: []string{ - "github.com/openkruise/kruise-api/rollouts/v1alpha1.GatewayTrafficRouting", "github.com/openkruise/kruise-api/rollouts/v1alpha1.IngressTrafficRouting"}, - } -} - -func schema_openkruise_kruise_api_rollouts_v1alpha1_TrafficRoutingInfo(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "TrafficRoutingInfo indicates information of Gateway API or Ingress", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "ingress": { - SchemaProps: spec.SchemaProps{ - Description: "IngressRef indicates information of ingress", - Ref: ref("github.com/openkruise/kruise-api/rollouts/v1alpha1.IngressInfo"), - }, - }, - "httpRoute": { - SchemaProps: spec.SchemaProps{ - Description: "HTTPRouteRef indacates information of Gateway API", - Ref: ref("github.com/openkruise/kruise-api/rollouts/v1alpha1.HTTPRouteInfo"), - }, - }, - }, - }, - }, - Dependencies: []string{ - "github.com/openkruise/kruise-api/rollouts/v1alpha1.HTTPRouteInfo", "github.com/openkruise/kruise-api/rollouts/v1alpha1.IngressInfo"}, - } -} - -func schema_openkruise_kruise_api_rollouts_v1alpha1_WorkloadInfo(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "WorkloadInfo indicates information of the workload, such as cloneset, deployment, advanced statefulset", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "kind": { - SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - Type: []string{"string"}, - Format: "", - }, - }, - "apiVersion": { - SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - Type: []string{"string"}, - Format: "", - }, - }, - "name": { - SchemaProps: spec.SchemaProps{ - Description: "Name indicates the name of object ref, such as rollout name, workload name, ingress name, etc.", - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - "data": { - SchemaProps: spec.SchemaProps{ - Description: "Data indecates the spec of object ref", - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/runtime.RawExtension"), - }, - }, - }, - Required: []string{"name"}, - }, - }, - Dependencies: []string{ - "k8s.io/apimachinery/pkg/runtime.RawExtension"}, - } -} - -func schema_openkruise_kruise_api_rollouts_v1alpha1_WorkloadRef(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "WorkloadRef holds a references to the Kubernetes object", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "apiVersion": { - SchemaProps: spec.SchemaProps{ - Description: "API Version of the referent", - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - "kind": { - SchemaProps: spec.SchemaProps{ - Description: "Kind of the referent", - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - "name": { - SchemaProps: spec.SchemaProps{ - Description: "Name of the referent", - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, - Required: []string{"apiVersion", "kind", "name"}, - }, - }, - } -} diff --git a/pkg/rollouts/violation_exceptions.list b/pkg/rollouts/violation_exceptions.list deleted file mode 100644 index bd3e0967..00000000 --- a/pkg/rollouts/violation_exceptions.list +++ /dev/null @@ -1,12 +0,0 @@ -API rule violation: list_type_missing,github.com/openkruise/kruise-api/rollouts/v1alpha1,BatchReleaseStatus,Conditions -API rule violation: list_type_missing,github.com/openkruise/kruise-api/rollouts/v1alpha1,CanaryStep,Matches -API rule violation: list_type_missing,github.com/openkruise/kruise-api/rollouts/v1alpha1,CanaryStepInfo,Pods -API rule violation: list_type_missing,github.com/openkruise/kruise-api/rollouts/v1alpha1,CanaryStrategy,Steps -API rule violation: list_type_missing,github.com/openkruise/kruise-api/rollouts/v1alpha1,CanaryStrategy,TrafficRoutings -API rule violation: list_type_missing,github.com/openkruise/kruise-api/rollouts/v1alpha1,HttpRouteMatch,Headers -API rule violation: list_type_missing,github.com/openkruise/kruise-api/rollouts/v1alpha1,ReleasePlan,Batches -API rule violation: list_type_missing,github.com/openkruise/kruise-api/rollouts/v1alpha1,RolloutHistoryStatus,CanarySteps -API rule violation: list_type_missing,github.com/openkruise/kruise-api/rollouts/v1alpha1,RolloutStatus,Conditions -API rule violation: names_match,github.com/openkruise/kruise-api/rollouts/v1alpha1,BatchReleaseCanaryStatus,CurrentBatchState -API rule violation: names_match,github.com/openkruise/kruise-api/rollouts/v1alpha1,BatchReleaseSpec,TargetRef -API rule violation: names_match,github.com/openkruise/kruise-api/rollouts/v1alpha1,RolloutSpec,DeprecatedRolloutID diff --git a/rollouts/v1alpha1/batchrelease_plan_types.go b/rollouts/v1alpha1/batchrelease_plan_types.go deleted file mode 100644 index fd33c903..00000000 --- a/rollouts/v1alpha1/batchrelease_plan_types.go +++ /dev/null @@ -1,143 +0,0 @@ -/* -Copyright 2022 The Kruise Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -package v1alpha1 - -import ( - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "k8s.io/apimachinery/pkg/util/intstr" -) - -// ReleasePlan fines the details of the release plan -type ReleasePlan struct { - // Batches is the details on each batch of the ReleasePlan. - //Users can specify their batch plan in this field, such as: - // batches: - // - canaryReplicas: 1 # batches 0 - // - canaryReplicas: 2 # batches 1 - // - canaryReplicas: 5 # batches 2 - // Not that these canaryReplicas should be a non-decreasing sequence. - // +optional - Batches []ReleaseBatch `json:"batches"` - // All pods in the batches up to the batchPartition (included) will have - // the target resource specification while the rest still is the stable revision. - // This is designed for the operators to manually rollout. - // Default is nil, which means no partition and will release all batches. - // BatchPartition start from 0. - // +optional - BatchPartition *int32 `json:"batchPartition,omitempty"` - // RolloutID indicates an id for each rollout progress - RolloutID string `json:"rolloutID,omitempty"` - // FailureThreshold indicates how many failed pods can be tolerated in all upgraded pods. - // Only when FailureThreshold are satisfied, Rollout can enter ready state. - // If FailureThreshold is nil, Rollout will use the MaxUnavailable of workload as its - // FailureThreshold. - // Defaults to nil. - FailureThreshold *intstr.IntOrString `json:"failureThreshold,omitempty"` - // FinalizingPolicy define the behavior of controller when phase enter Finalizing - // Defaults to "Immediate" - FinalizingPolicy FinalizingPolicyType `json:"finalizingPolicy,omitempty"` -} - -type FinalizingPolicyType string - -const ( - // WaitResumeFinalizingPolicyType will wait workload to be resumed, which means - // controller will be hold at Finalizing phase util all pods of workload is upgraded. - // WaitResumeFinalizingPolicyType only works in canary-style BatchRelease controller. - WaitResumeFinalizingPolicyType FinalizingPolicyType = "WaitResume" - // ImmediateFinalizingPolicyType will not to wait workload to be resumed. - ImmediateFinalizingPolicyType FinalizingPolicyType = "Immediate" -) - -// ReleaseBatch is used to describe how each batch release should be -type ReleaseBatch struct { - // CanaryReplicas is the number of upgraded pods that should have in this batch. - // it can be an absolute number (ex: 5) or a percentage of workload replicas. - // batches[i].canaryReplicas should less than or equal to batches[j].canaryReplicas if i < j. - CanaryReplicas intstr.IntOrString `json:"canaryReplicas"` -} - -// BatchReleaseStatus defines the observed state of a release plan -type BatchReleaseStatus struct { - // Conditions represents the observed process state of each phase during executing the release plan. - Conditions []RolloutCondition `json:"conditions,omitempty"` - // CanaryStatus describes the state of the canary rollout. - CanaryStatus BatchReleaseCanaryStatus `json:"canaryStatus,omitempty"` - // StableRevision is the pod-template-hash of stable revision pod template. - StableRevision string `json:"stableRevision,omitempty"` - // UpdateRevision is the pod-template-hash of update revision pod template. - UpdateRevision string `json:"updateRevision,omitempty"` - // ObservedGeneration is the most recent generation observed for this BatchRelease. - // It corresponds to this BatchRelease's generation, which is updated on mutation - // by the API Server, and only if BatchRelease Spec was changed, its generation will increase 1. - ObservedGeneration int64 `json:"observedGeneration,omitempty"` - // ObservedRolloutID is the most recent rollout-id observed for this BatchRelease. - // If RolloutID was changed, we will restart to roll out from batch 0, - // to ensure the batch-id and rollout-id labels of Pods are correct. - ObservedRolloutID string `json:"observedRolloutID,omitempty"` - // ObservedWorkloadReplicas is observed replicas of target referenced workload. - // This field is designed to deal with scaling event during rollout, if this field changed, - // it means that the workload is scaling during rollout. - ObservedWorkloadReplicas int32 `json:"observedWorkloadReplicas,omitempty"` - // Count of hash collisions for creating canary Deployment. The controller uses this - // field as a collision avoidance mechanism when it needs to create the name for the - // newest canary Deployment. - // +optional - CollisionCount *int32 `json:"collisionCount,omitempty"` - // ObservedReleasePlanHash is a hash code of observed itself spec.releasePlan. - ObservedReleasePlanHash string `json:"observedReleasePlanHash,omitempty"` - // Phase is the release plan phase, which indicates the current state of release - // plan state machine in BatchRelease controller. - Phase RolloutPhase `json:"phase,omitempty"` -} - -type BatchReleaseCanaryStatus struct { - // CurrentBatchState indicates the release state of the current batch. - CurrentBatchState BatchReleaseBatchStateType `json:"batchState,omitempty"` - // The current batch the rollout is working on/blocked, it starts from 0 - CurrentBatch int32 `json:"currentBatch"` - // BatchReadyTime is the ready timestamp of the current batch or the last batch. - // This field is updated once a batch ready, and the batches[x].pausedSeconds - // relies on this field to calculate the real-time duration. - BatchReadyTime *metav1.Time `json:"batchReadyTime,omitempty"` - // UpdatedReplicas is the number of upgraded Pods. - UpdatedReplicas int32 `json:"updatedReplicas,omitempty"` - // UpdatedReadyReplicas is the number upgraded Pods that have a Ready Condition. - UpdatedReadyReplicas int32 `json:"updatedReadyReplicas,omitempty"` - // the number of pods that no need to rollback in rollback scene. - NoNeedUpdateReplicas *int32 `json:"noNeedUpdateReplicas,omitempty"` -} - -type BatchReleaseBatchStateType string - -const ( - // UpgradingBatchState indicates that current batch is at upgrading pod state - UpgradingBatchState BatchReleaseBatchStateType = "Upgrading" - // VerifyingBatchState indicates that current batch is at verifying whether it's ready state - VerifyingBatchState BatchReleaseBatchStateType = "Verifying" - // ReadyBatchState indicates that current batch is at batch ready state - ReadyBatchState BatchReleaseBatchStateType = "Ready" -) - -const ( - // RolloutPhasePreparing indicates a rollout is preparing for next progress. - RolloutPhasePreparing RolloutPhase = "Preparing" - // RolloutPhaseFinalizing indicates a rollout is finalizing - RolloutPhaseFinalizing RolloutPhase = "Finalizing" - // RolloutPhaseCompleted indicates a rollout is completed/cancelled/terminated - RolloutPhaseCompleted RolloutPhase = "Completed" -) diff --git a/rollouts/v1alpha1/batchrelease_types.go b/rollouts/v1alpha1/batchrelease_types.go deleted file mode 100644 index bcbcd86e..00000000 --- a/rollouts/v1alpha1/batchrelease_types.go +++ /dev/null @@ -1,59 +0,0 @@ -/* -Copyright 2022 The Kruise Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -package v1alpha1 - -import ( - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -// +genclient -// +k8s:openapi-gen=true -// +kubebuilder:object:root=true -// +kubebuilder:subresource:status -// +kubebuilder:printcolumn:name="KIND",type=string,JSONPath=`.spec.targetReference.workloadRef.kind` -// +kubebuilder:printcolumn:name="PHASE",type=string,JSONPath=`.status.phase` -// +kubebuilder:printcolumn:name="BATCH",type=integer,JSONPath=`.status.canaryStatus.currentBatch` -// +kubebuilder:printcolumn:name="BATCH-STATE",type=string,JSONPath=`.status.canaryStatus.batchState` -// +kubebuilder:printcolumn:name="AGE",type=date,JSONPath=".metadata.creationTimestamp" - -type BatchRelease struct { - metav1.TypeMeta `json:",inline"` - metav1.ObjectMeta `json:"metadata,omitempty"` - - Spec BatchReleaseSpec `json:"spec,omitempty"` - Status BatchReleaseStatus `json:"status,omitempty"` -} - -// BatchReleaseSpec defines how to describe an update between different compRevision -type BatchReleaseSpec struct { - // TargetRef contains the GVK and name of the workload that we need to upgrade to. - TargetRef ObjectRef `json:"targetReference"` - // ReleasePlan is the details on how to rollout the resources - ReleasePlan ReleasePlan `json:"releasePlan"` -} - -// BatchReleaseList contains a list of BatchRelease -// +kubebuilder:object:root=true -type BatchReleaseList struct { - metav1.TypeMeta `json:",inline"` - metav1.ListMeta `json:"metadata,omitempty"` - Items []BatchRelease `json:"items"` -} - -func init() { - SchemeBuilder.Register(&BatchRelease{}, &BatchReleaseList{}) -} diff --git a/rollouts/v1alpha1/deployment_types.go b/rollouts/v1alpha1/deployment_types.go deleted file mode 100644 index 940dd341..00000000 --- a/rollouts/v1alpha1/deployment_types.go +++ /dev/null @@ -1,87 +0,0 @@ -package v1alpha1 - -import ( - apps "k8s.io/api/apps/v1" - "k8s.io/apimachinery/pkg/util/intstr" -) - -const ( - // DeploymentStrategyAnnotation is annotation for deployment, - // which is strategy fields of Advanced Deployment. - DeploymentStrategyAnnotation = "rollouts.kruise.io/deployment-strategy" - - // DeploymentExtraStatusAnnotation is annotation for deployment, - // which is extra status field of Advanced Deployment. - DeploymentExtraStatusAnnotation = "rollouts.kruise.io/deployment-extra-status" - - // DeploymentStableRevisionLabel is label for deployment, - // which record the stable revision during the current rolling process. - DeploymentStableRevisionLabel = "rollouts.kruise.io/stable-revision" - - // AdvancedDeploymentControlLabel is label for deployment, - // which labels whether the deployment is controlled by advanced-deployment-controller. - AdvancedDeploymentControlLabel = "rollouts.kruise.io/controlled-by-advanced-deployment-controller" -) - -// DeploymentStrategy is strategy field for Advanced Deployment -type DeploymentStrategy struct { - // RollingStyle define the behavior of rolling for deployment. - RollingStyle RollingStyleType `json:"rollingStyle,omitempty"` - // original deployment strategy rolling update fields - RollingUpdate *apps.RollingUpdateDeployment `json:"rollingUpdate,omitempty"` - // Paused = true will block the upgrade of Pods - Paused bool `json:"paused,omitempty"` - // Partition describe how many Pods should be updated during rollout. - // We use this field to implement partition-style rolling update. - Partition intstr.IntOrString `json:"partition,omitempty"` -} - -type RollingStyleType string - -const ( - // PartitionRollingStyle means rolling in batches just like CloneSet, and will NOT create any extra Deployment; - PartitionRollingStyle RollingStyleType = "Partition" - // CanaryRollingStyle means rolling in canary way, and will create a canary Deployment. - CanaryRollingStyle RollingStyleType = "Canary" -) - -// DeploymentExtraStatus is extra status field for Advanced Deployment -type DeploymentExtraStatus struct { - // UpdatedReadyReplicas the number of pods that has been updated and ready. - UpdatedReadyReplicas int32 `json:"updatedReadyReplicas,omitempty"` - // ExpectedUpdatedReplicas is an absolute number calculated based on Partition - // and Deployment.Spec.Replicas, means how many pods are expected be updated under - // current strategy. - // This field is designed to avoid users to fall into the details of algorithm - // for Partition calculation. - ExpectedUpdatedReplicas int32 `json:"expectedUpdatedReplicas,omitempty"` -} - -func SetDefaultDeploymentStrategy(strategy *DeploymentStrategy) { - if strategy.RollingStyle == CanaryRollingStyle { - return - } - if strategy.RollingUpdate == nil { - strategy.RollingUpdate = &apps.RollingUpdateDeployment{} - } - if strategy.RollingUpdate.MaxUnavailable == nil { - // Set MaxUnavailable as 25% by default - maxUnavailable := intstr.FromString("25%") - strategy.RollingUpdate.MaxUnavailable = &maxUnavailable - } - if strategy.RollingUpdate.MaxSurge == nil { - // Set MaxSurge as 25% by default - maxSurge := intstr.FromString("25%") - strategy.RollingUpdate.MaxUnavailable = &maxSurge - } - - // Cannot allow maxSurge==0 && MaxUnavailable==0, otherwise, no pod can be updated when rolling update. - maxSurge, _ := intstr.GetScaledValueFromIntOrPercent(strategy.RollingUpdate.MaxSurge, 100, true) - maxUnavailable, _ := intstr.GetScaledValueFromIntOrPercent(strategy.RollingUpdate.MaxUnavailable, 100, true) - if maxSurge == 0 && maxUnavailable == 0 { - strategy.RollingUpdate = &apps.RollingUpdateDeployment{ - MaxSurge: &intstr.IntOrString{Type: intstr.Int, IntVal: 0}, - MaxUnavailable: &intstr.IntOrString{Type: intstr.Int, IntVal: 1}, - } - } -} diff --git a/rollouts/v1alpha1/doc.go b/rollouts/v1alpha1/doc.go deleted file mode 100644 index 888a80dd..00000000 --- a/rollouts/v1alpha1/doc.go +++ /dev/null @@ -1,19 +0,0 @@ -/* -Copyright 2020 The Kruise Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// +k8s:openapi-gen=true -// +groupName=rollouts.kruise.io -package v1alpha1 diff --git a/rollouts/v1alpha1/groupversion_info.go b/rollouts/v1alpha1/groupversion_info.go deleted file mode 100644 index eb80e165..00000000 --- a/rollouts/v1alpha1/groupversion_info.go +++ /dev/null @@ -1,43 +0,0 @@ -/* -Copyright 2022 The Kruise Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Package v1alpha1 contains API Schema definitions for the apps v1alpha1 API group -//+kubebuilder:object:generate=true -//+groupName=rollouts.kruise.io -package v1alpha1 - -import ( - "github.com/openkruise/kruise-api/utils/scheme" - "k8s.io/apimachinery/pkg/runtime/schema" -) - -var ( - // GroupVersion is group version used to register these objects - GroupVersion = schema.GroupVersion{Group: "rollouts.kruise.io", Version: "v1alpha1"} - - // SchemeBuilder is used to add go types to the GroupVersionKind scheme - SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion} - - // AddToScheme adds the types in this group-version to the given scheme. - AddToScheme = SchemeBuilder.AddToScheme - - SchemeGroupVersion = GroupVersion -) - -// Resource is required by pkg/client/listers/... -func Resource(resource string) schema.GroupResource { - return SchemeGroupVersion.WithResource(resource).GroupResource() -} diff --git a/rollouts/v1alpha1/rollout_types.go b/rollouts/v1alpha1/rollout_types.go deleted file mode 100644 index 4661058c..00000000 --- a/rollouts/v1alpha1/rollout_types.go +++ /dev/null @@ -1,344 +0,0 @@ -/* -Copyright 2022 The Kruise Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -package v1alpha1 - -import ( - corev1 "k8s.io/api/core/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "k8s.io/apimachinery/pkg/util/intstr" - gatewayv1alpha2 "sigs.k8s.io/gateway-api/apis/v1alpha2" -) - -// EDIT THIS FILE! THIS IS SCAFFOLDING FOR YOU TO OWN! -// NOTE: json tags are required. Any new fields you add must have json tags for the fields to be serialized. - -const ( - // RolloutIDLabel is set to workload labels. - // RolloutIDLabel is designed to distinguish each workload revision publications. - // The value of RolloutIDLabel corresponds Rollout.Spec.RolloutID. - RolloutIDLabel = "rollouts.kruise.io/rollout-id" - - // RolloutBatchIDLabel is patched in pod labels. - // RolloutBatchIDLabel is the label key of batch id that will be patched to pods during rollout. - // Only when RolloutIDLabel is set, RolloutBatchIDLabel will be patched. - // Users can use RolloutIDLabel and RolloutBatchIDLabel to select the pods that are upgraded in some certain batch and release. - RolloutBatchIDLabel = "rollouts.kruise.io/rollout-batch-id" - - // RollbackInBatchAnnotation is set to rollout annotations. - // RollbackInBatchAnnotation allow use disable quick rollback, and will roll back in batch style. - RollbackInBatchAnnotation = "rollouts.kruise.io/rollback-in-batch" - - // RolloutStyleAnnotation define the rolling behavior for Deployment. - // must be "partition" or "canary": - // * "partition" means rolling in batches just like CloneSet, and will NOT create any extra Workload; - // * "canary" means rolling in canary way, and will create a canary Workload. - // Currently, only Deployment support both "partition" and "canary" rolling styles. - // For other workload types, they only support "partition" styles. - // Defaults to "canary" to Deployment. - // Defaults to "partition" to the others. - RolloutStyleAnnotation = "rollouts.kruise.io/rolling-style" -) - -// RolloutSpec defines the desired state of Rollout -type RolloutSpec struct { - // INSERT ADDITIONAL SPEC FIELDS - desired state of cluster - // Important: Run "make" to regenerate code after modifying this file - // ObjectRef indicates workload - ObjectRef ObjectRef `json:"objectRef"` - // rollout strategy - Strategy RolloutStrategy `json:"strategy"` - // DeprecatedRolloutID is the deprecated field. - // It is recommended that configure RolloutId in workload.annotations[rollouts.kruise.io/rollout-id]. - // RolloutID should be changed before each workload revision publication. - // It is to distinguish consecutive multiple workload publications and rollout progress. - DeprecatedRolloutID string `json:"rolloutID,omitempty"` -} - -type ObjectRef struct { - // WorkloadRef contains enough information to let you identify a workload for Rollout - // Batch release of the bypass - WorkloadRef *WorkloadRef `json:"workloadRef,omitempty"` - - // revisionRef - // Fully managed batch publishing capability - //RevisionRef *ControllerRevisionRef `json:"revisionRef,omitempty"` -} - -type ObjectRefType string - -const ( - WorkloadRefType = "workloadRef" - RevisionRefType = "revisionRef" -) - -// WorkloadRef holds a references to the Kubernetes object -type WorkloadRef struct { - // API Version of the referent - APIVersion string `json:"apiVersion"` - // Kind of the referent - Kind string `json:"kind"` - // Name of the referent - Name string `json:"name"` -} - -// RolloutStrategy defines strategy to apply during next rollout -type RolloutStrategy struct { - // Paused indicates that the Rollout is paused. - // Default value is false - Paused bool `json:"paused,omitempty"` - // +optional - Canary *CanaryStrategy `json:"canary,omitempty"` - // +optional - // BlueGreen *BlueGreenStrategy `json:"blueGreen,omitempty"` -} - -type RolloutStrategyType string - -const ( - RolloutStrategyCanary RolloutStrategyType = "canary" - RolloutStrategyBlueGreen RolloutStrategyType = "blueGreen" -) - -// CanaryStrategy defines parameters for a Replica Based Canary -type CanaryStrategy struct { - // Steps define the order of phases to execute release in batches(20%, 40%, 60%, 80%, 100%) - // +optional - Steps []CanaryStep `json:"steps,omitempty"` - // TrafficRoutings hosts all the supported service meshes supported to enable more fine-grained traffic routing - // todo current only support one TrafficRouting - TrafficRoutings []*TrafficRouting `json:"trafficRoutings,omitempty"` - // FailureThreshold indicates how many failed pods can be tolerated in all upgraded pods. - // Only when FailureThreshold are satisfied, Rollout can enter ready state. - // If FailureThreshold is nil, Rollout will use the MaxUnavailable of workload as its - // FailureThreshold. - // Defaults to nil. - FailureThreshold *intstr.IntOrString `json:"failureThreshold,omitempty"` - // MetricsAnalysis *MetricsAnalysisBackground `json:"metricsAnalysis,omitempty"` -} - -// CanaryStep defines a step of a canary workload. -type CanaryStep struct { - // Weight indicate how many percentage of traffic the canary pods should receive - // +optional - Weight *int32 `json:"weight,omitempty"` - // Replicas is the number of expected canary pods in this batch - // it can be an absolute number (ex: 5) or a percentage of total pods. - Replicas *intstr.IntOrString `json:"replicas,omitempty"` - // Pause defines a pause stage for a rollout, manual or auto - // +optional - Pause RolloutPause `json:"pause,omitempty"` - // Matches define conditions used for matching the incoming HTTP requests to canary service. - // Each match is independent, i.e. this rule will be matched if **any** one of the matches is satisfied. - // If Gateway API, current only support one match. - // And cannot support both weight and matches, if both are configured, then matches takes precedence. - Matches []HttpRouteMatch `json:"matches,omitempty"` -} - -type HttpRouteMatch struct { - // Headers specifies HTTP request header matchers. Multiple match values are - // ANDed together, meaning, a request must match all the specified headers - // to select the route. - // +kubebuilder:validation:MaxItems=16 - Headers []gatewayv1alpha2.HTTPHeaderMatch `json:"headers,omitempty"` -} - -// RolloutPause defines a pause stage for a rollout -type RolloutPause struct { - // Duration the amount of time to wait before moving to the next step. - // +optional - Duration *int32 `json:"duration,omitempty"` -} - -// TrafficRouting hosts all the different configuration for supported service meshes to enable more fine-grained traffic routing -type TrafficRouting struct { - // Service holds the name of a service which selects pods with stable version and don't select any pods with canary version. - Service string `json:"service"` - // Optional duration in seconds the traffic provider(e.g. nginx ingress controller) consumes the service, ingress configuration changes gracefully. - GracePeriodSeconds int32 `json:"gracePeriodSeconds,omitempty"` - // Ingress holds Ingress specific configuration to route traffic, e.g. Nginx, Alb. - Ingress *IngressTrafficRouting `json:"ingress,omitempty"` - // Gateway holds Gateway specific configuration to route traffic - // Gateway configuration only supports >= v0.4.0 (v1alpha2). - Gateway *GatewayTrafficRouting `json:"gateway,omitempty"` -} - -// IngressTrafficRouting configuration for ingress controller to control traffic routing -type IngressTrafficRouting struct { - // ClassType refers to the type of `Ingress`. - // current support nginx, aliyun-alb. default is nginx. - // +optional - ClassType string `json:"classType,omitempty"` - // Name refers to the name of an `Ingress` resource in the same namespace as the `Rollout` - Name string `json:"name"` -} - -// GatewayTrafficRouting configuration for gateway api -type GatewayTrafficRouting struct { - // HTTPRouteName refers to the name of an `HTTPRoute` resource in the same namespace as the `Rollout` - HTTPRouteName *string `json:"httpRouteName,omitempty"` - // TCPRouteName *string `json:"tcpRouteName,omitempty"` - // UDPRouteName *string `json:"udpRouteName,omitempty"` -} - -// RolloutStatus defines the observed state of Rollout -type RolloutStatus struct { - // INSERT ADDITIONAL STATUS FIELD - define observed state of cluster - // Important: Run "make" to regenerate code after modifying this file - - // observedGeneration is the most recent generation observed for this Rollout. - ObservedGeneration int64 `json:"observedGeneration,omitempty"` - // Canary describes the state of the canary rollout - // +optional - CanaryStatus *CanaryStatus `json:"canaryStatus,omitempty"` - // Conditions a list of conditions a rollout can have. - // +optional - Conditions []RolloutCondition `json:"conditions,omitempty"` - // +optional - //BlueGreenStatus *BlueGreenStatus `json:"blueGreenStatus,omitempty"` - // Phase is the rollout phase. - Phase RolloutPhase `json:"phase,omitempty"` - // Message provides details on why the rollout is in its current phase - Message string `json:"message,omitempty"` -} - -// RolloutCondition describes the state of a rollout at a certain point. -type RolloutCondition struct { - // Type of rollout condition. - Type RolloutConditionType `json:"type"` - // Phase of the condition, one of True, False, Unknown. - Status corev1.ConditionStatus `json:"status"` - // The last time this condition was updated. - LastUpdateTime metav1.Time `json:"lastUpdateTime,omitempty"` - // Last time the condition transitioned from one status to another. - LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty"` - // The reason for the condition's last transition. - Reason string `json:"reason"` - // A human readable message indicating details about the transition. - Message string `json:"message"` -} - -// RolloutConditionType defines the conditions of Rollout -type RolloutConditionType string - -// These are valid conditions of a rollout. -const ( - // RolloutConditionProgressing means the rollout is progressing. Progress for a rollout is - // considered when a new replica set is created or adopted, when pods scale - // up or old pods scale down, or when the services are updated. Progress is not estimated - // for paused rollouts. - RolloutConditionProgressing RolloutConditionType = "Progressing" - // Progressing Reason - ProgressingReasonInitializing = "Initializing" - ProgressingReasonInRolling = "InRolling" - ProgressingReasonFinalising = "Finalising" - ProgressingReasonCompleted = "Completed" - ProgressingReasonCancelling = "Cancelling" - ProgressingReasonPaused = "Paused" - - // RolloutConditionSucceeded indicates whether rollout is succeeded or failed. - RolloutConditionSucceeded RolloutConditionType = "Succeeded" - - // Terminating condition - RolloutConditionTerminating RolloutConditionType = "Terminating" - // Terminating Reason - TerminatingReasonInTerminating = "InTerminating" - TerminatingReasonCompleted = "Completed" -) - -// CanaryStatus status fields that only pertain to the canary rollout -type CanaryStatus struct { - // observedWorkloadGeneration is the most recent generation observed for this Rollout ref workload generation. - ObservedWorkloadGeneration int64 `json:"observedWorkloadGeneration,omitempty"` - // ObservedRolloutID will record the newest spec.RolloutID if status.canaryRevision equals to workload.updateRevision - ObservedRolloutID string `json:"observedRolloutID,omitempty"` - // RolloutHash from rollout.spec object - RolloutHash string `json:"rolloutHash,omitempty"` - // StableRevision indicates the revision of stable pods - StableRevision string `json:"stableRevision,omitempty"` - // CanaryRevision is calculated by rollout based on podTemplateHash, and the internal logic flow uses - // It may be different from rs podTemplateHash in different k8s versions, so it cannot be used as service selector label - CanaryRevision string `json:"canaryRevision"` - // pod template hash is used as service selector label - PodTemplateHash string `json:"podTemplateHash"` - // CanaryReplicas the numbers of canary revision pods - CanaryReplicas int32 `json:"canaryReplicas"` - // CanaryReadyReplicas the numbers of ready canary revision pods - CanaryReadyReplicas int32 `json:"canaryReadyReplicas"` - // CurrentStepIndex defines the current step of the rollout is on. If the current step index is null, the - // controller will execute the rollout. - // +optional - CurrentStepIndex int32 `json:"currentStepIndex"` - CurrentStepState CanaryStepState `json:"currentStepState"` - Message string `json:"message,omitempty"` - LastUpdateTime *metav1.Time `json:"lastUpdateTime,omitempty"` -} - -type CanaryStepState string - -const ( - CanaryStepStateUpgrade CanaryStepState = "StepUpgrade" - CanaryStepStateTrafficRouting CanaryStepState = "StepTrafficRouting" - CanaryStepStateMetricsAnalysis CanaryStepState = "StepMetricsAnalysis" - CanaryStepStatePaused CanaryStepState = "StepPaused" - CanaryStepStateReady CanaryStepState = "StepReady" - CanaryStepStateCompleted CanaryStepState = "Completed" -) - -// RolloutPhase are a set of phases that this rollout -type RolloutPhase string - -const ( - // RolloutPhaseInitial indicates a rollout is Initial - RolloutPhaseInitial RolloutPhase = "Initial" - // RolloutPhaseHealthy indicates a rollout is healthy - RolloutPhaseHealthy RolloutPhase = "Healthy" - // RolloutPhaseProgressing indicates a rollout is not yet healthy but still making progress towards a healthy state - RolloutPhaseProgressing RolloutPhase = "Progressing" - // RolloutPhaseTerminating indicates a rollout is terminated - RolloutPhaseTerminating RolloutPhase = "Terminating" -) - -// +genclient -//+kubebuilder:object:root=true -//+kubebuilder:subresource:status -// +kubebuilder:printcolumn:name="STATUS",type="string",JSONPath=".status.phase",description="The rollout status phase" -// +kubebuilder:printcolumn:name="CANARY_STEP",type="integer",JSONPath=".status.canaryStatus.currentStepIndex",description="The rollout canary status step" -// +kubebuilder:printcolumn:name="CANARY_STATE",type="string",JSONPath=".status.canaryStatus.currentStepState",description="The rollout canary status step state" -// +kubebuilder:printcolumn:name="MESSAGE",type="string",JSONPath=".status.message",description="The rollout canary status message" -// +kubebuilder:printcolumn:name="AGE",type=date,JSONPath=".metadata.creationTimestamp" - -// Rollout is the Schema for the rollouts API -type Rollout struct { - metav1.TypeMeta `json:",inline"` - metav1.ObjectMeta `json:"metadata,omitempty"` - - Spec RolloutSpec `json:"spec,omitempty"` - Status RolloutStatus `json:"status,omitempty"` -} - -//+kubebuilder:object:root=true - -// RolloutList contains a list of Rollout -type RolloutList struct { - metav1.TypeMeta `json:",inline"` - metav1.ListMeta `json:"metadata,omitempty"` - Items []Rollout `json:"items"` -} - -func init() { - SchemeBuilder.Register(&Rollout{}, &RolloutList{}) -} diff --git a/rollouts/v1alpha1/rollouthistory_types.go b/rollouts/v1alpha1/rollouthistory_types.go deleted file mode 100644 index 0a80be3c..00000000 --- a/rollouts/v1alpha1/rollouthistory_types.go +++ /dev/null @@ -1,151 +0,0 @@ -/* -Copyright 2022 The Kruise Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -package v1alpha1 - -import ( - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "k8s.io/apimachinery/pkg/runtime" -) - -// EDIT THIS FILE! THIS IS SCAFFOLDING FOR YOU TO OWN! -// NOTE: json tags are required. Any new fields you add must have json tags for the fields to be serialized. - -// RolloutHistorySpec defines the desired state of RolloutHistory -type RolloutHistorySpec struct { - // INSERT ADDITIONAL SPEC FIELDS - desired state of cluster - // Important: Run "make" to regenerate code after modifying this file - - // Rollout indicates information of the rollout related with rollouthistory - Rollout RolloutInfo `json:"rollout,omitempty"` - // Workload indicates information of the workload, such as cloneset, deployment, advanced statefulset - Workload WorkloadInfo `json:"workload,omitempty"` - // Service indicates information of the service related with workload - Service ServiceInfo `json:"service,omitempty"` - // TrafficRouting indicates information of traffic route related with workload - TrafficRouting TrafficRoutingInfo `json:"trafficRouting,omitempty"` -} - -type NameAndSpecData struct { - // Name indicates the name of object ref, such as rollout name, workload name, ingress name, etc. - Name string `json:"name"` - // Data indecates the spec of object ref - // +kubebuilder:pruning:PreserveUnknownFields - // +kubebuilder:validation:Schemaless - Data runtime.RawExtension `json:"data,omitempty"` -} - -// RolloutInfo indicates information of the rollout related -type RolloutInfo struct { - // RolloutID indicates the new rollout - // if there is no new RolloutID this time, ignore it and not execute RolloutHistory - RolloutID string `json:"rolloutID"` - NameAndSpecData `json:",inline"` -} - -// ServiceInfo indicates information of the service related -type ServiceInfo struct { - NameAndSpecData `json:",inline"` -} - -// TrafficRoutingInfo indicates information of Gateway API or Ingress -type TrafficRoutingInfo struct { - // IngressRef indicates information of ingress - // +optional - Ingress *IngressInfo `json:"ingress,omitempty"` - // HTTPRouteRef indacates information of Gateway API - // +optional - HTTPRoute *HTTPRouteInfo `json:"httpRoute,omitempty"` -} - -// IngressInfo indicates information of the ingress related -type IngressInfo struct { - NameAndSpecData `json:",inline"` -} - -// HTTPRouteInfo indicates information of gateway API -type HTTPRouteInfo struct { - NameAndSpecData `json:",inline"` -} - -// WorkloadInfo indicates information of the workload, such as cloneset, deployment, advanced statefulset -type WorkloadInfo struct { - metav1.TypeMeta `json:",inline"` - NameAndSpecData `json:",inline"` -} - -// RolloutHistoryStatus defines the observed state of RolloutHistory -type RolloutHistoryStatus struct { - // INSERT ADDITIONAL STATUS FIELD - define observed state of cluster - // Important: Run "make" to regenerate code after modifying this file - - // Phase indicates phase of RolloutHistory, just "" or "completed" - Phase string `json:"phase,omitempty"` - // CanarySteps indicates the pods released each step - CanarySteps []CanaryStepInfo `json:"canarySteps,omitempty"` -} - -// CanaryStepInfo indicates the pods for a revision -type CanaryStepInfo struct { - // CanaryStepIndex indicates step this revision - CanaryStepIndex int32 `json:"canaryStepIndex,omitempty"` - // Pods indicates the pods information - Pods []Pod `json:"pods,omitempty"` -} - -// Pod indicates the information of a pod, including name, ip, node_name. -type Pod struct { - // Name indicates the node name - Name string `json:"name,omitempty"` - // IP indicates the pod ip - IP string `json:"ip,omitempty"` - // NodeName indicates the node which pod is located at - NodeName string `json:"nodeName,omitempty"` - // todo - // State indicates whether the pod is ready or not - // State string `json:"state, omitempty"` -} - -// Phase indicates rollouthistory phase -const ( - PhaseCompleted string = "completed" -) - -// +genclient -//+kubebuilder:object:root=true -//+kubebuilder:subresource:status - -// RolloutHistory is the Schema for the rollouthistories API -type RolloutHistory struct { - metav1.TypeMeta `json:",inline"` - metav1.ObjectMeta `json:"metadata,omitempty"` - - Spec RolloutHistorySpec `json:"spec,omitempty"` - Status RolloutHistoryStatus `json:"status,omitempty"` -} - -//+kubebuilder:object:root=true - -// RolloutHistoryList contains a list of RolloutHistory -type RolloutHistoryList struct { - metav1.TypeMeta `json:",inline"` - metav1.ListMeta `json:"metadata,omitempty"` - Items []RolloutHistory `json:"items"` -} - -func init() { - SchemeBuilder.Register(&RolloutHistory{}, &RolloutHistoryList{}) -} diff --git a/rollouts/v1alpha1/zz_generated.deepcopy.go b/rollouts/v1alpha1/zz_generated.deepcopy.go deleted file mode 100644 index fcf7dc17..00000000 --- a/rollouts/v1alpha1/zz_generated.deepcopy.go +++ /dev/null @@ -1,863 +0,0 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - -/* -Copyright 2022 The Kruise Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by controller-gen. DO NOT EDIT. - -package v1alpha1 - -import ( - "k8s.io/api/apps/v1" - "k8s.io/apimachinery/pkg/runtime" - "k8s.io/apimachinery/pkg/util/intstr" - "sigs.k8s.io/gateway-api/apis/v1alpha2" -) - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *BatchRelease) DeepCopyInto(out *BatchRelease) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - in.Status.DeepCopyInto(&out.Status) -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BatchRelease. -func (in *BatchRelease) DeepCopy() *BatchRelease { - if in == nil { - return nil - } - out := new(BatchRelease) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *BatchRelease) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *BatchReleaseCanaryStatus) DeepCopyInto(out *BatchReleaseCanaryStatus) { - *out = *in - if in.BatchReadyTime != nil { - in, out := &in.BatchReadyTime, &out.BatchReadyTime - *out = (*in).DeepCopy() - } - if in.NoNeedUpdateReplicas != nil { - in, out := &in.NoNeedUpdateReplicas, &out.NoNeedUpdateReplicas - *out = new(int32) - **out = **in - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BatchReleaseCanaryStatus. -func (in *BatchReleaseCanaryStatus) DeepCopy() *BatchReleaseCanaryStatus { - if in == nil { - return nil - } - out := new(BatchReleaseCanaryStatus) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *BatchReleaseList) DeepCopyInto(out *BatchReleaseList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]BatchRelease, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BatchReleaseList. -func (in *BatchReleaseList) DeepCopy() *BatchReleaseList { - if in == nil { - return nil - } - out := new(BatchReleaseList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *BatchReleaseList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *BatchReleaseSpec) DeepCopyInto(out *BatchReleaseSpec) { - *out = *in - in.TargetRef.DeepCopyInto(&out.TargetRef) - in.ReleasePlan.DeepCopyInto(&out.ReleasePlan) -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BatchReleaseSpec. -func (in *BatchReleaseSpec) DeepCopy() *BatchReleaseSpec { - if in == nil { - return nil - } - out := new(BatchReleaseSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *BatchReleaseStatus) DeepCopyInto(out *BatchReleaseStatus) { - *out = *in - if in.Conditions != nil { - in, out := &in.Conditions, &out.Conditions - *out = make([]RolloutCondition, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - in.CanaryStatus.DeepCopyInto(&out.CanaryStatus) - if in.CollisionCount != nil { - in, out := &in.CollisionCount, &out.CollisionCount - *out = new(int32) - **out = **in - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BatchReleaseStatus. -func (in *BatchReleaseStatus) DeepCopy() *BatchReleaseStatus { - if in == nil { - return nil - } - out := new(BatchReleaseStatus) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *CanaryStatus) DeepCopyInto(out *CanaryStatus) { - *out = *in - if in.LastUpdateTime != nil { - in, out := &in.LastUpdateTime, &out.LastUpdateTime - *out = (*in).DeepCopy() - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CanaryStatus. -func (in *CanaryStatus) DeepCopy() *CanaryStatus { - if in == nil { - return nil - } - out := new(CanaryStatus) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *CanaryStep) DeepCopyInto(out *CanaryStep) { - *out = *in - if in.Weight != nil { - in, out := &in.Weight, &out.Weight - *out = new(int32) - **out = **in - } - if in.Replicas != nil { - in, out := &in.Replicas, &out.Replicas - *out = new(intstr.IntOrString) - **out = **in - } - in.Pause.DeepCopyInto(&out.Pause) - if in.Matches != nil { - in, out := &in.Matches, &out.Matches - *out = make([]HttpRouteMatch, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CanaryStep. -func (in *CanaryStep) DeepCopy() *CanaryStep { - if in == nil { - return nil - } - out := new(CanaryStep) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *CanaryStepInfo) DeepCopyInto(out *CanaryStepInfo) { - *out = *in - if in.Pods != nil { - in, out := &in.Pods, &out.Pods - *out = make([]Pod, len(*in)) - copy(*out, *in) - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CanaryStepInfo. -func (in *CanaryStepInfo) DeepCopy() *CanaryStepInfo { - if in == nil { - return nil - } - out := new(CanaryStepInfo) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *CanaryStrategy) DeepCopyInto(out *CanaryStrategy) { - *out = *in - if in.Steps != nil { - in, out := &in.Steps, &out.Steps - *out = make([]CanaryStep, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.TrafficRoutings != nil { - in, out := &in.TrafficRoutings, &out.TrafficRoutings - *out = make([]*TrafficRouting, len(*in)) - for i := range *in { - if (*in)[i] != nil { - in, out := &(*in)[i], &(*out)[i] - *out = new(TrafficRouting) - (*in).DeepCopyInto(*out) - } - } - } - if in.FailureThreshold != nil { - in, out := &in.FailureThreshold, &out.FailureThreshold - *out = new(intstr.IntOrString) - **out = **in - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CanaryStrategy. -func (in *CanaryStrategy) DeepCopy() *CanaryStrategy { - if in == nil { - return nil - } - out := new(CanaryStrategy) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DeploymentExtraStatus) DeepCopyInto(out *DeploymentExtraStatus) { - *out = *in -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeploymentExtraStatus. -func (in *DeploymentExtraStatus) DeepCopy() *DeploymentExtraStatus { - if in == nil { - return nil - } - out := new(DeploymentExtraStatus) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DeploymentStrategy) DeepCopyInto(out *DeploymentStrategy) { - *out = *in - if in.RollingUpdate != nil { - in, out := &in.RollingUpdate, &out.RollingUpdate - *out = new(v1.RollingUpdateDeployment) - (*in).DeepCopyInto(*out) - } - out.Partition = in.Partition -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeploymentStrategy. -func (in *DeploymentStrategy) DeepCopy() *DeploymentStrategy { - if in == nil { - return nil - } - out := new(DeploymentStrategy) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *GatewayTrafficRouting) DeepCopyInto(out *GatewayTrafficRouting) { - *out = *in - if in.HTTPRouteName != nil { - in, out := &in.HTTPRouteName, &out.HTTPRouteName - *out = new(string) - **out = **in - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GatewayTrafficRouting. -func (in *GatewayTrafficRouting) DeepCopy() *GatewayTrafficRouting { - if in == nil { - return nil - } - out := new(GatewayTrafficRouting) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *HTTPRouteInfo) DeepCopyInto(out *HTTPRouteInfo) { - *out = *in - in.NameAndSpecData.DeepCopyInto(&out.NameAndSpecData) -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HTTPRouteInfo. -func (in *HTTPRouteInfo) DeepCopy() *HTTPRouteInfo { - if in == nil { - return nil - } - out := new(HTTPRouteInfo) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *HttpRouteMatch) DeepCopyInto(out *HttpRouteMatch) { - *out = *in - if in.Headers != nil { - in, out := &in.Headers, &out.Headers - *out = make([]v1alpha2.HTTPHeaderMatch, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HttpRouteMatch. -func (in *HttpRouteMatch) DeepCopy() *HttpRouteMatch { - if in == nil { - return nil - } - out := new(HttpRouteMatch) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *IngressInfo) DeepCopyInto(out *IngressInfo) { - *out = *in - in.NameAndSpecData.DeepCopyInto(&out.NameAndSpecData) -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressInfo. -func (in *IngressInfo) DeepCopy() *IngressInfo { - if in == nil { - return nil - } - out := new(IngressInfo) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *IngressTrafficRouting) DeepCopyInto(out *IngressTrafficRouting) { - *out = *in -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressTrafficRouting. -func (in *IngressTrafficRouting) DeepCopy() *IngressTrafficRouting { - if in == nil { - return nil - } - out := new(IngressTrafficRouting) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *NameAndSpecData) DeepCopyInto(out *NameAndSpecData) { - *out = *in - in.Data.DeepCopyInto(&out.Data) -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NameAndSpecData. -func (in *NameAndSpecData) DeepCopy() *NameAndSpecData { - if in == nil { - return nil - } - out := new(NameAndSpecData) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ObjectRef) DeepCopyInto(out *ObjectRef) { - *out = *in - if in.WorkloadRef != nil { - in, out := &in.WorkloadRef, &out.WorkloadRef - *out = new(WorkloadRef) - **out = **in - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ObjectRef. -func (in *ObjectRef) DeepCopy() *ObjectRef { - if in == nil { - return nil - } - out := new(ObjectRef) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *Pod) DeepCopyInto(out *Pod) { - *out = *in -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Pod. -func (in *Pod) DeepCopy() *Pod { - if in == nil { - return nil - } - out := new(Pod) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ReleaseBatch) DeepCopyInto(out *ReleaseBatch) { - *out = *in - out.CanaryReplicas = in.CanaryReplicas -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ReleaseBatch. -func (in *ReleaseBatch) DeepCopy() *ReleaseBatch { - if in == nil { - return nil - } - out := new(ReleaseBatch) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ReleasePlan) DeepCopyInto(out *ReleasePlan) { - *out = *in - if in.Batches != nil { - in, out := &in.Batches, &out.Batches - *out = make([]ReleaseBatch, len(*in)) - copy(*out, *in) - } - if in.BatchPartition != nil { - in, out := &in.BatchPartition, &out.BatchPartition - *out = new(int32) - **out = **in - } - if in.FailureThreshold != nil { - in, out := &in.FailureThreshold, &out.FailureThreshold - *out = new(intstr.IntOrString) - **out = **in - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ReleasePlan. -func (in *ReleasePlan) DeepCopy() *ReleasePlan { - if in == nil { - return nil - } - out := new(ReleasePlan) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *Rollout) DeepCopyInto(out *Rollout) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - in.Status.DeepCopyInto(&out.Status) -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Rollout. -func (in *Rollout) DeepCopy() *Rollout { - if in == nil { - return nil - } - out := new(Rollout) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *Rollout) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RolloutCondition) DeepCopyInto(out *RolloutCondition) { - *out = *in - in.LastUpdateTime.DeepCopyInto(&out.LastUpdateTime) - in.LastTransitionTime.DeepCopyInto(&out.LastTransitionTime) -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RolloutCondition. -func (in *RolloutCondition) DeepCopy() *RolloutCondition { - if in == nil { - return nil - } - out := new(RolloutCondition) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RolloutHistory) DeepCopyInto(out *RolloutHistory) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - in.Status.DeepCopyInto(&out.Status) -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RolloutHistory. -func (in *RolloutHistory) DeepCopy() *RolloutHistory { - if in == nil { - return nil - } - out := new(RolloutHistory) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *RolloutHistory) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RolloutHistoryList) DeepCopyInto(out *RolloutHistoryList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]RolloutHistory, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RolloutHistoryList. -func (in *RolloutHistoryList) DeepCopy() *RolloutHistoryList { - if in == nil { - return nil - } - out := new(RolloutHistoryList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *RolloutHistoryList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RolloutHistorySpec) DeepCopyInto(out *RolloutHistorySpec) { - *out = *in - in.Rollout.DeepCopyInto(&out.Rollout) - in.Workload.DeepCopyInto(&out.Workload) - in.Service.DeepCopyInto(&out.Service) - in.TrafficRouting.DeepCopyInto(&out.TrafficRouting) -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RolloutHistorySpec. -func (in *RolloutHistorySpec) DeepCopy() *RolloutHistorySpec { - if in == nil { - return nil - } - out := new(RolloutHistorySpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RolloutHistoryStatus) DeepCopyInto(out *RolloutHistoryStatus) { - *out = *in - if in.CanarySteps != nil { - in, out := &in.CanarySteps, &out.CanarySteps - *out = make([]CanaryStepInfo, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RolloutHistoryStatus. -func (in *RolloutHistoryStatus) DeepCopy() *RolloutHistoryStatus { - if in == nil { - return nil - } - out := new(RolloutHistoryStatus) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RolloutInfo) DeepCopyInto(out *RolloutInfo) { - *out = *in - in.NameAndSpecData.DeepCopyInto(&out.NameAndSpecData) -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RolloutInfo. -func (in *RolloutInfo) DeepCopy() *RolloutInfo { - if in == nil { - return nil - } - out := new(RolloutInfo) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RolloutList) DeepCopyInto(out *RolloutList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]Rollout, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RolloutList. -func (in *RolloutList) DeepCopy() *RolloutList { - if in == nil { - return nil - } - out := new(RolloutList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *RolloutList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RolloutPause) DeepCopyInto(out *RolloutPause) { - *out = *in - if in.Duration != nil { - in, out := &in.Duration, &out.Duration - *out = new(int32) - **out = **in - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RolloutPause. -func (in *RolloutPause) DeepCopy() *RolloutPause { - if in == nil { - return nil - } - out := new(RolloutPause) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RolloutSpec) DeepCopyInto(out *RolloutSpec) { - *out = *in - in.ObjectRef.DeepCopyInto(&out.ObjectRef) - in.Strategy.DeepCopyInto(&out.Strategy) -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RolloutSpec. -func (in *RolloutSpec) DeepCopy() *RolloutSpec { - if in == nil { - return nil - } - out := new(RolloutSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RolloutStatus) DeepCopyInto(out *RolloutStatus) { - *out = *in - if in.CanaryStatus != nil { - in, out := &in.CanaryStatus, &out.CanaryStatus - *out = new(CanaryStatus) - (*in).DeepCopyInto(*out) - } - if in.Conditions != nil { - in, out := &in.Conditions, &out.Conditions - *out = make([]RolloutCondition, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RolloutStatus. -func (in *RolloutStatus) DeepCopy() *RolloutStatus { - if in == nil { - return nil - } - out := new(RolloutStatus) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RolloutStrategy) DeepCopyInto(out *RolloutStrategy) { - *out = *in - if in.Canary != nil { - in, out := &in.Canary, &out.Canary - *out = new(CanaryStrategy) - (*in).DeepCopyInto(*out) - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RolloutStrategy. -func (in *RolloutStrategy) DeepCopy() *RolloutStrategy { - if in == nil { - return nil - } - out := new(RolloutStrategy) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ServiceInfo) DeepCopyInto(out *ServiceInfo) { - *out = *in - in.NameAndSpecData.DeepCopyInto(&out.NameAndSpecData) -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceInfo. -func (in *ServiceInfo) DeepCopy() *ServiceInfo { - if in == nil { - return nil - } - out := new(ServiceInfo) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *TrafficRouting) DeepCopyInto(out *TrafficRouting) { - *out = *in - if in.Ingress != nil { - in, out := &in.Ingress, &out.Ingress - *out = new(IngressTrafficRouting) - **out = **in - } - if in.Gateway != nil { - in, out := &in.Gateway, &out.Gateway - *out = new(GatewayTrafficRouting) - (*in).DeepCopyInto(*out) - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TrafficRouting. -func (in *TrafficRouting) DeepCopy() *TrafficRouting { - if in == nil { - return nil - } - out := new(TrafficRouting) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *TrafficRoutingInfo) DeepCopyInto(out *TrafficRoutingInfo) { - *out = *in - if in.Ingress != nil { - in, out := &in.Ingress, &out.Ingress - *out = new(IngressInfo) - (*in).DeepCopyInto(*out) - } - if in.HTTPRoute != nil { - in, out := &in.HTTPRoute, &out.HTTPRoute - *out = new(HTTPRouteInfo) - (*in).DeepCopyInto(*out) - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TrafficRoutingInfo. -func (in *TrafficRoutingInfo) DeepCopy() *TrafficRoutingInfo { - if in == nil { - return nil - } - out := new(TrafficRoutingInfo) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *WorkloadInfo) DeepCopyInto(out *WorkloadInfo) { - *out = *in - out.TypeMeta = in.TypeMeta - in.NameAndSpecData.DeepCopyInto(&out.NameAndSpecData) -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkloadInfo. -func (in *WorkloadInfo) DeepCopy() *WorkloadInfo { - if in == nil { - return nil - } - out := new(WorkloadInfo) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *WorkloadRef) DeepCopyInto(out *WorkloadRef) { - *out = *in -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkloadRef. -func (in *WorkloadRef) DeepCopy() *WorkloadRef { - if in == nil { - return nil - } - out := new(WorkloadRef) - in.DeepCopyInto(out) - return out -} diff --git a/schema/openkruise_rollouts_kustomize_schema.json b/schema/openkruise_rollouts_kustomize_schema.json deleted file mode 100644 index 32f4ba44..00000000 --- a/schema/openkruise_rollouts_kustomize_schema.json +++ /dev/null @@ -1,1193 +0,0 @@ -{ - "definitions": { - "io.kruise.rollouts.v1alpha1.BatchRelease": { - "type": "object", - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - "type": "string" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "default": {}, - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" - }, - "spec": { - "default": {}, - "$ref": "#/definitions/io.kruise.rollouts.v1alpha1.BatchReleaseSpec" - }, - "status": { - "default": {}, - "$ref": "#/definitions/io.kruise.rollouts.v1alpha1.BatchReleaseStatus" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "rollouts.kruise.io", - "kind": "BatchRelease", - "version": "v1alpha1" - } - ] - }, - "io.kruise.rollouts.v1alpha1.BatchReleaseCanaryStatus": { - "type": "object", - "required": [ - "currentBatch" - ], - "properties": { - "batchReadyTime": { - "description": "BatchReadyTime is the ready timestamp of the current batch or the last batch. This field is updated once a batch ready, and the batches[x].pausedSeconds relies on this field to calculate the real-time duration.", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time" - }, - "batchState": { - "description": "CurrentBatchState indicates the release state of the current batch.", - "type": "string" - }, - "currentBatch": { - "description": "The current batch the rollout is working on/blocked, it starts from 0", - "type": "integer", - "format": "int32", - "default": 0 - }, - "noNeedUpdateReplicas": { - "description": "the number of pods that no need to rollback in rollback scene.", - "type": "integer", - "format": "int32" - }, - "updatedReadyReplicas": { - "description": "UpdatedReadyReplicas is the number upgraded Pods that have a Ready Condition.", - "type": "integer", - "format": "int32" - }, - "updatedReplicas": { - "description": "UpdatedReplicas is the number of upgraded Pods.", - "type": "integer", - "format": "int32" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "rollouts.kruise.io", - "kind": "BatchReleaseCanaryStatus", - "version": "v1alpha1" - } - ] - }, - "io.kruise.rollouts.v1alpha1.BatchReleaseList": { - "description": "BatchReleaseList contains a list of BatchRelease", - "type": "object", - "required": [ - "items" - ], - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - "type": "string" - }, - "items": { - "type": "array", - "items": { - "default": {}, - "$ref": "#/definitions/io.kruise.rollouts.v1alpha1.BatchRelease" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "default": {}, - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "rollouts.kruise.io", - "kind": "BatchReleaseList", - "version": "v1alpha1" - } - ] - }, - "io.kruise.rollouts.v1alpha1.BatchReleaseSpec": { - "description": "BatchReleaseSpec defines how to describe an update between different compRevision", - "type": "object", - "required": [ - "targetReference", - "releasePlan" - ], - "properties": { - "releasePlan": { - "description": "ReleasePlan is the details on how to rollout the resources", - "default": {}, - "$ref": "#/definitions/io.kruise.rollouts.v1alpha1.ReleasePlan" - }, - "targetReference": { - "description": "TargetRef contains the GVK and name of the workload that we need to upgrade to.", - "default": {}, - "$ref": "#/definitions/io.kruise.rollouts.v1alpha1.ObjectRef" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "rollouts.kruise.io", - "kind": "BatchReleaseSpec", - "version": "v1alpha1" - } - ] - }, - "io.kruise.rollouts.v1alpha1.BatchReleaseStatus": { - "description": "BatchReleaseStatus defines the observed state of a release plan", - "type": "object", - "properties": { - "canaryStatus": { - "description": "CanaryStatus describes the state of the canary rollout.", - "default": {}, - "$ref": "#/definitions/io.kruise.rollouts.v1alpha1.BatchReleaseCanaryStatus" - }, - "collisionCount": { - "description": "Count of hash collisions for creating canary Deployment. The controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest canary Deployment.", - "type": "integer", - "format": "int32" - }, - "conditions": { - "description": "Conditions represents the observed process state of each phase during executing the release plan.", - "type": "array", - "items": { - "default": {}, - "$ref": "#/definitions/io.kruise.rollouts.v1alpha1.RolloutCondition" - } - }, - "observedGeneration": { - "description": "ObservedGeneration is the most recent generation observed for this BatchRelease. It corresponds to this BatchRelease's generation, which is updated on mutation by the API Server, and only if BatchRelease Spec was changed, its generation will increase 1.", - "type": "integer", - "format": "int64" - }, - "observedReleasePlanHash": { - "description": "ObservedReleasePlanHash is a hash code of observed itself spec.releasePlan.", - "type": "string" - }, - "observedRolloutID": { - "description": "ObservedRolloutID is the most recent rollout-id observed for this BatchRelease. If RolloutID was changed, we will restart to roll out from batch 0, to ensure the batch-id and rollout-id labels of Pods are correct.", - "type": "string" - }, - "observedWorkloadReplicas": { - "description": "ObservedWorkloadReplicas is observed replicas of target referenced workload. This field is designed to deal with scaling event during rollout, if this field changed, it means that the workload is scaling during rollout.", - "type": "integer", - "format": "int32" - }, - "phase": { - "description": "Phase is the release plan phase, which indicates the current state of release plan state machine in BatchRelease controller.", - "type": "string" - }, - "stableRevision": { - "description": "StableRevision is the pod-template-hash of stable revision pod template.", - "type": "string" - }, - "updateRevision": { - "description": "UpdateRevision is the pod-template-hash of update revision pod template.", - "type": "string" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "rollouts.kruise.io", - "kind": "BatchReleaseStatus", - "version": "v1alpha1" - } - ] - }, - "io.kruise.rollouts.v1alpha1.CanaryStatus": { - "description": "CanaryStatus status fields that only pertain to the canary rollout", - "type": "object", - "required": [ - "canaryRevision", - "podTemplateHash", - "canaryReplicas", - "canaryReadyReplicas", - "currentStepState" - ], - "properties": { - "canaryReadyReplicas": { - "description": "CanaryReadyReplicas the numbers of ready canary revision pods", - "type": "integer", - "format": "int32", - "default": 0 - }, - "canaryReplicas": { - "description": "CanaryReplicas the numbers of canary revision pods", - "type": "integer", - "format": "int32", - "default": 0 - }, - "canaryRevision": { - "description": "CanaryRevision is calculated by rollout based on podTemplateHash, and the internal logic flow uses It may be different from rs podTemplateHash in different k8s versions, so it cannot be used as service selector label", - "type": "string", - "default": "" - }, - "currentStepIndex": { - "description": "CurrentStepIndex defines the current step of the rollout is on. If the current step index is null, the controller will execute the rollout.", - "type": "integer", - "format": "int32", - "default": 0 - }, - "currentStepState": { - "type": "string", - "default": "" - }, - "lastUpdateTime": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time" - }, - "message": { - "type": "string" - }, - "observedRolloutID": { - "description": "ObservedRolloutID will record the newest spec.RolloutID if status.canaryRevision equals to workload.updateRevision", - "type": "string" - }, - "observedWorkloadGeneration": { - "description": "observedWorkloadGeneration is the most recent generation observed for this Rollout ref workload generation.", - "type": "integer", - "format": "int64" - }, - "podTemplateHash": { - "description": "pod template hash is used as service selector label", - "type": "string", - "default": "" - }, - "rolloutHash": { - "description": "RolloutHash from rollout.spec object", - "type": "string" - }, - "stableRevision": { - "description": "StableRevision indicates the revision of stable pods", - "type": "string" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "rollouts.kruise.io", - "kind": "CanaryStatus", - "version": "v1alpha1" - } - ] - }, - "io.kruise.rollouts.v1alpha1.CanaryStep": { - "description": "CanaryStep defines a step of a canary workload.", - "type": "object", - "properties": { - "matches": { - "description": "Matches define conditions used for matching the incoming HTTP requests to canary service. Each match is independent, i.e. this rule will be matched if **any** one of the matches is satisfied. If Gateway API, current only support one match. And cannot support both weight and matches, if both are configured, then matches takes precedence.", - "type": "array", - "items": { - "default": {}, - "$ref": "#/definitions/io.kruise.rollouts.v1alpha1.HttpRouteMatch" - } - }, - "pause": { - "description": "Pause defines a pause stage for a rollout, manual or auto", - "default": {}, - "$ref": "#/definitions/io.kruise.rollouts.v1alpha1.RolloutPause" - }, - "replicas": { - "description": "Replicas is the number of expected canary pods in this batch it can be an absolute number (ex: 5) or a percentage of total pods.", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.util.intstr.IntOrString" - }, - "weight": { - "description": "Weight indicate how many percentage of traffic the canary pods should receive", - "type": "integer", - "format": "int32" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "rollouts.kruise.io", - "kind": "CanaryStep", - "version": "v1alpha1" - } - ] - }, - "io.kruise.rollouts.v1alpha1.CanaryStepInfo": { - "description": "CanaryStepInfo indicates the pods for a revision", - "type": "object", - "properties": { - "canaryStepIndex": { - "description": "CanaryStepIndex indicates step this revision", - "type": "integer", - "format": "int32" - }, - "pods": { - "description": "Pods indicates the pods information", - "type": "array", - "items": { - "default": {}, - "$ref": "#/definitions/io.kruise.rollouts.v1alpha1.Pod" - } - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "rollouts.kruise.io", - "kind": "CanaryStepInfo", - "version": "v1alpha1" - } - ] - }, - "io.kruise.rollouts.v1alpha1.CanaryStrategy": { - "description": "CanaryStrategy defines parameters for a Replica Based Canary", - "type": "object", - "properties": { - "failureThreshold": { - "description": "FailureThreshold indicates how many failed pods can be tolerated in all upgraded pods. Only when FailureThreshold are satisfied, Rollout can enter ready state. If FailureThreshold is nil, Rollout will use the MaxUnavailable of workload as its FailureThreshold. Defaults to nil.", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.util.intstr.IntOrString" - }, - "steps": { - "description": "Steps define the order of phases to execute release in batches(20%, 40%, 60%, 80%, 100%)", - "type": "array", - "items": { - "default": {}, - "$ref": "#/definitions/io.kruise.rollouts.v1alpha1.CanaryStep" - } - }, - "trafficRoutings": { - "description": "TrafficRoutings hosts all the supported service meshes supported to enable more fine-grained traffic routing todo current only support one TrafficRouting", - "type": "array", - "items": { - "$ref": "#/definitions/io.kruise.rollouts.v1alpha1.TrafficRouting" - } - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "rollouts.kruise.io", - "kind": "CanaryStrategy", - "version": "v1alpha1" - } - ] - }, - "io.kruise.rollouts.v1alpha1.DeploymentExtraStatus": { - "description": "DeploymentExtraStatus is extra status field for Advanced Deployment", - "type": "object", - "properties": { - "expectedUpdatedReplicas": { - "description": "ExpectedUpdatedReplicas is an absolute number calculated based on Partition and Deployment.Spec.Replicas, means how many pods are expected be updated under current strategy. This field is designed to avoid users to fall into the details of algorithm for Partition calculation.", - "type": "integer", - "format": "int32" - }, - "updatedReadyReplicas": { - "description": "UpdatedReadyReplicas the number of pods that has been updated and ready.", - "type": "integer", - "format": "int32" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "rollouts.kruise.io", - "kind": "DeploymentExtraStatus", - "version": "v1alpha1" - } - ] - }, - "io.kruise.rollouts.v1alpha1.DeploymentStrategy": { - "description": "DeploymentStrategy is strategy field for Advanced Deployment", - "type": "object", - "properties": { - "partition": { - "description": "Partition describe how many Pods should be updated during rollout. We use this field to implement partition-style rolling update.", - "default": {}, - "$ref": "#/definitions/io.k8s.apimachinery.pkg.util.intstr.IntOrString" - }, - "paused": { - "description": "Paused = true will block the upgrade of Pods", - "type": "boolean" - }, - "rollingStyle": { - "description": "RollingStyle define the behavior of rolling for deployment.", - "type": "string" - }, - "rollingUpdate": { - "description": "original deployment strategy rolling update fields", - "$ref": "#/definitions/io.k8s.api.apps.v1.RollingUpdateDeployment" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "rollouts.kruise.io", - "kind": "DeploymentStrategy", - "version": "v1alpha1" - } - ] - }, - "io.kruise.rollouts.v1alpha1.GatewayTrafficRouting": { - "description": "GatewayTrafficRouting configuration for gateway api", - "type": "object", - "properties": { - "httpRouteName": { - "description": "HTTPRouteName refers to the name of an `HTTPRoute` resource in the same namespace as the `Rollout`", - "type": "string" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "rollouts.kruise.io", - "kind": "GatewayTrafficRouting", - "version": "v1alpha1" - } - ] - }, - "io.kruise.rollouts.v1alpha1.HTTPRouteInfo": { - "description": "HTTPRouteInfo indicates information of gateway API", - "type": "object", - "required": [ - "name" - ], - "properties": { - "data": { - "description": "Data indecates the spec of object ref", - "default": {}, - "$ref": "#/definitions/io.k8s.apimachinery.pkg.runtime.RawExtension" - }, - "name": { - "description": "Name indicates the name of object ref, such as rollout name, workload name, ingress name, etc.", - "type": "string", - "default": "" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "rollouts.kruise.io", - "kind": "HTTPRouteInfo", - "version": "v1alpha1" - } - ] - }, - "io.kruise.rollouts.v1alpha1.HttpRouteMatch": { - "type": "object", - "properties": { - "headers": { - "description": "Headers specifies HTTP request header matchers. Multiple match values are ANDed together, meaning, a request must match all the specified headers to select the route.", - "type": "array", - "items": { - "default": {}, - "$ref": "#/definitions/io.k8s.sigs.gateway-api.apis.v1alpha2.HTTPHeaderMatch" - } - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "rollouts.kruise.io", - "kind": "HttpRouteMatch", - "version": "v1alpha1" - } - ] - }, - "io.kruise.rollouts.v1alpha1.IngressInfo": { - "description": "IngressInfo indicates information of the ingress related", - "type": "object", - "required": [ - "name" - ], - "properties": { - "data": { - "description": "Data indecates the spec of object ref", - "default": {}, - "$ref": "#/definitions/io.k8s.apimachinery.pkg.runtime.RawExtension" - }, - "name": { - "description": "Name indicates the name of object ref, such as rollout name, workload name, ingress name, etc.", - "type": "string", - "default": "" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "rollouts.kruise.io", - "kind": "IngressInfo", - "version": "v1alpha1" - } - ] - }, - "io.kruise.rollouts.v1alpha1.IngressTrafficRouting": { - "description": "IngressTrafficRouting configuration for ingress controller to control traffic routing", - "type": "object", - "required": [ - "name" - ], - "properties": { - "classType": { - "description": "ClassType refers to the type of `Ingress`. current support nginx, aliyun-alb. default is nginx.", - "type": "string" - }, - "name": { - "description": "Name refers to the name of an `Ingress` resource in the same namespace as the `Rollout`", - "type": "string", - "default": "" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "rollouts.kruise.io", - "kind": "IngressTrafficRouting", - "version": "v1alpha1" - } - ] - }, - "io.kruise.rollouts.v1alpha1.NameAndSpecData": { - "type": "object", - "required": [ - "name" - ], - "properties": { - "data": { - "description": "Data indecates the spec of object ref", - "default": {}, - "$ref": "#/definitions/io.k8s.apimachinery.pkg.runtime.RawExtension" - }, - "name": { - "description": "Name indicates the name of object ref, such as rollout name, workload name, ingress name, etc.", - "type": "string", - "default": "" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "rollouts.kruise.io", - "kind": "NameAndSpecData", - "version": "v1alpha1" - } - ] - }, - "io.kruise.rollouts.v1alpha1.ObjectRef": { - "type": "object", - "properties": { - "workloadRef": { - "description": "WorkloadRef contains enough information to let you identify a workload for Rollout Batch release of the bypass", - "$ref": "#/definitions/io.kruise.rollouts.v1alpha1.WorkloadRef" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "rollouts.kruise.io", - "kind": "ObjectRef", - "version": "v1alpha1" - } - ] - }, - "io.kruise.rollouts.v1alpha1.Pod": { - "description": "Pod indicates the information of a pod, including name, ip, node_name.", - "type": "object", - "properties": { - "ip": { - "description": "IP indicates the pod ip", - "type": "string" - }, - "name": { - "description": "Name indicates the node name", - "type": "string" - }, - "nodeName": { - "description": "NodeName indicates the node which pod is located at", - "type": "string" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "rollouts.kruise.io", - "kind": "Pod", - "version": "v1alpha1" - } - ] - }, - "io.kruise.rollouts.v1alpha1.ReleaseBatch": { - "description": "ReleaseBatch is used to describe how each batch release should be", - "type": "object", - "required": [ - "canaryReplicas" - ], - "properties": { - "canaryReplicas": { - "description": "CanaryReplicas is the number of upgraded pods that should have in this batch. it can be an absolute number (ex: 5) or a percentage of workload replicas. batches[i].canaryReplicas should less than or equal to batches[j].canaryReplicas if i \u003c j.", - "default": {}, - "$ref": "#/definitions/io.k8s.apimachinery.pkg.util.intstr.IntOrString" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "rollouts.kruise.io", - "kind": "ReleaseBatch", - "version": "v1alpha1" - } - ] - }, - "io.kruise.rollouts.v1alpha1.ReleasePlan": { - "description": "ReleasePlan fines the details of the release plan", - "type": "object", - "properties": { - "batchPartition": { - "description": "All pods in the batches up to the batchPartition (included) will have the target resource specification while the rest still is the stable revision. This is designed for the operators to manually rollout. Default is nil, which means no partition and will release all batches. BatchPartition start from 0.", - "type": "integer", - "format": "int32" - }, - "batches": { - "description": "Batches is the details on each batch of the ReleasePlan. Users can specify their batch plan in this field, such as: batches: - canaryReplicas: 1 # batches 0 - canaryReplicas: 2 # batches 1 - canaryReplicas: 5 # batches 2 Not that these canaryReplicas should be a non-decreasing sequence.", - "type": "array", - "items": { - "default": {}, - "$ref": "#/definitions/io.kruise.rollouts.v1alpha1.ReleaseBatch" - } - }, - "failureThreshold": { - "description": "FailureThreshold indicates how many failed pods can be tolerated in all upgraded pods. Only when FailureThreshold are satisfied, Rollout can enter ready state. If FailureThreshold is nil, Rollout will use the MaxUnavailable of workload as its FailureThreshold. Defaults to nil.", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.util.intstr.IntOrString" - }, - "finalizingPolicy": { - "description": "FinalizingPolicy define the behavior of controller when phase enter Finalizing Defaults to \"Immediate\"", - "type": "string" - }, - "rolloutID": { - "description": "RolloutID indicates an id for each rollout progress", - "type": "string" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "rollouts.kruise.io", - "kind": "ReleasePlan", - "version": "v1alpha1" - } - ] - }, - "io.kruise.rollouts.v1alpha1.Rollout": { - "description": "Rollout is the Schema for the rollouts API", - "type": "object", - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - "type": "string" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "default": {}, - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" - }, - "spec": { - "default": {}, - "$ref": "#/definitions/io.kruise.rollouts.v1alpha1.RolloutSpec" - }, - "status": { - "default": {}, - "$ref": "#/definitions/io.kruise.rollouts.v1alpha1.RolloutStatus" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "rollouts.kruise.io", - "kind": "Rollout", - "version": "v1alpha1" - } - ] - }, - "io.kruise.rollouts.v1alpha1.RolloutCondition": { - "description": "RolloutCondition describes the state of a rollout at a certain point.", - "type": "object", - "required": [ - "type", - "status", - "reason", - "message" - ], - "properties": { - "lastTransitionTime": { - "description": "Last time the condition transitioned from one status to another.", - "default": {}, - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time" - }, - "lastUpdateTime": { - "description": "The last time this condition was updated.", - "default": {}, - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time" - }, - "message": { - "description": "A human readable message indicating details about the transition.", - "type": "string", - "default": "" - }, - "reason": { - "description": "The reason for the condition's last transition.", - "type": "string", - "default": "" - }, - "status": { - "description": "Phase of the condition, one of True, False, Unknown.", - "type": "string", - "default": "" - }, - "type": { - "description": "Type of rollout condition.", - "type": "string", - "default": "" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "rollouts.kruise.io", - "kind": "RolloutCondition", - "version": "v1alpha1" - } - ] - }, - "io.kruise.rollouts.v1alpha1.RolloutHistory": { - "description": "RolloutHistory is the Schema for the rollouthistories API", - "type": "object", - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - "type": "string" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "default": {}, - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" - }, - "spec": { - "default": {}, - "$ref": "#/definitions/io.kruise.rollouts.v1alpha1.RolloutHistorySpec" - }, - "status": { - "default": {}, - "$ref": "#/definitions/io.kruise.rollouts.v1alpha1.RolloutHistoryStatus" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "rollouts.kruise.io", - "kind": "RolloutHistory", - "version": "v1alpha1" - } - ] - }, - "io.kruise.rollouts.v1alpha1.RolloutHistoryList": { - "description": "RolloutHistoryList contains a list of RolloutHistory", - "type": "object", - "required": [ - "items" - ], - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - "type": "string" - }, - "items": { - "type": "array", - "items": { - "default": {}, - "$ref": "#/definitions/io.kruise.rollouts.v1alpha1.RolloutHistory" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "default": {}, - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "rollouts.kruise.io", - "kind": "RolloutHistoryList", - "version": "v1alpha1" - } - ] - }, - "io.kruise.rollouts.v1alpha1.RolloutHistorySpec": { - "description": "RolloutHistorySpec defines the desired state of RolloutHistory", - "type": "object", - "properties": { - "rollout": { - "description": "Rollout indicates information of the rollout related with rollouthistory", - "default": {}, - "$ref": "#/definitions/io.kruise.rollouts.v1alpha1.RolloutInfo" - }, - "service": { - "description": "Service indicates information of the service related with workload", - "default": {}, - "$ref": "#/definitions/io.kruise.rollouts.v1alpha1.ServiceInfo" - }, - "trafficRouting": { - "description": "TrafficRouting indicates information of traffic route related with workload", - "default": {}, - "$ref": "#/definitions/io.kruise.rollouts.v1alpha1.TrafficRoutingInfo" - }, - "workload": { - "description": "Workload indicates information of the workload, such as cloneset, deployment, advanced statefulset", - "default": {}, - "$ref": "#/definitions/io.kruise.rollouts.v1alpha1.WorkloadInfo" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "rollouts.kruise.io", - "kind": "RolloutHistorySpec", - "version": "v1alpha1" - } - ] - }, - "io.kruise.rollouts.v1alpha1.RolloutHistoryStatus": { - "description": "RolloutHistoryStatus defines the observed state of RolloutHistory", - "type": "object", - "properties": { - "canarySteps": { - "description": "CanarySteps indicates the pods released each step", - "type": "array", - "items": { - "default": {}, - "$ref": "#/definitions/io.kruise.rollouts.v1alpha1.CanaryStepInfo" - } - }, - "phase": { - "description": "Phase indicates phase of RolloutHistory, just \"\" or \"completed\"", - "type": "string" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "rollouts.kruise.io", - "kind": "RolloutHistoryStatus", - "version": "v1alpha1" - } - ] - }, - "io.kruise.rollouts.v1alpha1.RolloutInfo": { - "description": "RolloutInfo indicates information of the rollout related", - "type": "object", - "required": [ - "rolloutID", - "name" - ], - "properties": { - "data": { - "description": "Data indecates the spec of object ref", - "default": {}, - "$ref": "#/definitions/io.k8s.apimachinery.pkg.runtime.RawExtension" - }, - "name": { - "description": "Name indicates the name of object ref, such as rollout name, workload name, ingress name, etc.", - "type": "string", - "default": "" - }, - "rolloutID": { - "description": "RolloutID indicates the new rollout if there is no new RolloutID this time, ignore it and not execute RolloutHistory", - "type": "string", - "default": "" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "rollouts.kruise.io", - "kind": "RolloutInfo", - "version": "v1alpha1" - } - ] - }, - "io.kruise.rollouts.v1alpha1.RolloutList": { - "description": "RolloutList contains a list of Rollout", - "type": "object", - "required": [ - "items" - ], - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - "type": "string" - }, - "items": { - "type": "array", - "items": { - "default": {}, - "$ref": "#/definitions/io.kruise.rollouts.v1alpha1.Rollout" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "default": {}, - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "rollouts.kruise.io", - "kind": "RolloutList", - "version": "v1alpha1" - } - ] - }, - "io.kruise.rollouts.v1alpha1.RolloutPause": { - "description": "RolloutPause defines a pause stage for a rollout", - "type": "object", - "properties": { - "duration": { - "description": "Duration the amount of time to wait before moving to the next step.", - "type": "integer", - "format": "int32" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "rollouts.kruise.io", - "kind": "RolloutPause", - "version": "v1alpha1" - } - ] - }, - "io.kruise.rollouts.v1alpha1.RolloutSpec": { - "description": "RolloutSpec defines the desired state of Rollout", - "type": "object", - "required": [ - "objectRef", - "strategy" - ], - "properties": { - "objectRef": { - "description": "INSERT ADDITIONAL SPEC FIELDS - desired state of cluster Important: Run \"make\" to regenerate code after modifying this file ObjectRef indicates workload", - "default": {}, - "$ref": "#/definitions/io.kruise.rollouts.v1alpha1.ObjectRef" - }, - "rolloutID": { - "description": "DeprecatedRolloutID is the deprecated field. It is recommended that configure RolloutId in workload.annotations[rollouts.kruise.io/rollout-id]. RolloutID should be changed before each workload revision publication. It is to distinguish consecutive multiple workload publications and rollout progress.", - "type": "string" - }, - "strategy": { - "description": "rollout strategy", - "default": {}, - "$ref": "#/definitions/io.kruise.rollouts.v1alpha1.RolloutStrategy" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "rollouts.kruise.io", - "kind": "RolloutSpec", - "version": "v1alpha1" - } - ] - }, - "io.kruise.rollouts.v1alpha1.RolloutStatus": { - "description": "RolloutStatus defines the observed state of Rollout", - "type": "object", - "properties": { - "canaryStatus": { - "description": "Canary describes the state of the canary rollout", - "$ref": "#/definitions/io.kruise.rollouts.v1alpha1.CanaryStatus" - }, - "conditions": { - "description": "Conditions a list of conditions a rollout can have.", - "type": "array", - "items": { - "default": {}, - "$ref": "#/definitions/io.kruise.rollouts.v1alpha1.RolloutCondition" - } - }, - "message": { - "description": "Message provides details on why the rollout is in its current phase", - "type": "string" - }, - "observedGeneration": { - "description": "observedGeneration is the most recent generation observed for this Rollout.", - "type": "integer", - "format": "int64" - }, - "phase": { - "description": "BlueGreenStatus *BlueGreenStatus `json:\"blueGreenStatus,omitempty\"` Phase is the rollout phase.", - "type": "string" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "rollouts.kruise.io", - "kind": "RolloutStatus", - "version": "v1alpha1" - } - ] - }, - "io.kruise.rollouts.v1alpha1.RolloutStrategy": { - "description": "RolloutStrategy defines strategy to apply during next rollout", - "type": "object", - "properties": { - "canary": { - "$ref": "#/definitions/io.kruise.rollouts.v1alpha1.CanaryStrategy" - }, - "paused": { - "description": "Paused indicates that the Rollout is paused. Default value is false", - "type": "boolean" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "rollouts.kruise.io", - "kind": "RolloutStrategy", - "version": "v1alpha1" - } - ] - }, - "io.kruise.rollouts.v1alpha1.ServiceInfo": { - "description": "ServiceInfo indicates information of the service related", - "type": "object", - "required": [ - "name" - ], - "properties": { - "data": { - "description": "Data indecates the spec of object ref", - "default": {}, - "$ref": "#/definitions/io.k8s.apimachinery.pkg.runtime.RawExtension" - }, - "name": { - "description": "Name indicates the name of object ref, such as rollout name, workload name, ingress name, etc.", - "type": "string", - "default": "" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "rollouts.kruise.io", - "kind": "ServiceInfo", - "version": "v1alpha1" - } - ] - }, - "io.kruise.rollouts.v1alpha1.TrafficRouting": { - "description": "TrafficRouting hosts all the different configuration for supported service meshes to enable more fine-grained traffic routing", - "type": "object", - "required": [ - "service" - ], - "properties": { - "gateway": { - "description": "Gateway holds Gateway specific configuration to route traffic Gateway configuration only supports \u003e= v0.4.0 (v1alpha2).", - "$ref": "#/definitions/io.kruise.rollouts.v1alpha1.GatewayTrafficRouting" - }, - "gracePeriodSeconds": { - "description": "Optional duration in seconds the traffic provider(e.g. nginx ingress controller) consumes the service, ingress configuration changes gracefully.", - "type": "integer", - "format": "int32" - }, - "ingress": { - "description": "Ingress holds Ingress specific configuration to route traffic, e.g. Nginx, Alb.", - "$ref": "#/definitions/io.kruise.rollouts.v1alpha1.IngressTrafficRouting" - }, - "service": { - "description": "Service holds the name of a service which selects pods with stable version and don't select any pods with canary version.", - "type": "string", - "default": "" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "rollouts.kruise.io", - "kind": "TrafficRouting", - "version": "v1alpha1" - } - ] - }, - "io.kruise.rollouts.v1alpha1.TrafficRoutingInfo": { - "description": "TrafficRoutingInfo indicates information of Gateway API or Ingress", - "type": "object", - "properties": { - "httpRoute": { - "description": "HTTPRouteRef indacates information of Gateway API", - "$ref": "#/definitions/io.kruise.rollouts.v1alpha1.HTTPRouteInfo" - }, - "ingress": { - "description": "IngressRef indicates information of ingress", - "$ref": "#/definitions/io.kruise.rollouts.v1alpha1.IngressInfo" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "rollouts.kruise.io", - "kind": "TrafficRoutingInfo", - "version": "v1alpha1" - } - ] - }, - "io.kruise.rollouts.v1alpha1.WorkloadInfo": { - "description": "WorkloadInfo indicates information of the workload, such as cloneset, deployment, advanced statefulset", - "type": "object", - "required": [ - "name" - ], - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - "type": "string" - }, - "data": { - "description": "Data indecates the spec of object ref", - "default": {}, - "$ref": "#/definitions/io.k8s.apimachinery.pkg.runtime.RawExtension" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "type": "string" - }, - "name": { - "description": "Name indicates the name of object ref, such as rollout name, workload name, ingress name, etc.", - "type": "string", - "default": "" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "rollouts.kruise.io", - "kind": "WorkloadInfo", - "version": "v1alpha1" - } - ] - }, - "io.kruise.rollouts.v1alpha1.WorkloadRef": { - "description": "WorkloadRef holds a references to the Kubernetes object", - "type": "object", - "required": [ - "apiVersion", - "kind", - "name" - ], - "properties": { - "apiVersion": { - "description": "API Version of the referent", - "type": "string", - "default": "" - }, - "kind": { - "description": "Kind of the referent", - "type": "string", - "default": "" - }, - "name": { - "description": "Name of the referent", - "type": "string", - "default": "" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "rollouts.kruise.io", - "kind": "WorkloadRef", - "version": "v1alpha1" - } - ] - } - } -} \ No newline at end of file