From ad80c460817b5c616f1d08d1b60d94c775e04945 Mon Sep 17 00:00:00 2001 From: lgtm <1gtm@users.noreply.github.com> Date: Wed, 26 Aug 2020 02:28:05 -0700 Subject: [PATCH] Prepare for release 4.1.1-beta.20200826 (#192) ProductLine: Stash Release: v2020.08.26-rc.0 Release-tracker: https://github.com/stashed/CHANGELOG/pull/4 Signed-off-by: 1gtm <1gtm@appscode.com> --- charts/stash-mongodb/Chart.yaml | 4 +- charts/stash-mongodb/README.md | 36 +- charts/stash-mongodb/doc.yaml | 4 +- charts/stash-mongodb/values.yaml | 6 +- go.mod | 4 +- go.sum | 8 +- vendor/k8s.io/client-go/metadata/interface.go | 49 + vendor/k8s.io/client-go/metadata/metadata.go | 307 ++++ .../client-go/api/v1/certificates.go | 177 ++ .../client-go/api/v1/generated.pb.go | 1456 ++++++++++++++++- .../client-go/api/v1/generated.proto | 94 ++ .../client-go/api/v1/openapi_generated.go | 266 ++- .../client-go/api/v1/zz_generated.deepcopy.go | 135 ++ .../kmodules.xyz/client-go/core/v1/events.go | 101 ++ .../client-go/core/v1/kubernetes.go | 17 + vendor/kmodules.xyz/client-go/core/v1/node.go | 69 +- .../kmodules.xyz/client-go/meta/incluster.go | 5 + vendor/modules.txt | 5 +- .../apimachinery/apis/constants.go | 1 + .../v1alpha1/openapi_generated.go | 264 +++ .../apimachinery/apis/restore_invoker.go | 2 +- .../apis/stash/v1alpha1/openapi_generated.go | 264 +++ .../apis/stash/v1alpha1/repository_helpers.go | 17 + .../apis/stash/v1beta1/annotations.go | 2 + .../apis/stash/v1beta1/generated.pb.go | 616 +++---- .../apis/stash/v1beta1/generated.proto | 18 +- .../apis/stash/v1beta1/openapi_generated.go | 264 +++ .../stash/v1beta1/restore_batch_helpers.go | 2 +- .../apis/stash/v1beta1/restore_batch_types.go | 2 +- .../apimachinery/apis/stash/v1beta1/types.go | 18 +- .../stash/v1beta1/fake/fake_restorebatch.go | 2 +- .../typed/stash/v1beta1/restorebatch.go | 2 +- .../typed/stash/v1beta1/util/restorebatch.go | 2 +- .../apimachinery/pkg/conditions/backup.go | 2 +- .../apimachinery/pkg/conditions/hooks.go | 2 +- .../apimachinery/pkg/conditions/repository.go | 2 +- .../apimachinery/pkg/conditions/restore.go | 10 +- .../apimachinery/pkg/util/backup.go | 2 +- 38 files changed, 3783 insertions(+), 454 deletions(-) create mode 100644 vendor/k8s.io/client-go/metadata/interface.go create mode 100644 vendor/k8s.io/client-go/metadata/metadata.go create mode 100644 vendor/kmodules.xyz/client-go/api/v1/certificates.go create mode 100644 vendor/kmodules.xyz/client-go/core/v1/events.go diff --git a/charts/stash-mongodb/Chart.yaml b/charts/stash-mongodb/Chart.yaml index 7d463a10e..e71fd22fd 100644 --- a/charts/stash-mongodb/Chart.yaml +++ b/charts/stash-mongodb/Chart.yaml @@ -1,8 +1,8 @@ apiVersion: v1 description: 'stash-mongodb - MongoDB database plugin for Stash by AppsCode' name: stash-mongodb -version: 4.1.1-beta.20200709 -appVersion: 4.1.1-beta.20200709 +version: 4.1.1-beta.20200826 +appVersion: 4.1.1-beta.20200826 home: https://stash.run icon: https://cdn.appscode.com/images/products/stash/addons/mongodb-stash-addon.png sources: diff --git a/charts/stash-mongodb/README.md b/charts/stash-mongodb/README.md index c3bb9f386..6871d5ea3 100644 --- a/charts/stash-mongodb/README.md +++ b/charts/stash-mongodb/README.md @@ -7,7 +7,7 @@ ```console $ helm repo add appscode https://charts.appscode.com/stable/ $ helm repo update -$ helm install stash-mongodb-4.1.1-beta.20200709 appscode/stash-mongodb -n kube-system --version=4.1.1-beta.20200709 +$ helm install stash-mongodb-4.1.1-beta.20200826 appscode/stash-mongodb -n kube-system --version=4.1.1-beta.20200826 ``` ## Introduction @@ -20,10 +20,10 @@ This chart deploys necessary `Function` and `Task` definition to backup or resto ## Installing the Chart -To install the chart with the release name `stash-mongodb-4.1.1-beta.20200709`: +To install the chart with the release name `stash-mongodb-4.1.1-beta.20200826`: ```console -$ helm install stash-mongodb-4.1.1-beta.20200709 appscode/stash-mongodb -n kube-system --version=4.1.1-beta.20200709 +$ helm install stash-mongodb-4.1.1-beta.20200826 appscode/stash-mongodb -n kube-system --version=4.1.1-beta.20200826 ``` The command deploys necessary `Function` and `Task` definition to backup or restore MongoDB 4.1.13 using Stash on the Kubernetes cluster in the default configuration. The [configuration](#configuration) section lists the parameters that can be configured during installation. @@ -32,10 +32,10 @@ The command deploys necessary `Function` and `Task` definition to backup or rest ## Uninstalling the Chart -To uninstall/delete the `stash-mongodb-4.1.1-beta.20200709`: +To uninstall/delete the `stash-mongodb-4.1.1-beta.20200826`: ```console -$ helm delete stash-mongodb-4.1.1-beta.20200709 -n kube-system +$ helm delete stash-mongodb-4.1.1-beta.20200826 -n kube-system ``` The command removes all the Kubernetes components associated with the chart and deletes the release. @@ -44,28 +44,28 @@ The command removes all the Kubernetes components associated with the chart and The following table lists the configurable parameters of the `stash-mongodb` chart and their default values. -| Parameter | Description | Default | -|------------------|-------------------------------------------------------------------------------------------------------------------------------|-----------------| -| nameOverride | Overrides name template | `""` | -| fullnameOverride | Overrides fullname template | `""` | -| image.registry | Docker registry used to pull MongoDB addon image | `stashed` | -| image.repository | Docker image used to backup/restore MongoDB database | `stash-mongodb` | -| image.tag | Tag of the image that is used to backup/restore MongoDB database. This is usually same as the database version it can backup. | `"4.1.13"` | -| backup.args | Arguments to pass to `mongodump` command during backup process | `""` | -| restore.args | Arguments to pass to `mongorestore` command during restore process | `""` | -| maxConcurrency | Maximum concurrency to perform backup or restore tasks | `3` | -| waitTimeout | Number of seconds to wait for the database to be ready before backup/restore process. | `300` | +| Parameter | Description | Default | +|------------------|-------------------------------------------------------------------------------------------------------------------------------|-----------------------| +| nameOverride | Overrides name template | `""` | +| fullnameOverride | Overrides fullname template | `""` | +| image.registry | Docker registry used to pull MongoDB addon image | `stashed` | +| image.repository | Docker image used to backup/restore MongoDB database | `stash-mongodb` | +| image.tag | Tag of the image that is used to backup/restore MongoDB database. This is usually same as the database version it can backup. | `4.1.1-beta.20200826` | +| backup.args | Arguments to pass to `mongodump` command during backup process | `""` | +| restore.args | Arguments to pass to `mongorestore` command during restore process | `""` | +| maxConcurrency | Maximum concurrency to perform backup or restore tasks | `3` | +| waitTimeout | Number of seconds to wait for the database to be ready before backup/restore process. | `300` | Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. For example: ```console -$ helm install stash-mongodb-4.1.1-beta.20200709 appscode/stash-mongodb -n kube-system --version=4.1.1-beta.20200709 --set image.registry=stashed +$ helm install stash-mongodb-4.1.1-beta.20200826 appscode/stash-mongodb -n kube-system --version=4.1.1-beta.20200826 --set image.registry=stashed ``` Alternatively, a YAML file that specifies the values for the parameters can be provided while installing the chart. For example: ```console -$ helm install stash-mongodb-4.1.1-beta.20200709 appscode/stash-mongodb -n kube-system --version=4.1.1-beta.20200709 --values values.yaml +$ helm install stash-mongodb-4.1.1-beta.20200826 appscode/stash-mongodb -n kube-system --version=4.1.1-beta.20200826 --values values.yaml ``` diff --git a/charts/stash-mongodb/doc.yaml b/charts/stash-mongodb/doc.yaml index 3fb14c709..528d0e75f 100644 --- a/charts/stash-mongodb/doc.yaml +++ b/charts/stash-mongodb/doc.yaml @@ -10,11 +10,11 @@ repository: name: appscode chart: name: stash-mongodb - version: 4.1.1-beta.20200709 + version: 4.1.1-beta.20200826 values: "-- generate from values file --" valuesExample: "-- generate from values file --" prerequisites: - Kubernetes 1.11+ release: - name: stash-mongodb-4.1.1-beta.20200709 + name: stash-mongodb-4.1.1-beta.20200826 namespace: kube-system diff --git a/charts/stash-mongodb/values.yaml b/charts/stash-mongodb/values.yaml index 75af4fd35..a59f6aa18 100644 --- a/charts/stash-mongodb/values.yaml +++ b/charts/stash-mongodb/values.yaml @@ -6,7 +6,6 @@ nameOverride: "" # Overrides fullname template fullnameOverride: "" - image: # Docker registry used to pull MongoDB addon image registry: stashed @@ -14,8 +13,7 @@ image: repository: stash-mongodb # Tag of the image that is used to backup/restore MongoDB database. # This is usually same as the database version it can backup. - tag: "4.1.13" - + tag: 4.1.1-beta.20200826 # optional argument to send mongodump or mongorestore command backup: # Arguments to pass to `mongodump` command during backup process @@ -23,9 +21,7 @@ backup: restore: # Arguments to pass to `mongorestore` command during restore process args: "" - # Maximum concurrency to perform backup or restore tasks maxConcurrency: 3 - # Number of seconds to wait for the database to be ready before backup/restore process. waitTimeout: 300 diff --git a/go.mod b/go.mod index 33bcd2536..1b7d78bdc 100644 --- a/go.mod +++ b/go.mod @@ -16,13 +16,13 @@ require ( k8s.io/apimachinery v0.18.3 k8s.io/client-go v12.0.0+incompatible k8s.io/kube-openapi v0.0.0-20200410145947-61e04a5be9a6 - kmodules.xyz/client-go v0.0.0-20200714060506-0b57b4060595 + kmodules.xyz/client-go v0.0.0-20200818171030-24b2ce405feb kmodules.xyz/crd-schema-fuzz v0.0.0-20200521005638-2433a187de95 kmodules.xyz/custom-resources v0.0.0-20200604135349-9e9f5c4fdba9 kmodules.xyz/offshoot-api v0.0.0-20200521035628-e135bf07b226 kubedb.dev/apimachinery v0.14.0-alpha.5 sigs.k8s.io/yaml v1.2.0 - stash.appscode.dev/apimachinery v0.10.0-beta.1.0.20200717091944-a8f3bb469467 + stash.appscode.dev/apimachinery v0.10.0-rc.0 ) replace ( diff --git a/go.sum b/go.sum index 7981eb04d..59d378487 100644 --- a/go.sum +++ b/go.sum @@ -1257,8 +1257,8 @@ kmodules.xyz/client-go v0.0.0-20200524205059-e986bc44c91b/go.mod h1:sY/eoe4ktxZE kmodules.xyz/client-go v0.0.0-20200525012433-99c6914a1eca/go.mod h1:sY/eoe4ktxZEoHpr5NpAQ5s22VSwTE8psJtKVeVgLRY= kmodules.xyz/client-go v0.0.0-20200525195850-2fd180961371 h1:PPawDOMyDHGeDPN8j1epNozaIB/Z7MlJsXpwm/r4jgk= kmodules.xyz/client-go v0.0.0-20200525195850-2fd180961371/go.mod h1:sY/eoe4ktxZEoHpr5NpAQ5s22VSwTE8psJtKVeVgLRY= -kmodules.xyz/client-go v0.0.0-20200714060506-0b57b4060595 h1:KgvN4M8VbHU6JV4rgYzsUKYhUtF1uCt//dLOyEdG330= -kmodules.xyz/client-go v0.0.0-20200714060506-0b57b4060595/go.mod h1:sY/eoe4ktxZEoHpr5NpAQ5s22VSwTE8psJtKVeVgLRY= +kmodules.xyz/client-go v0.0.0-20200818171030-24b2ce405feb h1:0yIIoTfkhR4JAgx8UyXbP7oAveVAOcf66+D+20Uj/Uc= +kmodules.xyz/client-go v0.0.0-20200818171030-24b2ce405feb/go.mod h1:sY/eoe4ktxZEoHpr5NpAQ5s22VSwTE8psJtKVeVgLRY= kmodules.xyz/constants v0.0.0-20200506032633-a21e58ceec72/go.mod h1:DbiFk1bJ1KEO94t1SlAn7tzc+Zz95rSXgyUKa2nzPmY= kmodules.xyz/crd-schema-fuzz v0.0.0-20200521005638-2433a187de95 h1:v0S/+ftzL6Xrs9XevgchAOJyPKlRQXPiZf87xotj3X4= kmodules.xyz/crd-schema-fuzz v0.0.0-20200521005638-2433a187de95/go.mod h1:jpu8xFsDKd6kAWUAKk8oTu/GQGBWqhrcaDeOJdaCJnk= @@ -1307,6 +1307,6 @@ software.sslmate.com/src/go-pkcs12 v0.0.0-20180114231543-2291e8f0f237/go.mod h1: sourcegraph.com/sqs/pbtypes v0.0.0-20180604144634-d3ebe8f20ae4/go.mod h1:ketZ/q3QxT9HOBeFhu6RdvsftgpsbFHBF5Cas6cDKZ0= stash.appscode.dev/apimachinery v0.10.0-alpha.0 h1:/CBUctjDJyjo9a9lANjAPRq3Fj1KygXddgoJKdGQ0Q8= stash.appscode.dev/apimachinery v0.10.0-alpha.0/go.mod h1:su9Q+3/B6+5PdGvVZBIkXoAik6iKKFUcdPNThpZPVV4= -stash.appscode.dev/apimachinery v0.10.0-beta.1.0.20200717091944-a8f3bb469467 h1:ghoHaD+TRpDGB1sjA6F+4wT4uKNF/hhbulzARzO7AXE= -stash.appscode.dev/apimachinery v0.10.0-beta.1.0.20200717091944-a8f3bb469467/go.mod h1:lyIgBXoTj0cugPfVQC5IjOsMiQEx0YQuvr3KycGltyU= +stash.appscode.dev/apimachinery v0.10.0-rc.0 h1:eapfPKJjFFh+YlZtJ2KVdngHG0jvjl/hOBLkj1hHejI= +stash.appscode.dev/apimachinery v0.10.0-rc.0/go.mod h1:TpdBIAiHCtpkUB13SDUyCZ6y+5wmzXBMAf9e72cSPO4= vbom.ml/util v0.0.0-20160121211510-db5cfe13f5cc/go.mod h1:so/NYdZXCz+E3ZpW0uAoCj6uzU2+8OWDFv/HxUSs7kI= diff --git a/vendor/k8s.io/client-go/metadata/interface.go b/vendor/k8s.io/client-go/metadata/interface.go new file mode 100644 index 000000000..127c39501 --- /dev/null +++ b/vendor/k8s.io/client-go/metadata/interface.go @@ -0,0 +1,49 @@ +/* +Copyright 2016 The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package metadata + +import ( + "context" + + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + "k8s.io/apimachinery/pkg/runtime/schema" + "k8s.io/apimachinery/pkg/types" + "k8s.io/apimachinery/pkg/watch" +) + +// Interface allows a caller to get the metadata (in the form of PartialObjectMetadata objects) +// from any Kubernetes compatible resource API. +type Interface interface { + Resource(resource schema.GroupVersionResource) Getter +} + +// ResourceInterface contains the set of methods that may be invoked on objects by their metadata. +// Update is not supported by the server, but Patch can be used for the actions Update would handle. +type ResourceInterface interface { + Delete(ctx context.Context, name string, options metav1.DeleteOptions, subresources ...string) error + DeleteCollection(ctx context.Context, options metav1.DeleteOptions, listOptions metav1.ListOptions) error + Get(ctx context.Context, name string, options metav1.GetOptions, subresources ...string) (*metav1.PartialObjectMetadata, error) + List(ctx context.Context, opts metav1.ListOptions) (*metav1.PartialObjectMetadataList, error) + Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, options metav1.PatchOptions, subresources ...string) (*metav1.PartialObjectMetadata, error) +} + +// Getter handles both namespaced and non-namespaced resource types consistently. +type Getter interface { + Namespace(string) ResourceInterface + ResourceInterface +} diff --git a/vendor/k8s.io/client-go/metadata/metadata.go b/vendor/k8s.io/client-go/metadata/metadata.go new file mode 100644 index 000000000..4750ffade --- /dev/null +++ b/vendor/k8s.io/client-go/metadata/metadata.go @@ -0,0 +1,307 @@ +/* +Copyright 2018 The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package metadata + +import ( + "context" + "encoding/json" + "fmt" + "time" + + "k8s.io/klog" + + metainternalversionscheme "k8s.io/apimachinery/pkg/apis/meta/internalversion/scheme" + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + "k8s.io/apimachinery/pkg/runtime" + "k8s.io/apimachinery/pkg/runtime/schema" + "k8s.io/apimachinery/pkg/runtime/serializer" + "k8s.io/apimachinery/pkg/types" + "k8s.io/apimachinery/pkg/watch" + "k8s.io/client-go/rest" +) + +var deleteScheme = runtime.NewScheme() +var parameterScheme = runtime.NewScheme() +var deleteOptionsCodec = serializer.NewCodecFactory(deleteScheme) +var dynamicParameterCodec = runtime.NewParameterCodec(parameterScheme) + +var versionV1 = schema.GroupVersion{Version: "v1"} + +func init() { + metav1.AddToGroupVersion(parameterScheme, versionV1) + metav1.AddToGroupVersion(deleteScheme, versionV1) +} + +// Client allows callers to retrieve the object metadata for any +// Kubernetes-compatible API endpoint. The client uses the +// meta.k8s.io/v1 PartialObjectMetadata resource to more efficiently +// retrieve just the necessary metadata, but on older servers +// (Kubernetes 1.14 and before) will retrieve the object and then +// convert the metadata. +type Client struct { + client *rest.RESTClient +} + +var _ Interface = &Client{} + +// ConfigFor returns a copy of the provided config with the +// appropriate metadata client defaults set. +func ConfigFor(inConfig *rest.Config) *rest.Config { + config := rest.CopyConfig(inConfig) + config.AcceptContentTypes = "application/vnd.kubernetes.protobuf,application/json" + config.ContentType = "application/vnd.kubernetes.protobuf" + config.NegotiatedSerializer = metainternalversionscheme.Codecs.WithoutConversion() + if config.UserAgent == "" { + config.UserAgent = rest.DefaultKubernetesUserAgent() + } + return config +} + +// NewForConfigOrDie creates a new metadata client for the given config and +// panics if there is an error in the config. +func NewForConfigOrDie(c *rest.Config) Interface { + ret, err := NewForConfig(c) + if err != nil { + panic(err) + } + return ret +} + +// NewForConfig creates a new metadata client that can retrieve object +// metadata details about any Kubernetes object (core, aggregated, or custom +// resource based) in the form of PartialObjectMetadata objects, or returns +// an error. +func NewForConfig(inConfig *rest.Config) (Interface, error) { + config := ConfigFor(inConfig) + // for serializing the options + config.GroupVersion = &schema.GroupVersion{} + config.APIPath = "/this-value-should-never-be-sent" + + restClient, err := rest.RESTClientFor(config) + if err != nil { + return nil, err + } + + return &Client{client: restClient}, nil +} + +type client struct { + client *Client + namespace string + resource schema.GroupVersionResource +} + +// Resource returns an interface that can access cluster or namespace +// scoped instances of resource. +func (c *Client) Resource(resource schema.GroupVersionResource) Getter { + return &client{client: c, resource: resource} +} + +// Namespace returns an interface that can access namespace-scoped instances of the +// provided resource. +func (c *client) Namespace(ns string) ResourceInterface { + ret := *c + ret.namespace = ns + return &ret +} + +// Delete removes the provided resource from the server. +func (c *client) Delete(ctx context.Context, name string, opts metav1.DeleteOptions, subresources ...string) error { + if len(name) == 0 { + return fmt.Errorf("name is required") + } + deleteOptionsByte, err := runtime.Encode(deleteOptionsCodec.LegacyCodec(schema.GroupVersion{Version: "v1"}), &opts) + if err != nil { + return err + } + + result := c.client.client. + Delete(). + AbsPath(append(c.makeURLSegments(name), subresources...)...). + Body(deleteOptionsByte). + Do(ctx) + return result.Error() +} + +// DeleteCollection triggers deletion of all resources in the specified scope (namespace or cluster). +func (c *client) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOptions metav1.ListOptions) error { + deleteOptionsByte, err := runtime.Encode(deleteOptionsCodec.LegacyCodec(schema.GroupVersion{Version: "v1"}), &opts) + if err != nil { + return err + } + + result := c.client.client. + Delete(). + AbsPath(c.makeURLSegments("")...). + Body(deleteOptionsByte). + SpecificallyVersionedParams(&listOptions, dynamicParameterCodec, versionV1). + Do(ctx) + return result.Error() +} + +// Get returns the resource with name from the specified scope (namespace or cluster). +func (c *client) Get(ctx context.Context, name string, opts metav1.GetOptions, subresources ...string) (*metav1.PartialObjectMetadata, error) { + if len(name) == 0 { + return nil, fmt.Errorf("name is required") + } + result := c.client.client.Get().AbsPath(append(c.makeURLSegments(name), subresources...)...). + SetHeader("Accept", "application/vnd.kubernetes.protobuf;as=PartialObjectMetadata;g=meta.k8s.io;v=v1,application/json;as=PartialObjectMetadata;g=meta.k8s.io;v=v1,application/json"). + SpecificallyVersionedParams(&opts, dynamicParameterCodec, versionV1). + Do(ctx) + if err := result.Error(); err != nil { + return nil, err + } + obj, err := result.Get() + if runtime.IsNotRegisteredError(err) { + klog.V(5).Infof("Unable to retrieve PartialObjectMetadata: %#v", err) + rawBytes, err := result.Raw() + if err != nil { + return nil, err + } + var partial metav1.PartialObjectMetadata + if err := json.Unmarshal(rawBytes, &partial); err != nil { + return nil, fmt.Errorf("unable to decode returned object as PartialObjectMetadata: %v", err) + } + if !isLikelyObjectMetadata(&partial) { + return nil, fmt.Errorf("object does not appear to match the ObjectMeta schema: %#v", partial) + } + partial.TypeMeta = metav1.TypeMeta{} + return &partial, nil + } + if err != nil { + return nil, err + } + partial, ok := obj.(*metav1.PartialObjectMetadata) + if !ok { + return nil, fmt.Errorf("unexpected object, expected PartialObjectMetadata but got %T", obj) + } + return partial, nil +} + +// List returns all resources within the specified scope (namespace or cluster). +func (c *client) List(ctx context.Context, opts metav1.ListOptions) (*metav1.PartialObjectMetadataList, error) { + result := c.client.client.Get().AbsPath(c.makeURLSegments("")...). + SetHeader("Accept", "application/vnd.kubernetes.protobuf;as=PartialObjectMetadataList;g=meta.k8s.io;v=v1,application/json;as=PartialObjectMetadataList;g=meta.k8s.io;v=v1,application/json"). + SpecificallyVersionedParams(&opts, dynamicParameterCodec, versionV1). + Do(ctx) + if err := result.Error(); err != nil { + return nil, err + } + obj, err := result.Get() + if runtime.IsNotRegisteredError(err) { + klog.V(5).Infof("Unable to retrieve PartialObjectMetadataList: %#v", err) + rawBytes, err := result.Raw() + if err != nil { + return nil, err + } + var partial metav1.PartialObjectMetadataList + if err := json.Unmarshal(rawBytes, &partial); err != nil { + return nil, fmt.Errorf("unable to decode returned object as PartialObjectMetadataList: %v", err) + } + partial.TypeMeta = metav1.TypeMeta{} + return &partial, nil + } + if err != nil { + return nil, err + } + partial, ok := obj.(*metav1.PartialObjectMetadataList) + if !ok { + return nil, fmt.Errorf("unexpected object, expected PartialObjectMetadata but got %T", obj) + } + return partial, nil +} + +// Watch finds all changes to the resources in the specified scope (namespace or cluster). +func (c *client) Watch(ctx context.Context, opts metav1.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.client.Get(). + AbsPath(c.makeURLSegments("")...). + SetHeader("Accept", "application/vnd.kubernetes.protobuf;as=PartialObjectMetadata;g=meta.k8s.io;v=v1,application/json;as=PartialObjectMetadata;g=meta.k8s.io;v=v1,application/json"). + SpecificallyVersionedParams(&opts, dynamicParameterCodec, versionV1). + Timeout(timeout). + Watch(ctx) +} + +// Patch modifies the named resource in the specified scope (namespace or cluster). +func (c *client) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (*metav1.PartialObjectMetadata, error) { + if len(name) == 0 { + return nil, fmt.Errorf("name is required") + } + result := c.client.client. + Patch(pt). + AbsPath(append(c.makeURLSegments(name), subresources...)...). + Body(data). + SetHeader("Accept", "application/vnd.kubernetes.protobuf;as=PartialObjectMetadata;g=meta.k8s.io;v=v1,application/json;as=PartialObjectMetadata;g=meta.k8s.io;v=v1,application/json"). + SpecificallyVersionedParams(&opts, dynamicParameterCodec, versionV1). + Do(ctx) + if err := result.Error(); err != nil { + return nil, err + } + obj, err := result.Get() + if runtime.IsNotRegisteredError(err) { + rawBytes, err := result.Raw() + if err != nil { + return nil, err + } + var partial metav1.PartialObjectMetadata + if err := json.Unmarshal(rawBytes, &partial); err != nil { + return nil, fmt.Errorf("unable to decode returned object as PartialObjectMetadata: %v", err) + } + if !isLikelyObjectMetadata(&partial) { + return nil, fmt.Errorf("object does not appear to match the ObjectMeta schema") + } + partial.TypeMeta = metav1.TypeMeta{} + return &partial, nil + } + if err != nil { + return nil, err + } + partial, ok := obj.(*metav1.PartialObjectMetadata) + if !ok { + return nil, fmt.Errorf("unexpected object, expected PartialObjectMetadata but got %T", obj) + } + return partial, nil +} + +func (c *client) makeURLSegments(name string) []string { + url := []string{} + if len(c.resource.Group) == 0 { + url = append(url, "api") + } else { + url = append(url, "apis", c.resource.Group) + } + url = append(url, c.resource.Version) + + if len(c.namespace) > 0 { + url = append(url, "namespaces", c.namespace) + } + url = append(url, c.resource.Resource) + + if len(name) > 0 { + url = append(url, name) + } + + return url +} + +func isLikelyObjectMetadata(meta *metav1.PartialObjectMetadata) bool { + return len(meta.UID) > 0 || !meta.CreationTimestamp.IsZero() || len(meta.Name) > 0 || len(meta.GenerateName) > 0 +} diff --git a/vendor/kmodules.xyz/client-go/api/v1/certificates.go b/vendor/kmodules.xyz/client-go/api/v1/certificates.go new file mode 100644 index 000000000..d7fa9a9a5 --- /dev/null +++ b/vendor/kmodules.xyz/client-go/api/v1/certificates.go @@ -0,0 +1,177 @@ +package v1 + +import ( + core "k8s.io/api/core/v1" + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" +) + +type TLSConfig struct { + // IssuerRef is a reference to a Certificate Issuer. + // +optional + IssuerRef *core.TypedLocalObjectReference `json:"issuerRef,omitempty" protobuf:"bytes,1,opt,name=issuerRef"` + + // Certificate provides server and/or client certificate options used by application pods. + // These options are passed to a cert-manager Certificate object. + // xref: https://github.com/jetstack/cert-manager/blob/v0.16.0/pkg/apis/certmanager/v1beta1/types_certificate.go#L82-L162 + // +optional + Certificates []CertificateSpec `json:"certificates,omitempty" protobuf:"bytes,2,rep,name=certificates"` +} + +type CertificateSpec struct { + // Alias represents the identifier of the certificate. + Alias string `json:"alias" protobuf:"bytes,1,opt,name=alias"` + + // Specifies the k8s secret name that holds the certificates. + // Default to --cert. + // +optional + SecretName string `json:"secretName,omitempty" protobuf:"bytes,2,opt,name=secretName"` + + // KeyEncoding is the private key cryptography standards (PKCS) + // for this certificate's private key to be encoded in. + // If provided, allowed values are "pkcs1" and "pkcs8". + // If KeyEncoding is not specified, then PKCS#1 will be used by default. + // +optional + KeyEncoding string `json:"keyEncoding,omitempty" protobuf:"bytes,3,opt,name=keyEncoding"` + + // Full X509 name specification (https://golang.org/pkg/crypto/x509/pkix/#Name). + // +optional + Subject *X509Subject `json:"subject,omitempty" protobuf:"bytes,4,opt,name=subject"` + + // Certificate default Duration + // +optional + Duration *metav1.Duration `json:"duration,omitempty" protobuf:"bytes,5,opt,name=duration"` + + // Certificate renew before expiration duration + // +optional + RenewBefore *metav1.Duration `json:"renewBefore,omitempty" protobuf:"bytes,6,opt,name=renewBefore"` + + // DNSNames is a list of subject alt names to be used on the Certificate. + // +optional + DNSNames []string `json:"dnsNames,omitempty" protobuf:"bytes,7,rep,name=dnsNames"` + + // IPAddresses is a list of IP addresses to be used on the Certificate + // +optional + IPAddresses []string `json:"ipAddresses,omitempty" protobuf:"bytes,8,rep,name=ipAddresses"` + + // URISANs is a list of URI Subject Alternative Names to be set on this + // Certificate. + // +optional + URISANs []string `json:"uriSANs,omitempty" protobuf:"bytes,9,rep,name=uriSANs"` + + // EmailSANs is a list of email subjectAltNames to be set on the Certificate. + // +optional + EmailSANs []string `json:"emailSANs,omitempty" protobuf:"bytes,10,rep,name=emailSANs"` +} + +// X509Subject Full X509 name specification +type X509Subject struct { + // Organizations to be used on the Certificate. + // +optional + Organizations []string `json:"organizations,omitempty" protobuf:"bytes,1,rep,name=organizations"` + // Countries to be used on the CertificateSpec. + // +optional + Countries []string `json:"countries,omitempty" protobuf:"bytes,2,rep,name=countries"` + // Organizational Units to be used on the CertificateSpec. + // +optional + OrganizationalUnits []string `json:"organizationalUnits,omitempty" protobuf:"bytes,3,rep,name=organizationalUnits"` + // Cities to be used on the CertificateSpec. + // +optional + Localities []string `json:"localities,omitempty" protobuf:"bytes,4,rep,name=localities"` + // State/Provinces to be used on the CertificateSpec. + // +optional + Provinces []string `json:"provinces,omitempty" protobuf:"bytes,5,rep,name=provinces"` + // Street addresses to be used on the CertificateSpec. + // +optional + StreetAddresses []string `json:"streetAddresses,omitempty" protobuf:"bytes,6,rep,name=streetAddresses"` + // Postal codes to be used on the CertificateSpec. + // +optional + PostalCodes []string `json:"postalCodes,omitempty" protobuf:"bytes,7,rep,name=postalCodes"` + // Serial number to be used on the CertificateSpec. + // +optional + SerialNumber string `json:"serialNumber,omitempty" protobuf:"bytes,8,opt,name=serialNumber"` +} + +// HasCertificate returns "true" if the desired certificate provided in "aliaS" is present in the certificate list. +// Otherwise, it returns "false". +func HasCertificate(certificates []CertificateSpec, alias string) bool { + for i := range certificates { + if certificates[i].Alias == alias { + return true + } + } + return false +} + +// GetCertificate returns a pointer to the desired certificate referred by "aliaS". Otherwise, it returns nil. +func GetCertificate(certificates []CertificateSpec, alias string) (int, *CertificateSpec) { + for i := range certificates { + c := certificates[i] + if c.Alias == alias { + return i, &c + } + } + return -1, nil +} + +// SetCertificate add/update the desired certificate to the certificate list. +func SetCertificate(certificates []CertificateSpec, newCertificate CertificateSpec) []CertificateSpec { + idx, _ := GetCertificate(certificates, newCertificate.Alias) + if idx != -1 { + certificates[idx] = newCertificate + } else { + certificates = append(certificates, newCertificate) + } + return certificates +} + +// GetCertificateSecretName returns the name of secret for a certificate alias. +func GetCertificateSecretName(certificates []CertificateSpec, alias string) (string, bool) { + idx, cert := GetCertificate(certificates, alias) + if idx == -1 { + return "", false + } + return cert.SecretName, cert.SecretName != "" +} + +// SetMissingSecretNameForCertificate sets the missing secret name for a certificate. +// If the certificate does not exist, it will add a new certificate with the desired secret name. +func SetMissingSecretNameForCertificate(certificates []CertificateSpec, alias, secretName string) []CertificateSpec { + idx, _ := GetCertificate(certificates, alias) + if idx != -1 { + if certificates[idx].SecretName == "" { + certificates[idx].SecretName = secretName + } + } else { + certificates = append(certificates, CertificateSpec{ + Alias: alias, + SecretName: secretName, + }) + } + return certificates +} + +// SetSecretNameForCertificate sets the secret name for a certificate. +// If the certificate does not exist, it will add a new certificate with the desired secret name. +// Otherwise, the secret name will be overwritten. +func SetSecretNameForCertificate(certificates []CertificateSpec, alias, secretName string) []CertificateSpec { + idx, _ := GetCertificate(certificates, alias) + if idx != -1 { + certificates[idx].SecretName = secretName + } else { + certificates = append(certificates, CertificateSpec{ + Alias: alias, + SecretName: secretName, + }) + } + return certificates +} + +// RemoveCertificate remove a certificate from the certificate list referred by "aliaS" parameter. +func RemoveCertificate(certificates []CertificateSpec, alias string) []CertificateSpec { + idx, _ := GetCertificate(certificates, alias) + if idx == -1 { + // The desired certificate is not present in the certificate list. So, nothing to do. + return certificates + } + return append(certificates[:idx], certificates[idx+1:]...) +} diff --git a/vendor/kmodules.xyz/client-go/api/v1/generated.pb.go b/vendor/kmodules.xyz/client-go/api/v1/generated.pb.go index e5f582620..16995356d 100644 --- a/vendor/kmodules.xyz/client-go/api/v1/generated.pb.go +++ b/vendor/kmodules.xyz/client-go/api/v1/generated.pb.go @@ -28,6 +28,8 @@ import ( strings "strings" proto "github.com/gogo/protobuf/proto" + v11 "k8s.io/api/core/v1" + v1 "k8s.io/apimachinery/pkg/apis/meta/v1" ) // Reference imports to suppress errors if they are not otherwise used. @@ -41,10 +43,38 @@ var _ = math.Inf // proto package needs to be updated. const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package +func (m *CertificateSpec) Reset() { *m = CertificateSpec{} } +func (*CertificateSpec) ProtoMessage() {} +func (*CertificateSpec) Descriptor() ([]byte, []int) { + return fileDescriptor_af8e7a11c7a1ccd9, []int{0} +} +func (m *CertificateSpec) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CertificateSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *CertificateSpec) XXX_Merge(src proto.Message) { + xxx_messageInfo_CertificateSpec.Merge(m, src) +} +func (m *CertificateSpec) XXX_Size() int { + return m.Size() +} +func (m *CertificateSpec) XXX_DiscardUnknown() { + xxx_messageInfo_CertificateSpec.DiscardUnknown(m) +} + +var xxx_messageInfo_CertificateSpec proto.InternalMessageInfo + func (m *Condition) Reset() { *m = Condition{} } func (*Condition) ProtoMessage() {} func (*Condition) Descriptor() ([]byte, []int) { - return fileDescriptor_af8e7a11c7a1ccd9, []int{0} + return fileDescriptor_af8e7a11c7a1ccd9, []int{1} } func (m *Condition) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -69,8 +99,67 @@ func (m *Condition) XXX_DiscardUnknown() { var xxx_messageInfo_Condition proto.InternalMessageInfo +func (m *TLSConfig) Reset() { *m = TLSConfig{} } +func (*TLSConfig) ProtoMessage() {} +func (*TLSConfig) Descriptor() ([]byte, []int) { + return fileDescriptor_af8e7a11c7a1ccd9, []int{2} +} +func (m *TLSConfig) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *TLSConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *TLSConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLSConfig.Merge(m, src) +} +func (m *TLSConfig) XXX_Size() int { + return m.Size() +} +func (m *TLSConfig) XXX_DiscardUnknown() { + xxx_messageInfo_TLSConfig.DiscardUnknown(m) +} + +var xxx_messageInfo_TLSConfig proto.InternalMessageInfo + +func (m *X509Subject) Reset() { *m = X509Subject{} } +func (*X509Subject) ProtoMessage() {} +func (*X509Subject) Descriptor() ([]byte, []int) { + return fileDescriptor_af8e7a11c7a1ccd9, []int{3} +} +func (m *X509Subject) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *X509Subject) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *X509Subject) XXX_Merge(src proto.Message) { + xxx_messageInfo_X509Subject.Merge(m, src) +} +func (m *X509Subject) XXX_Size() int { + return m.Size() +} +func (m *X509Subject) XXX_DiscardUnknown() { + xxx_messageInfo_X509Subject.DiscardUnknown(m) +} + +var xxx_messageInfo_X509Subject proto.InternalMessageInfo + func init() { + proto.RegisterType((*CertificateSpec)(nil), "kmodules.xyz.client_go.api.v1.CertificateSpec") proto.RegisterType((*Condition)(nil), "kmodules.xyz.client_go.api.v1.Condition") + proto.RegisterType((*TLSConfig)(nil), "kmodules.xyz.client_go.api.v1.TLSConfig") + proto.RegisterType((*X509Subject)(nil), "kmodules.xyz.client_go.api.v1.X509Subject") } func init() { @@ -78,32 +167,175 @@ func init() { } var fileDescriptor_af8e7a11c7a1ccd9 = []byte{ - // 395 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x90, 0x31, 0x8f, 0xd3, 0x30, - 0x1c, 0xc5, 0xe3, 0x5e, 0xc9, 0xe9, 0x0c, 0xe2, 0x24, 0x4f, 0x51, 0x25, 0xdc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 0x00, + // 917 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x54, 0x41, 0x6f, 0xe3, 0x44, + 0x14, 0x4e, 0x36, 0x69, 0x12, 0x4f, 0xd2, 0x8d, 0x98, 0x22, 0x61, 0x55, 0x22, 0x29, 0x41, 0xa0, + 0x00, 0xaa, 0x43, 0x2b, 0x56, 0xec, 0x1e, 0x38, 0x34, 0x61, 0x85, 0x0a, 0xa5, 0x2d, 0x93, 0xae, + 0xb4, 0xda, 0x0b, 0x9a, 0xd8, 0x2f, 0xee, 0x10, 0xc7, 0x63, 0xcd, 0x8c, 0x03, 0xd9, 0x13, 0x3f, + 0x81, 0x7f, 0x45, 0x8f, 0xcb, 0x6d, 0x4f, 0x11, 0x35, 0xff, 0x82, 0x0b, 0x68, 0xc6, 0x4e, 0xec, + 0x6e, 0xa3, 0x15, 0xe2, 0xe6, 0xf9, 0xbe, 0xef, 0x7d, 0x6f, 0xfc, 0xde, 0x9b, 0x87, 0x0e, 0x67, + 0x73, 0xee, 0xc5, 0x01, 0x48, 0xe7, 0x97, 0xe5, 0xcb, 0x81, 0x1b, 0x30, 0x08, 0xd5, 0xa1, 0xcf, + 0x07, 0x34, 0x62, 0x83, 0xc5, 0xd1, 0xc0, 0x87, 0x10, 0x04, 0x55, 0xe0, 0x39, 0x91, 0xe0, 0x8a, + 0xe3, 0xf7, 0x8b, 0x72, 0x27, 0x95, 0xff, 0xe8, 0x73, 0x87, 0x46, 0xcc, 0x59, 0x1c, 0xed, 0x1f, + 0xfa, 0x4c, 0x5d, 0xc7, 0x13, 0xc7, 0xe5, 0xf3, 0x81, 0xcf, 0x7d, 0x3e, 0x30, 0x51, 0x93, 0x78, + 0x6a, 0x4e, 0xe6, 0x60, 0xbe, 0x52, 0xb7, 0xfd, 0xde, 0xec, 0xb1, 0x74, 0x58, 0x9a, 0xcc, 0xe5, + 0x02, 0xb6, 0x64, 0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ff, 0xff, 0xad, 0x52, 0xe1, + 0x04, 0x86, 0x07, 0x00, 0x00, +} + +func (m *CertificateSpec) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *CertificateSpec) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CertificateSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.EmailSANs) > 0 { + for iNdEx := len(m.EmailSANs) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.EmailSANs[iNdEx]) + copy(dAtA[i:], m.EmailSANs[iNdEx]) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.EmailSANs[iNdEx]))) + i-- + dAtA[i] = 0x52 + } + } + if len(m.URISANs) > 0 { + for iNdEx := len(m.URISANs) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.URISANs[iNdEx]) + copy(dAtA[i:], m.URISANs[iNdEx]) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.URISANs[iNdEx]))) + i-- + dAtA[i] = 0x4a + } + } + if len(m.IPAddresses) > 0 { + for iNdEx := len(m.IPAddresses) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.IPAddresses[iNdEx]) + copy(dAtA[i:], m.IPAddresses[iNdEx]) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.IPAddresses[iNdEx]))) + i-- + dAtA[i] = 0x42 + } + } + if len(m.DNSNames) > 0 { + for iNdEx := len(m.DNSNames) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.DNSNames[iNdEx]) + copy(dAtA[i:], m.DNSNames[iNdEx]) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.DNSNames[iNdEx]))) + i-- + dAtA[i] = 0x3a + } + } + if m.RenewBefore != nil { + { + size, err := m.RenewBefore.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + } + if m.Duration != nil { + { + size, err := m.Duration.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + if m.Subject != nil { + { + size, err := m.Subject.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + i -= len(m.KeyEncoding) + copy(dAtA[i:], m.KeyEncoding) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.KeyEncoding))) + i-- + dAtA[i] = 0x1a + i -= len(m.SecretName) + copy(dAtA[i:], m.SecretName) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.SecretName))) + i-- + dAtA[i] = 0x12 + i -= len(m.Alias) + copy(dAtA[i:], m.Alias) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Alias))) + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil } func (m *Condition) Marshal() (dAtA []byte, err error) { @@ -162,6 +394,146 @@ func (m *Condition) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } +func (m *TLSConfig) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *TLSConfig) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TLSConfig) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Certificates) > 0 { + for iNdEx := len(m.Certificates) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Certificates[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if m.IssuerRef != nil { + { + size, err := m.IssuerRef.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *X509Subject) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *X509Subject) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *X509Subject) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + i -= len(m.SerialNumber) + copy(dAtA[i:], m.SerialNumber) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.SerialNumber))) + i-- + dAtA[i] = 0x42 + if len(m.PostalCodes) > 0 { + for iNdEx := len(m.PostalCodes) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.PostalCodes[iNdEx]) + copy(dAtA[i:], m.PostalCodes[iNdEx]) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.PostalCodes[iNdEx]))) + i-- + dAtA[i] = 0x3a + } + } + if len(m.StreetAddresses) > 0 { + for iNdEx := len(m.StreetAddresses) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.StreetAddresses[iNdEx]) + copy(dAtA[i:], m.StreetAddresses[iNdEx]) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.StreetAddresses[iNdEx]))) + i-- + dAtA[i] = 0x32 + } + } + if len(m.Provinces) > 0 { + for iNdEx := len(m.Provinces) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Provinces[iNdEx]) + copy(dAtA[i:], m.Provinces[iNdEx]) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Provinces[iNdEx]))) + i-- + dAtA[i] = 0x2a + } + } + if len(m.Localities) > 0 { + for iNdEx := len(m.Localities) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Localities[iNdEx]) + copy(dAtA[i:], m.Localities[iNdEx]) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Localities[iNdEx]))) + i-- + dAtA[i] = 0x22 + } + } + if len(m.OrganizationalUnits) > 0 { + for iNdEx := len(m.OrganizationalUnits) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.OrganizationalUnits[iNdEx]) + copy(dAtA[i:], m.OrganizationalUnits[iNdEx]) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.OrganizationalUnits[iNdEx]))) + i-- + dAtA[i] = 0x1a + } + } + if len(m.Countries) > 0 { + for iNdEx := len(m.Countries) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Countries[iNdEx]) + copy(dAtA[i:], m.Countries[iNdEx]) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Countries[iNdEx]))) + i-- + dAtA[i] = 0x12 + } + } + if len(m.Organizations) > 0 { + for iNdEx := len(m.Organizations) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Organizations[iNdEx]) + copy(dAtA[i:], m.Organizations[iNdEx]) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Organizations[iNdEx]))) + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int { offset -= sovGenerated(v) base := offset @@ -173,6 +545,57 @@ func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int { dAtA[offset] = uint8(v) return base } +func (m *CertificateSpec) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Alias) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.SecretName) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.KeyEncoding) + n += 1 + l + sovGenerated(uint64(l)) + if m.Subject != nil { + l = m.Subject.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + if m.Duration != nil { + l = m.Duration.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + if m.RenewBefore != nil { + l = m.RenewBefore.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + if len(m.DNSNames) > 0 { + for _, s := range m.DNSNames { + l = len(s) + n += 1 + l + sovGenerated(uint64(l)) + } + } + if len(m.IPAddresses) > 0 { + for _, s := range m.IPAddresses { + l = len(s) + n += 1 + l + sovGenerated(uint64(l)) + } + } + if len(m.URISANs) > 0 { + for _, s := range m.URISANs { + l = len(s) + n += 1 + l + sovGenerated(uint64(l)) + } + } + if len(m.EmailSANs) > 0 { + for _, s := range m.EmailSANs { + l = len(s) + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + func (m *Condition) Size() (n int) { if m == nil { return 0 @@ -193,12 +616,103 @@ func (m *Condition) Size() (n int) { return n } +func (m *TLSConfig) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.IssuerRef != nil { + l = m.IssuerRef.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + if len(m.Certificates) > 0 { + for _, e := range m.Certificates { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *X509Subject) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Organizations) > 0 { + for _, s := range m.Organizations { + l = len(s) + n += 1 + l + sovGenerated(uint64(l)) + } + } + if len(m.Countries) > 0 { + for _, s := range m.Countries { + l = len(s) + n += 1 + l + sovGenerated(uint64(l)) + } + } + if len(m.OrganizationalUnits) > 0 { + for _, s := range m.OrganizationalUnits { + l = len(s) + n += 1 + l + sovGenerated(uint64(l)) + } + } + if len(m.Localities) > 0 { + for _, s := range m.Localities { + l = len(s) + n += 1 + l + sovGenerated(uint64(l)) + } + } + if len(m.Provinces) > 0 { + for _, s := range m.Provinces { + l = len(s) + n += 1 + l + sovGenerated(uint64(l)) + } + } + if len(m.StreetAddresses) > 0 { + for _, s := range m.StreetAddresses { + l = len(s) + n += 1 + l + sovGenerated(uint64(l)) + } + } + if len(m.PostalCodes) > 0 { + for _, s := range m.PostalCodes { + l = len(s) + n += 1 + l + sovGenerated(uint64(l)) + } + } + l = len(m.SerialNumber) + n += 1 + l + sovGenerated(uint64(l)) + return n +} + func sovGenerated(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } func sozGenerated(x uint64) (n int) { return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } +func (this *CertificateSpec) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&CertificateSpec{`, + `Alias:` + fmt.Sprintf("%v", this.Alias) + `,`, + `SecretName:` + fmt.Sprintf("%v", this.SecretName) + `,`, + `KeyEncoding:` + fmt.Sprintf("%v", this.KeyEncoding) + `,`, + `Subject:` + strings.Replace(this.Subject.String(), "X509Subject", "X509Subject", 1) + `,`, + `Duration:` + strings.Replace(fmt.Sprintf("%v", this.Duration), "Duration", "v1.Duration", 1) + `,`, + `RenewBefore:` + strings.Replace(fmt.Sprintf("%v", this.RenewBefore), "Duration", "v1.Duration", 1) + `,`, + `DNSNames:` + fmt.Sprintf("%v", this.DNSNames) + `,`, + `IPAddresses:` + fmt.Sprintf("%v", this.IPAddresses) + `,`, + `URISANs:` + fmt.Sprintf("%v", this.URISANs) + `,`, + `EmailSANs:` + fmt.Sprintf("%v", this.EmailSANs) + `,`, + `}`, + }, "") + return s +} func (this *Condition) String() string { if this == nil { return "nil" @@ -214,6 +728,39 @@ func (this *Condition) String() string { }, "") return s } +func (this *TLSConfig) String() string { + if this == nil { + return "nil" + } + repeatedStringForCertificates := "[]CertificateSpec{" + for _, f := range this.Certificates { + repeatedStringForCertificates += strings.Replace(strings.Replace(f.String(), "CertificateSpec", "CertificateSpec", 1), `&`, ``, 1) + "," + } + repeatedStringForCertificates += "}" + s := strings.Join([]string{`&TLSConfig{`, + `IssuerRef:` + strings.Replace(fmt.Sprintf("%v", this.IssuerRef), "TypedLocalObjectReference", "v11.TypedLocalObjectReference", 1) + `,`, + `Certificates:` + repeatedStringForCertificates + `,`, + `}`, + }, "") + return s +} +func (this *X509Subject) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&X509Subject{`, + `Organizations:` + fmt.Sprintf("%v", this.Organizations) + `,`, + `Countries:` + fmt.Sprintf("%v", this.Countries) + `,`, + `OrganizationalUnits:` + fmt.Sprintf("%v", this.OrganizationalUnits) + `,`, + `Localities:` + fmt.Sprintf("%v", this.Localities) + `,`, + `Provinces:` + fmt.Sprintf("%v", this.Provinces) + `,`, + `StreetAddresses:` + fmt.Sprintf("%v", this.StreetAddresses) + `,`, + `PostalCodes:` + fmt.Sprintf("%v", this.PostalCodes) + `,`, + `SerialNumber:` + fmt.Sprintf("%v", this.SerialNumber) + `,`, + `}`, + }, "") + return s +} func valueToStringGenerated(v interface{}) string { rv := reflect.ValueOf(v) if rv.IsNil() { @@ -222,7 +769,7 @@ func valueToStringGenerated(v interface{}) string { pv := reflect.Indirect(rv).Interface() return fmt.Sprintf("*%v", pv) } -func (m *Condition) Unmarshal(dAtA []byte) error { +func (m *CertificateSpec) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -245,15 +792,15 @@ func (m *Condition) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Condition: wiretype end group for non-group") + return fmt.Errorf("proto: CertificateSpec: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Condition: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: CertificateSpec: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Alias", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -281,11 +828,11 @@ func (m *Condition) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Type = string(dAtA[iNdEx:postIndex]) + m.Alias = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field SecretName", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -313,13 +860,13 @@ func (m *Condition) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Status = ConditionStatus(dAtA[iNdEx:postIndex]) + m.SecretName = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ObservedGeneration", wireType) + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field KeyEncoding", wireType) } - m.ObservedGeneration = 0 + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated @@ -329,14 +876,585 @@ func (m *Condition) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ObservedGeneration |= int64(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LastTransitionTime", wireType) + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.KeyEncoding = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Subject", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Subject == nil { + m.Subject = &X509Subject{} + } + if err := m.Subject.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Duration", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Duration == nil { + m.Duration = &v1.Duration{} + } + if err := m.Duration.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RenewBefore", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.RenewBefore == nil { + m.RenewBefore = &v1.Duration{} + } + if err := m.RenewBefore.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DNSNames", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.DNSNames = append(m.DNSNames, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field IPAddresses", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.IPAddresses = append(m.IPAddresses, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field URISANs", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.URISANs = append(m.URISANs, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 10: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field EmailSANs", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.EmailSANs = append(m.EmailSANs, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Condition) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Condition: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Condition: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Type = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Status = ConditionStatus(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ObservedGeneration", wireType) + } + m.ObservedGeneration = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ObservedGeneration |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LastTransitionTime", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.LastTransitionTime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Reason", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Reason = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Message = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *TLSConfig) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: TLSConfig: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: TLSConfig: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field IssuerRef", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.IssuerRef == nil { + m.IssuerRef = &v11.TypedLocalObjectReference{} + } + if err := m.IssuerRef.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Certificates", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -363,13 +1481,195 @@ func (m *Condition) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.LastTransitionTime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + m.Certificates = append(m.Certificates, CertificateSpec{}) + if err := m.Certificates[len(m.Certificates)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *X509Subject) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: X509Subject: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: X509Subject: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Organizations", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Organizations = append(m.Organizations, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Countries", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Countries = append(m.Countries, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OrganizationalUnits", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OrganizationalUnits = append(m.OrganizationalUnits, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Localities", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Localities = append(m.Localities, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex case 5: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Reason", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Provinces", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -397,11 +1697,11 @@ func (m *Condition) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Reason = string(dAtA[iNdEx:postIndex]) + m.Provinces = append(m.Provinces, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex case 6: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field StreetAddresses", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -429,7 +1729,71 @@ func (m *Condition) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Message = string(dAtA[iNdEx:postIndex]) + m.StreetAddresses = append(m.StreetAddresses, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PostalCodes", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PostalCodes = append(m.PostalCodes, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SerialNumber", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SerialNumber = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex diff --git a/vendor/kmodules.xyz/client-go/api/v1/generated.proto b/vendor/kmodules.xyz/client-go/api/v1/generated.proto index 026c90ae6..6db4749fd 100644 --- a/vendor/kmodules.xyz/client-go/api/v1/generated.proto +++ b/vendor/kmodules.xyz/client-go/api/v1/generated.proto @@ -21,11 +21,58 @@ syntax = 'proto2'; package kmodules.xyz.client_go.api.v1; +import "k8s.io/api/core/v1/generated.proto"; import "k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto"; // Package-wide variables from generator "generated". option go_package = "v1"; +message CertificateSpec { + // Alias represents the identifier of the certificate. + optional string alias = 1; + + // Specifies the k8s secret name that holds the certificates. + // Default to --cert. + // +optional + optional string secretName = 2; + + // KeyEncoding is the private key cryptography standards (PKCS) + // for this certificate's private key to be encoded in. + // If provided, allowed values are "pkcs1" and "pkcs8". + // If KeyEncoding is not specified, then PKCS#1 will be used by default. + // +optional + optional string keyEncoding = 3; + + // Full X509 name specification (https://golang.org/pkg/crypto/x509/pkix/#Name). + // +optional + optional X509Subject subject = 4; + + // Certificate default Duration + // +optional + optional k8s.io.apimachinery.pkg.apis.meta.v1.Duration duration = 5; + + // Certificate renew before expiration duration + // +optional + optional k8s.io.apimachinery.pkg.apis.meta.v1.Duration renewBefore = 6; + + // DNSNames is a list of subject alt names to be used on the Certificate. + // +optional + repeated string dnsNames = 7; + + // IPAddresses is a list of IP addresses to be used on the Certificate + // +optional + repeated string ipAddresses = 8; + + // URISANs is a list of URI Subject Alternative Names to be set on this + // Certificate. + // +optional + repeated string uriSANs = 9; + + // EmailSANs is a list of email subjectAltNames to be set on the Certificate. + // +optional + repeated string emailSANs = 10; +} + message Condition { // Type of condition in CamelCase or in foo.example.com/CamelCase. // Many .condition.type values are consistent across resources like Available, but because arbitrary conditions can be @@ -60,3 +107,50 @@ message Condition { optional string message = 6; } +message TLSConfig { + // IssuerRef is a reference to a Certificate Issuer. + // +optional + optional k8s.io.api.core.v1.TypedLocalObjectReference issuerRef = 1; + + // Certificate provides server and/or client certificate options used by application pods. + // These options are passed to a cert-manager Certificate object. + // xref: https://github.com/jetstack/cert-manager/blob/v0.16.0/pkg/apis/certmanager/v1beta1/types_certificate.go#L82-L162 + // +optional + repeated CertificateSpec certificates = 2; +} + +// X509Subject Full X509 name specification +message X509Subject { + // Organizations to be used on the Certificate. + // +optional + repeated string organizations = 1; + + // Countries to be used on the CertificateSpec. + // +optional + repeated string countries = 2; + + // Organizational Units to be used on the CertificateSpec. + // +optional + repeated string organizationalUnits = 3; + + // Cities to be used on the CertificateSpec. + // +optional + repeated string localities = 4; + + // State/Provinces to be used on the CertificateSpec. + // +optional + repeated string provinces = 5; + + // Street addresses to be used on the CertificateSpec. + // +optional + repeated string streetAddresses = 6; + + // Postal codes to be used on the CertificateSpec. + // +optional + repeated string postalCodes = 7; + + // Serial number to be used on the CertificateSpec. + // +optional + optional string serialNumber = 8; +} + diff --git a/vendor/kmodules.xyz/client-go/api/v1/openapi_generated.go b/vendor/kmodules.xyz/client-go/api/v1/openapi_generated.go index d24d75ce3..04fcc3847 100644 --- a/vendor/kmodules.xyz/client-go/api/v1/openapi_generated.go +++ b/vendor/kmodules.xyz/client-go/api/v1/openapi_generated.go @@ -29,7 +29,120 @@ import ( func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenAPIDefinition { return map[string]common.OpenAPIDefinition{ - "kmodules.xyz/client-go/api/v1.Condition": schema_kmodulesxyz_client_go_api_v1_Condition(ref), + "kmodules.xyz/client-go/api/v1.CertificateSpec": schema_kmodulesxyz_client_go_api_v1_CertificateSpec(ref), + "kmodules.xyz/client-go/api/v1.Condition": schema_kmodulesxyz_client_go_api_v1_Condition(ref), + "kmodules.xyz/client-go/api/v1.TLSConfig": schema_kmodulesxyz_client_go_api_v1_TLSConfig(ref), + "kmodules.xyz/client-go/api/v1.X509Subject": schema_kmodulesxyz_client_go_api_v1_X509Subject(ref), + } +} + +func schema_kmodulesxyz_client_go_api_v1_CertificateSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "alias": { + SchemaProps: spec.SchemaProps{ + Description: "Alias represents the identifier of the certificate.", + Type: []string{"string"}, + Format: "", + }, + }, + "secretName": { + SchemaProps: spec.SchemaProps{ + Description: "Specifies the k8s secret name that holds the certificates. Default to --cert.", + Type: []string{"string"}, + Format: "", + }, + }, + "keyEncoding": { + SchemaProps: spec.SchemaProps{ + Description: "KeyEncoding is the private key cryptography standards (PKCS) for this certificate's private key to be encoded in. If provided, allowed values are \"pkcs1\" and \"pkcs8\". If KeyEncoding is not specified, then PKCS#1 will be used by default.", + Type: []string{"string"}, + Format: "", + }, + }, + "subject": { + SchemaProps: spec.SchemaProps{ + Description: "Full X509 name specification (https://golang.org/pkg/crypto/x509/pkix/#Name).", + Ref: ref("kmodules.xyz/client-go/api/v1.X509Subject"), + }, + }, + "duration": { + SchemaProps: spec.SchemaProps{ + Description: "Certificate default Duration", + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Duration"), + }, + }, + "renewBefore": { + SchemaProps: spec.SchemaProps{ + Description: "Certificate renew before expiration duration", + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Duration"), + }, + }, + "dnsNames": { + SchemaProps: spec.SchemaProps{ + Description: "DNSNames is a list of subject alt names to be used on the Certificate.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "ipAddresses": { + SchemaProps: spec.SchemaProps{ + Description: "IPAddresses is a list of IP addresses to be used on the Certificate", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "uriSANs": { + SchemaProps: spec.SchemaProps{ + Description: "URISANs is a list of URI Subject Alternative Names to be set on this Certificate.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "emailSANs": { + SchemaProps: spec.SchemaProps{ + Description: "EmailSANs is a list of email subjectAltNames to be set on the Certificate.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + }, + Required: []string{"alias"}, + }, + }, + Dependencies: []string{ + "k8s.io/apimachinery/pkg/apis/meta/v1.Duration", "kmodules.xyz/client-go/api/v1.X509Subject"}, } } @@ -88,3 +201,154 @@ func schema_kmodulesxyz_client_go_api_v1_Condition(ref common.ReferenceCallback) "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, } } + +func schema_kmodulesxyz_client_go_api_v1_TLSConfig(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "issuerRef": { + SchemaProps: spec.SchemaProps{ + Description: "IssuerRef is a reference to a Certificate Issuer.", + Ref: ref("k8s.io/api/core/v1.TypedLocalObjectReference"), + }, + }, + "certificates": { + SchemaProps: spec.SchemaProps{ + Description: "Certificate provides server and/or client certificate options used by application pods. These options are passed to a cert-manager Certificate object. xref: https://github.com/jetstack/cert-manager/blob/v0.16.0/pkg/apis/certmanager/v1beta1/types_certificate.go#L82-L162", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Ref: ref("kmodules.xyz/client-go/api/v1.CertificateSpec"), + }, + }, + }, + }, + }, + }, + }, + }, + Dependencies: []string{ + "k8s.io/api/core/v1.TypedLocalObjectReference", "kmodules.xyz/client-go/api/v1.CertificateSpec"}, + } +} + +func schema_kmodulesxyz_client_go_api_v1_X509Subject(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "X509Subject Full X509 name specification", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "organizations": { + SchemaProps: spec.SchemaProps{ + Description: "Organizations to be used on the Certificate.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "countries": { + SchemaProps: spec.SchemaProps{ + Description: "Countries to be used on the CertificateSpec.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "organizationalUnits": { + SchemaProps: spec.SchemaProps{ + Description: "Organizational Units to be used on the CertificateSpec.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "localities": { + SchemaProps: spec.SchemaProps{ + Description: "Cities to be used on the CertificateSpec.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "provinces": { + SchemaProps: spec.SchemaProps{ + Description: "State/Provinces to be used on the CertificateSpec.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "streetAddresses": { + SchemaProps: spec.SchemaProps{ + Description: "Street addresses to be used on the CertificateSpec.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "postalCodes": { + SchemaProps: spec.SchemaProps{ + Description: "Postal codes to be used on the CertificateSpec.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "serialNumber": { + SchemaProps: spec.SchemaProps{ + Description: "Serial number to be used on the CertificateSpec.", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + } +} diff --git a/vendor/kmodules.xyz/client-go/api/v1/zz_generated.deepcopy.go b/vendor/kmodules.xyz/client-go/api/v1/zz_generated.deepcopy.go index b7528bafe..695e58e24 100644 --- a/vendor/kmodules.xyz/client-go/api/v1/zz_generated.deepcopy.go +++ b/vendor/kmodules.xyz/client-go/api/v1/zz_generated.deepcopy.go @@ -20,6 +20,62 @@ limitations under the License. package v1 +import ( + corev1 "k8s.io/api/core/v1" + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" +) + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *CertificateSpec) DeepCopyInto(out *CertificateSpec) { + *out = *in + if in.Subject != nil { + in, out := &in.Subject, &out.Subject + *out = new(X509Subject) + (*in).DeepCopyInto(*out) + } + if in.Duration != nil { + in, out := &in.Duration, &out.Duration + *out = new(metav1.Duration) + **out = **in + } + if in.RenewBefore != nil { + in, out := &in.RenewBefore, &out.RenewBefore + *out = new(metav1.Duration) + **out = **in + } + if in.DNSNames != nil { + in, out := &in.DNSNames, &out.DNSNames + *out = make([]string, len(*in)) + copy(*out, *in) + } + if in.IPAddresses != nil { + in, out := &in.IPAddresses, &out.IPAddresses + *out = make([]string, len(*in)) + copy(*out, *in) + } + if in.URISANs != nil { + in, out := &in.URISANs, &out.URISANs + *out = make([]string, len(*in)) + copy(*out, *in) + } + if in.EmailSANs != nil { + in, out := &in.EmailSANs, &out.EmailSANs + *out = make([]string, len(*in)) + copy(*out, *in) + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CertificateSpec. +func (in *CertificateSpec) DeepCopy() *CertificateSpec { + if in == nil { + return nil + } + out := new(CertificateSpec) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *Condition) DeepCopyInto(out *Condition) { *out = *in @@ -36,3 +92,82 @@ func (in *Condition) DeepCopy() *Condition { in.DeepCopyInto(out) return out } + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *TLSConfig) DeepCopyInto(out *TLSConfig) { + *out = *in + if in.IssuerRef != nil { + in, out := &in.IssuerRef, &out.IssuerRef + *out = new(corev1.TypedLocalObjectReference) + (*in).DeepCopyInto(*out) + } + if in.Certificates != nil { + in, out := &in.Certificates, &out.Certificates + *out = make([]CertificateSpec, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TLSConfig. +func (in *TLSConfig) DeepCopy() *TLSConfig { + if in == nil { + return nil + } + out := new(TLSConfig) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *X509Subject) DeepCopyInto(out *X509Subject) { + *out = *in + if in.Organizations != nil { + in, out := &in.Organizations, &out.Organizations + *out = make([]string, len(*in)) + copy(*out, *in) + } + if in.Countries != nil { + in, out := &in.Countries, &out.Countries + *out = make([]string, len(*in)) + copy(*out, *in) + } + if in.OrganizationalUnits != nil { + in, out := &in.OrganizationalUnits, &out.OrganizationalUnits + *out = make([]string, len(*in)) + copy(*out, *in) + } + if in.Localities != nil { + in, out := &in.Localities, &out.Localities + *out = make([]string, len(*in)) + copy(*out, *in) + } + if in.Provinces != nil { + in, out := &in.Provinces, &out.Provinces + *out = make([]string, len(*in)) + copy(*out, *in) + } + if in.StreetAddresses != nil { + in, out := &in.StreetAddresses, &out.StreetAddresses + *out = make([]string, len(*in)) + copy(*out, *in) + } + if in.PostalCodes != nil { + in, out := &in.PostalCodes, &out.PostalCodes + *out = make([]string, len(*in)) + copy(*out, *in) + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new X509Subject. +func (in *X509Subject) DeepCopy() *X509Subject { + if in == nil { + return nil + } + out := new(X509Subject) + in.DeepCopyInto(out) + return out +} diff --git a/vendor/kmodules.xyz/client-go/core/v1/events.go b/vendor/kmodules.xyz/client-go/core/v1/events.go new file mode 100644 index 000000000..56ee5a1ae --- /dev/null +++ b/vendor/kmodules.xyz/client-go/core/v1/events.go @@ -0,0 +1,101 @@ +/* +Copyright AppsCode Inc. and Contributors + +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 v1 + +import ( + "context" + + "github.com/golang/glog" + "github.com/pkg/errors" + core "k8s.io/api/core/v1" + kerr "k8s.io/apimachinery/pkg/api/errors" + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + "k8s.io/apimachinery/pkg/types" + "k8s.io/apimachinery/pkg/util/strategicpatch" + "k8s.io/apimachinery/pkg/util/wait" + "k8s.io/client-go/kubernetes" + kutil "kmodules.xyz/client-go" +) + +func CreateOrPatchEvent(ctx context.Context, c kubernetes.Interface, meta metav1.ObjectMeta, transform func(*core.Event) *core.Event, opts metav1.PatchOptions) (*core.Event, kutil.VerbType, error) { + cur, err := c.CoreV1().Events(meta.Namespace).Get(ctx, meta.Name, metav1.GetOptions{}) + if kerr.IsNotFound(err) { + glog.V(3).Infof("Creating Event %s/%s.", meta.Namespace, meta.Name) + out, err := c.CoreV1().Events(meta.Namespace).Create(ctx, transform(&core.Event{ + TypeMeta: metav1.TypeMeta{ + Kind: "Event", + APIVersion: core.SchemeGroupVersion.String(), + }, + ObjectMeta: meta, + }), metav1.CreateOptions{ + DryRun: opts.DryRun, + FieldManager: opts.FieldManager, + }) + return out, kutil.VerbCreated, err + } else if err != nil { + return nil, kutil.VerbUnchanged, err + } + return PatchEvent(ctx, c, cur, transform, opts) +} + +func PatchEvent(ctx context.Context, c kubernetes.Interface, cur *core.Event, transform func(*core.Event) *core.Event, opts metav1.PatchOptions) (*core.Event, kutil.VerbType, error) { + return PatchEventObject(ctx, c, cur, transform(cur.DeepCopy()), opts) +} + +func PatchEventObject(ctx context.Context, c kubernetes.Interface, cur, mod *core.Event, opts metav1.PatchOptions) (*core.Event, kutil.VerbType, error) { + curJson, err := json.Marshal(cur) + if err != nil { + return nil, kutil.VerbUnchanged, err + } + + modJson, err := json.Marshal(mod) + if err != nil { + return nil, kutil.VerbUnchanged, err + } + + patch, err := strategicpatch.CreateTwoWayMergePatch(curJson, modJson, core.Event{}) + if err != nil { + return nil, kutil.VerbUnchanged, err + } + if len(patch) == 0 || string(patch) == "{}" { + return cur, kutil.VerbUnchanged, nil + } + glog.V(3).Infof("Patching Event %s/%s with %s", cur.Namespace, cur.Name, string(patch)) + out, err := c.CoreV1().Events(cur.Namespace).Patch(ctx, cur.Name, types.StrategicMergePatchType, patch, opts) + return out, kutil.VerbPatched, err +} + +func TryUpdateEvent(ctx context.Context, c kubernetes.Interface, meta metav1.ObjectMeta, transform func(*core.Event) *core.Event, opts metav1.UpdateOptions) (result *core.Event, err error) { + attempt := 0 + err = wait.PollImmediate(kutil.RetryInterval, kutil.RetryTimeout, func() (bool, error) { + attempt++ + cur, e2 := c.CoreV1().Events(meta.Namespace).Get(ctx, meta.Name, metav1.GetOptions{}) + if kerr.IsNotFound(e2) { + return false, e2 + } else if e2 == nil { + result, e2 = c.CoreV1().Events(cur.Namespace).Update(ctx, transform(cur.DeepCopy()), opts) + return e2 == nil, nil + } + glog.Errorf("Attempt %d failed to update Event %s/%s due to %v.", attempt, cur.Namespace, cur.Name, e2) + return false, nil + }) + + if err != nil { + err = errors.Errorf("failed to update Event %s/%s after %d attempts due to %v", meta.Namespace, meta.Name, attempt, err) + } + return +} diff --git a/vendor/kmodules.xyz/client-go/core/v1/kubernetes.go b/vendor/kmodules.xyz/client-go/core/v1/kubernetes.go index dd184dba3..703db2852 100644 --- a/vendor/kmodules.xyz/client-go/core/v1/kubernetes.go +++ b/vendor/kmodules.xyz/client-go/core/v1/kubernetes.go @@ -300,6 +300,23 @@ func IsOwnedBy(dependent metav1.Object, owner metav1.Object) (owned bool, contro return false, false } +func IsOwnerOfGroupKind(ctrl *metav1.OwnerReference, group, kind string) (bool, error) { + if ctrl == nil { + return false, nil + } + gv, err := schema.ParseGroupVersion(ctrl.APIVersion) + if err != nil { + return false, err + } + if gv.Group != group { + return false, nil + } + if ctrl.Kind != kind { + return false, nil + } + return true, nil +} + func UpsertToleration(tolerations []core.Toleration, upsert core.Toleration) []core.Toleration { for i, toleration := range tolerations { if toleration.Key == upsert.Key { diff --git a/vendor/kmodules.xyz/client-go/core/v1/node.go b/vendor/kmodules.xyz/client-go/core/v1/node.go index 422487f75..b6df2a057 100644 --- a/vendor/kmodules.xyz/client-go/core/v1/node.go +++ b/vendor/kmodules.xyz/client-go/core/v1/node.go @@ -23,17 +23,18 @@ import ( "github.com/golang/glog" "github.com/pkg/errors" - "gomodules.xyz/version" core "k8s.io/api/core/v1" kerr "k8s.io/apimachinery/pkg/api/errors" "k8s.io/apimachinery/pkg/api/meta" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/runtime" + "k8s.io/apimachinery/pkg/runtime/schema" "k8s.io/apimachinery/pkg/types" "k8s.io/apimachinery/pkg/util/sets" "k8s.io/apimachinery/pkg/util/strategicpatch" "k8s.io/apimachinery/pkg/util/wait" "k8s.io/client-go/kubernetes" + "k8s.io/client-go/metadata" "k8s.io/client-go/tools/pager" kutil "kmodules.xyz/client-go" ) @@ -199,38 +200,22 @@ func (t Topology) convertWeightedPodAffinityTerm(terms []core.WeightedPodAffinit } } -func DetectTopology(ctx context.Context, kc kubernetes.Interface) (*Topology, error) { - // TODO: Use https://github.com/kubernetes/client-go/blob/kubernetes-1.17.0/metadata/interface.go once upgraded to 1.17 - +func DetectTopology(ctx context.Context, mc metadata.Interface) (*Topology, error) { var topology Topology - - info, err := kc.Discovery().ServerVersion() - if err != nil { - return nil, err - } - ver, err := version.NewVersion(info.GitVersion) - if err != nil { - return nil, err - } - ver = ver.ToMutator().ResetPrerelease().ResetMetadata().Done() - if ver.Major() >= 1 && ver.Minor() >= 17 { - topology.LabelZone = "topology.kubernetes.io/zone" - topology.LabelRegion = "topology.kubernetes.io/region" - topology.LabelInstanceType = "node.kubernetes.io/instance-type" - } else { - topology.LabelZone = core.LabelZoneFailureDomain - topology.LabelRegion = core.LabelZoneRegion - topology.LabelInstanceType = core.LabelInstanceType - } topology.TotalNodes = 0 mapRegion := make(map[string]sets.String) instances := make(map[string]int) + first := true + nc := mc.Resource(schema.GroupVersionResource{ + Version: "v1", + Resource: "nodes", + }) lister := pager.New(pager.SimplePageFunc(func(opts metav1.ListOptions) (runtime.Object, error) { - return kc.CoreV1().Nodes().List(ctx, opts) + return nc.List(ctx, opts) })) - err = lister.EachListItem(context.Background(), metav1.ListOptions{Limit: 100}, func(obj runtime.Object) error { + err := lister.EachListItem(context.Background(), metav1.ListOptions{}, func(obj runtime.Object) error { topology.TotalNodes++ m, err := meta.Accessor(obj) @@ -238,25 +223,47 @@ func DetectTopology(ctx context.Context, kc kubernetes.Interface) (*Topology, er return err } - annotations := m.GetAnnotations() + labels := m.GetLabels() + + if first { + if _, ok := labels[core.LabelZoneRegionStable]; ok { + topology.LabelRegion = core.LabelZoneRegionStable + } else { + topology.LabelRegion = core.LabelZoneRegion + } + + if _, ok := labels[core.LabelZoneFailureDomainStable]; ok { + topology.LabelZone = core.LabelZoneFailureDomainStable + } else { + topology.LabelZone = core.LabelZoneFailureDomain + } + + if _, ok := labels[core.LabelInstanceTypeStable]; ok { + topology.LabelInstanceType = core.LabelInstanceTypeStable + } else { + topology.LabelInstanceType = core.LabelInstanceType + } + + first = false + } - os, _ := meta_util.GetStringValueForKeys(annotations, "kubernetes.io/os", "beta.kubernetes.io/os") + os, _ := meta_util.GetStringValueForKeys(labels, core.LabelOSStable, "beta.kubernetes.io/os") if os != "linux" { return nil } - arch, _ := meta_util.GetStringValueForKeys(annotations, "kubernetes.io/arch", "beta.kubernetes.io/arch") + arch, _ := meta_util.GetStringValueForKeys(labels, core.LabelArchStable, "beta.kubernetes.io/arch") if arch != "amd64" { return nil } - region, _ := meta_util.GetStringValueForKeys(annotations, "topology.kubernetes.io/region", "failure-domain.beta.kubernetes.io/region") - zone, _ := meta_util.GetStringValueForKeys(annotations, "topology.kubernetes.io/zone", "failure-domain.beta.kubernetes.io/zone") + region, _ := meta_util.GetStringValueForKeys(labels, topology.LabelRegion) + zone, _ := meta_util.GetStringValueForKeys(labels, topology.LabelZone) if _, ok := mapRegion[region]; !ok { mapRegion[region] = sets.NewString() } mapRegion[region].Insert(zone) - instance, _ := meta_util.GetStringValueForKeys(annotations, "node.kubernetes.io/instance-type", "beta.kubernetes.io/instance-type") + instance, _ := meta_util.GetStringValueForKeys(labels, topology.LabelInstanceType) if n, ok := instances[instance]; ok { instances[instance] = n + 1 } else { diff --git a/vendor/kmodules.xyz/client-go/meta/incluster.go b/vendor/kmodules.xyz/client-go/meta/incluster.go index 42903cd5c..25e3d81d0 100644 --- a/vendor/kmodules.xyz/client-go/meta/incluster.go +++ b/vendor/kmodules.xyz/client-go/meta/incluster.go @@ -35,6 +35,11 @@ func Namespace() string { if ns := os.Getenv("KUBE_NAMESPACE"); ns != "" { return ns } + + if ns := os.Getenv("MY_POD_NAMESPACE"); ns != "" { + return ns + } + if data, err := ioutil.ReadFile("/var/run/secrets/kubernetes.io/serviceaccount/namespace"); err == nil { if ns := strings.TrimSpace(string(data)); len(ns) > 0 { return ns diff --git a/vendor/modules.txt b/vendor/modules.txt index be3cd7efa..3ca4a0ea0 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -711,6 +711,7 @@ k8s.io/client-go/listers/settings/v1alpha1 k8s.io/client-go/listers/storage/v1 k8s.io/client-go/listers/storage/v1alpha1 k8s.io/client-go/listers/storage/v1beta1 +k8s.io/client-go/metadata k8s.io/client-go/pkg/apis/clientauthentication k8s.io/client-go/pkg/apis/clientauthentication/v1alpha1 k8s.io/client-go/pkg/apis/clientauthentication/v1beta1 @@ -770,7 +771,7 @@ k8s.io/utils/net k8s.io/utils/path k8s.io/utils/pointer k8s.io/utils/trace -# kmodules.xyz/client-go v0.0.0-20200714060506-0b57b4060595 +# kmodules.xyz/client-go v0.0.0-20200818171030-24b2ce405feb kmodules.xyz/client-go kmodules.xyz/client-go/api/v1 kmodules.xyz/client-go/apiextensions @@ -813,7 +814,7 @@ sigs.k8s.io/structured-merge-diff/v3/typed sigs.k8s.io/structured-merge-diff/v3/value # sigs.k8s.io/yaml v1.2.0 sigs.k8s.io/yaml -# stash.appscode.dev/apimachinery v0.10.0-beta.1.0.20200717091944-a8f3bb469467 +# stash.appscode.dev/apimachinery v0.10.0-rc.0 stash.appscode.dev/apimachinery/apis stash.appscode.dev/apimachinery/apis/repositories stash.appscode.dev/apimachinery/apis/repositories/v1alpha1 diff --git a/vendor/stash.appscode.dev/apimachinery/apis/constants.go b/vendor/stash.appscode.dev/apimachinery/apis/constants.go index 05a87cc65..0f18f6917 100644 --- a/vendor/stash.appscode.dev/apimachinery/apis/constants.go +++ b/vendor/stash.appscode.dev/apimachinery/apis/constants.go @@ -136,6 +136,7 @@ const ( LabelInvokerName = StashKey + "/invoker-name" StashSecretVolume = "stash-secret-volume" StashSecretMountDir = "/etc/stash/repository/secret" + StashNetVolAccessor = "stash-netvol-accessor" KeyPodName = "POD_NAME" KeyNodeName = "NODE_NAME" diff --git a/vendor/stash.appscode.dev/apimachinery/apis/repositories/v1alpha1/openapi_generated.go b/vendor/stash.appscode.dev/apimachinery/apis/repositories/v1alpha1/openapi_generated.go index 54a1a7059..9d29fc345 100644 --- a/vendor/stash.appscode.dev/apimachinery/apis/repositories/v1alpha1/openapi_generated.go +++ b/vendor/stash.appscode.dev/apimachinery/apis/repositories/v1alpha1/openapi_generated.go @@ -332,7 +332,10 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "k8s.io/apimachinery/pkg/runtime.Unknown": schema_k8sio_apimachinery_pkg_runtime_Unknown(ref), "k8s.io/apimachinery/pkg/util/intstr.IntOrString": schema_apimachinery_pkg_util_intstr_IntOrString(ref), "k8s.io/apimachinery/pkg/version.Info": schema_k8sio_apimachinery_pkg_version_Info(ref), + "kmodules.xyz/client-go/api/v1.CertificateSpec": schema_kmodulesxyz_client_go_api_v1_CertificateSpec(ref), "kmodules.xyz/client-go/api/v1.Condition": schema_kmodulesxyz_client_go_api_v1_Condition(ref), + "kmodules.xyz/client-go/api/v1.TLSConfig": schema_kmodulesxyz_client_go_api_v1_TLSConfig(ref), + "kmodules.xyz/client-go/api/v1.X509Subject": schema_kmodulesxyz_client_go_api_v1_X509Subject(ref), "kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1.AddKeyTransform": schema_custom_resources_apis_appcatalog_v1alpha1_AddKeyTransform(ref), "kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1.AddKeysFromTransform": schema_custom_resources_apis_appcatalog_v1alpha1_AddKeysFromTransform(ref), "kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1.AppBinding": schema_custom_resources_apis_appcatalog_v1alpha1_AppBinding(ref), @@ -15571,6 +15574,116 @@ func schema_k8sio_apimachinery_pkg_version_Info(ref common.ReferenceCallback) co } } +func schema_kmodulesxyz_client_go_api_v1_CertificateSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "alias": { + SchemaProps: spec.SchemaProps{ + Description: "Alias represents the identifier of the certificate.", + Type: []string{"string"}, + Format: "", + }, + }, + "secretName": { + SchemaProps: spec.SchemaProps{ + Description: "Specifies the k8s secret name that holds the certificates. Default to --cert.", + Type: []string{"string"}, + Format: "", + }, + }, + "keyEncoding": { + SchemaProps: spec.SchemaProps{ + Description: "KeyEncoding is the private key cryptography standards (PKCS) for this certificate's private key to be encoded in. If provided, allowed values are \"pkcs1\" and \"pkcs8\". If KeyEncoding is not specified, then PKCS#1 will be used by default.", + Type: []string{"string"}, + Format: "", + }, + }, + "subject": { + SchemaProps: spec.SchemaProps{ + Description: "Full X509 name specification (https://golang.org/pkg/crypto/x509/pkix/#Name).", + Ref: ref("kmodules.xyz/client-go/api/v1.X509Subject"), + }, + }, + "duration": { + SchemaProps: spec.SchemaProps{ + Description: "Certificate default Duration", + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Duration"), + }, + }, + "renewBefore": { + SchemaProps: spec.SchemaProps{ + Description: "Certificate renew before expiration duration", + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Duration"), + }, + }, + "dnsNames": { + SchemaProps: spec.SchemaProps{ + Description: "DNSNames is a list of subject alt names to be used on the Certificate.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "ipAddresses": { + SchemaProps: spec.SchemaProps{ + Description: "IPAddresses is a list of IP addresses to be used on the Certificate", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "uriSANs": { + SchemaProps: spec.SchemaProps{ + Description: "URISANs is a list of URI Subject Alternative Names to be set on this Certificate.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "emailSANs": { + SchemaProps: spec.SchemaProps{ + Description: "EmailSANs is a list of email subjectAltNames to be set on the Certificate.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + }, + Required: []string{"alias"}, + }, + }, + Dependencies: []string{ + "k8s.io/apimachinery/pkg/apis/meta/v1.Duration", "kmodules.xyz/client-go/api/v1.X509Subject"}, + } +} + func schema_kmodulesxyz_client_go_api_v1_Condition(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ @@ -15627,6 +15740,157 @@ func schema_kmodulesxyz_client_go_api_v1_Condition(ref common.ReferenceCallback) } } +func schema_kmodulesxyz_client_go_api_v1_TLSConfig(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "issuerRef": { + SchemaProps: spec.SchemaProps{ + Description: "IssuerRef is a reference to a Certificate Issuer.", + Ref: ref("k8s.io/api/core/v1.TypedLocalObjectReference"), + }, + }, + "certificates": { + SchemaProps: spec.SchemaProps{ + Description: "Certificate provides server and/or client certificate options used by application pods. These options are passed to a cert-manager Certificate object. xref: https://github.com/jetstack/cert-manager/blob/v0.16.0/pkg/apis/certmanager/v1beta1/types_certificate.go#L82-L162", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Ref: ref("kmodules.xyz/client-go/api/v1.CertificateSpec"), + }, + }, + }, + }, + }, + }, + }, + }, + Dependencies: []string{ + "k8s.io/api/core/v1.TypedLocalObjectReference", "kmodules.xyz/client-go/api/v1.CertificateSpec"}, + } +} + +func schema_kmodulesxyz_client_go_api_v1_X509Subject(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "X509Subject Full X509 name specification", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "organizations": { + SchemaProps: spec.SchemaProps{ + Description: "Organizations to be used on the Certificate.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "countries": { + SchemaProps: spec.SchemaProps{ + Description: "Countries to be used on the CertificateSpec.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "organizationalUnits": { + SchemaProps: spec.SchemaProps{ + Description: "Organizational Units to be used on the CertificateSpec.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "localities": { + SchemaProps: spec.SchemaProps{ + Description: "Cities to be used on the CertificateSpec.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "provinces": { + SchemaProps: spec.SchemaProps{ + Description: "State/Provinces to be used on the CertificateSpec.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "streetAddresses": { + SchemaProps: spec.SchemaProps{ + Description: "Street addresses to be used on the CertificateSpec.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "postalCodes": { + SchemaProps: spec.SchemaProps{ + Description: "Postal codes to be used on the CertificateSpec.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "serialNumber": { + SchemaProps: spec.SchemaProps{ + Description: "Serial number to be used on the CertificateSpec.", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + } +} + func schema_custom_resources_apis_appcatalog_v1alpha1_AddKeyTransform(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ diff --git a/vendor/stash.appscode.dev/apimachinery/apis/restore_invoker.go b/vendor/stash.appscode.dev/apimachinery/apis/restore_invoker.go index 02affb127..8a3f9a00d 100644 --- a/vendor/stash.appscode.dev/apimachinery/apis/restore_invoker.go +++ b/vendor/stash.appscode.dev/apimachinery/apis/restore_invoker.go @@ -1,5 +1,5 @@ /* -Copyright The Stash Authors. +Copyright AppsCode Inc. and Contributors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/vendor/stash.appscode.dev/apimachinery/apis/stash/v1alpha1/openapi_generated.go b/vendor/stash.appscode.dev/apimachinery/apis/stash/v1alpha1/openapi_generated.go index 5d2fe81f2..46885502a 100644 --- a/vendor/stash.appscode.dev/apimachinery/apis/stash/v1alpha1/openapi_generated.go +++ b/vendor/stash.appscode.dev/apimachinery/apis/stash/v1alpha1/openapi_generated.go @@ -332,7 +332,10 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "k8s.io/apimachinery/pkg/runtime.Unknown": schema_k8sio_apimachinery_pkg_runtime_Unknown(ref), "k8s.io/apimachinery/pkg/util/intstr.IntOrString": schema_apimachinery_pkg_util_intstr_IntOrString(ref), "k8s.io/apimachinery/pkg/version.Info": schema_k8sio_apimachinery_pkg_version_Info(ref), + "kmodules.xyz/client-go/api/v1.CertificateSpec": schema_kmodulesxyz_client_go_api_v1_CertificateSpec(ref), "kmodules.xyz/client-go/api/v1.Condition": schema_kmodulesxyz_client_go_api_v1_Condition(ref), + "kmodules.xyz/client-go/api/v1.TLSConfig": schema_kmodulesxyz_client_go_api_v1_TLSConfig(ref), + "kmodules.xyz/client-go/api/v1.X509Subject": schema_kmodulesxyz_client_go_api_v1_X509Subject(ref), "kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1.AddKeyTransform": schema_custom_resources_apis_appcatalog_v1alpha1_AddKeyTransform(ref), "kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1.AddKeysFromTransform": schema_custom_resources_apis_appcatalog_v1alpha1_AddKeysFromTransform(ref), "kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1.AppBinding": schema_custom_resources_apis_appcatalog_v1alpha1_AppBinding(ref), @@ -15583,6 +15586,116 @@ func schema_k8sio_apimachinery_pkg_version_Info(ref common.ReferenceCallback) co } } +func schema_kmodulesxyz_client_go_api_v1_CertificateSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "alias": { + SchemaProps: spec.SchemaProps{ + Description: "Alias represents the identifier of the certificate.", + Type: []string{"string"}, + Format: "", + }, + }, + "secretName": { + SchemaProps: spec.SchemaProps{ + Description: "Specifies the k8s secret name that holds the certificates. Default to --cert.", + Type: []string{"string"}, + Format: "", + }, + }, + "keyEncoding": { + SchemaProps: spec.SchemaProps{ + Description: "KeyEncoding is the private key cryptography standards (PKCS) for this certificate's private key to be encoded in. If provided, allowed values are \"pkcs1\" and \"pkcs8\". If KeyEncoding is not specified, then PKCS#1 will be used by default.", + Type: []string{"string"}, + Format: "", + }, + }, + "subject": { + SchemaProps: spec.SchemaProps{ + Description: "Full X509 name specification (https://golang.org/pkg/crypto/x509/pkix/#Name).", + Ref: ref("kmodules.xyz/client-go/api/v1.X509Subject"), + }, + }, + "duration": { + SchemaProps: spec.SchemaProps{ + Description: "Certificate default Duration", + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Duration"), + }, + }, + "renewBefore": { + SchemaProps: spec.SchemaProps{ + Description: "Certificate renew before expiration duration", + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Duration"), + }, + }, + "dnsNames": { + SchemaProps: spec.SchemaProps{ + Description: "DNSNames is a list of subject alt names to be used on the Certificate.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "ipAddresses": { + SchemaProps: spec.SchemaProps{ + Description: "IPAddresses is a list of IP addresses to be used on the Certificate", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "uriSANs": { + SchemaProps: spec.SchemaProps{ + Description: "URISANs is a list of URI Subject Alternative Names to be set on this Certificate.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "emailSANs": { + SchemaProps: spec.SchemaProps{ + Description: "EmailSANs is a list of email subjectAltNames to be set on the Certificate.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + }, + Required: []string{"alias"}, + }, + }, + Dependencies: []string{ + "k8s.io/apimachinery/pkg/apis/meta/v1.Duration", "kmodules.xyz/client-go/api/v1.X509Subject"}, + } +} + func schema_kmodulesxyz_client_go_api_v1_Condition(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ @@ -15639,6 +15752,157 @@ func schema_kmodulesxyz_client_go_api_v1_Condition(ref common.ReferenceCallback) } } +func schema_kmodulesxyz_client_go_api_v1_TLSConfig(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "issuerRef": { + SchemaProps: spec.SchemaProps{ + Description: "IssuerRef is a reference to a Certificate Issuer.", + Ref: ref("k8s.io/api/core/v1.TypedLocalObjectReference"), + }, + }, + "certificates": { + SchemaProps: spec.SchemaProps{ + Description: "Certificate provides server and/or client certificate options used by application pods. These options are passed to a cert-manager Certificate object. xref: https://github.com/jetstack/cert-manager/blob/v0.16.0/pkg/apis/certmanager/v1beta1/types_certificate.go#L82-L162", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Ref: ref("kmodules.xyz/client-go/api/v1.CertificateSpec"), + }, + }, + }, + }, + }, + }, + }, + }, + Dependencies: []string{ + "k8s.io/api/core/v1.TypedLocalObjectReference", "kmodules.xyz/client-go/api/v1.CertificateSpec"}, + } +} + +func schema_kmodulesxyz_client_go_api_v1_X509Subject(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "X509Subject Full X509 name specification", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "organizations": { + SchemaProps: spec.SchemaProps{ + Description: "Organizations to be used on the Certificate.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "countries": { + SchemaProps: spec.SchemaProps{ + Description: "Countries to be used on the CertificateSpec.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "organizationalUnits": { + SchemaProps: spec.SchemaProps{ + Description: "Organizational Units to be used on the CertificateSpec.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "localities": { + SchemaProps: spec.SchemaProps{ + Description: "Cities to be used on the CertificateSpec.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "provinces": { + SchemaProps: spec.SchemaProps{ + Description: "State/Provinces to be used on the CertificateSpec.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "streetAddresses": { + SchemaProps: spec.SchemaProps{ + Description: "Street addresses to be used on the CertificateSpec.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "postalCodes": { + SchemaProps: spec.SchemaProps{ + Description: "Postal codes to be used on the CertificateSpec.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "serialNumber": { + SchemaProps: spec.SchemaProps{ + Description: "Serial number to be used on the CertificateSpec.", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + } +} + func schema_custom_resources_apis_appcatalog_v1alpha1_AddKeyTransform(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ diff --git a/vendor/stash.appscode.dev/apimachinery/apis/stash/v1alpha1/repository_helpers.go b/vendor/stash.appscode.dev/apimachinery/apis/stash/v1alpha1/repository_helpers.go index 2e839059e..b5d5cdaea 100644 --- a/vendor/stash.appscode.dev/apimachinery/apis/stash/v1alpha1/repository_helpers.go +++ b/vendor/stash.appscode.dev/apimachinery/apis/stash/v1alpha1/repository_helpers.go @@ -25,3 +25,20 @@ import ( func (_ Repository) CustomResourceDefinition() *apiextensions.CustomResourceDefinition { return crds.MustCustomResourceDefinition(SchemeGroupVersion.WithResource(ResourcePluralRepository)) } + +func (r *Repository) LocalNetworkVolume() bool { + if r.Spec.Backend.Local != nil && + r.Spec.Backend.Local.NFS != nil { + return true + } + return false +} + +func (r *Repository) LocalNetworkVolumePath() string { + if r.Spec.Backend.Local != nil { + if r.Spec.Backend.Local.NFS != nil { + return r.Spec.Backend.Local.NFS.Path + } + } + return "" +} diff --git a/vendor/stash.appscode.dev/apimachinery/apis/stash/v1beta1/annotations.go b/vendor/stash.appscode.dev/apimachinery/apis/stash/v1beta1/annotations.go index 7492e84d2..2474e7f32 100644 --- a/vendor/stash.appscode.dev/apimachinery/apis/stash/v1beta1/annotations.go +++ b/vendor/stash.appscode.dev/apimachinery/apis/stash/v1beta1/annotations.go @@ -23,6 +23,8 @@ const ( KeyBackupBlueprint = StashKey + "/backup-blueprint" KeyTargetPaths = StashKey + "/target-paths" KeyVolumeMounts = StashKey + "/volume-mounts" + KeySchedule = StashKey + "/schedule" + KeyParams = "params.stash.appscode.com" KeyLastAppliedBackupInvoker = StashKey + "/last-applied-backup-invoker" KeyLastAppliedBackupInvokerKind = StashKey + "/last-applied-backup-invoker-kind" diff --git a/vendor/stash.appscode.dev/apimachinery/apis/stash/v1beta1/generated.pb.go b/vendor/stash.appscode.dev/apimachinery/apis/stash/v1beta1/generated.pb.go index 1aac0284b..956ce124b 100644 --- a/vendor/stash.appscode.dev/apimachinery/apis/stash/v1beta1/generated.pb.go +++ b/vendor/stash.appscode.dev/apimachinery/apis/stash/v1beta1/generated.pb.go @@ -1476,212 +1476,212 @@ func init() { } var fileDescriptor_1fd74570add6e14f = []byte{ - // 3277 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x5b, 0xcd, 0x8f, 0x23, 0x57, - 0xb5, 0x9f, 0xb2, 0x5d, 0xee, 0xf6, 0x71, 0x7f, 0xde, 0x99, 0x49, 0x9c, 0x51, 0xd2, 0xee, 0xd4, - 0xe8, 0xbd, 0xd7, 0x7a, 0x2f, 0xe3, 0xce, 0xf4, 0x83, 0x7c, 0x40, 0xbe, 0xda, 0xdd, 0x33, 0xd3, - 0x93, 0xa4, 0x13, 0x73, 0xdd, 0x19, 0x04, 0x64, 0x48, 0xaa, 0xed, 0x6b, 0xbb, 0x68, 0xbb, 0xaa, - 0xa8, 0x2a, 0x77, 0xd2, 0x59, 0x20, 0x44, 0x22, 0x85, 0xb0, 0x88, 0x10, 0x3b, 0x56, 0x2c, 0x59, - 0xc1, 0x0a, 0x09, 0x09, 0x24, 0x76, 0x21, 0x23, 0x40, 0x21, 0x1b, 0x44, 0x10, 0x4a, 0x8b, 0x18, - 0xd8, 0xf1, 0x07, 0xa0, 0x41, 0x42, 0xe8, 0x7e, 0xd5, 0x97, 0xed, 0xee, 0xe9, 0xb2, 0xdb, 0x13, - 0x24, 0x56, 0xd3, 0x3e, 0xf7, 0xdc, 0x73, 0xee, 0xb9, 0x75, 0xce, 0xf9, 0x9d, 0x7b, 0xee, 0x1d, - 0x28, 0xbb, 0x9e, 0xee, 0xb6, 0x4a, 0xba, 0x6d, 0xbb, 0x35, 0xab, 0x4e, 0x4a, 0x75, 0xb2, 0xbf, - 0xaa, 0xdb, 0x46, 0x47, 0xaf, 0xb5, 0x0c, 0x93, 0x38, 0x07, 0xf4, 0x87, 0xbb, 0xca, 0x98, 0x56, - 0xf7, 0x2f, 0xef, 0x12, 0x4f, 0xbf, 0xbc, 0xda, 0x24, 0x26, 0x71, 0x74, 0x8f, 0xd4, 0x4b, 0xb6, - 0x63, 0x79, 0x16, 0x5a, 0xeb, 0x97, 0x51, 0x0a, 0xcb, 0xa0, 0x3f, 0xdc, 0x12, 0x67, 0x12, 0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x94, 0x6c, 0x26, 0xd9, 0xff, 0xed, 0x98, 0xac, 0x72, - 0x41, 0x2c, 0x60, 0x21, 0x3e, 0x82, 0xfb, 0xf4, 0x6a, 0x87, 0x41, 0x7e, 0x6e, 0x77, 0x89, 0xed, - 0x18, 0xa6, 0x37, 0x01, 0xac, 0x33, 0x22, 0x58, 0x77, 0x6d, 0x84, 0x14, 0x2d, 0x17, 0x3d, 0x0c, - 0xef, 0xb4, 0x8f, 0x15, 0x38, 0x1b, 0xe3, 0x9d, 0x00, 0x08, 0xb5, 0xa2, 0x20, 0xb4, 0x31, 0x06, - 0x0b, 0x87, 0x00, 0xd1, 0xdf, 0xb2, 0x7d, 0xf6, 0x31, 0x30, 0x7a, 0x53, 0x81, 0xb9, 0x20, 0xc5, - 0x51, 0x92, 0x30, 0x73, 0x23, 0x61, 0x4a, 0x0b, 0x8b, 0x2a, 0xdf, 0x23, 0xa3, 0x37, 0x4a, 0xc7, - 0x31, 0x95, 0x27, 0x84, 0xa4, 0x9b, 0x90, 0xf1, 0x74, 0x77, 0x4f, 0xe0, 0xd0, 0xe7, 0x93, 0x6c, - 0xda, 0x8e, 0xee, 0xee, 0x61, 0xd2, 0x08, 0x5c, 0x81, 0x11, 0x98, 0xd8, 0x81, 0x69, 0x3e, 0x73, - 0x57, 0xd2, 0xfc, 0x00, 0xec, 0x55, 0x4f, 0x1f, 0x7b, 0x2d, 0x98, 0xf2, 0x48, 0xc7, 0xde, 0x34, - 0x9c, 0x64, 0xe8, 0xc6, 0x77, 0xf8, 0x4a, 0xc7, 0xf6, 0x0e, 0x36, 0x0d, 0xc7, 0x5f, 0x80, 0x5f, - 0x90, 0xec, 0x70, 0xe1, 0x58, 0x6a, 0x41, 0xdf, 0x56, 0xe0, 0xbc, 0x61, 0x7a, 0xc4, 0x31, 0x3a, - 0x37, 0xac, 0x76, 0xb7, 0x43, 0x64, 0x21, 0xc3, 0xd0, 0x2d, 0xbf, 0xf6, 0xe8, 0xf1, 0xd6, 0x56, -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0x81, 0xa2, 0xac, 0x11, 0x2d, - 0xca, 0xd6, 0x47, 0xb6, 0x71, 0x48, 0x39, 0xf6, 0x56, 0xdc, 0xb6, 0x2a, 0xdf, 0xe2, 0x29, 0x83, - 0xfb, 0xaf, 0x30, 0x6d, 0x33, 0xb9, 0xfe, 0x20, 0x10, 0x82, 0xdc, 0x26, 0x69, 0x52, 0x8b, 0xf6, - 0x17, 0xff, 0x74, 0x11, 0xf9, 0x24, 0xe8, 0x71, 0x50, 0xed, 0x96, 0xee, 0x12, 0x11, 0x37, 0x17, - 0xa5, 0x0d, 0x15, 0x4a, 0xbc, 0xed, 0x63, 0xba, 0x98, 0xc4, 0xa8, 0x98, 0xcf, 0x40, 0xeb, 0x30, - 0xef, 0x72, 0xf2, 0xa6, 0x40, 0x3e, 0x11, 0x52, 0x7e, 0x8a, 0xaf, 0x46, 0x87, 0x71, 0x9c, 0x1f, - 0x7d, 0x1d, 0xa6, 0x38, 0xc4, 0xc8, 0x36, 0xd5, 0xd5, 0x51, 0xf1, 0x4b, 0x78, 0x5a, 0x90, 0xe4, - 0xb9, 0x78, 0x2c, 0xf5, 0xc4, 0x4a, 0x82, 0xcc, 0x98, 0x4b, 0x82, 0x1f, 0xa5, 0x61, 0x26, 0xbc, - 0x1c, 0x74, 0x11, 0x54, 0xbd, 0x6d, 0xe8, 0x3c, 0x91, 0xe7, 0x02, 0x1f, 0x59, 0xa7, 0x44, 0xcc, - 0xc7, 0xd0, 0xcb, 0x90, 0x76, 0x48, 0x43, 0x78, 0xc2, 0x93, 0xc9, 0x6a, 0x04, 0x06, 0xd8, 0xa4, - 0x51, 0xce, 0x0b, 0x0d, 0x69, 0x4c, 0x1a, 0x98, 0x8a, 0x45, 0x45, 0x50, 0x6d, 0xdd, 0x6b, 0x71, - 0x4f, 0xcf, 0x71, 0x28, 0xa8, 0x50, 0x02, 0xe6, 0x74, 0xf4, 0x25, 0x98, 0xd9, 0x67, 0xf0, 0xb3, - 0x6d, 0x75, 0x4d, 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b8, 0x41, 0xe3, 0x45, 0x3c, 0x25, 0x0d, 0xb9, 0xd0, 0x7a, 0xe5, 0xba, 0x18, 0xc1, 0x21, 0xae, - 0xb1, 0xbc, 0x12, 0xbb, 0xa5, 0x00, 0xcb, 0xa0, 0x13, 0x38, 0xf7, 0x7c, 0x35, 0x72, 0xee, 0x79, - 0x22, 0x69, 0xf2, 0x1f, 0x7a, 0x5b, 0xf9, 0xbe, 0x02, 0xd3, 0x94, 0x61, 0x02, 0x27, 0x8e, 0x9b, - 0xd1, 0x13, 0xc7, 0x63, 0x49, 0x6d, 0x19, 0x72, 0xce, 0x78, 0x57, 0x81, 0x29, 0x81, 0x73, 0x9f, - 0x8e, 0x1b, 0xca, 0x9f, 0x8a, 0xad, 0x65, 0x20, 0x5e, 0xa7, 0x85, 0x2a, 0xb1, 0xe5, 0xff, 0xf3, - 0x7d, 0x7a, 0x94, 0x6b, 0x5a, 0x8a, 0xe4, 0xa1, 0x1a, 0x95, 0xd8, 0xac, 0x46, 0x25, 0xb6, 0x8b, - 0xae, 0xc0, 0x14, 0xaf, 0x5b, 0xa4, 0x59, 0x17, 0x86, 0xd7, 0x6a, 0x01, 0x88, 0xf1, 0xdf, 0x2e, - 0x96, 0x73, 0xcb, 0x97, 0x6e, 0x7d, 0xb2, 0x74, 0xe6, 0xc3, 0x4f, 0x96, 0xce, 0x7c, 0xf4, 0xc9, - 0xd2, 0x99, 0x6f, 0xf6, 0x96, 0x94, 0x5b, 0xbd, 0x25, 0xe5, 0xc3, 0xde, 0x92, 0xf2, 0x51, 0x6f, - 0x49, 0xf9, 0x53, 0x6f, 0x49, 0xf9, 0xee, 0x9f, 0x97, 0xce, 0x7c, 0x79, 0x4a, 0xac, 0xeb, 0x5f, - 0x01, 0x00, 0x00, 0xff, 0xff, 0x09, 0xf2, 0x56, 0x18, 0x6c, 0x41, 0x00, 0x00, + // 3276 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 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, 0x1d, 0xe8, 0x43, 0x49, 0x45, 0xe6, 0x2e, 0x27, 0x15, 0xd9, 0x49, 0x27, 0x15, 0xfe, + 0xe9, 0x39, 0x77, 0x4a, 0xa7, 0x67, 0xf5, 0x27, 0x8a, 0x2c, 0x43, 0x6e, 0x89, 0xd3, 0x74, 0xde, + 0x76, 0x08, 0xa7, 0x88, 0xdd, 0x7a, 0x31, 0x6a, 0x2f, 0xaf, 0x8d, 0x4a, 0x4b, 0xb7, 0x34, 0xb3, + 0xd1, 0x21, 0x4e, 0x65, 0xb6, 0x77, 0x58, 0xca, 0x57, 0x65, 0x4f, 0x1c, 0x08, 0x41, 0x35, 0x00, + 0xdb, 0x72, 0x3d, 0x21, 0x32, 0x75, 0xe7, 0x22, 0xe7, 0xa8, 0xcf, 0x55, 0xfd, 0xae, 0x38, 0x24, + 0x46, 0x7d, 0x4b, 0x81, 0x05, 0xfe, 0xf3, 0xba, 0xb9, 0x6f, 0xed, 0x11, 0x07, 0x93, 0x26, 0x45, + 0x03, 0xcd, 0xd6, 0xaf, 0x39, 0x96, 0x18, 0x7a, 0x08, 0x0d, 0xd6, 0xab, 0xd7, 0x19, 0x1d, 0xfb, + 0x1c, 0x68, 0x19, 0x32, 0x7b, 0xba, 0xd9, 0x10, 0xb8, 0xe1, 0x7b, 0xd5, 0x73, 0xba, 0xd9, 0xc0, + 0xac, 0x85, 0x72, 0x98, 0x9a, 0x41, 0x04, 0x5a, 0xf8, 0x1c, 0x2f, 0x68, 0x06, 0xc1, 0xac, 0x45, + 0xfd, 0x75, 0x0a, 0x66, 0xf9, 0x30, 0x6a, 0xc4, 0x75, 0x27, 0x93, 0xa6, 0xb5, 0x22, 0x69, 0xda, + 0x08, 0xd5, 0x55, 0x31, 0xe4, 0xa1, 0x09, 0x9a, 0x15, 0x4b, 0xd0, 0xae, 0x8d, 0xae, 0xea, 0xe8, + 0xd4, 0xec, 0x0f, 0x8a, 0xac, 0xbb, 0x08, 0xfe, 0x09, 0x24, 0x65,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x22, 0x9e, 0x92, 0x86, 0xb6, 0xd0, 0x7a, 0xf5, 0xba, 0x68, 0xc1, 0x21, 0xae, 0xb1, + 0xbc, 0x12, 0xbb, 0xa5, 0x00, 0x8b, 0xa0, 0x13, 0x38, 0xf7, 0x7c, 0x35, 0x72, 0xee, 0x79, 0x22, + 0x69, 0xf0, 0x1f, 0x7a, 0x5b, 0xf9, 0xbe, 0x02, 0xd3, 0x94, 0x61, 0x02, 0x27, 0x8e, 0x9b, 0xd1, + 0x13, 0xc7, 0x63, 0x49, 0x6d, 0x19, 0x72, 0xce, 0x78, 0x57, 0x81, 0x29, 0x81, 0x73, 0x9f, 0x8e, + 0x1b, 0xca, 0x9f, 0x8a, 0xa9, 0x65, 0x20, 0xde, 0xa0, 0x89, 0x2a, 0xb1, 0xe5, 0xff, 0xf9, 0x3e, + 0x3d, 0xca, 0x35, 0x2d, 0x45, 0xf2, 0x50, 0x8e, 0x4a, 0x6c, 0x96, 0xa3, 0x12, 0xdb, 0x45, 0x57, + 0x60, 0x8a, 0xe7, 0x2d, 0xd2, 0xac, 0x0b, 0xc3, 0x73, 0xb5, 0x00, 0xc4, 0xf8, 0xb7, 0x8b, 0x65, + 0xdf, 0xca, 0xa5, 0x5b, 0x9f, 0x2c, 0x9d, 0xf9, 0xf0, 0x93, 0xa5, 0x33, 0x1f, 0x7d, 0xb2, 0x74, + 0xe6, 0x9b, 0xbd, 0x25, 0xe5, 0x56, 0x6f, 0x49, 0xf9, 0xb0, 0xb7, 0xa4, 0x7c, 0xd4, 0x5b, 0x52, + 0xfe, 0xd4, 0x5b, 0x52, 0xbe, 0xfb, 0xe7, 0xa5, 0x33, 0x5f, 0x9e, 0x12, 0xe3, 0xfa, 0x57, 0x00, + 0x00, 0x00, 0xff, 0xff, 0x6a, 0x12, 0x97, 0x38, 0x6c, 0x41, 0x00, 0x00, } func (m *BackupBatch) Marshal() (dAtA []byte, err error) { @@ -2743,20 +2743,15 @@ func (m *BackupTarget) MarshalToSizedBuffer(dAtA []byte) (int, error) { dAtA[i] = 0x3a } } - i -= len(m.Alias) - copy(dAtA[i:], m.Alias) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Alias))) - i-- - dAtA[i] = 0x32 i -= len(m.VolumeSnapshotClassName) copy(dAtA[i:], m.VolumeSnapshotClassName) i = encodeVarintGenerated(dAtA, i, uint64(len(m.VolumeSnapshotClassName))) i-- - dAtA[i] = 0x2a + dAtA[i] = 0x32 if m.Replicas != nil { i = encodeVarintGenerated(dAtA, i, uint64(*m.Replicas)) i-- - dAtA[i] = 0x20 + dAtA[i] = 0x28 } if len(m.VolumeMounts) > 0 { for iNdEx := len(m.VolumeMounts) - 1; iNdEx >= 0; iNdEx-- { @@ -2769,7 +2764,7 @@ func (m *BackupTarget) MarshalToSizedBuffer(dAtA []byte) (int, error) { i = encodeVarintGenerated(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0x1a + dAtA[i] = 0x22 } } if len(m.Paths) > 0 { @@ -2778,7 +2773,7 @@ func (m *BackupTarget) MarshalToSizedBuffer(dAtA []byte) (int, error) { copy(dAtA[i:], m.Paths[iNdEx]) i = encodeVarintGenerated(dAtA, i, uint64(len(m.Paths[iNdEx]))) i-- - dAtA[i] = 0x12 + dAtA[i] = 0x1a } } { @@ -2790,6 +2785,11 @@ func (m *BackupTarget) MarshalToSizedBuffer(dAtA []byte) (int, error) { i = encodeVarintGenerated(dAtA, i, uint64(size)) } i-- + dAtA[i] = 0x12 + i -= len(m.Alias) + copy(dAtA[i:], m.Alias) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Alias))) + i-- dAtA[i] = 0xa return len(dAtA) - i, nil } @@ -3978,11 +3978,6 @@ func (m *RestoreTarget) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l - i -= len(m.Alias) - copy(dAtA[i:], m.Alias) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Alias))) - i-- - dAtA[i] = 0x3a if len(m.Rules) > 0 { for iNdEx := len(m.Rules) - 1; iNdEx >= 0; iNdEx-- { { @@ -4008,9 +4003,14 @@ func (m *RestoreTarget) MarshalToSizedBuffer(dAtA []byte) (int, error) { i = encodeVarintGenerated(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0x22 + dAtA[i] = 0x2a } } + if m.Replicas != nil { + i = encodeVarintGenerated(dAtA, i, uint64(*m.Replicas)) + i-- + dAtA[i] = 0x20 + } if len(m.VolumeMounts) > 0 { for iNdEx := len(m.VolumeMounts) - 1; iNdEx >= 0; iNdEx-- { { @@ -4035,11 +4035,11 @@ func (m *RestoreTarget) MarshalToSizedBuffer(dAtA []byte) (int, error) { } i-- dAtA[i] = 0x12 - if m.Replicas != nil { - i = encodeVarintGenerated(dAtA, i, uint64(*m.Replicas)) - i-- - dAtA[i] = 0x8 - } + i -= len(m.Alias) + copy(dAtA[i:], m.Alias) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Alias))) + i-- + dAtA[i] = 0xa return len(dAtA) - i, nil } @@ -4846,6 +4846,8 @@ func (m *BackupTarget) Size() (n int) { } var l int _ = l + l = len(m.Alias) + n += 1 + l + sovGenerated(uint64(l)) l = m.Ref.Size() n += 1 + l + sovGenerated(uint64(l)) if len(m.Paths) > 0 { @@ -4865,8 +4867,6 @@ func (m *BackupTarget) Size() (n int) { } l = len(m.VolumeSnapshotClassName) n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Alias) - n += 1 + l + sovGenerated(uint64(l)) if len(m.Exclude) > 0 { for _, s := range m.Exclude { l = len(s) @@ -5327,9 +5327,8 @@ func (m *RestoreTarget) Size() (n int) { } var l int _ = l - if m.Replicas != nil { - n += 1 + sovGenerated(uint64(*m.Replicas)) - } + l = len(m.Alias) + n += 1 + l + sovGenerated(uint64(l)) l = m.Ref.Size() n += 1 + l + sovGenerated(uint64(l)) if len(m.VolumeMounts) > 0 { @@ -5338,6 +5337,9 @@ func (m *RestoreTarget) Size() (n int) { n += 1 + l + sovGenerated(uint64(l)) } } + if m.Replicas != nil { + n += 1 + sovGenerated(uint64(*m.Replicas)) + } if len(m.VolumeClaimTemplates) > 0 { for _, e := range m.VolumeClaimTemplates { l = e.Size() @@ -5350,8 +5352,6 @@ func (m *RestoreTarget) Size() (n int) { n += 1 + l + sovGenerated(uint64(l)) } } - l = len(m.Alias) - n += 1 + l + sovGenerated(uint64(l)) return n } @@ -5820,12 +5820,12 @@ func (this *BackupTarget) String() string { } repeatedStringForVolumeMounts += "}" s := strings.Join([]string{`&BackupTarget{`, + `Alias:` + fmt.Sprintf("%v", this.Alias) + `,`, `Ref:` + strings.Replace(strings.Replace(this.Ref.String(), "TargetRef", "TargetRef", 1), `&`, ``, 1) + `,`, `Paths:` + fmt.Sprintf("%v", this.Paths) + `,`, `VolumeMounts:` + repeatedStringForVolumeMounts + `,`, `Replicas:` + valueToStringGenerated(this.Replicas) + `,`, `VolumeSnapshotClassName:` + fmt.Sprintf("%v", this.VolumeSnapshotClassName) + `,`, - `Alias:` + fmt.Sprintf("%v", this.Alias) + `,`, `Exclude:` + fmt.Sprintf("%v", this.Exclude) + `,`, `}`, }, "") @@ -6206,12 +6206,12 @@ func (this *RestoreTarget) String() string { } repeatedStringForRules += "}" s := strings.Join([]string{`&RestoreTarget{`, - `Replicas:` + valueToStringGenerated(this.Replicas) + `,`, + `Alias:` + fmt.Sprintf("%v", this.Alias) + `,`, `Ref:` + strings.Replace(strings.Replace(this.Ref.String(), "TargetRef", "TargetRef", 1), `&`, ``, 1) + `,`, `VolumeMounts:` + repeatedStringForVolumeMounts + `,`, + `Replicas:` + valueToStringGenerated(this.Replicas) + `,`, `VolumeClaimTemplates:` + repeatedStringForVolumeClaimTemplates + `,`, `Rules:` + repeatedStringForRules + `,`, - `Alias:` + fmt.Sprintf("%v", this.Alias) + `,`, `}`, }, "") return s @@ -9401,6 +9401,38 @@ func (m *BackupTarget) Unmarshal(dAtA []byte) error { } switch fieldNum { case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Alias", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Alias = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Ref", wireType) } @@ -9433,7 +9465,7 @@ func (m *BackupTarget) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex - case 2: + case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Paths", wireType) } @@ -9465,7 +9497,7 @@ func (m *BackupTarget) Unmarshal(dAtA []byte) error { } m.Paths = append(m.Paths, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex - case 3: + case 4: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field VolumeMounts", wireType) } @@ -9499,7 +9531,7 @@ func (m *BackupTarget) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex - case 4: + case 5: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field Replicas", wireType) } @@ -9519,7 +9551,7 @@ func (m *BackupTarget) Unmarshal(dAtA []byte) error { } } m.Replicas = &v - case 5: + case 6: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field VolumeSnapshotClassName", wireType) } @@ -9551,38 +9583,6 @@ func (m *BackupTarget) Unmarshal(dAtA []byte) error { } m.VolumeSnapshotClassName = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Alias", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Alias = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex case 7: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Exclude", wireType) @@ -13191,10 +13191,10 @@ func (m *RestoreTarget) Unmarshal(dAtA []byte) error { } switch fieldNum { case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Replicas", wireType) + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Alias", wireType) } - var v int32 + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated @@ -13204,12 +13204,24 @@ func (m *RestoreTarget) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int32(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - m.Replicas = &v + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Alias = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Ref", wireType) @@ -13278,10 +13290,10 @@ func (m *RestoreTarget) Unmarshal(dAtA []byte) error { } iNdEx = postIndex case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field VolumeClaimTemplates", wireType) + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Replicas", wireType) } - var msglen int + var v int32 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated @@ -13291,29 +13303,15 @@ func (m *RestoreTarget) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + v |= int32(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.VolumeClaimTemplates = append(m.VolumeClaimTemplates, v11.PersistentVolumeClaim{}) - if err := m.VolumeClaimTemplates[len(m.VolumeClaimTemplates)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 6: + m.Replicas = &v + case 5: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Rules", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field VolumeClaimTemplates", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -13340,16 +13338,16 @@ func (m *RestoreTarget) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Rules = append(m.Rules, Rule{}) - if err := m.Rules[len(m.Rules)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + m.VolumeClaimTemplates = append(m.VolumeClaimTemplates, v11.PersistentVolumeClaim{}) + if err := m.VolumeClaimTemplates[len(m.VolumeClaimTemplates)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 7: + case 6: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Alias", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Rules", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated @@ -13359,23 +13357,25 @@ func (m *RestoreTarget) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return ErrInvalidLengthGenerated } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } - m.Alias = string(dAtA[iNdEx:postIndex]) + m.Rules = append(m.Rules, Rule{}) + if err := m.Rules[len(m.Rules)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex default: iNdEx = preIndex diff --git a/vendor/stash.appscode.dev/apimachinery/apis/stash/v1beta1/generated.proto b/vendor/stash.appscode.dev/apimachinery/apis/stash/v1beta1/generated.proto index 27b019a72..4c138c4bf 100644 --- a/vendor/stash.appscode.dev/apimachinery/apis/stash/v1beta1/generated.proto +++ b/vendor/stash.appscode.dev/apimachinery/apis/stash/v1beta1/generated.proto @@ -340,29 +340,29 @@ message BackupTarget { // Alias represents the identifier of the backed up data in the repository. // This will be used as `hostname` or will be used to generate the `hostname` for the restic repository. // +optional - optional string alias = 6; + optional string alias = 1; // Ref refers to the backup target - optional TargetRef ref = 1; + optional TargetRef ref = 2; // Paths specify the file paths to backup // +optional - repeated string paths = 2; + repeated string paths = 3; // VolumeMounts specifies the volumes to mount inside stash sidecar/init container // Specify the volumes that contains the target directories // +optional - repeated k8s.io.api.core.v1.VolumeMount volumeMounts = 3; + repeated k8s.io.api.core.v1.VolumeMount volumeMounts = 4; // replicas are the desired number of replicas whose data should be backed up. // If unspecified, defaults to 1. // +optional - optional int32 replicas = 4; + optional int32 replicas = 5; // Name of the VolumeSnapshotClass used by the VolumeSnapshot. If not specified, a default snapshot class will be used if it is available. // Use this field only if the "driver" field is set to "volumeSnapshotter". // +optional - optional string snapshotClassName = 5; + optional string snapshotClassName = 6; // Exclude specifies a list of patterns for the files to ignore during backup. // Stash will ignore those files that match the specified patterns. @@ -740,7 +740,7 @@ message RestoreTarget { // Alias represents the identifier of the backed up data in the repository. // This will be used as `sourceHost` and `targetHosts` or will be used to generate them. // +optional - optional string alias = 7; + optional string alias = 1; // Ref refers to the restore,target optional TargetRef ref = 2; @@ -755,11 +755,11 @@ message RestoreTarget { // same Template, but individual replicas also have a consistent identity. // If unspecified, defaults to 1. // +optional - optional int32 replicas = 1; + optional int32 replicas = 4; // volumeClaimTemplates is a list of claims that will be created while restore from VolumeSnapshot // +optional - repeated kmodules.xyz.offshoot_api.api.v1.PersistentVolumeClaim volumeClaimTemplates = 4; + repeated kmodules.xyz.offshoot_api.api.v1.PersistentVolumeClaim volumeClaimTemplates = 5; // Rules specifies different restore options for different hosts // +optional diff --git a/vendor/stash.appscode.dev/apimachinery/apis/stash/v1beta1/openapi_generated.go b/vendor/stash.appscode.dev/apimachinery/apis/stash/v1beta1/openapi_generated.go index fe957f224..c70f22f60 100644 --- a/vendor/stash.appscode.dev/apimachinery/apis/stash/v1beta1/openapi_generated.go +++ b/vendor/stash.appscode.dev/apimachinery/apis/stash/v1beta1/openapi_generated.go @@ -332,7 +332,10 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "k8s.io/apimachinery/pkg/runtime.Unknown": schema_k8sio_apimachinery_pkg_runtime_Unknown(ref), "k8s.io/apimachinery/pkg/util/intstr.IntOrString": schema_apimachinery_pkg_util_intstr_IntOrString(ref), "k8s.io/apimachinery/pkg/version.Info": schema_k8sio_apimachinery_pkg_version_Info(ref), + "kmodules.xyz/client-go/api/v1.CertificateSpec": schema_kmodulesxyz_client_go_api_v1_CertificateSpec(ref), "kmodules.xyz/client-go/api/v1.Condition": schema_kmodulesxyz_client_go_api_v1_Condition(ref), + "kmodules.xyz/client-go/api/v1.TLSConfig": schema_kmodulesxyz_client_go_api_v1_TLSConfig(ref), + "kmodules.xyz/client-go/api/v1.X509Subject": schema_kmodulesxyz_client_go_api_v1_X509Subject(ref), "kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1.AddKeyTransform": schema_custom_resources_apis_appcatalog_v1alpha1_AddKeyTransform(ref), "kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1.AddKeysFromTransform": schema_custom_resources_apis_appcatalog_v1alpha1_AddKeysFromTransform(ref), "kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1.AppBinding": schema_custom_resources_apis_appcatalog_v1alpha1_AppBinding(ref), @@ -15617,6 +15620,116 @@ func schema_k8sio_apimachinery_pkg_version_Info(ref common.ReferenceCallback) co } } +func schema_kmodulesxyz_client_go_api_v1_CertificateSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "alias": { + SchemaProps: spec.SchemaProps{ + Description: "Alias represents the identifier of the certificate.", + Type: []string{"string"}, + Format: "", + }, + }, + "secretName": { + SchemaProps: spec.SchemaProps{ + Description: "Specifies the k8s secret name that holds the certificates. Default to --cert.", + Type: []string{"string"}, + Format: "", + }, + }, + "keyEncoding": { + SchemaProps: spec.SchemaProps{ + Description: "KeyEncoding is the private key cryptography standards (PKCS) for this certificate's private key to be encoded in. If provided, allowed values are \"pkcs1\" and \"pkcs8\". If KeyEncoding is not specified, then PKCS#1 will be used by default.", + Type: []string{"string"}, + Format: "", + }, + }, + "subject": { + SchemaProps: spec.SchemaProps{ + Description: "Full X509 name specification (https://golang.org/pkg/crypto/x509/pkix/#Name).", + Ref: ref("kmodules.xyz/client-go/api/v1.X509Subject"), + }, + }, + "duration": { + SchemaProps: spec.SchemaProps{ + Description: "Certificate default Duration", + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Duration"), + }, + }, + "renewBefore": { + SchemaProps: spec.SchemaProps{ + Description: "Certificate renew before expiration duration", + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Duration"), + }, + }, + "dnsNames": { + SchemaProps: spec.SchemaProps{ + Description: "DNSNames is a list of subject alt names to be used on the Certificate.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "ipAddresses": { + SchemaProps: spec.SchemaProps{ + Description: "IPAddresses is a list of IP addresses to be used on the Certificate", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "uriSANs": { + SchemaProps: spec.SchemaProps{ + Description: "URISANs is a list of URI Subject Alternative Names to be set on this Certificate.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "emailSANs": { + SchemaProps: spec.SchemaProps{ + Description: "EmailSANs is a list of email subjectAltNames to be set on the Certificate.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + }, + Required: []string{"alias"}, + }, + }, + Dependencies: []string{ + "k8s.io/apimachinery/pkg/apis/meta/v1.Duration", "kmodules.xyz/client-go/api/v1.X509Subject"}, + } +} + func schema_kmodulesxyz_client_go_api_v1_Condition(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ @@ -15673,6 +15786,157 @@ func schema_kmodulesxyz_client_go_api_v1_Condition(ref common.ReferenceCallback) } } +func schema_kmodulesxyz_client_go_api_v1_TLSConfig(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "issuerRef": { + SchemaProps: spec.SchemaProps{ + Description: "IssuerRef is a reference to a Certificate Issuer.", + Ref: ref("k8s.io/api/core/v1.TypedLocalObjectReference"), + }, + }, + "certificates": { + SchemaProps: spec.SchemaProps{ + Description: "Certificate provides server and/or client certificate options used by application pods. These options are passed to a cert-manager Certificate object. xref: https://github.com/jetstack/cert-manager/blob/v0.16.0/pkg/apis/certmanager/v1beta1/types_certificate.go#L82-L162", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Ref: ref("kmodules.xyz/client-go/api/v1.CertificateSpec"), + }, + }, + }, + }, + }, + }, + }, + }, + Dependencies: []string{ + "k8s.io/api/core/v1.TypedLocalObjectReference", "kmodules.xyz/client-go/api/v1.CertificateSpec"}, + } +} + +func schema_kmodulesxyz_client_go_api_v1_X509Subject(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "X509Subject Full X509 name specification", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "organizations": { + SchemaProps: spec.SchemaProps{ + Description: "Organizations to be used on the Certificate.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "countries": { + SchemaProps: spec.SchemaProps{ + Description: "Countries to be used on the CertificateSpec.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "organizationalUnits": { + SchemaProps: spec.SchemaProps{ + Description: "Organizational Units to be used on the CertificateSpec.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "localities": { + SchemaProps: spec.SchemaProps{ + Description: "Cities to be used on the CertificateSpec.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "provinces": { + SchemaProps: spec.SchemaProps{ + Description: "State/Provinces to be used on the CertificateSpec.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "streetAddresses": { + SchemaProps: spec.SchemaProps{ + Description: "Street addresses to be used on the CertificateSpec.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "postalCodes": { + SchemaProps: spec.SchemaProps{ + Description: "Postal codes to be used on the CertificateSpec.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "serialNumber": { + SchemaProps: spec.SchemaProps{ + Description: "Serial number to be used on the CertificateSpec.", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + } +} + func schema_custom_resources_apis_appcatalog_v1alpha1_AddKeyTransform(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ diff --git a/vendor/stash.appscode.dev/apimachinery/apis/stash/v1beta1/restore_batch_helpers.go b/vendor/stash.appscode.dev/apimachinery/apis/stash/v1beta1/restore_batch_helpers.go index ab60cdff5..41fcff17b 100644 --- a/vendor/stash.appscode.dev/apimachinery/apis/stash/v1beta1/restore_batch_helpers.go +++ b/vendor/stash.appscode.dev/apimachinery/apis/stash/v1beta1/restore_batch_helpers.go @@ -1,5 +1,5 @@ /* -Copyright The Stash Authors. +Copyright AppsCode Inc. and Contributors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/vendor/stash.appscode.dev/apimachinery/apis/stash/v1beta1/restore_batch_types.go b/vendor/stash.appscode.dev/apimachinery/apis/stash/v1beta1/restore_batch_types.go index bf4a1b8e2..63737c775 100644 --- a/vendor/stash.appscode.dev/apimachinery/apis/stash/v1beta1/restore_batch_types.go +++ b/vendor/stash.appscode.dev/apimachinery/apis/stash/v1beta1/restore_batch_types.go @@ -1,5 +1,5 @@ /* -Copyright The Stash Authors. +Copyright AppsCode Inc. and Contributors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/vendor/stash.appscode.dev/apimachinery/apis/stash/v1beta1/types.go b/vendor/stash.appscode.dev/apimachinery/apis/stash/v1beta1/types.go index ae6be0cce..c21bc7b27 100644 --- a/vendor/stash.appscode.dev/apimachinery/apis/stash/v1beta1/types.go +++ b/vendor/stash.appscode.dev/apimachinery/apis/stash/v1beta1/types.go @@ -49,24 +49,24 @@ type BackupTarget struct { // Alias represents the identifier of the backed up data in the repository. // This will be used as `hostname` or will be used to generate the `hostname` for the restic repository. // +optional - Alias string `json:"alias,omitempty" ,protobuf:"bytes,6,opt,name=alias" protobuf:"bytes,6,opt,name=alias"` + Alias string `json:"alias,omitempty" protobuf:"bytes,1,opt,name=alias"` // Ref refers to the backup target - Ref TargetRef `json:"ref,omitempty" protobuf:"bytes,1,opt,name=ref"` + Ref TargetRef `json:"ref,omitempty" protobuf:"bytes,2,opt,name=ref"` // Paths specify the file paths to backup // +optional - Paths []string `json:"paths,omitempty" protobuf:"bytes,2,rep,name=paths"` + Paths []string `json:"paths,omitempty" protobuf:"bytes,3,rep,name=paths"` // VolumeMounts specifies the volumes to mount inside stash sidecar/init container // Specify the volumes that contains the target directories // +optional - VolumeMounts []core.VolumeMount `json:"volumeMounts,omitempty" protobuf:"bytes,3,rep,name=volumeMounts"` + VolumeMounts []core.VolumeMount `json:"volumeMounts,omitempty" protobuf:"bytes,4,rep,name=volumeMounts"` //replicas are the desired number of replicas whose data should be backed up. // If unspecified, defaults to 1. // +optional - Replicas *int32 `json:"replicas,omitempty" protobuf:"varint,4,opt,name=replicas"` + Replicas *int32 `json:"replicas,omitempty" protobuf:"varint,5,opt,name=replicas"` // Name of the VolumeSnapshotClass used by the VolumeSnapshot. If not specified, a default snapshot class will be used if it is available. // Use this field only if the "driver" field is set to "volumeSnapshotter". // +optional - VolumeSnapshotClassName string `json:"snapshotClassName,omitempty" protobuf:"bytes,5,opt,name=snapshotClassName"` + VolumeSnapshotClassName string `json:"snapshotClassName,omitempty" protobuf:"bytes,6,opt,name=snapshotClassName"` // Exclude specifies a list of patterns for the files to ignore during backup. // Stash will ignore those files that match the specified patterns. // Supported only for "Restic" driver @@ -78,7 +78,7 @@ type RestoreTarget struct { // Alias represents the identifier of the backed up data in the repository. // This will be used as `sourceHost` and `targetHosts` or will be used to generate them. // +optional - Alias string `json:"alias,omitempty" ,protobuf:"bytes,5,opt,name=alias" protobuf:"bytes,7,opt,name=alias"` + Alias string `json:"alias,omitempty" protobuf:"bytes,1,opt,name=alias"` // Ref refers to the restore,target Ref TargetRef `json:"ref,omitempty" protobuf:"bytes,2,opt,name=ref"` // VolumeMounts specifies the volumes to mount inside stash sidecar/init container @@ -90,10 +90,10 @@ type RestoreTarget struct { // same Template, but individual replicas also have a consistent identity. // If unspecified, defaults to 1. // +optional - Replicas *int32 `json:"replicas,omitempty" protobuf:"varint,1,opt,name=replicas"` + Replicas *int32 `json:"replicas,omitempty" protobuf:"varint,4,opt,name=replicas"` // volumeClaimTemplates is a list of claims that will be created while restore from VolumeSnapshot // +optional - VolumeClaimTemplates []ofst.PersistentVolumeClaim `json:"volumeClaimTemplates,omitempty" protobuf:"bytes,4,rep,name=volumeClaimTemplates"` + VolumeClaimTemplates []ofst.PersistentVolumeClaim `json:"volumeClaimTemplates,omitempty" protobuf:"bytes,5,rep,name=volumeClaimTemplates"` // Rules specifies different restore options for different hosts // +optional Rules []Rule `json:"rules,omitempty" protobuf:"bytes,6,rep,name=rules"` diff --git a/vendor/stash.appscode.dev/apimachinery/client/clientset/versioned/typed/stash/v1beta1/fake/fake_restorebatch.go b/vendor/stash.appscode.dev/apimachinery/client/clientset/versioned/typed/stash/v1beta1/fake/fake_restorebatch.go index 74f92c267..89438f2db 100644 --- a/vendor/stash.appscode.dev/apimachinery/client/clientset/versioned/typed/stash/v1beta1/fake/fake_restorebatch.go +++ b/vendor/stash.appscode.dev/apimachinery/client/clientset/versioned/typed/stash/v1beta1/fake/fake_restorebatch.go @@ -1,5 +1,5 @@ /* -Copyright The Stash Authors. +Copyright AppsCode Inc. and Contributors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/vendor/stash.appscode.dev/apimachinery/client/clientset/versioned/typed/stash/v1beta1/restorebatch.go b/vendor/stash.appscode.dev/apimachinery/client/clientset/versioned/typed/stash/v1beta1/restorebatch.go index 9fc073254..acb3dd5a9 100644 --- a/vendor/stash.appscode.dev/apimachinery/client/clientset/versioned/typed/stash/v1beta1/restorebatch.go +++ b/vendor/stash.appscode.dev/apimachinery/client/clientset/versioned/typed/stash/v1beta1/restorebatch.go @@ -1,5 +1,5 @@ /* -Copyright The Stash Authors. +Copyright AppsCode Inc. and Contributors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/vendor/stash.appscode.dev/apimachinery/client/clientset/versioned/typed/stash/v1beta1/util/restorebatch.go b/vendor/stash.appscode.dev/apimachinery/client/clientset/versioned/typed/stash/v1beta1/util/restorebatch.go index e41cae4a7..e63265e8c 100644 --- a/vendor/stash.appscode.dev/apimachinery/client/clientset/versioned/typed/stash/v1beta1/util/restorebatch.go +++ b/vendor/stash.appscode.dev/apimachinery/client/clientset/versioned/typed/stash/v1beta1/util/restorebatch.go @@ -1,5 +1,5 @@ /* -Copyright The Stash Authors. +Copyright AppsCode Inc. and Contributors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/vendor/stash.appscode.dev/apimachinery/pkg/conditions/backup.go b/vendor/stash.appscode.dev/apimachinery/pkg/conditions/backup.go index 99f7b813c..d52935682 100644 --- a/vendor/stash.appscode.dev/apimachinery/pkg/conditions/backup.go +++ b/vendor/stash.appscode.dev/apimachinery/pkg/conditions/backup.go @@ -1,5 +1,5 @@ /* -Copyright The Stash Authors. +Copyright AppsCode Inc. and Contributors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/vendor/stash.appscode.dev/apimachinery/pkg/conditions/hooks.go b/vendor/stash.appscode.dev/apimachinery/pkg/conditions/hooks.go index 2366f4417..3da1e0084 100644 --- a/vendor/stash.appscode.dev/apimachinery/pkg/conditions/hooks.go +++ b/vendor/stash.appscode.dev/apimachinery/pkg/conditions/hooks.go @@ -1,5 +1,5 @@ /* -Copyright The Stash Authors. +Copyright AppsCode Inc. and Contributors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/vendor/stash.appscode.dev/apimachinery/pkg/conditions/repository.go b/vendor/stash.appscode.dev/apimachinery/pkg/conditions/repository.go index c7bd5443d..ded2da13b 100644 --- a/vendor/stash.appscode.dev/apimachinery/pkg/conditions/repository.go +++ b/vendor/stash.appscode.dev/apimachinery/pkg/conditions/repository.go @@ -1,5 +1,5 @@ /* -Copyright The Stash Authors. +Copyright AppsCode Inc. and Contributors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/vendor/stash.appscode.dev/apimachinery/pkg/conditions/restore.go b/vendor/stash.appscode.dev/apimachinery/pkg/conditions/restore.go index 2c0b2766d..a0e88002b 100644 --- a/vendor/stash.appscode.dev/apimachinery/pkg/conditions/restore.go +++ b/vendor/stash.appscode.dev/apimachinery/pkg/conditions/restore.go @@ -1,5 +1,5 @@ /* -Copyright The Stash Authors. +Copyright AppsCode Inc. and Contributors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -69,8 +69,8 @@ func SetRestoreTargetFoundConditionToUnknown(invoker apis.RestoreInvoker, index }) } -func SetRestoreJobCreatedConditionToTrue(invoker apis.RestoreInvoker) error { - return invoker.SetCondition(nil, kmapi.Condition{ +func SetRestoreJobCreatedConditionToTrue(invoker apis.RestoreInvoker, tref *api_v1beta1.TargetRef) error { + return invoker.SetCondition(tref, kmapi.Condition{ Type: apis.RestoreJobCreated, Status: kmapi.ConditionTrue, Reason: apis.RestoreJobCreationSucceeded, @@ -78,8 +78,8 @@ func SetRestoreJobCreatedConditionToTrue(invoker apis.RestoreInvoker) error { }) } -func SetRestoreJobCreatedConditionToFalse(invoker apis.RestoreInvoker, err error) error { - return invoker.SetCondition(nil, kmapi.Condition{ +func SetRestoreJobCreatedConditionToFalse(invoker apis.RestoreInvoker, tref *api_v1beta1.TargetRef, err error) error { + return invoker.SetCondition(tref, kmapi.Condition{ Type: apis.RestoreJobCreated, Status: kmapi.ConditionFalse, Reason: apis.RestoreJobCreationFailed, diff --git a/vendor/stash.appscode.dev/apimachinery/pkg/util/backup.go b/vendor/stash.appscode.dev/apimachinery/pkg/util/backup.go index c2c9350db..75c1d845b 100644 --- a/vendor/stash.appscode.dev/apimachinery/pkg/util/backup.go +++ b/vendor/stash.appscode.dev/apimachinery/pkg/util/backup.go @@ -1,5 +1,5 @@ /* -Copyright The Stash Authors. +Copyright AppsCode Inc. and Contributors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.