diff --git a/go.mod b/go.mod index 05a4f3ef0..53c574b98 100644 --- a/go.mod +++ b/go.mod @@ -20,10 +20,10 @@ require ( k8s.io/klog/v2 v2.80.1 k8s.io/kubectl v0.25.1 kmodules.xyz/client-go v0.25.6 - kmodules.xyz/custom-resources v0.25.0 + kmodules.xyz/custom-resources v0.25.1 kmodules.xyz/monitoring-agent-api v0.25.0 - kubedb.dev/apimachinery v0.28.4-0.20220924164625-f5eabfc23811 - stash.appscode.dev/apimachinery v0.22.1-0.20220924053358-8821fa34c13f + kubedb.dev/apimachinery v0.28.4-0.20221007091615-35e1d5e5bcb6 + stash.appscode.dev/apimachinery v0.23.0 ) require ( diff --git a/go.sum b/go.sum index 69f90fed9..e871eb93f 100644 --- a/go.sum +++ b/go.sum @@ -987,8 +987,8 @@ kmodules.xyz/apiversion v0.2.0 h1:vAQYqZFm4xu4pbB1cAdHbFEPES6EQkcR4wc06xdTOWk= kmodules.xyz/apiversion v0.2.0/go.mod h1:oPX8g8LvlPdPX3Yc5YvCzJHQnw3YF/X4/jdW0b1am80= kmodules.xyz/client-go v0.25.6 h1:59mMNoanKrqOFYqDMtqYU5caFxd+7YrfNqpvyKYWqNE= kmodules.xyz/client-go v0.25.6/go.mod h1:NgLAVr+IEAFpI9g7FhZF5qG0SG+SBADxknWu5jp0m8M= -kmodules.xyz/custom-resources v0.25.0 h1:5JQTEuiv6lC/+VVFNKqzfX4YtJCmN5E7mcNtGnHGVQM= -kmodules.xyz/custom-resources v0.25.0/go.mod h1:ULwzvLmOqZJcPSXKI7iLclYL5eYRlKx8Nbex28Ht19E= +kmodules.xyz/custom-resources v0.25.1 h1:0qHPTxbT/q0afl2GCOnwPFaoxKziRIPXgVu77YwrCa4= +kmodules.xyz/custom-resources v0.25.1/go.mod h1:ULwzvLmOqZJcPSXKI7iLclYL5eYRlKx8Nbex28Ht19E= kmodules.xyz/monitoring-agent-api v0.25.0 h1:RU9RBeCqQdoS381xXy8cM1aqT+7qmtuPI3KxNQoX16Y= kmodules.xyz/monitoring-agent-api v0.25.0/go.mod h1:RH5f/W9eCiW+KTblBIh8MZkjCWdtMQ8MuzCBMfgkynM= kmodules.xyz/objectstore-api v0.25.0 h1:xT7+SXBqAMtVkfOdp4espHAfZ6MYUC4G1OgzTkURNnU= @@ -997,8 +997,8 @@ kmodules.xyz/offshoot-api v0.25.0 h1:Svq9da/+sg5afOjpgo9vx2J/Lu90Mo0aFxkdQmgKnGI kmodules.xyz/offshoot-api v0.25.0/go.mod h1:ysEBn7LJuT3+s8ynAQA/OG0BSsJugXa6KGtDLMRjlKo= kmodules.xyz/prober v0.25.0 h1:R5uRLHJEvEtEoogj+vaTAob0Btph6+PX5IlS6hPh8PA= kmodules.xyz/prober v0.25.0/go.mod h1:z4RTnjaajNQa/vPltsiOnO3xI716I/ziD2ac2Exm+1M= -kubedb.dev/apimachinery v0.28.4-0.20220924164625-f5eabfc23811 h1:Xp/vSFvwHclqLrJ+SRXXHCwTxICUv9OdL6WJaD/2gxc= -kubedb.dev/apimachinery v0.28.4-0.20220924164625-f5eabfc23811/go.mod h1:BNR4wQVfhzoucxS8MNcH0zcpDcYelXwqsevnPBxtIo0= +kubedb.dev/apimachinery v0.28.4-0.20221007091615-35e1d5e5bcb6 h1:zrlfmcSezG2O94V8tc7E8GpWZvJEU9wMrjLauaD1Wfw= +kubedb.dev/apimachinery v0.28.4-0.20221007091615-35e1d5e5bcb6/go.mod h1:8/kV/429eH4DlQ24vwRaxkf1mMhN6FL/nvuPEJt2CYc= rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8= rsc.io/quote/v3 v3.1.0/go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0= rsc.io/sampler v1.3.0/go.mod h1:T1hPZKmBbMNahiBKFy5HrXp6adAjACjK9JXDnKaTXpA= @@ -1012,5 +1012,5 @@ sigs.k8s.io/structured-merge-diff/v4 v4.2.3 h1:PRbqxJClWWYMNV1dhaG4NsibJbArud9kF sigs.k8s.io/structured-merge-diff/v4 v4.2.3/go.mod h1:qjx8mGObPmV2aSZepjQjbmb2ihdVs8cGKBraizNC69E= sigs.k8s.io/yaml v1.3.0 h1:a2VclLzOGrwOHDiV8EfBGhvjHvP46CtW5j6POvhYGGo= sigs.k8s.io/yaml v1.3.0/go.mod h1:GeOyir5tyXNByN85N/dRIT9es5UQNerPYEKK56eTBm8= -stash.appscode.dev/apimachinery v0.22.1-0.20220924053358-8821fa34c13f h1:N2jMJ6yOvgveZSHzlNpXZCbp8QFPACiqdOKXLcJIV6k= -stash.appscode.dev/apimachinery v0.22.1-0.20220924053358-8821fa34c13f/go.mod h1:Tb1y/+h1r3+YdBvI5RYIC0tW1b8S+0pIb3iG0X7BOjo= +stash.appscode.dev/apimachinery v0.23.0 h1:wEOxoVsnF7LtOFxgQyvW+5dlVe8bw6kLhUm2LrQM41s= +stash.appscode.dev/apimachinery v0.23.0/go.mod h1:Tb1y/+h1r3+YdBvI5RYIC0tW1b8S+0pIb3iG0X7BOjo= diff --git a/pkg/restarter/elasticsearch.go b/pkg/restarter/elasticsearch.go index 9e4ad3a15..974d646fc 100644 --- a/pkg/restarter/elasticsearch.go +++ b/pkg/restarter/elasticsearch.go @@ -68,7 +68,7 @@ func (e *ElasticsearchRestarter) Restart(name, namespace string) (string, error) Namespace: namespace, }, Spec: v1alpha1.ElasticsearchOpsRequestSpec{ - Type: v1alpha1.OpsRequestTypeRestart, + Type: v1alpha1.ElasticsearchOpsRequestTypeRestart, DatabaseRef: v1.LocalObjectReference{ Name: name, }, diff --git a/pkg/restarter/mariadb.go b/pkg/restarter/mariadb.go index 2131dbe6f..dc966341e 100644 --- a/pkg/restarter/mariadb.go +++ b/pkg/restarter/mariadb.go @@ -68,7 +68,7 @@ func (e *MariaDBRestarter) Restart(name, namespace string) (string, error) { Namespace: namespace, }, Spec: v1alpha1.MariaDBOpsRequestSpec{ - Type: v1alpha1.OpsRequestTypeRestart, + Type: v1alpha1.MariaDBOpsRequestTypeRestart, DatabaseRef: v1.LocalObjectReference{ Name: name, }, diff --git a/pkg/restarter/mongodb.go b/pkg/restarter/mongodb.go index 5628aa3c8..b7584e94d 100644 --- a/pkg/restarter/mongodb.go +++ b/pkg/restarter/mongodb.go @@ -68,7 +68,7 @@ func (e *MongoDBRestarter) Restart(name, namespace string) (string, error) { Namespace: namespace, }, Spec: v1alpha1.MongoDBOpsRequestSpec{ - Type: v1alpha1.OpsRequestTypeRestart, + Type: v1alpha1.MongoDBOpsRequestTypeRestart, DatabaseRef: v1.LocalObjectReference{ Name: name, }, diff --git a/pkg/restarter/mysql.go b/pkg/restarter/mysql.go index 0467152ac..93f91694e 100644 --- a/pkg/restarter/mysql.go +++ b/pkg/restarter/mysql.go @@ -69,7 +69,7 @@ func (e *MySQLRestarter) Restart(name, namespace string) (string, error) { Namespace: namespace, }, Spec: v1alpha1.MySQLOpsRequestSpec{ - Type: v1alpha1.OpsRequestTypeRestart, + Type: v1alpha1.MySQLOpsRequestTypeRestart, DatabaseRef: v1.LocalObjectReference{ Name: name, }, diff --git a/pkg/restarter/postgres.go b/pkg/restarter/postgres.go index dfbf52832..ef48a8bf0 100644 --- a/pkg/restarter/postgres.go +++ b/pkg/restarter/postgres.go @@ -68,7 +68,7 @@ func (e *PostgresRestarter) Restart(name, namespace string) (string, error) { Namespace: namespace, }, Spec: v1alpha1.PostgresOpsRequestSpec{ - Type: v1alpha1.OpsRequestTypeRestart, + Type: v1alpha1.PostgresOpsRequestTypeRestart, DatabaseRef: v1.LocalObjectReference{ Name: name, }, diff --git a/pkg/restarter/redis.go b/pkg/restarter/redis.go index 8899f859b..d850c11b1 100644 --- a/pkg/restarter/redis.go +++ b/pkg/restarter/redis.go @@ -68,7 +68,7 @@ func (e *RedisRestarter) Restart(name, namespace string) (string, error) { Namespace: namespace, }, Spec: v1alpha1.RedisOpsRequestSpec{ - Type: v1alpha1.OpsRequestTypeRestart, + Type: v1alpha1.RedisOpsRequestTypeRestart, DatabaseRef: v1.LocalObjectReference{ Name: name, }, diff --git a/vendor/kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1/appbinding_types.go b/vendor/kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1/appbinding_types.go index 53eb1806f..61a4c764c 100644 --- a/vendor/kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1/appbinding_types.go +++ b/vendor/kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1/appbinding_types.go @@ -17,6 +17,8 @@ limitations under the License. package v1alpha1 import ( + kmapi "kmodules.xyz/client-go/api/v1" + core "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/runtime" @@ -42,31 +44,35 @@ const ( // +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp" type AppBinding struct { metav1.TypeMeta `json:",inline,omitempty"` - metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - Spec AppBindingSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` + metav1.ObjectMeta `json:"metadata,omitempty"` + Spec AppBindingSpec `json:"spec,omitempty"` } // AppBindingSpec is the spec for app type AppBindingSpec struct { // Type used to facilitate programmatic handling of application. // +optional - Type AppType `json:"type,omitempty" protobuf:"bytes,1,opt,name=type,casttype=AppType"` + Type AppType `json:"type,omitempty"` + + // Reference to underlying application + // +optional + AppRef *kmapi.TypedObjectReference `json:"appRef,omitempty"` // Version used to facilitate programmatic handling of application. // +optional - Version string `json:"version,omitempty" protobuf:"bytes,2,opt,name=version"` + Version string `json:"version,omitempty"` // ClientConfig defines how to communicate with the app. // Required - ClientConfig ClientConfig `json:"clientConfig" protobuf:"bytes,3,opt,name=clientConfig"` + ClientConfig ClientConfig `json:"clientConfig"` // Secret is the name of the secret to create in the AppBinding's // namespace that will hold the credentials associated with the AppBinding. - Secret *core.LocalObjectReference `json:"secret,omitempty" protobuf:"bytes,4,opt,name=secret"` + Secret *core.LocalObjectReference `json:"secret,omitempty"` // List of transformations that should be applied to the credentials // associated with the ServiceBinding before they are inserted into the Secret. - SecretTransforms []SecretTransform `json:"secretTransforms,omitempty" protobuf:"bytes,5,rep,name=secretTransforms"` + SecretTransforms []SecretTransform `json:"secretTransforms,omitempty"` // Parameters is a set of the parameters to be used to connect to the // app. The inline YAML/JSON payload to be translated into equivalent @@ -80,11 +86,11 @@ type AppBindingSpec struct { // +optional // +kubebuilder:validation:EmbeddedResource // +kubebuilder:pruning:PreserveUnknownFields - Parameters *runtime.RawExtension `json:"parameters,omitempty" protobuf:"bytes,6,opt,name=parameters"` + Parameters *runtime.RawExtension `json:"parameters,omitempty"` // TLSSecret is the name of the secret that will hold // the client certificate and private key associated with the AppBinding. - TLSSecret *core.LocalObjectReference `json:"tlsSecret,omitempty" protobuf:"bytes,7,opt,name=tlsSecret"` + TLSSecret *core.LocalObjectReference `json:"tlsSecret,omitempty"` } type AppType string @@ -115,7 +121,7 @@ type ClientConfig struct { // allowed, either. // // +optional - URL *string `json:"url,omitempty" protobuf:"bytes,1,opt,name=url"` + URL *string `json:"url,omitempty"` // `service` is a reference to the service for this app. Either // `service` or `url` must be specified. @@ -123,21 +129,21 @@ type ClientConfig struct { // If the webhook is running within the cluster, then you should use `service`. // // +optional - Service *ServiceReference `json:"service,omitempty" protobuf:"bytes,2,opt,name=service"` + Service *ServiceReference `json:"service,omitempty"` // InsecureSkipTLSVerify disables TLS certificate verification when communicating with this app. // This is strongly discouraged. You should use the CABundle instead. - InsecureSkipTLSVerify bool `json:"insecureSkipTLSVerify,omitempty" protobuf:"varint,3,opt,name=insecureSkipTLSVerify"` + InsecureSkipTLSVerify bool `json:"insecureSkipTLSVerify,omitempty"` // CABundle is a PEM encoded CA bundle which will be used to validate the serving certificate of this app. // +optional - CABundle []byte `json:"caBundle,omitempty" protobuf:"bytes,4,opt,name=caBundle"` + CABundle []byte `json:"caBundle,omitempty"` // ServerName is used to verify the hostname on the returned // certificates unless InsecureSkipVerify is given. It is also included // in the client's handshake to support virtual hosting unless it is // an IP address. - ServerName string `json:"serverName,omitempty" protobuf:"bytes,5,opt,name=serverName"` + ServerName string `json:"serverName,omitempty"` } // ServiceReference holds a reference to Service.legacy.k8s.io @@ -145,28 +151,28 @@ type ServiceReference struct { // Specifies which scheme to use, for example: http, https // If specified, then it will applied as prefix in this format: scheme:// // If not specified, then nothing will be prefixed - Scheme string `json:"scheme" protobuf:"bytes,1,opt,name=scheme"` + Scheme string `json:"scheme"` // `namespace` is the namespace of the service. // +optional - Namespace string `json:"namespace,omitempty" protobuf:"bytes,2,opt,name=namespace"` + Namespace string `json:"namespace,omitempty"` // `name` is the name of the service. // Required - Name string `json:"name" protobuf:"bytes,3,opt,name=name"` + Name string `json:"name"` // The port that will be exposed by this app. - Port int32 `json:"port" protobuf:"varint,4,opt,name=port"` + Port int32 `json:"port"` // `path` is an optional URL path which will be sent in any request to // this service. // +optional - Path string `json:"path,omitempty" protobuf:"bytes,5,opt,name=path"` + Path string `json:"path,omitempty"` // `query` is optional encoded query string, without '?' which will be // sent in any request to this service. // +optional - Query string `json:"query,omitempty" protobuf:"bytes,6,opt,name=query"` + Query string `json:"query,omitempty"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object @@ -174,19 +180,19 @@ type ServiceReference struct { // AppBindingList is a list of Apps type AppBindingList struct { metav1.TypeMeta `json:",inline"` - metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` + metav1.ListMeta `json:"metadata,omitempty"` // Items is a list of AppBinding CRD objects - Items []AppBinding `json:"items,omitempty" protobuf:"bytes,2,rep,name=items"` + Items []AppBinding `json:"items,omitempty"` } type AppReference struct { // `namespace` is the namespace of the app. // Required - Namespace string `json:"namespace" protobuf:"bytes,1,opt,name=namespace"` + Namespace string `json:"namespace"` // `name` is the name of the app. // Required - Name string `json:"name" protobuf:"bytes,2,opt,name=name"` + Name string `json:"name"` // Parameters is a set of the parameters to be used to override default // parameters. The inline YAML/JSON payload to be translated into equivalent @@ -198,7 +204,7 @@ type AppReference struct { // +optional // +kubebuilder:validation:EmbeddedResource // +kubebuilder:pruning:PreserveUnknownFields - Parameters *runtime.RawExtension `json:"parameters,omitempty" protobuf:"bytes,3,opt,name=parameters"` + Parameters *runtime.RawExtension `json:"parameters,omitempty"` } type AppBindingMeta interface { @@ -210,9 +216,9 @@ type AppBindingMeta interface { // referenced object. type ObjectReference struct { // Namespace of the referent. - Namespace string `json:"namespace,omitempty" protobuf:"bytes,1,opt,name=namespace"` + Namespace string `json:"namespace,omitempty"` // Name of the referent. - Name string `json:"name,omitempty" protobuf:"bytes,2,opt,name=name"` + Name string `json:"name,omitempty"` } // ref: https://github.com/kubernetes-sigs/service-catalog/blob/37b874716ad709a175e426f5f5638322a600849f/pkg/apis/servicecatalog/v1beta1/types.go#L1397 @@ -233,14 +239,14 @@ type ObjectReference struct { // Only one of the SecretTransform's members may be specified. type SecretTransform struct { // RenameKey represents a transform that renames a credentials Secret entry's key - RenameKey *RenameKeyTransform `json:"renameKey,omitempty" protobuf:"bytes,1,opt,name=renameKey"` + RenameKey *RenameKeyTransform `json:"renameKey,omitempty"` // AddKey represents a transform that adds an additional key to the credentials Secret - AddKey *AddKeyTransform `json:"addKey,omitempty" protobuf:"bytes,2,opt,name=addKey"` + AddKey *AddKeyTransform `json:"addKey,omitempty"` // AddKeysFrom represents a transform that merges all the entries of an existing Secret // into the credentials Secret - AddKeysFrom *AddKeysFromTransform `json:"addKeysFrom,omitempty" protobuf:"bytes,3,opt,name=addKeysFrom"` + AddKeysFrom *AddKeysFromTransform `json:"addKeysFrom,omitempty"` // RemoveKey represents a transform that removes a credentials Secret entry - RemoveKey *RemoveKeyTransform `json:"removeKey,omitempty" protobuf:"bytes,4,opt,name=removeKey"` + RemoveKey *RemoveKeyTransform `json:"removeKey,omitempty"` } // RenameKeyTransform specifies that one of the credentials keys returned @@ -259,9 +265,9 @@ type SecretTransform struct { // "DB_USER": "johndoe" type RenameKeyTransform struct { // The name of the key to rename - From string `json:"from" protobuf:"bytes,1,opt,name=from"` + From string `json:"from"` // The new name for the key - To string `json:"to" protobuf:"bytes,2,opt,name=to"` + To string `json:"to"` } // AddKeyTransform specifies that Service Catalog should add an @@ -279,14 +285,14 @@ type RenameKeyTransform struct { // AddKeysFromTransform should be used instead. type AddKeyTransform struct { // The name of the key to add - Key string `json:"key" protobuf:"bytes,1,opt,name=key"` + Key string `json:"key"` // The binary value (possibly non-string) to add to the Secret under the specified key. If both // value and stringValue are specified, then value is ignored and stringValue is stored. // +optional - Value []byte `json:"value,omitempty" protobuf:"bytes,2,opt,name=value"` + Value []byte `json:"value,omitempty"` // The string (non-binary) value to add to the Secret under the specified key. // +optional - StringValue *string `json:"stringValue,omitempty" protobuf:"bytes,3,opt,name=stringValue"` + StringValue *string `json:"stringValue,omitempty"` } // AddKeysFromTransform specifies that Service Catalog should merge @@ -299,12 +305,12 @@ type AddKeyTransform struct { // the credentials Secret. type AddKeysFromTransform struct { // The reference to the Secret that should be merged into the credentials Secret. - SecretRef *core.LocalObjectReference `json:"secretRef,omitempty" protobuf:"bytes,1,opt,name=secretRef"` + SecretRef *core.LocalObjectReference `json:"secretRef,omitempty"` } // RemoveKeyTransform specifies that one of the credentials keys returned // from the broker should not be included in the credentials Secret. type RemoveKeyTransform struct { // The key to remove from the Secret - Key string `json:"key" protobuf:"bytes,1,opt,name=key"` + Key string `json:"key"` } diff --git a/vendor/kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1/generated.pb.go b/vendor/kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1/generated.pb.go deleted file mode 100644 index 547ad42ea..000000000 --- a/vendor/kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1/generated.pb.go +++ /dev/null @@ -1,4362 +0,0 @@ -/* -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. -*/ - -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1/generated.proto - -package v1alpha1 - -import ( - fmt "fmt" - io "io" - math "math" - math_bits "math/bits" - reflect "reflect" - strings "strings" - - proto "github.com/gogo/protobuf/proto" - v1 "k8s.io/api/core/v1" - runtime "k8s.io/apimachinery/pkg/runtime" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package - -func (m *AddKeyTransform) Reset() { *m = AddKeyTransform{} } -func (*AddKeyTransform) ProtoMessage() {} -func (*AddKeyTransform) Descriptor() ([]byte, []int) { - return fileDescriptor_4577f11f96b23493, []int{0} -} -func (m *AddKeyTransform) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *AddKeyTransform) 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 *AddKeyTransform) XXX_Merge(src proto.Message) { - xxx_messageInfo_AddKeyTransform.Merge(m, src) -} -func (m *AddKeyTransform) XXX_Size() int { - return m.Size() -} -func (m *AddKeyTransform) XXX_DiscardUnknown() { - xxx_messageInfo_AddKeyTransform.DiscardUnknown(m) -} - -var xxx_messageInfo_AddKeyTransform proto.InternalMessageInfo - -func (m *AddKeysFromTransform) Reset() { *m = AddKeysFromTransform{} } -func (*AddKeysFromTransform) ProtoMessage() {} -func (*AddKeysFromTransform) Descriptor() ([]byte, []int) { - return fileDescriptor_4577f11f96b23493, []int{1} -} -func (m *AddKeysFromTransform) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *AddKeysFromTransform) 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 *AddKeysFromTransform) XXX_Merge(src proto.Message) { - xxx_messageInfo_AddKeysFromTransform.Merge(m, src) -} -func (m *AddKeysFromTransform) XXX_Size() int { - return m.Size() -} -func (m *AddKeysFromTransform) XXX_DiscardUnknown() { - xxx_messageInfo_AddKeysFromTransform.DiscardUnknown(m) -} - -var xxx_messageInfo_AddKeysFromTransform proto.InternalMessageInfo - -func (m *AppBinding) Reset() { *m = AppBinding{} } -func (*AppBinding) ProtoMessage() {} -func (*AppBinding) Descriptor() ([]byte, []int) { - return fileDescriptor_4577f11f96b23493, []int{2} -} -func (m *AppBinding) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *AppBinding) 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 *AppBinding) XXX_Merge(src proto.Message) { - xxx_messageInfo_AppBinding.Merge(m, src) -} -func (m *AppBinding) XXX_Size() int { - return m.Size() -} -func (m *AppBinding) XXX_DiscardUnknown() { - xxx_messageInfo_AppBinding.DiscardUnknown(m) -} - -var xxx_messageInfo_AppBinding proto.InternalMessageInfo - -func (m *AppBindingList) Reset() { *m = AppBindingList{} } -func (*AppBindingList) ProtoMessage() {} -func (*AppBindingList) Descriptor() ([]byte, []int) { - return fileDescriptor_4577f11f96b23493, []int{3} -} -func (m *AppBindingList) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *AppBindingList) 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 *AppBindingList) XXX_Merge(src proto.Message) { - xxx_messageInfo_AppBindingList.Merge(m, src) -} -func (m *AppBindingList) XXX_Size() int { - return m.Size() -} -func (m *AppBindingList) XXX_DiscardUnknown() { - xxx_messageInfo_AppBindingList.DiscardUnknown(m) -} - -var xxx_messageInfo_AppBindingList proto.InternalMessageInfo - -func (m *AppBindingSpec) Reset() { *m = AppBindingSpec{} } -func (*AppBindingSpec) ProtoMessage() {} -func (*AppBindingSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_4577f11f96b23493, []int{4} -} -func (m *AppBindingSpec) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *AppBindingSpec) 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 *AppBindingSpec) XXX_Merge(src proto.Message) { - xxx_messageInfo_AppBindingSpec.Merge(m, src) -} -func (m *AppBindingSpec) XXX_Size() int { - return m.Size() -} -func (m *AppBindingSpec) XXX_DiscardUnknown() { - xxx_messageInfo_AppBindingSpec.DiscardUnknown(m) -} - -var xxx_messageInfo_AppBindingSpec proto.InternalMessageInfo - -func (m *AppReference) Reset() { *m = AppReference{} } -func (*AppReference) ProtoMessage() {} -func (*AppReference) Descriptor() ([]byte, []int) { - return fileDescriptor_4577f11f96b23493, []int{5} -} -func (m *AppReference) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *AppReference) 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 *AppReference) XXX_Merge(src proto.Message) { - xxx_messageInfo_AppReference.Merge(m, src) -} -func (m *AppReference) XXX_Size() int { - return m.Size() -} -func (m *AppReference) XXX_DiscardUnknown() { - xxx_messageInfo_AppReference.DiscardUnknown(m) -} - -var xxx_messageInfo_AppReference proto.InternalMessageInfo - -func (m *ClientConfig) Reset() { *m = ClientConfig{} } -func (*ClientConfig) ProtoMessage() {} -func (*ClientConfig) Descriptor() ([]byte, []int) { - return fileDescriptor_4577f11f96b23493, []int{6} -} -func (m *ClientConfig) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ClientConfig) 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 *ClientConfig) XXX_Merge(src proto.Message) { - xxx_messageInfo_ClientConfig.Merge(m, src) -} -func (m *ClientConfig) XXX_Size() int { - return m.Size() -} -func (m *ClientConfig) XXX_DiscardUnknown() { - xxx_messageInfo_ClientConfig.DiscardUnknown(m) -} - -var xxx_messageInfo_ClientConfig proto.InternalMessageInfo - -func (m *ObjectReference) Reset() { *m = ObjectReference{} } -func (*ObjectReference) ProtoMessage() {} -func (*ObjectReference) Descriptor() ([]byte, []int) { - return fileDescriptor_4577f11f96b23493, []int{7} -} -func (m *ObjectReference) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ObjectReference) 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 *ObjectReference) XXX_Merge(src proto.Message) { - xxx_messageInfo_ObjectReference.Merge(m, src) -} -func (m *ObjectReference) XXX_Size() int { - return m.Size() -} -func (m *ObjectReference) XXX_DiscardUnknown() { - xxx_messageInfo_ObjectReference.DiscardUnknown(m) -} - -var xxx_messageInfo_ObjectReference proto.InternalMessageInfo - -func (m *Param) Reset() { *m = Param{} } -func (*Param) ProtoMessage() {} -func (*Param) Descriptor() ([]byte, []int) { - return fileDescriptor_4577f11f96b23493, []int{8} -} -func (m *Param) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Param) 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 *Param) XXX_Merge(src proto.Message) { - xxx_messageInfo_Param.Merge(m, src) -} -func (m *Param) XXX_Size() int { - return m.Size() -} -func (m *Param) XXX_DiscardUnknown() { - xxx_messageInfo_Param.DiscardUnknown(m) -} - -var xxx_messageInfo_Param proto.InternalMessageInfo - -func (m *RemoveKeyTransform) Reset() { *m = RemoveKeyTransform{} } -func (*RemoveKeyTransform) ProtoMessage() {} -func (*RemoveKeyTransform) Descriptor() ([]byte, []int) { - return fileDescriptor_4577f11f96b23493, []int{9} -} -func (m *RemoveKeyTransform) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RemoveKeyTransform) 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 *RemoveKeyTransform) XXX_Merge(src proto.Message) { - xxx_messageInfo_RemoveKeyTransform.Merge(m, src) -} -func (m *RemoveKeyTransform) XXX_Size() int { - return m.Size() -} -func (m *RemoveKeyTransform) XXX_DiscardUnknown() { - xxx_messageInfo_RemoveKeyTransform.DiscardUnknown(m) -} - -var xxx_messageInfo_RemoveKeyTransform proto.InternalMessageInfo - -func (m *RenameKeyTransform) Reset() { *m = RenameKeyTransform{} } -func (*RenameKeyTransform) ProtoMessage() {} -func (*RenameKeyTransform) Descriptor() ([]byte, []int) { - return fileDescriptor_4577f11f96b23493, []int{10} -} -func (m *RenameKeyTransform) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RenameKeyTransform) 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 *RenameKeyTransform) XXX_Merge(src proto.Message) { - xxx_messageInfo_RenameKeyTransform.Merge(m, src) -} -func (m *RenameKeyTransform) XXX_Size() int { - return m.Size() -} -func (m *RenameKeyTransform) XXX_DiscardUnknown() { - xxx_messageInfo_RenameKeyTransform.DiscardUnknown(m) -} - -var xxx_messageInfo_RenameKeyTransform proto.InternalMessageInfo - -func (m *SecretTransform) Reset() { *m = SecretTransform{} } -func (*SecretTransform) ProtoMessage() {} -func (*SecretTransform) Descriptor() ([]byte, []int) { - return fileDescriptor_4577f11f96b23493, []int{11} -} -func (m *SecretTransform) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *SecretTransform) 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 *SecretTransform) XXX_Merge(src proto.Message) { - xxx_messageInfo_SecretTransform.Merge(m, src) -} -func (m *SecretTransform) XXX_Size() int { - return m.Size() -} -func (m *SecretTransform) XXX_DiscardUnknown() { - xxx_messageInfo_SecretTransform.DiscardUnknown(m) -} - -var xxx_messageInfo_SecretTransform proto.InternalMessageInfo - -func (m *ServiceReference) Reset() { *m = ServiceReference{} } -func (*ServiceReference) ProtoMessage() {} -func (*ServiceReference) Descriptor() ([]byte, []int) { - return fileDescriptor_4577f11f96b23493, []int{12} -} -func (m *ServiceReference) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ServiceReference) 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 *ServiceReference) XXX_Merge(src proto.Message) { - xxx_messageInfo_ServiceReference.Merge(m, src) -} -func (m *ServiceReference) XXX_Size() int { - return m.Size() -} -func (m *ServiceReference) XXX_DiscardUnknown() { - xxx_messageInfo_ServiceReference.DiscardUnknown(m) -} - -var xxx_messageInfo_ServiceReference proto.InternalMessageInfo - -func (m *StashAddon) Reset() { *m = StashAddon{} } -func (*StashAddon) ProtoMessage() {} -func (*StashAddon) Descriptor() ([]byte, []int) { - return fileDescriptor_4577f11f96b23493, []int{13} -} -func (m *StashAddon) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *StashAddon) 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 *StashAddon) XXX_Merge(src proto.Message) { - xxx_messageInfo_StashAddon.Merge(m, src) -} -func (m *StashAddon) XXX_Size() int { - return m.Size() -} -func (m *StashAddon) XXX_DiscardUnknown() { - xxx_messageInfo_StashAddon.DiscardUnknown(m) -} - -var xxx_messageInfo_StashAddon proto.InternalMessageInfo - -func (m *StashAddonSpec) Reset() { *m = StashAddonSpec{} } -func (*StashAddonSpec) ProtoMessage() {} -func (*StashAddonSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_4577f11f96b23493, []int{14} -} -func (m *StashAddonSpec) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *StashAddonSpec) 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 *StashAddonSpec) XXX_Merge(src proto.Message) { - xxx_messageInfo_StashAddonSpec.Merge(m, src) -} -func (m *StashAddonSpec) XXX_Size() int { - return m.Size() -} -func (m *StashAddonSpec) XXX_DiscardUnknown() { - xxx_messageInfo_StashAddonSpec.DiscardUnknown(m) -} - -var xxx_messageInfo_StashAddonSpec proto.InternalMessageInfo - -func (m *StashTaskSpec) Reset() { *m = StashTaskSpec{} } -func (*StashTaskSpec) ProtoMessage() {} -func (*StashTaskSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_4577f11f96b23493, []int{15} -} -func (m *StashTaskSpec) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *StashTaskSpec) 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 *StashTaskSpec) XXX_Merge(src proto.Message) { - xxx_messageInfo_StashTaskSpec.Merge(m, src) -} -func (m *StashTaskSpec) XXX_Size() int { - return m.Size() -} -func (m *StashTaskSpec) XXX_DiscardUnknown() { - xxx_messageInfo_StashTaskSpec.DiscardUnknown(m) -} - -var xxx_messageInfo_StashTaskSpec proto.InternalMessageInfo - -func (m *TaskRef) Reset() { *m = TaskRef{} } -func (*TaskRef) ProtoMessage() {} -func (*TaskRef) Descriptor() ([]byte, []int) { - return fileDescriptor_4577f11f96b23493, []int{16} -} -func (m *TaskRef) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *TaskRef) 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 *TaskRef) XXX_Merge(src proto.Message) { - xxx_messageInfo_TaskRef.Merge(m, src) -} -func (m *TaskRef) XXX_Size() int { - return m.Size() -} -func (m *TaskRef) XXX_DiscardUnknown() { - xxx_messageInfo_TaskRef.DiscardUnknown(m) -} - -var xxx_messageInfo_TaskRef proto.InternalMessageInfo - -func init() { - proto.RegisterType((*AddKeyTransform)(nil), "kmodules.xyz.custom_resources.apis.appcatalog.v1alpha1.AddKeyTransform") - proto.RegisterType((*AddKeysFromTransform)(nil), "kmodules.xyz.custom_resources.apis.appcatalog.v1alpha1.AddKeysFromTransform") - proto.RegisterType((*AppBinding)(nil), "kmodules.xyz.custom_resources.apis.appcatalog.v1alpha1.AppBinding") - proto.RegisterType((*AppBindingList)(nil), "kmodules.xyz.custom_resources.apis.appcatalog.v1alpha1.AppBindingList") - proto.RegisterType((*AppBindingSpec)(nil), "kmodules.xyz.custom_resources.apis.appcatalog.v1alpha1.AppBindingSpec") - proto.RegisterType((*AppReference)(nil), "kmodules.xyz.custom_resources.apis.appcatalog.v1alpha1.AppReference") - proto.RegisterType((*ClientConfig)(nil), "kmodules.xyz.custom_resources.apis.appcatalog.v1alpha1.ClientConfig") - proto.RegisterType((*ObjectReference)(nil), "kmodules.xyz.custom_resources.apis.appcatalog.v1alpha1.ObjectReference") - proto.RegisterType((*Param)(nil), "kmodules.xyz.custom_resources.apis.appcatalog.v1alpha1.Param") - proto.RegisterType((*RemoveKeyTransform)(nil), "kmodules.xyz.custom_resources.apis.appcatalog.v1alpha1.RemoveKeyTransform") - proto.RegisterType((*RenameKeyTransform)(nil), "kmodules.xyz.custom_resources.apis.appcatalog.v1alpha1.RenameKeyTransform") - proto.RegisterType((*SecretTransform)(nil), "kmodules.xyz.custom_resources.apis.appcatalog.v1alpha1.SecretTransform") - proto.RegisterType((*ServiceReference)(nil), "kmodules.xyz.custom_resources.apis.appcatalog.v1alpha1.ServiceReference") - proto.RegisterType((*StashAddon)(nil), "kmodules.xyz.custom_resources.apis.appcatalog.v1alpha1.StashAddon") - proto.RegisterType((*StashAddonSpec)(nil), "kmodules.xyz.custom_resources.apis.appcatalog.v1alpha1.StashAddonSpec") - proto.RegisterType((*StashTaskSpec)(nil), "kmodules.xyz.custom_resources.apis.appcatalog.v1alpha1.StashTaskSpec") - proto.RegisterType((*TaskRef)(nil), "kmodules.xyz.custom_resources.apis.appcatalog.v1alpha1.TaskRef") -} - -func init() { - proto.RegisterFile("kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1/generated.proto", fileDescriptor_4577f11f96b23493) -} - -var fileDescriptor_4577f11f96b23493 = []byte{ - // 1314 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x57, 0x4f, 0x6f, 0x1b, 0x45, - 0x14, 0xcf, 0xfa, 0x6f, 0xfc, 0xec, 0x26, 0x61, 0x68, 0x85, 0x89, 0x54, 0x3b, 0x5a, 0x24, 0x14, - 0x84, 0xba, 0x26, 0x01, 0x55, 0x5c, 0x10, 0xca, 0x96, 0x16, 0x4a, 0x4d, 0x29, 0xe3, 0xb4, 0x07, - 0x54, 0x04, 0x93, 0xf5, 0xd8, 0xde, 0xda, 0xbb, 0xb3, 0xcc, 0xac, 0xdd, 0x1a, 0x21, 0xe0, 0xc0, - 0x15, 0x09, 0xf1, 0x89, 0x38, 0xf6, 0x82, 0xd4, 0x1b, 0x3d, 0x59, 0xd4, 0x7c, 0x02, 0x2e, 0x1c, - 0x50, 0x0f, 0x68, 0x66, 0x67, 0xff, 0xd8, 0x69, 0x44, 0xe3, 0x94, 0x8b, 0xb5, 0xf3, 0xde, 0x9b, - 0xdf, 0xef, 0xbd, 0x37, 0xef, 0xbd, 0x19, 0xc3, 0xb5, 0xa1, 0xc7, 0xba, 0xe3, 0x11, 0x15, 0xd6, - 0x83, 0xe9, 0x37, 0x2d, 0x67, 0x2c, 0x42, 0xe6, 0x5d, 0xe2, 0x54, 0xb0, 0x31, 0x77, 0xa8, 0x68, - 0x91, 0xc0, 0x95, 0x3f, 0x81, 0x43, 0x42, 0x32, 0x62, 0xfd, 0xd6, 0x64, 0x8f, 0x8c, 0x82, 0x01, - 0xd9, 0x6b, 0xf5, 0xa9, 0x4f, 0x39, 0x09, 0x69, 0xd7, 0x0a, 0x38, 0x0b, 0x19, 0xba, 0x9c, 0xc5, - 0xb1, 0x22, 0x9c, 0x2f, 0x13, 0x1c, 0x4b, 0xe2, 0x58, 0x29, 0x8e, 0x15, 0xe3, 0x6c, 0x5f, 0xea, - 0xbb, 0xe1, 0x60, 0x7c, 0x64, 0x39, 0xcc, 0x6b, 0xf5, 0x59, 0x9f, 0xb5, 0x14, 0xdc, 0xd1, 0xb8, - 0xa7, 0x56, 0x6a, 0xa1, 0xbe, 0x22, 0x9a, 0x6d, 0x73, 0xf8, 0xae, 0xb0, 0x5c, 0x26, 0xfd, 0x6a, - 0x39, 0x8c, 0xd3, 0xd6, 0xe4, 0x98, 0x2b, 0xdb, 0xef, 0xa4, 0x36, 0x1e, 0x71, 0x06, 0xae, 0x4f, - 0xf9, 0xb4, 0x15, 0x0c, 0xfb, 0x51, 0x30, 0x1e, 0x0d, 0xc9, 0xb3, 0x76, 0xb5, 0x4e, 0xda, 0xc5, - 0xc7, 0x7e, 0xe8, 0x7a, 0xf4, 0xd8, 0x86, 0xcb, 0xff, 0xb5, 0x41, 0x38, 0x03, 0xea, 0x91, 0xe5, - 0x7d, 0xe6, 0x8f, 0x06, 0x6c, 0x1e, 0x74, 0xbb, 0x37, 0xe8, 0xf4, 0x90, 0x13, 0x5f, 0xf4, 0x18, - 0xf7, 0xd0, 0x45, 0xc8, 0x0f, 0xe9, 0xb4, 0x6e, 0xec, 0x18, 0xbb, 0x15, 0xbb, 0xfa, 0x70, 0xd6, - 0x5c, 0x9b, 0xcf, 0x9a, 0xf9, 0x1b, 0x74, 0x8a, 0xa5, 0x1c, 0x35, 0xa1, 0x38, 0x21, 0xa3, 0x31, - 0xad, 0xe7, 0x76, 0x8c, 0xdd, 0x9a, 0x5d, 0x99, 0xcf, 0x9a, 0xc5, 0x3b, 0x52, 0x80, 0x23, 0x39, - 0xda, 0x83, 0xaa, 0x08, 0xb9, 0xeb, 0xf7, 0x95, 0xb4, 0x9e, 0x57, 0x38, 0x9b, 0xf3, 0x59, 0xb3, - 0xda, 0x49, 0xc5, 0x38, 0x6b, 0x63, 0x7a, 0x70, 0x3e, 0xf2, 0x42, 0x5c, 0xe3, 0xcc, 0x4b, 0x5d, - 0xb9, 0x0d, 0x15, 0x41, 0x1d, 0x4e, 0x43, 0x4c, 0x7b, 0xca, 0xa1, 0xea, 0xfe, 0xae, 0x15, 0x85, - 0x2a, 0x4f, 0xd1, 0x92, 0x59, 0xb7, 0x26, 0x7b, 0x56, 0x9b, 0x39, 0x64, 0xf4, 0xe9, 0xd1, 0x3d, - 0xea, 0x48, 0x4b, 0xca, 0xa9, 0xef, 0x50, 0xfb, 0xdc, 0x7c, 0xd6, 0xac, 0x74, 0xe2, 0xed, 0x38, - 0x45, 0x32, 0x1f, 0x1b, 0x00, 0x07, 0x41, 0x60, 0xbb, 0x7e, 0xd7, 0xf5, 0xfb, 0xe8, 0x2b, 0x58, - 0x97, 0x07, 0xd1, 0x25, 0x21, 0xd1, 0x24, 0x6f, 0x65, 0x48, 0x92, 0x7c, 0x5a, 0xc1, 0xb0, 0x1f, - 0xd5, 0x8e, 0xb4, 0x96, 0xb4, 0x11, 0xe3, 0x27, 0x34, 0x24, 0x36, 0xd2, 0x79, 0x82, 0x54, 0x86, - 0x13, 0x54, 0x34, 0x80, 0x82, 0x08, 0xa8, 0xa3, 0x52, 0x56, 0xdd, 0xbf, 0x66, 0xad, 0x56, 0x9f, - 0x56, 0xea, 0x73, 0x27, 0xa0, 0x8e, 0x5d, 0xd3, 0x9c, 0x05, 0xb9, 0xc2, 0x8a, 0xc1, 0xfc, 0xdd, - 0x80, 0x8d, 0xd4, 0xac, 0xed, 0x8a, 0x10, 0xdd, 0x3d, 0x16, 0x9e, 0xf5, 0x7c, 0xe1, 0xc9, 0xdd, - 0x2a, 0xb8, 0x2d, 0x4d, 0xb4, 0x1e, 0x4b, 0x32, 0xa1, 0xf5, 0xa1, 0xe8, 0x86, 0xd4, 0x13, 0xf5, - 0xdc, 0x4e, 0x7e, 0xb7, 0xba, 0x6f, 0x9f, 0x3d, 0x36, 0xfb, 0x9c, 0xa6, 0x2b, 0x5e, 0x97, 0xc0, - 0x38, 0xc2, 0x37, 0x9f, 0x16, 0xb2, 0x91, 0xc9, 0x90, 0xd1, 0x9b, 0x50, 0x08, 0xa7, 0x01, 0xd5, - 0xa5, 0xfa, 0x4a, 0x9c, 0x8e, 0xc3, 0x69, 0x40, 0xff, 0x99, 0x35, 0xcb, 0x07, 0x41, 0x20, 0x3f, - 0xb1, 0x32, 0x42, 0x6f, 0x40, 0x79, 0x42, 0xb9, 0x70, 0x99, 0xaf, 0x8e, 0xa1, 0x62, 0x6f, 0x6a, - 0xfb, 0xf2, 0x9d, 0x48, 0x8c, 0x63, 0x3d, 0xfa, 0x0e, 0x6a, 0xce, 0xc8, 0xa5, 0x7e, 0x78, 0x85, - 0xf9, 0x3d, 0xb7, 0xaf, 0x4a, 0xb8, 0xba, 0xff, 0xc1, 0xaa, 0xa1, 0x5d, 0xc9, 0x60, 0xd9, 0xe7, - 0x35, 0x6b, 0x2d, 0x2b, 0xc5, 0x0b, 0x7c, 0xa8, 0x0d, 0xa5, 0xa8, 0x58, 0xeb, 0x85, 0x53, 0xd6, - 0x3c, 0xcc, 0x67, 0xcd, 0x92, 0xae, 0x79, 0x8d, 0x81, 0x7e, 0x32, 0x60, 0x2b, 0xfa, 0x4c, 0x1a, - 0x4b, 0xd4, 0x8b, 0xea, 0xb4, 0x3e, 0x5c, 0x35, 0xa4, 0xce, 0x22, 0x9e, 0x5d, 0xd7, 0x51, 0x6d, - 0x2d, 0x29, 0x04, 0x3e, 0x46, 0x8d, 0xbe, 0x00, 0x08, 0x08, 0x27, 0x1e, 0x0d, 0x29, 0x17, 0xf5, - 0x92, 0x8a, 0xf0, 0xd2, 0x89, 0x15, 0xa9, 0x07, 0x98, 0x85, 0xc9, 0xfd, 0xab, 0x0f, 0x42, 0xea, - 0xcb, 0x03, 0xb2, 0x37, 0x64, 0xa7, 0xdd, 0x4a, 0x40, 0x70, 0x06, 0x50, 0xce, 0x8c, 0x70, 0x24, - 0x22, 0x3f, 0xea, 0xe5, 0x55, 0x66, 0xc6, 0x61, 0xbb, 0xa3, 0x53, 0x98, 0x22, 0x99, 0xbf, 0x1a, - 0x50, 0x3b, 0x08, 0x82, 0xc4, 0x14, 0xb5, 0xa0, 0xe2, 0x13, 0x8f, 0x8a, 0x80, 0x38, 0x71, 0x05, - 0xbe, 0xa4, 0xb3, 0x50, 0xb9, 0x19, 0x2b, 0x70, 0x6a, 0x83, 0x76, 0xa0, 0x20, 0x17, 0xba, 0xfa, - 0x92, 0xe6, 0x95, 0xb6, 0x58, 0x69, 0x96, 0x32, 0x93, 0x7f, 0xc1, 0x99, 0x31, 0x7f, 0xcb, 0xc1, - 0x42, 0xd5, 0xa1, 0x57, 0x21, 0x3f, 0xe6, 0x23, 0xed, 0x7c, 0x59, 0x4e, 0xf9, 0xdb, 0xb8, 0x8d, - 0xa5, 0x0c, 0x31, 0x28, 0x0b, 0xca, 0x27, 0xae, 0x43, 0xf5, 0xd0, 0xfa, 0x68, 0xf5, 0x52, 0x51, - 0x30, 0x69, 0x8e, 0xab, 0xb2, 0xe7, 0x62, 0x69, 0xcc, 0x82, 0x3a, 0x70, 0xc1, 0xf5, 0x05, 0x75, - 0xc6, 0x9c, 0x76, 0x86, 0x6e, 0x70, 0xd8, 0xee, 0xdc, 0xa1, 0xdc, 0xed, 0x4d, 0x55, 0x1a, 0xd6, - 0xed, 0x8b, 0x3a, 0x5d, 0x17, 0xae, 0x3f, 0xcb, 0x08, 0x3f, 0x7b, 0x2f, 0xda, 0x85, 0x75, 0x87, - 0xd8, 0x63, 0xbf, 0x3b, 0xa2, 0xaa, 0x95, 0x6a, 0x76, 0x4d, 0x8e, 0xb1, 0x2b, 0x07, 0x91, 0x0c, - 0x27, 0x5a, 0xb4, 0x0f, 0x20, 0x3d, 0xa1, 0x5c, 0x1e, 0x47, 0xbd, 0xa8, 0x32, 0x92, 0xcc, 0xf4, - 0x4e, 0xa2, 0xc1, 0x19, 0x2b, 0xb3, 0x0b, 0x9b, 0x4b, 0xf5, 0xf3, 0x3f, 0x14, 0x85, 0x79, 0x13, - 0x8a, 0xea, 0x3c, 0x13, 0x53, 0xe3, 0xc4, 0xfa, 0x79, 0x2d, 0x7b, 0x35, 0x57, 0xd2, 0x39, 0x9a, - 0xbd, 0x9e, 0xcd, 0xb7, 0x01, 0x61, 0xea, 0xb1, 0x09, 0x3d, 0xc5, 0xa5, 0x6f, 0x62, 0xb9, 0x49, - 0x72, 0x2c, 0x6c, 0xda, 0x81, 0x42, 0x8f, 0x33, 0x6f, 0xd9, 0x23, 0x79, 0x87, 0x63, 0xa5, 0x41, - 0xdb, 0x90, 0x0b, 0x99, 0x76, 0x07, 0xb4, 0x3e, 0x77, 0xc8, 0x70, 0x2e, 0x64, 0xe6, 0x5f, 0x79, - 0xd8, 0x5c, 0x1a, 0x17, 0xe8, 0x3e, 0x54, 0x78, 0xcc, 0xa3, 0x2f, 0xab, 0x8f, 0x57, 0x2d, 0xbc, - 0xe3, 0x0e, 0x47, 0xed, 0x9d, 0xc8, 0x71, 0xca, 0x85, 0x86, 0x50, 0x22, 0xea, 0x05, 0xa2, 0xcb, - 0x7d, 0xe5, 0xc9, 0xb8, 0xf4, 0x9a, 0x8a, 0x26, 0x72, 0x24, 0xc4, 0x9a, 0x02, 0x7d, 0x0f, 0x55, - 0x92, 0x3e, 0x77, 0x74, 0xa3, 0xb7, 0xcf, 0xc6, 0xb8, 0xf8, 0x72, 0x8a, 0xde, 0x5b, 0x19, 0x0d, - 0xce, 0x32, 0x46, 0x69, 0xd6, 0x35, 0xa0, 0xef, 0x98, 0x33, 0xa4, 0x79, 0xb9, 0x98, 0xe2, 0x34, - 0x6b, 0x39, 0x4e, 0xb9, 0xcc, 0xbf, 0x0d, 0xd8, 0x5a, 0x1e, 0x08, 0xe8, 0x75, 0x28, 0xa9, 0xe7, - 0x69, 0x5c, 0xda, 0x1b, 0xba, 0x50, 0x4a, 0x1d, 0x25, 0xc5, 0x5a, 0xbb, 0xd8, 0x5c, 0xb9, 0x53, - 0x34, 0x57, 0xfe, 0xc4, 0x8e, 0xd9, 0x81, 0x42, 0xc0, 0x78, 0x74, 0xcf, 0x16, 0x53, 0x8b, 0x5b, - 0x8c, 0x87, 0x58, 0x69, 0x94, 0x05, 0x09, 0x07, 0x7a, 0x24, 0xa4, 0x16, 0x24, 0x1c, 0x60, 0xa5, - 0x91, 0x5d, 0xf7, 0xf5, 0x98, 0xf2, 0xa9, 0xba, 0xca, 0x32, 0x5d, 0xf7, 0x99, 0x14, 0xe2, 0x48, - 0x67, 0x4e, 0x01, 0x3a, 0x21, 0x11, 0x83, 0x83, 0x6e, 0x97, 0xf9, 0x68, 0x08, 0x45, 0x21, 0x57, - 0xba, 0xc4, 0x57, 0x7e, 0x10, 0xa6, 0x90, 0xea, 0x41, 0x98, 0x50, 0x2b, 0x39, 0x8e, 0x38, 0xcc, - 0x6f, 0x61, 0x63, 0xd1, 0x0e, 0xdd, 0x83, 0x22, 0x91, 0x0b, 0x4d, 0x7f, 0xf5, 0x4c, 0xf4, 0x87, - 0x44, 0x0c, 0x17, 0xd9, 0x15, 0x11, 0x8e, 0x28, 0xcc, 0xa7, 0x06, 0x9c, 0x5b, 0xb0, 0x43, 0x02, - 0xe0, 0x88, 0x38, 0xc3, 0x71, 0x20, 0x25, 0xda, 0x85, 0xf7, 0x57, 0x75, 0x41, 0x62, 0x60, 0xda, - 0x4b, 0x67, 0xb5, 0x9d, 0x40, 0xe3, 0x0c, 0x0d, 0x9a, 0x40, 0x95, 0x53, 0x11, 0x32, 0x4e, 0x15, - 0x6b, 0xee, 0xc5, 0xb0, 0xbe, 0xac, 0x59, 0xab, 0x38, 0xc5, 0xc6, 0x59, 0x22, 0xf3, 0x17, 0x03, - 0xca, 0xda, 0xfa, 0x39, 0x06, 0x38, 0x85, 0x92, 0xba, 0xaf, 0xe3, 0xd7, 0xf4, 0x7b, 0xab, 0x3a, - 0xa8, 0x6e, 0x8c, 0xb4, 0x91, 0xd4, 0x52, 0x60, 0x0d, 0x6e, 0xdf, 0x7d, 0xf8, 0xa4, 0xb1, 0xf6, - 0xe8, 0x49, 0x63, 0xed, 0xf1, 0x93, 0xc6, 0xda, 0x0f, 0xf3, 0x86, 0xf1, 0x70, 0xde, 0x30, 0x1e, - 0xcd, 0x1b, 0xc6, 0xe3, 0x79, 0xc3, 0xf8, 0x63, 0xde, 0x30, 0x7e, 0xfe, 0xb3, 0xb1, 0xf6, 0xf9, - 0xe5, 0xd5, 0xfe, 0x8d, 0xff, 0x1b, 0x00, 0x00, 0xff, 0xff, 0xe0, 0xe8, 0x7d, 0x76, 0xc6, 0x0f, - 0x00, 0x00, -} - -func (m *AddKeyTransform) 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 *AddKeyTransform) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *AddKeyTransform) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.StringValue != nil { - i -= len(*m.StringValue) - copy(dAtA[i:], *m.StringValue) - i = encodeVarintGenerated(dAtA, i, uint64(len(*m.StringValue))) - i-- - dAtA[i] = 0x1a - } - if m.Value != nil { - i -= len(m.Value) - copy(dAtA[i:], m.Value) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Value))) - i-- - dAtA[i] = 0x12 - } - i -= len(m.Key) - copy(dAtA[i:], m.Key) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Key))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *AddKeysFromTransform) 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 *AddKeysFromTransform) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *AddKeysFromTransform) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.SecretRef != nil { - { - size, err := m.SecretRef.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 *AppBinding) 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 *AppBinding) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *AppBinding) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - { - size, err := m.ObjectMeta.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 *AppBindingList) 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 *AppBindingList) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *AppBindingList) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Items) > 0 { - for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - { - size, err := m.ListMeta.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 *AppBindingSpec) 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 *AppBindingSpec) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *AppBindingSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.TLSSecret != nil { - { - size, err := m.TLSSecret.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x3a - } - if m.Parameters != nil { - { - size, err := m.Parameters.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x32 - } - if len(m.SecretTransforms) > 0 { - for iNdEx := len(m.SecretTransforms) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.SecretTransforms[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a - } - } - if m.Secret != nil { - { - size, err := m.Secret.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - { - size, err := m.ClientConfig.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - i -= len(m.Version) - copy(dAtA[i:], m.Version) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Version))) - i-- - dAtA[i] = 0x12 - i -= len(m.Type) - copy(dAtA[i:], m.Type) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *AppReference) 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 *AppReference) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *AppReference) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Parameters != nil { - { - size, err := m.Parameters.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0x12 - i -= len(m.Namespace) - copy(dAtA[i:], m.Namespace) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Namespace))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *ClientConfig) 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 *ClientConfig) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ClientConfig) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i -= len(m.ServerName) - copy(dAtA[i:], m.ServerName) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.ServerName))) - i-- - dAtA[i] = 0x2a - if m.CABundle != nil { - i -= len(m.CABundle) - copy(dAtA[i:], m.CABundle) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.CABundle))) - i-- - dAtA[i] = 0x22 - } - i-- - if m.InsecureSkipTLSVerify { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x18 - if m.Service != nil { - { - size, err := m.Service.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if m.URL != nil { - i -= len(*m.URL) - copy(dAtA[i:], *m.URL) - i = encodeVarintGenerated(dAtA, i, uint64(len(*m.URL))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *ObjectReference) 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 *ObjectReference) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ObjectReference) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0x12 - i -= len(m.Namespace) - copy(dAtA[i:], m.Namespace) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Namespace))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *Param) 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 *Param) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Param) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i -= len(m.Value) - copy(dAtA[i:], m.Value) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Value))) - i-- - dAtA[i] = 0x12 - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *RemoveKeyTransform) 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 *RemoveKeyTransform) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RemoveKeyTransform) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i -= len(m.Key) - copy(dAtA[i:], m.Key) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Key))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *RenameKeyTransform) 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 *RenameKeyTransform) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RenameKeyTransform) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i -= len(m.To) - copy(dAtA[i:], m.To) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.To))) - i-- - dAtA[i] = 0x12 - i -= len(m.From) - copy(dAtA[i:], m.From) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.From))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *SecretTransform) 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 *SecretTransform) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *SecretTransform) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.RemoveKey != nil { - { - size, err := m.RemoveKey.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - if m.AddKeysFrom != nil { - { - size, err := m.AddKeysFrom.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if m.AddKey != nil { - { - size, err := m.AddKey.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if m.RenameKey != nil { - { - size, err := m.RenameKey.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 *ServiceReference) 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 *ServiceReference) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ServiceReference) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i -= len(m.Query) - copy(dAtA[i:], m.Query) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Query))) - i-- - dAtA[i] = 0x32 - i -= len(m.Path) - copy(dAtA[i:], m.Path) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Path))) - i-- - dAtA[i] = 0x2a - i = encodeVarintGenerated(dAtA, i, uint64(m.Port)) - i-- - dAtA[i] = 0x20 - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0x1a - i -= len(m.Namespace) - copy(dAtA[i:], m.Namespace) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Namespace))) - i-- - dAtA[i] = 0x12 - i -= len(m.Scheme) - copy(dAtA[i:], m.Scheme) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Scheme))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *StashAddon) 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 *StashAddon) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *StashAddon) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.Stash.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 *StashAddonSpec) 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 *StashAddonSpec) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *StashAddonSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.Addon.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 *StashTaskSpec) 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 *StashTaskSpec) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *StashTaskSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.RestoreTask.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - { - size, err := m.BackupTask.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 *TaskRef) 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 *TaskRef) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *TaskRef) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Params) > 0 { - for iNdEx := len(m.Params) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Params[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int { - offset -= sovGenerated(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *AddKeyTransform) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Key) - n += 1 + l + sovGenerated(uint64(l)) - if m.Value != nil { - l = len(m.Value) - n += 1 + l + sovGenerated(uint64(l)) - } - if m.StringValue != nil { - l = len(*m.StringValue) - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *AddKeysFromTransform) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.SecretRef != nil { - l = m.SecretRef.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *AppBinding) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Spec.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *AppBindingList) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ListMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Items) > 0 { - for _, e := range m.Items { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *AppBindingSpec) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Type) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Version) - n += 1 + l + sovGenerated(uint64(l)) - l = m.ClientConfig.Size() - n += 1 + l + sovGenerated(uint64(l)) - if m.Secret != nil { - l = m.Secret.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if len(m.SecretTransforms) > 0 { - for _, e := range m.SecretTransforms { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - if m.Parameters != nil { - l = m.Parameters.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.TLSSecret != nil { - l = m.TLSSecret.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *AppReference) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Namespace) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Name) - n += 1 + l + sovGenerated(uint64(l)) - if m.Parameters != nil { - l = m.Parameters.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *ClientConfig) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.URL != nil { - l = len(*m.URL) - n += 1 + l + sovGenerated(uint64(l)) - } - if m.Service != nil { - l = m.Service.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - n += 2 - if m.CABundle != nil { - l = len(m.CABundle) - n += 1 + l + sovGenerated(uint64(l)) - } - l = len(m.ServerName) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *ObjectReference) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Namespace) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Name) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *Param) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Name) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Value) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *RemoveKeyTransform) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Key) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *RenameKeyTransform) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.From) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.To) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *SecretTransform) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.RenameKey != nil { - l = m.RenameKey.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.AddKey != nil { - l = m.AddKey.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.AddKeysFrom != nil { - l = m.AddKeysFrom.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.RemoveKey != nil { - l = m.RemoveKey.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *ServiceReference) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Scheme) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Namespace) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Name) - n += 1 + l + sovGenerated(uint64(l)) - n += 1 + sovGenerated(uint64(m.Port)) - l = len(m.Path) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Query) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *StashAddon) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.Stash.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *StashAddonSpec) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.Addon.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *StashTaskSpec) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.BackupTask.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.RestoreTask.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *TaskRef) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Name) - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Params) > 0 { - for _, e := range m.Params { - l = e.Size() - 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 *AddKeyTransform) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&AddKeyTransform{`, - `Key:` + fmt.Sprintf("%v", this.Key) + `,`, - `Value:` + valueToStringGenerated(this.Value) + `,`, - `StringValue:` + valueToStringGenerated(this.StringValue) + `,`, - `}`, - }, "") - return s -} -func (this *AddKeysFromTransform) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&AddKeysFromTransform{`, - `SecretRef:` + strings.Replace(fmt.Sprintf("%v", this.SecretRef), "LocalObjectReference", "v1.LocalObjectReference", 1) + `,`, - `}`, - }, "") - return s -} -func (this *AppBinding) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&AppBinding{`, - `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v11.ObjectMeta", 1), `&`, ``, 1) + `,`, - `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "AppBindingSpec", "AppBindingSpec", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *AppBindingList) String() string { - if this == nil { - return "nil" - } - repeatedStringForItems := "[]AppBinding{" - for _, f := range this.Items { - repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "AppBinding", "AppBinding", 1), `&`, ``, 1) + "," - } - repeatedStringForItems += "}" - s := strings.Join([]string{`&AppBindingList{`, - `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v11.ListMeta", 1), `&`, ``, 1) + `,`, - `Items:` + repeatedStringForItems + `,`, - `}`, - }, "") - return s -} -func (this *AppBindingSpec) String() string { - if this == nil { - return "nil" - } - repeatedStringForSecretTransforms := "[]SecretTransform{" - for _, f := range this.SecretTransforms { - repeatedStringForSecretTransforms += strings.Replace(strings.Replace(f.String(), "SecretTransform", "SecretTransform", 1), `&`, ``, 1) + "," - } - repeatedStringForSecretTransforms += "}" - s := strings.Join([]string{`&AppBindingSpec{`, - `Type:` + fmt.Sprintf("%v", this.Type) + `,`, - `Version:` + fmt.Sprintf("%v", this.Version) + `,`, - `ClientConfig:` + strings.Replace(strings.Replace(this.ClientConfig.String(), "ClientConfig", "ClientConfig", 1), `&`, ``, 1) + `,`, - `Secret:` + strings.Replace(fmt.Sprintf("%v", this.Secret), "LocalObjectReference", "v1.LocalObjectReference", 1) + `,`, - `SecretTransforms:` + repeatedStringForSecretTransforms + `,`, - `Parameters:` + strings.Replace(fmt.Sprintf("%v", this.Parameters), "RawExtension", "runtime.RawExtension", 1) + `,`, - `TLSSecret:` + strings.Replace(fmt.Sprintf("%v", this.TLSSecret), "LocalObjectReference", "v1.LocalObjectReference", 1) + `,`, - `}`, - }, "") - return s -} -func (this *AppReference) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&AppReference{`, - `Namespace:` + fmt.Sprintf("%v", this.Namespace) + `,`, - `Name:` + fmt.Sprintf("%v", this.Name) + `,`, - `Parameters:` + strings.Replace(fmt.Sprintf("%v", this.Parameters), "RawExtension", "runtime.RawExtension", 1) + `,`, - `}`, - }, "") - return s -} -func (this *ClientConfig) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ClientConfig{`, - `URL:` + valueToStringGenerated(this.URL) + `,`, - `Service:` + strings.Replace(this.Service.String(), "ServiceReference", "ServiceReference", 1) + `,`, - `InsecureSkipTLSVerify:` + fmt.Sprintf("%v", this.InsecureSkipTLSVerify) + `,`, - `CABundle:` + valueToStringGenerated(this.CABundle) + `,`, - `ServerName:` + fmt.Sprintf("%v", this.ServerName) + `,`, - `}`, - }, "") - return s -} -func (this *ObjectReference) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ObjectReference{`, - `Namespace:` + fmt.Sprintf("%v", this.Namespace) + `,`, - `Name:` + fmt.Sprintf("%v", this.Name) + `,`, - `}`, - }, "") - return s -} -func (this *Param) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&Param{`, - `Name:` + fmt.Sprintf("%v", this.Name) + `,`, - `Value:` + fmt.Sprintf("%v", this.Value) + `,`, - `}`, - }, "") - return s -} -func (this *RemoveKeyTransform) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&RemoveKeyTransform{`, - `Key:` + fmt.Sprintf("%v", this.Key) + `,`, - `}`, - }, "") - return s -} -func (this *RenameKeyTransform) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&RenameKeyTransform{`, - `From:` + fmt.Sprintf("%v", this.From) + `,`, - `To:` + fmt.Sprintf("%v", this.To) + `,`, - `}`, - }, "") - return s -} -func (this *SecretTransform) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&SecretTransform{`, - `RenameKey:` + strings.Replace(this.RenameKey.String(), "RenameKeyTransform", "RenameKeyTransform", 1) + `,`, - `AddKey:` + strings.Replace(this.AddKey.String(), "AddKeyTransform", "AddKeyTransform", 1) + `,`, - `AddKeysFrom:` + strings.Replace(this.AddKeysFrom.String(), "AddKeysFromTransform", "AddKeysFromTransform", 1) + `,`, - `RemoveKey:` + strings.Replace(this.RemoveKey.String(), "RemoveKeyTransform", "RemoveKeyTransform", 1) + `,`, - `}`, - }, "") - return s -} -func (this *ServiceReference) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ServiceReference{`, - `Scheme:` + fmt.Sprintf("%v", this.Scheme) + `,`, - `Namespace:` + fmt.Sprintf("%v", this.Namespace) + `,`, - `Name:` + fmt.Sprintf("%v", this.Name) + `,`, - `Port:` + fmt.Sprintf("%v", this.Port) + `,`, - `Path:` + fmt.Sprintf("%v", this.Path) + `,`, - `Query:` + fmt.Sprintf("%v", this.Query) + `,`, - `}`, - }, "") - return s -} -func (this *StashAddon) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&StashAddon{`, - `Stash:` + strings.Replace(strings.Replace(this.Stash.String(), "StashAddonSpec", "StashAddonSpec", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *StashAddonSpec) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&StashAddonSpec{`, - `Addon:` + strings.Replace(strings.Replace(this.Addon.String(), "StashTaskSpec", "StashTaskSpec", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *StashTaskSpec) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&StashTaskSpec{`, - `BackupTask:` + strings.Replace(strings.Replace(this.BackupTask.String(), "TaskRef", "TaskRef", 1), `&`, ``, 1) + `,`, - `RestoreTask:` + strings.Replace(strings.Replace(this.RestoreTask.String(), "TaskRef", "TaskRef", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *TaskRef) String() string { - if this == nil { - return "nil" - } - repeatedStringForParams := "[]Param{" - for _, f := range this.Params { - repeatedStringForParams += strings.Replace(strings.Replace(f.String(), "Param", "Param", 1), `&`, ``, 1) + "," - } - repeatedStringForParams += "}" - s := strings.Join([]string{`&TaskRef{`, - `Name:` + fmt.Sprintf("%v", this.Name) + `,`, - `Params:` + repeatedStringForParams + `,`, - `}`, - }, "") - return s -} -func valueToStringGenerated(v interface{}) string { - rv := reflect.ValueOf(v) - if rv.IsNil() { - return "nil" - } - pv := reflect.Indirect(rv).Interface() - return fmt.Sprintf("*%v", pv) -} -func (m *AddKeyTransform) 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: AddKeyTransform: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: AddKeyTransform: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Key", 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.Key = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Value = append(m.Value[:0], dAtA[iNdEx:postIndex]...) - if m.Value == nil { - m.Value = []byte{} - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field StringValue", 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 - } - s := string(dAtA[iNdEx:postIndex]) - m.StringValue = &s - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *AddKeysFromTransform) 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: AddKeysFromTransform: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: AddKeysFromTransform: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SecretRef", 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.SecretRef == nil { - m.SecretRef = &v1.LocalObjectReference{} - } - if err := m.SecretRef.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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *AppBinding) 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: AppBinding: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: AppBinding: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", 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.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Spec", 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.Spec.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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *AppBindingList) 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: AppBindingList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: AppBindingList: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", 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.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Items", 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 - } - m.Items = append(m.Items, AppBinding{}) - if err := m.Items[len(m.Items)-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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *AppBindingSpec) 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: AppBindingSpec: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: AppBindingSpec: 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 = AppType(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Version", 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.Version = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClientConfig", 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.ClientConfig.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Secret", 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.Secret == nil { - m.Secret = &v1.LocalObjectReference{} - } - if err := m.Secret.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SecretTransforms", 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 - } - m.SecretTransforms = append(m.SecretTransforms, SecretTransform{}) - if err := m.SecretTransforms[len(m.SecretTransforms)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Parameters", 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.Parameters == nil { - m.Parameters = &runtime.RawExtension{} - } - if err := m.Parameters.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TLSSecret", 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.TLSSecret == nil { - m.TLSSecret = &v1.LocalObjectReference{} - } - if err := m.TLSSecret.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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *AppReference) 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: AppReference: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: AppReference: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Namespace", 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.Namespace = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", 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.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Parameters", 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.Parameters == nil { - m.Parameters = &runtime.RawExtension{} - } - if err := m.Parameters.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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ClientConfig) 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: ClientConfig: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ClientConfig: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field URL", 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 - } - s := string(dAtA[iNdEx:postIndex]) - m.URL = &s - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Service", 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.Service == nil { - m.Service = &ServiceReference{} - } - if err := m.Service.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field InsecureSkipTLSVerify", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.InsecureSkipTLSVerify = bool(v != 0) - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CABundle", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.CABundle = append(m.CABundle[:0], dAtA[iNdEx:postIndex]...) - if m.CABundle == nil { - m.CABundle = []byte{} - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ServerName", 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.ServerName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ObjectReference) 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: ObjectReference: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ObjectReference: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Namespace", 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.Namespace = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", 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.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Param) 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: Param: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Param: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", 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.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Value", 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.Value = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RemoveKeyTransform) 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: RemoveKeyTransform: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RemoveKeyTransform: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Key", 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.Key = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RenameKeyTransform) 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: RenameKeyTransform: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RenameKeyTransform: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field From", 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.From = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field To", 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.To = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *SecretTransform) 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: SecretTransform: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SecretTransform: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RenameKey", 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.RenameKey == nil { - m.RenameKey = &RenameKeyTransform{} - } - if err := m.RenameKey.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AddKey", 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.AddKey == nil { - m.AddKey = &AddKeyTransform{} - } - if err := m.AddKey.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AddKeysFrom", 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.AddKeysFrom == nil { - m.AddKeysFrom = &AddKeysFromTransform{} - } - if err := m.AddKeysFrom.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RemoveKey", 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.RemoveKey == nil { - m.RemoveKey = &RemoveKeyTransform{} - } - if err := m.RemoveKey.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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ServiceReference) 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: ServiceReference: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ServiceReference: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Scheme", 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.Scheme = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Namespace", 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.Namespace = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", 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.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Port", wireType) - } - m.Port = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Port |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Path", 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.Path = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Query", 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.Query = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *StashAddon) 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: StashAddon: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: StashAddon: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Stash", 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.Stash.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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *StashAddonSpec) 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: StashAddonSpec: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: StashAddonSpec: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Addon", 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.Addon.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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *StashTaskSpec) 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: StashTaskSpec: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: StashTaskSpec: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field BackupTask", 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.BackupTask.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RestoreTask", 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.RestoreTask.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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *TaskRef) 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: TaskRef: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: TaskRef: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", 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.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Params", 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 - } - m.Params = append(m.Params, Param{}) - if err := m.Params[len(m.Params)-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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipGenerated(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - depth := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - case 1: - iNdEx += 8 - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthGenerated - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupGenerated - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthGenerated - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupGenerated = fmt.Errorf("proto: unexpected end of group") -) diff --git a/vendor/kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1/generated.proto b/vendor/kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1/generated.proto index 977433aa2..7a34e6e1d 100644 --- a/vendor/kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1/generated.proto +++ b/vendor/kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1/generated.proto @@ -32,9 +32,13 @@ option go_package = "kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1"; // AddKeyTransform specifies that Service Catalog should add an // additional entry to the Secret associated with the ServiceBinding. // For example, given the following AddKeyTransform: -// {"key": "CONNECTION_POOL_SIZE", "stringValue": "10"} +// +// {"key": "CONNECTION_POOL_SIZE", "stringValue": "10"} +// // the following entry will appear in the Secret: -// "CONNECTION_POOL_SIZE": "10" +// +// "CONNECTION_POOL_SIZE": "10" +// // Note that this transform should only be used to add non-sensitive // (non-secret) values. To add sensitive information, the // AddKeysFromTransform should be used instead. @@ -55,7 +59,9 @@ message AddKeyTransform { // AddKeysFromTransform specifies that Service Catalog should merge // an existing secret into the Secret associated with the ServiceBinding. // For example, given the following AddKeysFromTransform: -// {"secretRef": {"namespace": "foo", "name": "bar"}} +// +// {"secretRef": {"namespace": "foo", "name": "bar"}} +// // the entries of the Secret "bar" from Namespace "foo" will be merged into // the credentials Secret. message AddKeysFromTransform { @@ -88,21 +94,25 @@ message AppBindingSpec { // +optional optional string type = 1; + // Reference to underlying application + // +optional + optional TypedObjectReference appRef = 2; + // Version used to facilitate programmatic handling of application. // +optional - optional string version = 2; + optional string version = 3; // ClientConfig defines how to communicate with the app. // Required - optional ClientConfig clientConfig = 3; + optional ClientConfig clientConfig = 4; // Secret is the name of the secret to create in the AppBinding's // namespace that will hold the credentials associated with the AppBinding. - optional k8s.io.api.core.v1.LocalObjectReference secret = 4; + optional k8s.io.api.core.v1.LocalObjectReference secret = 5; // List of transformations that should be applied to the credentials // associated with the ServiceBinding before they are inserted into the Secret. - repeated SecretTransform secretTransforms = 5; + repeated SecretTransform secretTransforms = 6; // Parameters is a set of the parameters to be used to connect to the // app. The inline YAML/JSON payload to be translated into equivalent @@ -116,11 +126,11 @@ message AppBindingSpec { // +optional // +kubebuilder:validation:EmbeddedResource // +kubebuilder:pruning:PreserveUnknownFields - optional k8s.io.apimachinery.pkg.runtime.RawExtension parameters = 6; + optional k8s.io.apimachinery.pkg.runtime.RawExtension parameters = 7; // TLSSecret is the name of the secret that will hold // the client certificate and private key associated with the AppBinding. - optional k8s.io.api.core.v1.LocalObjectReference tlsSecret = 7; + optional k8s.io.api.core.v1.LocalObjectReference tlsSecret = 8; } message AppReference { @@ -219,11 +229,16 @@ message RemoveKeyTransform { // from the broker should be renamed and stored under a different key // in the Secret. // For example, given the following credentials entry: -// "USERNAME": "johndoe" +// +// "USERNAME": "johndoe" +// // and the following RenameKeyTransform: -// {"from": "USERNAME", "to": "DB_USER"} +// +// {"from": "USERNAME", "to": "DB_USER"} +// // the following entry will appear in the Secret: -// "DB_USER": "johndoe" +// +// "DB_USER": "johndoe" message RenameKeyTransform { // The name of the key to rename optional string from = 1; @@ -316,3 +331,18 @@ message TaskRef { repeated Param params = 2; } +message TypedObjectReference { + optional string apiGroup = 1; + + optional string kind = 2; + + // Namespace of the referent. + // More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ + // +optional + optional string namespace = 3; + + // Name of the referent. + // More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + optional string name = 4; +} + diff --git a/vendor/kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1/openapi_generated.go b/vendor/kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1/openapi_generated.go index 5f7012887..51fa4caa9 100644 --- a/vendor/kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1/openapi_generated.go +++ b/vendor/kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1/openapi_generated.go @@ -24,6 +24,8 @@ limitations under the License. package v1alpha1 import ( + apiv1 "kmodules.xyz/client-go/api/v1" + resource "k8s.io/apimachinery/pkg/api/resource" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" intstr "k8s.io/apimachinery/pkg/util/intstr" @@ -326,6 +328,21 @@ 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.CertificatePrivateKey": schema_kmodulesxyz_client_go_api_v1_CertificatePrivateKey(ref), + "kmodules.xyz/client-go/api/v1.CertificateSpec": schema_kmodulesxyz_client_go_api_v1_CertificateSpec(ref), + "kmodules.xyz/client-go/api/v1.ClusterMetadata": schema_kmodulesxyz_client_go_api_v1_ClusterMetadata(ref), + "kmodules.xyz/client-go/api/v1.Condition": schema_kmodulesxyz_client_go_api_v1_Condition(ref), + "kmodules.xyz/client-go/api/v1.HealthCheckSpec": schema_kmodulesxyz_client_go_api_v1_HealthCheckSpec(ref), + "kmodules.xyz/client-go/api/v1.ObjectID": schema_kmodulesxyz_client_go_api_v1_ObjectID(ref), + "kmodules.xyz/client-go/api/v1.ObjectInfo": schema_kmodulesxyz_client_go_api_v1_ObjectInfo(ref), + "kmodules.xyz/client-go/api/v1.ObjectReference": schema_kmodulesxyz_client_go_api_v1_ObjectReference(ref), + "kmodules.xyz/client-go/api/v1.ReadonlyHealthCheckSpec": schema_kmodulesxyz_client_go_api_v1_ReadonlyHealthCheckSpec(ref), + "kmodules.xyz/client-go/api/v1.ResourceID": schema_kmodulesxyz_client_go_api_v1_ResourceID(ref), + "kmodules.xyz/client-go/api/v1.TLSConfig": schema_kmodulesxyz_client_go_api_v1_TLSConfig(ref), + "kmodules.xyz/client-go/api/v1.TimeOfDay": schema_kmodulesxyz_client_go_api_v1_TimeOfDay(ref), + "kmodules.xyz/client-go/api/v1.TypedObjectReference": schema_kmodulesxyz_client_go_api_v1_TypedObjectReference(ref), + "kmodules.xyz/client-go/api/v1.X509Subject": schema_kmodulesxyz_client_go_api_v1_X509Subject(ref), + "kmodules.xyz/client-go/api/v1.stringSetMerger": schema_kmodulesxyz_client_go_api_v1_stringSetMerger(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), @@ -16148,166 +16165,851 @@ func schema_k8sio_apimachinery_pkg_version_Info(ref common.ReferenceCallback) co } } -func schema_custom_resources_apis_appcatalog_v1alpha1_AddKeyTransform(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_kmodulesxyz_client_go_api_v1_CertificatePrivateKey(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "AddKeyTransform specifies that Service Catalog should add an additional entry to the Secret associated with the ServiceBinding. For example, given the following AddKeyTransform:\n\n\t{\"key\": \"CONNECTION_POOL_SIZE\", \"stringValue\": \"10\"}\n\nthe following entry will appear in the Secret:\n\n\t\"CONNECTION_POOL_SIZE\": \"10\"\n\nNote that this transform should only be used to add non-sensitive (non-secret) values. To add sensitive information, the AddKeysFromTransform should be used instead.", + Description: "CertificatePrivateKey contains configuration options for private keys used by the Certificate controller. This allows control of how private keys are rotated.", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "key": { + "encoding": { SchemaProps: spec.SchemaProps{ - Description: "The name of the key to add", - Default: "", + Description: "The private key cryptography standards (PKCS) encoding for this certificate's private key to be encoded in. If provided, allowed values are \"pkcs1\" and \"pkcs8\" standing for PKCS#1 and PKCS#8, respectively. Defaults to PKCS#1 if not specified. See here for the difference between the formats: https://stackoverflow.com/a/48960291", Type: []string{"string"}, Format: "", }, }, - "value": { + }, + }, + }, + } +} + +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: "The binary value (possibly non-string) to add to the Secret under the specified key. If both value and stringValue are specified, then value is ignored and stringValue is stored.", + Description: "Alias represents the identifier of the certificate.", + Default: "", Type: []string{"string"}, - Format: "byte", + Format: "", }, }, - "stringValue": { + "issuerRef": { SchemaProps: spec.SchemaProps{ - Description: "The string (non-binary) value to add to the Secret under the specified key.", + Description: "IssuerRef is a reference to a Certificate Issuer.", + Ref: ref("k8s.io/api/core/v1.TypedLocalObjectReference"), + }, + }, + "secretName": { + SchemaProps: spec.SchemaProps{ + Description: "Specifies the k8s secret name that holds the certificates. Default to --cert.", 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{ + Default: "", + 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{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "uris": { + SchemaProps: spec.SchemaProps{ + Description: "URIs is a list of URI subjectAltNames to be set on the Certificate.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "emailAddresses": { + SchemaProps: spec.SchemaProps{ + Description: "EmailAddresses is a list of email subjectAltNames to be set on the Certificate.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "privateKey": { + SchemaProps: spec.SchemaProps{ + Description: "Options to control private keys used for the Certificate.", + Ref: ref("kmodules.xyz/client-go/api/v1.CertificatePrivateKey"), + }, + }, }, - Required: []string{"key"}, + Required: []string{"alias"}, }, }, + Dependencies: []string{ + "k8s.io/api/core/v1.TypedLocalObjectReference", "k8s.io/apimachinery/pkg/apis/meta/v1.Duration", "kmodules.xyz/client-go/api/v1.CertificatePrivateKey", "kmodules.xyz/client-go/api/v1.X509Subject"}, } } -func schema_custom_resources_apis_appcatalog_v1alpha1_AddKeysFromTransform(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_kmodulesxyz_client_go_api_v1_ClusterMetadata(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "AddKeysFromTransform specifies that Service Catalog should merge an existing secret into the Secret associated with the ServiceBinding. For example, given the following AddKeysFromTransform:\n\n\t{\"secretRef\": {\"namespace\": \"foo\", \"name\": \"bar\"}}\n\nthe entries of the Secret \"bar\" from Namespace \"foo\" will be merged into the credentials Secret.", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "secretRef": { + "uid": { SchemaProps: spec.SchemaProps{ - Description: "The reference to the Secret that should be merged into the credentials Secret.", - Ref: ref("k8s.io/api/core/v1.LocalObjectReference"), + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "name": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "displayName": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "provider": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", }, }, }, + Required: []string{"uid"}, }, }, - Dependencies: []string{ - "k8s.io/api/core/v1.LocalObjectReference"}, } } -func schema_custom_resources_apis_appcatalog_v1alpha1_AppBinding(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_kmodulesxyz_client_go_api_v1_Condition(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { + "type": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Description: "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 useful (see .node.status.conditions), the ability to deconflict is important.", + Default: "", Type: []string{"string"}, Format: "", }, }, - "apiVersion": { + "status": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Description: "Status of the condition, one of True, False, Unknown.", + Default: "", Type: []string{"string"}, Format: "", }, }, - "metadata": { + "observedGeneration": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Description: "If set, this represents the .metadata.generation that the condition was set based upon. For instance, if .metadata.generation is currently 12, but the .status.condition[x].observedGeneration is 9, the condition is out of date with respect to the current state of the instance.", + Type: []string{"integer"}, + Format: "int64", }, }, - "spec": { + "lastTransitionTime": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1.AppBindingSpec"), + Description: "Last time the condition transitioned from one status to another. This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable.", + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), + }, + }, + "reason": { + SchemaProps: spec.SchemaProps{ + Description: "The reason for the condition's last transition in CamelCase. The specific API may choose whether or not this field is considered a guaranteed API. This field may not be empty.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "message": { + SchemaProps: spec.SchemaProps{ + Description: "A human readable message indicating details about the transition. This field may be empty.", + Default: "", + Type: []string{"string"}, + Format: "", }, }, }, + Required: []string{"type", "status", "lastTransitionTime", "reason", "message"}, }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta", "kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1.AppBindingSpec"}, + "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, } } -func schema_custom_resources_apis_appcatalog_v1alpha1_AppBindingList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_kmodulesxyz_client_go_api_v1_HealthCheckSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "AppBindingList is a list of Apps", + Description: "HealthCheckSpec defines attributes of the health check", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { + "periodSeconds": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - Type: []string{"string"}, - Format: "", + Description: "How often (in seconds) to perform the health check. Default to 10 seconds. Minimum value is 1.", + Type: []string{"integer"}, + Format: "int32", }, }, - "apiVersion": { + "timeoutSeconds": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - Type: []string{"string"}, + Description: "Number of seconds after which the probe times out. Defaults to 10 second. Minimum value is 1. It should be less than the periodSeconds.", + Type: []string{"integer"}, + Format: "int32", + }, + }, + "failureThreshold": { + SchemaProps: spec.SchemaProps{ + Description: "Minimum consecutive failures for the health check to be considered failed after having succeeded. Defaults to 1. Minimum value is 1.", + Type: []string{"integer"}, + Format: "int32", + }, + }, + "disableWriteCheck": { + SchemaProps: spec.SchemaProps{ + Description: "Whether to disable write check on database. Defaults to false.", + Type: []string{"boolean"}, Format: "", }, }, - "metadata": { + }, + }, + }, + } +} + +func schema_kmodulesxyz_client_go_api_v1_ObjectID(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "group": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "kind": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "namespace": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "name": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + } +} + +func schema_kmodulesxyz_client_go_api_v1_ObjectInfo(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "resource": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Ref: ref("kmodules.xyz/client-go/api/v1.ResourceID"), }, }, - "items": { + "ref": { SchemaProps: spec.SchemaProps{ - Description: "Items is a list of AppBinding CRD objects", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1.AppBinding"), - }, - }, - }, + Default: map[string]interface{}{}, + Ref: ref("kmodules.xyz/client-go/api/v1.ObjectReference"), }, }, }, + Required: []string{"resource", "ref"}, }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta", "kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1.AppBinding"}, + "kmodules.xyz/client-go/api/v1.ObjectReference", "kmodules.xyz/client-go/api/v1.ResourceID"}, } } -func schema_custom_resources_apis_appcatalog_v1alpha1_AppBindingSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_kmodulesxyz_client_go_api_v1_ObjectReference(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "AppBindingSpec is the spec for app", + Description: "ObjectReference contains enough information to let you inspect or modify the referred object.", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "type": { + "namespace": { SchemaProps: spec.SchemaProps{ - Description: "Type used to facilitate programmatic handling of application.", + Description: "Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/", + Type: []string{"string"}, + Format: "", + }, + }, + "name": { + SchemaProps: spec.SchemaProps{ + Description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + Required: []string{"name"}, + }, + }, + } +} + +func schema_kmodulesxyz_client_go_api_v1_ReadonlyHealthCheckSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "ReadonlyHealthCheckSpec defines attributes of the health check using only read-only checks", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "periodSeconds": { + SchemaProps: spec.SchemaProps{ + Description: "How often (in seconds) to perform the health check. Default to 10 seconds. Minimum value is 1.", + Type: []string{"integer"}, + Format: "int32", + }, + }, + "timeoutSeconds": { + SchemaProps: spec.SchemaProps{ + Description: "Number of seconds after which the probe times out. Defaults to 10 second. Minimum value is 1. It should be less than the periodSeconds.", + Type: []string{"integer"}, + Format: "int32", + }, + }, + "failureThreshold": { + SchemaProps: spec.SchemaProps{ + Description: "Minimum consecutive failures for the health check to be considered failed after having succeeded. Defaults to 1. Minimum value is 1.", + Type: []string{"integer"}, + Format: "int32", + }, + }, + }, + }, + }, + } +} + +func schema_kmodulesxyz_client_go_api_v1_ResourceID(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "ResourceID identifies a resource", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "group": { + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "version": { + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "name": { + SchemaProps: spec.SchemaProps{ + Description: "Name is the plural name of the resource to serve. It must match the name of the CustomResourceDefinition-registration too: plural.group and it must be all lowercase.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is the serialized kind of the resource. It is normally CamelCase and singular.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "scope": { + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + Required: []string{"group", "version", "name", "kind", "scope"}, + }, + }, + } +} + +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{ + Default: map[string]interface{}{}, + 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_TimeOfDay(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "TimeOfDay is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers.", + Type: apiv1.TimeOfDay{}.OpenAPISchemaType(), + Format: apiv1.TimeOfDay{}.OpenAPISchemaFormat(), + }, + }, + } +} + +func schema_kmodulesxyz_client_go_api_v1_TypedObjectReference(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "TypedObjectReference represents an typed namespaced object.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "apiGroup": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "kind": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "namespace": { + SchemaProps: spec.SchemaProps{ + Description: "Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/", + Type: []string{"string"}, + Format: "", + }, + }, + "name": { + SchemaProps: spec.SchemaProps{ + Description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + Default: "", Type: []string{"string"}, Format: "", }, }, + }, + Required: []string{"name"}, + }, + }, + } +} + +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{ + Default: "", + 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{ + Default: "", + 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{ + Default: "", + 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{ + Default: "", + 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{ + Default: "", + 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{ + Default: "", + 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{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "serialNumber": { + SchemaProps: spec.SchemaProps{ + Description: "Serial number to be used on the CertificateSpec.", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + } +} + +func schema_kmodulesxyz_client_go_api_v1_stringSetMerger(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + }, + }, + } +} + +func schema_custom_resources_apis_appcatalog_v1alpha1_AddKeyTransform(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "AddKeyTransform specifies that Service Catalog should add an additional entry to the Secret associated with the ServiceBinding. For example, given the following AddKeyTransform:\n\n\t{\"key\": \"CONNECTION_POOL_SIZE\", \"stringValue\": \"10\"}\n\nthe following entry will appear in the Secret:\n\n\t\"CONNECTION_POOL_SIZE\": \"10\"\n\nNote that this transform should only be used to add non-sensitive (non-secret) values. To add sensitive information, the AddKeysFromTransform should be used instead.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "key": { + SchemaProps: spec.SchemaProps{ + Description: "The name of the key to add", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "value": { + SchemaProps: spec.SchemaProps{ + Description: "The binary value (possibly non-string) to add to the Secret under the specified key. If both value and stringValue are specified, then value is ignored and stringValue is stored.", + Type: []string{"string"}, + Format: "byte", + }, + }, + "stringValue": { + SchemaProps: spec.SchemaProps{ + Description: "The string (non-binary) value to add to the Secret under the specified key.", + Type: []string{"string"}, + Format: "", + }, + }, + }, + Required: []string{"key"}, + }, + }, + } +} + +func schema_custom_resources_apis_appcatalog_v1alpha1_AddKeysFromTransform(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "AddKeysFromTransform specifies that Service Catalog should merge an existing secret into the Secret associated with the ServiceBinding. For example, given the following AddKeysFromTransform:\n\n\t{\"secretRef\": {\"namespace\": \"foo\", \"name\": \"bar\"}}\n\nthe entries of the Secret \"bar\" from Namespace \"foo\" will be merged into the credentials Secret.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "secretRef": { + SchemaProps: spec.SchemaProps{ + Description: "The reference to the Secret that should be merged into the credentials Secret.", + Ref: ref("k8s.io/api/core/v1.LocalObjectReference"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "k8s.io/api/core/v1.LocalObjectReference"}, + } +} + +func schema_custom_resources_apis_appcatalog_v1alpha1_AppBinding(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", + }, + }, + "apiVersion": { + SchemaProps: spec.SchemaProps{ + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + }, + }, + "spec": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1.AppBindingSpec"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta", "kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1.AppBindingSpec"}, + } +} + +func schema_custom_resources_apis_appcatalog_v1alpha1_AppBindingList(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "AppBindingList is a list of Apps", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", + }, + }, + "apiVersion": { + SchemaProps: spec.SchemaProps{ + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + }, + }, + "items": { + SchemaProps: spec.SchemaProps{ + Description: "Items is a list of AppBinding CRD objects", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1.AppBinding"), + }, + }, + }, + }, + }, + }, + }, + }, + Dependencies: []string{ + "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta", "kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1.AppBinding"}, + } +} + +func schema_custom_resources_apis_appcatalog_v1alpha1_AppBindingSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "AppBindingSpec is the spec for app", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "type": { + SchemaProps: spec.SchemaProps{ + Description: "Type used to facilitate programmatic handling of application.", + Type: []string{"string"}, + Format: "", + }, + }, + "appRef": { + SchemaProps: spec.SchemaProps{ + Description: "Reference to underlying application", + Ref: ref("kmodules.xyz/client-go/api/v1.TypedObjectReference"), + }, + }, "version": { SchemaProps: spec.SchemaProps{ Description: "Version used to facilitate programmatic handling of application.", @@ -16359,7 +17061,7 @@ func schema_custom_resources_apis_appcatalog_v1alpha1_AppBindingSpec(ref common. }, }, Dependencies: []string{ - "k8s.io/api/core/v1.LocalObjectReference", "k8s.io/apimachinery/pkg/runtime.RawExtension", "kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1.ClientConfig", "kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1.SecretTransform"}, + "k8s.io/api/core/v1.LocalObjectReference", "k8s.io/apimachinery/pkg/runtime.RawExtension", "kmodules.xyz/client-go/api/v1.TypedObjectReference", "kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1.ClientConfig", "kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1.SecretTransform"}, } } diff --git a/vendor/kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1/stash_types.go b/vendor/kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1/stash_types.go index 0d96ff822..2ea89fd2e 100644 --- a/vendor/kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1/stash_types.go +++ b/vendor/kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1/stash_types.go @@ -25,32 +25,32 @@ import ( type StashAddon struct { metav1.TypeMeta `json:",inline,omitempty"` - Stash StashAddonSpec `json:"stash,omitempty" protobuf:"bytes,1,opt,name=stash"` + Stash StashAddonSpec `json:"stash,omitempty"` } // StashAddonSpec is the spec for app type StashAddonSpec struct { - Addon StashTaskSpec `json:"addon,omitempty" protobuf:"bytes,1,opt,name=addon"` + Addon StashTaskSpec `json:"addon,omitempty"` } // StashTaskSpec is the spec for app type StashTaskSpec struct { // Backup task definition - BackupTask TaskRef `json:"backupTask" protobuf:"bytes,1,opt,name=backupTask"` + BackupTask TaskRef `json:"backupTask"` // Restore task definition - RestoreTask TaskRef `json:"restoreTask" protobuf:"bytes,2,opt,name=restoreTask"` + RestoreTask TaskRef `json:"restoreTask"` } type TaskRef struct { - Name string `json:"name" protobuf:"bytes,1,opt,name=name"` + Name string `json:"name"` // Params specifies a list of parameter to pass to the Task. Stash will use this parameters to resolve the task. // +optional - Params []Param `json:"params,omitempty" protobuf:"bytes,2,rep,name=params"` + Params []Param `json:"params,omitempty"` } // Param declares a value to use for the Param called Name. type Param struct { - Name string `json:"name" protobuf:"bytes,1,opt,name=name"` - Value string `json:"value" protobuf:"bytes,2,opt,name=value"` + Name string `json:"name"` + Value string `json:"value"` } diff --git a/vendor/kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1/zz_generated.deepcopy.go b/vendor/kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1/zz_generated.deepcopy.go index d01e31642..22b722ec4 100644 --- a/vendor/kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1/zz_generated.deepcopy.go +++ b/vendor/kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1/zz_generated.deepcopy.go @@ -22,6 +22,8 @@ limitations under the License. package v1alpha1 import ( + apiv1 "kmodules.xyz/client-go/api/v1" + v1 "k8s.io/api/core/v1" runtime "k8s.io/apimachinery/pkg/runtime" ) @@ -136,6 +138,11 @@ func (in *AppBindingList) DeepCopyObject() runtime.Object { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *AppBindingSpec) DeepCopyInto(out *AppBindingSpec) { *out = *in + if in.AppRef != nil { + in, out := &in.AppRef, &out.AppRef + *out = new(apiv1.TypedObjectReference) + **out = **in + } in.ClientConfig.DeepCopyInto(&out.ClientConfig) if in.Secret != nil { in, out := &in.Secret, &out.Secret diff --git a/vendor/kmodules.xyz/custom-resources/apis/auditor/v1alpha1/openapi_generated.go b/vendor/kmodules.xyz/custom-resources/apis/auditor/v1alpha1/openapi_generated.go index 1cac9c525..0e6d6a84a 100644 --- a/vendor/kmodules.xyz/custom-resources/apis/auditor/v1alpha1/openapi_generated.go +++ b/vendor/kmodules.xyz/custom-resources/apis/auditor/v1alpha1/openapi_generated.go @@ -24,6 +24,8 @@ limitations under the License. package v1alpha1 import ( + apiv1 "kmodules.xyz/client-go/api/v1" + resource "k8s.io/apimachinery/pkg/api/resource" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" intstr "k8s.io/apimachinery/pkg/util/intstr" @@ -326,6 +328,21 @@ 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.CertificatePrivateKey": schema_kmodulesxyz_client_go_api_v1_CertificatePrivateKey(ref), + "kmodules.xyz/client-go/api/v1.CertificateSpec": schema_kmodulesxyz_client_go_api_v1_CertificateSpec(ref), + "kmodules.xyz/client-go/api/v1.ClusterMetadata": schema_kmodulesxyz_client_go_api_v1_ClusterMetadata(ref), + "kmodules.xyz/client-go/api/v1.Condition": schema_kmodulesxyz_client_go_api_v1_Condition(ref), + "kmodules.xyz/client-go/api/v1.HealthCheckSpec": schema_kmodulesxyz_client_go_api_v1_HealthCheckSpec(ref), + "kmodules.xyz/client-go/api/v1.ObjectID": schema_kmodulesxyz_client_go_api_v1_ObjectID(ref), + "kmodules.xyz/client-go/api/v1.ObjectInfo": schema_kmodulesxyz_client_go_api_v1_ObjectInfo(ref), + "kmodules.xyz/client-go/api/v1.ObjectReference": schema_kmodulesxyz_client_go_api_v1_ObjectReference(ref), + "kmodules.xyz/client-go/api/v1.ReadonlyHealthCheckSpec": schema_kmodulesxyz_client_go_api_v1_ReadonlyHealthCheckSpec(ref), + "kmodules.xyz/client-go/api/v1.ResourceID": schema_kmodulesxyz_client_go_api_v1_ResourceID(ref), + "kmodules.xyz/client-go/api/v1.TLSConfig": schema_kmodulesxyz_client_go_api_v1_TLSConfig(ref), + "kmodules.xyz/client-go/api/v1.TimeOfDay": schema_kmodulesxyz_client_go_api_v1_TimeOfDay(ref), + "kmodules.xyz/client-go/api/v1.TypedObjectReference": schema_kmodulesxyz_client_go_api_v1_TypedObjectReference(ref), + "kmodules.xyz/client-go/api/v1.X509Subject": schema_kmodulesxyz_client_go_api_v1_X509Subject(ref), + "kmodules.xyz/client-go/api/v1.stringSetMerger": schema_kmodulesxyz_client_go_api_v1_stringSetMerger(ref), "kmodules.xyz/custom-resources/apis/auditor/v1alpha1.AuditRegistration": schema_custom_resources_apis_auditor_v1alpha1_AuditRegistration(ref), "kmodules.xyz/custom-resources/apis/auditor/v1alpha1.ControlPlaneInfo": schema_custom_resources_apis_auditor_v1alpha1_ControlPlaneInfo(ref), "kmodules.xyz/custom-resources/apis/auditor/v1alpha1.GroupResources": schema_custom_resources_apis_auditor_v1alpha1_GroupResources(ref), @@ -16140,6 +16157,685 @@ func schema_k8sio_apimachinery_pkg_version_Info(ref common.ReferenceCallback) co } } +func schema_kmodulesxyz_client_go_api_v1_CertificatePrivateKey(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "CertificatePrivateKey contains configuration options for private keys used by the Certificate controller. This allows control of how private keys are rotated.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "encoding": { + SchemaProps: spec.SchemaProps{ + Description: "The private key cryptography standards (PKCS) encoding for this certificate's private key to be encoded in. If provided, allowed values are \"pkcs1\" and \"pkcs8\" standing for PKCS#1 and PKCS#8, respectively. Defaults to PKCS#1 if not specified. See here for the difference between the formats: https://stackoverflow.com/a/48960291", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + } +} + +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.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "issuerRef": { + SchemaProps: spec.SchemaProps{ + Description: "IssuerRef is a reference to a Certificate Issuer.", + Ref: ref("k8s.io/api/core/v1.TypedLocalObjectReference"), + }, + }, + "secretName": { + SchemaProps: spec.SchemaProps{ + Description: "Specifies the k8s secret name that holds the certificates. Default to --cert.", + 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{ + Default: "", + 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{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "uris": { + SchemaProps: spec.SchemaProps{ + Description: "URIs is a list of URI subjectAltNames to be set on the Certificate.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "emailAddresses": { + SchemaProps: spec.SchemaProps{ + Description: "EmailAddresses is a list of email subjectAltNames to be set on the Certificate.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "privateKey": { + SchemaProps: spec.SchemaProps{ + Description: "Options to control private keys used for the Certificate.", + Ref: ref("kmodules.xyz/client-go/api/v1.CertificatePrivateKey"), + }, + }, + }, + Required: []string{"alias"}, + }, + }, + Dependencies: []string{ + "k8s.io/api/core/v1.TypedLocalObjectReference", "k8s.io/apimachinery/pkg/apis/meta/v1.Duration", "kmodules.xyz/client-go/api/v1.CertificatePrivateKey", "kmodules.xyz/client-go/api/v1.X509Subject"}, + } +} + +func schema_kmodulesxyz_client_go_api_v1_ClusterMetadata(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "uid": { + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "name": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "displayName": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "provider": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + }, + Required: []string{"uid"}, + }, + }, + } +} + +func schema_kmodulesxyz_client_go_api_v1_Condition(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "type": { + SchemaProps: spec.SchemaProps{ + Description: "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 useful (see .node.status.conditions), the ability to deconflict is important.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Description: "Status of the condition, one of True, False, Unknown.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "observedGeneration": { + SchemaProps: spec.SchemaProps{ + Description: "If set, this represents the .metadata.generation that the condition was set based upon. For instance, if .metadata.generation is currently 12, but the .status.condition[x].observedGeneration is 9, the condition is out of date with respect to the current state of the instance.", + Type: []string{"integer"}, + Format: "int64", + }, + }, + "lastTransitionTime": { + SchemaProps: spec.SchemaProps{ + Description: "Last time the condition transitioned from one status to another. This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable.", + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), + }, + }, + "reason": { + SchemaProps: spec.SchemaProps{ + Description: "The reason for the condition's last transition in CamelCase. The specific API may choose whether or not this field is considered a guaranteed API. This field may not be empty.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "message": { + SchemaProps: spec.SchemaProps{ + Description: "A human readable message indicating details about the transition. This field may be empty.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + Required: []string{"type", "status", "lastTransitionTime", "reason", "message"}, + }, + }, + Dependencies: []string{ + "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, + } +} + +func schema_kmodulesxyz_client_go_api_v1_HealthCheckSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "HealthCheckSpec defines attributes of the health check", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "periodSeconds": { + SchemaProps: spec.SchemaProps{ + Description: "How often (in seconds) to perform the health check. Default to 10 seconds. Minimum value is 1.", + Type: []string{"integer"}, + Format: "int32", + }, + }, + "timeoutSeconds": { + SchemaProps: spec.SchemaProps{ + Description: "Number of seconds after which the probe times out. Defaults to 10 second. Minimum value is 1. It should be less than the periodSeconds.", + Type: []string{"integer"}, + Format: "int32", + }, + }, + "failureThreshold": { + SchemaProps: spec.SchemaProps{ + Description: "Minimum consecutive failures for the health check to be considered failed after having succeeded. Defaults to 1. Minimum value is 1.", + Type: []string{"integer"}, + Format: "int32", + }, + }, + "disableWriteCheck": { + SchemaProps: spec.SchemaProps{ + Description: "Whether to disable write check on database. Defaults to false.", + Type: []string{"boolean"}, + Format: "", + }, + }, + }, + }, + }, + } +} + +func schema_kmodulesxyz_client_go_api_v1_ObjectID(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "group": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "kind": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "namespace": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "name": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + } +} + +func schema_kmodulesxyz_client_go_api_v1_ObjectInfo(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "resource": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("kmodules.xyz/client-go/api/v1.ResourceID"), + }, + }, + "ref": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("kmodules.xyz/client-go/api/v1.ObjectReference"), + }, + }, + }, + Required: []string{"resource", "ref"}, + }, + }, + Dependencies: []string{ + "kmodules.xyz/client-go/api/v1.ObjectReference", "kmodules.xyz/client-go/api/v1.ResourceID"}, + } +} + +func schema_kmodulesxyz_client_go_api_v1_ObjectReference(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "ObjectReference contains enough information to let you inspect or modify the referred object.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "namespace": { + SchemaProps: spec.SchemaProps{ + Description: "Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/", + Type: []string{"string"}, + Format: "", + }, + }, + "name": { + SchemaProps: spec.SchemaProps{ + Description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + Required: []string{"name"}, + }, + }, + } +} + +func schema_kmodulesxyz_client_go_api_v1_ReadonlyHealthCheckSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "ReadonlyHealthCheckSpec defines attributes of the health check using only read-only checks", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "periodSeconds": { + SchemaProps: spec.SchemaProps{ + Description: "How often (in seconds) to perform the health check. Default to 10 seconds. Minimum value is 1.", + Type: []string{"integer"}, + Format: "int32", + }, + }, + "timeoutSeconds": { + SchemaProps: spec.SchemaProps{ + Description: "Number of seconds after which the probe times out. Defaults to 10 second. Minimum value is 1. It should be less than the periodSeconds.", + Type: []string{"integer"}, + Format: "int32", + }, + }, + "failureThreshold": { + SchemaProps: spec.SchemaProps{ + Description: "Minimum consecutive failures for the health check to be considered failed after having succeeded. Defaults to 1. Minimum value is 1.", + Type: []string{"integer"}, + Format: "int32", + }, + }, + }, + }, + }, + } +} + +func schema_kmodulesxyz_client_go_api_v1_ResourceID(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "ResourceID identifies a resource", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "group": { + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "version": { + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "name": { + SchemaProps: spec.SchemaProps{ + Description: "Name is the plural name of the resource to serve. It must match the name of the CustomResourceDefinition-registration too: plural.group and it must be all lowercase.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is the serialized kind of the resource. It is normally CamelCase and singular.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "scope": { + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + Required: []string{"group", "version", "name", "kind", "scope"}, + }, + }, + } +} + +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{ + Default: map[string]interface{}{}, + 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_TimeOfDay(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "TimeOfDay is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers.", + Type: apiv1.TimeOfDay{}.OpenAPISchemaType(), + Format: apiv1.TimeOfDay{}.OpenAPISchemaFormat(), + }, + }, + } +} + +func schema_kmodulesxyz_client_go_api_v1_TypedObjectReference(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "TypedObjectReference represents an typed namespaced object.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "apiGroup": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "kind": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "namespace": { + SchemaProps: spec.SchemaProps{ + Description: "Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/", + Type: []string{"string"}, + Format: "", + }, + }, + "name": { + SchemaProps: spec.SchemaProps{ + Description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + Required: []string{"name"}, + }, + }, + } +} + +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{ + Default: "", + 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{ + Default: "", + 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{ + Default: "", + 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{ + Default: "", + 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{ + Default: "", + 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{ + Default: "", + 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{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "serialNumber": { + SchemaProps: spec.SchemaProps{ + Description: "Serial number to be used on the CertificateSpec.", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + } +} + +func schema_kmodulesxyz_client_go_api_v1_stringSetMerger(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + }, + }, + } +} + func schema_custom_resources_apis_auditor_v1alpha1_AuditRegistration(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ diff --git a/vendor/kmodules.xyz/custom-resources/apis/metrics/v1alpha1/generated.pb.go b/vendor/kmodules.xyz/custom-resources/apis/metrics/v1alpha1/generated.pb.go deleted file mode 100644 index 1679c3809..000000000 --- a/vendor/kmodules.xyz/custom-resources/apis/metrics/v1alpha1/generated.pb.go +++ /dev/null @@ -1,2981 +0,0 @@ -/* -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. -*/ - -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: kmodules.xyz/custom-resources/apis/metrics/v1alpha1/generated.proto - -package v1alpha1 - -import ( - encoding_binary "encoding/binary" - fmt "fmt" - io "io" - math "math" - math_bits "math/bits" - reflect "reflect" - strings "strings" - - proto "github.com/gogo/protobuf/proto" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package - -func (m *Field) Reset() { *m = Field{} } -func (*Field) ProtoMessage() {} -func (*Field) Descriptor() ([]byte, []int) { - return fileDescriptor_ef11ad1bbe6c7f42, []int{0} -} -func (m *Field) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Field) 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 *Field) XXX_Merge(src proto.Message) { - xxx_messageInfo_Field.Merge(m, src) -} -func (m *Field) XXX_Size() int { - return m.Size() -} -func (m *Field) XXX_DiscardUnknown() { - xxx_messageInfo_Field.DiscardUnknown(m) -} - -var xxx_messageInfo_Field proto.InternalMessageInfo - -func (m *Label) Reset() { *m = Label{} } -func (*Label) ProtoMessage() {} -func (*Label) Descriptor() ([]byte, []int) { - return fileDescriptor_ef11ad1bbe6c7f42, []int{1} -} -func (m *Label) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Label) 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 *Label) XXX_Merge(src proto.Message) { - xxx_messageInfo_Label.Merge(m, src) -} -func (m *Label) XXX_Size() int { - return m.Size() -} -func (m *Label) XXX_DiscardUnknown() { - xxx_messageInfo_Label.DiscardUnknown(m) -} - -var xxx_messageInfo_Label proto.InternalMessageInfo - -func (m *MetricValue) Reset() { *m = MetricValue{} } -func (*MetricValue) ProtoMessage() {} -func (*MetricValue) Descriptor() ([]byte, []int) { - return fileDescriptor_ef11ad1bbe6c7f42, []int{2} -} -func (m *MetricValue) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MetricValue) 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 *MetricValue) XXX_Merge(src proto.Message) { - xxx_messageInfo_MetricValue.Merge(m, src) -} -func (m *MetricValue) XXX_Size() int { - return m.Size() -} -func (m *MetricValue) XXX_DiscardUnknown() { - xxx_messageInfo_MetricValue.DiscardUnknown(m) -} - -var xxx_messageInfo_MetricValue proto.InternalMessageInfo - -func (m *Metrics) Reset() { *m = Metrics{} } -func (*Metrics) ProtoMessage() {} -func (*Metrics) Descriptor() ([]byte, []int) { - return fileDescriptor_ef11ad1bbe6c7f42, []int{3} -} -func (m *Metrics) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Metrics) 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 *Metrics) XXX_Merge(src proto.Message) { - xxx_messageInfo_Metrics.Merge(m, src) -} -func (m *Metrics) XXX_Size() int { - return m.Size() -} -func (m *Metrics) XXX_DiscardUnknown() { - xxx_messageInfo_Metrics.DiscardUnknown(m) -} - -var xxx_messageInfo_Metrics proto.InternalMessageInfo - -func (m *MetricsConfiguration) Reset() { *m = MetricsConfiguration{} } -func (*MetricsConfiguration) ProtoMessage() {} -func (*MetricsConfiguration) Descriptor() ([]byte, []int) { - return fileDescriptor_ef11ad1bbe6c7f42, []int{4} -} -func (m *MetricsConfiguration) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MetricsConfiguration) 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 *MetricsConfiguration) XXX_Merge(src proto.Message) { - xxx_messageInfo_MetricsConfiguration.Merge(m, src) -} -func (m *MetricsConfiguration) XXX_Size() int { - return m.Size() -} -func (m *MetricsConfiguration) XXX_DiscardUnknown() { - xxx_messageInfo_MetricsConfiguration.DiscardUnknown(m) -} - -var xxx_messageInfo_MetricsConfiguration proto.InternalMessageInfo - -func (m *MetricsConfigurationList) Reset() { *m = MetricsConfigurationList{} } -func (*MetricsConfigurationList) ProtoMessage() {} -func (*MetricsConfigurationList) Descriptor() ([]byte, []int) { - return fileDescriptor_ef11ad1bbe6c7f42, []int{5} -} -func (m *MetricsConfigurationList) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MetricsConfigurationList) 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 *MetricsConfigurationList) XXX_Merge(src proto.Message) { - xxx_messageInfo_MetricsConfigurationList.Merge(m, src) -} -func (m *MetricsConfigurationList) XXX_Size() int { - return m.Size() -} -func (m *MetricsConfigurationList) XXX_DiscardUnknown() { - xxx_messageInfo_MetricsConfigurationList.DiscardUnknown(m) -} - -var xxx_messageInfo_MetricsConfigurationList proto.InternalMessageInfo - -func (m *MetricsConfigurationSpec) Reset() { *m = MetricsConfigurationSpec{} } -func (*MetricsConfigurationSpec) ProtoMessage() {} -func (*MetricsConfigurationSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_ef11ad1bbe6c7f42, []int{6} -} -func (m *MetricsConfigurationSpec) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MetricsConfigurationSpec) 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 *MetricsConfigurationSpec) XXX_Merge(src proto.Message) { - xxx_messageInfo_MetricsConfigurationSpec.Merge(m, src) -} -func (m *MetricsConfigurationSpec) XXX_Size() int { - return m.Size() -} -func (m *MetricsConfigurationSpec) XXX_DiscardUnknown() { - xxx_messageInfo_MetricsConfigurationSpec.DiscardUnknown(m) -} - -var xxx_messageInfo_MetricsConfigurationSpec proto.InternalMessageInfo - -func (m *Parameter) Reset() { *m = Parameter{} } -func (*Parameter) ProtoMessage() {} -func (*Parameter) Descriptor() ([]byte, []int) { - return fileDescriptor_ef11ad1bbe6c7f42, []int{7} -} -func (m *Parameter) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Parameter) 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 *Parameter) XXX_Merge(src proto.Message) { - xxx_messageInfo_Parameter.Merge(m, src) -} -func (m *Parameter) XXX_Size() int { - return m.Size() -} -func (m *Parameter) XXX_DiscardUnknown() { - xxx_messageInfo_Parameter.DiscardUnknown(m) -} - -var xxx_messageInfo_Parameter proto.InternalMessageInfo - -func (m *State) Reset() { *m = State{} } -func (*State) ProtoMessage() {} -func (*State) Descriptor() ([]byte, []int) { - return fileDescriptor_ef11ad1bbe6c7f42, []int{8} -} -func (m *State) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *State) 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 *State) XXX_Merge(src proto.Message) { - xxx_messageInfo_State.Merge(m, src) -} -func (m *State) XXX_Size() int { - return m.Size() -} -func (m *State) XXX_DiscardUnknown() { - xxx_messageInfo_State.DiscardUnknown(m) -} - -var xxx_messageInfo_State proto.InternalMessageInfo - -func (m *StateValues) Reset() { *m = StateValues{} } -func (*StateValues) ProtoMessage() {} -func (*StateValues) Descriptor() ([]byte, []int) { - return fileDescriptor_ef11ad1bbe6c7f42, []int{9} -} -func (m *StateValues) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *StateValues) 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 *StateValues) XXX_Merge(src proto.Message) { - xxx_messageInfo_StateValues.Merge(m, src) -} -func (m *StateValues) XXX_Size() int { - return m.Size() -} -func (m *StateValues) XXX_DiscardUnknown() { - xxx_messageInfo_StateValues.DiscardUnknown(m) -} - -var xxx_messageInfo_StateValues proto.InternalMessageInfo - -func (m *TargetRef) Reset() { *m = TargetRef{} } -func (*TargetRef) ProtoMessage() {} -func (*TargetRef) Descriptor() ([]byte, []int) { - return fileDescriptor_ef11ad1bbe6c7f42, []int{10} -} -func (m *TargetRef) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *TargetRef) 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 *TargetRef) XXX_Merge(src proto.Message) { - xxx_messageInfo_TargetRef.Merge(m, src) -} -func (m *TargetRef) XXX_Size() int { - return m.Size() -} -func (m *TargetRef) XXX_DiscardUnknown() { - xxx_messageInfo_TargetRef.DiscardUnknown(m) -} - -var xxx_messageInfo_TargetRef proto.InternalMessageInfo - -func init() { - proto.RegisterType((*Field)(nil), "kmodules.xyz.custom_resources.apis.metrics.v1alpha1.Field") - proto.RegisterType((*Label)(nil), "kmodules.xyz.custom_resources.apis.metrics.v1alpha1.Label") - proto.RegisterType((*MetricValue)(nil), "kmodules.xyz.custom_resources.apis.metrics.v1alpha1.MetricValue") - proto.RegisterType((*Metrics)(nil), "kmodules.xyz.custom_resources.apis.metrics.v1alpha1.Metrics") - proto.RegisterType((*MetricsConfiguration)(nil), "kmodules.xyz.custom_resources.apis.metrics.v1alpha1.MetricsConfiguration") - proto.RegisterType((*MetricsConfigurationList)(nil), "kmodules.xyz.custom_resources.apis.metrics.v1alpha1.MetricsConfigurationList") - proto.RegisterType((*MetricsConfigurationSpec)(nil), "kmodules.xyz.custom_resources.apis.metrics.v1alpha1.MetricsConfigurationSpec") - proto.RegisterType((*Parameter)(nil), "kmodules.xyz.custom_resources.apis.metrics.v1alpha1.Parameter") - proto.RegisterType((*State)(nil), "kmodules.xyz.custom_resources.apis.metrics.v1alpha1.State") - proto.RegisterType((*StateValues)(nil), "kmodules.xyz.custom_resources.apis.metrics.v1alpha1.StateValues") - proto.RegisterType((*TargetRef)(nil), "kmodules.xyz.custom_resources.apis.metrics.v1alpha1.TargetRef") -} - -func init() { - proto.RegisterFile("kmodules.xyz/custom-resources/apis/metrics/v1alpha1/generated.proto", fileDescriptor_ef11ad1bbe6c7f42) -} - -var fileDescriptor_ef11ad1bbe6c7f42 = []byte{ - // 955 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x56, 0xcd, 0x6e, 0x23, 0x45, - 0x10, 0xf6, 0xc4, 0x3f, 0x89, 0xcb, 0x09, 0x3f, 0x9d, 0x45, 0x1a, 0x82, 0x98, 0x44, 0xe6, 0xb2, - 0x07, 0x32, 0x43, 0xb2, 0x08, 0x21, 0x40, 0x68, 0x71, 0xc4, 0x8a, 0x28, 0x09, 0x44, 0xbd, 0x2b, - 0x0b, 0x10, 0x62, 0x69, 0x8f, 0xdb, 0xe3, 0xc1, 0x9e, 0x1f, 0x4d, 0xb7, 0xc3, 0x1a, 0x71, 0xd8, - 0x47, 0xe0, 0x0d, 0x78, 0x0f, 0x9e, 0x20, 0xc7, 0x3d, 0xe6, 0x14, 0x11, 0x73, 0x01, 0xee, 0x5c, - 0x38, 0xa1, 0xae, 0xe9, 0xf9, 0x89, 0x1d, 0x04, 0x72, 0x10, 0xdc, 0xa6, 0xbb, 0xbe, 0xfa, 0xbe, - 0xaa, 0xae, 0xea, 0xea, 0x81, 0x83, 0x51, 0x10, 0xf5, 0x27, 0x63, 0x2e, 0xec, 0x27, 0xd3, 0x6f, - 0x1d, 0x77, 0x22, 0x64, 0x14, 0xec, 0x26, 0x5c, 0x44, 0x93, 0xc4, 0xe5, 0xc2, 0x61, 0xb1, 0x2f, - 0x9c, 0x80, 0xcb, 0xc4, 0x77, 0x85, 0x73, 0xb6, 0xc7, 0xc6, 0xf1, 0x90, 0xed, 0x39, 0x1e, 0x0f, - 0x79, 0xc2, 0x24, 0xef, 0xdb, 0x71, 0x12, 0xc9, 0x88, 0xdc, 0x2b, 0x93, 0xd8, 0x29, 0xc9, 0xe3, - 0x9c, 0xc4, 0x56, 0x24, 0xb6, 0x26, 0xb1, 0x33, 0x92, 0xad, 0x5d, 0xcf, 0x97, 0xc3, 0x49, 0xcf, - 0x76, 0xa3, 0xc0, 0xf1, 0x22, 0x2f, 0x72, 0x90, 0xab, 0x37, 0x19, 0xe0, 0x0a, 0x17, 0xf8, 0x95, - 0x6a, 0x6c, 0xbd, 0x39, 0x7a, 0x5b, 0xd8, 0x7e, 0xa4, 0x22, 0x0a, 0x98, 0x3b, 0xf4, 0x43, 0x9e, - 0x4c, 0x9d, 0x78, 0xe4, 0xe5, 0x21, 0x32, 0xe7, 0x6c, 0x21, 0xb2, 0x2d, 0xe7, 0xaf, 0xbc, 0x92, - 0x49, 0x28, 0xfd, 0x80, 0x2f, 0x38, 0xbc, 0xf5, 0x77, 0x0e, 0xc2, 0x1d, 0xf2, 0x80, 0xcd, 0xfb, - 0xb5, 0x3f, 0x85, 0xfa, 0x03, 0x9f, 0x8f, 0xfb, 0x64, 0x07, 0x6a, 0x31, 0x93, 0x43, 0xd3, 0xd8, - 0x31, 0xee, 0x36, 0x3b, 0xeb, 0xe7, 0x97, 0xdb, 0x95, 0xd9, 0xe5, 0x76, 0xed, 0x94, 0xc9, 0x21, - 0x45, 0x0b, 0xd9, 0x85, 0x9a, 0x9c, 0xc6, 0xdc, 0x5c, 0x41, 0xc4, 0xcb, 0x19, 0xe2, 0xd1, 0x34, - 0xe6, 0x7f, 0x5c, 0x6e, 0x37, 0x91, 0x46, 0x2d, 0x28, 0xc2, 0xda, 0xdf, 0x41, 0xfd, 0x98, 0xf5, - 0xf8, 0x98, 0xbc, 0x0a, 0xd5, 0x11, 0x9f, 0x6a, 0xe2, 0x96, 0x76, 0xab, 0x1e, 0xf1, 0x29, 0x55, - 0xfb, 0xe4, 0x35, 0xa8, 0x9f, 0xb1, 0xf1, 0x24, 0xe3, 0xdd, 0xd0, 0x80, 0x7a, 0x57, 0x6d, 0xd2, - 0xd4, 0x46, 0x1c, 0x68, 0xe2, 0x87, 0x0a, 0xc7, 0xac, 0x22, 0xf0, 0x45, 0x0d, 0x6c, 0x76, 0x33, - 0x03, 0x2d, 0x30, 0xed, 0x1f, 0x0d, 0x68, 0x9d, 0x60, 0xe9, 0xd0, 0x4c, 0xb6, 0x33, 0x15, 0x15, - 0x86, 0xd1, 0x69, 0x2e, 0x28, 0xbc, 0x0b, 0x1b, 0xf8, 0xf1, 0x20, 0x89, 0x02, 0x54, 0x49, 0xc3, - 0x79, 0x49, 0xab, 0x6c, 0x74, 0xcb, 0x46, 0x7a, 0x1d, 0x4b, 0x4e, 0x60, 0x33, 0xdf, 0xf8, 0xf0, - 0x49, 0x9c, 0x70, 0x21, 0xfc, 0x28, 0xd4, 0x81, 0xbe, 0xa2, 0x29, 0x36, 0xbb, 0x8b, 0x10, 0x7a, - 0x93, 0x5f, 0xfb, 0xf7, 0x1a, 0xac, 0xa6, 0xc1, 0x0b, 0x55, 0x97, 0x90, 0x05, 0x7c, 0xbe, 0x2e, - 0x1f, 0xb3, 0x80, 0x53, 0xb4, 0x28, 0xc4, 0x90, 0x8f, 0x63, 0x1d, 0x70, 0x8e, 0xf8, 0x88, 0x8f, - 0x63, 0x8a, 0x16, 0x85, 0xc0, 0xca, 0x55, 0xaf, 0x23, 0x8a, 0x62, 0x91, 0xc7, 0x50, 0x1f, 0xa8, - 0xfa, 0x99, 0xb5, 0x1d, 0xe3, 0x6e, 0x6b, 0xff, 0x1d, 0x7b, 0x89, 0x9b, 0x61, 0x63, 0x07, 0x14, - 0x05, 0xc4, 0x25, 0x4d, 0x79, 0x49, 0x0f, 0x1a, 0x63, 0xd5, 0x0d, 0xc2, 0xac, 0xef, 0x54, 0x97, - 0x56, 0xc0, 0x86, 0xea, 0x3c, 0xa7, 0x15, 0x1a, 0xb8, 0x14, 0x54, 0x33, 0x93, 0x01, 0x34, 0x62, - 0x96, 0xb0, 0x40, 0x98, 0x0d, 0xd4, 0x78, 0x7f, 0x29, 0x8d, 0x53, 0x45, 0xc1, 0x25, 0x4f, 0x0a, - 0x1d, 0xdc, 0x12, 0x54, 0xb3, 0x93, 0x2f, 0xa1, 0x21, 0x24, 0x93, 0x5c, 0x98, 0xab, 0xb7, 0x38, - 0xad, 0x87, 0x8a, 0xa2, 0x03, 0x8a, 0x1f, 0x3f, 0x05, 0xd5, 0xac, 0xe4, 0x1b, 0x68, 0x05, 0x45, - 0xeb, 0x9a, 0x6b, 0x28, 0x72, 0x7f, 0x29, 0x91, 0xd2, 0x15, 0xe8, 0x6c, 0xea, 0x74, 0xca, 0xf7, - 0x82, 0x96, 0x95, 0xda, 0xbf, 0x1a, 0x70, 0x47, 0xf7, 0xdd, 0x41, 0x14, 0x0e, 0x7c, 0x6f, 0x92, - 0x30, 0xe9, 0x47, 0x21, 0xf9, 0x0a, 0xd6, 0xd4, 0xa4, 0xea, 0x33, 0xc9, 0xb0, 0x11, 0x5b, 0xfb, - 0x6f, 0xd8, 0xe9, 0xc0, 0xb1, 0xcb, 0x03, 0xc7, 0x8e, 0x47, 0x5e, 0x1e, 0x08, 0xb3, 0xcf, 0xf6, - 0xec, 0x4f, 0x7a, 0x5f, 0x73, 0x57, 0x9e, 0x70, 0xc9, 0x3a, 0x44, 0xcb, 0x43, 0xb1, 0x47, 0x73, - 0x56, 0x12, 0x41, 0x4d, 0xc4, 0xdc, 0xc5, 0x26, 0x6e, 0xed, 0x9f, 0xdc, 0x22, 0xd9, 0xeb, 0xa1, - 0x3f, 0x8c, 0xb9, 0x5b, 0x74, 0xbc, 0x5a, 0x51, 0x14, 0x6a, 0xff, 0x62, 0x80, 0x79, 0x93, 0xc3, - 0xb1, 0x2f, 0x24, 0xf9, 0x62, 0x21, 0x5f, 0xfb, 0x9f, 0xe5, 0xab, 0xbc, 0x31, 0xdb, 0x17, 0xb4, - 0xe4, 0x5a, 0xb6, 0x53, 0xca, 0x35, 0x84, 0xba, 0x2f, 0x79, 0x20, 0xcc, 0x15, 0x6c, 0xd3, 0xc3, - 0x7f, 0x2d, 0xd9, 0xe2, 0xee, 0x1d, 0x2a, 0x7e, 0x9a, 0xca, 0xb4, 0x7f, 0x5b, 0xb9, 0x39, 0x55, - 0x75, 0x1a, 0x24, 0x82, 0xa6, 0x64, 0x89, 0xc7, 0x25, 0xe5, 0x03, 0x9d, 0xeb, 0x72, 0xf7, 0xe6, - 0x51, 0xc6, 0x52, 0x4c, 0xe6, 0x7c, 0x8b, 0x16, 0x1a, 0x44, 0xc2, 0xba, 0x1b, 0x05, 0x41, 0x14, - 0xa6, 0xb7, 0x57, 0x1f, 0xc2, 0x6d, 0xe6, 0xc1, 0x1d, 0xad, 0xb7, 0x7e, 0x50, 0xe2, 0xa5, 0xd7, - 0x54, 0x88, 0x07, 0xab, 0xda, 0xdb, 0xac, 0xa2, 0xe0, 0x7b, 0xb7, 0x39, 0xf5, 0xce, 0xf3, 0x5a, - 0x32, 0x1b, 0xd3, 0x34, 0x63, 0x6f, 0x3f, 0x35, 0xa0, 0x99, 0x8f, 0x90, 0xff, 0xe7, 0xed, 0xfb, - 0xc1, 0x80, 0x3a, 0x8e, 0x14, 0xf2, 0x3a, 0xac, 0xe1, 0x6c, 0x3c, 0xca, 0x63, 0x28, 0xfa, 0x52, - 0xef, 0xd3, 0x1c, 0x41, 0x86, 0xd0, 0x40, 0x92, 0xac, 0x26, 0xf7, 0x97, 0x9f, 0x6b, 0x18, 0x97, - 0x28, 0x26, 0x68, 0xba, 0xa6, 0x9a, 0x1f, 0x5f, 0xe7, 0x12, 0x8e, 0xec, 0x03, 0x60, 0x14, 0xdd, - 0xfc, 0x89, 0x6e, 0x16, 0xf3, 0xe2, 0x38, 0xb7, 0xd0, 0x12, 0x6a, 0x7e, 0x4a, 0xae, 0xfc, 0x67, - 0x53, 0x92, 0x41, 0xd1, 0xd8, 0x2a, 0x72, 0x16, 0xfb, 0x5d, 0x9e, 0xe0, 0x83, 0x3f, 0x17, 0xf9, - 0x07, 0xa7, 0x87, 0xda, 0x42, 0x4b, 0x28, 0xf5, 0x1c, 0x8f, 0xfc, 0xb0, 0x3f, 0xff, 0x60, 0x1f, - 0xf9, 0x61, 0x9f, 0xa2, 0xa5, 0xf3, 0xd9, 0xf9, 0x95, 0x55, 0x79, 0x76, 0x65, 0x55, 0x2e, 0xae, - 0xac, 0xca, 0xd3, 0x99, 0x65, 0x9c, 0xcf, 0x2c, 0xe3, 0xd9, 0xcc, 0x32, 0x2e, 0x66, 0x96, 0xf1, - 0xd3, 0xcc, 0x32, 0xbe, 0xff, 0xd9, 0xaa, 0x7c, 0x7e, 0x6f, 0x89, 0x7f, 0xe0, 0x3f, 0x03, 0x00, - 0x00, 0xff, 0xff, 0xe3, 0x5d, 0x9d, 0xa7, 0x39, 0x0b, 0x00, 0x00, -} - -func (m *Field) 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 *Field) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Field) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i -= len(m.Type) - copy(dAtA[i:], m.Type) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type))) - i-- - dAtA[i] = 0x12 - i -= len(m.Path) - copy(dAtA[i:], m.Path) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Path))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *Label) 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 *Label) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Label) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i -= len(m.ValuePath) - copy(dAtA[i:], m.ValuePath) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.ValuePath))) - i-- - dAtA[i] = 0x1a - i -= len(m.Value) - copy(dAtA[i:], m.Value) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Value))) - i-- - dAtA[i] = 0x12 - i -= len(m.Key) - copy(dAtA[i:], m.Key) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Key))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *MetricValue) 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 *MetricValue) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MetricValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i -= len(m.ValueFromExpression) - copy(dAtA[i:], m.ValueFromExpression) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.ValueFromExpression))) - i-- - dAtA[i] = 0x1a - i -= len(m.ValueFromPath) - copy(dAtA[i:], m.ValueFromPath) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.ValueFromPath))) - i-- - dAtA[i] = 0x12 - if m.Value != nil { - i -= 8 - encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(*m.Value)))) - i-- - dAtA[i] = 0x9 - } - return len(dAtA) - i, nil -} - -func (m *Metrics) 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 *Metrics) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Metrics) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.MetricValue.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x42 - if m.States != nil { - { - size, err := m.States.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x3a - } - if len(m.Params) > 0 { - for iNdEx := len(m.Params) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Params[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x32 - } - } - if len(m.Labels) > 0 { - for iNdEx := len(m.Labels) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Labels[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a - } - } - { - size, err := m.Field.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - i -= len(m.Type) - copy(dAtA[i:], m.Type) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type))) - i-- - dAtA[i] = 0x1a - i -= len(m.Help) - copy(dAtA[i:], m.Help) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Help))) - i-- - dAtA[i] = 0x12 - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *MetricsConfiguration) 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 *MetricsConfiguration) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MetricsConfiguration) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - { - size, err := m.ObjectMeta.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 *MetricsConfigurationList) 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 *MetricsConfigurationList) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MetricsConfigurationList) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Items) > 0 { - for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - { - size, err := m.ListMeta.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 *MetricsConfigurationSpec) 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 *MetricsConfigurationSpec) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MetricsConfigurationSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Metrics) > 0 { - for iNdEx := len(m.Metrics) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Metrics[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - } - if len(m.CommonLabels) > 0 { - for iNdEx := len(m.CommonLabels) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.CommonLabels[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - { - size, err := m.TargetRef.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 *Parameter) 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 *Parameter) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Parameter) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i -= len(m.ValuePath) - copy(dAtA[i:], m.ValuePath) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.ValuePath))) - i-- - dAtA[i] = 0x1a - i -= len(m.Value) - copy(dAtA[i:], m.Value) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Value))) - i-- - dAtA[i] = 0x12 - i -= len(m.Key) - copy(dAtA[i:], m.Key) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Key))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *State) 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 *State) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *State) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Values) > 0 { - for iNdEx := len(m.Values) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Values[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - i -= len(m.LabelKey) - copy(dAtA[i:], m.LabelKey) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.LabelKey))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *StateValues) 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 *StateValues) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *StateValues) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.MetricValue.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - i -= len(m.LabelValue) - copy(dAtA[i:], m.LabelValue) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.LabelValue))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *TargetRef) 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 *TargetRef) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *TargetRef) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i -= len(m.Kind) - copy(dAtA[i:], m.Kind) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Kind))) - i-- - dAtA[i] = 0x12 - i -= len(m.APIVersion) - copy(dAtA[i:], m.APIVersion) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.APIVersion))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int { - offset -= sovGenerated(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *Field) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Path) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Type) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *Label) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Key) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Value) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.ValuePath) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *MetricValue) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Value != nil { - n += 9 - } - l = len(m.ValueFromPath) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.ValueFromExpression) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *Metrics) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Name) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Help) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Type) - n += 1 + l + sovGenerated(uint64(l)) - l = m.Field.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Labels) > 0 { - for _, e := range m.Labels { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - if len(m.Params) > 0 { - for _, e := range m.Params { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - if m.States != nil { - l = m.States.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - l = m.MetricValue.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *MetricsConfiguration) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Spec.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *MetricsConfigurationList) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ListMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Items) > 0 { - for _, e := range m.Items { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *MetricsConfigurationSpec) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.TargetRef.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.CommonLabels) > 0 { - for _, e := range m.CommonLabels { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - if len(m.Metrics) > 0 { - for _, e := range m.Metrics { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *Parameter) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Key) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Value) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.ValuePath) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *State) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.LabelKey) - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Values) > 0 { - for _, e := range m.Values { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *StateValues) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.LabelValue) - n += 1 + l + sovGenerated(uint64(l)) - l = m.MetricValue.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *TargetRef) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.APIVersion) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Kind) - 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 *Field) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&Field{`, - `Path:` + fmt.Sprintf("%v", this.Path) + `,`, - `Type:` + fmt.Sprintf("%v", this.Type) + `,`, - `}`, - }, "") - return s -} -func (this *Label) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&Label{`, - `Key:` + fmt.Sprintf("%v", this.Key) + `,`, - `Value:` + fmt.Sprintf("%v", this.Value) + `,`, - `ValuePath:` + fmt.Sprintf("%v", this.ValuePath) + `,`, - `}`, - }, "") - return s -} -func (this *MetricValue) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&MetricValue{`, - `Value:` + valueToStringGenerated(this.Value) + `,`, - `ValueFromPath:` + fmt.Sprintf("%v", this.ValueFromPath) + `,`, - `ValueFromExpression:` + fmt.Sprintf("%v", this.ValueFromExpression) + `,`, - `}`, - }, "") - return s -} -func (this *Metrics) String() string { - if this == nil { - return "nil" - } - repeatedStringForLabels := "[]Label{" - for _, f := range this.Labels { - repeatedStringForLabels += strings.Replace(strings.Replace(f.String(), "Label", "Label", 1), `&`, ``, 1) + "," - } - repeatedStringForLabels += "}" - repeatedStringForParams := "[]Parameter{" - for _, f := range this.Params { - repeatedStringForParams += strings.Replace(strings.Replace(f.String(), "Parameter", "Parameter", 1), `&`, ``, 1) + "," - } - repeatedStringForParams += "}" - s := strings.Join([]string{`&Metrics{`, - `Name:` + fmt.Sprintf("%v", this.Name) + `,`, - `Help:` + fmt.Sprintf("%v", this.Help) + `,`, - `Type:` + fmt.Sprintf("%v", this.Type) + `,`, - `Field:` + strings.Replace(strings.Replace(this.Field.String(), "Field", "Field", 1), `&`, ``, 1) + `,`, - `Labels:` + repeatedStringForLabels + `,`, - `Params:` + repeatedStringForParams + `,`, - `States:` + strings.Replace(this.States.String(), "State", "State", 1) + `,`, - `MetricValue:` + strings.Replace(strings.Replace(this.MetricValue.String(), "MetricValue", "MetricValue", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *MetricsConfiguration) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&MetricsConfiguration{`, - `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "MetricsConfigurationSpec", "MetricsConfigurationSpec", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *MetricsConfigurationList) String() string { - if this == nil { - return "nil" - } - repeatedStringForItems := "[]MetricsConfiguration{" - for _, f := range this.Items { - repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "MetricsConfiguration", "MetricsConfiguration", 1), `&`, ``, 1) + "," - } - repeatedStringForItems += "}" - s := strings.Join([]string{`&MetricsConfigurationList{`, - `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, - `Items:` + repeatedStringForItems + `,`, - `}`, - }, "") - return s -} -func (this *MetricsConfigurationSpec) String() string { - if this == nil { - return "nil" - } - repeatedStringForCommonLabels := "[]Label{" - for _, f := range this.CommonLabels { - repeatedStringForCommonLabels += strings.Replace(strings.Replace(f.String(), "Label", "Label", 1), `&`, ``, 1) + "," - } - repeatedStringForCommonLabels += "}" - repeatedStringForMetrics := "[]Metrics{" - for _, f := range this.Metrics { - repeatedStringForMetrics += strings.Replace(strings.Replace(f.String(), "Metrics", "Metrics", 1), `&`, ``, 1) + "," - } - repeatedStringForMetrics += "}" - s := strings.Join([]string{`&MetricsConfigurationSpec{`, - `TargetRef:` + strings.Replace(strings.Replace(this.TargetRef.String(), "TargetRef", "TargetRef", 1), `&`, ``, 1) + `,`, - `CommonLabels:` + repeatedStringForCommonLabels + `,`, - `Metrics:` + repeatedStringForMetrics + `,`, - `}`, - }, "") - return s -} -func (this *Parameter) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&Parameter{`, - `Key:` + fmt.Sprintf("%v", this.Key) + `,`, - `Value:` + fmt.Sprintf("%v", this.Value) + `,`, - `ValuePath:` + fmt.Sprintf("%v", this.ValuePath) + `,`, - `}`, - }, "") - return s -} -func (this *State) String() string { - if this == nil { - return "nil" - } - repeatedStringForValues := "[]StateValues{" - for _, f := range this.Values { - repeatedStringForValues += strings.Replace(strings.Replace(f.String(), "StateValues", "StateValues", 1), `&`, ``, 1) + "," - } - repeatedStringForValues += "}" - s := strings.Join([]string{`&State{`, - `LabelKey:` + fmt.Sprintf("%v", this.LabelKey) + `,`, - `Values:` + repeatedStringForValues + `,`, - `}`, - }, "") - return s -} -func (this *StateValues) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&StateValues{`, - `LabelValue:` + fmt.Sprintf("%v", this.LabelValue) + `,`, - `MetricValue:` + strings.Replace(strings.Replace(this.MetricValue.String(), "MetricValue", "MetricValue", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *TargetRef) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&TargetRef{`, - `APIVersion:` + fmt.Sprintf("%v", this.APIVersion) + `,`, - `Kind:` + fmt.Sprintf("%v", this.Kind) + `,`, - `}`, - }, "") - return s -} -func valueToStringGenerated(v interface{}) string { - rv := reflect.ValueOf(v) - if rv.IsNil() { - return "nil" - } - pv := reflect.Indirect(rv).Interface() - return fmt.Sprintf("*%v", pv) -} -func (m *Field) 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: Field: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Field: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Path", 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.Path = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - 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 = FieldType(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Label) 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: Label: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Label: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Key", 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.Key = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Value", 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.Value = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ValuePath", 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.ValuePath = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *MetricValue) 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: MetricValue: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MetricValue: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 1 { - return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) - } - var v uint64 - if (iNdEx + 8) > l { - return io.ErrUnexpectedEOF - } - v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) - iNdEx += 8 - v2 := float64(math.Float64frombits(v)) - m.Value = &v2 - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ValueFromPath", 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.ValueFromPath = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ValueFromExpression", 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.ValueFromExpression = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Metrics) 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: Metrics: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Metrics: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", 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.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Help", 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.Help = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - 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 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Field", 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.Field.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Labels", 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 - } - m.Labels = append(m.Labels, Label{}) - if err := m.Labels[len(m.Labels)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Params", 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 - } - m.Params = append(m.Params, Parameter{}) - if err := m.Params[len(m.Params)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field States", 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.States == nil { - m.States = &State{} - } - if err := m.States.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MetricValue", 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.MetricValue.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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *MetricsConfiguration) 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: MetricsConfiguration: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MetricsConfiguration: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", 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.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Spec", 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.Spec.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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *MetricsConfigurationList) 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: MetricsConfigurationList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MetricsConfigurationList: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", 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.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Items", 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 - } - m.Items = append(m.Items, MetricsConfiguration{}) - if err := m.Items[len(m.Items)-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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *MetricsConfigurationSpec) 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: MetricsConfigurationSpec: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MetricsConfigurationSpec: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TargetRef", 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.TargetRef.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CommonLabels", 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 - } - m.CommonLabels = append(m.CommonLabels, Label{}) - if err := m.CommonLabels[len(m.CommonLabels)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Metrics", 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 - } - m.Metrics = append(m.Metrics, Metrics{}) - if err := m.Metrics[len(m.Metrics)-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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Parameter) 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: Parameter: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Parameter: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Key", 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.Key = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Value", 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.Value = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ValuePath", 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.ValuePath = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *State) 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: State: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: State: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LabelKey", 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.LabelKey = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Values", 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 - } - m.Values = append(m.Values, StateValues{}) - if err := m.Values[len(m.Values)-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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *StateValues) 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: StateValues: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: StateValues: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LabelValue", 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.LabelValue = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MetricValue", 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.MetricValue.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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *TargetRef) 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: TargetRef: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: TargetRef: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field APIVersion", 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.APIVersion = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Kind", 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.Kind = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipGenerated(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - depth := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - case 1: - iNdEx += 8 - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthGenerated - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupGenerated - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthGenerated - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupGenerated = fmt.Errorf("proto: unexpected end of group") -) diff --git a/vendor/kmodules.xyz/custom-resources/apis/metrics/v1alpha1/generated.proto b/vendor/kmodules.xyz/custom-resources/apis/metrics/v1alpha1/generated.proto index f4d828a1b..e01f9adc0 100644 --- a/vendor/kmodules.xyz/custom-resources/apis/metrics/v1alpha1/generated.proto +++ b/vendor/kmodules.xyz/custom-resources/apis/metrics/v1alpha1/generated.proto @@ -58,7 +58,7 @@ message Field { // In the example pod, namespace, host_ip, pod_ip, node are labels. // pod(resource name) and namespace are default labels. No configurations is needed for those. // -// To generate others labels, config should be given in the following way +// # To generate others labels, config should be given in the following way // // labels: // - key: host_ip diff --git a/vendor/kmodules.xyz/custom-resources/apis/metrics/v1alpha1/metricsconfiguration_types.go b/vendor/kmodules.xyz/custom-resources/apis/metrics/v1alpha1/metricsconfiguration_types.go index 705136d3e..2bca735fa 100644 --- a/vendor/kmodules.xyz/custom-resources/apis/metrics/v1alpha1/metricsconfiguration_types.go +++ b/vendor/kmodules.xyz/custom-resources/apis/metrics/v1alpha1/metricsconfiguration_types.go @@ -42,59 +42,59 @@ const ( // +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp" type MetricsConfiguration struct { metav1.TypeMeta `json:",inline"` - metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - Spec MetricsConfigurationSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` + metav1.ObjectMeta `json:"metadata,omitempty"` + Spec MetricsConfigurationSpec `json:"spec,omitempty"` } // MetricsConfigurationSpec is the spec of MetricsConfiguration object. type MetricsConfigurationSpec struct { // TargetRef defines the object for which metrics will be collected - TargetRef TargetRef `json:"targetRef" protobuf:"bytes,1,opt,name=targetRef"` + TargetRef TargetRef `json:"targetRef"` // CommonLabels defines the common labels added to all the exported metrics // +optional - CommonLabels []Label `json:"commonLabels,omitempty" protobuf:"bytes,2,rep,name=commonLabels"` + CommonLabels []Label `json:"commonLabels,omitempty"` // List of Metrics configuration for the resource object defined in TargetRef - Metrics []Metrics `json:"metrics" protobuf:"bytes,3,rep,name=metrics"` + Metrics []Metrics `json:"metrics"` } // TargetRef contains the Object's apiVersion & kind to specify the target resource type TargetRef struct { // APIVersion defines the versioned schema of this representation of an object. - APIVersion string `json:"apiVersion" protobuf:"bytes,1,opt,name=apiVersion"` + APIVersion string `json:"apiVersion"` // Kind is a string value representing the REST resource this object represents. // In CamelCase. - Kind string `json:"kind" protobuf:"bytes,2,opt,name=kind"` + Kind string `json:"kind"` } // Metrics contains the configuration of a metric in prometheus style. type Metrics struct { // Name defines the metrics name. Name should be in snake case. // Example: kube_deployment_spec_replicas - Name string `json:"name" protobuf:"bytes,1,opt,name=name"` + Name string `json:"name"` // Help is used to describe the metrics. // Example: For kube_deployment_spec_replicas, help string can be "Number of desired pods for a deployment." - Help string `json:"help" protobuf:"bytes,2,opt,name=help"` + Help string `json:"help"` // Type defines the metrics type. // For kubernetes based object, types can only be "gauge" // +kubebuilder:validation:Enum=gauge; - Type string `json:"type" protobuf:"bytes,3,opt,name=type"` + Type string `json:"type"` // Field defines the metric value path of the manifest file and the type of that value // +optional - Field Field `json:"field,omitempty" protobuf:"bytes,4,opt,name=field"` + Field Field `json:"field,omitempty"` // Labels defines the metric labels as a key-value pair // +optional - Labels []Label `json:"labels,omitempty" protobuf:"bytes,5,rep,name=labels"` + Labels []Label `json:"labels,omitempty"` // Params is list of parameters configuration used in expression evaluation // +optional - Params []Parameter `json:"params,omitempty" protobuf:"bytes,6,rep,name=params"` + Params []Parameter `json:"params,omitempty"` // States handle metrics with label cardinality. // States specify the possible states for a label @@ -103,14 +103,14 @@ type Metrics struct { // Metrics must contain either States or MetricValue. // If both are specified, MetricValue will be ignored. // +optional - States *State `json:"states,omitempty" protobuf:"bytes,7,opt,name=states"` + States *State `json:"states,omitempty"` // MetricValue defines the configuration to obtain metric value. // // Metrics must contain either States or MetricValue. // If both are specified, MetricValue will be ignored. // +optional - MetricValue MetricValue `json:"metricValue,omitempty" protobuf:"bytes,8,opt,name=metricValue"` + MetricValue MetricValue `json:"metricValue,omitempty"` } type FieldType string @@ -132,7 +132,7 @@ const ( type Field struct { // Path defines the json path of the object. // Example: For deployment spec replica count, the path will be .spec.replicas - Path string `json:"path" protobuf:"bytes,1,opt,name=path"` + Path string `json:"path"` // Type defines the type of the value in the given Path // Type can be "Integer" for integer value like .spec.replicas, @@ -140,7 +140,7 @@ type Field struct { // "Array" for array field like .spec.containers // "String" for string field like .statue.phase (for pod status) // +kubebuilder:validation:Enum=Integer;DateTime;Array;String - Type FieldType `json:"type" protobuf:"bytes,2,opt,name=type,casttype=FieldType"` + Type FieldType `json:"type"` } // Label contains the information of a metric label. @@ -167,7 +167,7 @@ type Field struct { // Note that if a valuePath doesn't exist for a label key, the label will be ignored. type Label struct { // Key defines the label key - Key string `json:"key" protobuf:"bytes,1,opt,name=key"` + Key string `json:"key"` // Value defines the hard coded label value. // Example: @@ -178,7 +178,7 @@ type Label struct { // value: production // // +optional - Value string `json:"value,omitempty" protobuf:"bytes,2,opt,name=value"` + Value string `json:"value,omitempty"` // ValuePath defines the label value path. // Example: To add deployment's resource version as labels, @@ -187,7 +187,7 @@ type Label struct { // valuePath: .metadata.resourceVersion // // +optional - ValuePath string `json:"valuePath" protobuf:"bytes,3,opt,name=valuePath"` + ValuePath string `json:"valuePath"` } // Parameter contains the information of a parameter used in expression evaluation @@ -196,11 +196,11 @@ type Label struct { // If both are specified, ValuePath is ignored. type Parameter struct { // Key defines the parameter's key - Key string `json:"key" protobuf:"bytes,1,opt,name=key"` + Key string `json:"key"` // Value defines user defined parameter's value. // +optional - Value string `json:"value,omitempty" protobuf:"bytes,2,opt,name=value"` + Value string `json:"value,omitempty"` // ValuePath defines the manifest field path for the parameter's value. // Example: To add deployment's spec replica count as parameter, @@ -208,7 +208,7 @@ type Parameter struct { // - key: replica // valuePath: .spec.replicas // +optional - ValuePath string `json:"valuePath,omitempty" protobuf:"bytes,3,opt,name=valuePath"` + ValuePath string `json:"valuePath,omitempty"` } // State contains the configuration for generating all the time series @@ -229,13 +229,13 @@ type State struct { // LabelKey defines an user defined label key of the label // which label cardinality is greater than one. // Example: For metric "kube_pod_status_phase", the LabelKey can be "phase" - LabelKey string `json:"labelKey" protobuf:"bytes,1,opt,name=labelKey"` + LabelKey string `json:"labelKey"` // Values contains the list of state values. // The size of the list is always equal to the cardinality of that label. // Example: "kube_pod_statue_phase" metric has a label "phase" // which cardinality is equal to 5. So Values should have StateValues config for all of them. - Values []StateValues `json:"values" protobuf:"bytes,2,rep,name=values"` + Values []StateValues `json:"values"` } // StateValues contains the information of a state value. @@ -245,10 +245,10 @@ type StateValues struct { // LabelValue defines the value of the label. // Example: For labelKey "phase" (metric: kube_pod_status_phase path: .status.phase ) // label value can be "Running", "Succeeded", "Failed", "Unknown" and "Pending" - LabelValue string `json:"labelValue" protobuf:"bytes,1,opt,name=labelValue"` + LabelValue string `json:"labelValue"` // MetricValue defines the configuration of the metric value for the corresponding LabelValue - MetricValue MetricValue `json:"metricValue" protobuf:"bytes,2,opt,name=metricValue"` + MetricValue MetricValue `json:"metricValue"` } // MetricValue contains the configuration to obtain the value for a metric. @@ -265,7 +265,7 @@ type MetricValue struct { // As there must be a metric value, metric value is kept as 1. // The metric will look like `kube_pod_info{host_ip="172.18.0.2", pod_ip="10.244.0.14", node="kind-control-plane" .....} 1` // +optional - Value *float64 `json:"value,omitempty" protobuf:"fixed64,1,opt,name=value"` + Value *float64 `json:"value,omitempty"` // ValueFromPath contains the field path of the manifest file of a object. // ValueFromPath is used when the metric value is coming from @@ -279,7 +279,7 @@ type MetricValue struct { // Some example of json path // which is coming from an element of an array: .spec.containers[*].image, .status.containerStatuses[*].restartCount // +optional - ValueFromPath string `json:"valueFromPath,omitempty" protobuf:"bytes,2,opt,name=valueFromPath"` + ValueFromPath string `json:"valueFromPath,omitempty"` // ValueFromExpression contains an expression for the metric value // expression can be a function as well. Parameters is used in the expression string @@ -311,7 +311,7 @@ type MetricValue struct { // Some expression evaluation functions are used for calculating resource requests and limits. // Those functions are stated here: https://github.com/kmodules/resource-metrics/blob/master/eval.go // +optional - ValueFromExpression string `json:"valueFromExpression,omitempty" protobuf:"bytes,3,opt,name=valueFromExpression"` + ValueFromExpression string `json:"valueFromExpression,omitempty"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object @@ -319,6 +319,6 @@ type MetricValue struct { // MetricsConfigurationList is a list of MetricsConfiguration type MetricsConfigurationList struct { metav1.TypeMeta `json:",inline"` - metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - Items []MetricsConfiguration `json:"items,omitempty" protobuf:"bytes,2,rep,name=items"` + metav1.ListMeta `json:"metadata,omitempty"` + Items []MetricsConfiguration `json:"items,omitempty"` } diff --git a/vendor/kmodules.xyz/custom-resources/apis/metrics/v1alpha1/openapi_generated.go b/vendor/kmodules.xyz/custom-resources/apis/metrics/v1alpha1/openapi_generated.go index 408228019..97c4e2c1d 100644 --- a/vendor/kmodules.xyz/custom-resources/apis/metrics/v1alpha1/openapi_generated.go +++ b/vendor/kmodules.xyz/custom-resources/apis/metrics/v1alpha1/openapi_generated.go @@ -24,6 +24,8 @@ limitations under the License. package v1alpha1 import ( + apiv1 "kmodules.xyz/client-go/api/v1" + resource "k8s.io/apimachinery/pkg/api/resource" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" intstr "k8s.io/apimachinery/pkg/util/intstr" @@ -326,6 +328,21 @@ 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.CertificatePrivateKey": schema_kmodulesxyz_client_go_api_v1_CertificatePrivateKey(ref), + "kmodules.xyz/client-go/api/v1.CertificateSpec": schema_kmodulesxyz_client_go_api_v1_CertificateSpec(ref), + "kmodules.xyz/client-go/api/v1.ClusterMetadata": schema_kmodulesxyz_client_go_api_v1_ClusterMetadata(ref), + "kmodules.xyz/client-go/api/v1.Condition": schema_kmodulesxyz_client_go_api_v1_Condition(ref), + "kmodules.xyz/client-go/api/v1.HealthCheckSpec": schema_kmodulesxyz_client_go_api_v1_HealthCheckSpec(ref), + "kmodules.xyz/client-go/api/v1.ObjectID": schema_kmodulesxyz_client_go_api_v1_ObjectID(ref), + "kmodules.xyz/client-go/api/v1.ObjectInfo": schema_kmodulesxyz_client_go_api_v1_ObjectInfo(ref), + "kmodules.xyz/client-go/api/v1.ObjectReference": schema_kmodulesxyz_client_go_api_v1_ObjectReference(ref), + "kmodules.xyz/client-go/api/v1.ReadonlyHealthCheckSpec": schema_kmodulesxyz_client_go_api_v1_ReadonlyHealthCheckSpec(ref), + "kmodules.xyz/client-go/api/v1.ResourceID": schema_kmodulesxyz_client_go_api_v1_ResourceID(ref), + "kmodules.xyz/client-go/api/v1.TLSConfig": schema_kmodulesxyz_client_go_api_v1_TLSConfig(ref), + "kmodules.xyz/client-go/api/v1.TimeOfDay": schema_kmodulesxyz_client_go_api_v1_TimeOfDay(ref), + "kmodules.xyz/client-go/api/v1.TypedObjectReference": schema_kmodulesxyz_client_go_api_v1_TypedObjectReference(ref), + "kmodules.xyz/client-go/api/v1.X509Subject": schema_kmodulesxyz_client_go_api_v1_X509Subject(ref), + "kmodules.xyz/client-go/api/v1.stringSetMerger": schema_kmodulesxyz_client_go_api_v1_stringSetMerger(ref), "kmodules.xyz/custom-resources/apis/metrics/v1alpha1.Field": schema_custom_resources_apis_metrics_v1alpha1_Field(ref), "kmodules.xyz/custom-resources/apis/metrics/v1alpha1.Label": schema_custom_resources_apis_metrics_v1alpha1_Label(ref), "kmodules.xyz/custom-resources/apis/metrics/v1alpha1.MetricValue": schema_custom_resources_apis_metrics_v1alpha1_MetricValue(ref), @@ -16142,6 +16159,685 @@ func schema_k8sio_apimachinery_pkg_version_Info(ref common.ReferenceCallback) co } } +func schema_kmodulesxyz_client_go_api_v1_CertificatePrivateKey(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "CertificatePrivateKey contains configuration options for private keys used by the Certificate controller. This allows control of how private keys are rotated.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "encoding": { + SchemaProps: spec.SchemaProps{ + Description: "The private key cryptography standards (PKCS) encoding for this certificate's private key to be encoded in. If provided, allowed values are \"pkcs1\" and \"pkcs8\" standing for PKCS#1 and PKCS#8, respectively. Defaults to PKCS#1 if not specified. See here for the difference between the formats: https://stackoverflow.com/a/48960291", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + } +} + +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.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "issuerRef": { + SchemaProps: spec.SchemaProps{ + Description: "IssuerRef is a reference to a Certificate Issuer.", + Ref: ref("k8s.io/api/core/v1.TypedLocalObjectReference"), + }, + }, + "secretName": { + SchemaProps: spec.SchemaProps{ + Description: "Specifies the k8s secret name that holds the certificates. Default to --cert.", + 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{ + Default: "", + 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{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "uris": { + SchemaProps: spec.SchemaProps{ + Description: "URIs is a list of URI subjectAltNames to be set on the Certificate.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "emailAddresses": { + SchemaProps: spec.SchemaProps{ + Description: "EmailAddresses is a list of email subjectAltNames to be set on the Certificate.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "privateKey": { + SchemaProps: spec.SchemaProps{ + Description: "Options to control private keys used for the Certificate.", + Ref: ref("kmodules.xyz/client-go/api/v1.CertificatePrivateKey"), + }, + }, + }, + Required: []string{"alias"}, + }, + }, + Dependencies: []string{ + "k8s.io/api/core/v1.TypedLocalObjectReference", "k8s.io/apimachinery/pkg/apis/meta/v1.Duration", "kmodules.xyz/client-go/api/v1.CertificatePrivateKey", "kmodules.xyz/client-go/api/v1.X509Subject"}, + } +} + +func schema_kmodulesxyz_client_go_api_v1_ClusterMetadata(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "uid": { + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "name": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "displayName": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "provider": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + }, + Required: []string{"uid"}, + }, + }, + } +} + +func schema_kmodulesxyz_client_go_api_v1_Condition(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "type": { + SchemaProps: spec.SchemaProps{ + Description: "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 useful (see .node.status.conditions), the ability to deconflict is important.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Description: "Status of the condition, one of True, False, Unknown.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "observedGeneration": { + SchemaProps: spec.SchemaProps{ + Description: "If set, this represents the .metadata.generation that the condition was set based upon. For instance, if .metadata.generation is currently 12, but the .status.condition[x].observedGeneration is 9, the condition is out of date with respect to the current state of the instance.", + Type: []string{"integer"}, + Format: "int64", + }, + }, + "lastTransitionTime": { + SchemaProps: spec.SchemaProps{ + Description: "Last time the condition transitioned from one status to another. This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable.", + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), + }, + }, + "reason": { + SchemaProps: spec.SchemaProps{ + Description: "The reason for the condition's last transition in CamelCase. The specific API may choose whether or not this field is considered a guaranteed API. This field may not be empty.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "message": { + SchemaProps: spec.SchemaProps{ + Description: "A human readable message indicating details about the transition. This field may be empty.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + Required: []string{"type", "status", "lastTransitionTime", "reason", "message"}, + }, + }, + Dependencies: []string{ + "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, + } +} + +func schema_kmodulesxyz_client_go_api_v1_HealthCheckSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "HealthCheckSpec defines attributes of the health check", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "periodSeconds": { + SchemaProps: spec.SchemaProps{ + Description: "How often (in seconds) to perform the health check. Default to 10 seconds. Minimum value is 1.", + Type: []string{"integer"}, + Format: "int32", + }, + }, + "timeoutSeconds": { + SchemaProps: spec.SchemaProps{ + Description: "Number of seconds after which the probe times out. Defaults to 10 second. Minimum value is 1. It should be less than the periodSeconds.", + Type: []string{"integer"}, + Format: "int32", + }, + }, + "failureThreshold": { + SchemaProps: spec.SchemaProps{ + Description: "Minimum consecutive failures for the health check to be considered failed after having succeeded. Defaults to 1. Minimum value is 1.", + Type: []string{"integer"}, + Format: "int32", + }, + }, + "disableWriteCheck": { + SchemaProps: spec.SchemaProps{ + Description: "Whether to disable write check on database. Defaults to false.", + Type: []string{"boolean"}, + Format: "", + }, + }, + }, + }, + }, + } +} + +func schema_kmodulesxyz_client_go_api_v1_ObjectID(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "group": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "kind": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "namespace": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "name": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + } +} + +func schema_kmodulesxyz_client_go_api_v1_ObjectInfo(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "resource": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("kmodules.xyz/client-go/api/v1.ResourceID"), + }, + }, + "ref": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("kmodules.xyz/client-go/api/v1.ObjectReference"), + }, + }, + }, + Required: []string{"resource", "ref"}, + }, + }, + Dependencies: []string{ + "kmodules.xyz/client-go/api/v1.ObjectReference", "kmodules.xyz/client-go/api/v1.ResourceID"}, + } +} + +func schema_kmodulesxyz_client_go_api_v1_ObjectReference(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "ObjectReference contains enough information to let you inspect or modify the referred object.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "namespace": { + SchemaProps: spec.SchemaProps{ + Description: "Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/", + Type: []string{"string"}, + Format: "", + }, + }, + "name": { + SchemaProps: spec.SchemaProps{ + Description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + Required: []string{"name"}, + }, + }, + } +} + +func schema_kmodulesxyz_client_go_api_v1_ReadonlyHealthCheckSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "ReadonlyHealthCheckSpec defines attributes of the health check using only read-only checks", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "periodSeconds": { + SchemaProps: spec.SchemaProps{ + Description: "How often (in seconds) to perform the health check. Default to 10 seconds. Minimum value is 1.", + Type: []string{"integer"}, + Format: "int32", + }, + }, + "timeoutSeconds": { + SchemaProps: spec.SchemaProps{ + Description: "Number of seconds after which the probe times out. Defaults to 10 second. Minimum value is 1. It should be less than the periodSeconds.", + Type: []string{"integer"}, + Format: "int32", + }, + }, + "failureThreshold": { + SchemaProps: spec.SchemaProps{ + Description: "Minimum consecutive failures for the health check to be considered failed after having succeeded. Defaults to 1. Minimum value is 1.", + Type: []string{"integer"}, + Format: "int32", + }, + }, + }, + }, + }, + } +} + +func schema_kmodulesxyz_client_go_api_v1_ResourceID(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "ResourceID identifies a resource", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "group": { + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "version": { + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "name": { + SchemaProps: spec.SchemaProps{ + Description: "Name is the plural name of the resource to serve. It must match the name of the CustomResourceDefinition-registration too: plural.group and it must be all lowercase.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is the serialized kind of the resource. It is normally CamelCase and singular.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "scope": { + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + Required: []string{"group", "version", "name", "kind", "scope"}, + }, + }, + } +} + +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{ + Default: map[string]interface{}{}, + 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_TimeOfDay(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "TimeOfDay is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers.", + Type: apiv1.TimeOfDay{}.OpenAPISchemaType(), + Format: apiv1.TimeOfDay{}.OpenAPISchemaFormat(), + }, + }, + } +} + +func schema_kmodulesxyz_client_go_api_v1_TypedObjectReference(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "TypedObjectReference represents an typed namespaced object.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "apiGroup": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "kind": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "namespace": { + SchemaProps: spec.SchemaProps{ + Description: "Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/", + Type: []string{"string"}, + Format: "", + }, + }, + "name": { + SchemaProps: spec.SchemaProps{ + Description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + Required: []string{"name"}, + }, + }, + } +} + +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{ + Default: "", + 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{ + Default: "", + 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{ + Default: "", + 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{ + Default: "", + 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{ + Default: "", + 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{ + Default: "", + 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{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "serialNumber": { + SchemaProps: spec.SchemaProps{ + Description: "Serial number to be used on the CertificateSpec.", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + } +} + +func schema_kmodulesxyz_client_go_api_v1_stringSetMerger(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + }, + }, + } +} + func schema_custom_resources_apis_metrics_v1alpha1_Field(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ diff --git a/vendor/kmodules.xyz/custom-resources/crds/appcatalog.appscode.com_appbindings.yaml b/vendor/kmodules.xyz/custom-resources/crds/appcatalog.appscode.com_appbindings.yaml index 9b8b534db..898b92632 100644 --- a/vendor/kmodules.xyz/custom-resources/crds/appcatalog.appscode.com_appbindings.yaml +++ b/vendor/kmodules.xyz/custom-resources/crds/appcatalog.appscode.com_appbindings.yaml @@ -47,6 +47,22 @@ spec: spec: description: AppBindingSpec is the spec for app properties: + appRef: + description: Reference to underlying application + properties: + apiGroup: + type: string + kind: + type: string + name: + description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' + type: string + namespace: + description: 'Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/' + type: string + required: + - name + type: object clientConfig: description: ClientConfig defines how to communicate with the app. Required diff --git a/vendor/kubedb.dev/apimachinery/apis/autoscaling/v1alpha1/mongodb_types.go b/vendor/kubedb.dev/apimachinery/apis/autoscaling/v1alpha1/mongodb_types.go index 9e96297ce..ca9caeed1 100644 --- a/vendor/kubedb.dev/apimachinery/apis/autoscaling/v1alpha1/mongodb_types.go +++ b/vendor/kubedb.dev/apimachinery/apis/autoscaling/v1alpha1/mongodb_types.go @@ -73,6 +73,8 @@ type MongoDBComputeAutoscalerSpec struct { ConfigServer *ComputeAutoscalerSpec `json:"configServer,omitempty"` Shard *ComputeAutoscalerSpec `json:"shard,omitempty"` Mongos *ComputeAutoscalerSpec `json:"mongos,omitempty"` + Arbiter *ComputeAutoscalerSpec `json:"arbiter,omitempty"` + Hidden *ComputeAutoscalerSpec `json:"hidden,omitempty"` } type MongoDBStorageAutoscalerSpec struct { @@ -80,6 +82,7 @@ type MongoDBStorageAutoscalerSpec struct { ReplicaSet *StorageAutoscalerSpec `json:"replicaSet,omitempty"` ConfigServer *StorageAutoscalerSpec `json:"configServer,omitempty"` Shard *StorageAutoscalerSpec `json:"shard,omitempty"` + Hidden *StorageAutoscalerSpec `json:"hidden,omitempty"` } type MongoDBOpsRequestOptions struct { diff --git a/vendor/kubedb.dev/apimachinery/apis/autoscaling/v1alpha1/mongodb_webhook.go b/vendor/kubedb.dev/apimachinery/apis/autoscaling/v1alpha1/mongodb_webhook.go index 27fb73657..1282c0693 100644 --- a/vendor/kubedb.dev/apimachinery/apis/autoscaling/v1alpha1/mongodb_webhook.go +++ b/vendor/kubedb.dev/apimachinery/apis/autoscaling/v1alpha1/mongodb_webhook.go @@ -56,6 +56,7 @@ func (in *MongoDBAutoscaler) setDefaults() { setDefaultStorageValues(in.Spec.Storage.ReplicaSet) setDefaultStorageValues(in.Spec.Storage.Shard) setDefaultStorageValues(in.Spec.Storage.ConfigServer) + setDefaultStorageValues(in.Spec.Storage.Hidden) } if in.Spec.Compute != nil { @@ -64,6 +65,8 @@ func (in *MongoDBAutoscaler) setDefaults() { setDefaultComputeValues(in.Spec.Compute.Shard) setDefaultComputeValues(in.Spec.Compute.ConfigServer) setDefaultComputeValues(in.Spec.Compute.Mongos) + setDefaultComputeValues(in.Spec.Compute.Arbiter) + setDefaultComputeValues(in.Spec.Compute.Hidden) } } @@ -85,6 +88,8 @@ func (in *MongoDBAutoscaler) SetDefaults(db *dbapi.MongoDB) { setInMemoryDefaults(in.Spec.Compute.Shard, db.Spec.StorageEngine) setInMemoryDefaults(in.Spec.Compute.ConfigServer, db.Spec.StorageEngine) setInMemoryDefaults(in.Spec.Compute.Mongos, db.Spec.StorageEngine) + // no need for Defaulting the Arbiter & Hidden Node. + // As arbiter is not a data-node. And hidden doesn't have the impact of storageEngine (it can't be InMemory). } } @@ -151,6 +156,12 @@ func (in *MongoDBAutoscaler) ValidateFields(mg *dbapi.MongoDB) error { if cm.Mongos != nil { return errors.New("Spec.Compute.Mongos is invalid for Standalone mongoDB") } + if cm.Arbiter != nil { + return errors.New("Spec.Compute.Arbiter is invalid for Standalone mongoDB") + } + if cm.Hidden != nil { + return errors.New("Spec.Compute.Hidden is invalid for Standalone mongoDB") + } } } @@ -183,6 +194,9 @@ func (in *MongoDBAutoscaler) ValidateFields(mg *dbapi.MongoDB) error { if st.ConfigServer != nil { return errors.New("Spec.Storage.ConfigServer is invalid for Standalone mongoDB") } + if st.Hidden != nil { + return errors.New("Spec.Storage.Hidden is invalid for Standalone mongoDB") + } } } return nil diff --git a/vendor/kubedb.dev/apimachinery/apis/autoscaling/v1alpha1/openapi_generated.go b/vendor/kubedb.dev/apimachinery/apis/autoscaling/v1alpha1/openapi_generated.go index 8420a3542..74a9ce70d 100644 --- a/vendor/kubedb.dev/apimachinery/apis/autoscaling/v1alpha1/openapi_generated.go +++ b/vendor/kubedb.dev/apimachinery/apis/autoscaling/v1alpha1/openapi_generated.go @@ -481,11 +481,11 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "kubedb.dev/apimachinery/apis/autoscaling/v1alpha1.PodResourcePolicy": schema_apimachinery_apis_autoscaling_v1alpha1_PodResourcePolicy(ref), "kubedb.dev/apimachinery/apis/autoscaling/v1alpha1.PodUpdatePolicy": schema_apimachinery_apis_autoscaling_v1alpha1_PodUpdatePolicy(ref), "kubedb.dev/apimachinery/apis/autoscaling/v1alpha1.PostgresAutoscaler": schema_apimachinery_apis_autoscaling_v1alpha1_PostgresAutoscaler(ref), - "kubedb.dev/apimachinery/apis/autoscaling/v1alpha1.PostgresAutoscalerBehavior": schema_apimachinery_apis_autoscaling_v1alpha1_PostgresAutoscalerBehavior(ref), "kubedb.dev/apimachinery/apis/autoscaling/v1alpha1.PostgresAutoscalerList": schema_apimachinery_apis_autoscaling_v1alpha1_PostgresAutoscalerList(ref), "kubedb.dev/apimachinery/apis/autoscaling/v1alpha1.PostgresAutoscalerSpec": schema_apimachinery_apis_autoscaling_v1alpha1_PostgresAutoscalerSpec(ref), - "kubedb.dev/apimachinery/apis/autoscaling/v1alpha1.PostgresScalingPolicy": schema_apimachinery_apis_autoscaling_v1alpha1_PostgresScalingPolicy(ref), - "kubedb.dev/apimachinery/apis/autoscaling/v1alpha1.PostgresScalingRules": schema_apimachinery_apis_autoscaling_v1alpha1_PostgresScalingRules(ref), + "kubedb.dev/apimachinery/apis/autoscaling/v1alpha1.PostgresComputeAutoscalerSpec": schema_apimachinery_apis_autoscaling_v1alpha1_PostgresComputeAutoscalerSpec(ref), + "kubedb.dev/apimachinery/apis/autoscaling/v1alpha1.PostgresOpsRequestOptions": schema_apimachinery_apis_autoscaling_v1alpha1_PostgresOpsRequestOptions(ref), + "kubedb.dev/apimachinery/apis/autoscaling/v1alpha1.PostgresStorageAutoscalerSpec": schema_apimachinery_apis_autoscaling_v1alpha1_PostgresStorageAutoscalerSpec(ref), "kubedb.dev/apimachinery/apis/autoscaling/v1alpha1.ProxySQLAutoscaler": schema_apimachinery_apis_autoscaling_v1alpha1_ProxySQLAutoscaler(ref), "kubedb.dev/apimachinery/apis/autoscaling/v1alpha1.ProxySQLAutoscalerBehavior": schema_apimachinery_apis_autoscaling_v1alpha1_ProxySQLAutoscalerBehavior(ref), "kubedb.dev/apimachinery/apis/autoscaling/v1alpha1.ProxySQLAutoscalerList": schema_apimachinery_apis_autoscaling_v1alpha1_ProxySQLAutoscalerList(ref), @@ -18767,6 +18767,12 @@ func schema_custom_resources_apis_appcatalog_v1alpha1_AppBindingSpec(ref common. Format: "", }, }, + "appRef": { + SchemaProps: spec.SchemaProps{ + Description: "Reference to underlying application", + Ref: ref("kmodules.xyz/client-go/api/v1.TypedObjectReference"), + }, + }, "version": { SchemaProps: spec.SchemaProps{ Description: "Version used to facilitate programmatic handling of application.", @@ -18818,7 +18824,7 @@ func schema_custom_resources_apis_appcatalog_v1alpha1_AppBindingSpec(ref common. }, }, Dependencies: []string{ - "k8s.io/api/core/v1.LocalObjectReference", "k8s.io/apimachinery/pkg/runtime.RawExtension", "kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1.ClientConfig", "kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1.SecretTransform"}, + "k8s.io/api/core/v1.LocalObjectReference", "k8s.io/apimachinery/pkg/runtime.RawExtension", "kmodules.xyz/client-go/api/v1.TypedObjectReference", "kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1.ClientConfig", "kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1.SecretTransform"}, } } @@ -22429,6 +22435,16 @@ func schema_apimachinery_apis_autoscaling_v1alpha1_MongoDBComputeAutoscalerSpec( Ref: ref("kubedb.dev/apimachinery/apis/autoscaling/v1alpha1.ComputeAutoscalerSpec"), }, }, + "arbiter": { + SchemaProps: spec.SchemaProps{ + Ref: ref("kubedb.dev/apimachinery/apis/autoscaling/v1alpha1.ComputeAutoscalerSpec"), + }, + }, + "hidden": { + SchemaProps: spec.SchemaProps{ + Ref: ref("kubedb.dev/apimachinery/apis/autoscaling/v1alpha1.ComputeAutoscalerSpec"), + }, + }, }, }, }, @@ -22496,6 +22512,11 @@ func schema_apimachinery_apis_autoscaling_v1alpha1_MongoDBStorageAutoscalerSpec( Ref: ref("kubedb.dev/apimachinery/apis/autoscaling/v1alpha1.StorageAutoscalerSpec"), }, }, + "hidden": { + SchemaProps: spec.SchemaProps{ + Ref: ref("kubedb.dev/apimachinery/apis/autoscaling/v1alpha1.StorageAutoscalerSpec"), + }, + }, }, }, }, @@ -23298,33 +23319,6 @@ func schema_apimachinery_apis_autoscaling_v1alpha1_PostgresAutoscaler(ref common } } -func schema_apimachinery_apis_autoscaling_v1alpha1_PostgresAutoscalerBehavior(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "PostgresAutoscalerBehavior configures the scaling behavior of the target in both Up and Down directions (scaleUp and scaleDown fields respectively).", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "scaleUp": { - SchemaProps: spec.SchemaProps{ - Description: "scaleUp is scaling policy for scaling Up. If not set, the default value is the higher of:\n * increase no more than 4 pods per 60 seconds\n * double the number of pods per 60 seconds\nNo stabilization is used.", - Ref: ref("kubedb.dev/apimachinery/apis/autoscaling/v1alpha1.PostgresScalingRules"), - }, - }, - "scaleDown": { - SchemaProps: spec.SchemaProps{ - Description: "scaleDown is scaling policy for scaling Down. If not set, the default value is to allow to scale down to minReplicas pods, with a 300 second stabilization window (i.e., the highest recommendation for the last 300sec is used).", - Ref: ref("kubedb.dev/apimachinery/apis/autoscaling/v1alpha1.PostgresScalingRules"), - }, - }, - }, - }, - }, - Dependencies: []string{ - "kubedb.dev/apimachinery/apis/autoscaling/v1alpha1.PostgresScalingRules"}, - } -} - func schema_apimachinery_apis_autoscaling_v1alpha1_PostgresAutoscalerList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ @@ -23383,135 +23377,98 @@ func schema_apimachinery_apis_autoscaling_v1alpha1_PostgresAutoscalerSpec(ref co Description: "PostgresAutoscalerSpec describes the desired functionality of the PostgresAutoscaler.", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "scaleTargetRef": { - SchemaProps: spec.SchemaProps{ - Description: "scaleTargetRef points to the target resource to scale, and is used to the pods for which metrics should be collected, as well as to actually change the replica count.", - Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.LocalObjectReference"), - }, - }, - "minReplicas": { + "databaseRef": { SchemaProps: spec.SchemaProps{ - Description: "minReplicas is the lower limit for the number of replicas to which the autoscaler can scale down. It defaults to 1 pod. minReplicas is allowed to be 0 if the alpha feature gate HPAScaleToZero is enabled and at least one Object or External metric is configured. Scaling is active as long as at least one metric value is available.", - Type: []string{"integer"}, - Format: "int32", + Ref: ref("k8s.io/api/core/v1.LocalObjectReference"), }, }, - "maxReplicas": { + "opsRequestOptions": { SchemaProps: spec.SchemaProps{ - Description: "maxReplicas is the upper limit for the number of replicas to which the autoscaler can scale up. It cannot be less that minReplicas.", - Default: 0, - Type: []string{"integer"}, - Format: "int32", + Description: "This field will be used to control the behaviour of ops-manager", + Ref: ref("kubedb.dev/apimachinery/apis/autoscaling/v1alpha1.PostgresOpsRequestOptions"), }, }, - "metrics": { + "compute": { SchemaProps: spec.SchemaProps{ - Description: "metrics contains the specifications for which to use to calculate the desired replica count (the maximum replica count across all metrics will be used). The desired replica count is calculated multiplying the ratio between the target value and the current value by the current number of pods. Ergo, metrics used must decrease as the pod count is increased, and vice-versa. See the individual metric source types for more information about how each type of metric must respond. If not set, the default metric will be set to 80% average CPU utilization.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/autoscaling/v2beta2.MetricSpec"), - }, - }, - }, + Ref: ref("kubedb.dev/apimachinery/apis/autoscaling/v1alpha1.PostgresComputeAutoscalerSpec"), }, }, - "behavior": { + "storage": { SchemaProps: spec.SchemaProps{ - Description: "behavior configures the scaling behavior of the target in both Up and Down directions (scaleUp and scaleDown fields respectively). If not set, the default PostgresScalingRules for scale up and scale down are used.", - Ref: ref("kubedb.dev/apimachinery/apis/autoscaling/v1alpha1.PostgresAutoscalerBehavior"), + Ref: ref("kubedb.dev/apimachinery/apis/autoscaling/v1alpha1.PostgresStorageAutoscalerSpec"), }, }, }, - Required: []string{"scaleTargetRef", "maxReplicas"}, + Required: []string{"databaseRef"}, }, }, Dependencies: []string{ - "k8s.io/api/autoscaling/v2beta2.MetricSpec", "k8s.io/api/core/v1.LocalObjectReference", "kubedb.dev/apimachinery/apis/autoscaling/v1alpha1.PostgresAutoscalerBehavior"}, + "k8s.io/api/core/v1.LocalObjectReference", "kubedb.dev/apimachinery/apis/autoscaling/v1alpha1.PostgresComputeAutoscalerSpec", "kubedb.dev/apimachinery/apis/autoscaling/v1alpha1.PostgresOpsRequestOptions", "kubedb.dev/apimachinery/apis/autoscaling/v1alpha1.PostgresStorageAutoscalerSpec"}, } } -func schema_apimachinery_apis_autoscaling_v1alpha1_PostgresScalingPolicy(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_apimachinery_apis_autoscaling_v1alpha1_PostgresComputeAutoscalerSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "PostgresScalingPolicy is a single policy which must hold true for a specified past interval.", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "type": { - SchemaProps: spec.SchemaProps{ - Description: "Type is used to specify the scaling policy.", - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - "value": { - SchemaProps: spec.SchemaProps{ - Description: "Value contains the amount of change which is permitted by the policy. It must be greater than zero", - Default: 0, - Type: []string{"integer"}, - Format: "int32", - }, - }, - "periodSeconds": { + "postgres": { SchemaProps: spec.SchemaProps{ - Description: "PeriodSeconds specifies the window of time for which the policy should hold true. PeriodSeconds must be greater than zero and less than or equal to 1800 (30 min).", - Default: 0, - Type: []string{"integer"}, - Format: "int32", + Ref: ref("kubedb.dev/apimachinery/apis/autoscaling/v1alpha1.ComputeAutoscalerSpec"), }, }, }, - Required: []string{"type", "value", "periodSeconds"}, }, }, + Dependencies: []string{ + "kubedb.dev/apimachinery/apis/autoscaling/v1alpha1.ComputeAutoscalerSpec"}, } } -func schema_apimachinery_apis_autoscaling_v1alpha1_PostgresScalingRules(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_apimachinery_apis_autoscaling_v1alpha1_PostgresOpsRequestOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "PostgresScalingRules configures the scaling behavior for one direction. These Rules are applied after calculating DesiredReplicas from metrics for the HPA. They can limit the scaling velocity by specifying scaling policies. They can prevent flapping by specifying the stabilization window, so that the number of replicas is not set instantly, instead, the safest value from the stabilization window is chosen.", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "stabilizationWindowSeconds": { + "timeout": { SchemaProps: spec.SchemaProps{ - Description: "StabilizationWindowSeconds is the number of seconds for which past recommendations should be considered while scaling up or scaling down. StabilizationWindowSeconds must be greater than or equal to zero and less than or equal to 3600 (one hour). If not set, use the default values: - For scale up: 0 (i.e. no stabilization is done). - For scale down: 300 (i.e. the stabilization window is 300 seconds long).", - Type: []string{"integer"}, - Format: "int32", + Description: "Timeout for each step of the ops request in second. If a step doesn't finish within the specified timeout, the ops request will result in failure.", + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Duration"), }, }, - "selectPolicy": { + "apply": { SchemaProps: spec.SchemaProps{ - Description: "selectPolicy is used to specify which policy should be used. If not set, the default value MaxPolicySelect is used.", + Description: "ApplyOption is to control the execution of OpsRequest depending on the database state.", Type: []string{"string"}, Format: "", }, }, - "policies": { + }, + }, + }, + Dependencies: []string{ + "k8s.io/apimachinery/pkg/apis/meta/v1.Duration"}, + } +} + +func schema_apimachinery_apis_autoscaling_v1alpha1_PostgresStorageAutoscalerSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "postgres": { SchemaProps: spec.SchemaProps{ - Description: "policies is a list of potential scaling polices which can be used during scaling. At least one policy must be specified, otherwise the PostgresScalingRules will be discarded as invalid", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("kubedb.dev/apimachinery/apis/autoscaling/v1alpha1.PostgresScalingPolicy"), - }, - }, - }, + Ref: ref("kubedb.dev/apimachinery/apis/autoscaling/v1alpha1.StorageAutoscalerSpec"), }, }, }, }, }, Dependencies: []string{ - "kubedb.dev/apimachinery/apis/autoscaling/v1alpha1.PostgresScalingPolicy"}, + "kubedb.dev/apimachinery/apis/autoscaling/v1alpha1.StorageAutoscalerSpec"}, } } diff --git a/vendor/kubedb.dev/apimachinery/apis/autoscaling/v1alpha1/postgres_types.go b/vendor/kubedb.dev/apimachinery/apis/autoscaling/v1alpha1/postgres_types.go index 2cbfb2293..dd858264c 100644 --- a/vendor/kubedb.dev/apimachinery/apis/autoscaling/v1alpha1/postgres_types.go +++ b/vendor/kubedb.dev/apimachinery/apis/autoscaling/v1alpha1/postgres_types.go @@ -17,7 +17,8 @@ limitations under the License. package v1alpha1 import ( - "k8s.io/api/autoscaling/v2beta2" + opsapi "kubedb.dev/apimachinery/apis/ops/v1alpha1" + core "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" ) @@ -29,9 +30,9 @@ const ( ResourcePluralPostgresAutoscaler = "postgresautoscalers" ) -// PostgresAutoscaler is the configuration for a horizontal pod -// autoscaler, which automatically manages the replica count of any resource -// implementing the scale subresource based on the metrics specified. +// PostgresAutoscaler holds the configuration for autoscaling a Postgres database. +// which automatically manages pod resources based on historical and +// real time resource utilization. // +genclient // +k8s:openapi-gen=true @@ -59,90 +60,30 @@ type PostgresAutoscaler struct { // PostgresAutoscalerSpec describes the desired functionality of the PostgresAutoscaler. type PostgresAutoscalerSpec struct { - // scaleTargetRef points to the target resource to scale, and is used to the pods for which metrics - // should be collected, as well as to actually change the replica count. - ScaleTargetRef core.LocalObjectReference `json:"scaleTargetRef"` - // minReplicas is the lower limit for the number of replicas to which the autoscaler - // can scale down. It defaults to 1 pod. minReplicas is allowed to be 0 if the - // alpha feature gate HPAScaleToZero is enabled and at least one Object or External - // metric is configured. Scaling is active as long as at least one metric value is - // available. - // +optional - MinReplicas *int32 `json:"minReplicas,omitempty"` - // maxReplicas is the upper limit for the number of replicas to which the autoscaler can scale up. - // It cannot be less that minReplicas. - MaxReplicas int32 `json:"maxReplicas"` - // metrics contains the specifications for which to use to calculate the - // desired replica count (the maximum replica count across all metrics will - // be used). The desired replica count is calculated multiplying the - // ratio between the target value and the current value by the current - // number of pods. Ergo, metrics used must decrease as the pod count is - // increased, and vice-versa. See the individual metric source types for - // more information about how each type of metric must respond. - // If not set, the default metric will be set to 80% average CPU utilization. - // +optional - Metrics []v2beta2.MetricSpec `json:"metrics,omitempty"` + DatabaseRef *core.LocalObjectReference `json:"databaseRef"` - // behavior configures the scaling behavior of the target - // in both Up and Down directions (scaleUp and scaleDown fields respectively). - // If not set, the default PostgresScalingRules for scale up and scale down are used. - // +optional - Behavior *PostgresAutoscalerBehavior `json:"behavior,omitempty"` + // This field will be used to control the behaviour of ops-manager + OpsRequestOptions *PostgresOpsRequestOptions `json:"opsRequestOptions,omitempty"` + + Compute *PostgresComputeAutoscalerSpec `json:"compute,omitempty"` + Storage *PostgresStorageAutoscalerSpec `json:"storage,omitempty"` } -// PostgresAutoscalerBehavior configures the scaling behavior of the target -// in both Up and Down directions (scaleUp and scaleDown fields respectively). -type PostgresAutoscalerBehavior struct { - // scaleUp is scaling policy for scaling Up. - // If not set, the default value is the higher of: - // * increase no more than 4 pods per 60 seconds - // * double the number of pods per 60 seconds - // No stabilization is used. - // +optional - ScaleUp *PostgresScalingRules `json:"scaleUp,omitempty"` - // scaleDown is scaling policy for scaling Down. - // If not set, the default value is to allow to scale down to minReplicas pods, with a - // 300 second stabilization window (i.e., the highest recommendation for - // the last 300sec is used). - // +optional - ScaleDown *PostgresScalingRules `json:"scaleDown,omitempty"` +type PostgresComputeAutoscalerSpec struct { + Postgres *ComputeAutoscalerSpec `json:"postgres,omitempty"` } -// PostgresScalingRules configures the scaling behavior for one direction. -// These Rules are applied after calculating DesiredReplicas from metrics for the HPA. -// They can limit the scaling velocity by specifying scaling policies. -// They can prevent flapping by specifying the stabilization window, so that the -// number of replicas is not set instantly, instead, the safest value from the stabilization -// window is chosen. -type PostgresScalingRules struct { - // StabilizationWindowSeconds is the number of seconds for which past recommendations should be - // considered while scaling up or scaling down. - // StabilizationWindowSeconds must be greater than or equal to zero and less than or equal to 3600 (one hour). - // If not set, use the default values: - // - For scale up: 0 (i.e. no stabilization is done). - // - For scale down: 300 (i.e. the stabilization window is 300 seconds long). - // +optional - StabilizationWindowSeconds *int32 `json:"stabilizationWindowSeconds"` - // selectPolicy is used to specify which policy should be used. - // If not set, the default value MaxPolicySelect is used. - // +optional - SelectPolicy *v2beta2.ScalingPolicySelect `json:"selectPolicy,omitempty"` - // policies is a list of potential scaling polices which can be used during scaling. - // At least one policy must be specified, otherwise the PostgresScalingRules will be discarded as invalid - // +optional - Policies []PostgresScalingPolicy `json:"policies,omitempty"` +type PostgresStorageAutoscalerSpec struct { + Postgres *StorageAutoscalerSpec `json:"postgres,omitempty"` } -// PostgresScalingPolicy is a single policy which must hold true for a specified past interval. -type PostgresScalingPolicy struct { - // Type is used to specify the scaling policy. - Type v2beta2.HPAScalingPolicyType `json:"type"` - // Value contains the amount of change which is permitted by the policy. - // It must be greater than zero - Value int32 `json:"value"` - // PeriodSeconds specifies the window of time for which the policy should hold true. - // PeriodSeconds must be greater than zero and less than or equal to 1800 (30 min). - PeriodSeconds int32 `json:"periodSeconds"` +type PostgresOpsRequestOptions struct { + // Timeout for each step of the ops request in second. If a step doesn't finish within the specified timeout, the ops request will result in failure. + Timeout *metav1.Duration `json:"timeout,omitempty"` + + // ApplyOption is to control the execution of OpsRequest depending on the database state. + // +kubebuilder:default="IfReady" + Apply opsapi.ApplyOption `json:"apply,omitempty"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object diff --git a/vendor/kubedb.dev/apimachinery/apis/autoscaling/v1alpha1/postgres_webhook.go b/vendor/kubedb.dev/apimachinery/apis/autoscaling/v1alpha1/postgres_webhook.go new file mode 100644 index 000000000..67857804e --- /dev/null +++ b/vendor/kubedb.dev/apimachinery/apis/autoscaling/v1alpha1/postgres_webhook.go @@ -0,0 +1,105 @@ +/* +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 v1alpha1 + +import ( + "errors" + + opsapi "kubedb.dev/apimachinery/apis/ops/v1alpha1" + + "k8s.io/apimachinery/pkg/runtime" + "sigs.k8s.io/controller-runtime/pkg/builder" + logf "sigs.k8s.io/controller-runtime/pkg/log" + "sigs.k8s.io/controller-runtime/pkg/manager" + "sigs.k8s.io/controller-runtime/pkg/webhook" +) + +// log is for logging in this package. +var pgLog = logf.Log.WithName("postgres-autoscaler") + +func (in *PostgresAutoscaler) SetupWebhookWithManager(mgr manager.Manager) error { + return builder.WebhookManagedBy(mgr). + For(in). + Complete() +} + +// +kubebuilder:webhook:path=/mutate-autoscaling-kubedb-com-v1alpha1-postgresautoscaler,mutating=true,failurePolicy=fail,sideEffects=None,groups=autoscaling.kubedb.com,resources=postgresautoscaler,verbs=create;update,versions=v1alpha1,name=mpostgresautoscaler.kb.io,admissionReviewVersions={v1,v1beta1} + +var _ webhook.Defaulter = &PostgresAutoscaler{} + +// Default implements webhook.Defaulter so a webhook will be registered for the type +func (in *PostgresAutoscaler) Default() { + pgLog.Info("defaulting", "name", in.Name) + in.setDefaults() +} + +func (in *PostgresAutoscaler) setDefaults() { + in.setOpsReqOptsDefaults() + + if in.Spec.Storage != nil { + setDefaultStorageValues(in.Spec.Storage.Postgres) + } + + if in.Spec.Compute != nil { + setDefaultComputeValues(in.Spec.Compute.Postgres) + } +} + +func (in *PostgresAutoscaler) setOpsReqOptsDefaults() { + if in.Spec.OpsRequestOptions == nil { + in.Spec.OpsRequestOptions = &PostgresOpsRequestOptions{} + } + // Timeout is defaulted to 600s in ops-manager retries.go (to retry 120 times with 5sec pause between each) + // OplogMaxLagSeconds & ObjectsCountDiffPercentage are defaults to 0 + if in.Spec.OpsRequestOptions.Apply == "" { + in.Spec.OpsRequestOptions.Apply = opsapi.ApplyOptionIfReady + } +} + +func (in *PostgresAutoscaler) SetDefaults() { +} + +// +kubebuilder:webhook:path=/validate-schema-kubedb-com-v1alpha1-postgresautoscaler,mutating=false,failurePolicy=fail,sideEffects=None,groups=schema.kubedb.com,resources=postgresautoscalers,verbs=create;update;delete,versions=v1alpha1,name=vpostgresautoscaler.kb.io,admissionReviewVersions={v1,v1beta1} + +var _ webhook.Validator = &PostgresAutoscaler{} + +// ValidateCreate implements webhook.Validator so a webhook will be registered for the type +func (in *PostgresAutoscaler) ValidateCreate() error { + pgLog.Info("validate create", "name", in.Name) + return in.validate() +} + +// ValidateUpdate implements webhook.Validator so a webhook will be registered for the type +func (in *PostgresAutoscaler) ValidateUpdate(old runtime.Object) error { + pgLog.Info("validate create", "name", in.Name) + return in.validate() +} + +func (_ PostgresAutoscaler) ValidateDelete() error { + return nil +} + +func (in *PostgresAutoscaler) validate() error { + if in.Spec.DatabaseRef == nil { + return errors.New("databaseRef can't be empty") + } + return nil +} + +func (in *PostgresAutoscaler) ValidateFields() error { + return nil +} diff --git a/vendor/kubedb.dev/apimachinery/apis/autoscaling/v1alpha1/zz_generated.deepcopy.go b/vendor/kubedb.dev/apimachinery/apis/autoscaling/v1alpha1/zz_generated.deepcopy.go index 2041d3ad7..595d8c257 100644 --- a/vendor/kubedb.dev/apimachinery/apis/autoscaling/v1alpha1/zz_generated.deepcopy.go +++ b/vendor/kubedb.dev/apimachinery/apis/autoscaling/v1alpha1/zz_generated.deepcopy.go @@ -1090,6 +1090,16 @@ func (in *MongoDBComputeAutoscalerSpec) DeepCopyInto(out *MongoDBComputeAutoscal *out = new(ComputeAutoscalerSpec) (*in).DeepCopyInto(*out) } + if in.Arbiter != nil { + in, out := &in.Arbiter, &out.Arbiter + *out = new(ComputeAutoscalerSpec) + (*in).DeepCopyInto(*out) + } + if in.Hidden != nil { + in, out := &in.Hidden, &out.Hidden + *out = new(ComputeAutoscalerSpec) + (*in).DeepCopyInto(*out) + } return } @@ -1152,6 +1162,11 @@ func (in *MongoDBStorageAutoscalerSpec) DeepCopyInto(out *MongoDBStorageAutoscal *out = new(StorageAutoscalerSpec) (*in).DeepCopyInto(*out) } + if in.Hidden != nil { + in, out := &in.Hidden, &out.Hidden + *out = new(StorageAutoscalerSpec) + (*in).DeepCopyInto(*out) + } return } @@ -1740,32 +1755,6 @@ func (in *PostgresAutoscaler) DeepCopyObject() runtime.Object { return nil } -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *PostgresAutoscalerBehavior) DeepCopyInto(out *PostgresAutoscalerBehavior) { - *out = *in - if in.ScaleUp != nil { - in, out := &in.ScaleUp, &out.ScaleUp - *out = new(PostgresScalingRules) - (*in).DeepCopyInto(*out) - } - if in.ScaleDown != nil { - in, out := &in.ScaleDown, &out.ScaleDown - *out = new(PostgresScalingRules) - (*in).DeepCopyInto(*out) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PostgresAutoscalerBehavior. -func (in *PostgresAutoscalerBehavior) DeepCopy() *PostgresAutoscalerBehavior { - if in == nil { - return nil - } - out := new(PostgresAutoscalerBehavior) - in.DeepCopyInto(out) - return out -} - // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *PostgresAutoscalerList) DeepCopyInto(out *PostgresAutoscalerList) { *out = *in @@ -1802,22 +1791,24 @@ func (in *PostgresAutoscalerList) DeepCopyObject() runtime.Object { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *PostgresAutoscalerSpec) DeepCopyInto(out *PostgresAutoscalerSpec) { *out = *in - out.ScaleTargetRef = in.ScaleTargetRef - if in.MinReplicas != nil { - in, out := &in.MinReplicas, &out.MinReplicas - *out = new(int32) + if in.DatabaseRef != nil { + in, out := &in.DatabaseRef, &out.DatabaseRef + *out = new(corev1.LocalObjectReference) **out = **in } - if in.Metrics != nil { - in, out := &in.Metrics, &out.Metrics - *out = make([]v2beta2.MetricSpec, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } + if in.OpsRequestOptions != nil { + in, out := &in.OpsRequestOptions, &out.OpsRequestOptions + *out = new(PostgresOpsRequestOptions) + (*in).DeepCopyInto(*out) } - if in.Behavior != nil { - in, out := &in.Behavior, &out.Behavior - *out = new(PostgresAutoscalerBehavior) + if in.Compute != nil { + in, out := &in.Compute, &out.Compute + *out = new(PostgresComputeAutoscalerSpec) + (*in).DeepCopyInto(*out) + } + if in.Storage != nil { + in, out := &in.Storage, &out.Storage + *out = new(PostgresStorageAutoscalerSpec) (*in).DeepCopyInto(*out) } return @@ -1834,48 +1825,64 @@ func (in *PostgresAutoscalerSpec) DeepCopy() *PostgresAutoscalerSpec { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *PostgresScalingPolicy) DeepCopyInto(out *PostgresScalingPolicy) { +func (in *PostgresComputeAutoscalerSpec) DeepCopyInto(out *PostgresComputeAutoscalerSpec) { *out = *in + if in.Postgres != nil { + in, out := &in.Postgres, &out.Postgres + *out = new(ComputeAutoscalerSpec) + (*in).DeepCopyInto(*out) + } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PostgresScalingPolicy. -func (in *PostgresScalingPolicy) DeepCopy() *PostgresScalingPolicy { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PostgresComputeAutoscalerSpec. +func (in *PostgresComputeAutoscalerSpec) DeepCopy() *PostgresComputeAutoscalerSpec { if in == nil { return nil } - out := new(PostgresScalingPolicy) + out := new(PostgresComputeAutoscalerSpec) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *PostgresScalingRules) DeepCopyInto(out *PostgresScalingRules) { +func (in *PostgresOpsRequestOptions) DeepCopyInto(out *PostgresOpsRequestOptions) { *out = *in - if in.StabilizationWindowSeconds != nil { - in, out := &in.StabilizationWindowSeconds, &out.StabilizationWindowSeconds - *out = new(int32) + if in.Timeout != nil { + in, out := &in.Timeout, &out.Timeout + *out = new(metav1.Duration) **out = **in } - if in.SelectPolicy != nil { - in, out := &in.SelectPolicy, &out.SelectPolicy - *out = new(v2beta2.ScalingPolicySelect) - **out = **in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PostgresOpsRequestOptions. +func (in *PostgresOpsRequestOptions) DeepCopy() *PostgresOpsRequestOptions { + if in == nil { + return nil } - if in.Policies != nil { - in, out := &in.Policies, &out.Policies - *out = make([]PostgresScalingPolicy, len(*in)) - copy(*out, *in) + out := new(PostgresOpsRequestOptions) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *PostgresStorageAutoscalerSpec) DeepCopyInto(out *PostgresStorageAutoscalerSpec) { + *out = *in + if in.Postgres != nil { + in, out := &in.Postgres, &out.Postgres + *out = new(StorageAutoscalerSpec) + (*in).DeepCopyInto(*out) } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PostgresScalingRules. -func (in *PostgresScalingRules) DeepCopy() *PostgresScalingRules { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PostgresStorageAutoscalerSpec. +func (in *PostgresStorageAutoscalerSpec) DeepCopy() *PostgresStorageAutoscalerSpec { if in == nil { return nil } - out := new(PostgresScalingRules) + out := new(PostgresStorageAutoscalerSpec) in.DeepCopyInto(out) return out } diff --git a/vendor/kubedb.dev/apimachinery/apis/catalog/v1alpha1/openapi_generated.go b/vendor/kubedb.dev/apimachinery/apis/catalog/v1alpha1/openapi_generated.go index 0fc91a2eb..36c6ec089 100644 --- a/vendor/kubedb.dev/apimachinery/apis/catalog/v1alpha1/openapi_generated.go +++ b/vendor/kubedb.dev/apimachinery/apis/catalog/v1alpha1/openapi_generated.go @@ -18765,6 +18765,12 @@ func schema_custom_resources_apis_appcatalog_v1alpha1_AppBindingSpec(ref common. Format: "", }, }, + "appRef": { + SchemaProps: spec.SchemaProps{ + Description: "Reference to underlying application", + Ref: ref("kmodules.xyz/client-go/api/v1.TypedObjectReference"), + }, + }, "version": { SchemaProps: spec.SchemaProps{ Description: "Version used to facilitate programmatic handling of application.", @@ -18816,7 +18822,7 @@ func schema_custom_resources_apis_appcatalog_v1alpha1_AppBindingSpec(ref common. }, }, Dependencies: []string{ - "k8s.io/api/core/v1.LocalObjectReference", "k8s.io/apimachinery/pkg/runtime.RawExtension", "kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1.ClientConfig", "kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1.SecretTransform"}, + "k8s.io/api/core/v1.LocalObjectReference", "k8s.io/apimachinery/pkg/runtime.RawExtension", "kmodules.xyz/client-go/api/v1.TypedObjectReference", "kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1.ClientConfig", "kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1.SecretTransform"}, } } diff --git a/vendor/kubedb.dev/apimachinery/apis/config/v1alpha1/openapi_generated.go b/vendor/kubedb.dev/apimachinery/apis/config/v1alpha1/openapi_generated.go index b180c255d..eb1d8f476 100644 --- a/vendor/kubedb.dev/apimachinery/apis/config/v1alpha1/openapi_generated.go +++ b/vendor/kubedb.dev/apimachinery/apis/config/v1alpha1/openapi_generated.go @@ -18680,6 +18680,12 @@ func schema_custom_resources_apis_appcatalog_v1alpha1_AppBindingSpec(ref common. Format: "", }, }, + "appRef": { + SchemaProps: spec.SchemaProps{ + Description: "Reference to underlying application", + Ref: ref("kmodules.xyz/client-go/api/v1.TypedObjectReference"), + }, + }, "version": { SchemaProps: spec.SchemaProps{ Description: "Version used to facilitate programmatic handling of application.", @@ -18731,7 +18737,7 @@ func schema_custom_resources_apis_appcatalog_v1alpha1_AppBindingSpec(ref common. }, }, Dependencies: []string{ - "k8s.io/api/core/v1.LocalObjectReference", "k8s.io/apimachinery/pkg/runtime.RawExtension", "kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1.ClientConfig", "kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1.SecretTransform"}, + "k8s.io/api/core/v1.LocalObjectReference", "k8s.io/apimachinery/pkg/runtime.RawExtension", "kmodules.xyz/client-go/api/v1.TypedObjectReference", "kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1.ClientConfig", "kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1.SecretTransform"}, } } diff --git a/vendor/kubedb.dev/apimachinery/apis/dashboard/v1alpha1/openapi_generated.go b/vendor/kubedb.dev/apimachinery/apis/dashboard/v1alpha1/openapi_generated.go index 29fe7f8a6..66cbfd932 100644 --- a/vendor/kubedb.dev/apimachinery/apis/dashboard/v1alpha1/openapi_generated.go +++ b/vendor/kubedb.dev/apimachinery/apis/dashboard/v1alpha1/openapi_generated.go @@ -18681,6 +18681,12 @@ func schema_custom_resources_apis_appcatalog_v1alpha1_AppBindingSpec(ref common. Format: "", }, }, + "appRef": { + SchemaProps: spec.SchemaProps{ + Description: "Reference to underlying application", + Ref: ref("kmodules.xyz/client-go/api/v1.TypedObjectReference"), + }, + }, "version": { SchemaProps: spec.SchemaProps{ Description: "Version used to facilitate programmatic handling of application.", @@ -18732,7 +18738,7 @@ func schema_custom_resources_apis_appcatalog_v1alpha1_AppBindingSpec(ref common. }, }, Dependencies: []string{ - "k8s.io/api/core/v1.LocalObjectReference", "k8s.io/apimachinery/pkg/runtime.RawExtension", "kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1.ClientConfig", "kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1.SecretTransform"}, + "k8s.io/api/core/v1.LocalObjectReference", "k8s.io/apimachinery/pkg/runtime.RawExtension", "kmodules.xyz/client-go/api/v1.TypedObjectReference", "kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1.ClientConfig", "kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1.SecretTransform"}, } } diff --git a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha1/openapi_generated.go b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha1/openapi_generated.go index cc53de765..1e401ad07 100644 --- a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha1/openapi_generated.go +++ b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha1/openapi_generated.go @@ -18739,6 +18739,12 @@ func schema_custom_resources_apis_appcatalog_v1alpha1_AppBindingSpec(ref common. Format: "", }, }, + "appRef": { + SchemaProps: spec.SchemaProps{ + Description: "Reference to underlying application", + Ref: ref("kmodules.xyz/client-go/api/v1.TypedObjectReference"), + }, + }, "version": { SchemaProps: spec.SchemaProps{ Description: "Version used to facilitate programmatic handling of application.", @@ -18790,7 +18796,7 @@ func schema_custom_resources_apis_appcatalog_v1alpha1_AppBindingSpec(ref common. }, }, Dependencies: []string{ - "k8s.io/api/core/v1.LocalObjectReference", "k8s.io/apimachinery/pkg/runtime.RawExtension", "kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1.ClientConfig", "kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1.SecretTransform"}, + "k8s.io/api/core/v1.LocalObjectReference", "k8s.io/apimachinery/pkg/runtime.RawExtension", "kmodules.xyz/client-go/api/v1.TypedObjectReference", "kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1.ClientConfig", "kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1.SecretTransform"}, } } diff --git a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/constants.go b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/constants.go index 864756bb2..eed27ec57 100644 --- a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/constants.go +++ b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/constants.go @@ -331,6 +331,7 @@ const ( PostgresCoordinatorContainerName = "pg-coordinator" PostgresCoordinatorPort = 2380 PostgresCoordinatorPortName = "coordinator" + PostgresContainerName = ResourceSingularPostgres PostgresCoordinatorClientPort = 2379 PostgresCoordinatorClientPortName = "coordinatclient" diff --git a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/elasticsearch_helpers.go b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/elasticsearch_helpers.go index 1c45bfcd6..fee6024c9 100644 --- a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/elasticsearch_helpers.go +++ b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/elasticsearch_helpers.go @@ -127,6 +127,13 @@ func (e Elasticsearch) ResourcePlural() string { return ResourcePluralElasticsearch } +func (e Elasticsearch) GetAuthSecretName() string { + if e.Spec.AuthSecret != nil && e.Spec.AuthSecret.Name != "" { + return e.Spec.AuthSecret.Name + } + return meta_util.NameWithSuffix(e.OffshootName(), "auth") +} + func (e Elasticsearch) ServiceName() string { return e.OffshootName() } diff --git a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/etcd_helpers.go b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/etcd_helpers.go index 720bc1b67..09c679925 100644 --- a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/etcd_helpers.go +++ b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/etcd_helpers.go @@ -92,6 +92,13 @@ func (e Etcd) ResourcePlural() string { return ResourcePluralEtcd } +func (e Etcd) GetAuthSecretName() string { + if e.Spec.AuthSecret != nil && e.Spec.AuthSecret.Name != "" { + return e.Spec.AuthSecret.Name + } + return meta_util.NameWithSuffix(e.OffshootName(), "auth") +} + func (e Etcd) ClientServiceName() string { return e.OffshootName() + "-client" } diff --git a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/mariadb_helpers.go b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/mariadb_helpers.go index b80352c34..d8826ca45 100644 --- a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/mariadb_helpers.go +++ b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/mariadb_helpers.go @@ -115,7 +115,10 @@ func (m MariaDB) PeerName(idx int) string { } func (m MariaDB) GetAuthSecretName() string { - return m.Spec.AuthSecret.Name + if m.Spec.AuthSecret != nil && m.Spec.AuthSecret.Name != "" { + return m.Spec.AuthSecret.Name + } + return meta_util.NameWithSuffix(m.OffshootName(), "auth") } func (m MariaDB) ClusterName() string { @@ -295,10 +298,6 @@ func (m *MariaDB) GetCertSecretName(alias MariaDBCertificateAlias) string { return m.CertificateName(alias) } -func (m *MariaDB) AuthSecretName() string { - return meta_util.NameWithSuffix(m.Name, "auth") -} - func (m *MariaDB) ReplicasAreReady(lister appslister.StatefulSetLister) (bool, string, error) { // Desire number of statefulSets expectedItems := 1 diff --git a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/mongodb_helpers.go b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/mongodb_helpers.go index abadac193..019a1de19 100644 --- a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/mongodb_helpers.go +++ b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/mongodb_helpers.go @@ -351,6 +351,13 @@ func (m MongoDB) ResourcePlural() string { return ResourcePluralMongoDB } +func (m MongoDB) GetAuthSecretName() string { + if m.Spec.AuthSecret != nil && m.Spec.AuthSecret.Name != "" { + return m.Spec.AuthSecret.Name + } + return meta_util.NameWithSuffix(m.OffshootName(), "auth") +} + func (m MongoDB) ServiceName() string { return m.OffshootName() } diff --git a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/mysql_helpers.go b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/mysql_helpers.go index dfef59995..e68bbf9e0 100644 --- a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/mysql_helpers.go +++ b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/mysql_helpers.go @@ -158,10 +158,10 @@ func (m MySQL) PeerName(idx int) string { } func (m MySQL) GetAuthSecretName() string { - if m.Spec.AuthSecret != nil { + if m.Spec.AuthSecret != nil && m.Spec.AuthSecret.Name != "" { return m.Spec.AuthSecret.Name } - return meta_util.NameWithSuffix(m.Name, "auth") + return meta_util.NameWithSuffix(m.OffshootName(), "auth") } type mysqlApp struct { diff --git a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/openapi_generated.go b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/openapi_generated.go index 6968076ce..530b30fb9 100644 --- a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/openapi_generated.go +++ b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/openapi_generated.go @@ -487,7 +487,6 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "kubedb.dev/apimachinery/apis/kubedb/v1alpha2.PostgresSpec": schema_apimachinery_apis_kubedb_v1alpha2_PostgresSpec(ref), "kubedb.dev/apimachinery/apis/kubedb/v1alpha2.PostgresStatus": schema_apimachinery_apis_kubedb_v1alpha2_PostgresStatus(ref), "kubedb.dev/apimachinery/apis/kubedb/v1alpha2.ProxySQL": schema_apimachinery_apis_kubedb_v1alpha2_ProxySQL(ref), - "kubedb.dev/apimachinery/apis/kubedb/v1alpha2.ProxySQLBackendSpec": schema_apimachinery_apis_kubedb_v1alpha2_ProxySQLBackendSpec(ref), "kubedb.dev/apimachinery/apis/kubedb/v1alpha2.ProxySQLConfiguration": schema_apimachinery_apis_kubedb_v1alpha2_ProxySQLConfiguration(ref), "kubedb.dev/apimachinery/apis/kubedb/v1alpha2.ProxySQLList": schema_apimachinery_apis_kubedb_v1alpha2_ProxySQLList(ref), "kubedb.dev/apimachinery/apis/kubedb/v1alpha2.ProxySQLSpec": schema_apimachinery_apis_kubedb_v1alpha2_ProxySQLSpec(ref), @@ -18789,6 +18788,12 @@ func schema_custom_resources_apis_appcatalog_v1alpha1_AppBindingSpec(ref common. Format: "", }, }, + "appRef": { + SchemaProps: spec.SchemaProps{ + Description: "Reference to underlying application", + Ref: ref("kmodules.xyz/client-go/api/v1.TypedObjectReference"), + }, + }, "version": { SchemaProps: spec.SchemaProps{ Description: "Version used to facilitate programmatic handling of application.", @@ -18840,7 +18845,7 @@ func schema_custom_resources_apis_appcatalog_v1alpha1_AppBindingSpec(ref common. }, }, Dependencies: []string{ - "k8s.io/api/core/v1.LocalObjectReference", "k8s.io/apimachinery/pkg/runtime.RawExtension", "kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1.ClientConfig", "kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1.SecretTransform"}, + "k8s.io/api/core/v1.LocalObjectReference", "k8s.io/apimachinery/pkg/runtime.RawExtension", "kmodules.xyz/client-go/api/v1.TypedObjectReference", "kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1.ClientConfig", "kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1.SecretTransform"}, } } @@ -24908,33 +24913,6 @@ func schema_apimachinery_apis_kubedb_v1alpha2_ProxySQL(ref common.ReferenceCallb } } -func schema_apimachinery_apis_kubedb_v1alpha2_ProxySQLBackendSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "ref": { - SchemaProps: spec.SchemaProps{ - Description: "Ref lets one to locate the typed referenced object (in our case, it is the MySQL/Percona-XtraDB/ProxySQL object) inside the same namespace.", - Ref: ref("k8s.io/api/core/v1.TypedLocalObjectReference"), - }, - }, - "replicas": { - SchemaProps: spec.SchemaProps{ - Description: "Number of backend servers.", - Type: []string{"integer"}, - Format: "int32", - }, - }, - }, - }, - }, - Dependencies: []string{ - "k8s.io/api/core/v1.TypedLocalObjectReference"}, - } -} - func schema_apimachinery_apis_kubedb_v1alpha2_ProxySQLConfiguration(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ @@ -25082,8 +25060,8 @@ func schema_apimachinery_apis_kubedb_v1alpha2_ProxySQLSpec(ref common.ReferenceC }, "backend": { SchemaProps: spec.SchemaProps{ - Description: "Backend specifies the information about backend MySQL/Percona-XtraDB/MariaDB servers", - Ref: ref("kubedb.dev/apimachinery/apis/kubedb/v1alpha2.ProxySQLBackendSpec"), + Description: "Backend refers to the AppBinding of the backend MySQL/MariaDB/Percona-XtraDB server", + Ref: ref("k8s.io/api/core/v1.LocalObjectReference"), }, }, "authSecret": { @@ -25150,7 +25128,7 @@ func schema_apimachinery_apis_kubedb_v1alpha2_ProxySQLSpec(ref common.ReferenceC }, }, Dependencies: []string{ - "k8s.io/api/core/v1.LocalObjectReference", "kmodules.xyz/client-go/api/v1.HealthCheckSpec", "kmodules.xyz/client-go/api/v1.TLSConfig", "kmodules.xyz/monitoring-agent-api/api/v1.AgentSpec", "kmodules.xyz/offshoot-api/api/v1.PodTemplateSpec", "kubedb.dev/apimachinery/apis/kubedb/v1alpha2.AutoOpsSpec", "kubedb.dev/apimachinery/apis/kubedb/v1alpha2.NamedServiceTemplateSpec", "kubedb.dev/apimachinery/apis/kubedb/v1alpha2.ProxySQLBackendSpec", "kubedb.dev/apimachinery/apis/kubedb/v1alpha2.ProxySQLConfiguration", "kubedb.dev/apimachinery/apis/kubedb/v1alpha2.SecretReference"}, + "k8s.io/api/core/v1.LocalObjectReference", "kmodules.xyz/client-go/api/v1.HealthCheckSpec", "kmodules.xyz/client-go/api/v1.TLSConfig", "kmodules.xyz/monitoring-agent-api/api/v1.AgentSpec", "kmodules.xyz/offshoot-api/api/v1.PodTemplateSpec", "kubedb.dev/apimachinery/apis/kubedb/v1alpha2.AutoOpsSpec", "kubedb.dev/apimachinery/apis/kubedb/v1alpha2.NamedServiceTemplateSpec", "kubedb.dev/apimachinery/apis/kubedb/v1alpha2.ProxySQLConfiguration", "kubedb.dev/apimachinery/apis/kubedb/v1alpha2.SecretReference"}, } } diff --git a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/perconaxtradb_helpers.go b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/perconaxtradb_helpers.go index 67828179e..1963951cd 100644 --- a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/perconaxtradb_helpers.go +++ b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/perconaxtradb_helpers.go @@ -111,7 +111,10 @@ func (p PerconaXtraDB) PeerName(idx int) string { } func (p PerconaXtraDB) GetAuthSecretName() string { - return p.Spec.AuthSecret.Name + if p.Spec.AuthSecret != nil && p.Spec.AuthSecret.Name != "" { + return p.Spec.AuthSecret.Name + } + return meta_util.NameWithSuffix(p.OffshootName(), "auth") } func (p PerconaXtraDB) ClusterName() string { @@ -309,10 +312,6 @@ func (p *PerconaXtraDB) GetCertSecretName(alias PerconaXtraDBCertificateAlias) s return p.CertificateName(alias) } -func (p *PerconaXtraDB) AuthSecretName() string { - return meta_util.NameWithSuffix(p.Name, "auth") -} - func (p *PerconaXtraDB) ReplicationSecretName() string { return meta_util.NameWithSuffix(p.Name, "replication") } diff --git a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/pgbouncer_helpers.go b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/pgbouncer_helpers.go index 15a1dba56..51b97de54 100644 --- a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/pgbouncer_helpers.go +++ b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/pgbouncer_helpers.go @@ -101,8 +101,8 @@ func (p PgBouncer) GoverningServiceName() string { return meta_util.NameWithSuffix(p.ServiceName(), "pods") } -func (p PgBouncer) AuthSecretName() string { - return meta_util.NameWithSuffix(p.ServiceName(), "auth") +func (p PgBouncer) GetAuthSecretName() string { + return meta_util.NameWithSuffix(p.OffshootName(), "auth") } func (p PgBouncer) ConfigSecretName() string { @@ -217,7 +217,7 @@ func (p *PgBouncer) GetPersistentSecrets() []string { return nil } var secrets []string - secrets = append(secrets, p.AuthSecretName()) + secrets = append(secrets, p.GetAuthSecretName()) secrets = append(secrets, p.ConfigSecretName()) return secrets diff --git a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/postgres_helpers.go b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/postgres_helpers.go index 382278ad3..2bc95feea 100644 --- a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/postgres_helpers.go +++ b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/postgres_helpers.go @@ -101,6 +101,13 @@ func (p Postgres) ResourcePlural() string { return ResourcePluralPostgres } +func (p Postgres) GetAuthSecretName() string { + if p.Spec.AuthSecret != nil && p.Spec.AuthSecret.Name != "" { + return p.Spec.AuthSecret.Name + } + return meta_util.NameWithSuffix(p.OffshootName(), "auth") +} + func (p Postgres) ServiceName() string { return p.OffshootName() } diff --git a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/proxysql_helpers.go b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/proxysql_helpers.go index e4497a7f2..149310d89 100644 --- a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/proxysql_helpers.go +++ b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/proxysql_helpers.go @@ -94,6 +94,13 @@ func (p ProxySQL) ResourcePlural() string { return ResourcePluralProxySQL } +func (p ProxySQL) GetAuthSecretName() string { + if p.Spec.AuthSecret != nil && p.Spec.AuthSecret.Name != "" { + return p.Spec.AuthSecret.Name + } + return meta_util.NameWithSuffix(p.OffshootName(), "auth") +} + func (p ProxySQL) ServiceName() string { return p.OffshootName() } diff --git a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/proxysql_types.go b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/proxysql_types.go index 0c3602db7..4839526a4 100644 --- a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/proxysql_types.go +++ b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/proxysql_types.go @@ -141,8 +141,8 @@ type ProxySQLSpec struct { // will be configured. It must be either "Galera" or "GroupReplication" Mode *LoadBalanceMode `json:"mode,omitempty"` - // Backend specifies the information about backend MySQL/Percona-XtraDB/MariaDB servers - Backend *ProxySQLBackendSpec `json:"backend,omitempty"` + // Backend refers to the AppBinding of the backend MySQL/MariaDB/Percona-XtraDB server + Backend *core.LocalObjectReference `json:"backend,omitempty"` // ProxySQL secret containing username and password for root user and proxysql user // +optional @@ -187,16 +187,6 @@ const ( ProxySQLMetricsExporterCert ProxySQLCertificateAlias = "metrics-exporter" ) -type ProxySQLBackendSpec struct { - // Ref lets one to locate the typed referenced object - // (in our case, it is the MySQL/Percona-XtraDB/ProxySQL object) - // inside the same namespace. - Ref *core.TypedLocalObjectReference `json:"ref,omitempty"` - - // Number of backend servers. - Replicas *int32 `json:"replicas,omitempty"` -} - type ProxySQLStatus struct { // Specifies the current phase of the database // +optional diff --git a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/redis_helpers.go b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/redis_helpers.go index 058299409..b74908889 100644 --- a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/redis_helpers.go +++ b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/redis_helpers.go @@ -102,6 +102,13 @@ func (r Redis) ResourcePlural() string { return ResourcePluralRedis } +func (r Redis) GetAuthSecretName() string { + if r.Spec.AuthSecret != nil && r.Spec.AuthSecret.Name != "" { + return r.Spec.AuthSecret.Name + } + return meta_util.NameWithSuffix(r.OffshootName(), "auth") +} + func (r Redis) ServiceName() string { return r.OffshootName() } diff --git a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/redis_sentinel_helpers.go b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/redis_sentinel_helpers.go index eca28f08b..7386f1afe 100644 --- a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/redis_sentinel_helpers.go +++ b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/redis_sentinel_helpers.go @@ -97,6 +97,13 @@ func (rs RedisSentinel) ResourcePlural() string { return ResourcePluralRedisSentinel } +func (rs RedisSentinel) GetAuthSecretName() string { + if rs.Spec.AuthSecret != nil && rs.Spec.AuthSecret.Name != "" { + return rs.Spec.AuthSecret.Name + } + return meta_util.NameWithSuffix(rs.OffshootName(), "auth") +} + func (rs RedisSentinel) GoverningServiceName() string { return meta_util.NameWithSuffix(rs.OffshootName(), "pods") } diff --git a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/redis_sentinel_types.go b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/redis_sentinel_types.go index dbb060832..86eb5631d 100644 --- a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/redis_sentinel_types.go +++ b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/redis_sentinel_types.go @@ -31,7 +31,7 @@ import ( // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +kubebuilder:object:root=true -// +kubebuilder:resource:path=redissentinels,singular=redissentinel,shortName=rds,categories={datastore,kubedb,appscode,all} +// +kubebuilder:resource:path=redissentinels,singular=redissentinel,categories={datastore,kubedb,appscode,all} // +kubebuilder:subresource:status // +kubebuilder:printcolumn:name="Version",type="string",JSONPath=".spec.version" // +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.phase" diff --git a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/zz_generated.deepcopy.go b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/zz_generated.deepcopy.go index d56ee3132..5316e70db 100644 --- a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/zz_generated.deepcopy.go +++ b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/zz_generated.deepcopy.go @@ -2324,32 +2324,6 @@ func (in *ProxySQL) DeepCopyObject() runtime.Object { return nil } -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ProxySQLBackendSpec) DeepCopyInto(out *ProxySQLBackendSpec) { - *out = *in - if in.Ref != nil { - in, out := &in.Ref, &out.Ref - *out = new(corev1.TypedLocalObjectReference) - (*in).DeepCopyInto(*out) - } - if in.Replicas != nil { - in, out := &in.Replicas, &out.Replicas - *out = new(int32) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProxySQLBackendSpec. -func (in *ProxySQLBackendSpec) DeepCopy() *ProxySQLBackendSpec { - if in == nil { - return nil - } - out := new(ProxySQLBackendSpec) - in.DeepCopyInto(out) - return out -} - // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *ProxySQLConfiguration) DeepCopyInto(out *ProxySQLConfiguration) { *out = *in @@ -2448,8 +2422,8 @@ func (in *ProxySQLSpec) DeepCopyInto(out *ProxySQLSpec) { } if in.Backend != nil { in, out := &in.Backend, &out.Backend - *out = new(ProxySQLBackendSpec) - (*in).DeepCopyInto(*out) + *out = new(corev1.LocalObjectReference) + **out = **in } if in.AuthSecret != nil { in, out := &in.AuthSecret, &out.AuthSecret diff --git a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/elasticsearch_ops_helpers.go b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/elasticsearch_ops_helpers.go index d47389b15..818798ecb 100644 --- a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/elasticsearch_ops_helpers.go +++ b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/elasticsearch_ops_helpers.go @@ -63,8 +63,8 @@ func (e *ElasticsearchOpsRequest) GetObjectMeta() metav1.ObjectMeta { return e.ObjectMeta } -func (e *ElasticsearchOpsRequest) GetRequestType() OpsRequestType { - return e.Spec.Type +func (e *ElasticsearchOpsRequest) GetRequestType() string { + return string(e.Spec.Type) } func (e *ElasticsearchOpsRequest) GetDBRefName() string { diff --git a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/elasticsearch_ops_types.go b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/elasticsearch_ops_types.go index e63b039ca..735a96659 100644 --- a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/elasticsearch_ops_types.go +++ b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/elasticsearch_ops_types.go @@ -53,7 +53,7 @@ type ElasticsearchOpsRequestSpec struct { // Specifies the Elasticsearch reference DatabaseRef core.LocalObjectReference `json:"databaseRef"` // Specifies the ops request type: Upgrade, HorizontalScaling, VerticalScaling etc. - Type OpsRequestType `json:"type"` + Type ElasticsearchOpsRequestType `json:"type"` // Specifies information necessary for upgrading Elasticsearch Upgrade *ElasticsearchUpgradeSpec `json:"upgrade,omitempty"` // Specifies information necessary for horizontal scaling @@ -75,6 +75,28 @@ type ElasticsearchOpsRequestSpec struct { Apply ApplyOption `json:"apply,omitempty"` } +// +kubebuilder:validation:Enum=Upgrade;UpdateVersion;HorizontalScaling;VerticalScaling;VolumeExpansion;Restart;Reconfigure;ReconfigureTLS +type ElasticsearchOpsRequestType string + +const ( + // Deprecated. Use UpdateVersion + ElasticsearchOpsRequestTypeUpgrade ElasticsearchOpsRequestType = "Upgrade" + // used for UpdateVersion operation + ElasticsearchOpsRequestTypeUpdateVersion ElasticsearchOpsRequestType = "UpdateVersion" + // used for HorizontalScaling operation + ElasticsearchOpsRequestTypeHorizontalScaling ElasticsearchOpsRequestType = "HorizontalScaling" + // used for VerticalScaling operation + ElasticsearchOpsRequestTypeVerticalScaling ElasticsearchOpsRequestType = "VerticalScaling" + // used for VolumeExpansion operation + ElasticsearchOpsRequestTypeVolumeExpansion ElasticsearchOpsRequestType = "VolumeExpansion" + // used for Restart operation + ElasticsearchOpsRequestTypeRestart ElasticsearchOpsRequestType = "Restart" + // used for Reconfigure operation + ElasticsearchOpsRequestTypeReconfigure ElasticsearchOpsRequestType = "Reconfigure" + // used for ReconfigureTLS operation + ElasticsearchOpsRequestTypeReconfigureTLSs ElasticsearchOpsRequestType = "ReconfigureTLS" +) + // ElasticsearchReplicaReadinessCriteria is the criteria for checking readiness of an Elasticsearch database type ElasticsearchReplicaReadinessCriteria struct{} diff --git a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/etcd_ops_helpers.go b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/etcd_ops_helpers.go index 35ba39552..3f14b09fc 100644 --- a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/etcd_ops_helpers.go +++ b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/etcd_ops_helpers.go @@ -63,8 +63,8 @@ func (e *EtcdOpsRequest) GetObjectMeta() metav1.ObjectMeta { return e.ObjectMeta } -func (e *EtcdOpsRequest) GetRequestType() OpsRequestType { - return e.Spec.Type +func (e *EtcdOpsRequest) GetRequestType() string { + return string(e.Spec.Type) } func (e *EtcdOpsRequest) GetDBRefName() string { diff --git a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/etcd_ops_types.go b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/etcd_ops_types.go index bdbf4a005..af79cbf98 100644 --- a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/etcd_ops_types.go +++ b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/etcd_ops_types.go @@ -52,7 +52,7 @@ type EtcdOpsRequestSpec struct { // Specifies the Etcd reference DatabaseRef core.LocalObjectReference `json:"databaseRef"` // Specifies the ops request type: Upgrade, HorizontalScaling, VerticalScaling etc. - Type OpsRequestType `json:"type"` + Type EtcdOpsRequestType `json:"type"` // Specifies information necessary for upgrading Etcd Upgrade *EtcdUpgradeSpec `json:"upgrade,omitempty"` // Specifies information necessary for horizontal scaling @@ -72,6 +72,26 @@ type EtcdOpsRequestSpec struct { Apply ApplyOption `json:"apply,omitempty"` } +// +kubebuilder:validation:Enum=UpdateVersion;HorizontalScaling;VerticalScaling;VolumeExpansion;Restart;Reconfigure;ReconfigureTLS +type EtcdOpsRequestType string + +const ( + // used for UpdateVersion operation + EtcdOpsRequestTypeUpdateVersion EtcdOpsRequestType = "UpdateVersion" + // used for HorizontalScaling operation + EtcdOpsRequestTypeHorizontalScaling EtcdOpsRequestType = "HorizontalScaling" + // used for VerticalScaling operation + EtcdOpsRequestTypeVerticalScaling EtcdOpsRequestType = "VerticalScaling" + // used for VolumeExpansion operation + EtcdOpsRequestTypeVolumeExpansion EtcdOpsRequestType = "VolumeExpansion" + // used for Restart operation + EtcdOpsRequestTypeRestart EtcdOpsRequestType = "Restart" + // used for Reconfigure operation + EtcdOpsRequestTypeReconfigure EtcdOpsRequestType = "Reconfigure" + // used for ReconfigureTLS operation + EtcdOpsRequestTypeReconfigureTLSs EtcdOpsRequestType = "ReconfigureTLS" +) + // EtcdReplicaReadinessCriteria is the criteria for checking readiness of a Etcd pod // after updating, horizontal scaling etc. type EtcdReplicaReadinessCriteria struct{} diff --git a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/mariadb_ops_helpers.go b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/mariadb_ops_helpers.go index dcf4828ba..bf6b7627f 100644 --- a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/mariadb_ops_helpers.go +++ b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/mariadb_ops_helpers.go @@ -84,8 +84,8 @@ func (e *MariaDBOpsRequest) GetObjectMeta() metav1.ObjectMeta { return e.ObjectMeta } -func (e *MariaDBOpsRequest) GetRequestType() OpsRequestType { - return e.Spec.Type +func (e *MariaDBOpsRequest) GetRequestType() string { + return string(e.Spec.Type) } func (e *MariaDBOpsRequest) GetDBRefName() string { diff --git a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/mariadb_ops_types.go b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/mariadb_ops_types.go index 1bf0fa827..bbcb8707c 100644 --- a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/mariadb_ops_types.go +++ b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/mariadb_ops_types.go @@ -53,7 +53,7 @@ type MariaDBOpsRequestSpec struct { // Specifies the MariaDB reference DatabaseRef core.LocalObjectReference `json:"databaseRef"` // Specifies the ops request type: Upgrade, HorizontalScaling, VerticalScaling etc. - Type OpsRequestType `json:"type"` + Type MariaDBOpsRequestType `json:"type"` // Specifies information necessary for upgrading MariaDB Upgrade *MariaDBUpgradeSpec `json:"upgrade,omitempty"` // Specifies information necessary for horizontal scaling @@ -75,6 +75,28 @@ type MariaDBOpsRequestSpec struct { Apply ApplyOption `json:"apply,omitempty"` } +// +kubebuilder:validation:Enum=Upgrade;UpdateVersion;HorizontalScaling;VerticalScaling;VolumeExpansion;Restart;Reconfigure;ReconfigureTLS +type MariaDBOpsRequestType string + +const ( + // Deprecated. Use UpdateVersion + MariaDBOpsRequestTypeUpgrade MariaDBOpsRequestType = "Upgrade" + // used for UpdateVersion operation + MariaDBOpsRequestTypeUpdateVersion MariaDBOpsRequestType = "UpdateVersion" + // used for HorizontalScaling operation + MariaDBOpsRequestTypeHorizontalScaling MariaDBOpsRequestType = "HorizontalScaling" + // used for VerticalScaling operation + MariaDBOpsRequestTypeVerticalScaling MariaDBOpsRequestType = "VerticalScaling" + // used for VolumeExpansion operation + MariaDBOpsRequestTypeVolumeExpansion MariaDBOpsRequestType = "VolumeExpansion" + // used for Restart operation + MariaDBOpsRequestTypeRestart MariaDBOpsRequestType = "Restart" + // used for Reconfigure operation + MariaDBOpsRequestTypeReconfigure MariaDBOpsRequestType = "Reconfigure" + // used for ReconfigureTLS operation + MariaDBOpsRequestTypeReconfigureTLSs MariaDBOpsRequestType = "ReconfigureTLS" +) + // MariaDBReplicaReadinessCriteria is the criteria for checking readiness of an MariaDB database type MariaDBReplicaReadinessCriteria struct{} diff --git a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/memcached_ops_helpers.go b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/memcached_ops_helpers.go index c2d47a7b0..470afad7b 100644 --- a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/memcached_ops_helpers.go +++ b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/memcached_ops_helpers.go @@ -63,8 +63,8 @@ func (e *MemcachedOpsRequest) GetObjectMeta() metav1.ObjectMeta { return e.ObjectMeta } -func (e *MemcachedOpsRequest) GetRequestType() OpsRequestType { - return e.Spec.Type +func (e *MemcachedOpsRequest) GetRequestType() string { + return string(e.Spec.Type) } func (e *MemcachedOpsRequest) GetDBRefName() string { diff --git a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/memcached_ops_types.go b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/memcached_ops_types.go index cae46caae..65fd0877b 100644 --- a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/memcached_ops_types.go +++ b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/memcached_ops_types.go @@ -52,7 +52,7 @@ type MemcachedOpsRequestSpec struct { // Specifies the Memcached reference DatabaseRef core.LocalObjectReference `json:"databaseRef"` // Specifies the ops request type: Upgrade, HorizontalScaling, VerticalScaling etc. - Type OpsRequestType `json:"type"` + Type MemcachedOpsRequestType `json:"type"` // Specifies information necessary for upgrading Memcached Upgrade *MemcachedUpgradeSpec `json:"upgrade,omitempty"` // Specifies information necessary for horizontal scaling @@ -72,6 +72,28 @@ type MemcachedOpsRequestSpec struct { Apply ApplyOption `json:"apply,omitempty"` } +// +kubebuilder:validation:Enum=Upgrade;UpdateVersion;HorizontalScaling;VerticalScaling;VolumeExpansion;Restart;Reconfigure;ReconfigureTLS +type MemcachedOpsRequestType string + +const ( + // Deprecated. Use UpdateVersion + MemcachedOpsRequestTypeUpgrade MemcachedOpsRequestType = "Upgrade" + // used for UpdateVersion operation + MemcachedOpsRequestTypeUpdateVersion MemcachedOpsRequestType = "UpdateVersion" + // used for HorizontalScaling operation + MemcachedOpsRequestTypeHorizontalScaling MemcachedOpsRequestType = "HorizontalScaling" + // used for VerticalScaling operation + MemcachedOpsRequestTypeVerticalScaling MemcachedOpsRequestType = "VerticalScaling" + // used for VolumeExpansion operation + MemcachedOpsRequestTypeVolumeExpansion MemcachedOpsRequestType = "VolumeExpansion" + // used for Restart operation + MemcachedOpsRequestTypeRestart MemcachedOpsRequestType = "Restart" + // used for Reconfigure operation + MemcachedOpsRequestTypeReconfigure MemcachedOpsRequestType = "Reconfigure" + // used for ReconfigureTLS operation + MemcachedOpsRequestTypeReconfigureTLSs MemcachedOpsRequestType = "ReconfigureTLS" +) + // MemcachedReplicaReadinessCriteria is the criteria for checking readiness of a Memcached pod // after updating, horizontal scaling etc. type MemcachedReplicaReadinessCriteria struct{} diff --git a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/mongodb_ops_helpers.go b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/mongodb_ops_helpers.go index 5277accdd..0980c5def 100644 --- a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/mongodb_ops_helpers.go +++ b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/mongodb_ops_helpers.go @@ -63,8 +63,8 @@ func (e *MongoDBOpsRequest) GetObjectMeta() metav1.ObjectMeta { return e.ObjectMeta } -func (e *MongoDBOpsRequest) GetRequestType() OpsRequestType { - return e.Spec.Type +func (e *MongoDBOpsRequest) GetRequestType() string { + return string(e.Spec.Type) } func (e *MongoDBOpsRequest) GetDBRefName() string { diff --git a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/mongodb_ops_types.go b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/mongodb_ops_types.go index 58b5b927f..5b2a1bad1 100644 --- a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/mongodb_ops_types.go +++ b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/mongodb_ops_types.go @@ -53,7 +53,7 @@ type MongoDBOpsRequestSpec struct { // Specifies the MongoDB reference DatabaseRef core.LocalObjectReference `json:"databaseRef"` // Specifies the ops request type: Upgrade, HorizontalScaling, VerticalScaling etc. - Type OpsRequestType `json:"type"` + Type MongoDBOpsRequestType `json:"type"` // Specifies information necessary for upgrading mongodb Upgrade *MongoDBUpgradeSpec `json:"upgrade,omitempty"` // Specifies information necessary for horizontal scaling @@ -80,6 +80,30 @@ type MongoDBOpsRequestSpec struct { Apply ApplyOption `json:"apply,omitempty"` } +// +kubebuilder:validation:Enum=Upgrade;UpdateVersion;HorizontalScaling;VerticalScaling;VolumeExpansion;Restart;Reconfigure;ReconfigureTLS;Reprovision +type MongoDBOpsRequestType string + +const ( + // Deprecated. Use UpdateVersion + MongoDBOpsRequestTypeUpgrade MongoDBOpsRequestType = "Upgrade" + // used for UpdateVersion operation + MongoDBOpsRequestTypeUpdateVersion MongoDBOpsRequestType = "UpdateVersion" + // used for HorizontalScaling operation + MongoDBOpsRequestTypeHorizontalScaling MongoDBOpsRequestType = "HorizontalScaling" + // used for VerticalScaling operation + MongoDBOpsRequestTypeVerticalScaling MongoDBOpsRequestType = "VerticalScaling" + // used for VolumeExpansion operation + MongoDBOpsRequestTypeVolumeExpansion MongoDBOpsRequestType = "VolumeExpansion" + // used for Restart operation + MongoDBOpsRequestTypeRestart MongoDBOpsRequestType = "Restart" + // used for Reconfigure operation + MongoDBOpsRequestTypeReconfigure MongoDBOpsRequestType = "Reconfigure" + // used for ReconfigureTLS operation + MongoDBOpsRequestTypeReconfigureTLSs MongoDBOpsRequestType = "ReconfigureTLS" + // used for Reprovision operation + MongoDBOpsRequestTypeReprovision MongoDBOpsRequestType = "Reprovision" +) + // MongoDBReplicaReadinessCriteria is the criteria for checking readiness of a MongoDB pod // after restarting the pod type MongoDBReplicaReadinessCriteria struct { diff --git a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/mysql_ops_helpers.go b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/mysql_ops_helpers.go index df4487eed..83056432b 100644 --- a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/mysql_ops_helpers.go +++ b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/mysql_ops_helpers.go @@ -64,8 +64,8 @@ func (e *MySQLOpsRequest) GetObjectMeta() metav1.ObjectMeta { return e.ObjectMeta } -func (e *MySQLOpsRequest) GetRequestType() OpsRequestType { - return e.Spec.Type +func (e *MySQLOpsRequest) GetRequestType() string { + return string(e.Spec.Type) } func (e *MySQLOpsRequest) GetDBRefName() string { diff --git a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/mysql_ops_types.go b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/mysql_ops_types.go index 431a6a6f9..53786e278 100644 --- a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/mysql_ops_types.go +++ b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/mysql_ops_types.go @@ -53,7 +53,7 @@ type MySQLOpsRequestSpec struct { // Specifies the MySQL reference DatabaseRef core.LocalObjectReference `json:"databaseRef"` // Specifies the ops request type: Upgrade, HorizontalScaling, VerticalScaling etc. - Type OpsRequestType `json:"type"` + Type MySQLOpsRequestType `json:"type"` // Specifies information necessary for upgrading MySQL Upgrade *MySQLUpgradeSpec `json:"upgrade,omitempty"` // Specifies information necessary for horizontal scaling @@ -75,6 +75,28 @@ type MySQLOpsRequestSpec struct { Apply ApplyOption `json:"apply,omitempty"` } +// +kubebuilder:validation:Enum=Upgrade;UpdateVersion;HorizontalScaling;VerticalScaling;VolumeExpansion;Restart;Reconfigure;ReconfigureTLS +type MySQLOpsRequestType string + +const ( + // Deprecated. Use UpdateVersion + MySQLOpsRequestTypeUpgrade MySQLOpsRequestType = "Upgrade" + // used for UpdateVersion operation + MySQLOpsRequestTypeUpdateVersion MySQLOpsRequestType = "UpdateVersion" + // used for HorizontalScaling operation + MySQLOpsRequestTypeHorizontalScaling MySQLOpsRequestType = "HorizontalScaling" + // used for VerticalScaling operation + MySQLOpsRequestTypeVerticalScaling MySQLOpsRequestType = "VerticalScaling" + // used for VolumeExpansion operation + MySQLOpsRequestTypeVolumeExpansion MySQLOpsRequestType = "VolumeExpansion" + // used for Restart operation + MySQLOpsRequestTypeRestart MySQLOpsRequestType = "Restart" + // used for Reconfigure operation + MySQLOpsRequestTypeReconfigure MySQLOpsRequestType = "Reconfigure" + // used for ReconfigureTLS operation + MySQLOpsRequestTypeReconfigureTLSs MySQLOpsRequestType = "ReconfigureTLS" +) + // MySQLReplicaReadinessCriteria is the criteria for checking readiness of a MySQL pod // after updating, horizontal scaling etc. type MySQLReplicaReadinessCriteria struct{} diff --git a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/openapi_generated.go b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/openapi_generated.go index 804c8f64e..7fcb95463 100644 --- a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/openapi_generated.go +++ b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/openapi_generated.go @@ -510,7 +510,6 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "kubedb.dev/apimachinery/apis/ops/v1alpha1.PgBouncerReplicaReadinessCriteria": schema_apimachinery_apis_ops_v1alpha1_PgBouncerReplicaReadinessCriteria(ref), "kubedb.dev/apimachinery/apis/ops/v1alpha1.PgBouncerUpgradeSpec": schema_apimachinery_apis_ops_v1alpha1_PgBouncerUpgradeSpec(ref), "kubedb.dev/apimachinery/apis/ops/v1alpha1.PgBouncerVerticalScalingSpec": schema_apimachinery_apis_ops_v1alpha1_PgBouncerVerticalScalingSpec(ref), - "kubedb.dev/apimachinery/apis/ops/v1alpha1.PgBouncerVolumeExpansionSpec": schema_apimachinery_apis_ops_v1alpha1_PgBouncerVolumeExpansionSpec(ref), "kubedb.dev/apimachinery/apis/ops/v1alpha1.PostgresCustomConfiguration": schema_apimachinery_apis_ops_v1alpha1_PostgresCustomConfiguration(ref), "kubedb.dev/apimachinery/apis/ops/v1alpha1.PostgresCustomConfigurationSpec": schema_apimachinery_apis_ops_v1alpha1_PostgresCustomConfigurationSpec(ref), "kubedb.dev/apimachinery/apis/ops/v1alpha1.PostgresHorizontalScalingSpec": schema_apimachinery_apis_ops_v1alpha1_PostgresHorizontalScalingSpec(ref), @@ -530,7 +529,6 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "kubedb.dev/apimachinery/apis/ops/v1alpha1.ProxySQLReplicaReadinessCriteria": schema_apimachinery_apis_ops_v1alpha1_ProxySQLReplicaReadinessCriteria(ref), "kubedb.dev/apimachinery/apis/ops/v1alpha1.ProxySQLUpgradeSpec": schema_apimachinery_apis_ops_v1alpha1_ProxySQLUpgradeSpec(ref), "kubedb.dev/apimachinery/apis/ops/v1alpha1.ProxySQLVerticalScalingSpec": schema_apimachinery_apis_ops_v1alpha1_ProxySQLVerticalScalingSpec(ref), - "kubedb.dev/apimachinery/apis/ops/v1alpha1.ProxySQLVolumeExpansionSpec": schema_apimachinery_apis_ops_v1alpha1_ProxySQLVolumeExpansionSpec(ref), "kubedb.dev/apimachinery/apis/ops/v1alpha1.RedisCustomConfigurationSpec": schema_apimachinery_apis_ops_v1alpha1_RedisCustomConfigurationSpec(ref), "kubedb.dev/apimachinery/apis/ops/v1alpha1.RedisHorizontalScalingSpec": schema_apimachinery_apis_ops_v1alpha1_RedisHorizontalScalingSpec(ref), "kubedb.dev/apimachinery/apis/ops/v1alpha1.RedisOpsRequest": schema_apimachinery_apis_ops_v1alpha1_RedisOpsRequest(ref), @@ -542,10 +540,13 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "kubedb.dev/apimachinery/apis/ops/v1alpha1.RedisSentinelOpsRequest": schema_apimachinery_apis_ops_v1alpha1_RedisSentinelOpsRequest(ref), "kubedb.dev/apimachinery/apis/ops/v1alpha1.RedisSentinelOpsRequestList": schema_apimachinery_apis_ops_v1alpha1_RedisSentinelOpsRequestList(ref), "kubedb.dev/apimachinery/apis/ops/v1alpha1.RedisSentinelOpsRequestSpec": schema_apimachinery_apis_ops_v1alpha1_RedisSentinelOpsRequestSpec(ref), + "kubedb.dev/apimachinery/apis/ops/v1alpha1.RedisSentinelRef": schema_apimachinery_apis_ops_v1alpha1_RedisSentinelRef(ref), "kubedb.dev/apimachinery/apis/ops/v1alpha1.RedisSentinelReplicaReadinessCriteria": schema_apimachinery_apis_ops_v1alpha1_RedisSentinelReplicaReadinessCriteria(ref), + "kubedb.dev/apimachinery/apis/ops/v1alpha1.RedisSentinelSpec": schema_apimachinery_apis_ops_v1alpha1_RedisSentinelSpec(ref), "kubedb.dev/apimachinery/apis/ops/v1alpha1.RedisSentinelUpgradeSpec": schema_apimachinery_apis_ops_v1alpha1_RedisSentinelUpgradeSpec(ref), "kubedb.dev/apimachinery/apis/ops/v1alpha1.RedisSentinelVerticalScalingSpec": schema_apimachinery_apis_ops_v1alpha1_RedisSentinelVerticalScalingSpec(ref), "kubedb.dev/apimachinery/apis/ops/v1alpha1.RedisSentinelVolumeExpansionSpec": schema_apimachinery_apis_ops_v1alpha1_RedisSentinelVolumeExpansionSpec(ref), + "kubedb.dev/apimachinery/apis/ops/v1alpha1.RedisTLSSpec": schema_apimachinery_apis_ops_v1alpha1_RedisTLSSpec(ref), "kubedb.dev/apimachinery/apis/ops/v1alpha1.RedisUpgradeSpec": schema_apimachinery_apis_ops_v1alpha1_RedisUpgradeSpec(ref), "kubedb.dev/apimachinery/apis/ops/v1alpha1.RedisVerticalScalingSpec": schema_apimachinery_apis_ops_v1alpha1_RedisVerticalScalingSpec(ref), "kubedb.dev/apimachinery/apis/ops/v1alpha1.RedisVolumeExpansionSpec": schema_apimachinery_apis_ops_v1alpha1_RedisVolumeExpansionSpec(ref), @@ -18809,6 +18810,12 @@ func schema_custom_resources_apis_appcatalog_v1alpha1_AppBindingSpec(ref common. Format: "", }, }, + "appRef": { + SchemaProps: spec.SchemaProps{ + Description: "Reference to underlying application", + Ref: ref("kmodules.xyz/client-go/api/v1.TypedObjectReference"), + }, + }, "version": { SchemaProps: spec.SchemaProps{ Description: "Version used to facilitate programmatic handling of application.", @@ -18860,7 +18867,7 @@ func schema_custom_resources_apis_appcatalog_v1alpha1_AppBindingSpec(ref common. }, }, Dependencies: []string{ - "k8s.io/api/core/v1.LocalObjectReference", "k8s.io/apimachinery/pkg/runtime.RawExtension", "kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1.ClientConfig", "kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1.SecretTransform"}, + "k8s.io/api/core/v1.LocalObjectReference", "k8s.io/apimachinery/pkg/runtime.RawExtension", "kmodules.xyz/client-go/api/v1.TypedObjectReference", "kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1.ClientConfig", "kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1.SecretTransform"}, } } @@ -24206,12 +24213,6 @@ func schema_apimachinery_apis_ops_v1alpha1_PgBouncerOpsRequestSpec(ref common.Re Ref: ref("kubedb.dev/apimachinery/apis/ops/v1alpha1.PgBouncerVerticalScalingSpec"), }, }, - "volumeExpansion": { - SchemaProps: spec.SchemaProps{ - Description: "Specifies information necessary for volume expansion", - Ref: ref("kubedb.dev/apimachinery/apis/ops/v1alpha1.PgBouncerVolumeExpansionSpec"), - }, - }, "configuration": { SchemaProps: spec.SchemaProps{ Description: "Specifies information necessary for custom configuration of PgBouncer", @@ -24242,7 +24243,7 @@ func schema_apimachinery_apis_ops_v1alpha1_PgBouncerOpsRequestSpec(ref common.Re }, }, Dependencies: []string{ - "k8s.io/api/core/v1.LocalObjectReference", "kubedb.dev/apimachinery/apis/ops/v1alpha1.PgBouncerCustomConfigurationSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.PgBouncerHorizontalScalingSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.PgBouncerUpgradeSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.PgBouncerVerticalScalingSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.PgBouncerVolumeExpansionSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.RestartSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.TLSSpec"}, + "k8s.io/api/core/v1.LocalObjectReference", "kubedb.dev/apimachinery/apis/ops/v1alpha1.PgBouncerCustomConfigurationSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.PgBouncerHorizontalScalingSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.PgBouncerUpgradeSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.PgBouncerVerticalScalingSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.RestartSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.TLSSpec"}, } } @@ -24303,17 +24304,6 @@ func schema_apimachinery_apis_ops_v1alpha1_PgBouncerVerticalScalingSpec(ref comm } } -func schema_apimachinery_apis_ops_v1alpha1_PgBouncerVolumeExpansionSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "PgBouncerVolumeExpansionSpec is the spec for PgBouncer volume expansion", - Type: []string{"object"}, - }, - }, - } -} - func schema_apimachinery_apis_ops_v1alpha1_PostgresCustomConfiguration(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ @@ -24952,12 +24942,6 @@ func schema_apimachinery_apis_ops_v1alpha1_ProxySQLOpsRequestSpec(ref common.Ref Ref: ref("kubedb.dev/apimachinery/apis/ops/v1alpha1.ProxySQLVerticalScalingSpec"), }, }, - "volumeExpansion": { - SchemaProps: spec.SchemaProps{ - Description: "Specifies information necessary for volume expansion", - Ref: ref("kubedb.dev/apimachinery/apis/ops/v1alpha1.ProxySQLVolumeExpansionSpec"), - }, - }, "configuration": { SchemaProps: spec.SchemaProps{ Description: "Specifies information necessary for custom configuration of ProxySQL", @@ -24994,7 +24978,7 @@ func schema_apimachinery_apis_ops_v1alpha1_ProxySQLOpsRequestSpec(ref common.Ref }, }, Dependencies: []string{ - "k8s.io/api/core/v1.LocalObjectReference", "k8s.io/apimachinery/pkg/apis/meta/v1.Duration", "kubedb.dev/apimachinery/apis/ops/v1alpha1.ProxySQLCustomConfigurationSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.ProxySQLHorizontalScalingSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.ProxySQLUpgradeSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.ProxySQLVerticalScalingSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.ProxySQLVolumeExpansionSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.RestartSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.TLSSpec"}, + "k8s.io/api/core/v1.LocalObjectReference", "k8s.io/apimachinery/pkg/apis/meta/v1.Duration", "kubedb.dev/apimachinery/apis/ops/v1alpha1.ProxySQLCustomConfigurationSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.ProxySQLHorizontalScalingSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.ProxySQLUpgradeSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.ProxySQLVerticalScalingSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.RestartSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.TLSSpec"}, } } @@ -25055,17 +25039,6 @@ func schema_apimachinery_apis_ops_v1alpha1_ProxySQLVerticalScalingSpec(ref commo } } -func schema_apimachinery_apis_ops_v1alpha1_ProxySQLVolumeExpansionSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "ProxySQLVolumeExpansionSpec is the spec for ProxySQL volume expansion", - Type: []string{"object"}, - }, - }, - } -} - func schema_apimachinery_apis_ops_v1alpha1_RedisCustomConfigurationSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ @@ -25280,7 +25253,7 @@ func schema_apimachinery_apis_ops_v1alpha1_RedisOpsRequestSpec(ref common.Refere "tls": { SchemaProps: spec.SchemaProps{ Description: "Specifies information necessary for configuring TLS", - Ref: ref("kubedb.dev/apimachinery/apis/ops/v1alpha1.TLSSpec"), + Ref: ref("kubedb.dev/apimachinery/apis/ops/v1alpha1.RedisTLSSpec"), }, }, "restart": { @@ -25289,6 +25262,12 @@ func schema_apimachinery_apis_ops_v1alpha1_RedisOpsRequestSpec(ref common.Refere Ref: ref("kubedb.dev/apimachinery/apis/ops/v1alpha1.RestartSpec"), }, }, + "sentinel": { + SchemaProps: spec.SchemaProps{ + Description: "Specifies information necessary for replacing sentinel instances", + Ref: ref("kubedb.dev/apimachinery/apis/ops/v1alpha1.RedisSentinelSpec"), + }, + }, "timeout": { SchemaProps: spec.SchemaProps{ Description: "Timeout for each step of the ops request in second. If a step doesn't finish within the specified timeout, the ops request will result in failure.", @@ -25307,7 +25286,7 @@ func schema_apimachinery_apis_ops_v1alpha1_RedisOpsRequestSpec(ref common.Refere }, }, Dependencies: []string{ - "k8s.io/api/core/v1.LocalObjectReference", "k8s.io/apimachinery/pkg/apis/meta/v1.Duration", "kubedb.dev/apimachinery/apis/ops/v1alpha1.RedisCustomConfigurationSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.RedisHorizontalScalingSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.RedisUpgradeSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.RedisVerticalScalingSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.RedisVolumeExpansionSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.RestartSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.TLSSpec"}, + "k8s.io/api/core/v1.LocalObjectReference", "k8s.io/apimachinery/pkg/apis/meta/v1.Duration", "kubedb.dev/apimachinery/apis/ops/v1alpha1.RedisCustomConfigurationSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.RedisHorizontalScalingSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.RedisSentinelSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.RedisTLSSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.RedisUpgradeSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.RedisVerticalScalingSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.RedisVolumeExpansionSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.RestartSpec"}, } } @@ -25514,12 +25493,6 @@ func schema_apimachinery_apis_ops_v1alpha1_RedisSentinelOpsRequestSpec(ref commo Ref: ref("kubedb.dev/apimachinery/apis/ops/v1alpha1.RedisSentinelVerticalScalingSpec"), }, }, - "volumeExpansion": { - SchemaProps: spec.SchemaProps{ - Description: "Specifies information necessary for volume expansion", - Ref: ref("kubedb.dev/apimachinery/apis/ops/v1alpha1.RedisSentinelVolumeExpansionSpec"), - }, - }, "configuration": { SchemaProps: spec.SchemaProps{ Description: "Specifies information necessary for custom configuration of RedisSentinel", @@ -25556,7 +25529,33 @@ func schema_apimachinery_apis_ops_v1alpha1_RedisSentinelOpsRequestSpec(ref commo }, }, Dependencies: []string{ - "k8s.io/api/core/v1.LocalObjectReference", "k8s.io/apimachinery/pkg/apis/meta/v1.Duration", "kubedb.dev/apimachinery/apis/ops/v1alpha1.RedisSentinelCustomConfigurationSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.RedisSentinelHorizontalScalingSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.RedisSentinelUpgradeSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.RedisSentinelVerticalScalingSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.RedisSentinelVolumeExpansionSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.RestartSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.TLSSpec"}, + "k8s.io/api/core/v1.LocalObjectReference", "k8s.io/apimachinery/pkg/apis/meta/v1.Duration", "kubedb.dev/apimachinery/apis/ops/v1alpha1.RedisSentinelCustomConfigurationSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.RedisSentinelHorizontalScalingSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.RedisSentinelUpgradeSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.RedisSentinelVerticalScalingSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.RestartSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.TLSSpec"}, + } +} + +func schema_apimachinery_apis_ops_v1alpha1_RedisSentinelRef(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "name": { + SchemaProps: spec.SchemaProps{ + Description: "Name of the refereed sentinel", + Type: []string{"string"}, + Format: "", + }, + }, + "namespace": { + SchemaProps: spec.SchemaProps{ + Description: "Namespace where refereed sentinel has been deployed", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, } } @@ -25571,6 +25570,33 @@ func schema_apimachinery_apis_ops_v1alpha1_RedisSentinelReplicaReadinessCriteria } } +func schema_apimachinery_apis_ops_v1alpha1_RedisSentinelSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "ref": { + SchemaProps: spec.SchemaProps{ + Description: "Sentinel Ref for new Sentinel which will replace the old sentinel", + Ref: ref("kubedb.dev/apimachinery/apis/ops/v1alpha1.RedisSentinelRef"), + }, + }, + "removeUnusedSentinel": { + SchemaProps: spec.SchemaProps{ + Type: []string{"boolean"}, + Format: "", + }, + }, + }, + Required: []string{"ref"}, + }, + }, + Dependencies: []string{ + "kubedb.dev/apimachinery/apis/ops/v1alpha1.RedisSentinelRef"}, + } +} + func schema_apimachinery_apis_ops_v1alpha1_RedisSentinelUpgradeSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ @@ -25653,6 +25679,60 @@ func schema_apimachinery_apis_ops_v1alpha1_RedisSentinelVolumeExpansionSpec(ref } } +func schema_apimachinery_apis_ops_v1alpha1_RedisTLSSpec(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{ + Default: map[string]interface{}{}, + Ref: ref("kmodules.xyz/client-go/api/v1.CertificateSpec"), + }, + }, + }, + }, + }, + "rotateCertificates": { + SchemaProps: spec.SchemaProps{ + Description: "RotateCertificates tells operator to initiate certificate rotation", + Type: []string{"boolean"}, + Format: "", + }, + }, + "remove": { + SchemaProps: spec.SchemaProps{ + Description: "Remove tells operator to remove TLS configuration", + Type: []string{"boolean"}, + Format: "", + }, + }, + "sentinel": { + SchemaProps: spec.SchemaProps{ + Description: "This field is only needed in Redis Sentinel Mode when we add or remove TLS. In Redis Sentinel Mode, both redis instances and sentinel instances either have TLS or don't have TLS. So when want to add TLS to Redis in Sentinel Mode, current sentinel instances don't have TLS enabled, so we need to give a new Sentinel Reference which has TLS enabled and which will monitor the Redis instances when we add TLS to it", + Ref: ref("kubedb.dev/apimachinery/apis/ops/v1alpha1.RedisSentinelSpec"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "k8s.io/api/core/v1.TypedLocalObjectReference", "kmodules.xyz/client-go/api/v1.CertificateSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.RedisSentinelSpec"}, + } +} + func schema_apimachinery_apis_ops_v1alpha1_RedisUpgradeSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ diff --git a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/perconaxtradb_ops_helpers.go b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/perconaxtradb_ops_helpers.go index 15c30ad72..ee7107218 100644 --- a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/perconaxtradb_ops_helpers.go +++ b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/perconaxtradb_ops_helpers.go @@ -63,8 +63,8 @@ func (e *PerconaXtraDBOpsRequest) GetObjectMeta() metav1.ObjectMeta { return e.ObjectMeta } -func (e *PerconaXtraDBOpsRequest) GetRequestType() OpsRequestType { - return e.Spec.Type +func (e *PerconaXtraDBOpsRequest) GetRequestType() string { + return string(e.Spec.Type) } func (e *PerconaXtraDBOpsRequest) GetDBRefName() string { diff --git a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/perconaxtradb_ops_types.go b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/perconaxtradb_ops_types.go index a4273cf5e..405f05834 100644 --- a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/perconaxtradb_ops_types.go +++ b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/perconaxtradb_ops_types.go @@ -53,7 +53,7 @@ type PerconaXtraDBOpsRequestSpec struct { // Specifies the PerconaXtraDB reference DatabaseRef core.LocalObjectReference `json:"databaseRef"` // Specifies the ops request type: Upgrade, HorizontalScaling, VerticalScaling etc. - Type OpsRequestType `json:"type"` + Type PerconaXtraDBOpsRequestType `json:"type"` // Specifies information necessary for upgrading PerconaXtraDB Upgrade *PerconaXtraDBUpgradeSpec `json:"upgrade,omitempty"` // Specifies information necessary for horizontal scaling @@ -75,6 +75,28 @@ type PerconaXtraDBOpsRequestSpec struct { Apply ApplyOption `json:"apply,omitempty"` } +// +kubebuilder:validation:Enum=Upgrade;UpdateVersion;HorizontalScaling;VerticalScaling;VolumeExpansion;Restart;Reconfigure;ReconfigureTLS +type PerconaXtraDBOpsRequestType string + +const ( + // Deprecated. Use UpdateVersion + PerconaXtraDBOpsRequestTypeUpgrade PerconaXtraDBOpsRequestType = "Upgrade" + // used for UpdateVersion operation + PerconaXtraDBOpsRequestTypeUpdateVersion PerconaXtraDBOpsRequestType = "UpdateVersion" + // used for HorizontalScaling operation + PerconaXtraDBOpsRequestTypeHorizontalScaling PerconaXtraDBOpsRequestType = "HorizontalScaling" + // used for VerticalScaling operation + PerconaXtraDBOpsRequestTypeVerticalScaling PerconaXtraDBOpsRequestType = "VerticalScaling" + // used for VolumeExpansion operation + PerconaXtraDBOpsRequestTypeVolumeExpansion PerconaXtraDBOpsRequestType = "VolumeExpansion" + // used for Restart operation + PerconaXtraDBOpsRequestTypeRestart PerconaXtraDBOpsRequestType = "Restart" + // used for Reconfigure operation + PerconaXtraDBOpsRequestTypeReconfigure PerconaXtraDBOpsRequestType = "Reconfigure" + // used for ReconfigureTLS operation + PerconaXtraDBOpsRequestTypeReconfigureTLSs PerconaXtraDBOpsRequestType = "ReconfigureTLS" +) + // PerconaXtraDBReplicaReadinessCriteria is the criteria for checking readiness of an PerconaXtraDB database type PerconaXtraDBReplicaReadinessCriteria struct{} diff --git a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/pgbouncer_ops_helpers.go b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/pgbouncer_ops_helpers.go index 88724120b..5e66e9ac0 100644 --- a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/pgbouncer_ops_helpers.go +++ b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/pgbouncer_ops_helpers.go @@ -63,8 +63,8 @@ func (e *PgBouncerOpsRequest) GetObjectMeta() metav1.ObjectMeta { return e.ObjectMeta } -func (e *PgBouncerOpsRequest) GetRequestType() OpsRequestType { - return e.Spec.Type +func (e *PgBouncerOpsRequest) GetRequestType() string { + return string(e.Spec.Type) } func (e *PgBouncerOpsRequest) GetDBRefName() string { diff --git a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/pgbouncer_ops_types.go b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/pgbouncer_ops_types.go index 0a83ed459..29210de21 100644 --- a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/pgbouncer_ops_types.go +++ b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/pgbouncer_ops_types.go @@ -52,15 +52,13 @@ type PgBouncerOpsRequestSpec struct { // Specifies the PgBouncer reference DatabaseRef core.LocalObjectReference `json:"databaseRef"` // Specifies the ops request type: Upgrade, HorizontalScaling, VerticalScaling etc. - Type OpsRequestType `json:"type"` + Type PgBouncerOpsRequestType `json:"type"` // Specifies information necessary for upgrading PgBouncer Upgrade *PgBouncerUpgradeSpec `json:"upgrade,omitempty"` // Specifies information necessary for horizontal scaling HorizontalScaling *PgBouncerHorizontalScalingSpec `json:"horizontalScaling,omitempty"` // Specifies information necessary for vertical scaling VerticalScaling *PgBouncerVerticalScalingSpec `json:"verticalScaling,omitempty"` - // Specifies information necessary for volume expansion - VolumeExpansion *PgBouncerVolumeExpansionSpec `json:"volumeExpansion,omitempty"` // Specifies information necessary for custom configuration of PgBouncer Configuration *PgBouncerCustomConfigurationSpec `json:"configuration,omitempty"` // Specifies information necessary for configuring TLS @@ -72,6 +70,24 @@ type PgBouncerOpsRequestSpec struct { Apply ApplyOption `json:"apply,omitempty"` } +// +kubebuilder:validation:Enum=UpdateVersion;HorizontalScaling;VerticalScaling;Restart;Reconfigure;ReconfigureTLS +type PgBouncerOpsRequestType string + +const ( + // used for UpdateVersion operation + PgBouncerOpsRequestTypeUpdateVersion PgBouncerOpsRequestType = "UpdateVersion" + // used for HorizontalScaling operation + PgBouncerOpsRequestTypeHorizontalScaling PgBouncerOpsRequestType = "HorizontalScaling" + // used for VerticalScaling operation + PgBouncerOpsRequestTypeVerticalScaling PgBouncerOpsRequestType = "VerticalScaling" + // used for Restart operation + PgBouncerOpsRequestTypeRestart PgBouncerOpsRequestType = "Restart" + // used for Reconfigure operation + PgBouncerOpsRequestTypeReconfigure PgBouncerOpsRequestType = "Reconfigure" + // used for ReconfigureTLS operation + PgBouncerOpsRequestTypeReconfigureTLSs PgBouncerOpsRequestType = "ReconfigureTLS" +) + // PgBouncerReplicaReadinessCriteria is the criteria for checking readiness of a PgBouncer pod // after updating, horizontal scaling etc. type PgBouncerReplicaReadinessCriteria struct{} @@ -90,9 +106,6 @@ type PgBouncerVerticalScalingSpec struct { ReadinessCriteria *PgBouncerReplicaReadinessCriteria `json:"readinessCriteria,omitempty"` } -// PgBouncerVolumeExpansionSpec is the spec for PgBouncer volume expansion -type PgBouncerVolumeExpansionSpec struct{} - type PgBouncerCustomConfigurationSpec struct{} type PgBouncerCustomConfiguration struct { diff --git a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/postgres_ops_helpers.go b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/postgres_ops_helpers.go index 133feedc0..0bad03273 100644 --- a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/postgres_ops_helpers.go +++ b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/postgres_ops_helpers.go @@ -63,8 +63,8 @@ func (e *PostgresOpsRequest) GetObjectMeta() metav1.ObjectMeta { return e.ObjectMeta } -func (e *PostgresOpsRequest) GetRequestType() OpsRequestType { - return e.Spec.Type +func (e *PostgresOpsRequest) GetRequestType() string { + return string(e.Spec.Type) } func (e *PostgresOpsRequest) GetDBRefName() string { diff --git a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/postgres_ops_types.go b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/postgres_ops_types.go index a315352ed..ec79ba1b3 100644 --- a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/postgres_ops_types.go +++ b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/postgres_ops_types.go @@ -66,7 +66,7 @@ type PostgresOpsRequestSpec struct { // Specifies the Postgres reference DatabaseRef core.LocalObjectReference `json:"databaseRef"` // Specifies the ops request type: Upgrade, HorizontalScaling, VerticalScaling etc. - Type OpsRequestType `json:"type"` + Type PostgresOpsRequestType `json:"type"` // Specifies information necessary for upgrading Postgres Upgrade *PostgresUpgradeSpec `json:"upgrade,omitempty"` // Specifies information necessary for horizontal scaling @@ -77,7 +77,6 @@ type PostgresOpsRequestSpec struct { VolumeExpansion *PostgresVolumeExpansionSpec `json:"volumeExpansion,omitempty"` // Specifies information necessary for custom configuration of Postgres Configuration *PostgresCustomConfigurationSpec `json:"configuration,omitempty"` - // Specifies information necessary for configuring TLS TLS *PostgresTLSSpec `json:"tls,omitempty"` // Specifies information necessary for restarting database @@ -89,6 +88,28 @@ type PostgresOpsRequestSpec struct { Apply ApplyOption `json:"apply,omitempty"` } +// +kubebuilder:validation:Enum=Upgrade;UpdateVersion;HorizontalScaling;VerticalScaling;VolumeExpansion;Restart;Reconfigure;ReconfigureTLS +type PostgresOpsRequestType string + +const ( + // Deprecated. Use UpdateVersion + PostgresOpsRequestTypeUpgrade PostgresOpsRequestType = "Upgrade" + // used for UpdateVersion operation + PostgresOpsRequestTypeUpdateVersion PostgresOpsRequestType = "UpdateVersion" + // used for HorizontalScaling operation + PostgresOpsRequestTypeHorizontalScaling PostgresOpsRequestType = "HorizontalScaling" + // used for VerticalScaling operation + PostgresOpsRequestTypeVerticalScaling PostgresOpsRequestType = "VerticalScaling" + // used for VolumeExpansion operation + PostgresOpsRequestTypeVolumeExpansion PostgresOpsRequestType = "VolumeExpansion" + // used for Restart operation + PostgresOpsRequestTypeRestart PostgresOpsRequestType = "Restart" + // used for Reconfigure operation + PostgresOpsRequestTypeReconfigure PostgresOpsRequestType = "Reconfigure" + // used for ReconfigureTLS operation + PostgresOpsRequestTypeReconfigureTLSs PostgresOpsRequestType = "ReconfigureTLS" +) + type PostgresUpgradeSpec struct { // Specifies the target version name from catalog TargetVersion string `json:"targetVersion,omitempty"` diff --git a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/proxysql_ops_helpers.go b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/proxysql_ops_helpers.go index bc474e741..c5cb92a04 100644 --- a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/proxysql_ops_helpers.go +++ b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/proxysql_ops_helpers.go @@ -59,8 +59,8 @@ func (e *ProxySQLOpsRequest) GetObjectMeta() metav1.ObjectMeta { return e.ObjectMeta } -func (e *ProxySQLOpsRequest) GetRequestType() OpsRequestType { - return e.Spec.Type +func (e *ProxySQLOpsRequest) GetRequestType() string { + return string(e.Spec.Type) } func (e *ProxySQLOpsRequest) GetDBRefName() string { diff --git a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/proxysql_ops_types.go b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/proxysql_ops_types.go index be2729ea2..4e1e9793b 100644 --- a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/proxysql_ops_types.go +++ b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/proxysql_ops_types.go @@ -54,15 +54,13 @@ type ProxySQLOpsRequestSpec struct { // Specifies the ProxySQL reference ProxyRef core.LocalObjectReference `json:"proxyRef"` // Specifies the ops request type: Upgrade, HorizontalScaling, VerticalScaling etc. - Type OpsRequestType `json:"type"` + Type ProxySQLOpsRequestType `json:"type"` // Specifies information necessary for upgrading ProxySQL Upgrade *ProxySQLUpgradeSpec `json:"upgrade,omitempty"` // Specifies information necessary for horizontal scaling HorizontalScaling *ProxySQLHorizontalScalingSpec `json:"horizontalScaling,omitempty"` // Specifies information necessary for vertical scaling VerticalScaling *ProxySQLVerticalScalingSpec `json:"verticalScaling,omitempty"` - // Specifies information necessary for volume expansion - VolumeExpansion *ProxySQLVolumeExpansionSpec `json:"volumeExpansion,omitempty"` // Specifies information necessary for custom configuration of ProxySQL Configuration *ProxySQLCustomConfigurationSpec `json:"configuration,omitempty"` // Specifies information necessary for configuring TLS @@ -76,6 +74,24 @@ type ProxySQLOpsRequestSpec struct { Apply ApplyOption `json:"apply,omitempty"` } +// +kubebuilder:validation:Enum=UpdateVersion;HorizontalScaling;VerticalScaling;Restart;Reconfigure;ReconfigureTLS +type ProxySQLOpsRequestType string + +const ( + // used for UpdateVersion operation + ProxySQLOpsRequestTypeUpdateVersion ProxySQLOpsRequestType = "UpdateVersion" + // used for HorizontalScaling operation + ProxySQLOpsRequestTypeHorizontalScaling ProxySQLOpsRequestType = "HorizontalScaling" + // used for VerticalScaling operation + ProxySQLOpsRequestTypeVerticalScaling ProxySQLOpsRequestType = "VerticalScaling" + // used for Restart operation + ProxySQLOpsRequestTypeRestart ProxySQLOpsRequestType = "Restart" + // used for Reconfigure operation + ProxySQLOpsRequestTypeReconfigure ProxySQLOpsRequestType = "Reconfigure" + // used for ReconfigureTLS operation + ProxySQLOpsRequestTypeReconfigureTLSs ProxySQLOpsRequestType = "ReconfigureTLS" +) + // ProxySQLReplicaReadinessCriteria is the criteria for checking readiness of a ProxySQL pod // after updating, horizontal scaling etc. type ProxySQLReplicaReadinessCriteria struct{} @@ -97,9 +113,6 @@ type ProxySQLVerticalScalingSpec struct { ReadinessCriteria *ProxySQLReplicaReadinessCriteria `json:"readinessCriteria,omitempty"` } -// ProxySQLVolumeExpansionSpec is the spec for ProxySQL volume expansion -type ProxySQLVolumeExpansionSpec struct{} - type ProxySQLCustomConfiguration struct { ConfigMap *core.LocalObjectReference `json:"configMap,omitempty"` Data map[string]string `json:"data,omitempty"` diff --git a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/redis_ops_helpers.go b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/redis_ops_helpers.go index bd86b4fb3..2e2b48885 100644 --- a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/redis_ops_helpers.go +++ b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/redis_ops_helpers.go @@ -63,8 +63,8 @@ func (e *RedisOpsRequest) GetObjectMeta() metav1.ObjectMeta { return e.ObjectMeta } -func (e *RedisOpsRequest) GetRequestType() OpsRequestType { - return e.Spec.Type +func (e *RedisOpsRequest) GetRequestType() string { + return string(e.Spec.Type) } func (e *RedisOpsRequest) GetDBRefName() string { diff --git a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/redis_ops_types.go b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/redis_ops_types.go index 108c34364..9c0f56f2a 100644 --- a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/redis_ops_types.go +++ b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/redis_ops_types.go @@ -54,7 +54,7 @@ type RedisOpsRequestSpec struct { // Specifies the Redis reference DatabaseRef core.LocalObjectReference `json:"databaseRef"` // Specifies the ops request type: Upgrade, HorizontalScaling, VerticalScaling etc. - Type OpsRequestType `json:"type"` + Type RedisOpsRequestType `json:"type"` // Specifies information necessary for upgrading Redis Upgrade *RedisUpgradeSpec `json:"upgrade,omitempty"` // Specifies information necessary for horizontal scaling @@ -66,9 +66,11 @@ type RedisOpsRequestSpec struct { // Specifies information necessary for custom configuration of Redis Configuration *RedisCustomConfigurationSpec `json:"configuration,omitempty"` // Specifies information necessary for configuring TLS - TLS *TLSSpec `json:"tls,omitempty"` + TLS *RedisTLSSpec `json:"tls,omitempty"` // Specifies information necessary for restarting database Restart *RestartSpec `json:"restart,omitempty"` + // Specifies information necessary for replacing sentinel instances + Sentinel *RedisSentinelSpec `json:"sentinel,omitempty"` // Timeout for each step of the ops request in second. If a step doesn't finish within the specified timeout, the ops request will result in failure. Timeout *metav1.Duration `json:"timeout,omitempty"` // ApplyOption is to control the execution of OpsRequest depending on the database state. @@ -76,6 +78,53 @@ type RedisOpsRequestSpec struct { Apply ApplyOption `json:"apply,omitempty"` } +// +kubebuilder:validation:Enum=UpdateVersion;HorizontalScaling;VerticalScaling;VolumeExpansion;Restart;Reconfigure;ReconfigureTLS;ReplaceSentinel +type RedisOpsRequestType string + +const ( + // used for UpdateVersion operation + RedisOpsRequestTypeUpdateVersion RedisOpsRequestType = "UpdateVersion" + // used for HorizontalScaling operation + RedisOpsRequestTypeHorizontalScaling RedisOpsRequestType = "HorizontalScaling" + // used for VerticalScaling operation + RedisOpsRequestTypeVerticalScaling RedisOpsRequestType = "VerticalScaling" + // used for VolumeExpansion operation + RedisOpsRequestTypeVolumeExpansion RedisOpsRequestType = "VolumeExpansion" + // used for Restart operation + RedisOpsRequestTypeRestart RedisOpsRequestType = "Restart" + // used for Reconfigure operation + RedisOpsRequestTypeReconfigure RedisOpsRequestType = "Reconfigure" + // used for ReconfigureTLS operation + RedisOpsRequestTypeReconfigureTLSs RedisOpsRequestType = "ReconfigureTLS" + // used for Replace Redis Sentinel monitoring + RedisOpsRequestTypeReplaceSentinel RedisOpsRequestType = "ReplaceSentinel" +) + +type RedisTLSSpec struct { + *TLSSpec `json:",inline"` + // This field is only needed in Redis Sentinel Mode when we add or remove TLS. In Redis Sentinel Mode, both redis instances and + // sentinel instances either have TLS or don't have TLS. So when want to add TLS to Redis in Sentinel Mode, current sentinel instances don't + // have TLS enabled, so we need to give a new Sentinel Reference which has TLS enabled and which will monitor the Redis instances when we + // add TLS to it + // +optional + Sentinel *RedisSentinelSpec `json:"sentinel,omitempty"` +} + +type RedisSentinelSpec struct { + // Sentinel Ref for new Sentinel which will replace the old sentinel + Ref *RedisSentinelRef `json:"ref"` + // +optional + RemoveUnusedSentinel bool `json:"removeUnusedSentinel,omitempty"` +} + +type RedisSentinelRef struct { + // Name of the refereed sentinel + Name string `json:"name,omitempty"` + + // Namespace where refereed sentinel has been deployed + Namespace string `json:"namespace,omitempty"` +} + // RedisReplicaReadinessCriteria is the criteria for checking readiness of a Redis pod // after updating, horizontal scaling etc. type RedisReplicaReadinessCriteria struct{} diff --git a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/redis_sentinel_ops_helpers.go b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/redis_sentinel_ops_helpers.go index e7954bc7f..68b26e49d 100644 --- a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/redis_sentinel_ops_helpers.go +++ b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/redis_sentinel_ops_helpers.go @@ -63,8 +63,8 @@ func (e *RedisSentinelOpsRequest) GetObjectMeta() metav1.ObjectMeta { return e.ObjectMeta } -func (e *RedisSentinelOpsRequest) GetRequestType() OpsRequestType { - return e.Spec.Type +func (e *RedisSentinelOpsRequest) GetRequestType() string { + return string(e.Spec.Type) } func (e *RedisSentinelOpsRequest) GetDBRefName() string { diff --git a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/redis_sentinel_ops_types.go b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/redis_sentinel_ops_types.go index 619aa1e78..9c9685f98 100644 --- a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/redis_sentinel_ops_types.go +++ b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/redis_sentinel_ops_types.go @@ -54,15 +54,13 @@ type RedisSentinelOpsRequestSpec struct { // Specifies the RedisSentinel reference DatabaseRef core.LocalObjectReference `json:"databaseRef"` // Specifies the ops request type: Upgrade, HorizontalScaling, VerticalScaling etc. - Type OpsRequestType `json:"type"` + Type RedisSentinelOpsRequestType `json:"type"` // Specifies information necessary for upgrading RedisSentinel Upgrade *RedisSentinelUpgradeSpec `json:"upgrade,omitempty"` // Specifies information necessary for horizontal scaling HorizontalScaling *RedisSentinelHorizontalScalingSpec `json:"horizontalScaling,omitempty"` // Specifies information necessary for vertical scaling VerticalScaling *RedisSentinelVerticalScalingSpec `json:"verticalScaling,omitempty"` - // Specifies information necessary for volume expansion - VolumeExpansion *RedisSentinelVolumeExpansionSpec `json:"volumeExpansion,omitempty"` // Specifies information necessary for custom configuration of RedisSentinel Configuration *RedisSentinelCustomConfigurationSpec `json:"configuration,omitempty"` // Specifies information necessary for configuring TLS @@ -76,6 +74,24 @@ type RedisSentinelOpsRequestSpec struct { Apply ApplyOption `json:"apply,omitempty"` } +// +kubebuilder:validation:Enum=UpdateVersion;HorizontalScaling;VerticalScaling;Restart;Reconfigure;ReconfigureTLS +type RedisSentinelOpsRequestType string + +const ( + // used for UpdateVersion operation + RedisSentinelOpsRequestTypeUpdateVersion RedisSentinelOpsRequestType = "UpdateVersion" + // used for HorizontalScaling operation + RedisSentinelOpsRequestTypeHorizontalScaling RedisSentinelOpsRequestType = "HorizontalScaling" + // used for VerticalScaling operation + RedisSentinelOpsRequestTypeVerticalScaling RedisSentinelOpsRequestType = "VerticalScaling" + // used for Restart operation + RedisSentinelOpsRequestTypeRestart RedisSentinelOpsRequestType = "Restart" + // used for Reconfigure operation + RedisSentinelOpsRequestTypeReconfigure RedisSentinelOpsRequestType = "Reconfigure" + // used for ReconfigureTLS operation + RedisSentinelOpsRequestTypeReconfigureTLSs RedisSentinelOpsRequestType = "ReconfigureTLS" +) + // RedisSentinelReplicaReadinessCriteria is the criteria for checking readiness of a RedisSentinel pod // after updating, horizontal scaling etc. type RedisSentinelReplicaReadinessCriteria struct{} diff --git a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/type.go b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/type.go index 3deee7043..e69cca2b4 100644 --- a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/type.go +++ b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/type.go @@ -164,14 +164,15 @@ const ( RedisTLSArg = "--tls-port 6379" DBReady = "DBReady" RestartedPods = "RestartedPods" - ScaleUpSentinel = "ScaleUpSentinel" - ScaleDownSentinel = "ScaleDownSentinel" ScaleUpReplicas = "ScaleUpReplicas" ScaleDownReplicas = "ScaleDownReplicas" - ScaleUpRedisReplicasInSentinelMode = "ScaleUpRedisReplicasInSentinelMode" - ScaleDownRedisReplicasInSentinelMode = "ScaleDownRedisReplicasInSentinelMode" + ScaleUpSentinel = "ScaleUpSentinel" + ScaleDownSentinel = "ScaleDownSentinel" UpdateRedisImage = "UpdateRedisImage" RestartPodWithResources = "RestartedPodsWithResources" + ReplaceSentinel = "ReplaceSentinel" + ScaleUpRedisReplicasInSentinelMode = "ScaleUpRedisReplicasInSentinelMode" + ScaleDownRedisReplicasInSentinelMode = "ScaleDownRedisReplicasInSentinelMode" // Stash Constants PauseBackupConfiguration = "PauseBackupConfiguration" @@ -256,30 +257,6 @@ const ( OpsRequestDenied OpsRequestPhase = "Denied" ) -// +kubebuilder:validation:Enum=Upgrade;UpdateVersion;HorizontalScaling;VerticalScaling;VolumeExpansion;Restart;Reconfigure;ReconfigureTLS;Reprovision -type OpsRequestType string - -const ( - // Deprecated. Use UpdateVersion - OpsRequestTypeUpgrade OpsRequestType = "Upgrade" - // used for UpdateVersion operation - OpsRequestTypeUpdateVersion OpsRequestType = "UpdateVersion" - // used for HorizontalScaling operation - OpsRequestTypeHorizontalScaling OpsRequestType = "HorizontalScaling" - // used for VerticalScaling operation - OpsRequestTypeVerticalScaling OpsRequestType = "VerticalScaling" - // used for VolumeExpansion operation - OpsRequestTypeVolumeExpansion OpsRequestType = "VolumeExpansion" - // used for Restart operation - OpsRequestTypeRestart OpsRequestType = "Restart" - // used for Reconfigure operation - OpsRequestTypeReconfigure OpsRequestType = "Reconfigure" - // used for ReconfigureTLS operation - OpsRequestTypeReconfigureTLSs OpsRequestType = "ReconfigureTLS" - // used for Reprovision operation - OpsRequestTypeReprovision OpsRequestType = "Reprovision" -) - // +kubebuilder:validation:Enum=Offline;Online type VolumeExpansionMode string @@ -318,7 +295,7 @@ const ( type Accessor interface { GetObjectMeta() metav1.ObjectMeta - GetRequestType() OpsRequestType + GetRequestType() string GetDBRefName() string GetStatus() OpsRequestStatus SetStatus(_ OpsRequestStatus) diff --git a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/zz_generated.deepcopy.go b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/zz_generated.deepcopy.go index 659081499..05a32cdee 100644 --- a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/zz_generated.deepcopy.go +++ b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/zz_generated.deepcopy.go @@ -2560,11 +2560,6 @@ func (in *PgBouncerOpsRequestSpec) DeepCopyInto(out *PgBouncerOpsRequestSpec) { *out = new(PgBouncerVerticalScalingSpec) (*in).DeepCopyInto(*out) } - if in.VolumeExpansion != nil { - in, out := &in.VolumeExpansion, &out.VolumeExpansion - *out = new(PgBouncerVolumeExpansionSpec) - **out = **in - } if in.Configuration != nil { in, out := &in.Configuration, &out.Configuration *out = new(PgBouncerCustomConfigurationSpec) @@ -2651,22 +2646,6 @@ func (in *PgBouncerVerticalScalingSpec) DeepCopy() *PgBouncerVerticalScalingSpec return out } -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *PgBouncerVolumeExpansionSpec) DeepCopyInto(out *PgBouncerVolumeExpansionSpec) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PgBouncerVolumeExpansionSpec. -func (in *PgBouncerVolumeExpansionSpec) DeepCopy() *PgBouncerVolumeExpansionSpec { - if in == nil { - return nil - } - out := new(PgBouncerVolumeExpansionSpec) - in.DeepCopyInto(out) - return out -} - // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *PostgresCustomConfiguration) DeepCopyInto(out *PostgresCustomConfiguration) { *out = *in @@ -3110,11 +3089,6 @@ func (in *ProxySQLOpsRequestSpec) DeepCopyInto(out *ProxySQLOpsRequestSpec) { *out = new(ProxySQLVerticalScalingSpec) (*in).DeepCopyInto(*out) } - if in.VolumeExpansion != nil { - in, out := &in.VolumeExpansion, &out.VolumeExpansion - *out = new(ProxySQLVolumeExpansionSpec) - **out = **in - } if in.Configuration != nil { in, out := &in.Configuration, &out.Configuration *out = new(ProxySQLCustomConfigurationSpec) @@ -3206,22 +3180,6 @@ func (in *ProxySQLVerticalScalingSpec) DeepCopy() *ProxySQLVerticalScalingSpec { return out } -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ProxySQLVolumeExpansionSpec) DeepCopyInto(out *ProxySQLVolumeExpansionSpec) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProxySQLVolumeExpansionSpec. -func (in *ProxySQLVolumeExpansionSpec) DeepCopy() *ProxySQLVolumeExpansionSpec { - if in == nil { - return nil - } - out := new(ProxySQLVolumeExpansionSpec) - in.DeepCopyInto(out) - return out -} - // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *RedisCustomConfigurationSpec) DeepCopyInto(out *RedisCustomConfigurationSpec) { *out = *in @@ -3362,7 +3320,7 @@ func (in *RedisOpsRequestSpec) DeepCopyInto(out *RedisOpsRequestSpec) { } if in.TLS != nil { in, out := &in.TLS, &out.TLS - *out = new(TLSSpec) + *out = new(RedisTLSSpec) (*in).DeepCopyInto(*out) } if in.Restart != nil { @@ -3370,6 +3328,11 @@ func (in *RedisOpsRequestSpec) DeepCopyInto(out *RedisOpsRequestSpec) { *out = new(RestartSpec) **out = **in } + if in.Sentinel != nil { + in, out := &in.Sentinel, &out.Sentinel + *out = new(RedisSentinelSpec) + (*in).DeepCopyInto(*out) + } if in.Timeout != nil { in, out := &in.Timeout, &out.Timeout *out = new(metav1.Duration) @@ -3527,11 +3490,6 @@ func (in *RedisSentinelOpsRequestSpec) DeepCopyInto(out *RedisSentinelOpsRequest *out = new(RedisSentinelVerticalScalingSpec) (*in).DeepCopyInto(*out) } - if in.VolumeExpansion != nil { - in, out := &in.VolumeExpansion, &out.VolumeExpansion - *out = new(RedisSentinelVolumeExpansionSpec) - (*in).DeepCopyInto(*out) - } if in.Configuration != nil { in, out := &in.Configuration, &out.Configuration *out = new(RedisSentinelCustomConfigurationSpec) @@ -3565,6 +3523,22 @@ func (in *RedisSentinelOpsRequestSpec) DeepCopy() *RedisSentinelOpsRequestSpec { return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *RedisSentinelRef) DeepCopyInto(out *RedisSentinelRef) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RedisSentinelRef. +func (in *RedisSentinelRef) DeepCopy() *RedisSentinelRef { + if in == nil { + return nil + } + out := new(RedisSentinelRef) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *RedisSentinelReplicaReadinessCriteria) DeepCopyInto(out *RedisSentinelReplicaReadinessCriteria) { *out = *in @@ -3581,6 +3555,27 @@ func (in *RedisSentinelReplicaReadinessCriteria) DeepCopy() *RedisSentinelReplic return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *RedisSentinelSpec) DeepCopyInto(out *RedisSentinelSpec) { + *out = *in + if in.Ref != nil { + in, out := &in.Ref, &out.Ref + *out = new(RedisSentinelRef) + **out = **in + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RedisSentinelSpec. +func (in *RedisSentinelSpec) DeepCopy() *RedisSentinelSpec { + if in == nil { + return nil + } + out := new(RedisSentinelSpec) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *RedisSentinelUpgradeSpec) DeepCopyInto(out *RedisSentinelUpgradeSpec) { *out = *in @@ -3659,6 +3654,32 @@ func (in *RedisSentinelVolumeExpansionSpec) DeepCopy() *RedisSentinelVolumeExpan return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *RedisTLSSpec) DeepCopyInto(out *RedisTLSSpec) { + *out = *in + if in.TLSSpec != nil { + in, out := &in.TLSSpec, &out.TLSSpec + *out = new(TLSSpec) + (*in).DeepCopyInto(*out) + } + if in.Sentinel != nil { + in, out := &in.Sentinel, &out.Sentinel + *out = new(RedisSentinelSpec) + (*in).DeepCopyInto(*out) + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RedisTLSSpec. +func (in *RedisTLSSpec) DeepCopy() *RedisTLSSpec { + if in == nil { + return nil + } + out := new(RedisTLSSpec) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *RedisUpgradeSpec) DeepCopyInto(out *RedisUpgradeSpec) { *out = *in diff --git a/vendor/kubedb.dev/apimachinery/apis/postgres/v1alpha1/openapi_generated.go b/vendor/kubedb.dev/apimachinery/apis/postgres/v1alpha1/openapi_generated.go index 7be8062cf..8ae98da2d 100644 --- a/vendor/kubedb.dev/apimachinery/apis/postgres/v1alpha1/openapi_generated.go +++ b/vendor/kubedb.dev/apimachinery/apis/postgres/v1alpha1/openapi_generated.go @@ -18692,6 +18692,12 @@ func schema_custom_resources_apis_appcatalog_v1alpha1_AppBindingSpec(ref common. Format: "", }, }, + "appRef": { + SchemaProps: spec.SchemaProps{ + Description: "Reference to underlying application", + Ref: ref("kmodules.xyz/client-go/api/v1.TypedObjectReference"), + }, + }, "version": { SchemaProps: spec.SchemaProps{ Description: "Version used to facilitate programmatic handling of application.", @@ -18743,7 +18749,7 @@ func schema_custom_resources_apis_appcatalog_v1alpha1_AppBindingSpec(ref common. }, }, Dependencies: []string{ - "k8s.io/api/core/v1.LocalObjectReference", "k8s.io/apimachinery/pkg/runtime.RawExtension", "kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1.ClientConfig", "kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1.SecretTransform"}, + "k8s.io/api/core/v1.LocalObjectReference", "k8s.io/apimachinery/pkg/runtime.RawExtension", "kmodules.xyz/client-go/api/v1.TypedObjectReference", "kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1.ClientConfig", "kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1.SecretTransform"}, } } diff --git a/vendor/kubedb.dev/apimachinery/apis/schema/v1alpha1/openapi_generated.go b/vendor/kubedb.dev/apimachinery/apis/schema/v1alpha1/openapi_generated.go index 3b64a264d..1edc77d02 100644 --- a/vendor/kubedb.dev/apimachinery/apis/schema/v1alpha1/openapi_generated.go +++ b/vendor/kubedb.dev/apimachinery/apis/schema/v1alpha1/openapi_generated.go @@ -18703,6 +18703,12 @@ func schema_custom_resources_apis_appcatalog_v1alpha1_AppBindingSpec(ref common. Format: "", }, }, + "appRef": { + SchemaProps: spec.SchemaProps{ + Description: "Reference to underlying application", + Ref: ref("kmodules.xyz/client-go/api/v1.TypedObjectReference"), + }, + }, "version": { SchemaProps: spec.SchemaProps{ Description: "Version used to facilitate programmatic handling of application.", @@ -18754,7 +18760,7 @@ func schema_custom_resources_apis_appcatalog_v1alpha1_AppBindingSpec(ref common. }, }, Dependencies: []string{ - "k8s.io/api/core/v1.LocalObjectReference", "k8s.io/apimachinery/pkg/runtime.RawExtension", "kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1.ClientConfig", "kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1.SecretTransform"}, + "k8s.io/api/core/v1.LocalObjectReference", "k8s.io/apimachinery/pkg/runtime.RawExtension", "kmodules.xyz/client-go/api/v1.TypedObjectReference", "kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1.ClientConfig", "kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1.SecretTransform"}, } } diff --git a/vendor/kubedb.dev/apimachinery/apis/ui/v1alpha1/openapi_generated.go b/vendor/kubedb.dev/apimachinery/apis/ui/v1alpha1/openapi_generated.go index 2155b3d4a..ee7ecb6cf 100644 --- a/vendor/kubedb.dev/apimachinery/apis/ui/v1alpha1/openapi_generated.go +++ b/vendor/kubedb.dev/apimachinery/apis/ui/v1alpha1/openapi_generated.go @@ -18776,6 +18776,12 @@ func schema_custom_resources_apis_appcatalog_v1alpha1_AppBindingSpec(ref common. Format: "", }, }, + "appRef": { + SchemaProps: spec.SchemaProps{ + Description: "Reference to underlying application", + Ref: ref("kmodules.xyz/client-go/api/v1.TypedObjectReference"), + }, + }, "version": { SchemaProps: spec.SchemaProps{ Description: "Version used to facilitate programmatic handling of application.", @@ -18827,7 +18833,7 @@ func schema_custom_resources_apis_appcatalog_v1alpha1_AppBindingSpec(ref common. }, }, Dependencies: []string{ - "k8s.io/api/core/v1.LocalObjectReference", "k8s.io/apimachinery/pkg/runtime.RawExtension", "kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1.ClientConfig", "kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1.SecretTransform"}, + "k8s.io/api/core/v1.LocalObjectReference", "k8s.io/apimachinery/pkg/runtime.RawExtension", "kmodules.xyz/client-go/api/v1.TypedObjectReference", "kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1.ClientConfig", "kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1.SecretTransform"}, } } diff --git a/vendor/kubedb.dev/apimachinery/crds/autoscaling.kubedb.com_mongodbautoscalers.yaml b/vendor/kubedb.dev/apimachinery/crds/autoscaling.kubedb.com_mongodbautoscalers.yaml index 5726ac80e..10c8f49c5 100644 --- a/vendor/kubedb.dev/apimachinery/crds/autoscaling.kubedb.com_mongodbautoscalers.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/autoscaling.kubedb.com_mongodbautoscalers.yaml @@ -34,6 +34,50 @@ spec: properties: compute: properties: + arbiter: + properties: + containerControlledValues: + enum: + - RequestsAndLimits + - RequestsOnly + type: string + controlledResources: + items: + type: string + type: array + inMemoryStorage: + properties: + scalingFactorPercentage: + format: int32 + type: integer + usageThresholdPercentage: + format: int32 + type: integer + type: object + maxAllowed: + additionalProperties: + anyOf: + - type: integer + - type: string + pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ + x-kubernetes-int-or-string: true + type: object + minAllowed: + additionalProperties: + anyOf: + - type: integer + - type: string + pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ + x-kubernetes-int-or-string: true + type: object + podLifeTimeThreshold: + type: string + resourceDiffPercentage: + format: int32 + type: integer + trigger: + type: string + type: object configServer: properties: containerControlledValues: @@ -78,6 +122,50 @@ spec: trigger: type: string type: object + hidden: + properties: + containerControlledValues: + enum: + - RequestsAndLimits + - RequestsOnly + type: string + controlledResources: + items: + type: string + type: array + inMemoryStorage: + properties: + scalingFactorPercentage: + format: int32 + type: integer + usageThresholdPercentage: + format: int32 + type: integer + type: object + maxAllowed: + additionalProperties: + anyOf: + - type: integer + - type: string + pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ + x-kubernetes-int-or-string: true + type: object + minAllowed: + additionalProperties: + anyOf: + - type: integer + - type: string + pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ + x-kubernetes-int-or-string: true + type: object + podLifeTimeThreshold: + type: string + resourceDiffPercentage: + format: int32 + type: integer + trigger: + type: string + type: object mongos: properties: containerControlledValues: @@ -302,6 +390,22 @@ spec: format: int32 type: integer type: object + hidden: + properties: + expansionMode: + enum: + - Offline + - Online + type: string + scalingThreshold: + format: int32 + type: integer + trigger: + type: string + usageThreshold: + format: int32 + type: integer + type: object replicaSet: properties: expansionMode: diff --git a/vendor/kubedb.dev/apimachinery/crds/autoscaling.kubedb.com_postgresautoscalers.yaml b/vendor/kubedb.dev/apimachinery/crds/autoscaling.kubedb.com_postgresautoscalers.yaml index 571fe691d..1689d7b2e 100644 --- a/vendor/kubedb.dev/apimachinery/crds/autoscaling.kubedb.com_postgresautoscalers.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/autoscaling.kubedb.com_postgresautoscalers.yaml @@ -32,336 +32,91 @@ spec: type: object spec: properties: - behavior: + compute: properties: - scaleDown: + postgres: properties: - policies: - items: - properties: - periodSeconds: - format: int32 - type: integer - type: - type: string - value: - format: int32 - type: integer - required: - - periodSeconds - - type - - value - type: object - type: array - selectPolicy: + containerControlledValues: + enum: + - RequestsAndLimits + - RequestsOnly type: string - stabilizationWindowSeconds: - format: int32 - type: integer - type: object - scaleUp: - properties: - policies: + controlledResources: items: - properties: - periodSeconds: - format: int32 - type: integer - type: - type: string - value: - format: int32 - type: integer - required: - - periodSeconds - - type - - value - type: object + type: string type: array - selectPolicy: + inMemoryStorage: + properties: + scalingFactorPercentage: + format: int32 + type: integer + usageThresholdPercentage: + format: int32 + type: integer + type: object + maxAllowed: + additionalProperties: + anyOf: + - type: integer + - type: string + pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ + x-kubernetes-int-or-string: true + type: object + minAllowed: + additionalProperties: + anyOf: + - type: integer + - type: string + pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ + x-kubernetes-int-or-string: true + type: object + podLifeTimeThreshold: type: string - stabilizationWindowSeconds: + resourceDiffPercentage: format: int32 type: integer + trigger: + type: string type: object type: object - maxReplicas: - format: int32 - type: integer - metrics: - items: - properties: - containerResource: - properties: - container: - type: string - name: - type: string - target: - properties: - averageUtilization: - format: int32 - type: integer - averageValue: - anyOf: - - type: integer - - type: string - pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ - x-kubernetes-int-or-string: true - type: - type: string - value: - anyOf: - - type: integer - - type: string - pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ - x-kubernetes-int-or-string: true - required: - - type - type: object - required: - - container - - name - - target - type: object - external: - properties: - metric: - properties: - name: - type: string - selector: - properties: - matchExpressions: - items: - properties: - key: - type: string - operator: - type: string - values: - items: - type: string - type: array - required: - - key - - operator - type: object - type: array - matchLabels: - additionalProperties: - type: string - type: object - type: object - x-kubernetes-map-type: atomic - required: - - name - type: object - target: - properties: - averageUtilization: - format: int32 - type: integer - averageValue: - anyOf: - - type: integer - - type: string - pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ - x-kubernetes-int-or-string: true - type: - type: string - value: - anyOf: - - type: integer - - type: string - pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ - x-kubernetes-int-or-string: true - required: - - type - type: object - required: - - metric - - target - type: object - object: - properties: - describedObject: - properties: - apiVersion: - type: string - kind: - type: string - name: - type: string - required: - - kind - - name - type: object - metric: - properties: - name: - type: string - selector: - properties: - matchExpressions: - items: - properties: - key: - type: string - operator: - type: string - values: - items: - type: string - type: array - required: - - key - - operator - type: object - type: array - matchLabels: - additionalProperties: - type: string - type: object - type: object - x-kubernetes-map-type: atomic - required: - - name - type: object - target: - properties: - averageUtilization: - format: int32 - type: integer - averageValue: - anyOf: - - type: integer - - type: string - pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ - x-kubernetes-int-or-string: true - type: - type: string - value: - anyOf: - - type: integer - - type: string - pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ - x-kubernetes-int-or-string: true - required: - - type - type: object - required: - - describedObject - - metric - - target - type: object - pods: - properties: - metric: - properties: - name: - type: string - selector: - properties: - matchExpressions: - items: - properties: - key: - type: string - operator: - type: string - values: - items: - type: string - type: array - required: - - key - - operator - type: object - type: array - matchLabels: - additionalProperties: - type: string - type: object - type: object - x-kubernetes-map-type: atomic - required: - - name - type: object - target: - properties: - averageUtilization: - format: int32 - type: integer - averageValue: - anyOf: - - type: integer - - type: string - pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ - x-kubernetes-int-or-string: true - type: - type: string - value: - anyOf: - - type: integer - - type: string - pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ - x-kubernetes-int-or-string: true - required: - - type - type: object - required: - - metric - - target - type: object - resource: - properties: - name: - type: string - target: - properties: - averageUtilization: - format: int32 - type: integer - averageValue: - anyOf: - - type: integer - - type: string - pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ - x-kubernetes-int-or-string: true - type: - type: string - value: - anyOf: - - type: integer - - type: string - pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ - x-kubernetes-int-or-string: true - required: - - type - type: object - required: - - name - - target - type: object - type: - type: string - required: - - type - type: object - type: array - minReplicas: - format: int32 - type: integer - scaleTargetRef: + databaseRef: properties: name: type: string type: object x-kubernetes-map-type: atomic + opsRequestOptions: + properties: + apply: + default: IfReady + enum: + - IfReady + - Always + type: string + timeout: + type: string + type: object + storage: + properties: + postgres: + properties: + expansionMode: + enum: + - Offline + - Online + type: string + scalingThreshold: + format: int32 + type: integer + trigger: + type: string + usageThreshold: + format: int32 + type: integer + type: object + type: object required: - - maxReplicas - - scaleTargetRef + - databaseRef type: object status: properties: diff --git a/vendor/kubedb.dev/apimachinery/crds/kubedb.com_proxysqls.yaml b/vendor/kubedb.dev/apimachinery/crds/kubedb.com_proxysqls.yaml index 1afa015bc..c73b9b2b2 100644 --- a/vendor/kubedb.dev/apimachinery/crds/kubedb.com_proxysqls.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/kubedb.com_proxysqls.yaml @@ -63,23 +63,10 @@ spec: type: object backend: properties: - ref: - properties: - apiGroup: - type: string - kind: - type: string - name: - type: string - required: - - kind - - name - type: object - x-kubernetes-map-type: atomic - replicas: - format: int32 - type: integer + name: + type: string type: object + x-kubernetes-map-type: atomic configSecret: properties: name: diff --git a/vendor/kubedb.dev/apimachinery/crds/kubedb.com_redissentinels.yaml b/vendor/kubedb.dev/apimachinery/crds/kubedb.com_redissentinels.yaml index 767f51323..085b6e3ea 100644 --- a/vendor/kubedb.dev/apimachinery/crds/kubedb.com_redissentinels.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/kubedb.com_redissentinels.yaml @@ -16,8 +16,6 @@ spec: kind: RedisSentinel listKind: RedisSentinelList plural: redissentinels - shortNames: - - rds singular: redissentinel scope: Namespaced versions: diff --git a/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_elasticsearchopsrequests.yaml b/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_elasticsearchopsrequests.yaml index 53091b4cd..f04563893 100644 --- a/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_elasticsearchopsrequests.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_elasticsearchopsrequests.yaml @@ -238,7 +238,6 @@ spec: - Restart - Reconfigure - ReconfigureTLS - - Reprovision type: string upgrade: properties: diff --git a/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_etcdopsrequests.yaml b/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_etcdopsrequests.yaml index a1cb18c2a..48bb88b1a 100644 --- a/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_etcdopsrequests.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_etcdopsrequests.yaml @@ -167,7 +167,6 @@ spec: type: object type: enum: - - Upgrade - UpdateVersion - HorizontalScaling - VerticalScaling @@ -175,7 +174,6 @@ spec: - Restart - Reconfigure - ReconfigureTLS - - Reprovision type: string upgrade: properties: diff --git a/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_mariadbopsrequests.yaml b/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_mariadbopsrequests.yaml index 56251abde..ae341952f 100644 --- a/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_mariadbopsrequests.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_mariadbopsrequests.yaml @@ -201,7 +201,6 @@ spec: - Restart - Reconfigure - ReconfigureTLS - - Reprovision type: string upgrade: properties: diff --git a/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_memcachedopsrequests.yaml b/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_memcachedopsrequests.yaml index d81117ea0..51ace9285 100644 --- a/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_memcachedopsrequests.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_memcachedopsrequests.yaml @@ -175,7 +175,6 @@ spec: - Restart - Reconfigure - ReconfigureTLS - - Reprovision type: string upgrade: properties: diff --git a/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_mysqlopsrequests.yaml b/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_mysqlopsrequests.yaml index 58587fa2b..49a95ef34 100644 --- a/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_mysqlopsrequests.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_mysqlopsrequests.yaml @@ -194,7 +194,6 @@ spec: - Restart - Reconfigure - ReconfigureTLS - - Reprovision type: string upgrade: properties: diff --git a/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_perconaxtradbopsrequests.yaml b/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_perconaxtradbopsrequests.yaml index 7db49c9cf..61e164c5f 100644 --- a/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_perconaxtradbopsrequests.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_perconaxtradbopsrequests.yaml @@ -201,7 +201,6 @@ spec: - Restart - Reconfigure - ReconfigureTLS - - Reprovision type: string upgrade: properties: diff --git a/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_pgbounceropsrequests.yaml b/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_pgbounceropsrequests.yaml index 3df6a7721..c825ca722 100644 --- a/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_pgbounceropsrequests.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_pgbounceropsrequests.yaml @@ -167,15 +167,12 @@ spec: type: object type: enum: - - Upgrade - UpdateVersion - HorizontalScaling - VerticalScaling - - VolumeExpansion - Restart - Reconfigure - ReconfigureTLS - - Reprovision type: string upgrade: properties: @@ -189,8 +186,6 @@ spec: readinessCriteria: type: object type: object - volumeExpansion: - type: object required: - databaseRef - type diff --git a/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_postgresopsrequests.yaml b/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_postgresopsrequests.yaml index 061abb5c6..55610ca02 100644 --- a/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_postgresopsrequests.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_postgresopsrequests.yaml @@ -207,7 +207,6 @@ spec: - Restart - Reconfigure - ReconfigureTLS - - Reprovision type: string upgrade: properties: diff --git a/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_proxysqlopsrequests.yaml b/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_proxysqlopsrequests.yaml index ff1780c20..aef48aacd 100644 --- a/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_proxysqlopsrequests.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_proxysqlopsrequests.yaml @@ -236,15 +236,12 @@ spec: type: object type: enum: - - Upgrade - UpdateVersion - HorizontalScaling - VerticalScaling - - VolumeExpansion - Restart - Reconfigure - ReconfigureTLS - - Reprovision type: string upgrade: properties: @@ -258,8 +255,6 @@ spec: readinessCriteria: type: object type: object - volumeExpansion: - type: object required: - proxyRef - type diff --git a/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_redisopsrequests.yaml b/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_redisopsrequests.yaml index 31b8faafc..d1dd03dbf 100644 --- a/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_redisopsrequests.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_redisopsrequests.yaml @@ -2396,6 +2396,20 @@ spec: type: object restart: type: object + sentinel: + properties: + ref: + properties: + name: + type: string + namespace: + type: string + type: object + removeUnusedSentinel: + type: boolean + required: + - ref + type: object timeout: type: string tls: @@ -2502,10 +2516,23 @@ spec: type: boolean rotateCertificates: type: boolean + sentinel: + properties: + ref: + properties: + name: + type: string + namespace: + type: string + type: object + removeUnusedSentinel: + type: boolean + required: + - ref + type: object type: object type: enum: - - Upgrade - UpdateVersion - HorizontalScaling - VerticalScaling @@ -2513,7 +2540,7 @@ spec: - Restart - Reconfigure - ReconfigureTLS - - Reprovision + - ReplaceSentinel type: string upgrade: properties: diff --git a/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_redissentinelopsrequests.yaml b/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_redissentinelopsrequests.yaml index b13de4692..26978f054 100644 --- a/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_redissentinelopsrequests.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_redissentinelopsrequests.yaml @@ -2502,15 +2502,12 @@ spec: type: object type: enum: - - Upgrade - UpdateVersion - HorizontalScaling - VerticalScaling - - VolumeExpansion - Restart - Reconfigure - ReconfigureTLS - - Reprovision type: string upgrade: properties: @@ -2579,21 +2576,6 @@ spec: type: object type: object type: object - volumeExpansion: - properties: - mode: - default: Online - enum: - - Offline - - Online - type: string - redissentinel: - anyOf: - - type: integer - - type: string - pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ - x-kubernetes-int-or-string: true - type: object required: - databaseRef - type diff --git a/vendor/modules.txt b/vendor/modules.txt index 14f838c8e..f7a32c39d 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -738,7 +738,7 @@ kmodules.xyz/client-go/core/v1 kmodules.xyz/client-go/discovery kmodules.xyz/client-go/meta kmodules.xyz/client-go/tools/portforward -# kmodules.xyz/custom-resources v0.25.0 +# kmodules.xyz/custom-resources v0.25.1 ## explicit; go 1.18 kmodules.xyz/custom-resources/apis/appcatalog kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1 @@ -765,7 +765,7 @@ kmodules.xyz/offshoot-api/api/v1 # kmodules.xyz/prober v0.25.0 ## explicit; go 1.18 kmodules.xyz/prober/api/v1 -# kubedb.dev/apimachinery v0.28.4-0.20220924164625-f5eabfc23811 +# kubedb.dev/apimachinery v0.28.4-0.20221007091615-35e1d5e5bcb6 ## explicit; go 1.18 kubedb.dev/apimachinery/apis kubedb.dev/apimachinery/apis/autoscaling @@ -939,7 +939,7 @@ sigs.k8s.io/structured-merge-diff/v4/value # sigs.k8s.io/yaml v1.3.0 ## explicit; go 1.12 sigs.k8s.io/yaml -# stash.appscode.dev/apimachinery v0.22.1-0.20220924053358-8821fa34c13f +# stash.appscode.dev/apimachinery v0.23.0 ## explicit; go 1.18 stash.appscode.dev/apimachinery/apis stash.appscode.dev/apimachinery/apis/repositories diff --git a/vendor/stash.appscode.dev/apimachinery/apis/stash/v1beta1/backup_batch_types.go b/vendor/stash.appscode.dev/apimachinery/apis/stash/v1beta1/backup_batch_types.go index 8c0dda796..c7f7ce145 100644 --- a/vendor/stash.appscode.dev/apimachinery/apis/stash/v1beta1/backup_batch_types.go +++ b/vendor/stash.appscode.dev/apimachinery/apis/stash/v1beta1/backup_batch_types.go @@ -90,7 +90,7 @@ type BackupBatchSpec struct { // TimeOut specifies the maximum duration of backup. BackupBatch will be considered Failed // if backup does not complete within this time limit. By default, Stash don't set any timeout for backup. // +optional - TimeOut string `json:"timeOut,omitempty"` + TimeOut *metav1.Duration `json:"timeOut,omitempty"` // RetryConfig specify a configuration for retry a backup if it fails. // By default, Stash does not retry any failed backup. diff --git a/vendor/stash.appscode.dev/apimachinery/apis/stash/v1beta1/backup_blueprint_types.go b/vendor/stash.appscode.dev/apimachinery/apis/stash/v1beta1/backup_blueprint_types.go index 0e541153f..b3b11aa5b 100644 --- a/vendor/stash.appscode.dev/apimachinery/apis/stash/v1beta1/backup_blueprint_types.go +++ b/vendor/stash.appscode.dev/apimachinery/apis/stash/v1beta1/backup_blueprint_types.go @@ -88,7 +88,7 @@ type BackupBlueprintSpec struct { // TimeOut specifies the maximum duration of backup. BackupSession will be considered Failed // if backup does not complete within this time limit. By default, Stash don't set any timeout for backup. // +optional - TimeOut string `json:"timeOut,omitempty"` + TimeOut *metav1.Duration `json:"timeOut,omitempty"` // RetryConfig specify a configuration for retry a backup if it fails. // By default, Stash does not retry any failed backup. diff --git a/vendor/stash.appscode.dev/apimachinery/apis/stash/v1beta1/backup_configuration_types.go b/vendor/stash.appscode.dev/apimachinery/apis/stash/v1beta1/backup_configuration_types.go index 8dec291bf..ef68d567f 100644 --- a/vendor/stash.appscode.dev/apimachinery/apis/stash/v1beta1/backup_configuration_types.go +++ b/vendor/stash.appscode.dev/apimachinery/apis/stash/v1beta1/backup_configuration_types.go @@ -103,7 +103,7 @@ type BackupConfigurationSpec struct { // TimeOut specifies the maximum duration of backup. BackupSession will be considered Failed // if backup does not complete within this time limit. By default, Stash don't set any timeout for backup. // +optional - TimeOut string `json:"timeOut,omitempty"` + TimeOut *metav1.Duration `json:"timeOut,omitempty"` // RetryConfig specify a configuration for retry a backup if it fails. // By default, Stash does not retry any failed backup. 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 d1addb1b6..71f67879b 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 @@ -19991,8 +19991,7 @@ func schema_apimachinery_apis_stash_v1beta1_BackupBatchSpec(ref common.Reference "timeOut": { SchemaProps: spec.SchemaProps{ Description: "TimeOut specifies the maximum duration of backup. BackupBatch will be considered Failed if backup does not complete within this time limit. By default, Stash don't set any timeout for backup.", - Type: []string{"string"}, - Format: "", + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Duration"), }, }, "retryConfig": { @@ -20006,7 +20005,7 @@ func schema_apimachinery_apis_stash_v1beta1_BackupBatchSpec(ref common.Reference }, }, Dependencies: []string{ - "kmodules.xyz/client-go/api/v1.ObjectReference", "kmodules.xyz/offshoot-api/api/v1.RuntimeSettings", "stash.appscode.dev/apimachinery/apis/stash/v1alpha1.RetentionPolicy", "stash.appscode.dev/apimachinery/apis/stash/v1beta1.BackupConfigurationTemplateSpec", "stash.appscode.dev/apimachinery/apis/stash/v1beta1.BackupHooks", "stash.appscode.dev/apimachinery/apis/stash/v1beta1.RetryConfig"}, + "k8s.io/apimachinery/pkg/apis/meta/v1.Duration", "kmodules.xyz/client-go/api/v1.ObjectReference", "kmodules.xyz/offshoot-api/api/v1.RuntimeSettings", "stash.appscode.dev/apimachinery/apis/stash/v1alpha1.RetentionPolicy", "stash.appscode.dev/apimachinery/apis/stash/v1beta1.BackupConfigurationTemplateSpec", "stash.appscode.dev/apimachinery/apis/stash/v1beta1.BackupHooks", "stash.appscode.dev/apimachinery/apis/stash/v1beta1.RetryConfig"}, } } @@ -20250,8 +20249,7 @@ func schema_apimachinery_apis_stash_v1beta1_BackupBlueprintSpec(ref common.Refer "timeOut": { SchemaProps: spec.SchemaProps{ Description: "TimeOut specifies the maximum duration of backup. BackupSession will be considered Failed if backup does not complete within this time limit. By default, Stash don't set any timeout for backup.", - Type: []string{"string"}, - Format: "", + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Duration"), }, }, "retryConfig": { @@ -20265,7 +20263,7 @@ func schema_apimachinery_apis_stash_v1beta1_BackupBlueprintSpec(ref common.Refer }, }, Dependencies: []string{ - "kmodules.xyz/objectstore-api/api/v1.Backend", "kmodules.xyz/offshoot-api/api/v1.PersistentVolumeClaim", "kmodules.xyz/offshoot-api/api/v1.RuntimeSettings", "stash.appscode.dev/apimachinery/apis/stash/v1alpha1.RetentionPolicy", "stash.appscode.dev/apimachinery/apis/stash/v1alpha1.UsagePolicy", "stash.appscode.dev/apimachinery/apis/stash/v1beta1.BackupHooks", "stash.appscode.dev/apimachinery/apis/stash/v1beta1.EmptyDirSettings", "stash.appscode.dev/apimachinery/apis/stash/v1beta1.RetryConfig", "stash.appscode.dev/apimachinery/apis/stash/v1beta1.TaskRef"}, + "k8s.io/apimachinery/pkg/apis/meta/v1.Duration", "kmodules.xyz/objectstore-api/api/v1.Backend", "kmodules.xyz/offshoot-api/api/v1.PersistentVolumeClaim", "kmodules.xyz/offshoot-api/api/v1.RuntimeSettings", "stash.appscode.dev/apimachinery/apis/stash/v1alpha1.RetentionPolicy", "stash.appscode.dev/apimachinery/apis/stash/v1alpha1.UsagePolicy", "stash.appscode.dev/apimachinery/apis/stash/v1beta1.BackupHooks", "stash.appscode.dev/apimachinery/apis/stash/v1beta1.EmptyDirSettings", "stash.appscode.dev/apimachinery/apis/stash/v1beta1.RetryConfig", "stash.appscode.dev/apimachinery/apis/stash/v1beta1.TaskRef"}, } } @@ -20452,8 +20450,7 @@ func schema_apimachinery_apis_stash_v1beta1_BackupConfigurationSpec(ref common.R "timeOut": { SchemaProps: spec.SchemaProps{ Description: "TimeOut specifies the maximum duration of backup. BackupSession will be considered Failed if backup does not complete within this time limit. By default, Stash don't set any timeout for backup.", - Type: []string{"string"}, - Format: "", + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Duration"), }, }, "retryConfig": { @@ -20467,7 +20464,7 @@ func schema_apimachinery_apis_stash_v1beta1_BackupConfigurationSpec(ref common.R }, }, Dependencies: []string{ - "kmodules.xyz/client-go/api/v1.ObjectReference", "kmodules.xyz/offshoot-api/api/v1.PersistentVolumeClaim", "kmodules.xyz/offshoot-api/api/v1.RuntimeSettings", "stash.appscode.dev/apimachinery/apis/stash/v1alpha1.RetentionPolicy", "stash.appscode.dev/apimachinery/apis/stash/v1beta1.BackupHooks", "stash.appscode.dev/apimachinery/apis/stash/v1beta1.BackupTarget", "stash.appscode.dev/apimachinery/apis/stash/v1beta1.EmptyDirSettings", "stash.appscode.dev/apimachinery/apis/stash/v1beta1.RetryConfig", "stash.appscode.dev/apimachinery/apis/stash/v1beta1.TaskRef"}, + "k8s.io/apimachinery/pkg/apis/meta/v1.Duration", "kmodules.xyz/client-go/api/v1.ObjectReference", "kmodules.xyz/offshoot-api/api/v1.PersistentVolumeClaim", "kmodules.xyz/offshoot-api/api/v1.RuntimeSettings", "stash.appscode.dev/apimachinery/apis/stash/v1alpha1.RetentionPolicy", "stash.appscode.dev/apimachinery/apis/stash/v1beta1.BackupHooks", "stash.appscode.dev/apimachinery/apis/stash/v1beta1.BackupTarget", "stash.appscode.dev/apimachinery/apis/stash/v1beta1.EmptyDirSettings", "stash.appscode.dev/apimachinery/apis/stash/v1beta1.RetryConfig", "stash.appscode.dev/apimachinery/apis/stash/v1beta1.TaskRef"}, } } @@ -21752,15 +21749,14 @@ func schema_apimachinery_apis_stash_v1beta1_RestoreBatchSpec(ref common.Referenc "timeOut": { SchemaProps: spec.SchemaProps{ Description: "TimeOut specifies the maximum duration of restore. RestoreBatch will be considered Failed if restore does not complete within this time limit. By default, Stash don't set any timeout for restore.", - Type: []string{"string"}, - Format: "", + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Duration"), }, }, }, }, }, Dependencies: []string{ - "kmodules.xyz/client-go/api/v1.ObjectReference", "stash.appscode.dev/apimachinery/apis/stash/v1beta1.RestoreHooks", "stash.appscode.dev/apimachinery/apis/stash/v1beta1.RestoreTargetSpec"}, + "k8s.io/apimachinery/pkg/apis/meta/v1.Duration", "kmodules.xyz/client-go/api/v1.ObjectReference", "stash.appscode.dev/apimachinery/apis/stash/v1beta1.RestoreHooks", "stash.appscode.dev/apimachinery/apis/stash/v1beta1.RestoreTargetSpec"}, } } @@ -22086,15 +22082,14 @@ func schema_apimachinery_apis_stash_v1beta1_RestoreSessionSpec(ref common.Refere "timeOut": { SchemaProps: spec.SchemaProps{ Description: "TimeOut specifies the maximum duration of restore. RestoreSession will be considered Failed if restore does not complete within this time limit. By default, Stash don't set any timeout for restore.", - Type: []string{"string"}, - Format: "", + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Duration"), }, }, }, }, }, Dependencies: []string{ - "kmodules.xyz/client-go/api/v1.ObjectReference", "kmodules.xyz/offshoot-api/api/v1.PersistentVolumeClaim", "kmodules.xyz/offshoot-api/api/v1.RuntimeSettings", "stash.appscode.dev/apimachinery/apis/stash/v1beta1.EmptyDirSettings", "stash.appscode.dev/apimachinery/apis/stash/v1beta1.RestoreHooks", "stash.appscode.dev/apimachinery/apis/stash/v1beta1.RestoreTarget", "stash.appscode.dev/apimachinery/apis/stash/v1beta1.Rule", "stash.appscode.dev/apimachinery/apis/stash/v1beta1.TaskRef"}, + "k8s.io/apimachinery/pkg/apis/meta/v1.Duration", "kmodules.xyz/client-go/api/v1.ObjectReference", "kmodules.xyz/offshoot-api/api/v1.PersistentVolumeClaim", "kmodules.xyz/offshoot-api/api/v1.RuntimeSettings", "stash.appscode.dev/apimachinery/apis/stash/v1beta1.EmptyDirSettings", "stash.appscode.dev/apimachinery/apis/stash/v1beta1.RestoreHooks", "stash.appscode.dev/apimachinery/apis/stash/v1beta1.RestoreTarget", "stash.appscode.dev/apimachinery/apis/stash/v1beta1.Rule", "stash.appscode.dev/apimachinery/apis/stash/v1beta1.TaskRef"}, } } @@ -22327,14 +22322,15 @@ func schema_apimachinery_apis_stash_v1beta1_RetryConfig(ref common.ReferenceCall }, "delay": { SchemaProps: spec.SchemaProps{ - Description: "The number of seconds to wait before next retry. If you don't specify this field, Stash will retry immediately.", - Type: []string{"integer"}, - Format: "int32", + Description: "The amount of time to wait before next retry. If you don't specify this field, Stash will retry immediately. Format: 30s, 2m, 1h etc.", + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Duration"), }, }, }, }, }, + Dependencies: []string{ + "k8s.io/apimachinery/pkg/apis/meta/v1.Duration"}, } } 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 868fb1d2d..1169563e3 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 @@ -70,7 +70,7 @@ type RestoreBatchSpec struct { // TimeOut specifies the maximum duration of restore. RestoreBatch will be considered Failed // if restore does not complete within this time limit. By default, Stash don't set any timeout for restore. // +optional - TimeOut string `json:"timeOut,omitempty"` + TimeOut *metav1.Duration `json:"timeOut,omitempty"` } type RestoreBatchStatus struct { diff --git a/vendor/stash.appscode.dev/apimachinery/apis/stash/v1beta1/restore_session_types.go b/vendor/stash.appscode.dev/apimachinery/apis/stash/v1beta1/restore_session_types.go index dc40a78d2..40e84a728 100644 --- a/vendor/stash.appscode.dev/apimachinery/apis/stash/v1beta1/restore_session_types.go +++ b/vendor/stash.appscode.dev/apimachinery/apis/stash/v1beta1/restore_session_types.go @@ -65,7 +65,7 @@ type RestoreSessionSpec struct { // TimeOut specifies the maximum duration of restore. RestoreSession will be considered Failed // if restore does not complete within this time limit. By default, Stash don't set any timeout for restore. // +optional - TimeOut string `json:"timeOut,omitempty"` + TimeOut *metav1.Duration `json:"timeOut,omitempty"` } type RestoreTargetSpec struct { 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 06b129af9..08d9f4e09 100644 --- a/vendor/stash.appscode.dev/apimachinery/apis/stash/v1beta1/types.go +++ b/vendor/stash.appscode.dev/apimachinery/apis/stash/v1beta1/types.go @@ -18,6 +18,7 @@ package v1beta1 import ( core "k8s.io/api/core/v1" + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" ofst "kmodules.xyz/offshoot-api/api/v1" ) @@ -156,7 +157,8 @@ type RetryConfig struct { // +kubebuilder:default=1 MaxRetry int32 `json:"maxRetry,omitempty"` - // The number of seconds to wait before next retry. If you don't specify this field, Stash will retry immediately. + // The amount of time to wait before next retry. If you don't specify this field, Stash will retry immediately. + // Format: 30s, 2m, 1h etc. // +optional - Delay int32 `json:"delay,omitempty"` + Delay metav1.Duration `json:"delay,omitempty"` } diff --git a/vendor/stash.appscode.dev/apimachinery/apis/stash/v1beta1/zz_generated.deepcopy.go b/vendor/stash.appscode.dev/apimachinery/apis/stash/v1beta1/zz_generated.deepcopy.go index 248c7d717..33a3d7a35 100644 --- a/vendor/stash.appscode.dev/apimachinery/apis/stash/v1beta1/zz_generated.deepcopy.go +++ b/vendor/stash.appscode.dev/apimachinery/apis/stash/v1beta1/zz_generated.deepcopy.go @@ -23,9 +23,10 @@ package v1beta1 import ( corev1 "k8s.io/api/core/v1" + v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" - v1 "kmodules.xyz/client-go/api/v1" - apiv1 "kmodules.xyz/offshoot-api/api/v1" + apiv1 "kmodules.xyz/client-go/api/v1" + offshootapiapiv1 "kmodules.xyz/offshoot-api/api/v1" proberapiv1 "kmodules.xyz/prober/api/v1" ) @@ -113,6 +114,11 @@ func (in *BackupBatchSpec) DeepCopyInto(out *BackupBatchSpec) { *out = new(BackupHooks) (*in).DeepCopyInto(*out) } + if in.TimeOut != nil { + in, out := &in.TimeOut, &out.TimeOut + *out = new(v1.Duration) + **out = **in + } if in.RetryConfig != nil { in, out := &in.RetryConfig, &out.RetryConfig *out = new(RetryConfig) @@ -136,7 +142,7 @@ func (in *BackupBatchStatus) DeepCopyInto(out *BackupBatchStatus) { *out = *in if in.Conditions != nil { in, out := &in.Conditions, &out.Conditions - *out = make([]v1.Condition, len(*in)) + *out = make([]apiv1.Condition, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -231,7 +237,7 @@ func (in *BackupBlueprintSpec) DeepCopyInto(out *BackupBlueprintSpec) { in.TempDir.DeepCopyInto(&out.TempDir) if in.InterimVolumeTemplate != nil { in, out := &in.InterimVolumeTemplate, &out.InterimVolumeTemplate - *out = new(apiv1.PersistentVolumeClaim) + *out = new(offshootapiapiv1.PersistentVolumeClaim) (*in).DeepCopyInto(*out) } if in.Hooks != nil { @@ -244,6 +250,11 @@ func (in *BackupBlueprintSpec) DeepCopyInto(out *BackupBlueprintSpec) { *out = new(int32) **out = **in } + if in.TimeOut != nil { + in, out := &in.TimeOut, &out.TimeOut + *out = new(v1.Duration) + **out = **in + } if in.RetryConfig != nil { in, out := &in.RetryConfig, &out.RetryConfig *out = new(RetryConfig) @@ -334,6 +345,11 @@ func (in *BackupConfigurationSpec) DeepCopyInto(out *BackupConfigurationSpec) { *out = new(int32) **out = **in } + if in.TimeOut != nil { + in, out := &in.TimeOut, &out.TimeOut + *out = new(v1.Duration) + **out = **in + } if in.RetryConfig != nil { in, out := &in.RetryConfig, &out.RetryConfig *out = new(RetryConfig) @@ -357,7 +373,7 @@ func (in *BackupConfigurationStatus) DeepCopyInto(out *BackupConfigurationStatus *out = *in if in.Conditions != nil { in, out := &in.Conditions, &out.Conditions - *out = make([]v1.Condition, len(*in)) + *out = make([]apiv1.Condition, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -388,7 +404,7 @@ func (in *BackupConfigurationTemplateSpec) DeepCopyInto(out *BackupConfiguration in.TempDir.DeepCopyInto(&out.TempDir) if in.InterimVolumeTemplate != nil { in, out := &in.InterimVolumeTemplate, &out.InterimVolumeTemplate - *out = new(apiv1.PersistentVolumeClaim) + *out = new(offshootapiapiv1.PersistentVolumeClaim) (*in).DeepCopyInto(*out) } if in.Hooks != nil { @@ -541,7 +557,7 @@ func (in *BackupSessionStatus) DeepCopyInto(out *BackupSessionStatus) { } if in.Conditions != nil { in, out := &in.Conditions, &out.Conditions - *out = make([]v1.Condition, len(*in)) + *out = make([]apiv1.Condition, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -644,7 +660,7 @@ func (in *BackupTargetStatus) DeepCopyInto(out *BackupTargetStatus) { } if in.Conditions != nil { in, out := &in.Conditions, &out.Conditions - *out = make([]v1.Condition, len(*in)) + *out = make([]apiv1.Condition, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -832,7 +848,7 @@ func (in *FunctionSpec) DeepCopyInto(out *FunctionSpec) { } if in.RuntimeSettings != nil { in, out := &in.RuntimeSettings, &out.RuntimeSettings - *out = new(apiv1.ContainerRuntimeSettings) + *out = new(offshootapiapiv1.ContainerRuntimeSettings) (*in).DeepCopyInto(*out) } return @@ -893,7 +909,7 @@ func (in *MemberConditions) DeepCopyInto(out *MemberConditions) { out.Target = in.Target if in.Conditions != nil { in, out := &in.Conditions, &out.Conditions - *out = make([]v1.Condition, len(*in)) + *out = make([]apiv1.Condition, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -1046,6 +1062,11 @@ func (in *RestoreBatchSpec) DeepCopyInto(out *RestoreBatchSpec) { *out = new(RestoreHooks) (*in).DeepCopyInto(*out) } + if in.TimeOut != nil { + in, out := &in.TimeOut, &out.TimeOut + *out = new(v1.Duration) + **out = **in + } return } @@ -1064,7 +1085,7 @@ func (in *RestoreBatchStatus) DeepCopyInto(out *RestoreBatchStatus) { *out = *in if in.Conditions != nil { in, out := &in.Conditions, &out.Conditions - *out = make([]v1.Condition, len(*in)) + *out = make([]apiv1.Condition, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -1125,7 +1146,7 @@ func (in *RestoreMemberStatus) DeepCopyInto(out *RestoreMemberStatus) { out.Ref = in.Ref if in.Conditions != nil { in, out := &in.Conditions, &out.Conditions - *out = make([]v1.Condition, len(*in)) + *out = make([]apiv1.Condition, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -1226,6 +1247,11 @@ func (in *RestoreSessionSpec) DeepCopyInto(out *RestoreSessionSpec) { (*in)[i].DeepCopyInto(&(*out)[i]) } } + if in.TimeOut != nil { + in, out := &in.TimeOut, &out.TimeOut + *out = new(v1.Duration) + **out = **in + } return } @@ -1254,7 +1280,7 @@ func (in *RestoreSessionStatus) DeepCopyInto(out *RestoreSessionStatus) { } if in.Conditions != nil { in, out := &in.Conditions, &out.Conditions - *out = make([]v1.Condition, len(*in)) + *out = make([]apiv1.Condition, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -1294,7 +1320,7 @@ func (in *RestoreTarget) DeepCopyInto(out *RestoreTarget) { } if in.VolumeClaimTemplates != nil { in, out := &in.VolumeClaimTemplates, &out.VolumeClaimTemplates - *out = make([]apiv1.PersistentVolumeClaim, len(*in)) + *out = make([]offshootapiapiv1.PersistentVolumeClaim, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -1337,7 +1363,7 @@ func (in *RestoreTargetSpec) DeepCopyInto(out *RestoreTargetSpec) { in.TempDir.DeepCopyInto(&out.TempDir) if in.InterimVolumeTemplate != nil { in, out := &in.InterimVolumeTemplate, &out.InterimVolumeTemplate - *out = new(apiv1.PersistentVolumeClaim) + *out = new(offshootapiapiv1.PersistentVolumeClaim) (*in).DeepCopyInto(*out) } if in.Hooks != nil { @@ -1361,6 +1387,7 @@ func (in *RestoreTargetSpec) DeepCopy() *RestoreTargetSpec { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *RetryConfig) DeepCopyInto(out *RetryConfig) { *out = *in + out.Delay = in.Delay return } diff --git a/vendor/stash.appscode.dev/apimachinery/crds/stash.appscode.com_backupbatches.yaml b/vendor/stash.appscode.dev/apimachinery/crds/stash.appscode.com_backupbatches.yaml index 1ac3bf4ee..1e55812c8 100644 --- a/vendor/stash.appscode.dev/apimachinery/crds/stash.appscode.com_backupbatches.yaml +++ b/vendor/stash.appscode.dev/apimachinery/crds/stash.appscode.com_backupbatches.yaml @@ -3797,10 +3797,10 @@ spec: if it fails. By default, Stash does not retry any failed backup. properties: delay: - description: The number of seconds to wait before next retry. - If you don't specify this field, Stash will retry immediately. - format: int32 - type: integer + description: 'The amount of time to wait before next retry. If + you don''t specify this field, Stash will retry immediately. + Format: 30s, 2m, 1h etc.' + type: string maxRetry: default: 1 description: 'MaxRetry specifies the maximum number of attempts diff --git a/vendor/stash.appscode.dev/apimachinery/crds/stash.appscode.com_backupblueprints.yaml b/vendor/stash.appscode.dev/apimachinery/crds/stash.appscode.com_backupblueprints.yaml index a9dab8baf..17d4cdb6c 100644 --- a/vendor/stash.appscode.dev/apimachinery/crds/stash.appscode.com_backupblueprints.yaml +++ b/vendor/stash.appscode.dev/apimachinery/crds/stash.appscode.com_backupblueprints.yaml @@ -2416,10 +2416,10 @@ spec: if it fails. By default, Stash does not retry any failed backup. properties: delay: - description: The number of seconds to wait before next retry. - If you don't specify this field, Stash will retry immediately. - format: int32 - type: integer + description: 'The amount of time to wait before next retry. If + you don''t specify this field, Stash will retry immediately. + Format: 30s, 2m, 1h etc.' + type: string maxRetry: default: 1 description: 'MaxRetry specifies the maximum number of attempts diff --git a/vendor/stash.appscode.dev/apimachinery/crds/stash.appscode.com_backupconfigurations.yaml b/vendor/stash.appscode.dev/apimachinery/crds/stash.appscode.com_backupconfigurations.yaml index bf019a547..815d62659 100644 --- a/vendor/stash.appscode.dev/apimachinery/crds/stash.appscode.com_backupconfigurations.yaml +++ b/vendor/stash.appscode.dev/apimachinery/crds/stash.appscode.com_backupconfigurations.yaml @@ -824,10 +824,10 @@ spec: if it fails. By default, Stash does not retry any failed backup. properties: delay: - description: The number of seconds to wait before next retry. - If you don't specify this field, Stash will retry immediately. - format: int32 - type: integer + description: 'The amount of time to wait before next retry. If + you don''t specify this field, Stash will retry immediately. + Format: 30s, 2m, 1h etc.' + type: string maxRetry: default: 1 description: 'MaxRetry specifies the maximum number of attempts