diff --git a/Makefile b/Makefile index 9c16b2403..903e2d446 100644 --- a/Makefile +++ b/Makefile @@ -70,13 +70,10 @@ manifests: controller-gen kustomize yq ## Generate WebhookConfiguration, Cluster .PHONY: generate generate: controller-gen conversion-gen ## Generate code containing DeepCopy, DeepCopyInto, and DeepCopyObject method implementations. $(CONTROLLER_GEN) object:headerFile="hack/boilerplate.go.txt" paths="./..." - $(CONVERSION_GEN) -i ./api/v1beta1/ -o . -O zz_generated.conversion --go-header-file hack/boilerplate.go.txt .PHONY: apidoc apidoc: crd-to-markdown $(wildcard api/*/*_types.go) - $(CRD_TO_MARKDOWN) --links docs/links.csv -f api/v1beta1/mysqlcluster_types.go -f api/v1beta1/job_types.go -n MySQLCluster > docs/crd_mysqlcluster_v1beta1.md $(CRD_TO_MARKDOWN) --links docs/links.csv -f api/v1beta2/mysqlcluster_types.go -f api/v1beta2/job_types.go -n MySQLCluster > docs/crd_mysqlcluster_v1beta2.md - $(CRD_TO_MARKDOWN) --links docs/links.csv -f api/v1beta1/backuppolicy_types.go -f api/v1beta1/job_types.go -n BackupPolicy > docs/crd_backuppolicy_v1beta1.md $(CRD_TO_MARKDOWN) --links docs/links.csv -f api/v1beta2/backuppolicy_types.go -f api/v1beta2/job_types.go -n BackupPolicy > docs/crd_backuppolicy_v1beta2.md .PHONY: book diff --git a/PROJECT b/PROJECT index 83595d15d..4f95fccff 100644 --- a/PROJECT +++ b/PROJECT @@ -11,18 +11,6 @@ resources: domain: cybozu.com group: moco kind: MySQLCluster - path: github.com/cybozu-go/moco/api/v1beta1 - version: v1beta1 - webhooks: - conversion: true - webhookVersion: v1 -- api: - crdVersion: v1 - namespaced: true - controller: false - domain: cybozu.com - group: moco - kind: MySQLCluster path: github.com/cybozu-go/moco/api/v1beta2 version: v1beta2 webhooks: @@ -35,8 +23,8 @@ resources: domain: cybozu.com group: moco kind: BackupPolicy - path: github.com/cybozu-go/moco/api/v1beta1 - version: v1beta1 + path: github.com/cybozu-go/moco/api/v1beta2 + version: v1beta2 webhooks: validation: true webhookVersion: v1 diff --git a/README.md b/README.md index 11762e3d2..ea9af69fb 100644 --- a/README.md +++ b/README.md @@ -63,7 +63,7 @@ You can then create a three-instance MySQL cluster as follows: ```console $ cat > mycluster.yaml <<'EOF' -apiVersion: moco.cybozu.com/v1beta1 +apiVersion: moco.cybozu.com/v1beta2 kind: MySQLCluster metadata: namespace: default diff --git a/api/v1beta1/backuppolicy_types.go b/api/v1beta1/backuppolicy_types.go deleted file mode 100644 index af7eeba51..000000000 --- a/api/v1beta1/backuppolicy_types.go +++ /dev/null @@ -1,107 +0,0 @@ -package v1beta1 - -import ( - batchv1 "k8s.io/api/batch/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -// EDIT THIS FILE! THIS IS SCAFFOLDING FOR YOU TO OWN! -// NOTE: json tags are required. Any new fields you add must have json tags for the fields to be serialized. - -// BackupPolicySpec defines the configuration items for MySQLCluster backup. -// -// The following fields will be copied to CronJob.spec: -// -// - Schedule -// - StartingDeadlineSeconds -// - ConcurrencyPolicy -// - SuccessfulJobsHistoryLimit -// - FailedJobsHistoryLimit -// -// The following fields will be copied to CronJob.spec.jobTemplate. -// -// - ActiveDeadlineSeconds -// - BackoffLimit -type BackupPolicySpec struct { - // INSERT ADDITIONAL SPEC FIELDS - desired state of cluster - // Important: Run "make" to regenerate code after modifying this file - - // The schedule in Cron format for periodic backups. - // See https://en.wikipedia.org/wiki/Cron - Schedule string `json:"schedule"` - - // Specifies parameters for backup Pod. - JobConfig JobConfig `json:"jobConfig"` - - // Optional deadline in seconds for starting the job if it misses scheduled - // time for any reason. Missed jobs executions will be counted as failed ones. - // +nullable - // +optional - StartingDeadlineSeconds *int64 `json:"startingDeadlineSeconds,omitempty"` - - // Specifies how to treat concurrent executions of a Job. - // Valid values are: - // - "Allow" (default): allows CronJobs to run concurrently; - // - "Forbid": forbids concurrent runs, skipping next run if previous run hasn't finished yet; - // - "Replace": cancels currently running job and replaces it with a new one - // +kubebuilder:validation:Enum=Allow;Forbid;Replace - // +kubebuilder:default=Allow - // +optional - ConcurrencyPolicy batchv1.ConcurrencyPolicy `json:"concurrencyPolicy,omitempty"` - - // Specifies the duration in seconds relative to the startTime that the job - // may be continuously active before the system tries to terminate it; value - // must be positive integer. If a Job is suspended (at creation or through an - // update), this timer will effectively be stopped and reset when the Job is - // resumed again. - // +nullable - // +optional - ActiveDeadlineSeconds *int64 `json:"activeDeadlineSeconds,omitempty"` - - // Specifies the number of retries before marking this job failed. - // Defaults to 6 - // +kubebuilder:validation:Minimum=0 - // +nullable - // +optional - BackoffLimit *int32 `json:"backoffLimit,omitempty"` - - // The number of successful finished jobs to retain. - // This is a pointer to distinguish between explicit zero and not specified. - // Defaults to 3. - // +kubebuilder:validation:Minimum=0 - // +nullable - // +optional - SuccessfulJobsHistoryLimit *int32 `json:"successfulJobsHistoryLimit,omitempty"` - - // The number of failed finished jobs to retain. - // This is a pointer to distinguish between explicit zero and not specified. - // Defaults to 1. - // +kubebuilder:validation:Minimum=0 - // +nullable - // +optional - FailedJobsHistoryLimit *int32 `json:"failedJobsHistoryLimit,omitempty"` -} - -//+kubebuilder:object:root=true -//+kubebuilder:deprecatedversion - -// BackupPolicy is a namespaced resource that should be referenced from MySQLCluster. -type BackupPolicy struct { - metav1.TypeMeta `json:",inline"` - metav1.ObjectMeta `json:"metadata,omitempty"` - - Spec BackupPolicySpec `json:"spec"` -} - -//+kubebuilder:object:root=true - -// BackupPolicyList contains a list of BackupPolicy -type BackupPolicyList struct { - metav1.TypeMeta `json:",inline"` - metav1.ListMeta `json:"metadata,omitempty"` - Items []BackupPolicy `json:"items"` -} - -func init() { - SchemeBuilder.Register(&BackupPolicy{}, &BackupPolicyList{}) -} diff --git a/api/v1beta1/conversion.go b/api/v1beta1/conversion.go deleted file mode 100644 index f8bac9d99..000000000 --- a/api/v1beta1/conversion.go +++ /dev/null @@ -1,243 +0,0 @@ -package v1beta1 - -import ( - "encoding/json" - "unsafe" - - "github.com/cybozu-go/moco/api/v1beta2" - "k8s.io/apimachinery/pkg/api/equality" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - apiconversion "k8s.io/apimachinery/pkg/conversion" - "k8s.io/apimachinery/pkg/runtime" - "sigs.k8s.io/controller-runtime/pkg/conversion" -) - -const ( - SpecPrimaryServiceTemplateAnnotation = "mysqlcluster.v1beta2.moco.cybozu.com/spec.primaryServiceTemplate" - SpecReplicaServiceTemplateAnnotation = "mysqlcluster.v1beta2.moco.cybozu.com/spec.replicaServiceTemplate" - SpecPodTemplateSpecOverwriteContainersAnnotation = "mysqlcluster.v1beta2.moco.cybozu.com/spec.podTemplate.overwriteContainers" -) - -var _ conversion.Convertible = &MySQLCluster{} -var _ conversion.Convertible = &BackupPolicy{} - -// ConvertTo converts this MySQLCluster to the Hub version (v1beta2). -func (src *MySQLCluster) ConvertTo(dstRaw conversion.Hub) error { - dst := dstRaw.(*v1beta2.MySQLCluster) - - return Convert__MySQLCluster_To_v1beta2_MySQLCluster(src, dst, nil) -} - -// ConvertFrom converts from the Hub version (v1beta2) to this version. -func (dst *MySQLCluster) ConvertFrom(srcRaw conversion.Hub) error { - src := srcRaw.(*v1beta2.MySQLCluster) - - return Convert_v1beta2_MySQLCluster_To__MySQLCluster(src, dst, nil) -} - -// ConvertTo converts this MySQLCluster to the Hub version (v1beta2). -func (src *BackupPolicy) ConvertTo(dstRaw conversion.Hub) error { - dst := dstRaw.(*v1beta2.BackupPolicy) - - return Convert__BackupPolicy_To_v1beta2_BackupPolicy(src, dst, nil) -} - -// ConvertFrom converts from the Hub version (v1beta2) to this version. -func (dst *BackupPolicy) ConvertFrom(srcRaw conversion.Hub) error { - src := srcRaw.(*v1beta2.BackupPolicy) - - return Convert_v1beta2_BackupPolicy_To__BackupPolicy(src, dst, nil) -} - -// Convert__MySQLCluster_To_v1beta2_MySQLCluster is an autogenerated conversion function. -func Convert__MySQLCluster_To_v1beta2_MySQLCluster(in *MySQLCluster, out *v1beta2.MySQLCluster, s apiconversion.Scope) error { - if err := autoConvert__MySQLCluster_To_v1beta2_MySQLCluster(in, out, s); err != nil { - return err - } - - if err := unmarshalServiceTemplate(in, out); err != nil { - return err - } - - if err := unmarshalOverwriteContainers(in, out); err != nil { - return err - } - - return nil -} - -// Convert_v1beta2_MySQLCluster_To__MySQLCluster is an autogenerated conversion function. -func Convert_v1beta2_MySQLCluster_To__MySQLCluster(in *v1beta2.MySQLCluster, out *MySQLCluster, s apiconversion.Scope) error { - if err := autoConvert_v1beta2_MySQLCluster_To__MySQLCluster(in, out, s); err != nil { - return err - } - - if err := marshalServiceTemplate(&in.Spec, out); err != nil { - return err - } - - if err := marshalOverwriteContainers(&in.Spec, out); err != nil { - return err - } - - return nil -} - -func Convert__MySQLClusterSpec_To_v1beta2_MySQLClusterSpec(in *MySQLClusterSpec, out *v1beta2.MySQLClusterSpec, s apiconversion.Scope) error { - if err := autoConvert__MySQLClusterSpec_To_v1beta2_MySQLClusterSpec(in, out, s); err != nil { - return err - } - - return nil -} - -func Convert_v1beta2_MySQLClusterSpec_To__MySQLClusterSpec(in *v1beta2.MySQLClusterSpec, out *MySQLClusterSpec, s apiconversion.Scope) error { - if err := autoConvert_v1beta2_MySQLClusterSpec_To__MySQLClusterSpec(in, out, s); err != nil { - return err - } - - out.ServiceTemplate = (*ServiceTemplate)(unsafe.Pointer(in.PrimaryServiceTemplate)) - - return nil -} - -// Convert_v1beta2_PodTemplateSpec_To__PodTemplateSpec is an autogenerated conversion function. -func Convert_v1beta2_PodTemplateSpec_To__PodTemplateSpec(in *v1beta2.PodTemplateSpec, out *PodTemplateSpec, s apiconversion.Scope) error { - return autoConvert_v1beta2_PodTemplateSpec_To__PodTemplateSpec(in, out, s) -} - -// marshalServiceTemplate stores the service template as json data in the destination object annotations. -func marshalServiceTemplate(spec *v1beta2.MySQLClusterSpec, dst metav1.Object) error { - if spec.PrimaryServiceTemplate == nil && spec.ReplicaServiceTemplate == nil { - return nil - } - - if equality.Semantic.DeepEqual(spec.PrimaryServiceTemplate, spec.ReplicaServiceTemplate) { - return nil - } - - annotations := dst.GetAnnotations() - if annotations == nil { - annotations = map[string]string{} - } - - if spec.PrimaryServiceTemplate != nil { - u, err := runtime.DefaultUnstructuredConverter.ToUnstructured(spec.PrimaryServiceTemplate) - if err != nil { - return err - } - - data, err := json.Marshal(u) - if err != nil { - return err - } - - annotations[SpecPrimaryServiceTemplateAnnotation] = string(data) - } - - if spec.ReplicaServiceTemplate != nil { - u, err := runtime.DefaultUnstructuredConverter.ToUnstructured(spec.ReplicaServiceTemplate) - if err != nil { - return err - } - - data, err := json.Marshal(u) - if err != nil { - return err - } - - annotations[SpecReplicaServiceTemplateAnnotation] = string(data) - } - - dst.SetAnnotations(annotations) - - return nil -} - -// unmarshalServiceTemplate tries to retrieve the data from the annotation and unmarshal it into the service template passed as input. -func unmarshalServiceTemplate(src *MySQLCluster, dst *v1beta2.MySQLCluster) error { - dstAnnotation := dst.GetAnnotations() - - if hasServiceTemplateAnnotation(src) { - if primary, ok := src.GetAnnotations()[SpecPrimaryServiceTemplateAnnotation]; ok { - var s *v1beta2.ServiceTemplate - if err := json.Unmarshal([]byte(primary), &s); err != nil { - return err - } - - dst.Spec.PrimaryServiceTemplate = s - delete(dstAnnotation, SpecPrimaryServiceTemplateAnnotation) - } - - if replica, ok := src.GetAnnotations()[SpecReplicaServiceTemplateAnnotation]; ok { - var s *v1beta2.ServiceTemplate - if err := json.Unmarshal([]byte(replica), &s); err != nil { - return err - } - - dst.Spec.ReplicaServiceTemplate = s - delete(dstAnnotation, SpecReplicaServiceTemplateAnnotation) - } - } else { - // If the annotation does not exist, copy the same value to primary and replica. - serviceTemplate := (*v1beta2.ServiceTemplate)(unsafe.Pointer(src.Spec.ServiceTemplate)) - dst.Spec.PrimaryServiceTemplate = serviceTemplate.DeepCopy() - dst.Spec.ReplicaServiceTemplate = serviceTemplate.DeepCopy() - } - - if len(dstAnnotation) == 0 { - dst.SetAnnotations(nil) - } - - return nil -} - -// hasServiceTemplateAnnotation checks if the given object has the service template annotation. -func hasServiceTemplateAnnotation(obj metav1.Object) bool { - _, primaryFound := obj.GetAnnotations()[SpecPrimaryServiceTemplateAnnotation] - _, replicaFound := obj.GetAnnotations()[SpecReplicaServiceTemplateAnnotation] - - return primaryFound || replicaFound -} - -func marshalOverwriteContainers(spec *v1beta2.MySQLClusterSpec, dst metav1.Object) error { - if len(spec.PodTemplate.OverwriteContainers) == 0 { - return nil - } - - annotations := dst.GetAnnotations() - if annotations == nil { - annotations = map[string]string{} - } - - data, err := json.Marshal(spec.PodTemplate.OverwriteContainers) - if err != nil { - return err - } - - annotations[SpecPodTemplateSpecOverwriteContainersAnnotation] = string(data) - - dst.SetAnnotations(annotations) - - return nil -} - -func unmarshalOverwriteContainers(src *MySQLCluster, dst *v1beta2.MySQLCluster) error { - dstAnnotation := dst.GetAnnotations() - - if containers, ok := src.GetAnnotations()[SpecPodTemplateSpecOverwriteContainersAnnotation]; ok { - var c []v1beta2.OverwriteContainer - if err := json.Unmarshal([]byte(containers), &c); err != nil { - return err - } - - dst.Spec.PodTemplate.OverwriteContainers = c - delete(dstAnnotation, SpecPodTemplateSpecOverwriteContainersAnnotation) - } - - if len(dstAnnotation) == 0 { - dst.SetAnnotations(nil) - } - - return nil -} diff --git a/api/v1beta1/conversion_test.go b/api/v1beta1/conversion_test.go deleted file mode 100644 index c15156235..000000000 --- a/api/v1beta1/conversion_test.go +++ /dev/null @@ -1,178 +0,0 @@ -package v1beta1 - -import ( - "reflect" - "testing" - "time" - - mocov1beta2 "github.com/cybozu-go/moco/api/v1beta2" - "github.com/google/go-cmp/cmp" - "github.com/google/go-cmp/cmp/cmpopts" - "k8s.io/apimachinery/pkg/api/apitesting/roundtrip" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "k8s.io/apimachinery/pkg/runtime" - "k8s.io/apimachinery/pkg/util/intstr" - corev1ac "k8s.io/client-go/applyconfigurations/core/v1" -) - -func TestCompatibility(t *testing.T) { - t.Run("MySQLCluster v1beta1 => v1beta2 => v1beta1", func(t *testing.T) { - t.Parallel() - - scheme := newScheme(t) - - var v1beta1Cluster1, v1beta1Cluster2 MySQLCluster - var v1beta2Cluster mocov1beta2.MySQLCluster - - obj, err := roundtrip.CompatibilityTestObject(scheme, GroupVersion.WithKind("MySQLCluster"), fillFuncs()) - if err != nil { - t.Fatal(err) - } - v1beta1Cluster1 = *obj.(*MySQLCluster) - - if err := scheme.Convert(v1beta1Cluster1.DeepCopy(), &v1beta2Cluster, nil); err != nil { - t.Fatal(err) - } - if err := scheme.Convert(&v1beta2Cluster, &v1beta1Cluster2, nil); err != nil { - t.Fatal(err) - } - - if diff := cmp.Diff(v1beta1Cluster1, v1beta1Cluster2, cmpopts.EquateEmpty(), cmpopts.IgnoreTypes(metav1.TypeMeta{})); diff != "" { - t.Fatalf("compatibility error (-want +got):\n%s", diff) - } - }) - - t.Run("MySQLCluster v1beta2 => v1beta1 => v1beta2", func(t *testing.T) { - t.Parallel() - - scheme := newScheme(t) - - var v1beta2Cluster1, v1beta2Cluster2 mocov1beta2.MySQLCluster - var v1beta1Cluster MySQLCluster - - obj, err := roundtrip.CompatibilityTestObject(scheme, mocov1beta2.GroupVersion.WithKind("MySQLCluster"), fillFuncs()) - if err != nil { - t.Fatal(err) - } - v1beta2Cluster1 = *obj.(*mocov1beta2.MySQLCluster) - - if err := scheme.Convert(v1beta2Cluster1.DeepCopy(), &v1beta1Cluster, nil); err != nil { - t.Fatal(err) - } - if err := scheme.Convert(&v1beta1Cluster, &v1beta2Cluster2, nil); err != nil { - t.Fatal(err) - } - - if diff := cmp.Diff(v1beta2Cluster1, v1beta2Cluster2, cmpopts.EquateEmpty(), cmpopts.IgnoreTypes(metav1.TypeMeta{})); diff != "" { - t.Fatalf("compatibility error (-want +got):\n%s", diff) - } - }) - - t.Run("MySQLCluster v1beta1 => v1beta2 ServiceTemplate will be copied", func(t *testing.T) { - t.Parallel() - - scheme := newScheme(t) - - var v1beta2Cluster mocov1beta2.MySQLCluster - var v1beta1Cluster MySQLCluster - - obj, err := roundtrip.CompatibilityTestObject(scheme, GroupVersion.WithKind("MySQLCluster"), fillFuncs()) - if err != nil { - t.Fatal(err) - } - v1beta1Cluster = *obj.(*MySQLCluster) - - v1beta1Cluster.Spec.ServiceTemplate = &ServiceTemplate{ - ObjectMeta: ObjectMeta{}, - Spec: (*ServiceSpecApplyConfiguration)( - corev1ac.ServiceSpec(). - WithPorts(corev1ac.ServicePort(). - WithName("dummy"). - WithPort(8080), - ), - ), - } - - if err := scheme.Convert(v1beta1Cluster.DeepCopy(), &v1beta2Cluster, nil); err != nil { - t.Fatal(err) - } - - if diff := cmp.Diff(v1beta2Cluster.Spec.PrimaryServiceTemplate, v1beta2Cluster.Spec.ReplicaServiceTemplate, cmpopts.EquateEmpty()); diff != "" { - t.Fatalf("compatibility error case (-want +got):\n%s", diff) - } - }) - - t.Run("BackupPolicy v1beta1 => v1beta2 => v1beta1", func(t *testing.T) { - t.Parallel() - - scheme := newScheme(t) - - var oldPolicy1, oldPolicy2 BackupPolicy - var policy mocov1beta2.BackupPolicy - - obj, err := roundtrip.CompatibilityTestObject(scheme, GroupVersion.WithKind("BackupPolicy"), fillFuncs()) - if err != nil { - t.Fatal(err) - } - oldPolicy1 = *obj.(*BackupPolicy) - - if err := scheme.Convert(oldPolicy1.DeepCopy(), &policy, nil); err != nil { - t.Fatal(err) - } - if err := scheme.Convert(&policy, &oldPolicy2, nil); err != nil { - t.Fatal(err) - } - - if diff := cmp.Diff(oldPolicy1, oldPolicy2, cmpopts.EquateEmpty(), cmpopts.IgnoreTypes(metav1.TypeMeta{})); diff != "" { - t.Fatalf("compatibility error (-want +got):\n%s", diff) - } - }) -} - -func newScheme(t *testing.T) *runtime.Scheme { - t.Helper() - - scheme := runtime.NewScheme() - _ = AddToScheme(scheme) - _ = mocov1beta2.AddToScheme(scheme) - - return scheme -} - -func fillFuncs() map[reflect.Type]roundtrip.FillFunc { - funcs := map[reflect.Type]roundtrip.FillFunc{} - - // TODO: This is necessary because there is an int field in MySQLCluster. - // It is not a pointer type, so the value cannot be set. - var i int - funcs[reflect.TypeOf(i)] = func(s string, i int, obj interface{}) {} - - // refs: https://github.com/kubernetes/apimachinery/blob/v0.24.3/pkg/api/apitesting/roundtrip/construct.go#L33 - funcs[reflect.TypeOf(&runtime.RawExtension{})] = func(s string, i int, obj interface{}) { - // generate a raw object in normalized form - // TODO: test non-normalized round-tripping... YAMLToJSON normalizes and makes exact comparisons fail - obj.(*runtime.RawExtension).Raw = []byte(`{"apiVersion":"example.com/v1","kind":"CustomType","spec":{"replicas":1},"status":{"available":1}}`) - } - funcs[reflect.TypeOf(&metav1.TypeMeta{})] = func(s string, i int, obj interface{}) { - // APIVersion and Kind are not serialized in all formats (notably protobuf), so clear by default for cross-format checking. - obj.(*metav1.TypeMeta).APIVersion = "" - obj.(*metav1.TypeMeta).Kind = "" - } - funcs[reflect.TypeOf(&metav1.FieldsV1{})] = func(s string, i int, obj interface{}) { - obj.(*metav1.FieldsV1).Raw = []byte(`{}`) - } - funcs[reflect.TypeOf(&metav1.Time{})] = func(s string, i int, obj interface{}) { - // use the integer as an offset from the year - obj.(*metav1.Time).Time = time.Date(2000+i, 1, 1, 1, 1, 1, 0, time.UTC) - } - funcs[reflect.TypeOf(&metav1.MicroTime{})] = func(s string, i int, obj interface{}) { - // use the integer as an offset from the year, and as a microsecond - obj.(*metav1.MicroTime).Time = time.Date(2000+i, 1, 1, 1, 1, 1, i*int(time.Microsecond), time.UTC) - } - funcs[reflect.TypeOf(&intstr.IntOrString{})] = func(s string, i int, obj interface{}) { - // use the string as a string value - obj.(*intstr.IntOrString).Type = intstr.String - obj.(*intstr.IntOrString).StrVal = s + "Value" - } - return funcs -} diff --git a/api/v1beta1/doc.go b/api/v1beta1/doc.go deleted file mode 100644 index 0af5d9984..000000000 --- a/api/v1beta1/doc.go +++ /dev/null @@ -1,3 +0,0 @@ -// Package v1beta1 contains the v1beta1 API implementation. -// +k8s:conversion-gen=github.com/cybozu-go/moco/api/v1beta2 -package v1beta1 diff --git a/api/v1beta1/groupversion_info.go b/api/v1beta1/groupversion_info.go deleted file mode 100644 index 356ce4b28..000000000 --- a/api/v1beta1/groupversion_info.go +++ /dev/null @@ -1,23 +0,0 @@ -// Package v1beta1 contains API Schema definitions for the moco.cybozu.com v1beta1 API group -// +kubebuilder:object:generate=true -// +groupName=moco.cybozu.com -package v1beta1 - -import ( - "k8s.io/apimachinery/pkg/runtime/schema" - "sigs.k8s.io/controller-runtime/pkg/scheme" -) - -var ( - // GroupVersion is group version used to register these objects - GroupVersion = schema.GroupVersion{Group: "moco.cybozu.com", Version: "v1beta1"} - - // SchemeBuilder is used to add go types to the GroupVersionKind scheme - SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion} - - // AddToScheme adds the types in this group-version to the given scheme. - AddToScheme = SchemeBuilder.AddToScheme - - // localSchemeBuilder will be used in the code generated by conversion-gen. - localSchemeBuilder = &SchemeBuilder.SchemeBuilder -) diff --git a/api/v1beta1/job_types.go b/api/v1beta1/job_types.go deleted file mode 100644 index 847f13b6a..000000000 --- a/api/v1beta1/job_types.go +++ /dev/null @@ -1,225 +0,0 @@ -package v1beta1 - -import ( - "encoding/json" - - "k8s.io/apimachinery/pkg/api/resource" - corev1ac "k8s.io/client-go/applyconfigurations/core/v1" -) - -// JobConfig is a set of parameters for backup and restore job Pods. -type JobConfig struct { - // ServiceAccountName specifies the ServiceAccount to run the Pod. - // +kubebuilder:validation:MinLength=1 - ServiceAccountName string `json:"serviceAccountName"` - - // Specifies how to access an object storage bucket. - BucketConfig BucketConfig `json:"bucketConfig"` - - // WorkVolume is the volume source for the working directory. - // Since the backup or restore task can use a lot of bytes in the working directory, - // You should always give a volume with enough capacity. - // - // The recommended volume source is a generic ephemeral volume. - // https://kubernetes.io/docs/concepts/storage/ephemeral-volumes/#generic-ephemeral-volumes - WorkVolume VolumeSourceApplyConfiguration `json:"workVolume"` - - // Threads is the number of threads used for backup or restoration. - // +kubebuilder:validation:Minimum=1 - // +kubebuilder:default=4 - // +optional - Threads int `json:"threads,omitempty"` - - // CPU is the amount of CPU requested for the Pod. - // +kubebuilder:default=4 - // +nullable - // +optional - CPU *resource.Quantity `json:"cpu,omitempty"` - - // MaxCPU is the amount of maximum CPU for the Pod. - // +nullable - // +optional - MaxCPU *resource.Quantity `json:"maxCpu,omitempty"` - - // Memory is the amount of memory requested for the Pod. - // +kubebuilder:default="4Gi" - // +nullable - // +optional - Memory *resource.Quantity `json:"memory,omitempty"` - - // MaxMemory is the amount of maximum memory for the Pod. - // +nullable - // +optional - MaxMemory *resource.Quantity `json:"maxMemory,omitempty"` - - // List of sources to populate environment variables in the container. - // The keys defined within a source must be a C_IDENTIFIER. All invalid keys - // will be reported as an event when the container is starting. When a key exists in multiple - // sources, the value associated with the last source will take precedence. - // Values defined by an Env with a duplicate key will take precedence. - // - // You can configure S3 bucket access parameters through environment variables. - // See https://pkg.go.dev/github.com/aws/aws-sdk-go-v2/config#EnvConfig - // - // +optional - EnvFrom []EnvFromSourceApplyConfiguration `json:"envFrom,omitempty"` - - // List of environment variables to set in the container. - // - // You can configure S3 bucket access parameters through environment variables. - // See https://pkg.go.dev/github.com/aws/aws-sdk-go-v2/config#EnvConfig - // - // +optional - Env []EnvVarApplyConfiguration `json:"env,omitempty"` - - // If specified, the pod's scheduling constraints. - // - // +optional - Affinity *AffinityApplyConfiguration `json:"affinity,omitempty"` - - // Volumes defines the list of volumes that can be mounted by containers in the Pod. - // - // +optional - Volumes []VolumeApplyConfiguration `json:"volumes,omitempty"` - - // VolumeMounts describes a list of volume mounts that are to be mounted in a container. - // - // +optional - VolumeMounts []VolumeMountApplyConfiguration `json:"volumeMounts,omitempty"` -} - -// VolumeSourceApplyConfiguration is the type defined to implement the DeepCopy method. -type VolumeSourceApplyConfiguration corev1ac.VolumeSourceApplyConfiguration - -// DeepCopy is copying the receiver, creating a new VolumeSourceApplyConfiguration. -func (in *VolumeSourceApplyConfiguration) DeepCopy() *VolumeSourceApplyConfiguration { - out := new(VolumeSourceApplyConfiguration) - bytes, err := json.Marshal(in) - if err != nil { - panic("Failed to marshal") - } - err = json.Unmarshal(bytes, out) - if err != nil { - panic("Failed to unmarshal") - } - return out -} - -// VolumeApplyConfiguration is the type defined to implement the DeepCopy method. -type VolumeApplyConfiguration corev1ac.VolumeApplyConfiguration - -// DeepCopy is copying the receiver, creating a new VolumeSourceApplyConfiguration. -func (in *VolumeApplyConfiguration) DeepCopy() *VolumeApplyConfiguration { - out := new(VolumeApplyConfiguration) - bytes, err := json.Marshal(in) - if err != nil { - panic("Failed to marshal") - } - err = json.Unmarshal(bytes, out) - if err != nil { - panic("Failed to unmarshal") - } - return out -} - -// VolumeMountApplyConfiguration is the type defined to implement the DeepCopy method. -type VolumeMountApplyConfiguration corev1ac.VolumeMountApplyConfiguration - -// DeepCopy is copying the receiver, creating a new VolumeSourceApplyConfiguration. -func (in *VolumeMountApplyConfiguration) DeepCopy() *VolumeMountApplyConfiguration { - out := new(VolumeMountApplyConfiguration) - bytes, err := json.Marshal(in) - if err != nil { - panic("Failed to marshal") - } - err = json.Unmarshal(bytes, out) - if err != nil { - panic("Failed to unmarshal") - } - return out -} - -// EnvFromSourceApplyConfiguration is the type defined to implement the DeepCopy method. -type EnvFromSourceApplyConfiguration corev1ac.EnvFromSourceApplyConfiguration - -// DeepCopy is copying the receiver, creating a new EnvFromSourceApplyConfiguration. -func (in *EnvFromSourceApplyConfiguration) DeepCopy() *EnvFromSourceApplyConfiguration { - out := new(EnvFromSourceApplyConfiguration) - bytes, err := json.Marshal(in) - if err != nil { - panic("Failed to marshal") - } - err = json.Unmarshal(bytes, out) - if err != nil { - panic("Failed to unmarshal") - } - return out -} - -// EnvVarApplyConfiguration is the type defined to implement the DeepCopy method. -type EnvVarApplyConfiguration corev1ac.EnvVarApplyConfiguration - -// DeepCopy is copying the receiver, creating a new EnvVarApplyConfiguration. -func (in *EnvVarApplyConfiguration) DeepCopy() *EnvVarApplyConfiguration { - out := new(EnvVarApplyConfiguration) - bytes, err := json.Marshal(in) - if err != nil { - panic("Failed to marshal") - } - err = json.Unmarshal(bytes, out) - if err != nil { - panic("Failed to unmarshal") - } - return out -} - -// AffinityApplyConfiguration is the type defined to implement the DeepCopy method. -type AffinityApplyConfiguration corev1ac.AffinityApplyConfiguration - -// DeepCopy is copying the receiver, creating a new EnvVarApplyConfiguration. -func (in *AffinityApplyConfiguration) DeepCopy() *AffinityApplyConfiguration { - out := new(AffinityApplyConfiguration) - bytes, err := json.Marshal(in) - if err != nil { - panic("Failed to marshal") - } - err = json.Unmarshal(bytes, out) - if err != nil { - panic("Failed to unmarshal") - } - return out -} - -// BucketConfig is a set of parameter to access an object storage bucket. -type BucketConfig struct { - // The name of the bucket - // +kubebuilder:validation:MinLength=1 - BucketName string `json:"bucketName"` - - // The region of the bucket. - // This can also be set through `AWS_REGION` environment variable. - // +optional - Region string `json:"region,omitempty"` - - // The API endpoint URL. Set this for non-S3 object storages. - // +kubebuilder:validation:Pattern="^https?://.*" - // +optional - EndpointURL string `json:"endpointURL,omitempty"` - - // Allows you to enable the client to use path-style addressing, i.e., - // https?://ENDPOINT/BUCKET/KEY. By default, a virtual-host addressing - // is used (https?://BUCKET.ENDPOINT/KEY). - // +optional - UsePathStyle bool `json:"usePathStyle,omitempty"` - - // BackendType is an identifier for the object storage to be used. - // - // +kubebuilder:validation:Enum=s3;gcs - // +kubebuilder:default=s3 - // +optional - BackendType string `json:"backendType,omitempty"` - - // Path to SSL CA certificate file used in addition to system default. - // +optional - CaCert string `json:"caCert,omitempty"` -} diff --git a/api/v1beta1/mysqlcluster_types.go b/api/v1beta1/mysqlcluster_types.go deleted file mode 100644 index 7c7fc8091..000000000 --- a/api/v1beta1/mysqlcluster_types.go +++ /dev/null @@ -1,463 +0,0 @@ -package v1beta1 - -import ( - "encoding/json" - "fmt" - - corev1 "k8s.io/api/core/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - corev1ac "k8s.io/client-go/applyconfigurations/core/v1" -) - -// EDIT THIS FILE! THIS IS SCAFFOLDING FOR YOU TO OWN! -// NOTE: json tags are required. Any new fields you add must have json tags for the fields to be serialized. - -// MySQLClusterSpec defines the desired state of MySQLCluster -type MySQLClusterSpec struct { - // INSERT ADDITIONAL SPEC FIELDS - desired state of cluster - // Important: Run "make" to regenerate code after modifying this file - - // Replicas is the number of instances. Available values are positive odd numbers. - // +kubebuilder:default=1 - // +optional - Replicas int32 `json:"replicas,omitempty"` - - // PodTemplate is a `Pod` template for MySQL server container. - PodTemplate PodTemplateSpec `json:"podTemplate"` - - // VolumeClaimTemplates is a list of `PersistentVolumeClaim` templates for MySQL server container. - // A claim named "mysql-data" must be included in the list. - // +kubebuilder:validation:MinItems=1 - VolumeClaimTemplates []PersistentVolumeClaim `json:"volumeClaimTemplates"` - - // ServiceTemplate is a `Service` template for both primary and replicas. - // +optional - ServiceTemplate *ServiceTemplate `json:"serviceTemplate,omitempty"` - - // MySQLConfigMapName is a `ConfigMap` name of MySQL config. - // +nullable - // +optional - MySQLConfigMapName *string `json:"mysqlConfigMapName,omitempty"` - - // ReplicationSourceSecretName is a `Secret` name which contains replication source info. - // If this field is given, the `MySQLCluster` works as an intermediate primary. - // +nullable - // +optional - ReplicationSourceSecretName *string `json:"replicationSourceSecretName,omitempty"` - - // Collectors is the list of collector flag names of mysqld_exporter. - // If this field is not empty, MOCO adds mysqld_exporter as a sidecar to collect - // and export mysqld metrics in Prometheus format. - // - // See https://github.com/prometheus/mysqld_exporter/blob/master/README.md#collector-flags for flag names. - // - // Example: ["engine_innodb_status", "info_schema.innodb_metrics"] - // +optional - Collectors []string `json:"collectors,omitempty"` - - // ServerIDBase, if set, will become the base number of server-id of each MySQL - // instance of this cluster. For example, if this is 100, the server-ids will be - // 100, 101, 102, and so on. - // If the field is not given or zero, MOCO automatically sets a random positive integer. - // +optional - ServerIDBase int32 `json:"serverIDBase,omitempty"` - - // MaxDelaySeconds configures the readiness probe of mysqld container. - // For a replica mysqld instance, if it is delayed to apply transactions over this threshold, - // the mysqld instance will be marked as non-ready. - // The default is 60 seconds. - // Setting this field to 0 disables the delay check in the probe. - // +kubebuilder:validation:Minimum=0 - // +kubebuilder:default=60 - // +optional - MaxDelaySeconds *int `json:"maxDelaySeconds,omitempty"` - - // StartupWaitSeconds is the maximum duration to wait for `mysqld` container to start working. - // The default is 3600 seconds. - // +kubebuilder:validation:Minimum=0 - // +kubebuilder:default=3600 - // +optional - StartupWaitSeconds int32 `json:"startupDelaySeconds,omitempty"` - - // LogRotationSchedule specifies the schedule to rotate MySQL logs. - // If not set, the default is to rotate logs every 5 minutes. - // See https://pkg.go.dev/github.com/robfig/cron/v3#hdr-CRON_Expression_Format for the field format. - // +optional - LogRotationSchedule string `json:"logRotationSchedule,omitempty"` - - // The name of BackupPolicy custom resource in the same namespace. - // If this is set, MOCO creates a CronJob to take backup of this MySQL cluster periodically. - // +nullable - // +optional - BackupPolicyName *string `json:"backupPolicyName,omitempty"` - - // Restore is the specification to perform Point-in-Time-Recovery from existing cluster. - // If this field is not null, MOCO restores the data as specified and create a new - // cluster with the data. This field is not editable. - // +optional - Restore *RestoreSpec `json:"restore,omitempty"` - - // DisableSlowQueryLogContainer controls whether to add a sidecar container named "slow-log" - // to output slow logs as the containers output. - // If set to true, the sidecar container is not added. The default is false. - // +optional - DisableSlowQueryLogContainer bool `json:"disableSlowQueryLogContainer,omitempty"` -} - -// ObjectMeta is metadata of objects. -// This is partially copied from metav1.ObjectMeta. -type ObjectMeta struct { - // Name is the name of the object. - // +optional - Name string `json:"name,omitempty"` - - // Labels is a map of string keys and values. - // +optional - Labels map[string]string `json:"labels,omitempty"` - - // Annotations is a map of string keys and values. - // +optional - Annotations map[string]string `json:"annotations,omitempty"` -} - -// PodSpecApplyConfiguration is the type defined to implement the DeepCopy method. -type PodSpecApplyConfiguration corev1ac.PodSpecApplyConfiguration - -// DeepCopy is copying the receiver, creating a new PodSpecApplyConfiguration. -func (in *PodSpecApplyConfiguration) DeepCopy() *PodSpecApplyConfiguration { - out := new(PodSpecApplyConfiguration) - bytes, err := json.Marshal(in) - if err != nil { - panic("Failed to marshal") - } - err = json.Unmarshal(bytes, out) - if err != nil { - panic("Failed to unmarshal") - } - return out -} - -// PodTemplateSpec describes the data a pod should have when created from a template. -// This is slightly modified from corev1.PodTemplateSpec. -type PodTemplateSpec struct { - // Standard object's metadata. The name in this metadata is ignored. - // +optional - ObjectMeta `json:"metadata,omitempty"` - - // Specification of the desired behavior of the pod. - // The name of the MySQL server container in this spec must be `mysqld`. - Spec PodSpecApplyConfiguration `json:"spec"` -} - -// PersistentVolumeClaimSpecApplyConfiguration is the type defined to implement the DeepCopy method. -type PersistentVolumeClaimSpecApplyConfiguration corev1ac.PersistentVolumeClaimSpecApplyConfiguration - -// DeepCopy is copying the receiver, creating a new PersistentVolumeClaimSpecApplyConfiguration. -func (in *PersistentVolumeClaimSpecApplyConfiguration) DeepCopy() *PersistentVolumeClaimSpecApplyConfiguration { - out := new(PersistentVolumeClaimSpecApplyConfiguration) - bytes, err := json.Marshal(in) - if err != nil { - panic("Failed to marshal") - } - err = json.Unmarshal(bytes, out) - if err != nil { - panic("Failed to unmarshal") - } - return out -} - -// PersistentVolumeClaim is a user's request for and claim to a persistent volume. -// This is slightly modified from corev1.PersistentVolumeClaim. -type PersistentVolumeClaim struct { - // Standard object's metadata. - ObjectMeta `json:"metadata"` - - // Spec defines the desired characteristics of a volume requested by a pod author. - Spec PersistentVolumeClaimSpecApplyConfiguration `json:"spec"` -} - -// ToCoreV1 converts the PersistentVolumeClaim to a PersistentVolumeClaimApplyConfiguration. -func (in PersistentVolumeClaim) ToCoreV1() *corev1ac.PersistentVolumeClaimApplyConfiguration { - // If you use this, the namespace will not be nil and will not match for "equality.Semantic.DeepEqual". - // claim := corev1ac.PersistentVolumeClaim(in.Name, ""). - claim := &corev1ac.PersistentVolumeClaimApplyConfiguration{} - - claim.WithName(in.Name). - WithLabels(in.Labels). - WithAnnotations(in.Annotations). - WithStatus(corev1ac.PersistentVolumeClaimStatus()) - - spec := corev1ac.PersistentVolumeClaimSpecApplyConfiguration(*in.Spec.DeepCopy()) - claim.WithSpec(&spec) - - if claim.Spec.VolumeMode == nil { - claim.Spec.WithVolumeMode(corev1.PersistentVolumeFilesystem) - } - - claim.Status.WithPhase(corev1.ClaimPending) - - return claim -} - -// ServiceSpecApplyConfiguration is the type defined to implement the DeepCopy method. -type ServiceSpecApplyConfiguration corev1ac.ServiceSpecApplyConfiguration - -// DeepCopy is copying the receiver, creating a new ServiceSpecApplyConfiguration. -func (in *ServiceSpecApplyConfiguration) DeepCopy() *ServiceSpecApplyConfiguration { - out := new(ServiceSpecApplyConfiguration) - bytes, err := json.Marshal(in) - if err != nil { - panic("Failed to marshal") - } - err = json.Unmarshal(bytes, out) - if err != nil { - panic("Failed to unmarshal") - } - return out -} - -// ServiceTemplate defines the desired spec and annotations of Service -type ServiceTemplate struct { - // Standard object's metadata. Only `annotations` and `labels` are valid. - // +optional - ObjectMeta `json:"metadata,omitempty"` - - // Spec is the ServiceSpec - // +optional - Spec *ServiceSpecApplyConfiguration `json:"spec,omitempty"` -} - -// RestoreSpec represents a set of parameters for Point-in-Time Recovery. -type RestoreSpec struct { - // SourceName is the name of the source `MySQLCluster`. - // +kubebuilder:validation:MinLength=1 - SourceName string `json:"sourceName"` - - // SourceNamespace is the namespace of the source `MySQLCluster`. - // +kubebuilder:validation:MinLength=1 - SourceNamespace string `json:"sourceNamespace"` - - // RestorePoint is the target date and time to restore data. - // The format is RFC3339. e.g. "2006-01-02T15:04:05Z" - RestorePoint metav1.Time `json:"restorePoint"` - - // Specifies parameters for restore Pod. - JobConfig JobConfig `json:"jobConfig"` -} - -// MySQLClusterStatus defines the observed state of MySQLCluster -type MySQLClusterStatus struct { - // INSERT ADDITIONAL STATUS FIELD - define observed state of cluster - // Important: Run "make" to regenerate code after modifying this file - - // Conditions is an array of conditions. - // +optional - Conditions []metav1.Condition `json:"conditions,omitempty"` - - // CurrentPrimaryIndex is the index of the current primary Pod in StatefulSet. - // Initially, this is zero. - CurrentPrimaryIndex int `json:"currentPrimaryIndex"` - - // SyncedReplicas is the number of synced instances including the primary. - // +optional - SyncedReplicas int `json:"syncedReplicas,omitempty"` - - // ErrantReplicas is the number of instances that have errant transactions. - // +optional - ErrantReplicas int `json:"errantReplicas,omitempty"` - - // ErrantReplicaList is the list of indices of errant replicas. - // +optional - ErrantReplicaList []int `json:"errantReplicaList,omitempty"` - - // Backup is the status of the last successful backup. - // +optional - Backup BackupStatus `json:"backup"` - - // RestoredTime is the time when the cluster data is restored. - // +optional - RestoredTime *metav1.Time `json:"restoredTime,omitempty"` - - // Cloned indicates if the initial cloning from an external source has been completed. - // +optional - Cloned bool `json:"cloned,omitempty"` - - // ReconcileInfo represents version information for reconciler. - // +optional - ReconcileInfo ReconcileInfo `json:"reconcileInfo"` -} - -const ( - ConditionInitialized string = "Initialized" - ConditionAvailable string = "Available" - ConditionHealthy string = "Healthy" - ConditionStatefulSetReady string = "StatefulSetReady" - ConditionReconcileSuccess string = "ReconcileSuccess" -) - -// BackupStatus represents the status of the last successful backup. -type BackupStatus struct { - // The time of the backup. This is used to generate object keys of backup files in a bucket. - // +nullable - Time metav1.Time `json:"time"` - - // Elapsed is the time spent on the backup. - Elapsed metav1.Duration `json:"elapsed"` - - // SourceIndex is the ordinal of the backup source instance. - SourceIndex int `json:"sourceIndex"` - - // SourceUUID is the `server_uuid` of the backup source instance. - SourceUUID string `json:"sourceUUID"` - - // BinlogFilename is the binlog filename that the backup source instance was writing to - // at the backup. - BinlogFilename string `json:"binlogFilename"` - - // GTIDSet is the GTID set of the full dump of database. - GTIDSet string `json:"gtidSet"` - - // DumpSize is the size in bytes of a full dump of database stored in an object storage bucket. - DumpSize int64 `json:"dumpSize"` - - // BinlogSize is the size in bytes of a tarball of binlog files stored in an object storage bucket. - BinlogSize int64 `json:"binlogSize"` - - // WorkDirUsage is the max usage in bytes of the woking directory. - WorkDirUsage int64 `json:"workDirUsage"` - - // Warnings are list of warnings from the last backup, if any. - // +nullable - Warnings []string `json:"warnings"` -} - -// ReconcileInfo is the type to record the last reconciliation information. -type ReconcileInfo struct { - // Generation is the `metadata.generation` value of the last reconciliation. - // See also https://kubernetes.io/docs/tasks/extend-kubernetes/custom-resources/custom-resource-definitions/#status-subresource - // +optional - Generation int64 `json:"generation,omitempty"` - - // ReconcileVersion is the version of the operator reconciler. - // +optional - ReconcileVersion int `json:"reconcileVersion"` -} - -// +kubebuilder:object:root=true -// +kubebuilder:subresource:status -// +kubebuilder:deprecatedversion -// +kubebuilder:printcolumn:name="Available",type="string",JSONPath=".status.conditions[?(@.type=='Available')].status" -// +kubebuilder:printcolumn:name="Healthy",type="string",JSONPath=".status.conditions[?(@.type=='Healthy')].status" -// +kubebuilder:printcolumn:name="Primary",type="integer",JSONPath=".status.currentPrimaryIndex" -// +kubebuilder:printcolumn:name="Synced replicas",type="integer",JSONPath=".status.syncedReplicas" -// +kubebuilder:printcolumn:name="Errant replicas",type="integer",JSONPath=".status.errantReplicas" -// +kubebuilder:printcolumn:name="Last backup",type="string",JSONPath=".status.backup.time" - -// MySQLCluster is the Schema for the mysqlclusters API -type MySQLCluster struct { - metav1.TypeMeta `json:",inline"` - metav1.ObjectMeta `json:"metadata,omitempty"` - - Spec MySQLClusterSpec `json:"spec,omitempty"` - Status MySQLClusterStatus `json:"status,omitempty"` -} - -// PrefixedName returns "moco-<>" -func (r *MySQLCluster) PrefixedName() string { - return "moco-" + r.Name -} - -// PodName returns PrefixedName() + "-" + index -func (r *MySQLCluster) PodName(index int) string { - return fmt.Sprintf("%s-%d", r.PrefixedName(), index) -} - -// UserSecretName returns the name of the Secret for users. -// This Secret is placed in the same namespace as r. -func (r *MySQLCluster) UserSecretName() string { - return "moco-" + r.Name -} - -// MyCnfSecretName returns the name of the Secret for users. -// The contents are formatted for mysql commands (as my.cnf). -func (r *MySQLCluster) MyCnfSecretName() string { - return "moco-my-cnf-" + r.Name -} - -// ControllerSecretName returns the name of the Secret for MOCO controller. -// This Secret is placed in the namespace of the controller. -func (r *MySQLCluster) ControllerSecretName() string { - return fmt.Sprintf("mysql-%s.%s", r.Namespace, r.Name) -} - -// HeadlessServiceName returns the name of Service for StatefulSet. -func (r *MySQLCluster) HeadlessServiceName() string { - return r.PrefixedName() -} - -// PrimaryServiceName returns the name of Service for the primary mysqld instance. -func (r *MySQLCluster) PrimaryServiceName() string { - return r.PrefixedName() + "-primary" -} - -// ReplicaServiceName returns the name of Service for replica mysqld instances. -func (r *MySQLCluster) ReplicaServiceName() string { - return r.PrefixedName() + "-replica" -} - -// PodHostname returns the hostname of a Pod with the given index. -func (r *MySQLCluster) PodHostname(index int) string { - return fmt.Sprintf("%s.%s.%s.svc", r.PodName(index), r.HeadlessServiceName(), r.Namespace) -} - -// SlowQueryLogAgentConfigMapName returns the name of the slow query log agent config name. -func (r *MySQLCluster) SlowQueryLogAgentConfigMapName() string { - return fmt.Sprintf("moco-slow-log-agent-config-%s", r.Name) -} - -// CertificateName returns the name of Certificate issued for moco-agent gRPC server. -// The Certificate will be created in the namespace of the controller. -// -// This is also the Secret name created from the Certificate. -func (r *MySQLCluster) CertificateName() string { - return fmt.Sprintf("moco-agent-%s.%s", r.Namespace, r.Name) -} - -// GRPCSecretName returns the name of Secret of TLS server certificate for moco-agent. -// The Secret will be created in the MySQLCluster namespace. -func (r *MySQLCluster) GRPCSecretName() string { - return fmt.Sprintf("%s-grpc", r.PrefixedName()) -} - -// BackupCronJobName returns the name of CronJob for backup. -func (r *MySQLCluster) BackupCronJobName() string { - return fmt.Sprintf("moco-backup-%s", r.Name) -} - -// BackupRoleName returns the name of Role/RoleBinding for backup. -func (r *MySQLCluster) BackupRoleName() string { - return fmt.Sprintf("moco-backup-%s", r.Name) -} - -// RestoreJobName returns the name of Job for restoration. -func (r *MySQLCluster) RestoreJobName() string { - return fmt.Sprintf("moco-restore-%s", r.Name) -} - -// RestoreRoleName returns the name of Role/RoleBinding for restoration. -func (r *MySQLCluster) RestoreRoleName() string { - return fmt.Sprintf("moco-restore-%s", r.Name) -} - -//+kubebuilder:object:root=true - -// MySQLClusterList contains a list of MySQLCluster -type MySQLClusterList struct { - metav1.TypeMeta `json:",inline"` - metav1.ListMeta `json:"metadata,omitempty"` - Items []MySQLCluster `json:"items"` -} - -func init() { - SchemeBuilder.Register(&MySQLCluster{}, &MySQLClusterList{}) -} diff --git a/api/v1beta1/mysqlcluster_webhook.go b/api/v1beta1/mysqlcluster_webhook.go deleted file mode 100644 index 6d1e534a3..000000000 --- a/api/v1beta1/mysqlcluster_webhook.go +++ /dev/null @@ -1,11 +0,0 @@ -package v1beta1 - -import ( - ctrl "sigs.k8s.io/controller-runtime" -) - -func (r *MySQLCluster) SetupWebhookWithManager(mgr ctrl.Manager) error { - return ctrl.NewWebhookManagedBy(mgr). - For(r). - Complete() -} diff --git a/api/v1beta1/webhook_suite_test.go b/api/v1beta1/webhook_suite_test.go deleted file mode 100644 index e469d2c5b..000000000 --- a/api/v1beta1/webhook_suite_test.go +++ /dev/null @@ -1,124 +0,0 @@ -package v1beta1 - -import ( - "context" - "crypto/tls" - "fmt" - "net" - "path/filepath" - "testing" - "time" - - mocov1beta2 "github.com/cybozu-go/moco/api/v1beta2" - . "github.com/onsi/ginkgo" - . "github.com/onsi/gomega" - "go.uber.org/zap/zapcore" - - admissionv1beta1 "k8s.io/api/admission/v1beta1" - //+kubebuilder:scaffold:imports - "k8s.io/apimachinery/pkg/runtime" - ctrl "sigs.k8s.io/controller-runtime" - "sigs.k8s.io/controller-runtime/pkg/client" - "sigs.k8s.io/controller-runtime/pkg/envtest" - logf "sigs.k8s.io/controller-runtime/pkg/log" - "sigs.k8s.io/controller-runtime/pkg/log/zap" -) - -// These tests use Ginkgo (BDD-style Go testing framework). Refer to -// http://onsi.github.io/ginkgo/ to learn more about Ginkgo. - -var k8sClient client.Client -var testEnv *envtest.Environment -var ctx context.Context -var cancel context.CancelFunc - -func TestAPIs(t *testing.T) { - RegisterFailHandler(Fail) - - RunSpecs(t, "Webhook Suite") -} - -var _ = BeforeSuite(func() { - logf.SetLogger(zap.New(zap.WriteTo(GinkgoWriter), zap.StacktraceLevel(zapcore.DPanicLevel))) - - ctx, cancel = context.WithCancel(context.TODO()) - - scheme := runtime.NewScheme() - err := AddToScheme(scheme) - Expect(err).NotTo(HaveOccurred()) - err = mocov1beta2.AddToScheme(scheme) - Expect(err).NotTo(HaveOccurred()) - - err = admissionv1beta1.AddToScheme(scheme) - Expect(err).NotTo(HaveOccurred()) - - By("bootstrapping test environment") - testEnv = &envtest.Environment{ - CRDDirectoryPaths: []string{filepath.Join("..", "..", "config", "crd", "tests")}, - CRDInstallOptions: envtest.CRDInstallOptions{ - Scheme: scheme, - }, - ErrorIfCRDPathMissing: false, - WebhookInstallOptions: envtest.WebhookInstallOptions{ - Paths: []string{filepath.Join("..", "..", "config", "webhook")}, - }, - } - - cfg, err := testEnv.Start() - Expect(err).NotTo(HaveOccurred()) - Expect(cfg).NotTo(BeNil()) - - //+kubebuilder:scaffold:scheme - - k8sClient, err = client.New(cfg, client.Options{Scheme: scheme}) - Expect(err).NotTo(HaveOccurred()) - Expect(k8sClient).NotTo(BeNil()) - - // start webhook server using Manager - webhookInstallOptions := &testEnv.CRDInstallOptions.WebhookOptions - mgr, err := ctrl.NewManager(cfg, ctrl.Options{ - Scheme: scheme, - Host: webhookInstallOptions.LocalServingHost, - Port: webhookInstallOptions.LocalServingPort, - CertDir: webhookInstallOptions.LocalServingCertDir, - LeaderElection: false, - MetricsBindAddress: "0", - }) - Expect(err).NotTo(HaveOccurred()) - - err = (&MySQLCluster{}).SetupWebhookWithManager(mgr) - Expect(err).NotTo(HaveOccurred()) - err = (&mocov1beta2.MySQLCluster{}).SetupWebhookWithManager(mgr) - Expect(err).NotTo(HaveOccurred()) - - //+kubebuilder:scaffold:webhook - - go func() { - defer GinkgoRecover() - err = mgr.Start(ctx) - if err != nil { - Expect(err).NotTo(HaveOccurred()) - } - }() - - // wait for the webhook server to get ready - dialer := &net.Dialer{Timeout: time.Second} - addrPort := fmt.Sprintf("%s:%d", webhookInstallOptions.LocalServingHost, webhookInstallOptions.LocalServingPort) - Eventually(func() error { - conn, err := tls.DialWithDialer(dialer, "tcp", addrPort, &tls.Config{InsecureSkipVerify: true}) - if err != nil { - return err - } - conn.Close() - return nil - }).Should(Succeed()) - -}, 60) - -var _ = AfterSuite(func() { - cancel() - time.Sleep(50 * time.Millisecond) - By("tearing down the test environment") - err := testEnv.Stop() - Expect(err).NotTo(HaveOccurred()) -}) diff --git a/api/v1beta1/zz_generated.conversion.go b/api/v1beta1/zz_generated.conversion.go deleted file mode 100644 index 1849f4dac..000000000 --- a/api/v1beta1/zz_generated.conversion.go +++ /dev/null @@ -1,1179 +0,0 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - -// Code generated by conversion-gen. DO NOT EDIT. - -package v1beta1 - -import ( - unsafe "unsafe" - - v1beta2 "github.com/cybozu-go/moco/api/v1beta2" - batchv1 "k8s.io/api/batch/v1" - corev1 "k8s.io/api/core/v1" - resource "k8s.io/apimachinery/pkg/api/resource" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - conversion "k8s.io/apimachinery/pkg/conversion" - runtime "k8s.io/apimachinery/pkg/runtime" - v1 "k8s.io/client-go/applyconfigurations/core/v1" - applyconfigurationsmetav1 "k8s.io/client-go/applyconfigurations/meta/v1" -) - -func init() { - localSchemeBuilder.Register(RegisterConversions) -} - -// RegisterConversions adds conversion functions to the given scheme. -// Public to allow building arbitrary schemes. -func RegisterConversions(s *runtime.Scheme) error { - if err := s.AddGeneratedConversionFunc((*AffinityApplyConfiguration)(nil), (*v1beta2.AffinityApplyConfiguration)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert__AffinityApplyConfiguration_To_v1beta2_AffinityApplyConfiguration(a.(*AffinityApplyConfiguration), b.(*v1beta2.AffinityApplyConfiguration), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*v1beta2.AffinityApplyConfiguration)(nil), (*AffinityApplyConfiguration)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1beta2_AffinityApplyConfiguration_To__AffinityApplyConfiguration(a.(*v1beta2.AffinityApplyConfiguration), b.(*AffinityApplyConfiguration), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*BackupPolicy)(nil), (*v1beta2.BackupPolicy)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert__BackupPolicy_To_v1beta2_BackupPolicy(a.(*BackupPolicy), b.(*v1beta2.BackupPolicy), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*v1beta2.BackupPolicy)(nil), (*BackupPolicy)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1beta2_BackupPolicy_To__BackupPolicy(a.(*v1beta2.BackupPolicy), b.(*BackupPolicy), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*BackupPolicyList)(nil), (*v1beta2.BackupPolicyList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert__BackupPolicyList_To_v1beta2_BackupPolicyList(a.(*BackupPolicyList), b.(*v1beta2.BackupPolicyList), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*v1beta2.BackupPolicyList)(nil), (*BackupPolicyList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1beta2_BackupPolicyList_To__BackupPolicyList(a.(*v1beta2.BackupPolicyList), b.(*BackupPolicyList), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*BackupPolicySpec)(nil), (*v1beta2.BackupPolicySpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert__BackupPolicySpec_To_v1beta2_BackupPolicySpec(a.(*BackupPolicySpec), b.(*v1beta2.BackupPolicySpec), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*v1beta2.BackupPolicySpec)(nil), (*BackupPolicySpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1beta2_BackupPolicySpec_To__BackupPolicySpec(a.(*v1beta2.BackupPolicySpec), b.(*BackupPolicySpec), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*BackupStatus)(nil), (*v1beta2.BackupStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert__BackupStatus_To_v1beta2_BackupStatus(a.(*BackupStatus), b.(*v1beta2.BackupStatus), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*v1beta2.BackupStatus)(nil), (*BackupStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1beta2_BackupStatus_To__BackupStatus(a.(*v1beta2.BackupStatus), b.(*BackupStatus), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*BucketConfig)(nil), (*v1beta2.BucketConfig)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert__BucketConfig_To_v1beta2_BucketConfig(a.(*BucketConfig), b.(*v1beta2.BucketConfig), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*v1beta2.BucketConfig)(nil), (*BucketConfig)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1beta2_BucketConfig_To__BucketConfig(a.(*v1beta2.BucketConfig), b.(*BucketConfig), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*EnvFromSourceApplyConfiguration)(nil), (*v1beta2.EnvFromSourceApplyConfiguration)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert__EnvFromSourceApplyConfiguration_To_v1beta2_EnvFromSourceApplyConfiguration(a.(*EnvFromSourceApplyConfiguration), b.(*v1beta2.EnvFromSourceApplyConfiguration), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*v1beta2.EnvFromSourceApplyConfiguration)(nil), (*EnvFromSourceApplyConfiguration)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1beta2_EnvFromSourceApplyConfiguration_To__EnvFromSourceApplyConfiguration(a.(*v1beta2.EnvFromSourceApplyConfiguration), b.(*EnvFromSourceApplyConfiguration), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*EnvVarApplyConfiguration)(nil), (*v1beta2.EnvVarApplyConfiguration)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert__EnvVarApplyConfiguration_To_v1beta2_EnvVarApplyConfiguration(a.(*EnvVarApplyConfiguration), b.(*v1beta2.EnvVarApplyConfiguration), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*v1beta2.EnvVarApplyConfiguration)(nil), (*EnvVarApplyConfiguration)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1beta2_EnvVarApplyConfiguration_To__EnvVarApplyConfiguration(a.(*v1beta2.EnvVarApplyConfiguration), b.(*EnvVarApplyConfiguration), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*JobConfig)(nil), (*v1beta2.JobConfig)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert__JobConfig_To_v1beta2_JobConfig(a.(*JobConfig), b.(*v1beta2.JobConfig), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*v1beta2.JobConfig)(nil), (*JobConfig)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1beta2_JobConfig_To__JobConfig(a.(*v1beta2.JobConfig), b.(*JobConfig), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*MySQLClusterList)(nil), (*v1beta2.MySQLClusterList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert__MySQLClusterList_To_v1beta2_MySQLClusterList(a.(*MySQLClusterList), b.(*v1beta2.MySQLClusterList), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*v1beta2.MySQLClusterList)(nil), (*MySQLClusterList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1beta2_MySQLClusterList_To__MySQLClusterList(a.(*v1beta2.MySQLClusterList), b.(*MySQLClusterList), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*MySQLClusterStatus)(nil), (*v1beta2.MySQLClusterStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert__MySQLClusterStatus_To_v1beta2_MySQLClusterStatus(a.(*MySQLClusterStatus), b.(*v1beta2.MySQLClusterStatus), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*v1beta2.MySQLClusterStatus)(nil), (*MySQLClusterStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1beta2_MySQLClusterStatus_To__MySQLClusterStatus(a.(*v1beta2.MySQLClusterStatus), b.(*MySQLClusterStatus), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*ObjectMeta)(nil), (*v1beta2.ObjectMeta)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert__ObjectMeta_To_v1beta2_ObjectMeta(a.(*ObjectMeta), b.(*v1beta2.ObjectMeta), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*v1beta2.ObjectMeta)(nil), (*ObjectMeta)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1beta2_ObjectMeta_To__ObjectMeta(a.(*v1beta2.ObjectMeta), b.(*ObjectMeta), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*PersistentVolumeClaim)(nil), (*v1beta2.PersistentVolumeClaim)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert__PersistentVolumeClaim_To_v1beta2_PersistentVolumeClaim(a.(*PersistentVolumeClaim), b.(*v1beta2.PersistentVolumeClaim), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*v1beta2.PersistentVolumeClaim)(nil), (*PersistentVolumeClaim)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1beta2_PersistentVolumeClaim_To__PersistentVolumeClaim(a.(*v1beta2.PersistentVolumeClaim), b.(*PersistentVolumeClaim), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*PersistentVolumeClaimSpecApplyConfiguration)(nil), (*v1beta2.PersistentVolumeClaimSpecApplyConfiguration)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert__PersistentVolumeClaimSpecApplyConfiguration_To_v1beta2_PersistentVolumeClaimSpecApplyConfiguration(a.(*PersistentVolumeClaimSpecApplyConfiguration), b.(*v1beta2.PersistentVolumeClaimSpecApplyConfiguration), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*v1beta2.PersistentVolumeClaimSpecApplyConfiguration)(nil), (*PersistentVolumeClaimSpecApplyConfiguration)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1beta2_PersistentVolumeClaimSpecApplyConfiguration_To__PersistentVolumeClaimSpecApplyConfiguration(a.(*v1beta2.PersistentVolumeClaimSpecApplyConfiguration), b.(*PersistentVolumeClaimSpecApplyConfiguration), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*PodSpecApplyConfiguration)(nil), (*v1beta2.PodSpecApplyConfiguration)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert__PodSpecApplyConfiguration_To_v1beta2_PodSpecApplyConfiguration(a.(*PodSpecApplyConfiguration), b.(*v1beta2.PodSpecApplyConfiguration), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*v1beta2.PodSpecApplyConfiguration)(nil), (*PodSpecApplyConfiguration)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1beta2_PodSpecApplyConfiguration_To__PodSpecApplyConfiguration(a.(*v1beta2.PodSpecApplyConfiguration), b.(*PodSpecApplyConfiguration), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*PodTemplateSpec)(nil), (*v1beta2.PodTemplateSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert__PodTemplateSpec_To_v1beta2_PodTemplateSpec(a.(*PodTemplateSpec), b.(*v1beta2.PodTemplateSpec), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*ReconcileInfo)(nil), (*v1beta2.ReconcileInfo)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert__ReconcileInfo_To_v1beta2_ReconcileInfo(a.(*ReconcileInfo), b.(*v1beta2.ReconcileInfo), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*v1beta2.ReconcileInfo)(nil), (*ReconcileInfo)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1beta2_ReconcileInfo_To__ReconcileInfo(a.(*v1beta2.ReconcileInfo), b.(*ReconcileInfo), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*RestoreSpec)(nil), (*v1beta2.RestoreSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert__RestoreSpec_To_v1beta2_RestoreSpec(a.(*RestoreSpec), b.(*v1beta2.RestoreSpec), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*v1beta2.RestoreSpec)(nil), (*RestoreSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1beta2_RestoreSpec_To__RestoreSpec(a.(*v1beta2.RestoreSpec), b.(*RestoreSpec), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*ServiceSpecApplyConfiguration)(nil), (*v1beta2.ServiceSpecApplyConfiguration)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert__ServiceSpecApplyConfiguration_To_v1beta2_ServiceSpecApplyConfiguration(a.(*ServiceSpecApplyConfiguration), b.(*v1beta2.ServiceSpecApplyConfiguration), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*v1beta2.ServiceSpecApplyConfiguration)(nil), (*ServiceSpecApplyConfiguration)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1beta2_ServiceSpecApplyConfiguration_To__ServiceSpecApplyConfiguration(a.(*v1beta2.ServiceSpecApplyConfiguration), b.(*ServiceSpecApplyConfiguration), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*ServiceTemplate)(nil), (*v1beta2.ServiceTemplate)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert__ServiceTemplate_To_v1beta2_ServiceTemplate(a.(*ServiceTemplate), b.(*v1beta2.ServiceTemplate), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*v1beta2.ServiceTemplate)(nil), (*ServiceTemplate)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1beta2_ServiceTemplate_To__ServiceTemplate(a.(*v1beta2.ServiceTemplate), b.(*ServiceTemplate), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*VolumeApplyConfiguration)(nil), (*v1beta2.VolumeApplyConfiguration)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert__VolumeApplyConfiguration_To_v1beta2_VolumeApplyConfiguration(a.(*VolumeApplyConfiguration), b.(*v1beta2.VolumeApplyConfiguration), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*v1beta2.VolumeApplyConfiguration)(nil), (*VolumeApplyConfiguration)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1beta2_VolumeApplyConfiguration_To__VolumeApplyConfiguration(a.(*v1beta2.VolumeApplyConfiguration), b.(*VolumeApplyConfiguration), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*VolumeMountApplyConfiguration)(nil), (*v1beta2.VolumeMountApplyConfiguration)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert__VolumeMountApplyConfiguration_To_v1beta2_VolumeMountApplyConfiguration(a.(*VolumeMountApplyConfiguration), b.(*v1beta2.VolumeMountApplyConfiguration), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*v1beta2.VolumeMountApplyConfiguration)(nil), (*VolumeMountApplyConfiguration)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1beta2_VolumeMountApplyConfiguration_To__VolumeMountApplyConfiguration(a.(*v1beta2.VolumeMountApplyConfiguration), b.(*VolumeMountApplyConfiguration), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*VolumeSourceApplyConfiguration)(nil), (*v1beta2.VolumeSourceApplyConfiguration)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert__VolumeSourceApplyConfiguration_To_v1beta2_VolumeSourceApplyConfiguration(a.(*VolumeSourceApplyConfiguration), b.(*v1beta2.VolumeSourceApplyConfiguration), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*v1beta2.VolumeSourceApplyConfiguration)(nil), (*VolumeSourceApplyConfiguration)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1beta2_VolumeSourceApplyConfiguration_To__VolumeSourceApplyConfiguration(a.(*v1beta2.VolumeSourceApplyConfiguration), b.(*VolumeSourceApplyConfiguration), scope) - }); err != nil { - return err - } - if err := s.AddConversionFunc((*MySQLClusterSpec)(nil), (*v1beta2.MySQLClusterSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert__MySQLClusterSpec_To_v1beta2_MySQLClusterSpec(a.(*MySQLClusterSpec), b.(*v1beta2.MySQLClusterSpec), scope) - }); err != nil { - return err - } - if err := s.AddConversionFunc((*MySQLCluster)(nil), (*v1beta2.MySQLCluster)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert__MySQLCluster_To_v1beta2_MySQLCluster(a.(*MySQLCluster), b.(*v1beta2.MySQLCluster), scope) - }); err != nil { - return err - } - if err := s.AddConversionFunc((*v1beta2.MySQLClusterSpec)(nil), (*MySQLClusterSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1beta2_MySQLClusterSpec_To__MySQLClusterSpec(a.(*v1beta2.MySQLClusterSpec), b.(*MySQLClusterSpec), scope) - }); err != nil { - return err - } - if err := s.AddConversionFunc((*v1beta2.MySQLCluster)(nil), (*MySQLCluster)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1beta2_MySQLCluster_To__MySQLCluster(a.(*v1beta2.MySQLCluster), b.(*MySQLCluster), scope) - }); err != nil { - return err - } - if err := s.AddConversionFunc((*v1beta2.PodTemplateSpec)(nil), (*PodTemplateSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1beta2_PodTemplateSpec_To__PodTemplateSpec(a.(*v1beta2.PodTemplateSpec), b.(*PodTemplateSpec), scope) - }); err != nil { - return err - } - return nil -} - -func autoConvert__AffinityApplyConfiguration_To_v1beta2_AffinityApplyConfiguration(in *AffinityApplyConfiguration, out *v1beta2.AffinityApplyConfiguration, s conversion.Scope) error { - out.NodeAffinity = (*v1.NodeAffinityApplyConfiguration)(unsafe.Pointer(in.NodeAffinity)) - out.PodAffinity = (*v1.PodAffinityApplyConfiguration)(unsafe.Pointer(in.PodAffinity)) - out.PodAntiAffinity = (*v1.PodAntiAffinityApplyConfiguration)(unsafe.Pointer(in.PodAntiAffinity)) - return nil -} - -// Convert__AffinityApplyConfiguration_To_v1beta2_AffinityApplyConfiguration is an autogenerated conversion function. -func Convert__AffinityApplyConfiguration_To_v1beta2_AffinityApplyConfiguration(in *AffinityApplyConfiguration, out *v1beta2.AffinityApplyConfiguration, s conversion.Scope) error { - return autoConvert__AffinityApplyConfiguration_To_v1beta2_AffinityApplyConfiguration(in, out, s) -} - -func autoConvert_v1beta2_AffinityApplyConfiguration_To__AffinityApplyConfiguration(in *v1beta2.AffinityApplyConfiguration, out *AffinityApplyConfiguration, s conversion.Scope) error { - out.NodeAffinity = (*v1.NodeAffinityApplyConfiguration)(unsafe.Pointer(in.NodeAffinity)) - out.PodAffinity = (*v1.PodAffinityApplyConfiguration)(unsafe.Pointer(in.PodAffinity)) - out.PodAntiAffinity = (*v1.PodAntiAffinityApplyConfiguration)(unsafe.Pointer(in.PodAntiAffinity)) - return nil -} - -// Convert_v1beta2_AffinityApplyConfiguration_To__AffinityApplyConfiguration is an autogenerated conversion function. -func Convert_v1beta2_AffinityApplyConfiguration_To__AffinityApplyConfiguration(in *v1beta2.AffinityApplyConfiguration, out *AffinityApplyConfiguration, s conversion.Scope) error { - return autoConvert_v1beta2_AffinityApplyConfiguration_To__AffinityApplyConfiguration(in, out, s) -} - -func autoConvert__BackupPolicy_To_v1beta2_BackupPolicy(in *BackupPolicy, out *v1beta2.BackupPolicy, s conversion.Scope) error { - out.ObjectMeta = in.ObjectMeta - if err := Convert__BackupPolicySpec_To_v1beta2_BackupPolicySpec(&in.Spec, &out.Spec, s); err != nil { - return err - } - return nil -} - -// Convert__BackupPolicy_To_v1beta2_BackupPolicy is an autogenerated conversion function. -func Convert__BackupPolicy_To_v1beta2_BackupPolicy(in *BackupPolicy, out *v1beta2.BackupPolicy, s conversion.Scope) error { - return autoConvert__BackupPolicy_To_v1beta2_BackupPolicy(in, out, s) -} - -func autoConvert_v1beta2_BackupPolicy_To__BackupPolicy(in *v1beta2.BackupPolicy, out *BackupPolicy, s conversion.Scope) error { - out.ObjectMeta = in.ObjectMeta - if err := Convert_v1beta2_BackupPolicySpec_To__BackupPolicySpec(&in.Spec, &out.Spec, s); err != nil { - return err - } - return nil -} - -// Convert_v1beta2_BackupPolicy_To__BackupPolicy is an autogenerated conversion function. -func Convert_v1beta2_BackupPolicy_To__BackupPolicy(in *v1beta2.BackupPolicy, out *BackupPolicy, s conversion.Scope) error { - return autoConvert_v1beta2_BackupPolicy_To__BackupPolicy(in, out, s) -} - -func autoConvert__BackupPolicyList_To_v1beta2_BackupPolicyList(in *BackupPolicyList, out *v1beta2.BackupPolicyList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - out.Items = *(*[]v1beta2.BackupPolicy)(unsafe.Pointer(&in.Items)) - return nil -} - -// Convert__BackupPolicyList_To_v1beta2_BackupPolicyList is an autogenerated conversion function. -func Convert__BackupPolicyList_To_v1beta2_BackupPolicyList(in *BackupPolicyList, out *v1beta2.BackupPolicyList, s conversion.Scope) error { - return autoConvert__BackupPolicyList_To_v1beta2_BackupPolicyList(in, out, s) -} - -func autoConvert_v1beta2_BackupPolicyList_To__BackupPolicyList(in *v1beta2.BackupPolicyList, out *BackupPolicyList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - out.Items = *(*[]BackupPolicy)(unsafe.Pointer(&in.Items)) - return nil -} - -// Convert_v1beta2_BackupPolicyList_To__BackupPolicyList is an autogenerated conversion function. -func Convert_v1beta2_BackupPolicyList_To__BackupPolicyList(in *v1beta2.BackupPolicyList, out *BackupPolicyList, s conversion.Scope) error { - return autoConvert_v1beta2_BackupPolicyList_To__BackupPolicyList(in, out, s) -} - -func autoConvert__BackupPolicySpec_To_v1beta2_BackupPolicySpec(in *BackupPolicySpec, out *v1beta2.BackupPolicySpec, s conversion.Scope) error { - out.Schedule = in.Schedule - if err := Convert__JobConfig_To_v1beta2_JobConfig(&in.JobConfig, &out.JobConfig, s); err != nil { - return err - } - out.StartingDeadlineSeconds = (*int64)(unsafe.Pointer(in.StartingDeadlineSeconds)) - out.ConcurrencyPolicy = batchv1.ConcurrencyPolicy(in.ConcurrencyPolicy) - out.ActiveDeadlineSeconds = (*int64)(unsafe.Pointer(in.ActiveDeadlineSeconds)) - out.BackoffLimit = (*int32)(unsafe.Pointer(in.BackoffLimit)) - out.SuccessfulJobsHistoryLimit = (*int32)(unsafe.Pointer(in.SuccessfulJobsHistoryLimit)) - out.FailedJobsHistoryLimit = (*int32)(unsafe.Pointer(in.FailedJobsHistoryLimit)) - return nil -} - -// Convert__BackupPolicySpec_To_v1beta2_BackupPolicySpec is an autogenerated conversion function. -func Convert__BackupPolicySpec_To_v1beta2_BackupPolicySpec(in *BackupPolicySpec, out *v1beta2.BackupPolicySpec, s conversion.Scope) error { - return autoConvert__BackupPolicySpec_To_v1beta2_BackupPolicySpec(in, out, s) -} - -func autoConvert_v1beta2_BackupPolicySpec_To__BackupPolicySpec(in *v1beta2.BackupPolicySpec, out *BackupPolicySpec, s conversion.Scope) error { - out.Schedule = in.Schedule - if err := Convert_v1beta2_JobConfig_To__JobConfig(&in.JobConfig, &out.JobConfig, s); err != nil { - return err - } - out.StartingDeadlineSeconds = (*int64)(unsafe.Pointer(in.StartingDeadlineSeconds)) - out.ConcurrencyPolicy = batchv1.ConcurrencyPolicy(in.ConcurrencyPolicy) - out.ActiveDeadlineSeconds = (*int64)(unsafe.Pointer(in.ActiveDeadlineSeconds)) - out.BackoffLimit = (*int32)(unsafe.Pointer(in.BackoffLimit)) - out.SuccessfulJobsHistoryLimit = (*int32)(unsafe.Pointer(in.SuccessfulJobsHistoryLimit)) - out.FailedJobsHistoryLimit = (*int32)(unsafe.Pointer(in.FailedJobsHistoryLimit)) - return nil -} - -// Convert_v1beta2_BackupPolicySpec_To__BackupPolicySpec is an autogenerated conversion function. -func Convert_v1beta2_BackupPolicySpec_To__BackupPolicySpec(in *v1beta2.BackupPolicySpec, out *BackupPolicySpec, s conversion.Scope) error { - return autoConvert_v1beta2_BackupPolicySpec_To__BackupPolicySpec(in, out, s) -} - -func autoConvert__BackupStatus_To_v1beta2_BackupStatus(in *BackupStatus, out *v1beta2.BackupStatus, s conversion.Scope) error { - out.Time = in.Time - out.Elapsed = in.Elapsed - out.SourceIndex = in.SourceIndex - out.SourceUUID = in.SourceUUID - out.BinlogFilename = in.BinlogFilename - out.GTIDSet = in.GTIDSet - out.DumpSize = in.DumpSize - out.BinlogSize = in.BinlogSize - out.WorkDirUsage = in.WorkDirUsage - out.Warnings = *(*[]string)(unsafe.Pointer(&in.Warnings)) - return nil -} - -// Convert__BackupStatus_To_v1beta2_BackupStatus is an autogenerated conversion function. -func Convert__BackupStatus_To_v1beta2_BackupStatus(in *BackupStatus, out *v1beta2.BackupStatus, s conversion.Scope) error { - return autoConvert__BackupStatus_To_v1beta2_BackupStatus(in, out, s) -} - -func autoConvert_v1beta2_BackupStatus_To__BackupStatus(in *v1beta2.BackupStatus, out *BackupStatus, s conversion.Scope) error { - out.Time = in.Time - out.Elapsed = in.Elapsed - out.SourceIndex = in.SourceIndex - out.SourceUUID = in.SourceUUID - out.BinlogFilename = in.BinlogFilename - out.GTIDSet = in.GTIDSet - out.DumpSize = in.DumpSize - out.BinlogSize = in.BinlogSize - out.WorkDirUsage = in.WorkDirUsage - out.Warnings = *(*[]string)(unsafe.Pointer(&in.Warnings)) - return nil -} - -// Convert_v1beta2_BackupStatus_To__BackupStatus is an autogenerated conversion function. -func Convert_v1beta2_BackupStatus_To__BackupStatus(in *v1beta2.BackupStatus, out *BackupStatus, s conversion.Scope) error { - return autoConvert_v1beta2_BackupStatus_To__BackupStatus(in, out, s) -} - -func autoConvert__BucketConfig_To_v1beta2_BucketConfig(in *BucketConfig, out *v1beta2.BucketConfig, s conversion.Scope) error { - out.BucketName = in.BucketName - out.Region = in.Region - out.EndpointURL = in.EndpointURL - out.UsePathStyle = in.UsePathStyle - out.BackendType = in.BackendType - out.CaCert = in.CaCert - return nil -} - -// Convert__BucketConfig_To_v1beta2_BucketConfig is an autogenerated conversion function. -func Convert__BucketConfig_To_v1beta2_BucketConfig(in *BucketConfig, out *v1beta2.BucketConfig, s conversion.Scope) error { - return autoConvert__BucketConfig_To_v1beta2_BucketConfig(in, out, s) -} - -func autoConvert_v1beta2_BucketConfig_To__BucketConfig(in *v1beta2.BucketConfig, out *BucketConfig, s conversion.Scope) error { - out.BucketName = in.BucketName - out.Region = in.Region - out.EndpointURL = in.EndpointURL - out.UsePathStyle = in.UsePathStyle - out.BackendType = in.BackendType - out.CaCert = in.CaCert - return nil -} - -// Convert_v1beta2_BucketConfig_To__BucketConfig is an autogenerated conversion function. -func Convert_v1beta2_BucketConfig_To__BucketConfig(in *v1beta2.BucketConfig, out *BucketConfig, s conversion.Scope) error { - return autoConvert_v1beta2_BucketConfig_To__BucketConfig(in, out, s) -} - -func autoConvert__EnvFromSourceApplyConfiguration_To_v1beta2_EnvFromSourceApplyConfiguration(in *EnvFromSourceApplyConfiguration, out *v1beta2.EnvFromSourceApplyConfiguration, s conversion.Scope) error { - out.Prefix = (*string)(unsafe.Pointer(in.Prefix)) - out.ConfigMapRef = (*v1.ConfigMapEnvSourceApplyConfiguration)(unsafe.Pointer(in.ConfigMapRef)) - out.SecretRef = (*v1.SecretEnvSourceApplyConfiguration)(unsafe.Pointer(in.SecretRef)) - return nil -} - -// Convert__EnvFromSourceApplyConfiguration_To_v1beta2_EnvFromSourceApplyConfiguration is an autogenerated conversion function. -func Convert__EnvFromSourceApplyConfiguration_To_v1beta2_EnvFromSourceApplyConfiguration(in *EnvFromSourceApplyConfiguration, out *v1beta2.EnvFromSourceApplyConfiguration, s conversion.Scope) error { - return autoConvert__EnvFromSourceApplyConfiguration_To_v1beta2_EnvFromSourceApplyConfiguration(in, out, s) -} - -func autoConvert_v1beta2_EnvFromSourceApplyConfiguration_To__EnvFromSourceApplyConfiguration(in *v1beta2.EnvFromSourceApplyConfiguration, out *EnvFromSourceApplyConfiguration, s conversion.Scope) error { - out.Prefix = (*string)(unsafe.Pointer(in.Prefix)) - out.ConfigMapRef = (*v1.ConfigMapEnvSourceApplyConfiguration)(unsafe.Pointer(in.ConfigMapRef)) - out.SecretRef = (*v1.SecretEnvSourceApplyConfiguration)(unsafe.Pointer(in.SecretRef)) - return nil -} - -// Convert_v1beta2_EnvFromSourceApplyConfiguration_To__EnvFromSourceApplyConfiguration is an autogenerated conversion function. -func Convert_v1beta2_EnvFromSourceApplyConfiguration_To__EnvFromSourceApplyConfiguration(in *v1beta2.EnvFromSourceApplyConfiguration, out *EnvFromSourceApplyConfiguration, s conversion.Scope) error { - return autoConvert_v1beta2_EnvFromSourceApplyConfiguration_To__EnvFromSourceApplyConfiguration(in, out, s) -} - -func autoConvert__EnvVarApplyConfiguration_To_v1beta2_EnvVarApplyConfiguration(in *EnvVarApplyConfiguration, out *v1beta2.EnvVarApplyConfiguration, s conversion.Scope) error { - out.Name = (*string)(unsafe.Pointer(in.Name)) - out.Value = (*string)(unsafe.Pointer(in.Value)) - out.ValueFrom = (*v1.EnvVarSourceApplyConfiguration)(unsafe.Pointer(in.ValueFrom)) - return nil -} - -// Convert__EnvVarApplyConfiguration_To_v1beta2_EnvVarApplyConfiguration is an autogenerated conversion function. -func Convert__EnvVarApplyConfiguration_To_v1beta2_EnvVarApplyConfiguration(in *EnvVarApplyConfiguration, out *v1beta2.EnvVarApplyConfiguration, s conversion.Scope) error { - return autoConvert__EnvVarApplyConfiguration_To_v1beta2_EnvVarApplyConfiguration(in, out, s) -} - -func autoConvert_v1beta2_EnvVarApplyConfiguration_To__EnvVarApplyConfiguration(in *v1beta2.EnvVarApplyConfiguration, out *EnvVarApplyConfiguration, s conversion.Scope) error { - out.Name = (*string)(unsafe.Pointer(in.Name)) - out.Value = (*string)(unsafe.Pointer(in.Value)) - out.ValueFrom = (*v1.EnvVarSourceApplyConfiguration)(unsafe.Pointer(in.ValueFrom)) - return nil -} - -// Convert_v1beta2_EnvVarApplyConfiguration_To__EnvVarApplyConfiguration is an autogenerated conversion function. -func Convert_v1beta2_EnvVarApplyConfiguration_To__EnvVarApplyConfiguration(in *v1beta2.EnvVarApplyConfiguration, out *EnvVarApplyConfiguration, s conversion.Scope) error { - return autoConvert_v1beta2_EnvVarApplyConfiguration_To__EnvVarApplyConfiguration(in, out, s) -} - -func autoConvert__JobConfig_To_v1beta2_JobConfig(in *JobConfig, out *v1beta2.JobConfig, s conversion.Scope) error { - out.ServiceAccountName = in.ServiceAccountName - if err := Convert__BucketConfig_To_v1beta2_BucketConfig(&in.BucketConfig, &out.BucketConfig, s); err != nil { - return err - } - if err := Convert__VolumeSourceApplyConfiguration_To_v1beta2_VolumeSourceApplyConfiguration(&in.WorkVolume, &out.WorkVolume, s); err != nil { - return err - } - out.Threads = in.Threads - out.CPU = (*resource.Quantity)(unsafe.Pointer(in.CPU)) - out.MaxCPU = (*resource.Quantity)(unsafe.Pointer(in.MaxCPU)) - out.Memory = (*resource.Quantity)(unsafe.Pointer(in.Memory)) - out.MaxMemory = (*resource.Quantity)(unsafe.Pointer(in.MaxMemory)) - out.EnvFrom = *(*[]v1beta2.EnvFromSourceApplyConfiguration)(unsafe.Pointer(&in.EnvFrom)) - out.Env = *(*[]v1beta2.EnvVarApplyConfiguration)(unsafe.Pointer(&in.Env)) - out.Affinity = (*v1beta2.AffinityApplyConfiguration)(unsafe.Pointer(in.Affinity)) - out.Volumes = *(*[]v1beta2.VolumeApplyConfiguration)(unsafe.Pointer(&in.Volumes)) - out.VolumeMounts = *(*[]v1beta2.VolumeMountApplyConfiguration)(unsafe.Pointer(&in.VolumeMounts)) - return nil -} - -// Convert__JobConfig_To_v1beta2_JobConfig is an autogenerated conversion function. -func Convert__JobConfig_To_v1beta2_JobConfig(in *JobConfig, out *v1beta2.JobConfig, s conversion.Scope) error { - return autoConvert__JobConfig_To_v1beta2_JobConfig(in, out, s) -} - -func autoConvert_v1beta2_JobConfig_To__JobConfig(in *v1beta2.JobConfig, out *JobConfig, s conversion.Scope) error { - out.ServiceAccountName = in.ServiceAccountName - if err := Convert_v1beta2_BucketConfig_To__BucketConfig(&in.BucketConfig, &out.BucketConfig, s); err != nil { - return err - } - if err := Convert_v1beta2_VolumeSourceApplyConfiguration_To__VolumeSourceApplyConfiguration(&in.WorkVolume, &out.WorkVolume, s); err != nil { - return err - } - out.Threads = in.Threads - out.CPU = (*resource.Quantity)(unsafe.Pointer(in.CPU)) - out.MaxCPU = (*resource.Quantity)(unsafe.Pointer(in.MaxCPU)) - out.Memory = (*resource.Quantity)(unsafe.Pointer(in.Memory)) - out.MaxMemory = (*resource.Quantity)(unsafe.Pointer(in.MaxMemory)) - out.EnvFrom = *(*[]EnvFromSourceApplyConfiguration)(unsafe.Pointer(&in.EnvFrom)) - out.Env = *(*[]EnvVarApplyConfiguration)(unsafe.Pointer(&in.Env)) - out.Affinity = (*AffinityApplyConfiguration)(unsafe.Pointer(in.Affinity)) - out.Volumes = *(*[]VolumeApplyConfiguration)(unsafe.Pointer(&in.Volumes)) - out.VolumeMounts = *(*[]VolumeMountApplyConfiguration)(unsafe.Pointer(&in.VolumeMounts)) - return nil -} - -// Convert_v1beta2_JobConfig_To__JobConfig is an autogenerated conversion function. -func Convert_v1beta2_JobConfig_To__JobConfig(in *v1beta2.JobConfig, out *JobConfig, s conversion.Scope) error { - return autoConvert_v1beta2_JobConfig_To__JobConfig(in, out, s) -} - -func autoConvert__MySQLCluster_To_v1beta2_MySQLCluster(in *MySQLCluster, out *v1beta2.MySQLCluster, s conversion.Scope) error { - out.ObjectMeta = in.ObjectMeta - if err := Convert__MySQLClusterSpec_To_v1beta2_MySQLClusterSpec(&in.Spec, &out.Spec, s); err != nil { - return err - } - if err := Convert__MySQLClusterStatus_To_v1beta2_MySQLClusterStatus(&in.Status, &out.Status, s); err != nil { - return err - } - return nil -} - -func autoConvert_v1beta2_MySQLCluster_To__MySQLCluster(in *v1beta2.MySQLCluster, out *MySQLCluster, s conversion.Scope) error { - out.ObjectMeta = in.ObjectMeta - if err := Convert_v1beta2_MySQLClusterSpec_To__MySQLClusterSpec(&in.Spec, &out.Spec, s); err != nil { - return err - } - if err := Convert_v1beta2_MySQLClusterStatus_To__MySQLClusterStatus(&in.Status, &out.Status, s); err != nil { - return err - } - return nil -} - -func autoConvert__MySQLClusterList_To_v1beta2_MySQLClusterList(in *MySQLClusterList, out *v1beta2.MySQLClusterList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]v1beta2.MySQLCluster, len(*in)) - for i := range *in { - if err := Convert__MySQLCluster_To_v1beta2_MySQLCluster(&(*in)[i], &(*out)[i], s); err != nil { - return err - } - } - } else { - out.Items = nil - } - return nil -} - -// Convert__MySQLClusterList_To_v1beta2_MySQLClusterList is an autogenerated conversion function. -func Convert__MySQLClusterList_To_v1beta2_MySQLClusterList(in *MySQLClusterList, out *v1beta2.MySQLClusterList, s conversion.Scope) error { - return autoConvert__MySQLClusterList_To_v1beta2_MySQLClusterList(in, out, s) -} - -func autoConvert_v1beta2_MySQLClusterList_To__MySQLClusterList(in *v1beta2.MySQLClusterList, out *MySQLClusterList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]MySQLCluster, len(*in)) - for i := range *in { - if err := Convert_v1beta2_MySQLCluster_To__MySQLCluster(&(*in)[i], &(*out)[i], s); err != nil { - return err - } - } - } else { - out.Items = nil - } - return nil -} - -// Convert_v1beta2_MySQLClusterList_To__MySQLClusterList is an autogenerated conversion function. -func Convert_v1beta2_MySQLClusterList_To__MySQLClusterList(in *v1beta2.MySQLClusterList, out *MySQLClusterList, s conversion.Scope) error { - return autoConvert_v1beta2_MySQLClusterList_To__MySQLClusterList(in, out, s) -} - -func autoConvert__MySQLClusterSpec_To_v1beta2_MySQLClusterSpec(in *MySQLClusterSpec, out *v1beta2.MySQLClusterSpec, s conversion.Scope) error { - out.Replicas = in.Replicas - if err := Convert__PodTemplateSpec_To_v1beta2_PodTemplateSpec(&in.PodTemplate, &out.PodTemplate, s); err != nil { - return err - } - out.VolumeClaimTemplates = *(*[]v1beta2.PersistentVolumeClaim)(unsafe.Pointer(&in.VolumeClaimTemplates)) - // WARNING: in.ServiceTemplate requires manual conversion: does not exist in peer-type - out.MySQLConfigMapName = (*string)(unsafe.Pointer(in.MySQLConfigMapName)) - out.ReplicationSourceSecretName = (*string)(unsafe.Pointer(in.ReplicationSourceSecretName)) - out.Collectors = *(*[]string)(unsafe.Pointer(&in.Collectors)) - out.ServerIDBase = in.ServerIDBase - out.MaxDelaySeconds = (*int)(unsafe.Pointer(in.MaxDelaySeconds)) - out.StartupWaitSeconds = in.StartupWaitSeconds - out.LogRotationSchedule = in.LogRotationSchedule - out.BackupPolicyName = (*string)(unsafe.Pointer(in.BackupPolicyName)) - out.Restore = (*v1beta2.RestoreSpec)(unsafe.Pointer(in.Restore)) - out.DisableSlowQueryLogContainer = in.DisableSlowQueryLogContainer - return nil -} - -func autoConvert_v1beta2_MySQLClusterSpec_To__MySQLClusterSpec(in *v1beta2.MySQLClusterSpec, out *MySQLClusterSpec, s conversion.Scope) error { - out.Replicas = in.Replicas - if err := Convert_v1beta2_PodTemplateSpec_To__PodTemplateSpec(&in.PodTemplate, &out.PodTemplate, s); err != nil { - return err - } - out.VolumeClaimTemplates = *(*[]PersistentVolumeClaim)(unsafe.Pointer(&in.VolumeClaimTemplates)) - // WARNING: in.PrimaryServiceTemplate requires manual conversion: does not exist in peer-type - // WARNING: in.ReplicaServiceTemplate requires manual conversion: does not exist in peer-type - out.MySQLConfigMapName = (*string)(unsafe.Pointer(in.MySQLConfigMapName)) - out.ReplicationSourceSecretName = (*string)(unsafe.Pointer(in.ReplicationSourceSecretName)) - out.Collectors = *(*[]string)(unsafe.Pointer(&in.Collectors)) - out.ServerIDBase = in.ServerIDBase - out.MaxDelaySeconds = (*int)(unsafe.Pointer(in.MaxDelaySeconds)) - out.StartupWaitSeconds = in.StartupWaitSeconds - out.LogRotationSchedule = in.LogRotationSchedule - out.BackupPolicyName = (*string)(unsafe.Pointer(in.BackupPolicyName)) - out.Restore = (*RestoreSpec)(unsafe.Pointer(in.Restore)) - out.DisableSlowQueryLogContainer = in.DisableSlowQueryLogContainer - return nil -} - -func autoConvert__MySQLClusterStatus_To_v1beta2_MySQLClusterStatus(in *MySQLClusterStatus, out *v1beta2.MySQLClusterStatus, s conversion.Scope) error { - out.Conditions = *(*[]metav1.Condition)(unsafe.Pointer(&in.Conditions)) - out.CurrentPrimaryIndex = in.CurrentPrimaryIndex - out.SyncedReplicas = in.SyncedReplicas - out.ErrantReplicas = in.ErrantReplicas - out.ErrantReplicaList = *(*[]int)(unsafe.Pointer(&in.ErrantReplicaList)) - if err := Convert__BackupStatus_To_v1beta2_BackupStatus(&in.Backup, &out.Backup, s); err != nil { - return err - } - out.RestoredTime = (*metav1.Time)(unsafe.Pointer(in.RestoredTime)) - out.Cloned = in.Cloned - if err := Convert__ReconcileInfo_To_v1beta2_ReconcileInfo(&in.ReconcileInfo, &out.ReconcileInfo, s); err != nil { - return err - } - return nil -} - -// Convert__MySQLClusterStatus_To_v1beta2_MySQLClusterStatus is an autogenerated conversion function. -func Convert__MySQLClusterStatus_To_v1beta2_MySQLClusterStatus(in *MySQLClusterStatus, out *v1beta2.MySQLClusterStatus, s conversion.Scope) error { - return autoConvert__MySQLClusterStatus_To_v1beta2_MySQLClusterStatus(in, out, s) -} - -func autoConvert_v1beta2_MySQLClusterStatus_To__MySQLClusterStatus(in *v1beta2.MySQLClusterStatus, out *MySQLClusterStatus, s conversion.Scope) error { - out.Conditions = *(*[]metav1.Condition)(unsafe.Pointer(&in.Conditions)) - out.CurrentPrimaryIndex = in.CurrentPrimaryIndex - out.SyncedReplicas = in.SyncedReplicas - out.ErrantReplicas = in.ErrantReplicas - out.ErrantReplicaList = *(*[]int)(unsafe.Pointer(&in.ErrantReplicaList)) - if err := Convert_v1beta2_BackupStatus_To__BackupStatus(&in.Backup, &out.Backup, s); err != nil { - return err - } - out.RestoredTime = (*metav1.Time)(unsafe.Pointer(in.RestoredTime)) - out.Cloned = in.Cloned - if err := Convert_v1beta2_ReconcileInfo_To__ReconcileInfo(&in.ReconcileInfo, &out.ReconcileInfo, s); err != nil { - return err - } - return nil -} - -// Convert_v1beta2_MySQLClusterStatus_To__MySQLClusterStatus is an autogenerated conversion function. -func Convert_v1beta2_MySQLClusterStatus_To__MySQLClusterStatus(in *v1beta2.MySQLClusterStatus, out *MySQLClusterStatus, s conversion.Scope) error { - return autoConvert_v1beta2_MySQLClusterStatus_To__MySQLClusterStatus(in, out, s) -} - -func autoConvert__ObjectMeta_To_v1beta2_ObjectMeta(in *ObjectMeta, out *v1beta2.ObjectMeta, s conversion.Scope) error { - out.Name = in.Name - out.Labels = *(*map[string]string)(unsafe.Pointer(&in.Labels)) - out.Annotations = *(*map[string]string)(unsafe.Pointer(&in.Annotations)) - return nil -} - -// Convert__ObjectMeta_To_v1beta2_ObjectMeta is an autogenerated conversion function. -func Convert__ObjectMeta_To_v1beta2_ObjectMeta(in *ObjectMeta, out *v1beta2.ObjectMeta, s conversion.Scope) error { - return autoConvert__ObjectMeta_To_v1beta2_ObjectMeta(in, out, s) -} - -func autoConvert_v1beta2_ObjectMeta_To__ObjectMeta(in *v1beta2.ObjectMeta, out *ObjectMeta, s conversion.Scope) error { - out.Name = in.Name - out.Labels = *(*map[string]string)(unsafe.Pointer(&in.Labels)) - out.Annotations = *(*map[string]string)(unsafe.Pointer(&in.Annotations)) - return nil -} - -// Convert_v1beta2_ObjectMeta_To__ObjectMeta is an autogenerated conversion function. -func Convert_v1beta2_ObjectMeta_To__ObjectMeta(in *v1beta2.ObjectMeta, out *ObjectMeta, s conversion.Scope) error { - return autoConvert_v1beta2_ObjectMeta_To__ObjectMeta(in, out, s) -} - -func autoConvert__PersistentVolumeClaim_To_v1beta2_PersistentVolumeClaim(in *PersistentVolumeClaim, out *v1beta2.PersistentVolumeClaim, s conversion.Scope) error { - if err := Convert__ObjectMeta_To_v1beta2_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, s); err != nil { - return err - } - if err := Convert__PersistentVolumeClaimSpecApplyConfiguration_To_v1beta2_PersistentVolumeClaimSpecApplyConfiguration(&in.Spec, &out.Spec, s); err != nil { - return err - } - return nil -} - -// Convert__PersistentVolumeClaim_To_v1beta2_PersistentVolumeClaim is an autogenerated conversion function. -func Convert__PersistentVolumeClaim_To_v1beta2_PersistentVolumeClaim(in *PersistentVolumeClaim, out *v1beta2.PersistentVolumeClaim, s conversion.Scope) error { - return autoConvert__PersistentVolumeClaim_To_v1beta2_PersistentVolumeClaim(in, out, s) -} - -func autoConvert_v1beta2_PersistentVolumeClaim_To__PersistentVolumeClaim(in *v1beta2.PersistentVolumeClaim, out *PersistentVolumeClaim, s conversion.Scope) error { - if err := Convert_v1beta2_ObjectMeta_To__ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, s); err != nil { - return err - } - if err := Convert_v1beta2_PersistentVolumeClaimSpecApplyConfiguration_To__PersistentVolumeClaimSpecApplyConfiguration(&in.Spec, &out.Spec, s); err != nil { - return err - } - return nil -} - -// Convert_v1beta2_PersistentVolumeClaim_To__PersistentVolumeClaim is an autogenerated conversion function. -func Convert_v1beta2_PersistentVolumeClaim_To__PersistentVolumeClaim(in *v1beta2.PersistentVolumeClaim, out *PersistentVolumeClaim, s conversion.Scope) error { - return autoConvert_v1beta2_PersistentVolumeClaim_To__PersistentVolumeClaim(in, out, s) -} - -func autoConvert__PersistentVolumeClaimSpecApplyConfiguration_To_v1beta2_PersistentVolumeClaimSpecApplyConfiguration(in *PersistentVolumeClaimSpecApplyConfiguration, out *v1beta2.PersistentVolumeClaimSpecApplyConfiguration, s conversion.Scope) error { - out.AccessModes = *(*[]corev1.PersistentVolumeAccessMode)(unsafe.Pointer(&in.AccessModes)) - out.Selector = (*applyconfigurationsmetav1.LabelSelectorApplyConfiguration)(unsafe.Pointer(in.Selector)) - out.Resources = (*v1.ResourceRequirementsApplyConfiguration)(unsafe.Pointer(in.Resources)) - out.VolumeName = (*string)(unsafe.Pointer(in.VolumeName)) - out.StorageClassName = (*string)(unsafe.Pointer(in.StorageClassName)) - out.VolumeMode = (*corev1.PersistentVolumeMode)(unsafe.Pointer(in.VolumeMode)) - out.DataSource = (*v1.TypedLocalObjectReferenceApplyConfiguration)(unsafe.Pointer(in.DataSource)) - out.DataSourceRef = (*v1.TypedObjectReferenceApplyConfiguration)(unsafe.Pointer(in.DataSourceRef)) - return nil -} - -// Convert__PersistentVolumeClaimSpecApplyConfiguration_To_v1beta2_PersistentVolumeClaimSpecApplyConfiguration is an autogenerated conversion function. -func Convert__PersistentVolumeClaimSpecApplyConfiguration_To_v1beta2_PersistentVolumeClaimSpecApplyConfiguration(in *PersistentVolumeClaimSpecApplyConfiguration, out *v1beta2.PersistentVolumeClaimSpecApplyConfiguration, s conversion.Scope) error { - return autoConvert__PersistentVolumeClaimSpecApplyConfiguration_To_v1beta2_PersistentVolumeClaimSpecApplyConfiguration(in, out, s) -} - -func autoConvert_v1beta2_PersistentVolumeClaimSpecApplyConfiguration_To__PersistentVolumeClaimSpecApplyConfiguration(in *v1beta2.PersistentVolumeClaimSpecApplyConfiguration, out *PersistentVolumeClaimSpecApplyConfiguration, s conversion.Scope) error { - out.AccessModes = *(*[]corev1.PersistentVolumeAccessMode)(unsafe.Pointer(&in.AccessModes)) - out.Selector = (*applyconfigurationsmetav1.LabelSelectorApplyConfiguration)(unsafe.Pointer(in.Selector)) - out.Resources = (*v1.ResourceRequirementsApplyConfiguration)(unsafe.Pointer(in.Resources)) - out.VolumeName = (*string)(unsafe.Pointer(in.VolumeName)) - out.StorageClassName = (*string)(unsafe.Pointer(in.StorageClassName)) - out.VolumeMode = (*corev1.PersistentVolumeMode)(unsafe.Pointer(in.VolumeMode)) - out.DataSource = (*v1.TypedLocalObjectReferenceApplyConfiguration)(unsafe.Pointer(in.DataSource)) - out.DataSourceRef = (*v1.TypedObjectReferenceApplyConfiguration)(unsafe.Pointer(in.DataSourceRef)) - return nil -} - -// Convert_v1beta2_PersistentVolumeClaimSpecApplyConfiguration_To__PersistentVolumeClaimSpecApplyConfiguration is an autogenerated conversion function. -func Convert_v1beta2_PersistentVolumeClaimSpecApplyConfiguration_To__PersistentVolumeClaimSpecApplyConfiguration(in *v1beta2.PersistentVolumeClaimSpecApplyConfiguration, out *PersistentVolumeClaimSpecApplyConfiguration, s conversion.Scope) error { - return autoConvert_v1beta2_PersistentVolumeClaimSpecApplyConfiguration_To__PersistentVolumeClaimSpecApplyConfiguration(in, out, s) -} - -func autoConvert__PodSpecApplyConfiguration_To_v1beta2_PodSpecApplyConfiguration(in *PodSpecApplyConfiguration, out *v1beta2.PodSpecApplyConfiguration, s conversion.Scope) error { - out.Volumes = *(*[]v1.VolumeApplyConfiguration)(unsafe.Pointer(&in.Volumes)) - out.InitContainers = *(*[]v1.ContainerApplyConfiguration)(unsafe.Pointer(&in.InitContainers)) - out.Containers = *(*[]v1.ContainerApplyConfiguration)(unsafe.Pointer(&in.Containers)) - out.EphemeralContainers = *(*[]v1.EphemeralContainerApplyConfiguration)(unsafe.Pointer(&in.EphemeralContainers)) - out.RestartPolicy = (*corev1.RestartPolicy)(unsafe.Pointer(in.RestartPolicy)) - out.TerminationGracePeriodSeconds = (*int64)(unsafe.Pointer(in.TerminationGracePeriodSeconds)) - out.ActiveDeadlineSeconds = (*int64)(unsafe.Pointer(in.ActiveDeadlineSeconds)) - out.DNSPolicy = (*corev1.DNSPolicy)(unsafe.Pointer(in.DNSPolicy)) - out.NodeSelector = *(*map[string]string)(unsafe.Pointer(&in.NodeSelector)) - out.ServiceAccountName = (*string)(unsafe.Pointer(in.ServiceAccountName)) - out.DeprecatedServiceAccount = (*string)(unsafe.Pointer(in.DeprecatedServiceAccount)) - out.AutomountServiceAccountToken = (*bool)(unsafe.Pointer(in.AutomountServiceAccountToken)) - out.NodeName = (*string)(unsafe.Pointer(in.NodeName)) - out.HostNetwork = (*bool)(unsafe.Pointer(in.HostNetwork)) - out.HostPID = (*bool)(unsafe.Pointer(in.HostPID)) - out.HostIPC = (*bool)(unsafe.Pointer(in.HostIPC)) - out.ShareProcessNamespace = (*bool)(unsafe.Pointer(in.ShareProcessNamespace)) - out.SecurityContext = (*v1.PodSecurityContextApplyConfiguration)(unsafe.Pointer(in.SecurityContext)) - out.ImagePullSecrets = *(*[]v1.LocalObjectReferenceApplyConfiguration)(unsafe.Pointer(&in.ImagePullSecrets)) - out.Hostname = (*string)(unsafe.Pointer(in.Hostname)) - out.Subdomain = (*string)(unsafe.Pointer(in.Subdomain)) - out.Affinity = (*v1.AffinityApplyConfiguration)(unsafe.Pointer(in.Affinity)) - out.SchedulerName = (*string)(unsafe.Pointer(in.SchedulerName)) - out.Tolerations = *(*[]v1.TolerationApplyConfiguration)(unsafe.Pointer(&in.Tolerations)) - out.HostAliases = *(*[]v1.HostAliasApplyConfiguration)(unsafe.Pointer(&in.HostAliases)) - out.PriorityClassName = (*string)(unsafe.Pointer(in.PriorityClassName)) - out.Priority = (*int32)(unsafe.Pointer(in.Priority)) - out.DNSConfig = (*v1.PodDNSConfigApplyConfiguration)(unsafe.Pointer(in.DNSConfig)) - out.ReadinessGates = *(*[]v1.PodReadinessGateApplyConfiguration)(unsafe.Pointer(&in.ReadinessGates)) - out.RuntimeClassName = (*string)(unsafe.Pointer(in.RuntimeClassName)) - out.EnableServiceLinks = (*bool)(unsafe.Pointer(in.EnableServiceLinks)) - out.PreemptionPolicy = (*corev1.PreemptionPolicy)(unsafe.Pointer(in.PreemptionPolicy)) - out.Overhead = (*corev1.ResourceList)(unsafe.Pointer(in.Overhead)) - out.TopologySpreadConstraints = *(*[]v1.TopologySpreadConstraintApplyConfiguration)(unsafe.Pointer(&in.TopologySpreadConstraints)) - out.SetHostnameAsFQDN = (*bool)(unsafe.Pointer(in.SetHostnameAsFQDN)) - out.OS = (*v1.PodOSApplyConfiguration)(unsafe.Pointer(in.OS)) - out.HostUsers = (*bool)(unsafe.Pointer(in.HostUsers)) - out.SchedulingGates = *(*[]v1.PodSchedulingGateApplyConfiguration)(unsafe.Pointer(&in.SchedulingGates)) - out.ResourceClaims = *(*[]v1.PodResourceClaimApplyConfiguration)(unsafe.Pointer(&in.ResourceClaims)) - return nil -} - -// Convert__PodSpecApplyConfiguration_To_v1beta2_PodSpecApplyConfiguration is an autogenerated conversion function. -func Convert__PodSpecApplyConfiguration_To_v1beta2_PodSpecApplyConfiguration(in *PodSpecApplyConfiguration, out *v1beta2.PodSpecApplyConfiguration, s conversion.Scope) error { - return autoConvert__PodSpecApplyConfiguration_To_v1beta2_PodSpecApplyConfiguration(in, out, s) -} - -func autoConvert_v1beta2_PodSpecApplyConfiguration_To__PodSpecApplyConfiguration(in *v1beta2.PodSpecApplyConfiguration, out *PodSpecApplyConfiguration, s conversion.Scope) error { - out.Volumes = *(*[]v1.VolumeApplyConfiguration)(unsafe.Pointer(&in.Volumes)) - out.InitContainers = *(*[]v1.ContainerApplyConfiguration)(unsafe.Pointer(&in.InitContainers)) - out.Containers = *(*[]v1.ContainerApplyConfiguration)(unsafe.Pointer(&in.Containers)) - out.EphemeralContainers = *(*[]v1.EphemeralContainerApplyConfiguration)(unsafe.Pointer(&in.EphemeralContainers)) - out.RestartPolicy = (*corev1.RestartPolicy)(unsafe.Pointer(in.RestartPolicy)) - out.TerminationGracePeriodSeconds = (*int64)(unsafe.Pointer(in.TerminationGracePeriodSeconds)) - out.ActiveDeadlineSeconds = (*int64)(unsafe.Pointer(in.ActiveDeadlineSeconds)) - out.DNSPolicy = (*corev1.DNSPolicy)(unsafe.Pointer(in.DNSPolicy)) - out.NodeSelector = *(*map[string]string)(unsafe.Pointer(&in.NodeSelector)) - out.ServiceAccountName = (*string)(unsafe.Pointer(in.ServiceAccountName)) - out.DeprecatedServiceAccount = (*string)(unsafe.Pointer(in.DeprecatedServiceAccount)) - out.AutomountServiceAccountToken = (*bool)(unsafe.Pointer(in.AutomountServiceAccountToken)) - out.NodeName = (*string)(unsafe.Pointer(in.NodeName)) - out.HostNetwork = (*bool)(unsafe.Pointer(in.HostNetwork)) - out.HostPID = (*bool)(unsafe.Pointer(in.HostPID)) - out.HostIPC = (*bool)(unsafe.Pointer(in.HostIPC)) - out.ShareProcessNamespace = (*bool)(unsafe.Pointer(in.ShareProcessNamespace)) - out.SecurityContext = (*v1.PodSecurityContextApplyConfiguration)(unsafe.Pointer(in.SecurityContext)) - out.ImagePullSecrets = *(*[]v1.LocalObjectReferenceApplyConfiguration)(unsafe.Pointer(&in.ImagePullSecrets)) - out.Hostname = (*string)(unsafe.Pointer(in.Hostname)) - out.Subdomain = (*string)(unsafe.Pointer(in.Subdomain)) - out.Affinity = (*v1.AffinityApplyConfiguration)(unsafe.Pointer(in.Affinity)) - out.SchedulerName = (*string)(unsafe.Pointer(in.SchedulerName)) - out.Tolerations = *(*[]v1.TolerationApplyConfiguration)(unsafe.Pointer(&in.Tolerations)) - out.HostAliases = *(*[]v1.HostAliasApplyConfiguration)(unsafe.Pointer(&in.HostAliases)) - out.PriorityClassName = (*string)(unsafe.Pointer(in.PriorityClassName)) - out.Priority = (*int32)(unsafe.Pointer(in.Priority)) - out.DNSConfig = (*v1.PodDNSConfigApplyConfiguration)(unsafe.Pointer(in.DNSConfig)) - out.ReadinessGates = *(*[]v1.PodReadinessGateApplyConfiguration)(unsafe.Pointer(&in.ReadinessGates)) - out.RuntimeClassName = (*string)(unsafe.Pointer(in.RuntimeClassName)) - out.EnableServiceLinks = (*bool)(unsafe.Pointer(in.EnableServiceLinks)) - out.PreemptionPolicy = (*corev1.PreemptionPolicy)(unsafe.Pointer(in.PreemptionPolicy)) - out.Overhead = (*corev1.ResourceList)(unsafe.Pointer(in.Overhead)) - out.TopologySpreadConstraints = *(*[]v1.TopologySpreadConstraintApplyConfiguration)(unsafe.Pointer(&in.TopologySpreadConstraints)) - out.SetHostnameAsFQDN = (*bool)(unsafe.Pointer(in.SetHostnameAsFQDN)) - out.OS = (*v1.PodOSApplyConfiguration)(unsafe.Pointer(in.OS)) - out.HostUsers = (*bool)(unsafe.Pointer(in.HostUsers)) - out.SchedulingGates = *(*[]v1.PodSchedulingGateApplyConfiguration)(unsafe.Pointer(&in.SchedulingGates)) - out.ResourceClaims = *(*[]v1.PodResourceClaimApplyConfiguration)(unsafe.Pointer(&in.ResourceClaims)) - return nil -} - -// Convert_v1beta2_PodSpecApplyConfiguration_To__PodSpecApplyConfiguration is an autogenerated conversion function. -func Convert_v1beta2_PodSpecApplyConfiguration_To__PodSpecApplyConfiguration(in *v1beta2.PodSpecApplyConfiguration, out *PodSpecApplyConfiguration, s conversion.Scope) error { - return autoConvert_v1beta2_PodSpecApplyConfiguration_To__PodSpecApplyConfiguration(in, out, s) -} - -func autoConvert__PodTemplateSpec_To_v1beta2_PodTemplateSpec(in *PodTemplateSpec, out *v1beta2.PodTemplateSpec, s conversion.Scope) error { - if err := Convert__ObjectMeta_To_v1beta2_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, s); err != nil { - return err - } - if err := Convert__PodSpecApplyConfiguration_To_v1beta2_PodSpecApplyConfiguration(&in.Spec, &out.Spec, s); err != nil { - return err - } - return nil -} - -// Convert__PodTemplateSpec_To_v1beta2_PodTemplateSpec is an autogenerated conversion function. -func Convert__PodTemplateSpec_To_v1beta2_PodTemplateSpec(in *PodTemplateSpec, out *v1beta2.PodTemplateSpec, s conversion.Scope) error { - return autoConvert__PodTemplateSpec_To_v1beta2_PodTemplateSpec(in, out, s) -} - -func autoConvert_v1beta2_PodTemplateSpec_To__PodTemplateSpec(in *v1beta2.PodTemplateSpec, out *PodTemplateSpec, s conversion.Scope) error { - if err := Convert_v1beta2_ObjectMeta_To__ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, s); err != nil { - return err - } - if err := Convert_v1beta2_PodSpecApplyConfiguration_To__PodSpecApplyConfiguration(&in.Spec, &out.Spec, s); err != nil { - return err - } - // WARNING: in.OverwriteContainers requires manual conversion: does not exist in peer-type - return nil -} - -func autoConvert__ReconcileInfo_To_v1beta2_ReconcileInfo(in *ReconcileInfo, out *v1beta2.ReconcileInfo, s conversion.Scope) error { - out.Generation = in.Generation - out.ReconcileVersion = in.ReconcileVersion - return nil -} - -// Convert__ReconcileInfo_To_v1beta2_ReconcileInfo is an autogenerated conversion function. -func Convert__ReconcileInfo_To_v1beta2_ReconcileInfo(in *ReconcileInfo, out *v1beta2.ReconcileInfo, s conversion.Scope) error { - return autoConvert__ReconcileInfo_To_v1beta2_ReconcileInfo(in, out, s) -} - -func autoConvert_v1beta2_ReconcileInfo_To__ReconcileInfo(in *v1beta2.ReconcileInfo, out *ReconcileInfo, s conversion.Scope) error { - out.Generation = in.Generation - out.ReconcileVersion = in.ReconcileVersion - return nil -} - -// Convert_v1beta2_ReconcileInfo_To__ReconcileInfo is an autogenerated conversion function. -func Convert_v1beta2_ReconcileInfo_To__ReconcileInfo(in *v1beta2.ReconcileInfo, out *ReconcileInfo, s conversion.Scope) error { - return autoConvert_v1beta2_ReconcileInfo_To__ReconcileInfo(in, out, s) -} - -func autoConvert__RestoreSpec_To_v1beta2_RestoreSpec(in *RestoreSpec, out *v1beta2.RestoreSpec, s conversion.Scope) error { - out.SourceName = in.SourceName - out.SourceNamespace = in.SourceNamespace - out.RestorePoint = in.RestorePoint - if err := Convert__JobConfig_To_v1beta2_JobConfig(&in.JobConfig, &out.JobConfig, s); err != nil { - return err - } - return nil -} - -// Convert__RestoreSpec_To_v1beta2_RestoreSpec is an autogenerated conversion function. -func Convert__RestoreSpec_To_v1beta2_RestoreSpec(in *RestoreSpec, out *v1beta2.RestoreSpec, s conversion.Scope) error { - return autoConvert__RestoreSpec_To_v1beta2_RestoreSpec(in, out, s) -} - -func autoConvert_v1beta2_RestoreSpec_To__RestoreSpec(in *v1beta2.RestoreSpec, out *RestoreSpec, s conversion.Scope) error { - out.SourceName = in.SourceName - out.SourceNamespace = in.SourceNamespace - out.RestorePoint = in.RestorePoint - if err := Convert_v1beta2_JobConfig_To__JobConfig(&in.JobConfig, &out.JobConfig, s); err != nil { - return err - } - return nil -} - -// Convert_v1beta2_RestoreSpec_To__RestoreSpec is an autogenerated conversion function. -func Convert_v1beta2_RestoreSpec_To__RestoreSpec(in *v1beta2.RestoreSpec, out *RestoreSpec, s conversion.Scope) error { - return autoConvert_v1beta2_RestoreSpec_To__RestoreSpec(in, out, s) -} - -func autoConvert__ServiceSpecApplyConfiguration_To_v1beta2_ServiceSpecApplyConfiguration(in *ServiceSpecApplyConfiguration, out *v1beta2.ServiceSpecApplyConfiguration, s conversion.Scope) error { - out.Ports = *(*[]v1.ServicePortApplyConfiguration)(unsafe.Pointer(&in.Ports)) - out.Selector = *(*map[string]string)(unsafe.Pointer(&in.Selector)) - out.ClusterIP = (*string)(unsafe.Pointer(in.ClusterIP)) - out.ClusterIPs = *(*[]string)(unsafe.Pointer(&in.ClusterIPs)) - out.Type = (*corev1.ServiceType)(unsafe.Pointer(in.Type)) - out.ExternalIPs = *(*[]string)(unsafe.Pointer(&in.ExternalIPs)) - out.SessionAffinity = (*corev1.ServiceAffinity)(unsafe.Pointer(in.SessionAffinity)) - out.LoadBalancerIP = (*string)(unsafe.Pointer(in.LoadBalancerIP)) - out.LoadBalancerSourceRanges = *(*[]string)(unsafe.Pointer(&in.LoadBalancerSourceRanges)) - out.ExternalName = (*string)(unsafe.Pointer(in.ExternalName)) - out.ExternalTrafficPolicy = (*corev1.ServiceExternalTrafficPolicy)(unsafe.Pointer(in.ExternalTrafficPolicy)) - out.HealthCheckNodePort = (*int32)(unsafe.Pointer(in.HealthCheckNodePort)) - out.PublishNotReadyAddresses = (*bool)(unsafe.Pointer(in.PublishNotReadyAddresses)) - out.SessionAffinityConfig = (*v1.SessionAffinityConfigApplyConfiguration)(unsafe.Pointer(in.SessionAffinityConfig)) - out.IPFamilies = *(*[]corev1.IPFamily)(unsafe.Pointer(&in.IPFamilies)) - out.IPFamilyPolicy = (*corev1.IPFamilyPolicy)(unsafe.Pointer(in.IPFamilyPolicy)) - out.AllocateLoadBalancerNodePorts = (*bool)(unsafe.Pointer(in.AllocateLoadBalancerNodePorts)) - out.LoadBalancerClass = (*string)(unsafe.Pointer(in.LoadBalancerClass)) - out.InternalTrafficPolicy = (*corev1.ServiceInternalTrafficPolicy)(unsafe.Pointer(in.InternalTrafficPolicy)) - return nil -} - -// Convert__ServiceSpecApplyConfiguration_To_v1beta2_ServiceSpecApplyConfiguration is an autogenerated conversion function. -func Convert__ServiceSpecApplyConfiguration_To_v1beta2_ServiceSpecApplyConfiguration(in *ServiceSpecApplyConfiguration, out *v1beta2.ServiceSpecApplyConfiguration, s conversion.Scope) error { - return autoConvert__ServiceSpecApplyConfiguration_To_v1beta2_ServiceSpecApplyConfiguration(in, out, s) -} - -func autoConvert_v1beta2_ServiceSpecApplyConfiguration_To__ServiceSpecApplyConfiguration(in *v1beta2.ServiceSpecApplyConfiguration, out *ServiceSpecApplyConfiguration, s conversion.Scope) error { - out.Ports = *(*[]v1.ServicePortApplyConfiguration)(unsafe.Pointer(&in.Ports)) - out.Selector = *(*map[string]string)(unsafe.Pointer(&in.Selector)) - out.ClusterIP = (*string)(unsafe.Pointer(in.ClusterIP)) - out.ClusterIPs = *(*[]string)(unsafe.Pointer(&in.ClusterIPs)) - out.Type = (*corev1.ServiceType)(unsafe.Pointer(in.Type)) - out.ExternalIPs = *(*[]string)(unsafe.Pointer(&in.ExternalIPs)) - out.SessionAffinity = (*corev1.ServiceAffinity)(unsafe.Pointer(in.SessionAffinity)) - out.LoadBalancerIP = (*string)(unsafe.Pointer(in.LoadBalancerIP)) - out.LoadBalancerSourceRanges = *(*[]string)(unsafe.Pointer(&in.LoadBalancerSourceRanges)) - out.ExternalName = (*string)(unsafe.Pointer(in.ExternalName)) - out.ExternalTrafficPolicy = (*corev1.ServiceExternalTrafficPolicy)(unsafe.Pointer(in.ExternalTrafficPolicy)) - out.HealthCheckNodePort = (*int32)(unsafe.Pointer(in.HealthCheckNodePort)) - out.PublishNotReadyAddresses = (*bool)(unsafe.Pointer(in.PublishNotReadyAddresses)) - out.SessionAffinityConfig = (*v1.SessionAffinityConfigApplyConfiguration)(unsafe.Pointer(in.SessionAffinityConfig)) - out.IPFamilies = *(*[]corev1.IPFamily)(unsafe.Pointer(&in.IPFamilies)) - out.IPFamilyPolicy = (*corev1.IPFamilyPolicy)(unsafe.Pointer(in.IPFamilyPolicy)) - out.AllocateLoadBalancerNodePorts = (*bool)(unsafe.Pointer(in.AllocateLoadBalancerNodePorts)) - out.LoadBalancerClass = (*string)(unsafe.Pointer(in.LoadBalancerClass)) - out.InternalTrafficPolicy = (*corev1.ServiceInternalTrafficPolicy)(unsafe.Pointer(in.InternalTrafficPolicy)) - return nil -} - -// Convert_v1beta2_ServiceSpecApplyConfiguration_To__ServiceSpecApplyConfiguration is an autogenerated conversion function. -func Convert_v1beta2_ServiceSpecApplyConfiguration_To__ServiceSpecApplyConfiguration(in *v1beta2.ServiceSpecApplyConfiguration, out *ServiceSpecApplyConfiguration, s conversion.Scope) error { - return autoConvert_v1beta2_ServiceSpecApplyConfiguration_To__ServiceSpecApplyConfiguration(in, out, s) -} - -func autoConvert__ServiceTemplate_To_v1beta2_ServiceTemplate(in *ServiceTemplate, out *v1beta2.ServiceTemplate, s conversion.Scope) error { - if err := Convert__ObjectMeta_To_v1beta2_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, s); err != nil { - return err - } - out.Spec = (*v1beta2.ServiceSpecApplyConfiguration)(unsafe.Pointer(in.Spec)) - return nil -} - -// Convert__ServiceTemplate_To_v1beta2_ServiceTemplate is an autogenerated conversion function. -func Convert__ServiceTemplate_To_v1beta2_ServiceTemplate(in *ServiceTemplate, out *v1beta2.ServiceTemplate, s conversion.Scope) error { - return autoConvert__ServiceTemplate_To_v1beta2_ServiceTemplate(in, out, s) -} - -func autoConvert_v1beta2_ServiceTemplate_To__ServiceTemplate(in *v1beta2.ServiceTemplate, out *ServiceTemplate, s conversion.Scope) error { - if err := Convert_v1beta2_ObjectMeta_To__ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, s); err != nil { - return err - } - out.Spec = (*ServiceSpecApplyConfiguration)(unsafe.Pointer(in.Spec)) - return nil -} - -// Convert_v1beta2_ServiceTemplate_To__ServiceTemplate is an autogenerated conversion function. -func Convert_v1beta2_ServiceTemplate_To__ServiceTemplate(in *v1beta2.ServiceTemplate, out *ServiceTemplate, s conversion.Scope) error { - return autoConvert_v1beta2_ServiceTemplate_To__ServiceTemplate(in, out, s) -} - -func autoConvert__VolumeApplyConfiguration_To_v1beta2_VolumeApplyConfiguration(in *VolumeApplyConfiguration, out *v1beta2.VolumeApplyConfiguration, s conversion.Scope) error { - out.Name = (*string)(unsafe.Pointer(in.Name)) - out.VolumeSourceApplyConfiguration = in.VolumeSourceApplyConfiguration - return nil -} - -// Convert__VolumeApplyConfiguration_To_v1beta2_VolumeApplyConfiguration is an autogenerated conversion function. -func Convert__VolumeApplyConfiguration_To_v1beta2_VolumeApplyConfiguration(in *VolumeApplyConfiguration, out *v1beta2.VolumeApplyConfiguration, s conversion.Scope) error { - return autoConvert__VolumeApplyConfiguration_To_v1beta2_VolumeApplyConfiguration(in, out, s) -} - -func autoConvert_v1beta2_VolumeApplyConfiguration_To__VolumeApplyConfiguration(in *v1beta2.VolumeApplyConfiguration, out *VolumeApplyConfiguration, s conversion.Scope) error { - out.Name = (*string)(unsafe.Pointer(in.Name)) - out.VolumeSourceApplyConfiguration = in.VolumeSourceApplyConfiguration - return nil -} - -// Convert_v1beta2_VolumeApplyConfiguration_To__VolumeApplyConfiguration is an autogenerated conversion function. -func Convert_v1beta2_VolumeApplyConfiguration_To__VolumeApplyConfiguration(in *v1beta2.VolumeApplyConfiguration, out *VolumeApplyConfiguration, s conversion.Scope) error { - return autoConvert_v1beta2_VolumeApplyConfiguration_To__VolumeApplyConfiguration(in, out, s) -} - -func autoConvert__VolumeMountApplyConfiguration_To_v1beta2_VolumeMountApplyConfiguration(in *VolumeMountApplyConfiguration, out *v1beta2.VolumeMountApplyConfiguration, s conversion.Scope) error { - out.Name = (*string)(unsafe.Pointer(in.Name)) - out.ReadOnly = (*bool)(unsafe.Pointer(in.ReadOnly)) - out.MountPath = (*string)(unsafe.Pointer(in.MountPath)) - out.SubPath = (*string)(unsafe.Pointer(in.SubPath)) - out.MountPropagation = (*corev1.MountPropagationMode)(unsafe.Pointer(in.MountPropagation)) - out.SubPathExpr = (*string)(unsafe.Pointer(in.SubPathExpr)) - return nil -} - -// Convert__VolumeMountApplyConfiguration_To_v1beta2_VolumeMountApplyConfiguration is an autogenerated conversion function. -func Convert__VolumeMountApplyConfiguration_To_v1beta2_VolumeMountApplyConfiguration(in *VolumeMountApplyConfiguration, out *v1beta2.VolumeMountApplyConfiguration, s conversion.Scope) error { - return autoConvert__VolumeMountApplyConfiguration_To_v1beta2_VolumeMountApplyConfiguration(in, out, s) -} - -func autoConvert_v1beta2_VolumeMountApplyConfiguration_To__VolumeMountApplyConfiguration(in *v1beta2.VolumeMountApplyConfiguration, out *VolumeMountApplyConfiguration, s conversion.Scope) error { - out.Name = (*string)(unsafe.Pointer(in.Name)) - out.ReadOnly = (*bool)(unsafe.Pointer(in.ReadOnly)) - out.MountPath = (*string)(unsafe.Pointer(in.MountPath)) - out.SubPath = (*string)(unsafe.Pointer(in.SubPath)) - out.MountPropagation = (*corev1.MountPropagationMode)(unsafe.Pointer(in.MountPropagation)) - out.SubPathExpr = (*string)(unsafe.Pointer(in.SubPathExpr)) - return nil -} - -// Convert_v1beta2_VolumeMountApplyConfiguration_To__VolumeMountApplyConfiguration is an autogenerated conversion function. -func Convert_v1beta2_VolumeMountApplyConfiguration_To__VolumeMountApplyConfiguration(in *v1beta2.VolumeMountApplyConfiguration, out *VolumeMountApplyConfiguration, s conversion.Scope) error { - return autoConvert_v1beta2_VolumeMountApplyConfiguration_To__VolumeMountApplyConfiguration(in, out, s) -} - -func autoConvert__VolumeSourceApplyConfiguration_To_v1beta2_VolumeSourceApplyConfiguration(in *VolumeSourceApplyConfiguration, out *v1beta2.VolumeSourceApplyConfiguration, s conversion.Scope) error { - out.HostPath = (*v1.HostPathVolumeSourceApplyConfiguration)(unsafe.Pointer(in.HostPath)) - out.EmptyDir = (*v1.EmptyDirVolumeSourceApplyConfiguration)(unsafe.Pointer(in.EmptyDir)) - out.GCEPersistentDisk = (*v1.GCEPersistentDiskVolumeSourceApplyConfiguration)(unsafe.Pointer(in.GCEPersistentDisk)) - out.AWSElasticBlockStore = (*v1.AWSElasticBlockStoreVolumeSourceApplyConfiguration)(unsafe.Pointer(in.AWSElasticBlockStore)) - out.GitRepo = (*v1.GitRepoVolumeSourceApplyConfiguration)(unsafe.Pointer(in.GitRepo)) - out.Secret = (*v1.SecretVolumeSourceApplyConfiguration)(unsafe.Pointer(in.Secret)) - out.NFS = (*v1.NFSVolumeSourceApplyConfiguration)(unsafe.Pointer(in.NFS)) - out.ISCSI = (*v1.ISCSIVolumeSourceApplyConfiguration)(unsafe.Pointer(in.ISCSI)) - out.Glusterfs = (*v1.GlusterfsVolumeSourceApplyConfiguration)(unsafe.Pointer(in.Glusterfs)) - out.PersistentVolumeClaim = (*v1.PersistentVolumeClaimVolumeSourceApplyConfiguration)(unsafe.Pointer(in.PersistentVolumeClaim)) - out.RBD = (*v1.RBDVolumeSourceApplyConfiguration)(unsafe.Pointer(in.RBD)) - out.FlexVolume = (*v1.FlexVolumeSourceApplyConfiguration)(unsafe.Pointer(in.FlexVolume)) - out.Cinder = (*v1.CinderVolumeSourceApplyConfiguration)(unsafe.Pointer(in.Cinder)) - out.CephFS = (*v1.CephFSVolumeSourceApplyConfiguration)(unsafe.Pointer(in.CephFS)) - out.Flocker = (*v1.FlockerVolumeSourceApplyConfiguration)(unsafe.Pointer(in.Flocker)) - out.DownwardAPI = (*v1.DownwardAPIVolumeSourceApplyConfiguration)(unsafe.Pointer(in.DownwardAPI)) - out.FC = (*v1.FCVolumeSourceApplyConfiguration)(unsafe.Pointer(in.FC)) - out.AzureFile = (*v1.AzureFileVolumeSourceApplyConfiguration)(unsafe.Pointer(in.AzureFile)) - out.ConfigMap = (*v1.ConfigMapVolumeSourceApplyConfiguration)(unsafe.Pointer(in.ConfigMap)) - out.VsphereVolume = (*v1.VsphereVirtualDiskVolumeSourceApplyConfiguration)(unsafe.Pointer(in.VsphereVolume)) - out.Quobyte = (*v1.QuobyteVolumeSourceApplyConfiguration)(unsafe.Pointer(in.Quobyte)) - out.AzureDisk = (*v1.AzureDiskVolumeSourceApplyConfiguration)(unsafe.Pointer(in.AzureDisk)) - out.PhotonPersistentDisk = (*v1.PhotonPersistentDiskVolumeSourceApplyConfiguration)(unsafe.Pointer(in.PhotonPersistentDisk)) - out.Projected = (*v1.ProjectedVolumeSourceApplyConfiguration)(unsafe.Pointer(in.Projected)) - out.PortworxVolume = (*v1.PortworxVolumeSourceApplyConfiguration)(unsafe.Pointer(in.PortworxVolume)) - out.ScaleIO = (*v1.ScaleIOVolumeSourceApplyConfiguration)(unsafe.Pointer(in.ScaleIO)) - out.StorageOS = (*v1.StorageOSVolumeSourceApplyConfiguration)(unsafe.Pointer(in.StorageOS)) - out.CSI = (*v1.CSIVolumeSourceApplyConfiguration)(unsafe.Pointer(in.CSI)) - out.Ephemeral = (*v1.EphemeralVolumeSourceApplyConfiguration)(unsafe.Pointer(in.Ephemeral)) - return nil -} - -// Convert__VolumeSourceApplyConfiguration_To_v1beta2_VolumeSourceApplyConfiguration is an autogenerated conversion function. -func Convert__VolumeSourceApplyConfiguration_To_v1beta2_VolumeSourceApplyConfiguration(in *VolumeSourceApplyConfiguration, out *v1beta2.VolumeSourceApplyConfiguration, s conversion.Scope) error { - return autoConvert__VolumeSourceApplyConfiguration_To_v1beta2_VolumeSourceApplyConfiguration(in, out, s) -} - -func autoConvert_v1beta2_VolumeSourceApplyConfiguration_To__VolumeSourceApplyConfiguration(in *v1beta2.VolumeSourceApplyConfiguration, out *VolumeSourceApplyConfiguration, s conversion.Scope) error { - out.HostPath = (*v1.HostPathVolumeSourceApplyConfiguration)(unsafe.Pointer(in.HostPath)) - out.EmptyDir = (*v1.EmptyDirVolumeSourceApplyConfiguration)(unsafe.Pointer(in.EmptyDir)) - out.GCEPersistentDisk = (*v1.GCEPersistentDiskVolumeSourceApplyConfiguration)(unsafe.Pointer(in.GCEPersistentDisk)) - out.AWSElasticBlockStore = (*v1.AWSElasticBlockStoreVolumeSourceApplyConfiguration)(unsafe.Pointer(in.AWSElasticBlockStore)) - out.GitRepo = (*v1.GitRepoVolumeSourceApplyConfiguration)(unsafe.Pointer(in.GitRepo)) - out.Secret = (*v1.SecretVolumeSourceApplyConfiguration)(unsafe.Pointer(in.Secret)) - out.NFS = (*v1.NFSVolumeSourceApplyConfiguration)(unsafe.Pointer(in.NFS)) - out.ISCSI = (*v1.ISCSIVolumeSourceApplyConfiguration)(unsafe.Pointer(in.ISCSI)) - out.Glusterfs = (*v1.GlusterfsVolumeSourceApplyConfiguration)(unsafe.Pointer(in.Glusterfs)) - out.PersistentVolumeClaim = (*v1.PersistentVolumeClaimVolumeSourceApplyConfiguration)(unsafe.Pointer(in.PersistentVolumeClaim)) - out.RBD = (*v1.RBDVolumeSourceApplyConfiguration)(unsafe.Pointer(in.RBD)) - out.FlexVolume = (*v1.FlexVolumeSourceApplyConfiguration)(unsafe.Pointer(in.FlexVolume)) - out.Cinder = (*v1.CinderVolumeSourceApplyConfiguration)(unsafe.Pointer(in.Cinder)) - out.CephFS = (*v1.CephFSVolumeSourceApplyConfiguration)(unsafe.Pointer(in.CephFS)) - out.Flocker = (*v1.FlockerVolumeSourceApplyConfiguration)(unsafe.Pointer(in.Flocker)) - out.DownwardAPI = (*v1.DownwardAPIVolumeSourceApplyConfiguration)(unsafe.Pointer(in.DownwardAPI)) - out.FC = (*v1.FCVolumeSourceApplyConfiguration)(unsafe.Pointer(in.FC)) - out.AzureFile = (*v1.AzureFileVolumeSourceApplyConfiguration)(unsafe.Pointer(in.AzureFile)) - out.ConfigMap = (*v1.ConfigMapVolumeSourceApplyConfiguration)(unsafe.Pointer(in.ConfigMap)) - out.VsphereVolume = (*v1.VsphereVirtualDiskVolumeSourceApplyConfiguration)(unsafe.Pointer(in.VsphereVolume)) - out.Quobyte = (*v1.QuobyteVolumeSourceApplyConfiguration)(unsafe.Pointer(in.Quobyte)) - out.AzureDisk = (*v1.AzureDiskVolumeSourceApplyConfiguration)(unsafe.Pointer(in.AzureDisk)) - out.PhotonPersistentDisk = (*v1.PhotonPersistentDiskVolumeSourceApplyConfiguration)(unsafe.Pointer(in.PhotonPersistentDisk)) - out.Projected = (*v1.ProjectedVolumeSourceApplyConfiguration)(unsafe.Pointer(in.Projected)) - out.PortworxVolume = (*v1.PortworxVolumeSourceApplyConfiguration)(unsafe.Pointer(in.PortworxVolume)) - out.ScaleIO = (*v1.ScaleIOVolumeSourceApplyConfiguration)(unsafe.Pointer(in.ScaleIO)) - out.StorageOS = (*v1.StorageOSVolumeSourceApplyConfiguration)(unsafe.Pointer(in.StorageOS)) - out.CSI = (*v1.CSIVolumeSourceApplyConfiguration)(unsafe.Pointer(in.CSI)) - out.Ephemeral = (*v1.EphemeralVolumeSourceApplyConfiguration)(unsafe.Pointer(in.Ephemeral)) - return nil -} - -// Convert_v1beta2_VolumeSourceApplyConfiguration_To__VolumeSourceApplyConfiguration is an autogenerated conversion function. -func Convert_v1beta2_VolumeSourceApplyConfiguration_To__VolumeSourceApplyConfiguration(in *v1beta2.VolumeSourceApplyConfiguration, out *VolumeSourceApplyConfiguration, s conversion.Scope) error { - return autoConvert_v1beta2_VolumeSourceApplyConfiguration_To__VolumeSourceApplyConfiguration(in, out, s) -} diff --git a/api/v1beta1/zz_generated.deepcopy.go b/api/v1beta1/zz_generated.deepcopy.go deleted file mode 100644 index 39dc70596..000000000 --- a/api/v1beta1/zz_generated.deepcopy.go +++ /dev/null @@ -1,535 +0,0 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - -// Code generated by controller-gen. DO NOT EDIT. - -package v1beta1 - -import ( - "k8s.io/apimachinery/pkg/apis/meta/v1" - "k8s.io/apimachinery/pkg/runtime" -) - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *AffinityApplyConfiguration) DeepCopyInto(out *AffinityApplyConfiguration) { - clone := in.DeepCopy() - *out = *clone -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *BackupPolicy) DeepCopyInto(out *BackupPolicy) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BackupPolicy. -func (in *BackupPolicy) DeepCopy() *BackupPolicy { - if in == nil { - return nil - } - out := new(BackupPolicy) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *BackupPolicy) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *BackupPolicyList) DeepCopyInto(out *BackupPolicyList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]BackupPolicy, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BackupPolicyList. -func (in *BackupPolicyList) DeepCopy() *BackupPolicyList { - if in == nil { - return nil - } - out := new(BackupPolicyList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *BackupPolicyList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *BackupPolicySpec) DeepCopyInto(out *BackupPolicySpec) { - *out = *in - in.JobConfig.DeepCopyInto(&out.JobConfig) - if in.StartingDeadlineSeconds != nil { - in, out := &in.StartingDeadlineSeconds, &out.StartingDeadlineSeconds - *out = new(int64) - **out = **in - } - if in.ActiveDeadlineSeconds != nil { - in, out := &in.ActiveDeadlineSeconds, &out.ActiveDeadlineSeconds - *out = new(int64) - **out = **in - } - if in.BackoffLimit != nil { - in, out := &in.BackoffLimit, &out.BackoffLimit - *out = new(int32) - **out = **in - } - if in.SuccessfulJobsHistoryLimit != nil { - in, out := &in.SuccessfulJobsHistoryLimit, &out.SuccessfulJobsHistoryLimit - *out = new(int32) - **out = **in - } - if in.FailedJobsHistoryLimit != nil { - in, out := &in.FailedJobsHistoryLimit, &out.FailedJobsHistoryLimit - *out = new(int32) - **out = **in - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BackupPolicySpec. -func (in *BackupPolicySpec) DeepCopy() *BackupPolicySpec { - if in == nil { - return nil - } - out := new(BackupPolicySpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *BackupStatus) DeepCopyInto(out *BackupStatus) { - *out = *in - in.Time.DeepCopyInto(&out.Time) - out.Elapsed = in.Elapsed - if in.Warnings != nil { - in, out := &in.Warnings, &out.Warnings - *out = make([]string, len(*in)) - copy(*out, *in) - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BackupStatus. -func (in *BackupStatus) DeepCopy() *BackupStatus { - if in == nil { - return nil - } - out := new(BackupStatus) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *BucketConfig) DeepCopyInto(out *BucketConfig) { - *out = *in -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BucketConfig. -func (in *BucketConfig) DeepCopy() *BucketConfig { - if in == nil { - return nil - } - out := new(BucketConfig) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *EnvFromSourceApplyConfiguration) DeepCopyInto(out *EnvFromSourceApplyConfiguration) { - clone := in.DeepCopy() - *out = *clone -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *EnvVarApplyConfiguration) DeepCopyInto(out *EnvVarApplyConfiguration) { - clone := in.DeepCopy() - *out = *clone -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *JobConfig) DeepCopyInto(out *JobConfig) { - *out = *in - out.BucketConfig = in.BucketConfig - in.WorkVolume.DeepCopyInto(&out.WorkVolume) - if in.CPU != nil { - in, out := &in.CPU, &out.CPU - x := (*in).DeepCopy() - *out = &x - } - if in.MaxCPU != nil { - in, out := &in.MaxCPU, &out.MaxCPU - x := (*in).DeepCopy() - *out = &x - } - if in.Memory != nil { - in, out := &in.Memory, &out.Memory - x := (*in).DeepCopy() - *out = &x - } - if in.MaxMemory != nil { - in, out := &in.MaxMemory, &out.MaxMemory - x := (*in).DeepCopy() - *out = &x - } - if in.EnvFrom != nil { - in, out := &in.EnvFrom, &out.EnvFrom - *out = make([]EnvFromSourceApplyConfiguration, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.Env != nil { - in, out := &in.Env, &out.Env - *out = make([]EnvVarApplyConfiguration, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.Affinity != nil { - in, out := &in.Affinity, &out.Affinity - *out = (*in).DeepCopy() - } - if in.Volumes != nil { - in, out := &in.Volumes, &out.Volumes - *out = make([]VolumeApplyConfiguration, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.VolumeMounts != nil { - in, out := &in.VolumeMounts, &out.VolumeMounts - *out = make([]VolumeMountApplyConfiguration, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new JobConfig. -func (in *JobConfig) DeepCopy() *JobConfig { - if in == nil { - return nil - } - out := new(JobConfig) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *MySQLCluster) DeepCopyInto(out *MySQLCluster) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - in.Status.DeepCopyInto(&out.Status) -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MySQLCluster. -func (in *MySQLCluster) DeepCopy() *MySQLCluster { - if in == nil { - return nil - } - out := new(MySQLCluster) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *MySQLCluster) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *MySQLClusterList) DeepCopyInto(out *MySQLClusterList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]MySQLCluster, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MySQLClusterList. -func (in *MySQLClusterList) DeepCopy() *MySQLClusterList { - if in == nil { - return nil - } - out := new(MySQLClusterList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *MySQLClusterList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *MySQLClusterSpec) DeepCopyInto(out *MySQLClusterSpec) { - *out = *in - in.PodTemplate.DeepCopyInto(&out.PodTemplate) - if in.VolumeClaimTemplates != nil { - in, out := &in.VolumeClaimTemplates, &out.VolumeClaimTemplates - *out = make([]PersistentVolumeClaim, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.ServiceTemplate != nil { - in, out := &in.ServiceTemplate, &out.ServiceTemplate - *out = new(ServiceTemplate) - (*in).DeepCopyInto(*out) - } - if in.MySQLConfigMapName != nil { - in, out := &in.MySQLConfigMapName, &out.MySQLConfigMapName - *out = new(string) - **out = **in - } - if in.ReplicationSourceSecretName != nil { - in, out := &in.ReplicationSourceSecretName, &out.ReplicationSourceSecretName - *out = new(string) - **out = **in - } - if in.Collectors != nil { - in, out := &in.Collectors, &out.Collectors - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.MaxDelaySeconds != nil { - in, out := &in.MaxDelaySeconds, &out.MaxDelaySeconds - *out = new(int) - **out = **in - } - if in.BackupPolicyName != nil { - in, out := &in.BackupPolicyName, &out.BackupPolicyName - *out = new(string) - **out = **in - } - if in.Restore != nil { - in, out := &in.Restore, &out.Restore - *out = new(RestoreSpec) - (*in).DeepCopyInto(*out) - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MySQLClusterSpec. -func (in *MySQLClusterSpec) DeepCopy() *MySQLClusterSpec { - if in == nil { - return nil - } - out := new(MySQLClusterSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *MySQLClusterStatus) DeepCopyInto(out *MySQLClusterStatus) { - *out = *in - if in.Conditions != nil { - in, out := &in.Conditions, &out.Conditions - *out = make([]v1.Condition, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.ErrantReplicaList != nil { - in, out := &in.ErrantReplicaList, &out.ErrantReplicaList - *out = make([]int, len(*in)) - copy(*out, *in) - } - in.Backup.DeepCopyInto(&out.Backup) - if in.RestoredTime != nil { - in, out := &in.RestoredTime, &out.RestoredTime - *out = (*in).DeepCopy() - } - out.ReconcileInfo = in.ReconcileInfo -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MySQLClusterStatus. -func (in *MySQLClusterStatus) DeepCopy() *MySQLClusterStatus { - if in == nil { - return nil - } - out := new(MySQLClusterStatus) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ObjectMeta) DeepCopyInto(out *ObjectMeta) { - *out = *in - if in.Labels != nil { - in, out := &in.Labels, &out.Labels - *out = make(map[string]string, len(*in)) - for key, val := range *in { - (*out)[key] = val - } - } - if in.Annotations != nil { - in, out := &in.Annotations, &out.Annotations - *out = make(map[string]string, len(*in)) - for key, val := range *in { - (*out)[key] = val - } - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ObjectMeta. -func (in *ObjectMeta) DeepCopy() *ObjectMeta { - if in == nil { - return nil - } - out := new(ObjectMeta) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *PersistentVolumeClaim) DeepCopyInto(out *PersistentVolumeClaim) { - *out = *in - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PersistentVolumeClaim. -func (in *PersistentVolumeClaim) DeepCopy() *PersistentVolumeClaim { - if in == nil { - return nil - } - out := new(PersistentVolumeClaim) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *PersistentVolumeClaimSpecApplyConfiguration) DeepCopyInto(out *PersistentVolumeClaimSpecApplyConfiguration) { - clone := in.DeepCopy() - *out = *clone -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *PodSpecApplyConfiguration) DeepCopyInto(out *PodSpecApplyConfiguration) { - clone := in.DeepCopy() - *out = *clone -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *PodTemplateSpec) DeepCopyInto(out *PodTemplateSpec) { - *out = *in - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodTemplateSpec. -func (in *PodTemplateSpec) DeepCopy() *PodTemplateSpec { - if in == nil { - return nil - } - out := new(PodTemplateSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ReconcileInfo) DeepCopyInto(out *ReconcileInfo) { - *out = *in -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ReconcileInfo. -func (in *ReconcileInfo) DeepCopy() *ReconcileInfo { - if in == nil { - return nil - } - out := new(ReconcileInfo) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RestoreSpec) DeepCopyInto(out *RestoreSpec) { - *out = *in - in.RestorePoint.DeepCopyInto(&out.RestorePoint) - in.JobConfig.DeepCopyInto(&out.JobConfig) -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RestoreSpec. -func (in *RestoreSpec) DeepCopy() *RestoreSpec { - if in == nil { - return nil - } - out := new(RestoreSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ServiceSpecApplyConfiguration) DeepCopyInto(out *ServiceSpecApplyConfiguration) { - clone := in.DeepCopy() - *out = *clone -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ServiceTemplate) DeepCopyInto(out *ServiceTemplate) { - *out = *in - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - if in.Spec != nil { - in, out := &in.Spec, &out.Spec - *out = (*in).DeepCopy() - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceTemplate. -func (in *ServiceTemplate) DeepCopy() *ServiceTemplate { - if in == nil { - return nil - } - out := new(ServiceTemplate) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *VolumeApplyConfiguration) DeepCopyInto(out *VolumeApplyConfiguration) { - clone := in.DeepCopy() - *out = *clone -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *VolumeMountApplyConfiguration) DeepCopyInto(out *VolumeMountApplyConfiguration) { - clone := in.DeepCopy() - *out = *clone -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *VolumeSourceApplyConfiguration) DeepCopyInto(out *VolumeSourceApplyConfiguration) { - clone := in.DeepCopy() - *out = *clone -} diff --git a/api/v1beta2/webhook_suite_test.go b/api/v1beta2/webhook_suite_test.go index 68742bb43..8cda54491 100644 --- a/api/v1beta2/webhook_suite_test.go +++ b/api/v1beta2/webhook_suite_test.go @@ -9,7 +9,6 @@ import ( "testing" "time" - mocov1beta1 "github.com/cybozu-go/moco/api/v1beta1" mocov1beta2 "github.com/cybozu-go/moco/api/v1beta2" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" @@ -47,9 +46,7 @@ var _ = BeforeSuite(func() { ctx, cancel = context.WithCancel(context.TODO()) scheme := runtime.NewScheme() - err := mocov1beta1.AddToScheme(scheme) - Expect(err).NotTo(HaveOccurred()) - err = mocov1beta2.AddToScheme(scheme) + err := mocov1beta2.AddToScheme(scheme) Expect(err).NotTo(HaveOccurred()) err = clientgoscheme.AddToScheme(scheme) @@ -91,8 +88,6 @@ var _ = BeforeSuite(func() { }) Expect(err).NotTo(HaveOccurred()) - err = (&mocov1beta1.MySQLCluster{}).SetupWebhookWithManager(mgr) - Expect(err).NotTo(HaveOccurred()) err = (&mocov1beta2.MySQLCluster{}).SetupWebhookWithManager(mgr) Expect(err).NotTo(HaveOccurred()) err = (&mocov1beta2.BackupPolicy{}).SetupWebhookWithManager(mgr) diff --git a/charts/moco/templates/generated/crds/moco_crds.yaml b/charts/moco/templates/generated/crds/moco_crds.yaml index c1c31c1dd..eca33fc81 100644 --- a/charts/moco/templates/generated/crds/moco_crds.yaml +++ b/charts/moco/templates/generated/crds/moco_crds.yaml @@ -18,8 +18,7 @@ spec: singular: backuppolicy scope: Namespaced versions: - - deprecated: true - name: v1beta1 + - name: v1beta2 schema: openAPIV3Schema: description: 'BackupPolicy is a namespaced resource that should ' @@ -2051,7691 +2050,39 @@ spec: - spec type: object served: true - storage: false - - name: v1beta2 - schema: - openAPIV3Schema: - description: 'BackupPolicy is a namespaced resource that should ' - properties: - apiVersion: - description: APIVersion defines the versioned schema of this re - type: string - kind: - description: Kind is a string value representing the REST resou - type: string - metadata: - type: object - spec: - description: BackupPolicySpec defines the configuration items f - properties: - activeDeadlineSeconds: - description: 'Specifies the duration in seconds relative to the ' - format: int64 - nullable: true - type: integer - backoffLimit: - description: Specifies the number of retries before marking thi - format: int32 - minimum: 0 - nullable: true - type: integer - concurrencyPolicy: - default: Allow - description: 'Specifies how to treat concurrent executions of a ' - enum: - - Allow - - Forbid - - Replace - type: string - failedJobsHistoryLimit: - description: The number of failed finished jobs to retain. - format: int32 - minimum: 0 - nullable: true - type: integer - jobConfig: - description: Specifies parameters for backup Pod. - properties: - affinity: - description: If specified, the pod's scheduling constraints. - properties: - nodeAffinity: - description: NodeAffinityApplyConfiguration represents an decla - properties: - preferredDuringSchedulingIgnoredDuringExecution: - items: - description: PreferredSchedulingTermApplyConfiguration represen - properties: - preference: - description: NodeSelectorTermApplyConfiguration represents an d - properties: - matchExpressions: - items: - description: NodeSelectorRequirementApplyConfiguration represen - properties: - key: - type: string - operator: - description: A node selector operator is the set of operators t - type: string - values: - items: - type: string - type: array - type: object - type: array - matchFields: - items: - description: NodeSelectorRequirementApplyConfiguration represen - properties: - key: - type: string - operator: - description: A node selector operator is the set of operators t - type: string - values: - items: - type: string - type: array - type: object - type: array - type: object - weight: - format: int32 - type: integer - type: object - type: array - requiredDuringSchedulingIgnoredDuringExecution: - description: NodeSelectorApplyConfiguration represents an decla - properties: - nodeSelectorTerms: - items: - description: NodeSelectorTermApplyConfiguration represents an d - properties: - matchExpressions: - items: - description: NodeSelectorRequirementApplyConfiguration represen - properties: - key: - type: string - operator: - description: A node selector operator is the set of operators t - type: string - values: - items: - type: string - type: array - type: object - type: array - matchFields: - items: - description: NodeSelectorRequirementApplyConfiguration represen - properties: - key: - type: string - operator: - description: A node selector operator is the set of operators t - type: string - values: - items: - type: string - type: array - type: object - type: array - type: object - type: array - type: object - type: object - podAffinity: - description: PodAffinityApplyConfiguration represents an declar - properties: - preferredDuringSchedulingIgnoredDuringExecution: - items: - description: WeightedPodAffinityTermApplyConfiguration represen - properties: - podAffinityTerm: - description: PodAffinityTermApplyConfiguration represents an de - properties: - labelSelector: - description: LabelSelectorApplyConfiguration represents an decl - properties: - matchExpressions: - items: - description: LabelSelectorRequirementApplyConfiguration represe - properties: - key: - type: string - operator: - description: 'A label selector operator is the set of operators ' - type: string - values: - items: - type: string - type: array - type: object - type: array - matchLabels: - additionalProperties: - type: string - type: object - type: object - namespaceSelector: - description: LabelSelectorApplyConfiguration represents an decl - properties: - matchExpressions: - items: - description: LabelSelectorRequirementApplyConfiguration represe - properties: - key: - type: string - operator: - description: 'A label selector operator is the set of operators ' - type: string - values: - items: - type: string - type: array - type: object - type: array - matchLabels: - additionalProperties: - type: string - type: object - type: object - namespaces: - items: - type: string - type: array - topologyKey: - type: string - type: object - weight: - format: int32 - type: integer - type: object - type: array - requiredDuringSchedulingIgnoredDuringExecution: - items: - description: PodAffinityTermApplyConfiguration represents an de - properties: - labelSelector: - description: LabelSelectorApplyConfiguration represents an decl - properties: - matchExpressions: - items: - description: LabelSelectorRequirementApplyConfiguration represe - properties: - key: - type: string - operator: - description: 'A label selector operator is the set of operators ' - type: string - values: - items: - type: string - type: array - type: object - type: array - matchLabels: - additionalProperties: - type: string - type: object - type: object - namespaceSelector: - description: LabelSelectorApplyConfiguration represents an decl - properties: - matchExpressions: - items: - description: LabelSelectorRequirementApplyConfiguration represe - properties: - key: - type: string - operator: - description: 'A label selector operator is the set of operators ' - type: string - values: - items: - type: string - type: array - type: object - type: array - matchLabels: - additionalProperties: - type: string - type: object - type: object - namespaces: - items: - type: string - type: array - topologyKey: - type: string - type: object - type: array - type: object - podAntiAffinity: - description: PodAntiAffinityApplyConfiguration represents an de - properties: - preferredDuringSchedulingIgnoredDuringExecution: - items: - description: WeightedPodAffinityTermApplyConfiguration represen - properties: - podAffinityTerm: - description: PodAffinityTermApplyConfiguration represents an de - properties: - labelSelector: - description: LabelSelectorApplyConfiguration represents an decl - properties: - matchExpressions: - items: - description: LabelSelectorRequirementApplyConfiguration represe - properties: - key: - type: string - operator: - description: 'A label selector operator is the set of operators ' - type: string - values: - items: - type: string - type: array - type: object - type: array - matchLabels: - additionalProperties: - type: string - type: object - type: object - namespaceSelector: - description: LabelSelectorApplyConfiguration represents an decl - properties: - matchExpressions: - items: - description: LabelSelectorRequirementApplyConfiguration represe - properties: - key: - type: string - operator: - description: 'A label selector operator is the set of operators ' - type: string - values: - items: - type: string - type: array - type: object - type: array - matchLabels: - additionalProperties: - type: string - type: object - type: object - namespaces: - items: - type: string - type: array - topologyKey: - type: string - type: object - weight: - format: int32 - type: integer - type: object - type: array - requiredDuringSchedulingIgnoredDuringExecution: - items: - description: PodAffinityTermApplyConfiguration represents an de - properties: - labelSelector: - description: LabelSelectorApplyConfiguration represents an decl - properties: - matchExpressions: - items: - description: LabelSelectorRequirementApplyConfiguration represe - properties: - key: - type: string - operator: - description: 'A label selector operator is the set of operators ' - type: string - values: - items: - type: string - type: array - type: object - type: array - matchLabels: - additionalProperties: - type: string - type: object - type: object - namespaceSelector: - description: LabelSelectorApplyConfiguration represents an decl - properties: - matchExpressions: - items: - description: LabelSelectorRequirementApplyConfiguration represe - properties: - key: - type: string - operator: - description: 'A label selector operator is the set of operators ' - type: string - values: - items: - type: string - type: array - type: object - type: array - matchLabels: - additionalProperties: - type: string - type: object - type: object - namespaces: - items: - type: string - type: array - topologyKey: - type: string - type: object - type: array - type: object - type: object - bucketConfig: - description: Specifies how to access an object storage bucket. - properties: - backendType: - default: s3 - description: BackendType is an identifier for the object storag - enum: - - s3 - - gcs - type: string - bucketName: - description: The name of the bucket - minLength: 1 - type: string - caCert: - description: Path to SSL CA certificate file used in addition t - type: string - endpointURL: - description: The API endpoint URL. - pattern: ^https?://.* - type: string - region: - description: The region of the bucket. - type: string - usePathStyle: - description: 'Allows you to enable the client to use path-style ' - type: boolean - required: - - bucketName - type: object - cpu: - anyOf: - - type: integer - - type: string - default: 4 - description: CPU is the amount of CPU requested for the Pod. - nullable: true - pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ - x-kubernetes-int-or-string: true - env: - description: List of environment variables to set in the contai - items: - description: EnvVarApplyConfiguration is the type defined to im - properties: - name: - type: string - value: - type: string - valueFrom: - description: EnvVarSourceApplyConfiguration represents an decla - properties: - configMapKeyRef: - description: 'ConfigMapKeySelectorApplyConfiguration represents ' - properties: - key: - type: string - name: - type: string - optional: - type: boolean - type: object - fieldRef: - description: ObjectFieldSelectorApplyConfiguration represents a - properties: - apiVersion: - type: string - fieldPath: - type: string - type: object - resourceFieldRef: - description: ResourceFieldSelectorApplyConfiguration represents - properties: - containerName: - type: string - divisor: - 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 - resource: - type: string - type: object - secretKeyRef: - description: 'SecretKeySelectorApplyConfiguration represents an ' - properties: - key: - type: string - name: - type: string - optional: - type: boolean - type: object - type: object - type: object - type: array - envFrom: - description: 'List of sources to populate environment variables ' - items: - description: EnvFromSourceApplyConfiguration is the type define - properties: - configMapRef: - description: ConfigMapEnvSourceApplyConfiguration represents an - properties: - name: - type: string - optional: - type: boolean - type: object - prefix: - type: string - secretRef: - description: SecretEnvSourceApplyConfiguration represents an de - properties: - name: - type: string - optional: - type: boolean - type: object - type: object - type: array - maxCpu: - anyOf: - - type: integer - - type: string - description: MaxCPU is the amount of maximum CPU for the Pod. - nullable: true - pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ - x-kubernetes-int-or-string: true - maxMemory: - anyOf: - - type: integer - - type: string - description: 'MaxMemory is the amount of maximum memory for the ' - nullable: true - pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ - x-kubernetes-int-or-string: true - memory: - anyOf: - - type: integer - - type: string - default: 4Gi - description: Memory is the amount of memory requested for the P - nullable: true - pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ - x-kubernetes-int-or-string: true - serviceAccountName: - description: ServiceAccountName specifies the ServiceAccount to - minLength: 1 - type: string - threads: - default: 4 - description: Threads is the number of threads used for backup o - minimum: 1 - type: integer - volumeMounts: - description: VolumeMounts describes a list of volume mounts tha - items: - description: 'VolumeMountApplyConfiguration is the type defined ' - properties: - mountPath: - type: string - mountPropagation: - description: MountPropagationMode describes mount propagation. - type: string - name: - type: string - readOnly: - type: boolean - subPath: - type: string - subPathExpr: - type: string - type: object - type: array - volumes: - description: Volumes defines the list of volumes that can be mo - items: - description: VolumeApplyConfiguration is the type defined to im - properties: - awsElasticBlockStore: - description: AWSElasticBlockStoreVolumeSourceApplyConfiguration - properties: - fsType: - type: string - partition: - format: int32 - type: integer - readOnly: - type: boolean - volumeID: - type: string - type: object - azureDisk: - description: AzureDiskVolumeSourceApplyConfiguration represents - properties: - cachingMode: - type: string - diskName: - type: string - diskURI: - type: string - fsType: - type: string - kind: - type: string - readOnly: - type: boolean - type: object - azureFile: - description: AzureFileVolumeSourceApplyConfiguration represents - properties: - readOnly: - type: boolean - secretName: - type: string - shareName: - type: string - type: object - cephfs: - description: CephFSVolumeSourceApplyConfiguration represents an - properties: - monitors: - items: - type: string - type: array - path: - type: string - readOnly: - type: boolean - secretFile: - type: string - secretRef: - description: 'LocalObjectReferenceApplyConfiguration represents ' - properties: - name: - type: string - type: object - user: - type: string - type: object - cinder: - description: CinderVolumeSourceApplyConfiguration represents an - properties: - fsType: - type: string - readOnly: - type: boolean - secretRef: - description: 'LocalObjectReferenceApplyConfiguration represents ' - properties: - name: - type: string - type: object - volumeID: - type: string - type: object - configMap: - description: ConfigMapVolumeSourceApplyConfiguration represents - properties: - defaultMode: - format: int32 - type: integer - items: - items: - description: KeyToPathApplyConfiguration represents an declarat - properties: - key: - type: string - mode: - format: int32 - type: integer - path: - type: string - type: object - type: array - name: - type: string - optional: - type: boolean - type: object - csi: - description: CSIVolumeSourceApplyConfiguration represents an de - properties: - driver: - type: string - fsType: - type: string - nodePublishSecretRef: - description: 'LocalObjectReferenceApplyConfiguration represents ' - properties: - name: - type: string - type: object - readOnly: - type: boolean - volumeAttributes: - additionalProperties: - type: string - type: object - type: object - downwardAPI: - description: DownwardAPIVolumeSourceApplyConfiguration represen - properties: - defaultMode: - format: int32 - type: integer - items: - items: - description: DownwardAPIVolumeFileApplyConfiguration represents - properties: - fieldRef: - description: ObjectFieldSelectorApplyConfiguration represents a - properties: - apiVersion: - type: string - fieldPath: - type: string - type: object - mode: - format: int32 - type: integer - path: - type: string - resourceFieldRef: - description: ResourceFieldSelectorApplyConfiguration represents - properties: - containerName: - type: string - divisor: - 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 - resource: - type: string - type: object - type: object - type: array - type: object - emptyDir: - description: 'EmptyDirVolumeSourceApplyConfiguration represents ' - properties: - medium: - description: StorageMedium defines ways that storage can be all - type: string - sizeLimit: - 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 - ephemeral: - description: EphemeralVolumeSourceApplyConfiguration represents - properties: - volumeClaimTemplate: - description: PersistentVolumeClaimTemplateApplyConfiguration re - properties: - metadata: - description: ObjectMetaApplyConfiguration represents an declara - properties: - annotations: - additionalProperties: - type: string - type: object - creationTimestamp: - format: date-time - type: string - deletionGracePeriodSeconds: - format: int64 - type: integer - deletionTimestamp: - format: date-time - type: string - finalizers: - items: - type: string - type: array - generateName: - type: string - generation: - format: int64 - type: integer - labels: - additionalProperties: - type: string - type: object - name: - type: string - namespace: - type: string - ownerReferences: - items: - description: OwnerReferenceApplyConfiguration represents an dec - properties: - apiVersion: - type: string - blockOwnerDeletion: - type: boolean - controller: - type: boolean - kind: - type: string - name: - type: string - uid: - description: UID is a type that holds unique ID values, includi - type: string - type: object - type: array - resourceVersion: - type: string - uid: - description: UID is a type that holds unique ID values, includi - type: string - type: object - spec: - description: PersistentVolumeClaimSpecApplyConfiguration repres - properties: - accessModes: - items: - type: string - type: array - dataSource: - description: TypedLocalObjectReferenceApplyConfiguration repres - properties: - apiGroup: - type: string - kind: - type: string - name: - type: string - type: object - dataSourceRef: - description: 'TypedObjectReferenceApplyConfiguration represents ' - properties: - apiGroup: - type: string - kind: - type: string - name: - type: string - namespace: - type: string - type: object - resources: - description: 'ResourceRequirementsApplyConfiguration represents ' - properties: - claims: - items: - description: ResourceClaimApplyConfiguration represents an decl - properties: - name: - type: string - type: object - type: array - limits: - 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 - description: ResourceList is a set of (resource name, quantity) - type: object - requests: - 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 - description: ResourceList is a set of (resource name, quantity) - type: object - type: object - selector: - description: LabelSelectorApplyConfiguration represents an decl - properties: - matchExpressions: - items: - description: LabelSelectorRequirementApplyConfiguration represe - properties: - key: - type: string - operator: - description: 'A label selector operator is the set of operators ' - type: string - values: - items: - type: string - type: array - type: object - type: array - matchLabels: - additionalProperties: - type: string - type: object - type: object - storageClassName: - type: string - volumeMode: - description: PersistentVolumeMode describes how a volume is int - type: string - volumeName: - type: string - type: object - type: object - type: object - fc: - description: FCVolumeSourceApplyConfiguration represents an dec - properties: - fsType: - type: string - lun: - format: int32 - type: integer - readOnly: - type: boolean - targetWWNs: - items: - type: string - type: array - wwids: - items: - type: string - type: array - type: object - flexVolume: - description: FlexVolumeSourceApplyConfiguration represents an d - properties: - driver: - type: string - fsType: - type: string - options: - additionalProperties: - type: string - type: object - readOnly: - type: boolean - secretRef: - description: 'LocalObjectReferenceApplyConfiguration represents ' - properties: - name: - type: string - type: object - type: object - flocker: - description: FlockerVolumeSourceApplyConfiguration represents a - properties: - datasetName: - type: string - datasetUUID: - type: string - type: object - gcePersistentDisk: - description: GCEPersistentDiskVolumeSourceApplyConfiguration re - properties: - fsType: - type: string - partition: - format: int32 - type: integer - pdName: - type: string - readOnly: - type: boolean - type: object - gitRepo: - description: GitRepoVolumeSourceApplyConfiguration represents a - properties: - directory: - type: string - repository: - type: string - revision: - type: string - type: object - glusterfs: - description: GlusterfsVolumeSourceApplyConfiguration represents - properties: - endpoints: - type: string - path: - type: string - readOnly: - type: boolean - type: object - hostPath: - description: 'HostPathVolumeSourceApplyConfiguration represents ' - properties: - path: - type: string - type: - type: string - type: object - iscsi: - description: 'ISCSIVolumeSourceApplyConfiguration represents an ' - properties: - chapAuthDiscovery: - type: boolean - chapAuthSession: - type: boolean - fsType: - type: string - initiatorName: - type: string - iqn: - type: string - iscsiInterface: - type: string - lun: - format: int32 - type: integer - portals: - items: - type: string - type: array - readOnly: - type: boolean - secretRef: - description: 'LocalObjectReferenceApplyConfiguration represents ' - properties: - name: - type: string - type: object - targetPortal: - type: string - type: object - name: - type: string - nfs: - description: NFSVolumeSourceApplyConfiguration represents an de - properties: - path: - type: string - readOnly: - type: boolean - server: - type: string - type: object - persistentVolumeClaim: - description: PersistentVolumeClaimVolumeSourceApplyConfiguratio - properties: - claimName: - type: string - readOnly: - type: boolean - type: object - photonPersistentDisk: - description: PhotonPersistentDiskVolumeSourceApplyConfiguration - properties: - fsType: - type: string - pdID: - type: string - type: object - portworxVolume: - description: 'PortworxVolumeSourceApplyConfiguration represents ' - properties: - fsType: - type: string - readOnly: - type: boolean - volumeID: - type: string - type: object - projected: - description: ProjectedVolumeSourceApplyConfiguration represents - properties: - defaultMode: - format: int32 - type: integer - sources: - items: - description: VolumeProjectionApplyConfiguration represents an d - properties: - configMap: - description: ConfigMapProjectionApplyConfiguration represents a - properties: - items: - items: - description: KeyToPathApplyConfiguration represents an declarat - properties: - key: - type: string - mode: - format: int32 - type: integer - path: - type: string - type: object - type: array - name: - type: string - optional: - type: boolean - type: object - downwardAPI: - description: DownwardAPIProjectionApplyConfiguration represents - properties: - items: - items: - description: DownwardAPIVolumeFileApplyConfiguration represents - properties: - fieldRef: - description: ObjectFieldSelectorApplyConfiguration represents a - properties: - apiVersion: - type: string - fieldPath: - type: string - type: object - mode: - format: int32 - type: integer - path: - type: string - resourceFieldRef: - description: ResourceFieldSelectorApplyConfiguration represents - properties: - containerName: - type: string - divisor: - 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 - resource: - type: string - type: object - type: object - type: array - type: object - secret: - description: SecretProjectionApplyConfiguration represents an d - properties: - items: - items: - description: KeyToPathApplyConfiguration represents an declarat - properties: - key: - type: string - mode: - format: int32 - type: integer - path: - type: string - type: object - type: array - name: - type: string - optional: - type: boolean - type: object - serviceAccountToken: - description: ServiceAccountTokenProjectionApplyConfiguration re - properties: - audience: - type: string - expirationSeconds: - format: int64 - type: integer - path: - type: string - type: object - type: object - type: array - type: object - quobyte: - description: QuobyteVolumeSourceApplyConfiguration represents a - properties: - group: - type: string - readOnly: - type: boolean - registry: - type: string - tenant: - type: string - user: - type: string - volume: - type: string - type: object - rbd: - description: RBDVolumeSourceApplyConfiguration represents an de - properties: - fsType: - type: string - image: - type: string - keyring: - type: string - monitors: - items: - type: string - type: array - pool: - type: string - readOnly: - type: boolean - secretRef: - description: 'LocalObjectReferenceApplyConfiguration represents ' - properties: - name: - type: string - type: object - user: - type: string - type: object - scaleIO: - description: ScaleIOVolumeSourceApplyConfiguration represents a - properties: - fsType: - type: string - gateway: - type: string - protectionDomain: - type: string - readOnly: - type: boolean - secretRef: - description: 'LocalObjectReferenceApplyConfiguration represents ' - properties: - name: - type: string - type: object - sslEnabled: - type: boolean - storageMode: - type: string - storagePool: - type: string - system: - type: string - volumeName: - type: string - type: object - secret: - description: SecretVolumeSourceApplyConfiguration represents an - properties: - defaultMode: - format: int32 - type: integer - items: - items: - description: KeyToPathApplyConfiguration represents an declarat - properties: - key: - type: string - mode: - format: int32 - type: integer - path: - type: string - type: object - type: array - optional: - type: boolean - secretName: - type: string - type: object - storageos: - description: StorageOSVolumeSourceApplyConfiguration represents - properties: - fsType: - type: string - readOnly: - type: boolean - secretRef: - description: 'LocalObjectReferenceApplyConfiguration represents ' - properties: - name: - type: string - type: object - volumeName: - type: string - volumeNamespace: - type: string - type: object - vsphereVolume: - description: VsphereVirtualDiskVolumeSourceApplyConfiguration r - properties: - fsType: - type: string - storagePolicyID: - type: string - storagePolicyName: - type: string - volumePath: - type: string - type: object - type: object - type: array - workVolume: - description: WorkVolume is the volume source for the working di - properties: - awsElasticBlockStore: - description: AWSElasticBlockStoreVolumeSourceApplyConfiguration - properties: - fsType: - type: string - partition: - format: int32 - type: integer - readOnly: - type: boolean - volumeID: - type: string - type: object - azureDisk: - description: AzureDiskVolumeSourceApplyConfiguration represents - properties: - cachingMode: - type: string - diskName: - type: string - diskURI: - type: string - fsType: - type: string - kind: - type: string - readOnly: - type: boolean - type: object - azureFile: - description: AzureFileVolumeSourceApplyConfiguration represents - properties: - readOnly: - type: boolean - secretName: - type: string - shareName: - type: string - type: object - cephfs: - description: CephFSVolumeSourceApplyConfiguration represents an - properties: - monitors: - items: - type: string - type: array - path: - type: string - readOnly: - type: boolean - secretFile: - type: string - secretRef: - description: 'LocalObjectReferenceApplyConfiguration represents ' - properties: - name: - type: string - type: object - user: - type: string - type: object - cinder: - description: CinderVolumeSourceApplyConfiguration represents an - properties: - fsType: - type: string - readOnly: - type: boolean - secretRef: - description: 'LocalObjectReferenceApplyConfiguration represents ' - properties: - name: - type: string - type: object - volumeID: - type: string - type: object - configMap: - description: ConfigMapVolumeSourceApplyConfiguration represents - properties: - defaultMode: - format: int32 - type: integer - items: - items: - description: KeyToPathApplyConfiguration represents an declarat - properties: - key: - type: string - mode: - format: int32 - type: integer - path: - type: string - type: object - type: array - name: - type: string - optional: - type: boolean - type: object - csi: - description: CSIVolumeSourceApplyConfiguration represents an de - properties: - driver: - type: string - fsType: - type: string - nodePublishSecretRef: - description: 'LocalObjectReferenceApplyConfiguration represents ' - properties: - name: - type: string - type: object - readOnly: - type: boolean - volumeAttributes: - additionalProperties: - type: string - type: object - type: object - downwardAPI: - description: DownwardAPIVolumeSourceApplyConfiguration represen - properties: - defaultMode: - format: int32 - type: integer - items: - items: - description: DownwardAPIVolumeFileApplyConfiguration represents - properties: - fieldRef: - description: ObjectFieldSelectorApplyConfiguration represents a - properties: - apiVersion: - type: string - fieldPath: - type: string - type: object - mode: - format: int32 - type: integer - path: - type: string - resourceFieldRef: - description: ResourceFieldSelectorApplyConfiguration represents - properties: - containerName: - type: string - divisor: - 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 - resource: - type: string - type: object - type: object - type: array - type: object - emptyDir: - description: 'EmptyDirVolumeSourceApplyConfiguration represents ' - properties: - medium: - description: StorageMedium defines ways that storage can be all - type: string - sizeLimit: - 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 - ephemeral: - description: EphemeralVolumeSourceApplyConfiguration represents - properties: - volumeClaimTemplate: - description: PersistentVolumeClaimTemplateApplyConfiguration re - properties: - metadata: - description: ObjectMetaApplyConfiguration represents an declara - properties: - annotations: - additionalProperties: - type: string - type: object - creationTimestamp: - format: date-time - type: string - deletionGracePeriodSeconds: - format: int64 - type: integer - deletionTimestamp: - format: date-time - type: string - finalizers: - items: - type: string - type: array - generateName: - type: string - generation: - format: int64 - type: integer - labels: - additionalProperties: - type: string - type: object - name: - type: string - namespace: - type: string - ownerReferences: - items: - description: OwnerReferenceApplyConfiguration represents an dec - properties: - apiVersion: - type: string - blockOwnerDeletion: - type: boolean - controller: - type: boolean - kind: - type: string - name: - type: string - uid: - description: UID is a type that holds unique ID values, includi - type: string - type: object - type: array - resourceVersion: - type: string - uid: - description: UID is a type that holds unique ID values, includi - type: string - type: object - spec: - description: PersistentVolumeClaimSpecApplyConfiguration repres - properties: - accessModes: - items: - type: string - type: array - dataSource: - description: TypedLocalObjectReferenceApplyConfiguration repres - properties: - apiGroup: - type: string - kind: - type: string - name: - type: string - type: object - dataSourceRef: - description: 'TypedObjectReferenceApplyConfiguration represents ' - properties: - apiGroup: - type: string - kind: - type: string - name: - type: string - namespace: - type: string - type: object - resources: - description: 'ResourceRequirementsApplyConfiguration represents ' - properties: - claims: - items: - description: ResourceClaimApplyConfiguration represents an decl - properties: - name: - type: string - type: object - type: array - limits: - 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 - description: ResourceList is a set of (resource name, quantity) - type: object - requests: - 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 - description: ResourceList is a set of (resource name, quantity) - type: object - type: object - selector: - description: LabelSelectorApplyConfiguration represents an decl - properties: - matchExpressions: - items: - description: LabelSelectorRequirementApplyConfiguration represe - properties: - key: - type: string - operator: - description: 'A label selector operator is the set of operators ' - type: string - values: - items: - type: string - type: array - type: object - type: array - matchLabels: - additionalProperties: - type: string - type: object - type: object - storageClassName: - type: string - volumeMode: - description: PersistentVolumeMode describes how a volume is int - type: string - volumeName: - type: string - type: object - type: object - type: object - fc: - description: FCVolumeSourceApplyConfiguration represents an dec - properties: - fsType: - type: string - lun: - format: int32 - type: integer - readOnly: - type: boolean - targetWWNs: - items: - type: string - type: array - wwids: - items: - type: string - type: array - type: object - flexVolume: - description: FlexVolumeSourceApplyConfiguration represents an d - properties: - driver: - type: string - fsType: - type: string - options: - additionalProperties: - type: string - type: object - readOnly: - type: boolean - secretRef: - description: 'LocalObjectReferenceApplyConfiguration represents ' - properties: - name: - type: string - type: object - type: object - flocker: - description: FlockerVolumeSourceApplyConfiguration represents a - properties: - datasetName: - type: string - datasetUUID: - type: string - type: object - gcePersistentDisk: - description: GCEPersistentDiskVolumeSourceApplyConfiguration re - properties: - fsType: - type: string - partition: - format: int32 - type: integer - pdName: - type: string - readOnly: - type: boolean - type: object - gitRepo: - description: GitRepoVolumeSourceApplyConfiguration represents a - properties: - directory: - type: string - repository: - type: string - revision: - type: string - type: object - glusterfs: - description: GlusterfsVolumeSourceApplyConfiguration represents - properties: - endpoints: - type: string - path: - type: string - readOnly: - type: boolean - type: object - hostPath: - description: 'HostPathVolumeSourceApplyConfiguration represents ' - properties: - path: - type: string - type: - type: string - type: object - iscsi: - description: 'ISCSIVolumeSourceApplyConfiguration represents an ' - properties: - chapAuthDiscovery: - type: boolean - chapAuthSession: - type: boolean - fsType: - type: string - initiatorName: - type: string - iqn: - type: string - iscsiInterface: - type: string - lun: - format: int32 - type: integer - portals: - items: - type: string - type: array - readOnly: - type: boolean - secretRef: - description: 'LocalObjectReferenceApplyConfiguration represents ' - properties: - name: - type: string - type: object - targetPortal: - type: string - type: object - nfs: - description: NFSVolumeSourceApplyConfiguration represents an de - properties: - path: - type: string - readOnly: - type: boolean - server: - type: string - type: object - persistentVolumeClaim: - description: PersistentVolumeClaimVolumeSourceApplyConfiguratio - properties: - claimName: - type: string - readOnly: - type: boolean - type: object - photonPersistentDisk: - description: PhotonPersistentDiskVolumeSourceApplyConfiguration - properties: - fsType: - type: string - pdID: - type: string - type: object - portworxVolume: - description: 'PortworxVolumeSourceApplyConfiguration represents ' - properties: - fsType: - type: string - readOnly: - type: boolean - volumeID: - type: string - type: object - projected: - description: ProjectedVolumeSourceApplyConfiguration represents - properties: - defaultMode: - format: int32 - type: integer - sources: - items: - description: VolumeProjectionApplyConfiguration represents an d - properties: - configMap: - description: ConfigMapProjectionApplyConfiguration represents a - properties: - items: - items: - description: KeyToPathApplyConfiguration represents an declarat - properties: - key: - type: string - mode: - format: int32 - type: integer - path: - type: string - type: object - type: array - name: - type: string - optional: - type: boolean - type: object - downwardAPI: - description: DownwardAPIProjectionApplyConfiguration represents - properties: - items: - items: - description: DownwardAPIVolumeFileApplyConfiguration represents - properties: - fieldRef: - description: ObjectFieldSelectorApplyConfiguration represents a - properties: - apiVersion: - type: string - fieldPath: - type: string - type: object - mode: - format: int32 - type: integer - path: - type: string - resourceFieldRef: - description: ResourceFieldSelectorApplyConfiguration represents - properties: - containerName: - type: string - divisor: - 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 - resource: - type: string - type: object - type: object - type: array - type: object - secret: - description: SecretProjectionApplyConfiguration represents an d - properties: - items: - items: - description: KeyToPathApplyConfiguration represents an declarat - properties: - key: - type: string - mode: - format: int32 - type: integer - path: - type: string - type: object - type: array - name: - type: string - optional: - type: boolean - type: object - serviceAccountToken: - description: ServiceAccountTokenProjectionApplyConfiguration re - properties: - audience: - type: string - expirationSeconds: - format: int64 - type: integer - path: - type: string - type: object - type: object - type: array - type: object - quobyte: - description: QuobyteVolumeSourceApplyConfiguration represents a - properties: - group: - type: string - readOnly: - type: boolean - registry: - type: string - tenant: - type: string - user: - type: string - volume: - type: string - type: object - rbd: - description: RBDVolumeSourceApplyConfiguration represents an de - properties: - fsType: - type: string - image: - type: string - keyring: - type: string - monitors: - items: - type: string - type: array - pool: - type: string - readOnly: - type: boolean - secretRef: - description: 'LocalObjectReferenceApplyConfiguration represents ' - properties: - name: - type: string - type: object - user: - type: string - type: object - scaleIO: - description: ScaleIOVolumeSourceApplyConfiguration represents a - properties: - fsType: - type: string - gateway: - type: string - protectionDomain: - type: string - readOnly: - type: boolean - secretRef: - description: 'LocalObjectReferenceApplyConfiguration represents ' - properties: - name: - type: string - type: object - sslEnabled: - type: boolean - storageMode: - type: string - storagePool: - type: string - system: - type: string - volumeName: - type: string - type: object - secret: - description: SecretVolumeSourceApplyConfiguration represents an - properties: - defaultMode: - format: int32 - type: integer - items: - items: - description: KeyToPathApplyConfiguration represents an declarat - properties: - key: - type: string - mode: - format: int32 - type: integer - path: - type: string - type: object - type: array - optional: - type: boolean - secretName: - type: string - type: object - storageos: - description: StorageOSVolumeSourceApplyConfiguration represents - properties: - fsType: - type: string - readOnly: - type: boolean - secretRef: - description: 'LocalObjectReferenceApplyConfiguration represents ' - properties: - name: - type: string - type: object - volumeName: - type: string - volumeNamespace: - type: string - type: object - vsphereVolume: - description: VsphereVirtualDiskVolumeSourceApplyConfiguration r - properties: - fsType: - type: string - storagePolicyID: - type: string - storagePolicyName: - type: string - volumePath: - type: string - type: object - type: object - required: - - bucketConfig - - serviceAccountName - - workVolume - type: object - schedule: - description: The schedule in Cron format for periodic backups. - type: string - startingDeadlineSeconds: - description: 'Optional deadline in seconds for starting the job ' - format: int64 - nullable: true - type: integer - successfulJobsHistoryLimit: - description: The number of successful finished jobs to retain. - format: int32 - minimum: 0 - nullable: true - type: integer - required: - - jobConfig - - schedule - type: object - required: - - spec - type: object - served: true - storage: true ---- -apiVersion: apiextensions.k8s.io/v1 -kind: CustomResourceDefinition -metadata: - annotations: - cert-manager.io/inject-ca-from: '{{ .Release.Namespace }}/moco-serving-cert' - controller-gen.kubebuilder.io/version: v0.12.0 - labels: - app.kubernetes.io/managed-by: '{{ .Release.Service }}' - app.kubernetes.io/name: '{{ include "moco.name" . }}' - app.kubernetes.io/version: '{{ .Chart.AppVersion }}' - helm.sh/chart: '{{ include "moco.chart" . }}' - name: mysqlclusters.moco.cybozu.com -spec: - conversion: - strategy: Webhook - webhook: - clientConfig: - service: - name: moco-webhook-service - namespace: '{{ .Release.Namespace }}' - path: /convert - conversionReviewVersions: - - v1 - group: moco.cybozu.com - names: - kind: MySQLCluster - listKind: MySQLClusterList - plural: mysqlclusters - singular: mysqlcluster - scope: Namespaced - versions: - - additionalPrinterColumns: - - jsonPath: .status.conditions[?(@.type=='Available')].status - name: Available - type: string - - jsonPath: .status.conditions[?(@.type=='Healthy')].status - name: Healthy - type: string - - jsonPath: .status.currentPrimaryIndex - name: Primary - type: integer - - jsonPath: .status.syncedReplicas - name: Synced replicas - type: integer - - jsonPath: .status.errantReplicas - name: Errant replicas - type: integer - - jsonPath: .status.backup.time - name: Last backup - type: string - deprecated: true - name: v1beta1 - schema: - openAPIV3Schema: - description: MySQLCluster is the Schema for the mysqlclusters A - properties: - apiVersion: - description: APIVersion defines the versioned schema of this re - type: string - kind: - description: Kind is a string value representing the REST resou - type: string - metadata: - type: object - spec: - description: MySQLClusterSpec defines the desired state of MySQ - properties: - backupPolicyName: - description: The name of BackupPolicy custom resource in the sa - nullable: true - type: string - collectors: - description: 'Collectors is the list of collector flag names of ' - items: - type: string - type: array - disableSlowQueryLogContainer: - description: DisableSlowQueryLogContainer controls whether to a - type: boolean - logRotationSchedule: - description: LogRotationSchedule specifies the schedule to rota - type: string - maxDelaySeconds: - default: 60 - description: 'MaxDelaySeconds configures the readiness probe of ' - minimum: 0 - type: integer - mysqlConfigMapName: - description: 'MySQLConfigMapName is a `ConfigMap` name of MySQL ' - nullable: true - type: string - podTemplate: - description: PodTemplate is a `Pod` template for MySQL server c - properties: - metadata: - description: Standard object's metadata. - properties: - annotations: - additionalProperties: - type: string - description: Annotations is a map of string keys and values. - type: object - labels: - additionalProperties: - type: string - description: Labels is a map of string keys and values. - type: object - name: - description: Name is the name of the object. - type: string - type: object - spec: - description: Specification of the desired behavior of the pod. - properties: - activeDeadlineSeconds: - format: int64 - type: integer - affinity: - description: AffinityApplyConfiguration represents an declarati - properties: - nodeAffinity: - description: NodeAffinityApplyConfiguration represents an decla - properties: - preferredDuringSchedulingIgnoredDuringExecution: - items: - description: PreferredSchedulingTermApplyConfiguration represen - properties: - preference: - description: NodeSelectorTermApplyConfiguration represents an d - properties: - matchExpressions: - items: - description: NodeSelectorRequirementApplyConfiguration represen - properties: - key: - type: string - operator: - description: A node selector operator is the set of operators t - type: string - values: - items: - type: string - type: array - type: object - type: array - matchFields: - items: - description: NodeSelectorRequirementApplyConfiguration represen - properties: - key: - type: string - operator: - description: A node selector operator is the set of operators t - type: string - values: - items: - type: string - type: array - type: object - type: array - type: object - weight: - format: int32 - type: integer - type: object - type: array - requiredDuringSchedulingIgnoredDuringExecution: - description: NodeSelectorApplyConfiguration represents an decla - properties: - nodeSelectorTerms: - items: - description: NodeSelectorTermApplyConfiguration represents an d - properties: - matchExpressions: - items: - description: NodeSelectorRequirementApplyConfiguration represen - properties: - key: - type: string - operator: - description: A node selector operator is the set of operators t - type: string - values: - items: - type: string - type: array - type: object - type: array - matchFields: - items: - description: NodeSelectorRequirementApplyConfiguration represen - properties: - key: - type: string - operator: - description: A node selector operator is the set of operators t - type: string - values: - items: - type: string - type: array - type: object - type: array - type: object - type: array - type: object - type: object - podAffinity: - description: PodAffinityApplyConfiguration represents an declar - properties: - preferredDuringSchedulingIgnoredDuringExecution: - items: - description: WeightedPodAffinityTermApplyConfiguration represen - properties: - podAffinityTerm: - description: PodAffinityTermApplyConfiguration represents an de - properties: - labelSelector: - description: LabelSelectorApplyConfiguration represents an decl - properties: - matchExpressions: - items: - description: LabelSelectorRequirementApplyConfiguration represe - properties: - key: - type: string - operator: - description: 'A label selector operator is the set of operators ' - type: string - values: - items: - type: string - type: array - type: object - type: array - matchLabels: - additionalProperties: - type: string - type: object - type: object - namespaceSelector: - description: LabelSelectorApplyConfiguration represents an decl - properties: - matchExpressions: - items: - description: LabelSelectorRequirementApplyConfiguration represe - properties: - key: - type: string - operator: - description: 'A label selector operator is the set of operators ' - type: string - values: - items: - type: string - type: array - type: object - type: array - matchLabels: - additionalProperties: - type: string - type: object - type: object - namespaces: - items: - type: string - type: array - topologyKey: - type: string - type: object - weight: - format: int32 - type: integer - type: object - type: array - requiredDuringSchedulingIgnoredDuringExecution: - items: - description: PodAffinityTermApplyConfiguration represents an de - properties: - labelSelector: - description: LabelSelectorApplyConfiguration represents an decl - properties: - matchExpressions: - items: - description: LabelSelectorRequirementApplyConfiguration represe - properties: - key: - type: string - operator: - description: 'A label selector operator is the set of operators ' - type: string - values: - items: - type: string - type: array - type: object - type: array - matchLabels: - additionalProperties: - type: string - type: object - type: object - namespaceSelector: - description: LabelSelectorApplyConfiguration represents an decl - properties: - matchExpressions: - items: - description: LabelSelectorRequirementApplyConfiguration represe - properties: - key: - type: string - operator: - description: 'A label selector operator is the set of operators ' - type: string - values: - items: - type: string - type: array - type: object - type: array - matchLabels: - additionalProperties: - type: string - type: object - type: object - namespaces: - items: - type: string - type: array - topologyKey: - type: string - type: object - type: array - type: object - podAntiAffinity: - description: PodAntiAffinityApplyConfiguration represents an de - properties: - preferredDuringSchedulingIgnoredDuringExecution: - items: - description: WeightedPodAffinityTermApplyConfiguration represen - properties: - podAffinityTerm: - description: PodAffinityTermApplyConfiguration represents an de - properties: - labelSelector: - description: LabelSelectorApplyConfiguration represents an decl - properties: - matchExpressions: - items: - description: LabelSelectorRequirementApplyConfiguration represe - properties: - key: - type: string - operator: - description: 'A label selector operator is the set of operators ' - type: string - values: - items: - type: string - type: array - type: object - type: array - matchLabels: - additionalProperties: - type: string - type: object - type: object - namespaceSelector: - description: LabelSelectorApplyConfiguration represents an decl - properties: - matchExpressions: - items: - description: LabelSelectorRequirementApplyConfiguration represe - properties: - key: - type: string - operator: - description: 'A label selector operator is the set of operators ' - type: string - values: - items: - type: string - type: array - type: object - type: array - matchLabels: - additionalProperties: - type: string - type: object - type: object - namespaces: - items: - type: string - type: array - topologyKey: - type: string - type: object - weight: - format: int32 - type: integer - type: object - type: array - requiredDuringSchedulingIgnoredDuringExecution: - items: - description: PodAffinityTermApplyConfiguration represents an de - properties: - labelSelector: - description: LabelSelectorApplyConfiguration represents an decl - properties: - matchExpressions: - items: - description: LabelSelectorRequirementApplyConfiguration represe - properties: - key: - type: string - operator: - description: 'A label selector operator is the set of operators ' - type: string - values: - items: - type: string - type: array - type: object - type: array - matchLabels: - additionalProperties: - type: string - type: object - type: object - namespaceSelector: - description: LabelSelectorApplyConfiguration represents an decl - properties: - matchExpressions: - items: - description: LabelSelectorRequirementApplyConfiguration represe - properties: - key: - type: string - operator: - description: 'A label selector operator is the set of operators ' - type: string - values: - items: - type: string - type: array - type: object - type: array - matchLabels: - additionalProperties: - type: string - type: object - type: object - namespaces: - items: - type: string - type: array - topologyKey: - type: string - type: object - type: array - type: object - type: object - automountServiceAccountToken: - type: boolean - containers: - items: - description: ContainerApplyConfiguration represents an declarat - properties: - args: - items: - type: string - type: array - command: - items: - type: string - type: array - env: - items: - description: EnvVarApplyConfiguration represents an declarative - properties: - name: - type: string - value: - type: string - valueFrom: - description: EnvVarSourceApplyConfiguration represents an decla - properties: - configMapKeyRef: - description: 'ConfigMapKeySelectorApplyConfiguration represents ' - properties: - key: - type: string - name: - type: string - optional: - type: boolean - type: object - fieldRef: - description: ObjectFieldSelectorApplyConfiguration represents a - properties: - apiVersion: - type: string - fieldPath: - type: string - type: object - resourceFieldRef: - description: ResourceFieldSelectorApplyConfiguration represents - properties: - containerName: - type: string - divisor: - 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 - resource: - type: string - type: object - secretKeyRef: - description: 'SecretKeySelectorApplyConfiguration represents an ' - properties: - key: - type: string - name: - type: string - optional: - type: boolean - type: object - type: object - type: object - type: array - envFrom: - items: - description: EnvFromSourceApplyConfiguration represents an decl - properties: - configMapRef: - description: ConfigMapEnvSourceApplyConfiguration represents an - properties: - name: - type: string - optional: - type: boolean - type: object - prefix: - type: string - secretRef: - description: SecretEnvSourceApplyConfiguration represents an de - properties: - name: - type: string - optional: - type: boolean - type: object - type: object - type: array - image: - type: string - imagePullPolicy: - description: 'PullPolicy describes a policy for if/when to pull ' - type: string - lifecycle: - description: LifecycleApplyConfiguration represents an declarat - properties: - postStart: - description: LifecycleHandlerApplyConfiguration represents an d - properties: - exec: - description: ExecActionApplyConfiguration represents an declara - properties: - command: - items: - type: string - type: array - type: object - httpGet: - description: HTTPGetActionApplyConfiguration represents an decl - properties: - host: - type: string - httpHeaders: - items: - description: HTTPHeaderApplyConfiguration represents an declara - properties: - name: - type: string - value: - type: string - type: object - type: array - path: - type: string - port: - anyOf: - - type: integer - - type: string - x-kubernetes-int-or-string: true - scheme: - description: URIScheme identifies the scheme used for connectio - type: string - type: object - tcpSocket: - description: TCPSocketActionApplyConfiguration represents an de - properties: - host: - type: string - port: - anyOf: - - type: integer - - type: string - x-kubernetes-int-or-string: true - type: object - type: object - preStop: - description: LifecycleHandlerApplyConfiguration represents an d - properties: - exec: - description: ExecActionApplyConfiguration represents an declara - properties: - command: - items: - type: string - type: array - type: object - httpGet: - description: HTTPGetActionApplyConfiguration represents an decl - properties: - host: - type: string - httpHeaders: - items: - description: HTTPHeaderApplyConfiguration represents an declara - properties: - name: - type: string - value: - type: string - type: object - type: array - path: - type: string - port: - anyOf: - - type: integer - - type: string - x-kubernetes-int-or-string: true - scheme: - description: URIScheme identifies the scheme used for connectio - type: string - type: object - tcpSocket: - description: TCPSocketActionApplyConfiguration represents an de - properties: - host: - type: string - port: - anyOf: - - type: integer - - type: string - x-kubernetes-int-or-string: true - type: object - type: object - type: object - livenessProbe: - description: 'ProbeApplyConfiguration represents an declarative ' - properties: - exec: - description: ExecActionApplyConfiguration represents an declara - properties: - command: - items: - type: string - type: array - type: object - failureThreshold: - format: int32 - type: integer - grpc: - description: GRPCActionApplyConfiguration represents an declara - properties: - port: - format: int32 - type: integer - service: - type: string - type: object - httpGet: - description: HTTPGetActionApplyConfiguration represents an decl - properties: - host: - type: string - httpHeaders: - items: - description: HTTPHeaderApplyConfiguration represents an declara - properties: - name: - type: string - value: - type: string - type: object - type: array - path: - type: string - port: - anyOf: - - type: integer - - type: string - x-kubernetes-int-or-string: true - scheme: - description: URIScheme identifies the scheme used for connectio - type: string - type: object - initialDelaySeconds: - format: int32 - type: integer - periodSeconds: - format: int32 - type: integer - successThreshold: - format: int32 - type: integer - tcpSocket: - description: TCPSocketActionApplyConfiguration represents an de - properties: - host: - type: string - port: - anyOf: - - type: integer - - type: string - x-kubernetes-int-or-string: true - type: object - terminationGracePeriodSeconds: - format: int64 - type: integer - timeoutSeconds: - format: int32 - type: integer - type: object - name: - type: string - ports: - items: - description: ContainerPortApplyConfiguration represents an decl - properties: - containerPort: - format: int32 - type: integer - hostIP: - type: string - hostPort: - format: int32 - type: integer - name: - type: string - protocol: - default: TCP - type: string - type: object - type: array - readinessProbe: - description: 'ProbeApplyConfiguration represents an declarative ' - properties: - exec: - description: ExecActionApplyConfiguration represents an declara - properties: - command: - items: - type: string - type: array - type: object - failureThreshold: - format: int32 - type: integer - grpc: - description: GRPCActionApplyConfiguration represents an declara - properties: - port: - format: int32 - type: integer - service: - type: string - type: object - httpGet: - description: HTTPGetActionApplyConfiguration represents an decl - properties: - host: - type: string - httpHeaders: - items: - description: HTTPHeaderApplyConfiguration represents an declara - properties: - name: - type: string - value: - type: string - type: object - type: array - path: - type: string - port: - anyOf: - - type: integer - - type: string - x-kubernetes-int-or-string: true - scheme: - description: URIScheme identifies the scheme used for connectio - type: string - type: object - initialDelaySeconds: - format: int32 - type: integer - periodSeconds: - format: int32 - type: integer - successThreshold: - format: int32 - type: integer - tcpSocket: - description: TCPSocketActionApplyConfiguration represents an de - properties: - host: - type: string - port: - anyOf: - - type: integer - - type: string - x-kubernetes-int-or-string: true - type: object - terminationGracePeriodSeconds: - format: int64 - type: integer - timeoutSeconds: - format: int32 - type: integer - type: object - resizePolicy: - items: - description: ContainerResizePolicyApplyConfiguration represents - properties: - resourceName: - description: ResourceName is the name identifying various resou - type: string - restartPolicy: - description: ResourceResizeRestartPolicy specifies how to handl - type: string - type: object - type: array - resources: - description: 'ResourceRequirementsApplyConfiguration represents ' - properties: - claims: - items: - description: ResourceClaimApplyConfiguration represents an decl - properties: - name: - type: string - type: object - type: array - limits: - 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 - description: ResourceList is a set of (resource name, quantity) - type: object - requests: - 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 - description: ResourceList is a set of (resource name, quantity) - type: object - type: object - securityContext: - description: SecurityContextApplyConfiguration represents an de - properties: - allowPrivilegeEscalation: - type: boolean - capabilities: - description: CapabilitiesApplyConfiguration represents an decla - properties: - add: - items: - description: Capability represent POSIX capabilities type - type: string - type: array - drop: - items: - description: Capability represent POSIX capabilities type - type: string - type: array - type: object - privileged: - type: boolean - procMount: - type: string - readOnlyRootFilesystem: - type: boolean - runAsGroup: - format: int64 - type: integer - runAsNonRoot: - type: boolean - runAsUser: - format: int64 - type: integer - seLinuxOptions: - description: SELinuxOptionsApplyConfiguration represents an dec - properties: - level: - type: string - role: - type: string - type: - type: string - user: - type: string - type: object - seccompProfile: - description: SeccompProfileApplyConfiguration represents an dec - properties: - localhostProfile: - type: string - type: - description: SeccompProfileType defines the supported seccomp p - type: string - type: object - windowsOptions: - description: WindowsSecurityContextOptionsApplyConfiguration re - properties: - gmsaCredentialSpec: - type: string - gmsaCredentialSpecName: - type: string - hostProcess: - type: boolean - runAsUserName: - type: string - type: object - type: object - startupProbe: - description: 'ProbeApplyConfiguration represents an declarative ' - properties: - exec: - description: ExecActionApplyConfiguration represents an declara - properties: - command: - items: - type: string - type: array - type: object - failureThreshold: - format: int32 - type: integer - grpc: - description: GRPCActionApplyConfiguration represents an declara - properties: - port: - format: int32 - type: integer - service: - type: string - type: object - httpGet: - description: HTTPGetActionApplyConfiguration represents an decl - properties: - host: - type: string - httpHeaders: - items: - description: HTTPHeaderApplyConfiguration represents an declara - properties: - name: - type: string - value: - type: string - type: object - type: array - path: - type: string - port: - anyOf: - - type: integer - - type: string - x-kubernetes-int-or-string: true - scheme: - description: URIScheme identifies the scheme used for connectio - type: string - type: object - initialDelaySeconds: - format: int32 - type: integer - periodSeconds: - format: int32 - type: integer - successThreshold: - format: int32 - type: integer - tcpSocket: - description: TCPSocketActionApplyConfiguration represents an de - properties: - host: - type: string - port: - anyOf: - - type: integer - - type: string - x-kubernetes-int-or-string: true - type: object - terminationGracePeriodSeconds: - format: int64 - type: integer - timeoutSeconds: - format: int32 - type: integer - type: object - stdin: - type: boolean - stdinOnce: - type: boolean - terminationMessagePath: - type: string - terminationMessagePolicy: - description: TerminationMessagePolicy describes how termination - type: string - tty: - type: boolean - volumeDevices: - items: - description: VolumeDeviceApplyConfiguration represents an decla - properties: - devicePath: - type: string - name: - type: string - type: object - type: array - volumeMounts: - items: - description: VolumeMountApplyConfiguration represents an declar - properties: - mountPath: - type: string - mountPropagation: - description: MountPropagationMode describes mount propagation. - type: string - name: - type: string - readOnly: - type: boolean - subPath: - type: string - subPathExpr: - type: string - type: object - type: array - workingDir: - type: string - type: object - type: array - dnsConfig: - description: PodDNSConfigApplyConfiguration represents an decla - properties: - nameservers: - items: - type: string - type: array - options: - items: - description: PodDNSConfigOptionApplyConfiguration represents an - properties: - name: - type: string - value: - type: string - type: object - type: array - searches: - items: - type: string - type: array - type: object - dnsPolicy: - description: DNSPolicy defines how a pod's DNS will be configur - type: string - enableServiceLinks: - type: boolean - ephemeralContainers: - items: - description: EphemeralContainerApplyConfiguration represents an - properties: - args: - items: - type: string - type: array - command: - items: - type: string - type: array - env: - items: - description: EnvVarApplyConfiguration represents an declarative - properties: - name: - type: string - value: - type: string - valueFrom: - description: EnvVarSourceApplyConfiguration represents an decla - properties: - configMapKeyRef: - description: 'ConfigMapKeySelectorApplyConfiguration represents ' - properties: - key: - type: string - name: - type: string - optional: - type: boolean - type: object - fieldRef: - description: ObjectFieldSelectorApplyConfiguration represents a - properties: - apiVersion: - type: string - fieldPath: - type: string - type: object - resourceFieldRef: - description: ResourceFieldSelectorApplyConfiguration represents - properties: - containerName: - type: string - divisor: - 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 - resource: - type: string - type: object - secretKeyRef: - description: 'SecretKeySelectorApplyConfiguration represents an ' - properties: - key: - type: string - name: - type: string - optional: - type: boolean - type: object - type: object - type: object - type: array - envFrom: - items: - description: EnvFromSourceApplyConfiguration represents an decl - properties: - configMapRef: - description: ConfigMapEnvSourceApplyConfiguration represents an - properties: - name: - type: string - optional: - type: boolean - type: object - prefix: - type: string - secretRef: - description: SecretEnvSourceApplyConfiguration represents an de - properties: - name: - type: string - optional: - type: boolean - type: object - type: object - type: array - image: - type: string - imagePullPolicy: - description: 'PullPolicy describes a policy for if/when to pull ' - type: string - lifecycle: - description: LifecycleApplyConfiguration represents an declarat - properties: - postStart: - description: LifecycleHandlerApplyConfiguration represents an d - properties: - exec: - description: ExecActionApplyConfiguration represents an declara - properties: - command: - items: - type: string - type: array - type: object - httpGet: - description: HTTPGetActionApplyConfiguration represents an decl - properties: - host: - type: string - httpHeaders: - items: - description: HTTPHeaderApplyConfiguration represents an declara - properties: - name: - type: string - value: - type: string - type: object - type: array - path: - type: string - port: - anyOf: - - type: integer - - type: string - x-kubernetes-int-or-string: true - scheme: - description: URIScheme identifies the scheme used for connectio - type: string - type: object - tcpSocket: - description: TCPSocketActionApplyConfiguration represents an de - properties: - host: - type: string - port: - anyOf: - - type: integer - - type: string - x-kubernetes-int-or-string: true - type: object - type: object - preStop: - description: LifecycleHandlerApplyConfiguration represents an d - properties: - exec: - description: ExecActionApplyConfiguration represents an declara - properties: - command: - items: - type: string - type: array - type: object - httpGet: - description: HTTPGetActionApplyConfiguration represents an decl - properties: - host: - type: string - httpHeaders: - items: - description: HTTPHeaderApplyConfiguration represents an declara - properties: - name: - type: string - value: - type: string - type: object - type: array - path: - type: string - port: - anyOf: - - type: integer - - type: string - x-kubernetes-int-or-string: true - scheme: - description: URIScheme identifies the scheme used for connectio - type: string - type: object - tcpSocket: - description: TCPSocketActionApplyConfiguration represents an de - properties: - host: - type: string - port: - anyOf: - - type: integer - - type: string - x-kubernetes-int-or-string: true - type: object - type: object - type: object - livenessProbe: - description: 'ProbeApplyConfiguration represents an declarative ' - properties: - exec: - description: ExecActionApplyConfiguration represents an declara - properties: - command: - items: - type: string - type: array - type: object - failureThreshold: - format: int32 - type: integer - grpc: - description: GRPCActionApplyConfiguration represents an declara - properties: - port: - format: int32 - type: integer - service: - type: string - type: object - httpGet: - description: HTTPGetActionApplyConfiguration represents an decl - properties: - host: - type: string - httpHeaders: - items: - description: HTTPHeaderApplyConfiguration represents an declara - properties: - name: - type: string - value: - type: string - type: object - type: array - path: - type: string - port: - anyOf: - - type: integer - - type: string - x-kubernetes-int-or-string: true - scheme: - description: URIScheme identifies the scheme used for connectio - type: string - type: object - initialDelaySeconds: - format: int32 - type: integer - periodSeconds: - format: int32 - type: integer - successThreshold: - format: int32 - type: integer - tcpSocket: - description: TCPSocketActionApplyConfiguration represents an de - properties: - host: - type: string - port: - anyOf: - - type: integer - - type: string - x-kubernetes-int-or-string: true - type: object - terminationGracePeriodSeconds: - format: int64 - type: integer - timeoutSeconds: - format: int32 - type: integer - type: object - name: - type: string - ports: - items: - description: ContainerPortApplyConfiguration represents an decl - properties: - containerPort: - format: int32 - type: integer - hostIP: - type: string - hostPort: - format: int32 - type: integer - name: - type: string - protocol: - default: TCP - type: string - type: object - type: array - readinessProbe: - description: 'ProbeApplyConfiguration represents an declarative ' - properties: - exec: - description: ExecActionApplyConfiguration represents an declara - properties: - command: - items: - type: string - type: array - type: object - failureThreshold: - format: int32 - type: integer - grpc: - description: GRPCActionApplyConfiguration represents an declara - properties: - port: - format: int32 - type: integer - service: - type: string - type: object - httpGet: - description: HTTPGetActionApplyConfiguration represents an decl - properties: - host: - type: string - httpHeaders: - items: - description: HTTPHeaderApplyConfiguration represents an declara - properties: - name: - type: string - value: - type: string - type: object - type: array - path: - type: string - port: - anyOf: - - type: integer - - type: string - x-kubernetes-int-or-string: true - scheme: - description: URIScheme identifies the scheme used for connectio - type: string - type: object - initialDelaySeconds: - format: int32 - type: integer - periodSeconds: - format: int32 - type: integer - successThreshold: - format: int32 - type: integer - tcpSocket: - description: TCPSocketActionApplyConfiguration represents an de - properties: - host: - type: string - port: - anyOf: - - type: integer - - type: string - x-kubernetes-int-or-string: true - type: object - terminationGracePeriodSeconds: - format: int64 - type: integer - timeoutSeconds: - format: int32 - type: integer - type: object - resizePolicy: - items: - description: ContainerResizePolicyApplyConfiguration represents - properties: - resourceName: - description: ResourceName is the name identifying various resou - type: string - restartPolicy: - description: ResourceResizeRestartPolicy specifies how to handl - type: string - type: object - type: array - resources: - description: 'ResourceRequirementsApplyConfiguration represents ' - properties: - claims: - items: - description: ResourceClaimApplyConfiguration represents an decl - properties: - name: - type: string - type: object - type: array - limits: - 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 - description: ResourceList is a set of (resource name, quantity) - type: object - requests: - 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 - description: ResourceList is a set of (resource name, quantity) - type: object - type: object - securityContext: - description: SecurityContextApplyConfiguration represents an de - properties: - allowPrivilegeEscalation: - type: boolean - capabilities: - description: CapabilitiesApplyConfiguration represents an decla - properties: - add: - items: - description: Capability represent POSIX capabilities type - type: string - type: array - drop: - items: - description: Capability represent POSIX capabilities type - type: string - type: array - type: object - privileged: - type: boolean - procMount: - type: string - readOnlyRootFilesystem: - type: boolean - runAsGroup: - format: int64 - type: integer - runAsNonRoot: - type: boolean - runAsUser: - format: int64 - type: integer - seLinuxOptions: - description: SELinuxOptionsApplyConfiguration represents an dec - properties: - level: - type: string - role: - type: string - type: - type: string - user: - type: string - type: object - seccompProfile: - description: SeccompProfileApplyConfiguration represents an dec - properties: - localhostProfile: - type: string - type: - description: SeccompProfileType defines the supported seccomp p - type: string - type: object - windowsOptions: - description: WindowsSecurityContextOptionsApplyConfiguration re - properties: - gmsaCredentialSpec: - type: string - gmsaCredentialSpecName: - type: string - hostProcess: - type: boolean - runAsUserName: - type: string - type: object - type: object - startupProbe: - description: 'ProbeApplyConfiguration represents an declarative ' - properties: - exec: - description: ExecActionApplyConfiguration represents an declara - properties: - command: - items: - type: string - type: array - type: object - failureThreshold: - format: int32 - type: integer - grpc: - description: GRPCActionApplyConfiguration represents an declara - properties: - port: - format: int32 - type: integer - service: - type: string - type: object - httpGet: - description: HTTPGetActionApplyConfiguration represents an decl - properties: - host: - type: string - httpHeaders: - items: - description: HTTPHeaderApplyConfiguration represents an declara - properties: - name: - type: string - value: - type: string - type: object - type: array - path: - type: string - port: - anyOf: - - type: integer - - type: string - x-kubernetes-int-or-string: true - scheme: - description: URIScheme identifies the scheme used for connectio - type: string - type: object - initialDelaySeconds: - format: int32 - type: integer - periodSeconds: - format: int32 - type: integer - successThreshold: - format: int32 - type: integer - tcpSocket: - description: TCPSocketActionApplyConfiguration represents an de - properties: - host: - type: string - port: - anyOf: - - type: integer - - type: string - x-kubernetes-int-or-string: true - type: object - terminationGracePeriodSeconds: - format: int64 - type: integer - timeoutSeconds: - format: int32 - type: integer - type: object - stdin: - type: boolean - stdinOnce: - type: boolean - targetContainerName: - type: string - terminationMessagePath: - type: string - terminationMessagePolicy: - description: TerminationMessagePolicy describes how termination - type: string - tty: - type: boolean - volumeDevices: - items: - description: VolumeDeviceApplyConfiguration represents an decla - properties: - devicePath: - type: string - name: - type: string - type: object - type: array - volumeMounts: - items: - description: VolumeMountApplyConfiguration represents an declar - properties: - mountPath: - type: string - mountPropagation: - description: MountPropagationMode describes mount propagation. - type: string - name: - type: string - readOnly: - type: boolean - subPath: - type: string - subPathExpr: - type: string - type: object - type: array - workingDir: - type: string - type: object - type: array - hostAliases: - items: - description: HostAliasApplyConfiguration represents an declarat - properties: - hostnames: - items: - type: string - type: array - ip: - type: string - type: object - type: array - hostIPC: - type: boolean - hostNetwork: - type: boolean - hostPID: - type: boolean - hostUsers: - type: boolean - hostname: - type: string - imagePullSecrets: - items: - description: 'LocalObjectReferenceApplyConfiguration represents ' - properties: - name: - type: string - type: object - type: array - initContainers: - items: - description: ContainerApplyConfiguration represents an declarat - properties: - args: - items: - type: string - type: array - command: - items: - type: string - type: array - env: - items: - description: EnvVarApplyConfiguration represents an declarative - properties: - name: - type: string - value: - type: string - valueFrom: - description: EnvVarSourceApplyConfiguration represents an decla - properties: - configMapKeyRef: - description: 'ConfigMapKeySelectorApplyConfiguration represents ' - properties: - key: - type: string - name: - type: string - optional: - type: boolean - type: object - fieldRef: - description: ObjectFieldSelectorApplyConfiguration represents a - properties: - apiVersion: - type: string - fieldPath: - type: string - type: object - resourceFieldRef: - description: ResourceFieldSelectorApplyConfiguration represents - properties: - containerName: - type: string - divisor: - 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 - resource: - type: string - type: object - secretKeyRef: - description: 'SecretKeySelectorApplyConfiguration represents an ' - properties: - key: - type: string - name: - type: string - optional: - type: boolean - type: object - type: object - type: object - type: array - envFrom: - items: - description: EnvFromSourceApplyConfiguration represents an decl - properties: - configMapRef: - description: ConfigMapEnvSourceApplyConfiguration represents an - properties: - name: - type: string - optional: - type: boolean - type: object - prefix: - type: string - secretRef: - description: SecretEnvSourceApplyConfiguration represents an de - properties: - name: - type: string - optional: - type: boolean - type: object - type: object - type: array - image: - type: string - imagePullPolicy: - description: 'PullPolicy describes a policy for if/when to pull ' - type: string - lifecycle: - description: LifecycleApplyConfiguration represents an declarat - properties: - postStart: - description: LifecycleHandlerApplyConfiguration represents an d - properties: - exec: - description: ExecActionApplyConfiguration represents an declara - properties: - command: - items: - type: string - type: array - type: object - httpGet: - description: HTTPGetActionApplyConfiguration represents an decl - properties: - host: - type: string - httpHeaders: - items: - description: HTTPHeaderApplyConfiguration represents an declara - properties: - name: - type: string - value: - type: string - type: object - type: array - path: - type: string - port: - anyOf: - - type: integer - - type: string - x-kubernetes-int-or-string: true - scheme: - description: URIScheme identifies the scheme used for connectio - type: string - type: object - tcpSocket: - description: TCPSocketActionApplyConfiguration represents an de - properties: - host: - type: string - port: - anyOf: - - type: integer - - type: string - x-kubernetes-int-or-string: true - type: object - type: object - preStop: - description: LifecycleHandlerApplyConfiguration represents an d - properties: - exec: - description: ExecActionApplyConfiguration represents an declara - properties: - command: - items: - type: string - type: array - type: object - httpGet: - description: HTTPGetActionApplyConfiguration represents an decl - properties: - host: - type: string - httpHeaders: - items: - description: HTTPHeaderApplyConfiguration represents an declara - properties: - name: - type: string - value: - type: string - type: object - type: array - path: - type: string - port: - anyOf: - - type: integer - - type: string - x-kubernetes-int-or-string: true - scheme: - description: URIScheme identifies the scheme used for connectio - type: string - type: object - tcpSocket: - description: TCPSocketActionApplyConfiguration represents an de - properties: - host: - type: string - port: - anyOf: - - type: integer - - type: string - x-kubernetes-int-or-string: true - type: object - type: object - type: object - livenessProbe: - description: 'ProbeApplyConfiguration represents an declarative ' - properties: - exec: - description: ExecActionApplyConfiguration represents an declara - properties: - command: - items: - type: string - type: array - type: object - failureThreshold: - format: int32 - type: integer - grpc: - description: GRPCActionApplyConfiguration represents an declara - properties: - port: - format: int32 - type: integer - service: - type: string - type: object - httpGet: - description: HTTPGetActionApplyConfiguration represents an decl - properties: - host: - type: string - httpHeaders: - items: - description: HTTPHeaderApplyConfiguration represents an declara - properties: - name: - type: string - value: - type: string - type: object - type: array - path: - type: string - port: - anyOf: - - type: integer - - type: string - x-kubernetes-int-or-string: true - scheme: - description: URIScheme identifies the scheme used for connectio - type: string - type: object - initialDelaySeconds: - format: int32 - type: integer - periodSeconds: - format: int32 - type: integer - successThreshold: - format: int32 - type: integer - tcpSocket: - description: TCPSocketActionApplyConfiguration represents an de - properties: - host: - type: string - port: - anyOf: - - type: integer - - type: string - x-kubernetes-int-or-string: true - type: object - terminationGracePeriodSeconds: - format: int64 - type: integer - timeoutSeconds: - format: int32 - type: integer - type: object - name: - type: string - ports: - items: - description: ContainerPortApplyConfiguration represents an decl - properties: - containerPort: - format: int32 - type: integer - hostIP: - type: string - hostPort: - format: int32 - type: integer - name: - type: string - protocol: - default: TCP - type: string - type: object - type: array - readinessProbe: - description: 'ProbeApplyConfiguration represents an declarative ' - properties: - exec: - description: ExecActionApplyConfiguration represents an declara - properties: - command: - items: - type: string - type: array - type: object - failureThreshold: - format: int32 - type: integer - grpc: - description: GRPCActionApplyConfiguration represents an declara - properties: - port: - format: int32 - type: integer - service: - type: string - type: object - httpGet: - description: HTTPGetActionApplyConfiguration represents an decl - properties: - host: - type: string - httpHeaders: - items: - description: HTTPHeaderApplyConfiguration represents an declara - properties: - name: - type: string - value: - type: string - type: object - type: array - path: - type: string - port: - anyOf: - - type: integer - - type: string - x-kubernetes-int-or-string: true - scheme: - description: URIScheme identifies the scheme used for connectio - type: string - type: object - initialDelaySeconds: - format: int32 - type: integer - periodSeconds: - format: int32 - type: integer - successThreshold: - format: int32 - type: integer - tcpSocket: - description: TCPSocketActionApplyConfiguration represents an de - properties: - host: - type: string - port: - anyOf: - - type: integer - - type: string - x-kubernetes-int-or-string: true - type: object - terminationGracePeriodSeconds: - format: int64 - type: integer - timeoutSeconds: - format: int32 - type: integer - type: object - resizePolicy: - items: - description: ContainerResizePolicyApplyConfiguration represents - properties: - resourceName: - description: ResourceName is the name identifying various resou - type: string - restartPolicy: - description: ResourceResizeRestartPolicy specifies how to handl - type: string - type: object - type: array - resources: - description: 'ResourceRequirementsApplyConfiguration represents ' - properties: - claims: - items: - description: ResourceClaimApplyConfiguration represents an decl - properties: - name: - type: string - type: object - type: array - limits: - 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 - description: ResourceList is a set of (resource name, quantity) - type: object - requests: - 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 - description: ResourceList is a set of (resource name, quantity) - type: object - type: object - securityContext: - description: SecurityContextApplyConfiguration represents an de - properties: - allowPrivilegeEscalation: - type: boolean - capabilities: - description: CapabilitiesApplyConfiguration represents an decla - properties: - add: - items: - description: Capability represent POSIX capabilities type - type: string - type: array - drop: - items: - description: Capability represent POSIX capabilities type - type: string - type: array - type: object - privileged: - type: boolean - procMount: - type: string - readOnlyRootFilesystem: - type: boolean - runAsGroup: - format: int64 - type: integer - runAsNonRoot: - type: boolean - runAsUser: - format: int64 - type: integer - seLinuxOptions: - description: SELinuxOptionsApplyConfiguration represents an dec - properties: - level: - type: string - role: - type: string - type: - type: string - user: - type: string - type: object - seccompProfile: - description: SeccompProfileApplyConfiguration represents an dec - properties: - localhostProfile: - type: string - type: - description: SeccompProfileType defines the supported seccomp p - type: string - type: object - windowsOptions: - description: WindowsSecurityContextOptionsApplyConfiguration re - properties: - gmsaCredentialSpec: - type: string - gmsaCredentialSpecName: - type: string - hostProcess: - type: boolean - runAsUserName: - type: string - type: object - type: object - startupProbe: - description: 'ProbeApplyConfiguration represents an declarative ' - properties: - exec: - description: ExecActionApplyConfiguration represents an declara - properties: - command: - items: - type: string - type: array - type: object - failureThreshold: - format: int32 - type: integer - grpc: - description: GRPCActionApplyConfiguration represents an declara - properties: - port: - format: int32 - type: integer - service: - type: string - type: object - httpGet: - description: HTTPGetActionApplyConfiguration represents an decl - properties: - host: - type: string - httpHeaders: - items: - description: HTTPHeaderApplyConfiguration represents an declara - properties: - name: - type: string - value: - type: string - type: object - type: array - path: - type: string - port: - anyOf: - - type: integer - - type: string - x-kubernetes-int-or-string: true - scheme: - description: URIScheme identifies the scheme used for connectio - type: string - type: object - initialDelaySeconds: - format: int32 - type: integer - periodSeconds: - format: int32 - type: integer - successThreshold: - format: int32 - type: integer - tcpSocket: - description: TCPSocketActionApplyConfiguration represents an de - properties: - host: - type: string - port: - anyOf: - - type: integer - - type: string - x-kubernetes-int-or-string: true - type: object - terminationGracePeriodSeconds: - format: int64 - type: integer - timeoutSeconds: - format: int32 - type: integer - type: object - stdin: - type: boolean - stdinOnce: - type: boolean - terminationMessagePath: - type: string - terminationMessagePolicy: - description: TerminationMessagePolicy describes how termination - type: string - tty: - type: boolean - volumeDevices: - items: - description: VolumeDeviceApplyConfiguration represents an decla - properties: - devicePath: - type: string - name: - type: string - type: object - type: array - volumeMounts: - items: - description: VolumeMountApplyConfiguration represents an declar - properties: - mountPath: - type: string - mountPropagation: - description: MountPropagationMode describes mount propagation. - type: string - name: - type: string - readOnly: - type: boolean - subPath: - type: string - subPathExpr: - type: string - type: object - type: array - workingDir: - type: string - type: object - type: array - nodeName: - type: string - nodeSelector: - additionalProperties: - type: string - type: object - os: - description: 'PodOSApplyConfiguration represents an declarative ' - properties: - name: - description: OSName is the set of OS'es that can be used in OS. - type: string - type: object - overhead: - 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 - description: ResourceList is a set of (resource name, quantity) - type: object - preemptionPolicy: - description: PreemptionPolicy describes a policy for if/when to - type: string - priority: - format: int32 - type: integer - priorityClassName: - type: string - readinessGates: - items: - description: PodReadinessGateApplyConfiguration represents an d - properties: - conditionType: - description: PodConditionType is a valid value for PodCondition - type: string - type: object - type: array - resourceClaims: - items: - description: PodResourceClaimApplyConfiguration represents an d - properties: - name: - type: string - source: - description: ClaimSourceApplyConfiguration represents an declar - properties: - resourceClaimName: - type: string - resourceClaimTemplateName: - type: string - type: object - type: object - type: array - restartPolicy: - description: RestartPolicy describes how the container should b - type: string - runtimeClassName: - type: string - schedulerName: - type: string - schedulingGates: - items: - description: 'PodSchedulingGateApplyConfiguration represents an ' - properties: - name: - type: string - type: object - type: array - securityContext: - description: PodSecurityContextApplyConfiguration represents an - properties: - fsGroup: - format: int64 - type: integer - fsGroupChangePolicy: - description: PodFSGroupChangePolicy holds policies that will be - type: string - runAsGroup: - format: int64 - type: integer - runAsNonRoot: - type: boolean - runAsUser: - format: int64 - type: integer - seLinuxOptions: - description: SELinuxOptionsApplyConfiguration represents an dec - properties: - level: - type: string - role: - type: string - type: - type: string - user: - type: string - type: object - seccompProfile: - description: SeccompProfileApplyConfiguration represents an dec - properties: - localhostProfile: - type: string - type: - description: SeccompProfileType defines the supported seccomp p - type: string - type: object - supplementalGroups: - items: - format: int64 - type: integer - type: array - sysctls: - items: - description: SysctlApplyConfiguration represents an declarative - properties: - name: - type: string - value: - type: string - type: object - type: array - windowsOptions: - description: WindowsSecurityContextOptionsApplyConfiguration re - properties: - gmsaCredentialSpec: - type: string - gmsaCredentialSpecName: - type: string - hostProcess: - type: boolean - runAsUserName: - type: string - type: object - type: object - serviceAccount: - type: string - serviceAccountName: - type: string - setHostnameAsFQDN: - type: boolean - shareProcessNamespace: - type: boolean - subdomain: - type: string - terminationGracePeriodSeconds: - format: int64 - type: integer - tolerations: - items: - description: TolerationApplyConfiguration represents an declara - properties: - effect: - type: string - key: - type: string - operator: - description: A toleration operator is the set of operators that - type: string - tolerationSeconds: - format: int64 - type: integer - value: - type: string - type: object - type: array - topologySpreadConstraints: - items: - description: TopologySpreadConstraintApplyConfiguration represe - properties: - labelSelector: - description: LabelSelectorApplyConfiguration represents an decl - properties: - matchExpressions: - items: - description: LabelSelectorRequirementApplyConfiguration represe - properties: - key: - type: string - operator: - description: 'A label selector operator is the set of operators ' - type: string - values: - items: - type: string - type: array - type: object - type: array - matchLabels: - additionalProperties: - type: string - type: object - type: object - matchLabelKeys: - items: - type: string - type: array - maxSkew: - format: int32 - type: integer - minDomains: - format: int32 - type: integer - nodeAffinityPolicy: - description: NodeInclusionPolicy defines the type of node inclu - type: string - nodeTaintsPolicy: - description: NodeInclusionPolicy defines the type of node inclu - type: string - topologyKey: - type: string - whenUnsatisfiable: - type: string - type: object - type: array - volumes: - items: - description: VolumeApplyConfiguration represents an declarative - properties: - awsElasticBlockStore: - description: AWSElasticBlockStoreVolumeSourceApplyConfiguration - properties: - fsType: - type: string - partition: - format: int32 - type: integer - readOnly: - type: boolean - volumeID: - type: string - type: object - azureDisk: - description: AzureDiskVolumeSourceApplyConfiguration represents - properties: - cachingMode: - type: string - diskName: - type: string - diskURI: - type: string - fsType: - type: string - kind: - type: string - readOnly: - type: boolean - type: object - azureFile: - description: AzureFileVolumeSourceApplyConfiguration represents - properties: - readOnly: - type: boolean - secretName: - type: string - shareName: - type: string - type: object - cephfs: - description: CephFSVolumeSourceApplyConfiguration represents an - properties: - monitors: - items: - type: string - type: array - path: - type: string - readOnly: - type: boolean - secretFile: - type: string - secretRef: - description: 'LocalObjectReferenceApplyConfiguration represents ' - properties: - name: - type: string - type: object - user: - type: string - type: object - cinder: - description: CinderVolumeSourceApplyConfiguration represents an - properties: - fsType: - type: string - readOnly: - type: boolean - secretRef: - description: 'LocalObjectReferenceApplyConfiguration represents ' - properties: - name: - type: string - type: object - volumeID: - type: string - type: object - configMap: - description: ConfigMapVolumeSourceApplyConfiguration represents - properties: - defaultMode: - format: int32 - type: integer - items: - items: - description: KeyToPathApplyConfiguration represents an declarat - properties: - key: - type: string - mode: - format: int32 - type: integer - path: - type: string - type: object - type: array - name: - type: string - optional: - type: boolean - type: object - csi: - description: CSIVolumeSourceApplyConfiguration represents an de - properties: - driver: - type: string - fsType: - type: string - nodePublishSecretRef: - description: 'LocalObjectReferenceApplyConfiguration represents ' - properties: - name: - type: string - type: object - readOnly: - type: boolean - volumeAttributes: - additionalProperties: - type: string - type: object - type: object - downwardAPI: - description: DownwardAPIVolumeSourceApplyConfiguration represen - properties: - defaultMode: - format: int32 - type: integer - items: - items: - description: DownwardAPIVolumeFileApplyConfiguration represents - properties: - fieldRef: - description: ObjectFieldSelectorApplyConfiguration represents a - properties: - apiVersion: - type: string - fieldPath: - type: string - type: object - mode: - format: int32 - type: integer - path: - type: string - resourceFieldRef: - description: ResourceFieldSelectorApplyConfiguration represents - properties: - containerName: - type: string - divisor: - 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 - resource: - type: string - type: object - type: object - type: array - type: object - emptyDir: - description: 'EmptyDirVolumeSourceApplyConfiguration represents ' - properties: - medium: - description: StorageMedium defines ways that storage can be all - type: string - sizeLimit: - 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 - ephemeral: - description: EphemeralVolumeSourceApplyConfiguration represents - properties: - volumeClaimTemplate: - description: PersistentVolumeClaimTemplateApplyConfiguration re - properties: - metadata: - description: ObjectMetaApplyConfiguration represents an declara - properties: - annotations: - additionalProperties: - type: string - type: object - creationTimestamp: - format: date-time - type: string - deletionGracePeriodSeconds: - format: int64 - type: integer - deletionTimestamp: - format: date-time - type: string - finalizers: - items: - type: string - type: array - generateName: - type: string - generation: - format: int64 - type: integer - labels: - additionalProperties: - type: string - type: object - name: - type: string - namespace: - type: string - ownerReferences: - items: - description: OwnerReferenceApplyConfiguration represents an dec - properties: - apiVersion: - type: string - blockOwnerDeletion: - type: boolean - controller: - type: boolean - kind: - type: string - name: - type: string - uid: - description: UID is a type that holds unique ID values, includi - type: string - type: object - type: array - resourceVersion: - type: string - uid: - description: UID is a type that holds unique ID values, includi - type: string - type: object - spec: - description: PersistentVolumeClaimSpecApplyConfiguration repres - properties: - accessModes: - items: - type: string - type: array - dataSource: - description: TypedLocalObjectReferenceApplyConfiguration repres - properties: - apiGroup: - type: string - kind: - type: string - name: - type: string - type: object - dataSourceRef: - description: 'TypedObjectReferenceApplyConfiguration represents ' - properties: - apiGroup: - type: string - kind: - type: string - name: - type: string - namespace: - type: string - type: object - resources: - description: 'ResourceRequirementsApplyConfiguration represents ' - properties: - claims: - items: - description: ResourceClaimApplyConfiguration represents an decl - properties: - name: - type: string - type: object - type: array - limits: - 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 - description: ResourceList is a set of (resource name, quantity) - type: object - requests: - 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 - description: ResourceList is a set of (resource name, quantity) - type: object - type: object - selector: - description: LabelSelectorApplyConfiguration represents an decl - properties: - matchExpressions: - items: - description: LabelSelectorRequirementApplyConfiguration represe - properties: - key: - type: string - operator: - description: 'A label selector operator is the set of operators ' - type: string - values: - items: - type: string - type: array - type: object - type: array - matchLabels: - additionalProperties: - type: string - type: object - type: object - storageClassName: - type: string - volumeMode: - description: PersistentVolumeMode describes how a volume is int - type: string - volumeName: - type: string - type: object - type: object - type: object - fc: - description: FCVolumeSourceApplyConfiguration represents an dec - properties: - fsType: - type: string - lun: - format: int32 - type: integer - readOnly: - type: boolean - targetWWNs: - items: - type: string - type: array - wwids: - items: - type: string - type: array - type: object - flexVolume: - description: FlexVolumeSourceApplyConfiguration represents an d - properties: - driver: - type: string - fsType: - type: string - options: - additionalProperties: - type: string - type: object - readOnly: - type: boolean - secretRef: - description: 'LocalObjectReferenceApplyConfiguration represents ' - properties: - name: - type: string - type: object - type: object - flocker: - description: FlockerVolumeSourceApplyConfiguration represents a - properties: - datasetName: - type: string - datasetUUID: - type: string - type: object - gcePersistentDisk: - description: GCEPersistentDiskVolumeSourceApplyConfiguration re - properties: - fsType: - type: string - partition: - format: int32 - type: integer - pdName: - type: string - readOnly: - type: boolean - type: object - gitRepo: - description: GitRepoVolumeSourceApplyConfiguration represents a - properties: - directory: - type: string - repository: - type: string - revision: - type: string - type: object - glusterfs: - description: GlusterfsVolumeSourceApplyConfiguration represents - properties: - endpoints: - type: string - path: - type: string - readOnly: - type: boolean - type: object - hostPath: - description: 'HostPathVolumeSourceApplyConfiguration represents ' - properties: - path: - type: string - type: - type: string - type: object - iscsi: - description: 'ISCSIVolumeSourceApplyConfiguration represents an ' - properties: - chapAuthDiscovery: - type: boolean - chapAuthSession: - type: boolean - fsType: - type: string - initiatorName: - type: string - iqn: - type: string - iscsiInterface: - type: string - lun: - format: int32 - type: integer - portals: - items: - type: string - type: array - readOnly: - type: boolean - secretRef: - description: 'LocalObjectReferenceApplyConfiguration represents ' - properties: - name: - type: string - type: object - targetPortal: - type: string - type: object - name: - type: string - nfs: - description: NFSVolumeSourceApplyConfiguration represents an de - properties: - path: - type: string - readOnly: - type: boolean - server: - type: string - type: object - persistentVolumeClaim: - description: PersistentVolumeClaimVolumeSourceApplyConfiguratio - properties: - claimName: - type: string - readOnly: - type: boolean - type: object - photonPersistentDisk: - description: PhotonPersistentDiskVolumeSourceApplyConfiguration - properties: - fsType: - type: string - pdID: - type: string - type: object - portworxVolume: - description: 'PortworxVolumeSourceApplyConfiguration represents ' - properties: - fsType: - type: string - readOnly: - type: boolean - volumeID: - type: string - type: object - projected: - description: ProjectedVolumeSourceApplyConfiguration represents - properties: - defaultMode: - format: int32 - type: integer - sources: - items: - description: VolumeProjectionApplyConfiguration represents an d - properties: - configMap: - description: ConfigMapProjectionApplyConfiguration represents a - properties: - items: - items: - description: KeyToPathApplyConfiguration represents an declarat - properties: - key: - type: string - mode: - format: int32 - type: integer - path: - type: string - type: object - type: array - name: - type: string - optional: - type: boolean - type: object - downwardAPI: - description: DownwardAPIProjectionApplyConfiguration represents - properties: - items: - items: - description: DownwardAPIVolumeFileApplyConfiguration represents - properties: - fieldRef: - description: ObjectFieldSelectorApplyConfiguration represents a - properties: - apiVersion: - type: string - fieldPath: - type: string - type: object - mode: - format: int32 - type: integer - path: - type: string - resourceFieldRef: - description: ResourceFieldSelectorApplyConfiguration represents - properties: - containerName: - type: string - divisor: - 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 - resource: - type: string - type: object - type: object - type: array - type: object - secret: - description: SecretProjectionApplyConfiguration represents an d - properties: - items: - items: - description: KeyToPathApplyConfiguration represents an declarat - properties: - key: - type: string - mode: - format: int32 - type: integer - path: - type: string - type: object - type: array - name: - type: string - optional: - type: boolean - type: object - serviceAccountToken: - description: ServiceAccountTokenProjectionApplyConfiguration re - properties: - audience: - type: string - expirationSeconds: - format: int64 - type: integer - path: - type: string - type: object - type: object - type: array - type: object - quobyte: - description: QuobyteVolumeSourceApplyConfiguration represents a - properties: - group: - type: string - readOnly: - type: boolean - registry: - type: string - tenant: - type: string - user: - type: string - volume: - type: string - type: object - rbd: - description: RBDVolumeSourceApplyConfiguration represents an de - properties: - fsType: - type: string - image: - type: string - keyring: - type: string - monitors: - items: - type: string - type: array - pool: - type: string - readOnly: - type: boolean - secretRef: - description: 'LocalObjectReferenceApplyConfiguration represents ' - properties: - name: - type: string - type: object - user: - type: string - type: object - scaleIO: - description: ScaleIOVolumeSourceApplyConfiguration represents a - properties: - fsType: - type: string - gateway: - type: string - protectionDomain: - type: string - readOnly: - type: boolean - secretRef: - description: 'LocalObjectReferenceApplyConfiguration represents ' - properties: - name: - type: string - type: object - sslEnabled: - type: boolean - storageMode: - type: string - storagePool: - type: string - system: - type: string - volumeName: - type: string - type: object - secret: - description: SecretVolumeSourceApplyConfiguration represents an - properties: - defaultMode: - format: int32 - type: integer - items: - items: - description: KeyToPathApplyConfiguration represents an declarat - properties: - key: - type: string - mode: - format: int32 - type: integer - path: - type: string - type: object - type: array - optional: - type: boolean - secretName: - type: string - type: object - storageos: - description: StorageOSVolumeSourceApplyConfiguration represents - properties: - fsType: - type: string - readOnly: - type: boolean - secretRef: - description: 'LocalObjectReferenceApplyConfiguration represents ' - properties: - name: - type: string - type: object - volumeName: - type: string - volumeNamespace: - type: string - type: object - vsphereVolume: - description: VsphereVirtualDiskVolumeSourceApplyConfiguration r - properties: - fsType: - type: string - storagePolicyID: - type: string - storagePolicyName: - type: string - volumePath: - type: string - type: object - type: object - type: array - type: object - required: - - spec - type: object - replicas: - default: 1 - description: Replicas is the number of instances. - format: int32 - type: integer - replicationSourceSecretName: - description: ReplicationSourceSecretName is a `Secret` name whi - nullable: true - type: string - restore: - description: Restore is the specification to perform Point-in-T - properties: - jobConfig: - description: Specifies parameters for restore Pod. - properties: - affinity: - description: If specified, the pod's scheduling constraints. - properties: - nodeAffinity: - description: NodeAffinityApplyConfiguration represents an decla - properties: - preferredDuringSchedulingIgnoredDuringExecution: - items: - description: PreferredSchedulingTermApplyConfiguration represen - properties: - preference: - description: NodeSelectorTermApplyConfiguration represents an d - properties: - matchExpressions: - items: - description: NodeSelectorRequirementApplyConfiguration represen - properties: - key: - type: string - operator: - description: A node selector operator is the set of operators t - type: string - values: - items: - type: string - type: array - type: object - type: array - matchFields: - items: - description: NodeSelectorRequirementApplyConfiguration represen - properties: - key: - type: string - operator: - description: A node selector operator is the set of operators t - type: string - values: - items: - type: string - type: array - type: object - type: array - type: object - weight: - format: int32 - type: integer - type: object - type: array - requiredDuringSchedulingIgnoredDuringExecution: - description: NodeSelectorApplyConfiguration represents an decla - properties: - nodeSelectorTerms: - items: - description: NodeSelectorTermApplyConfiguration represents an d - properties: - matchExpressions: - items: - description: NodeSelectorRequirementApplyConfiguration represen - properties: - key: - type: string - operator: - description: A node selector operator is the set of operators t - type: string - values: - items: - type: string - type: array - type: object - type: array - matchFields: - items: - description: NodeSelectorRequirementApplyConfiguration represen - properties: - key: - type: string - operator: - description: A node selector operator is the set of operators t - type: string - values: - items: - type: string - type: array - type: object - type: array - type: object - type: array - type: object - type: object - podAffinity: - description: PodAffinityApplyConfiguration represents an declar - properties: - preferredDuringSchedulingIgnoredDuringExecution: - items: - description: WeightedPodAffinityTermApplyConfiguration represen - properties: - podAffinityTerm: - description: PodAffinityTermApplyConfiguration represents an de - properties: - labelSelector: - description: LabelSelectorApplyConfiguration represents an decl - properties: - matchExpressions: - items: - description: LabelSelectorRequirementApplyConfiguration represe - properties: - key: - type: string - operator: - description: 'A label selector operator is the set of operators ' - type: string - values: - items: - type: string - type: array - type: object - type: array - matchLabels: - additionalProperties: - type: string - type: object - type: object - namespaceSelector: - description: LabelSelectorApplyConfiguration represents an decl - properties: - matchExpressions: - items: - description: LabelSelectorRequirementApplyConfiguration represe - properties: - key: - type: string - operator: - description: 'A label selector operator is the set of operators ' - type: string - values: - items: - type: string - type: array - type: object - type: array - matchLabels: - additionalProperties: - type: string - type: object - type: object - namespaces: - items: - type: string - type: array - topologyKey: - type: string - type: object - weight: - format: int32 - type: integer - type: object - type: array - requiredDuringSchedulingIgnoredDuringExecution: - items: - description: PodAffinityTermApplyConfiguration represents an de - properties: - labelSelector: - description: LabelSelectorApplyConfiguration represents an decl - properties: - matchExpressions: - items: - description: LabelSelectorRequirementApplyConfiguration represe - properties: - key: - type: string - operator: - description: 'A label selector operator is the set of operators ' - type: string - values: - items: - type: string - type: array - type: object - type: array - matchLabels: - additionalProperties: - type: string - type: object - type: object - namespaceSelector: - description: LabelSelectorApplyConfiguration represents an decl - properties: - matchExpressions: - items: - description: LabelSelectorRequirementApplyConfiguration represe - properties: - key: - type: string - operator: - description: 'A label selector operator is the set of operators ' - type: string - values: - items: - type: string - type: array - type: object - type: array - matchLabels: - additionalProperties: - type: string - type: object - type: object - namespaces: - items: - type: string - type: array - topologyKey: - type: string - type: object - type: array - type: object - podAntiAffinity: - description: PodAntiAffinityApplyConfiguration represents an de - properties: - preferredDuringSchedulingIgnoredDuringExecution: - items: - description: WeightedPodAffinityTermApplyConfiguration represen - properties: - podAffinityTerm: - description: PodAffinityTermApplyConfiguration represents an de - properties: - labelSelector: - description: LabelSelectorApplyConfiguration represents an decl - properties: - matchExpressions: - items: - description: LabelSelectorRequirementApplyConfiguration represe - properties: - key: - type: string - operator: - description: 'A label selector operator is the set of operators ' - type: string - values: - items: - type: string - type: array - type: object - type: array - matchLabels: - additionalProperties: - type: string - type: object - type: object - namespaceSelector: - description: LabelSelectorApplyConfiguration represents an decl - properties: - matchExpressions: - items: - description: LabelSelectorRequirementApplyConfiguration represe - properties: - key: - type: string - operator: - description: 'A label selector operator is the set of operators ' - type: string - values: - items: - type: string - type: array - type: object - type: array - matchLabels: - additionalProperties: - type: string - type: object - type: object - namespaces: - items: - type: string - type: array - topologyKey: - type: string - type: object - weight: - format: int32 - type: integer - type: object - type: array - requiredDuringSchedulingIgnoredDuringExecution: - items: - description: PodAffinityTermApplyConfiguration represents an de - properties: - labelSelector: - description: LabelSelectorApplyConfiguration represents an decl - properties: - matchExpressions: - items: - description: LabelSelectorRequirementApplyConfiguration represe - properties: - key: - type: string - operator: - description: 'A label selector operator is the set of operators ' - type: string - values: - items: - type: string - type: array - type: object - type: array - matchLabels: - additionalProperties: - type: string - type: object - type: object - namespaceSelector: - description: LabelSelectorApplyConfiguration represents an decl - properties: - matchExpressions: - items: - description: LabelSelectorRequirementApplyConfiguration represe - properties: - key: - type: string - operator: - description: 'A label selector operator is the set of operators ' - type: string - values: - items: - type: string - type: array - type: object - type: array - matchLabels: - additionalProperties: - type: string - type: object - type: object - namespaces: - items: - type: string - type: array - topologyKey: - type: string - type: object - type: array - type: object - type: object - bucketConfig: - description: Specifies how to access an object storage bucket. - properties: - backendType: - default: s3 - description: BackendType is an identifier for the object storag - enum: - - s3 - - gcs - type: string - bucketName: - description: The name of the bucket - minLength: 1 - type: string - caCert: - description: Path to SSL CA certificate file used in addition t - type: string - endpointURL: - description: The API endpoint URL. - pattern: ^https?://.* - type: string - region: - description: The region of the bucket. - type: string - usePathStyle: - description: 'Allows you to enable the client to use path-style ' - type: boolean - required: - - bucketName - type: object - cpu: - anyOf: - - type: integer - - type: string - default: 4 - description: CPU is the amount of CPU requested for the Pod. - nullable: true - pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ - x-kubernetes-int-or-string: true - env: - description: List of environment variables to set in the contai - items: - description: EnvVarApplyConfiguration is the type defined to im - properties: - name: - type: string - value: - type: string - valueFrom: - description: EnvVarSourceApplyConfiguration represents an decla - properties: - configMapKeyRef: - description: 'ConfigMapKeySelectorApplyConfiguration represents ' - properties: - key: - type: string - name: - type: string - optional: - type: boolean - type: object - fieldRef: - description: ObjectFieldSelectorApplyConfiguration represents a - properties: - apiVersion: - type: string - fieldPath: - type: string - type: object - resourceFieldRef: - description: ResourceFieldSelectorApplyConfiguration represents - properties: - containerName: - type: string - divisor: - 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 - resource: - type: string - type: object - secretKeyRef: - description: 'SecretKeySelectorApplyConfiguration represents an ' - properties: - key: - type: string - name: - type: string - optional: - type: boolean - type: object - type: object - type: object - type: array - envFrom: - description: 'List of sources to populate environment variables ' - items: - description: EnvFromSourceApplyConfiguration is the type define - properties: - configMapRef: - description: ConfigMapEnvSourceApplyConfiguration represents an - properties: - name: - type: string - optional: - type: boolean - type: object - prefix: - type: string - secretRef: - description: SecretEnvSourceApplyConfiguration represents an de - properties: - name: - type: string - optional: - type: boolean - type: object - type: object - type: array - maxCpu: - anyOf: - - type: integer - - type: string - description: MaxCPU is the amount of maximum CPU for the Pod. - nullable: true - pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ - x-kubernetes-int-or-string: true - maxMemory: - anyOf: - - type: integer - - type: string - description: 'MaxMemory is the amount of maximum memory for the ' - nullable: true - pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ - x-kubernetes-int-or-string: true - memory: - anyOf: - - type: integer - - type: string - default: 4Gi - description: Memory is the amount of memory requested for the P - nullable: true - pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ - x-kubernetes-int-or-string: true - serviceAccountName: - description: ServiceAccountName specifies the ServiceAccount to - minLength: 1 - type: string - threads: - default: 4 - description: Threads is the number of threads used for backup o - minimum: 1 - type: integer - volumeMounts: - description: VolumeMounts describes a list of volume mounts tha - items: - description: 'VolumeMountApplyConfiguration is the type defined ' - properties: - mountPath: - type: string - mountPropagation: - description: MountPropagationMode describes mount propagation. - type: string - name: - type: string - readOnly: - type: boolean - subPath: - type: string - subPathExpr: - type: string - type: object - type: array - volumes: - description: Volumes defines the list of volumes that can be mo - items: - description: VolumeApplyConfiguration is the type defined to im - properties: - awsElasticBlockStore: - description: AWSElasticBlockStoreVolumeSourceApplyConfiguration - properties: - fsType: - type: string - partition: - format: int32 - type: integer - readOnly: - type: boolean - volumeID: - type: string - type: object - azureDisk: - description: AzureDiskVolumeSourceApplyConfiguration represents - properties: - cachingMode: - type: string - diskName: - type: string - diskURI: - type: string - fsType: - type: string - kind: - type: string - readOnly: - type: boolean - type: object - azureFile: - description: AzureFileVolumeSourceApplyConfiguration represents - properties: - readOnly: - type: boolean - secretName: - type: string - shareName: - type: string - type: object - cephfs: - description: CephFSVolumeSourceApplyConfiguration represents an - properties: - monitors: - items: - type: string - type: array - path: - type: string - readOnly: - type: boolean - secretFile: - type: string - secretRef: - description: 'LocalObjectReferenceApplyConfiguration represents ' - properties: - name: - type: string - type: object - user: - type: string - type: object - cinder: - description: CinderVolumeSourceApplyConfiguration represents an - properties: - fsType: - type: string - readOnly: - type: boolean - secretRef: - description: 'LocalObjectReferenceApplyConfiguration represents ' - properties: - name: - type: string - type: object - volumeID: - type: string - type: object - configMap: - description: ConfigMapVolumeSourceApplyConfiguration represents - properties: - defaultMode: - format: int32 - type: integer - items: - items: - description: KeyToPathApplyConfiguration represents an declarat - properties: - key: - type: string - mode: - format: int32 - type: integer - path: - type: string - type: object - type: array - name: - type: string - optional: - type: boolean - type: object - csi: - description: CSIVolumeSourceApplyConfiguration represents an de - properties: - driver: - type: string - fsType: - type: string - nodePublishSecretRef: - description: 'LocalObjectReferenceApplyConfiguration represents ' - properties: - name: - type: string - type: object - readOnly: - type: boolean - volumeAttributes: - additionalProperties: - type: string - type: object - type: object - downwardAPI: - description: DownwardAPIVolumeSourceApplyConfiguration represen - properties: - defaultMode: - format: int32 - type: integer - items: - items: - description: DownwardAPIVolumeFileApplyConfiguration represents - properties: - fieldRef: - description: ObjectFieldSelectorApplyConfiguration represents a - properties: - apiVersion: - type: string - fieldPath: - type: string - type: object - mode: - format: int32 - type: integer - path: - type: string - resourceFieldRef: - description: ResourceFieldSelectorApplyConfiguration represents - properties: - containerName: - type: string - divisor: - 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 - resource: - type: string - type: object - type: object - type: array - type: object - emptyDir: - description: 'EmptyDirVolumeSourceApplyConfiguration represents ' - properties: - medium: - description: StorageMedium defines ways that storage can be all - type: string - sizeLimit: - 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 - ephemeral: - description: EphemeralVolumeSourceApplyConfiguration represents - properties: - volumeClaimTemplate: - description: PersistentVolumeClaimTemplateApplyConfiguration re - properties: - metadata: - description: ObjectMetaApplyConfiguration represents an declara - properties: - annotations: - additionalProperties: - type: string - type: object - creationTimestamp: - format: date-time - type: string - deletionGracePeriodSeconds: - format: int64 - type: integer - deletionTimestamp: - format: date-time - type: string - finalizers: - items: - type: string - type: array - generateName: - type: string - generation: - format: int64 - type: integer - labels: - additionalProperties: - type: string - type: object - name: - type: string - namespace: - type: string - ownerReferences: - items: - description: OwnerReferenceApplyConfiguration represents an dec - properties: - apiVersion: - type: string - blockOwnerDeletion: - type: boolean - controller: - type: boolean - kind: - type: string - name: - type: string - uid: - description: UID is a type that holds unique ID values, includi - type: string - type: object - type: array - resourceVersion: - type: string - uid: - description: UID is a type that holds unique ID values, includi - type: string - type: object - spec: - description: PersistentVolumeClaimSpecApplyConfiguration repres - properties: - accessModes: - items: - type: string - type: array - dataSource: - description: TypedLocalObjectReferenceApplyConfiguration repres - properties: - apiGroup: - type: string - kind: - type: string - name: - type: string - type: object - dataSourceRef: - description: 'TypedObjectReferenceApplyConfiguration represents ' - properties: - apiGroup: - type: string - kind: - type: string - name: - type: string - namespace: - type: string - type: object - resources: - description: 'ResourceRequirementsApplyConfiguration represents ' - properties: - claims: - items: - description: ResourceClaimApplyConfiguration represents an decl - properties: - name: - type: string - type: object - type: array - limits: - 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 - description: ResourceList is a set of (resource name, quantity) - type: object - requests: - 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 - description: ResourceList is a set of (resource name, quantity) - type: object - type: object - selector: - description: LabelSelectorApplyConfiguration represents an decl - properties: - matchExpressions: - items: - description: LabelSelectorRequirementApplyConfiguration represe - properties: - key: - type: string - operator: - description: 'A label selector operator is the set of operators ' - type: string - values: - items: - type: string - type: array - type: object - type: array - matchLabels: - additionalProperties: - type: string - type: object - type: object - storageClassName: - type: string - volumeMode: - description: PersistentVolumeMode describes how a volume is int - type: string - volumeName: - type: string - type: object - type: object - type: object - fc: - description: FCVolumeSourceApplyConfiguration represents an dec - properties: - fsType: - type: string - lun: - format: int32 - type: integer - readOnly: - type: boolean - targetWWNs: - items: - type: string - type: array - wwids: - items: - type: string - type: array - type: object - flexVolume: - description: FlexVolumeSourceApplyConfiguration represents an d - properties: - driver: - type: string - fsType: - type: string - options: - additionalProperties: - type: string - type: object - readOnly: - type: boolean - secretRef: - description: 'LocalObjectReferenceApplyConfiguration represents ' - properties: - name: - type: string - type: object - type: object - flocker: - description: FlockerVolumeSourceApplyConfiguration represents a - properties: - datasetName: - type: string - datasetUUID: - type: string - type: object - gcePersistentDisk: - description: GCEPersistentDiskVolumeSourceApplyConfiguration re - properties: - fsType: - type: string - partition: - format: int32 - type: integer - pdName: - type: string - readOnly: - type: boolean - type: object - gitRepo: - description: GitRepoVolumeSourceApplyConfiguration represents a - properties: - directory: - type: string - repository: - type: string - revision: - type: string - type: object - glusterfs: - description: GlusterfsVolumeSourceApplyConfiguration represents - properties: - endpoints: - type: string - path: - type: string - readOnly: - type: boolean - type: object - hostPath: - description: 'HostPathVolumeSourceApplyConfiguration represents ' - properties: - path: - type: string - type: - type: string - type: object - iscsi: - description: 'ISCSIVolumeSourceApplyConfiguration represents an ' - properties: - chapAuthDiscovery: - type: boolean - chapAuthSession: - type: boolean - fsType: - type: string - initiatorName: - type: string - iqn: - type: string - iscsiInterface: - type: string - lun: - format: int32 - type: integer - portals: - items: - type: string - type: array - readOnly: - type: boolean - secretRef: - description: 'LocalObjectReferenceApplyConfiguration represents ' - properties: - name: - type: string - type: object - targetPortal: - type: string - type: object - name: - type: string - nfs: - description: NFSVolumeSourceApplyConfiguration represents an de - properties: - path: - type: string - readOnly: - type: boolean - server: - type: string - type: object - persistentVolumeClaim: - description: PersistentVolumeClaimVolumeSourceApplyConfiguratio - properties: - claimName: - type: string - readOnly: - type: boolean - type: object - photonPersistentDisk: - description: PhotonPersistentDiskVolumeSourceApplyConfiguration - properties: - fsType: - type: string - pdID: - type: string - type: object - portworxVolume: - description: 'PortworxVolumeSourceApplyConfiguration represents ' - properties: - fsType: - type: string - readOnly: - type: boolean - volumeID: - type: string - type: object - projected: - description: ProjectedVolumeSourceApplyConfiguration represents - properties: - defaultMode: - format: int32 - type: integer - sources: - items: - description: VolumeProjectionApplyConfiguration represents an d - properties: - configMap: - description: ConfigMapProjectionApplyConfiguration represents a - properties: - items: - items: - description: KeyToPathApplyConfiguration represents an declarat - properties: - key: - type: string - mode: - format: int32 - type: integer - path: - type: string - type: object - type: array - name: - type: string - optional: - type: boolean - type: object - downwardAPI: - description: DownwardAPIProjectionApplyConfiguration represents - properties: - items: - items: - description: DownwardAPIVolumeFileApplyConfiguration represents - properties: - fieldRef: - description: ObjectFieldSelectorApplyConfiguration represents a - properties: - apiVersion: - type: string - fieldPath: - type: string - type: object - mode: - format: int32 - type: integer - path: - type: string - resourceFieldRef: - description: ResourceFieldSelectorApplyConfiguration represents - properties: - containerName: - type: string - divisor: - 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 - resource: - type: string - type: object - type: object - type: array - type: object - secret: - description: SecretProjectionApplyConfiguration represents an d - properties: - items: - items: - description: KeyToPathApplyConfiguration represents an declarat - properties: - key: - type: string - mode: - format: int32 - type: integer - path: - type: string - type: object - type: array - name: - type: string - optional: - type: boolean - type: object - serviceAccountToken: - description: ServiceAccountTokenProjectionApplyConfiguration re - properties: - audience: - type: string - expirationSeconds: - format: int64 - type: integer - path: - type: string - type: object - type: object - type: array - type: object - quobyte: - description: QuobyteVolumeSourceApplyConfiguration represents a - properties: - group: - type: string - readOnly: - type: boolean - registry: - type: string - tenant: - type: string - user: - type: string - volume: - type: string - type: object - rbd: - description: RBDVolumeSourceApplyConfiguration represents an de - properties: - fsType: - type: string - image: - type: string - keyring: - type: string - monitors: - items: - type: string - type: array - pool: - type: string - readOnly: - type: boolean - secretRef: - description: 'LocalObjectReferenceApplyConfiguration represents ' - properties: - name: - type: string - type: object - user: - type: string - type: object - scaleIO: - description: ScaleIOVolumeSourceApplyConfiguration represents a - properties: - fsType: - type: string - gateway: - type: string - protectionDomain: - type: string - readOnly: - type: boolean - secretRef: - description: 'LocalObjectReferenceApplyConfiguration represents ' - properties: - name: - type: string - type: object - sslEnabled: - type: boolean - storageMode: - type: string - storagePool: - type: string - system: - type: string - volumeName: - type: string - type: object - secret: - description: SecretVolumeSourceApplyConfiguration represents an - properties: - defaultMode: - format: int32 - type: integer - items: - items: - description: KeyToPathApplyConfiguration represents an declarat - properties: - key: - type: string - mode: - format: int32 - type: integer - path: - type: string - type: object - type: array - optional: - type: boolean - secretName: - type: string - type: object - storageos: - description: StorageOSVolumeSourceApplyConfiguration represents - properties: - fsType: - type: string - readOnly: - type: boolean - secretRef: - description: 'LocalObjectReferenceApplyConfiguration represents ' - properties: - name: - type: string - type: object - volumeName: - type: string - volumeNamespace: - type: string - type: object - vsphereVolume: - description: VsphereVirtualDiskVolumeSourceApplyConfiguration r - properties: - fsType: - type: string - storagePolicyID: - type: string - storagePolicyName: - type: string - volumePath: - type: string - type: object - type: object - type: array - workVolume: - description: WorkVolume is the volume source for the working di - properties: - awsElasticBlockStore: - description: AWSElasticBlockStoreVolumeSourceApplyConfiguration - properties: - fsType: - type: string - partition: - format: int32 - type: integer - readOnly: - type: boolean - volumeID: - type: string - type: object - azureDisk: - description: AzureDiskVolumeSourceApplyConfiguration represents - properties: - cachingMode: - type: string - diskName: - type: string - diskURI: - type: string - fsType: - type: string - kind: - type: string - readOnly: - type: boolean - type: object - azureFile: - description: AzureFileVolumeSourceApplyConfiguration represents - properties: - readOnly: - type: boolean - secretName: - type: string - shareName: - type: string - type: object - cephfs: - description: CephFSVolumeSourceApplyConfiguration represents an - properties: - monitors: - items: - type: string - type: array - path: - type: string - readOnly: - type: boolean - secretFile: - type: string - secretRef: - description: 'LocalObjectReferenceApplyConfiguration represents ' - properties: - name: - type: string - type: object - user: - type: string - type: object - cinder: - description: CinderVolumeSourceApplyConfiguration represents an - properties: - fsType: - type: string - readOnly: - type: boolean - secretRef: - description: 'LocalObjectReferenceApplyConfiguration represents ' - properties: - name: - type: string - type: object - volumeID: - type: string - type: object - configMap: - description: ConfigMapVolumeSourceApplyConfiguration represents - properties: - defaultMode: - format: int32 - type: integer - items: - items: - description: KeyToPathApplyConfiguration represents an declarat - properties: - key: - type: string - mode: - format: int32 - type: integer - path: - type: string - type: object - type: array - name: - type: string - optional: - type: boolean - type: object - csi: - description: CSIVolumeSourceApplyConfiguration represents an de - properties: - driver: - type: string - fsType: - type: string - nodePublishSecretRef: - description: 'LocalObjectReferenceApplyConfiguration represents ' - properties: - name: - type: string - type: object - readOnly: - type: boolean - volumeAttributes: - additionalProperties: - type: string - type: object - type: object - downwardAPI: - description: DownwardAPIVolumeSourceApplyConfiguration represen - properties: - defaultMode: - format: int32 - type: integer - items: - items: - description: DownwardAPIVolumeFileApplyConfiguration represents - properties: - fieldRef: - description: ObjectFieldSelectorApplyConfiguration represents a - properties: - apiVersion: - type: string - fieldPath: - type: string - type: object - mode: - format: int32 - type: integer - path: - type: string - resourceFieldRef: - description: ResourceFieldSelectorApplyConfiguration represents - properties: - containerName: - type: string - divisor: - 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 - resource: - type: string - type: object - type: object - type: array - type: object - emptyDir: - description: 'EmptyDirVolumeSourceApplyConfiguration represents ' - properties: - medium: - description: StorageMedium defines ways that storage can be all - type: string - sizeLimit: - 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 - ephemeral: - description: EphemeralVolumeSourceApplyConfiguration represents - properties: - volumeClaimTemplate: - description: PersistentVolumeClaimTemplateApplyConfiguration re - properties: - metadata: - description: ObjectMetaApplyConfiguration represents an declara - properties: - annotations: - additionalProperties: - type: string - type: object - creationTimestamp: - format: date-time - type: string - deletionGracePeriodSeconds: - format: int64 - type: integer - deletionTimestamp: - format: date-time - type: string - finalizers: - items: - type: string - type: array - generateName: - type: string - generation: - format: int64 - type: integer - labels: - additionalProperties: - type: string - type: object - name: - type: string - namespace: - type: string - ownerReferences: - items: - description: OwnerReferenceApplyConfiguration represents an dec - properties: - apiVersion: - type: string - blockOwnerDeletion: - type: boolean - controller: - type: boolean - kind: - type: string - name: - type: string - uid: - description: UID is a type that holds unique ID values, includi - type: string - type: object - type: array - resourceVersion: - type: string - uid: - description: UID is a type that holds unique ID values, includi - type: string - type: object - spec: - description: PersistentVolumeClaimSpecApplyConfiguration repres - properties: - accessModes: - items: - type: string - type: array - dataSource: - description: TypedLocalObjectReferenceApplyConfiguration repres - properties: - apiGroup: - type: string - kind: - type: string - name: - type: string - type: object - dataSourceRef: - description: 'TypedObjectReferenceApplyConfiguration represents ' - properties: - apiGroup: - type: string - kind: - type: string - name: - type: string - namespace: - type: string - type: object - resources: - description: 'ResourceRequirementsApplyConfiguration represents ' - properties: - claims: - items: - description: ResourceClaimApplyConfiguration represents an decl - properties: - name: - type: string - type: object - type: array - limits: - 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 - description: ResourceList is a set of (resource name, quantity) - type: object - requests: - 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 - description: ResourceList is a set of (resource name, quantity) - type: object - type: object - selector: - description: LabelSelectorApplyConfiguration represents an decl - properties: - matchExpressions: - items: - description: LabelSelectorRequirementApplyConfiguration represe - properties: - key: - type: string - operator: - description: 'A label selector operator is the set of operators ' - type: string - values: - items: - type: string - type: array - type: object - type: array - matchLabels: - additionalProperties: - type: string - type: object - type: object - storageClassName: - type: string - volumeMode: - description: PersistentVolumeMode describes how a volume is int - type: string - volumeName: - type: string - type: object - type: object - type: object - fc: - description: FCVolumeSourceApplyConfiguration represents an dec - properties: - fsType: - type: string - lun: - format: int32 - type: integer - readOnly: - type: boolean - targetWWNs: - items: - type: string - type: array - wwids: - items: - type: string - type: array - type: object - flexVolume: - description: FlexVolumeSourceApplyConfiguration represents an d - properties: - driver: - type: string - fsType: - type: string - options: - additionalProperties: - type: string - type: object - readOnly: - type: boolean - secretRef: - description: 'LocalObjectReferenceApplyConfiguration represents ' - properties: - name: - type: string - type: object - type: object - flocker: - description: FlockerVolumeSourceApplyConfiguration represents a - properties: - datasetName: - type: string - datasetUUID: - type: string - type: object - gcePersistentDisk: - description: GCEPersistentDiskVolumeSourceApplyConfiguration re - properties: - fsType: - type: string - partition: - format: int32 - type: integer - pdName: - type: string - readOnly: - type: boolean - type: object - gitRepo: - description: GitRepoVolumeSourceApplyConfiguration represents a - properties: - directory: - type: string - repository: - type: string - revision: - type: string - type: object - glusterfs: - description: GlusterfsVolumeSourceApplyConfiguration represents - properties: - endpoints: - type: string - path: - type: string - readOnly: - type: boolean - type: object - hostPath: - description: 'HostPathVolumeSourceApplyConfiguration represents ' - properties: - path: - type: string - type: - type: string - type: object - iscsi: - description: 'ISCSIVolumeSourceApplyConfiguration represents an ' - properties: - chapAuthDiscovery: - type: boolean - chapAuthSession: - type: boolean - fsType: - type: string - initiatorName: - type: string - iqn: - type: string - iscsiInterface: - type: string - lun: - format: int32 - type: integer - portals: - items: - type: string - type: array - readOnly: - type: boolean - secretRef: - description: 'LocalObjectReferenceApplyConfiguration represents ' - properties: - name: - type: string - type: object - targetPortal: - type: string - type: object - nfs: - description: NFSVolumeSourceApplyConfiguration represents an de - properties: - path: - type: string - readOnly: - type: boolean - server: - type: string - type: object - persistentVolumeClaim: - description: PersistentVolumeClaimVolumeSourceApplyConfiguratio - properties: - claimName: - type: string - readOnly: - type: boolean - type: object - photonPersistentDisk: - description: PhotonPersistentDiskVolumeSourceApplyConfiguration - properties: - fsType: - type: string - pdID: - type: string - type: object - portworxVolume: - description: 'PortworxVolumeSourceApplyConfiguration represents ' - properties: - fsType: - type: string - readOnly: - type: boolean - volumeID: - type: string - type: object - projected: - description: ProjectedVolumeSourceApplyConfiguration represents - properties: - defaultMode: - format: int32 - type: integer - sources: - items: - description: VolumeProjectionApplyConfiguration represents an d - properties: - configMap: - description: ConfigMapProjectionApplyConfiguration represents a - properties: - items: - items: - description: KeyToPathApplyConfiguration represents an declarat - properties: - key: - type: string - mode: - format: int32 - type: integer - path: - type: string - type: object - type: array - name: - type: string - optional: - type: boolean - type: object - downwardAPI: - description: DownwardAPIProjectionApplyConfiguration represents - properties: - items: - items: - description: DownwardAPIVolumeFileApplyConfiguration represents - properties: - fieldRef: - description: ObjectFieldSelectorApplyConfiguration represents a - properties: - apiVersion: - type: string - fieldPath: - type: string - type: object - mode: - format: int32 - type: integer - path: - type: string - resourceFieldRef: - description: ResourceFieldSelectorApplyConfiguration represents - properties: - containerName: - type: string - divisor: - 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 - resource: - type: string - type: object - type: object - type: array - type: object - secret: - description: SecretProjectionApplyConfiguration represents an d - properties: - items: - items: - description: KeyToPathApplyConfiguration represents an declarat - properties: - key: - type: string - mode: - format: int32 - type: integer - path: - type: string - type: object - type: array - name: - type: string - optional: - type: boolean - type: object - serviceAccountToken: - description: ServiceAccountTokenProjectionApplyConfiguration re - properties: - audience: - type: string - expirationSeconds: - format: int64 - type: integer - path: - type: string - type: object - type: object - type: array - type: object - quobyte: - description: QuobyteVolumeSourceApplyConfiguration represents a - properties: - group: - type: string - readOnly: - type: boolean - registry: - type: string - tenant: - type: string - user: - type: string - volume: - type: string - type: object - rbd: - description: RBDVolumeSourceApplyConfiguration represents an de - properties: - fsType: - type: string - image: - type: string - keyring: - type: string - monitors: - items: - type: string - type: array - pool: - type: string - readOnly: - type: boolean - secretRef: - description: 'LocalObjectReferenceApplyConfiguration represents ' - properties: - name: - type: string - type: object - user: - type: string - type: object - scaleIO: - description: ScaleIOVolumeSourceApplyConfiguration represents a - properties: - fsType: - type: string - gateway: - type: string - protectionDomain: - type: string - readOnly: - type: boolean - secretRef: - description: 'LocalObjectReferenceApplyConfiguration represents ' - properties: - name: - type: string - type: object - sslEnabled: - type: boolean - storageMode: - type: string - storagePool: - type: string - system: - type: string - volumeName: - type: string - type: object - secret: - description: SecretVolumeSourceApplyConfiguration represents an - properties: - defaultMode: - format: int32 - type: integer - items: - items: - description: KeyToPathApplyConfiguration represents an declarat - properties: - key: - type: string - mode: - format: int32 - type: integer - path: - type: string - type: object - type: array - optional: - type: boolean - secretName: - type: string - type: object - storageos: - description: StorageOSVolumeSourceApplyConfiguration represents - properties: - fsType: - type: string - readOnly: - type: boolean - secretRef: - description: 'LocalObjectReferenceApplyConfiguration represents ' - properties: - name: - type: string - type: object - volumeName: - type: string - volumeNamespace: - type: string - type: object - vsphereVolume: - description: VsphereVirtualDiskVolumeSourceApplyConfiguration r - properties: - fsType: - type: string - storagePolicyID: - type: string - storagePolicyName: - type: string - volumePath: - type: string - type: object - type: object - required: - - bucketConfig - - serviceAccountName - - workVolume - type: object - restorePoint: - description: RestorePoint is the target date and time to restor - format: date-time - type: string - sourceName: - description: SourceName is the name of the source `MySQLCluster - minLength: 1 - type: string - sourceNamespace: - description: SourceNamespace is the namespace of the source `My - minLength: 1 - type: string - required: - - jobConfig - - restorePoint - - sourceName - - sourceNamespace - type: object - serverIDBase: - description: 'ServerIDBase, if set, will become the base number ' - format: int32 - type: integer - serviceTemplate: - description: ServiceTemplate is a `Service` template for both p - properties: - metadata: - description: Standard object's metadata. - properties: - annotations: - additionalProperties: - type: string - description: Annotations is a map of string keys and values. - type: object - labels: - additionalProperties: - type: string - description: Labels is a map of string keys and values. - type: object - name: - description: Name is the name of the object. - type: string - type: object - spec: - description: Spec is the ServiceSpec - properties: - allocateLoadBalancerNodePorts: - type: boolean - clusterIP: - type: string - clusterIPs: - items: - type: string - type: array - externalIPs: - items: - type: string - type: array - externalName: - type: string - externalTrafficPolicy: - description: ServiceExternalTrafficPolicy describes how nodes d - type: string - healthCheckNodePort: - format: int32 - type: integer - internalTrafficPolicy: - description: ServiceInternalTrafficPolicy describes how nodes d - type: string - ipFamilies: - items: - description: IPFamily represents the IP Family (IPv4 or IPv6). - type: string - type: array - ipFamilyPolicy: - description: IPFamilyPolicy represents the dual-stack-ness requ - type: string - loadBalancerClass: - type: string - loadBalancerIP: - type: string - loadBalancerSourceRanges: - items: - type: string - type: array - ports: - items: - description: ServicePortApplyConfiguration represents an declar - properties: - appProtocol: - type: string - name: - type: string - nodePort: - format: int32 - type: integer - port: - format: int32 - type: integer - protocol: - default: TCP - type: string - targetPort: - anyOf: - - type: integer - - type: string - x-kubernetes-int-or-string: true - type: object - type: array - publishNotReadyAddresses: - type: boolean - selector: - additionalProperties: - type: string - type: object - sessionAffinity: - description: Session Affinity Type string - type: string - sessionAffinityConfig: - description: SessionAffinityConfigApplyConfiguration represents - properties: - clientIP: - description: ClientIPConfigApplyConfiguration represents an dec - properties: - timeoutSeconds: - format: int32 - type: integer - type: object - type: object - type: - description: 'Service Type string describes ingress methods for ' - type: string - type: object - type: object - startupDelaySeconds: - default: 3600 - description: StartupWaitSeconds is the maximum duration to wait - format: int32 - minimum: 0 - type: integer - volumeClaimTemplates: - description: VolumeClaimTemplates is a list of `PersistentVolum - items: - description: 'PersistentVolumeClaim is a user''s request for and ' - properties: - metadata: - description: Standard object's metadata. - properties: - annotations: - additionalProperties: - type: string - description: Annotations is a map of string keys and values. - type: object - labels: - additionalProperties: - type: string - description: Labels is a map of string keys and values. - type: object - name: - description: Name is the name of the object. - type: string - type: object - spec: - description: Spec defines the desired characteristics of a volu - properties: - accessModes: - items: - type: string - type: array - dataSource: - description: TypedLocalObjectReferenceApplyConfiguration repres - properties: - apiGroup: - type: string - kind: - type: string - name: - type: string - type: object - dataSourceRef: - description: 'TypedObjectReferenceApplyConfiguration represents ' - properties: - apiGroup: - type: string - kind: - type: string - name: - type: string - namespace: - type: string - type: object - resources: - description: 'ResourceRequirementsApplyConfiguration represents ' - properties: - claims: - items: - description: ResourceClaimApplyConfiguration represents an decl - properties: - name: - type: string - type: object - type: array - limits: - 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 - description: ResourceList is a set of (resource name, quantity) - type: object - requests: - 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 - description: ResourceList is a set of (resource name, quantity) - type: object - type: object - selector: - description: LabelSelectorApplyConfiguration represents an decl - properties: - matchExpressions: - items: - description: LabelSelectorRequirementApplyConfiguration represe - properties: - key: - type: string - operator: - description: 'A label selector operator is the set of operators ' - type: string - values: - items: - type: string - type: array - type: object - type: array - matchLabels: - additionalProperties: - type: string - type: object - type: object - storageClassName: - type: string - volumeMode: - description: PersistentVolumeMode describes how a volume is int - type: string - volumeName: - type: string - type: object - required: - - metadata - - spec - type: object - minItems: 1 - type: array - required: - - podTemplate - - volumeClaimTemplates - type: object - status: - description: MySQLClusterStatus defines the observed state of M - properties: - backup: - description: Backup is the status of the last successful backup - properties: - binlogFilename: - description: BinlogFilename is the binlog filename that the bac - type: string - binlogSize: - description: BinlogSize is the size in bytes of a tarball of bi - format: int64 - type: integer - dumpSize: - description: DumpSize is the size in bytes of a full dump of da - format: int64 - type: integer - elapsed: - description: Elapsed is the time spent on the backup. - type: string - gtidSet: - description: GTIDSet is the GTID set of the full dump of databa - type: string - sourceIndex: - description: SourceIndex is the ordinal of the backup source in - type: integer - sourceUUID: - description: SourceUUID is the `server_uuid` of the backup sour - type: string - time: - description: The time of the backup. - format: date-time - nullable: true - type: string - warnings: - description: Warnings are list of warnings from the last backup - items: - type: string - nullable: true - type: array - workDirUsage: - description: WorkDirUsage is the max usage in bytes of the woki - format: int64 - type: integer - required: - - binlogFilename - - binlogSize - - dumpSize - - elapsed - - gtidSet - - sourceIndex - - sourceUUID - - time - - warnings - - workDirUsage - type: object - cloned: - description: Cloned indicates if the initial cloning from an ex - type: boolean - conditions: - description: Conditions is an array of conditions. - items: - description: Condition contains details for one aspect of the c - properties: - lastTransitionTime: - description: 'lastTransitionTime is the last time the condition ' - format: date-time - type: string - message: - description: message is a human readable message indicating det - maxLength: 32768 - type: string - observedGeneration: - description: observedGeneration represents the .metadata. - format: int64 - minimum: 0 - type: integer - reason: - description: reason contains a programmatic identifier indicati - maxLength: 1024 - minLength: 1 - pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$ - type: string - status: - description: status of the condition, one of True, False, Unkno - enum: - - "True" - - "False" - - Unknown - type: string - type: - description: type of condition in CamelCase or in foo.example. - maxLength: 316 - pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$ - type: string - required: - - lastTransitionTime - - message - - reason - - status - - type - type: object - type: array - currentPrimaryIndex: - description: CurrentPrimaryIndex is the index of the current pr - type: integer - errantReplicaList: - description: ErrantReplicaList is the list of indices of errant - items: - type: integer - type: array - errantReplicas: - description: ErrantReplicas is the number of instances that hav - type: integer - reconcileInfo: - description: ReconcileInfo represents version information for r - properties: - generation: - description: Generation is the `metadata. - format: int64 - type: integer - reconcileVersion: - description: ReconcileVersion is the version of the operator re - type: integer - type: object - restoredTime: - description: 'RestoredTime is the time when the cluster data is ' - format: date-time - type: string - syncedReplicas: - description: SyncedReplicas is the number of synced instances i - type: integer - required: - - currentPrimaryIndex - type: object - type: object - served: true - storage: false - subresources: - status: {} + storage: true +--- +apiVersion: apiextensions.k8s.io/v1 +kind: CustomResourceDefinition +metadata: + annotations: + cert-manager.io/inject-ca-from: '{{ .Release.Namespace }}/moco-serving-cert' + controller-gen.kubebuilder.io/version: v0.12.0 + labels: + app.kubernetes.io/managed-by: '{{ .Release.Service }}' + app.kubernetes.io/name: '{{ include "moco.name" . }}' + app.kubernetes.io/version: '{{ .Chart.AppVersion }}' + helm.sh/chart: '{{ include "moco.chart" . }}' + name: mysqlclusters.moco.cybozu.com +spec: + conversion: + strategy: Webhook + webhook: + clientConfig: + service: + name: moco-webhook-service + namespace: '{{ .Release.Namespace }}' + path: /convert + conversionReviewVersions: + - v1 + group: moco.cybozu.com + names: + kind: MySQLCluster + listKind: MySQLClusterList + plural: mysqlclusters + singular: mysqlcluster + scope: Namespaced + versions: - additionalPrinterColumns: - jsonPath: .status.conditions[?(@.type=='Available')].status name: Available diff --git a/cmd/moco-controller/cmd/run.go b/cmd/moco-controller/cmd/run.go index fc0ba1e4c..9d1a0847a 100644 --- a/cmd/moco-controller/cmd/run.go +++ b/cmd/moco-controller/cmd/run.go @@ -5,7 +5,6 @@ import ( "fmt" "time" - mocov1beta1 "github.com/cybozu-go/moco/api/v1beta1" mocov1beta2 "github.com/cybozu-go/moco/api/v1beta2" "github.com/cybozu-go/moco/clustering" "github.com/cybozu-go/moco/controllers" @@ -31,7 +30,6 @@ var ( func init() { utilruntime.Must(clientgoscheme.AddToScheme(scheme)) - utilruntime.Must(mocov1beta1.AddToScheme(scheme)) utilruntime.Must(mocov1beta2.AddToScheme(scheme)) // +kubebuilder:scaffold:scheme } @@ -122,11 +120,6 @@ func subMain(ns, addr string, port int) error { return err } - if err = (&mocov1beta1.MySQLCluster{}).SetupWebhookWithManager(mgr); err != nil { - setupLog.Error(err, "unable to setup webhook", "webhook", "MySQLCluster") - return err - } - if err = (&mocov1beta2.MySQLCluster{}).SetupWebhookWithManager(mgr); err != nil { setupLog.Error(err, "unable to setup webhook", "webhook", "MySQLCluster") return err diff --git a/config/crd/bases/moco.cybozu.com_backuppolicies.yaml b/config/crd/bases/moco.cybozu.com_backuppolicies.yaml index fda95959c..0b13b71c3 100644 --- a/config/crd/bases/moco.cybozu.com_backuppolicies.yaml +++ b/config/crd/bases/moco.cybozu.com_backuppolicies.yaml @@ -14,2198 +14,6 @@ spec: singular: backuppolicy scope: Namespaced versions: - - deprecated: true - name: v1beta1 - schema: - openAPIV3Schema: - description: 'BackupPolicy is a namespaced resource that should ' - properties: - apiVersion: - description: APIVersion defines the versioned schema of this re - type: string - kind: - description: Kind is a string value representing the REST resou - type: string - metadata: - type: object - spec: - description: BackupPolicySpec defines the configuration items f - properties: - activeDeadlineSeconds: - description: 'Specifies the duration in seconds relative to the ' - format: int64 - nullable: true - type: integer - backoffLimit: - description: Specifies the number of retries before marking thi - format: int32 - minimum: 0 - nullable: true - type: integer - concurrencyPolicy: - default: Allow - description: 'Specifies how to treat concurrent executions of a ' - enum: - - Allow - - Forbid - - Replace - type: string - failedJobsHistoryLimit: - description: The number of failed finished jobs to retain. - format: int32 - minimum: 0 - nullable: true - type: integer - jobConfig: - description: Specifies parameters for backup Pod. - properties: - affinity: - description: If specified, the pod's scheduling constraints. - properties: - nodeAffinity: - description: NodeAffinityApplyConfiguration represents an - decla - properties: - preferredDuringSchedulingIgnoredDuringExecution: - items: - description: PreferredSchedulingTermApplyConfiguration - represen - properties: - preference: - description: NodeSelectorTermApplyConfiguration - represents an d - properties: - matchExpressions: - items: - description: NodeSelectorRequirementApplyConfiguration - represen - properties: - key: - type: string - operator: - description: A node selector operator - is the set of operators t - type: string - values: - items: - type: string - type: array - type: object - type: array - matchFields: - items: - description: NodeSelectorRequirementApplyConfiguration - represen - properties: - key: - type: string - operator: - description: A node selector operator - is the set of operators t - type: string - values: - items: - type: string - type: array - type: object - type: array - type: object - weight: - format: int32 - type: integer - type: object - type: array - requiredDuringSchedulingIgnoredDuringExecution: - description: NodeSelectorApplyConfiguration represents - an decla - properties: - nodeSelectorTerms: - items: - description: NodeSelectorTermApplyConfiguration - represents an d - properties: - matchExpressions: - items: - description: NodeSelectorRequirementApplyConfiguration - represen - properties: - key: - type: string - operator: - description: A node selector operator - is the set of operators t - type: string - values: - items: - type: string - type: array - type: object - type: array - matchFields: - items: - description: NodeSelectorRequirementApplyConfiguration - represen - properties: - key: - type: string - operator: - description: A node selector operator - is the set of operators t - type: string - values: - items: - type: string - type: array - type: object - type: array - type: object - type: array - type: object - type: object - podAffinity: - description: PodAffinityApplyConfiguration represents an declar - properties: - preferredDuringSchedulingIgnoredDuringExecution: - items: - description: WeightedPodAffinityTermApplyConfiguration - represen - properties: - podAffinityTerm: - description: PodAffinityTermApplyConfiguration represents - an de - properties: - labelSelector: - description: LabelSelectorApplyConfiguration - represents an decl - properties: - matchExpressions: - items: - description: LabelSelectorRequirementApplyConfiguration - represe - properties: - key: - type: string - operator: - description: 'A label selector operator - is the set of operators ' - type: string - values: - items: - type: string - type: array - type: object - type: array - matchLabels: - additionalProperties: - type: string - type: object - type: object - namespaceSelector: - description: LabelSelectorApplyConfiguration - represents an decl - properties: - matchExpressions: - items: - description: LabelSelectorRequirementApplyConfiguration - represe - properties: - key: - type: string - operator: - description: 'A label selector operator - is the set of operators ' - type: string - values: - items: - type: string - type: array - type: object - type: array - matchLabels: - additionalProperties: - type: string - type: object - type: object - namespaces: - items: - type: string - type: array - topologyKey: - type: string - type: object - weight: - format: int32 - type: integer - type: object - type: array - requiredDuringSchedulingIgnoredDuringExecution: - items: - description: PodAffinityTermApplyConfiguration represents - an de - properties: - labelSelector: - description: LabelSelectorApplyConfiguration represents - an decl - properties: - matchExpressions: - items: - description: LabelSelectorRequirementApplyConfiguration - represe - properties: - key: - type: string - operator: - description: 'A label selector operator - is the set of operators ' - type: string - values: - items: - type: string - type: array - type: object - type: array - matchLabels: - additionalProperties: - type: string - type: object - type: object - namespaceSelector: - description: LabelSelectorApplyConfiguration represents - an decl - properties: - matchExpressions: - items: - description: LabelSelectorRequirementApplyConfiguration - represe - properties: - key: - type: string - operator: - description: 'A label selector operator - is the set of operators ' - type: string - values: - items: - type: string - type: array - type: object - type: array - matchLabels: - additionalProperties: - type: string - type: object - type: object - namespaces: - items: - type: string - type: array - topologyKey: - type: string - type: object - type: array - type: object - podAntiAffinity: - description: PodAntiAffinityApplyConfiguration represents - an de - properties: - preferredDuringSchedulingIgnoredDuringExecution: - items: - description: WeightedPodAffinityTermApplyConfiguration - represen - properties: - podAffinityTerm: - description: PodAffinityTermApplyConfiguration represents - an de - properties: - labelSelector: - description: LabelSelectorApplyConfiguration - represents an decl - properties: - matchExpressions: - items: - description: LabelSelectorRequirementApplyConfiguration - represe - properties: - key: - type: string - operator: - description: 'A label selector operator - is the set of operators ' - type: string - values: - items: - type: string - type: array - type: object - type: array - matchLabels: - additionalProperties: - type: string - type: object - type: object - namespaceSelector: - description: LabelSelectorApplyConfiguration - represents an decl - properties: - matchExpressions: - items: - description: LabelSelectorRequirementApplyConfiguration - represe - properties: - key: - type: string - operator: - description: 'A label selector operator - is the set of operators ' - type: string - values: - items: - type: string - type: array - type: object - type: array - matchLabels: - additionalProperties: - type: string - type: object - type: object - namespaces: - items: - type: string - type: array - topologyKey: - type: string - type: object - weight: - format: int32 - type: integer - type: object - type: array - requiredDuringSchedulingIgnoredDuringExecution: - items: - description: PodAffinityTermApplyConfiguration represents - an de - properties: - labelSelector: - description: LabelSelectorApplyConfiguration represents - an decl - properties: - matchExpressions: - items: - description: LabelSelectorRequirementApplyConfiguration - represe - properties: - key: - type: string - operator: - description: 'A label selector operator - is the set of operators ' - type: string - values: - items: - type: string - type: array - type: object - type: array - matchLabels: - additionalProperties: - type: string - type: object - type: object - namespaceSelector: - description: LabelSelectorApplyConfiguration represents - an decl - properties: - matchExpressions: - items: - description: LabelSelectorRequirementApplyConfiguration - represe - properties: - key: - type: string - operator: - description: 'A label selector operator - is the set of operators ' - type: string - values: - items: - type: string - type: array - type: object - type: array - matchLabels: - additionalProperties: - type: string - type: object - type: object - namespaces: - items: - type: string - type: array - topologyKey: - type: string - type: object - type: array - type: object - type: object - bucketConfig: - description: Specifies how to access an object storage bucket. - properties: - backendType: - default: s3 - description: BackendType is an identifier for the object storag - enum: - - s3 - - gcs - type: string - bucketName: - description: The name of the bucket - minLength: 1 - type: string - caCert: - description: Path to SSL CA certificate file used in addition - t - type: string - endpointURL: - description: The API endpoint URL. - pattern: ^https?://.* - type: string - region: - description: The region of the bucket. - type: string - usePathStyle: - description: 'Allows you to enable the client to use path-style ' - type: boolean - required: - - bucketName - type: object - cpu: - anyOf: - - type: integer - - type: string - default: 4 - description: CPU is the amount of CPU requested for the Pod. - nullable: true - pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ - x-kubernetes-int-or-string: true - env: - description: List of environment variables to set in the contai - items: - description: EnvVarApplyConfiguration is the type defined to - im - properties: - name: - type: string - value: - type: string - valueFrom: - description: EnvVarSourceApplyConfiguration represents an - decla - properties: - configMapKeyRef: - description: 'ConfigMapKeySelectorApplyConfiguration - represents ' - properties: - key: - type: string - name: - type: string - optional: - type: boolean - type: object - fieldRef: - description: ObjectFieldSelectorApplyConfiguration represents - a - properties: - apiVersion: - type: string - fieldPath: - type: string - type: object - resourceFieldRef: - description: ResourceFieldSelectorApplyConfiguration - represents - properties: - containerName: - type: string - divisor: - 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 - resource: - type: string - type: object - secretKeyRef: - description: 'SecretKeySelectorApplyConfiguration represents - an ' - properties: - key: - type: string - name: - type: string - optional: - type: boolean - type: object - type: object - type: object - type: array - envFrom: - description: 'List of sources to populate environment variables ' - items: - description: EnvFromSourceApplyConfiguration is the type define - properties: - configMapRef: - description: ConfigMapEnvSourceApplyConfiguration represents - an - properties: - name: - type: string - optional: - type: boolean - type: object - prefix: - type: string - secretRef: - description: SecretEnvSourceApplyConfiguration represents - an de - properties: - name: - type: string - optional: - type: boolean - type: object - type: object - type: array - maxCpu: - anyOf: - - type: integer - - type: string - description: MaxCPU is the amount of maximum CPU for the Pod. - nullable: true - pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ - x-kubernetes-int-or-string: true - maxMemory: - anyOf: - - type: integer - - type: string - description: 'MaxMemory is the amount of maximum memory for the ' - nullable: true - pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ - x-kubernetes-int-or-string: true - memory: - anyOf: - - type: integer - - type: string - default: 4Gi - description: Memory is the amount of memory requested for the - P - nullable: true - pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ - x-kubernetes-int-or-string: true - serviceAccountName: - description: ServiceAccountName specifies the ServiceAccount to - minLength: 1 - type: string - threads: - default: 4 - description: Threads is the number of threads used for backup - o - minimum: 1 - type: integer - volumeMounts: - description: VolumeMounts describes a list of volume mounts tha - items: - description: 'VolumeMountApplyConfiguration is the type defined ' - properties: - mountPath: - type: string - mountPropagation: - description: MountPropagationMode describes mount propagation. - type: string - name: - type: string - readOnly: - type: boolean - subPath: - type: string - subPathExpr: - type: string - type: object - type: array - volumes: - description: Volumes defines the list of volumes that can be mo - items: - description: VolumeApplyConfiguration is the type defined to - im - properties: - awsElasticBlockStore: - description: AWSElasticBlockStoreVolumeSourceApplyConfiguration - properties: - fsType: - type: string - partition: - format: int32 - type: integer - readOnly: - type: boolean - volumeID: - type: string - type: object - azureDisk: - description: AzureDiskVolumeSourceApplyConfiguration represents - properties: - cachingMode: - type: string - diskName: - type: string - diskURI: - type: string - fsType: - type: string - kind: - type: string - readOnly: - type: boolean - type: object - azureFile: - description: AzureFileVolumeSourceApplyConfiguration represents - properties: - readOnly: - type: boolean - secretName: - type: string - shareName: - type: string - type: object - cephfs: - description: CephFSVolumeSourceApplyConfiguration represents - an - properties: - monitors: - items: - type: string - type: array - path: - type: string - readOnly: - type: boolean - secretFile: - type: string - secretRef: - description: 'LocalObjectReferenceApplyConfiguration - represents ' - properties: - name: - type: string - type: object - user: - type: string - type: object - cinder: - description: CinderVolumeSourceApplyConfiguration represents - an - properties: - fsType: - type: string - readOnly: - type: boolean - secretRef: - description: 'LocalObjectReferenceApplyConfiguration - represents ' - properties: - name: - type: string - type: object - volumeID: - type: string - type: object - configMap: - description: ConfigMapVolumeSourceApplyConfiguration represents - properties: - defaultMode: - format: int32 - type: integer - items: - items: - description: KeyToPathApplyConfiguration represents - an declarat - properties: - key: - type: string - mode: - format: int32 - type: integer - path: - type: string - type: object - type: array - name: - type: string - optional: - type: boolean - type: object - csi: - description: CSIVolumeSourceApplyConfiguration represents - an de - properties: - driver: - type: string - fsType: - type: string - nodePublishSecretRef: - description: 'LocalObjectReferenceApplyConfiguration - represents ' - properties: - name: - type: string - type: object - readOnly: - type: boolean - volumeAttributes: - additionalProperties: - type: string - type: object - type: object - downwardAPI: - description: DownwardAPIVolumeSourceApplyConfiguration represen - properties: - defaultMode: - format: int32 - type: integer - items: - items: - description: DownwardAPIVolumeFileApplyConfiguration - represents - properties: - fieldRef: - description: ObjectFieldSelectorApplyConfiguration - represents a - properties: - apiVersion: - type: string - fieldPath: - type: string - type: object - mode: - format: int32 - type: integer - path: - type: string - resourceFieldRef: - description: ResourceFieldSelectorApplyConfiguration - represents - properties: - containerName: - type: string - divisor: - 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 - resource: - type: string - type: object - type: object - type: array - type: object - emptyDir: - description: 'EmptyDirVolumeSourceApplyConfiguration represents ' - properties: - medium: - description: StorageMedium defines ways that storage - can be all - type: string - sizeLimit: - 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 - ephemeral: - description: EphemeralVolumeSourceApplyConfiguration represents - properties: - volumeClaimTemplate: - description: PersistentVolumeClaimTemplateApplyConfiguration - re - properties: - metadata: - description: ObjectMetaApplyConfiguration represents - an declara - properties: - annotations: - additionalProperties: - type: string - type: object - creationTimestamp: - format: date-time - type: string - deletionGracePeriodSeconds: - format: int64 - type: integer - deletionTimestamp: - format: date-time - type: string - finalizers: - items: - type: string - type: array - generateName: - type: string - generation: - format: int64 - type: integer - labels: - additionalProperties: - type: string - type: object - name: - type: string - namespace: - type: string - ownerReferences: - items: - description: OwnerReferenceApplyConfiguration - represents an dec - properties: - apiVersion: - type: string - blockOwnerDeletion: - type: boolean - controller: - type: boolean - kind: - type: string - name: - type: string - uid: - description: UID is a type that holds - unique ID values, includi - type: string - type: object - type: array - resourceVersion: - type: string - uid: - description: UID is a type that holds unique - ID values, includi - type: string - type: object - spec: - description: PersistentVolumeClaimSpecApplyConfiguration - repres - properties: - accessModes: - items: - type: string - type: array - dataSource: - description: TypedLocalObjectReferenceApplyConfiguration - repres - properties: - apiGroup: - type: string - kind: - type: string - name: - type: string - type: object - dataSourceRef: - description: 'TypedObjectReferenceApplyConfiguration - represents ' - properties: - apiGroup: - type: string - kind: - type: string - name: - type: string - namespace: - type: string - type: object - resources: - description: 'ResourceRequirementsApplyConfiguration - represents ' - properties: - claims: - items: - description: ResourceClaimApplyConfiguration - represents an decl - properties: - name: - type: string - type: object - type: array - limits: - 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 - description: ResourceList is a set of (resource - name, quantity) - type: object - requests: - 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 - description: ResourceList is a set of (resource - name, quantity) - type: object - type: object - selector: - description: LabelSelectorApplyConfiguration - represents an decl - properties: - matchExpressions: - items: - description: LabelSelectorRequirementApplyConfiguration - represe - properties: - key: - type: string - operator: - description: 'A label selector operator - is the set of operators ' - type: string - values: - items: - type: string - type: array - type: object - type: array - matchLabels: - additionalProperties: - type: string - type: object - type: object - storageClassName: - type: string - volumeMode: - description: PersistentVolumeMode describes - how a volume is int - type: string - volumeName: - type: string - type: object - type: object - type: object - fc: - description: FCVolumeSourceApplyConfiguration represents - an dec - properties: - fsType: - type: string - lun: - format: int32 - type: integer - readOnly: - type: boolean - targetWWNs: - items: - type: string - type: array - wwids: - items: - type: string - type: array - type: object - flexVolume: - description: FlexVolumeSourceApplyConfiguration represents - an d - properties: - driver: - type: string - fsType: - type: string - options: - additionalProperties: - type: string - type: object - readOnly: - type: boolean - secretRef: - description: 'LocalObjectReferenceApplyConfiguration - represents ' - properties: - name: - type: string - type: object - type: object - flocker: - description: FlockerVolumeSourceApplyConfiguration represents - a - properties: - datasetName: - type: string - datasetUUID: - type: string - type: object - gcePersistentDisk: - description: GCEPersistentDiskVolumeSourceApplyConfiguration - re - properties: - fsType: - type: string - partition: - format: int32 - type: integer - pdName: - type: string - readOnly: - type: boolean - type: object - gitRepo: - description: GitRepoVolumeSourceApplyConfiguration represents - a - properties: - directory: - type: string - repository: - type: string - revision: - type: string - type: object - glusterfs: - description: GlusterfsVolumeSourceApplyConfiguration represents - properties: - endpoints: - type: string - path: - type: string - readOnly: - type: boolean - type: object - hostPath: - description: 'HostPathVolumeSourceApplyConfiguration represents ' - properties: - path: - type: string - type: - type: string - type: object - iscsi: - description: 'ISCSIVolumeSourceApplyConfiguration represents - an ' - properties: - chapAuthDiscovery: - type: boolean - chapAuthSession: - type: boolean - fsType: - type: string - initiatorName: - type: string - iqn: - type: string - iscsiInterface: - type: string - lun: - format: int32 - type: integer - portals: - items: - type: string - type: array - readOnly: - type: boolean - secretRef: - description: 'LocalObjectReferenceApplyConfiguration - represents ' - properties: - name: - type: string - type: object - targetPortal: - type: string - type: object - name: - type: string - nfs: - description: NFSVolumeSourceApplyConfiguration represents - an de - properties: - path: - type: string - readOnly: - type: boolean - server: - type: string - type: object - persistentVolumeClaim: - description: PersistentVolumeClaimVolumeSourceApplyConfiguratio - properties: - claimName: - type: string - readOnly: - type: boolean - type: object - photonPersistentDisk: - description: PhotonPersistentDiskVolumeSourceApplyConfiguration - properties: - fsType: - type: string - pdID: - type: string - type: object - portworxVolume: - description: 'PortworxVolumeSourceApplyConfiguration represents ' - properties: - fsType: - type: string - readOnly: - type: boolean - volumeID: - type: string - type: object - projected: - description: ProjectedVolumeSourceApplyConfiguration represents - properties: - defaultMode: - format: int32 - type: integer - sources: - items: - description: VolumeProjectionApplyConfiguration represents - an d - properties: - configMap: - description: ConfigMapProjectionApplyConfiguration - represents a - properties: - items: - items: - description: KeyToPathApplyConfiguration - represents an declarat - properties: - key: - type: string - mode: - format: int32 - type: integer - path: - type: string - type: object - type: array - name: - type: string - optional: - type: boolean - type: object - downwardAPI: - description: DownwardAPIProjectionApplyConfiguration - represents - properties: - items: - items: - description: DownwardAPIVolumeFileApplyConfiguration - represents - properties: - fieldRef: - description: ObjectFieldSelectorApplyConfiguration - represents a - properties: - apiVersion: - type: string - fieldPath: - type: string - type: object - mode: - format: int32 - type: integer - path: - type: string - resourceFieldRef: - description: ResourceFieldSelectorApplyConfiguration - represents - properties: - containerName: - type: string - divisor: - 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 - resource: - type: string - type: object - type: object - type: array - type: object - secret: - description: SecretProjectionApplyConfiguration - represents an d - properties: - items: - items: - description: KeyToPathApplyConfiguration - represents an declarat - properties: - key: - type: string - mode: - format: int32 - type: integer - path: - type: string - type: object - type: array - name: - type: string - optional: - type: boolean - type: object - serviceAccountToken: - description: ServiceAccountTokenProjectionApplyConfiguration - re - properties: - audience: - type: string - expirationSeconds: - format: int64 - type: integer - path: - type: string - type: object - type: object - type: array - type: object - quobyte: - description: QuobyteVolumeSourceApplyConfiguration represents - a - properties: - group: - type: string - readOnly: - type: boolean - registry: - type: string - tenant: - type: string - user: - type: string - volume: - type: string - type: object - rbd: - description: RBDVolumeSourceApplyConfiguration represents - an de - properties: - fsType: - type: string - image: - type: string - keyring: - type: string - monitors: - items: - type: string - type: array - pool: - type: string - readOnly: - type: boolean - secretRef: - description: 'LocalObjectReferenceApplyConfiguration - represents ' - properties: - name: - type: string - type: object - user: - type: string - type: object - scaleIO: - description: ScaleIOVolumeSourceApplyConfiguration represents - a - properties: - fsType: - type: string - gateway: - type: string - protectionDomain: - type: string - readOnly: - type: boolean - secretRef: - description: 'LocalObjectReferenceApplyConfiguration - represents ' - properties: - name: - type: string - type: object - sslEnabled: - type: boolean - storageMode: - type: string - storagePool: - type: string - system: - type: string - volumeName: - type: string - type: object - secret: - description: SecretVolumeSourceApplyConfiguration represents - an - properties: - defaultMode: - format: int32 - type: integer - items: - items: - description: KeyToPathApplyConfiguration represents - an declarat - properties: - key: - type: string - mode: - format: int32 - type: integer - path: - type: string - type: object - type: array - optional: - type: boolean - secretName: - type: string - type: object - storageos: - description: StorageOSVolumeSourceApplyConfiguration represents - properties: - fsType: - type: string - readOnly: - type: boolean - secretRef: - description: 'LocalObjectReferenceApplyConfiguration - represents ' - properties: - name: - type: string - type: object - volumeName: - type: string - volumeNamespace: - type: string - type: object - vsphereVolume: - description: VsphereVirtualDiskVolumeSourceApplyConfiguration - r - properties: - fsType: - type: string - storagePolicyID: - type: string - storagePolicyName: - type: string - volumePath: - type: string - type: object - type: object - type: array - workVolume: - description: WorkVolume is the volume source for the working di - properties: - awsElasticBlockStore: - description: AWSElasticBlockStoreVolumeSourceApplyConfiguration - properties: - fsType: - type: string - partition: - format: int32 - type: integer - readOnly: - type: boolean - volumeID: - type: string - type: object - azureDisk: - description: AzureDiskVolumeSourceApplyConfiguration represents - properties: - cachingMode: - type: string - diskName: - type: string - diskURI: - type: string - fsType: - type: string - kind: - type: string - readOnly: - type: boolean - type: object - azureFile: - description: AzureFileVolumeSourceApplyConfiguration represents - properties: - readOnly: - type: boolean - secretName: - type: string - shareName: - type: string - type: object - cephfs: - description: CephFSVolumeSourceApplyConfiguration represents - an - properties: - monitors: - items: - type: string - type: array - path: - type: string - readOnly: - type: boolean - secretFile: - type: string - secretRef: - description: 'LocalObjectReferenceApplyConfiguration represents ' - properties: - name: - type: string - type: object - user: - type: string - type: object - cinder: - description: CinderVolumeSourceApplyConfiguration represents - an - properties: - fsType: - type: string - readOnly: - type: boolean - secretRef: - description: 'LocalObjectReferenceApplyConfiguration represents ' - properties: - name: - type: string - type: object - volumeID: - type: string - type: object - configMap: - description: ConfigMapVolumeSourceApplyConfiguration represents - properties: - defaultMode: - format: int32 - type: integer - items: - items: - description: KeyToPathApplyConfiguration represents - an declarat - properties: - key: - type: string - mode: - format: int32 - type: integer - path: - type: string - type: object - type: array - name: - type: string - optional: - type: boolean - type: object - csi: - description: CSIVolumeSourceApplyConfiguration represents - an de - properties: - driver: - type: string - fsType: - type: string - nodePublishSecretRef: - description: 'LocalObjectReferenceApplyConfiguration represents ' - properties: - name: - type: string - type: object - readOnly: - type: boolean - volumeAttributes: - additionalProperties: - type: string - type: object - type: object - downwardAPI: - description: DownwardAPIVolumeSourceApplyConfiguration represen - properties: - defaultMode: - format: int32 - type: integer - items: - items: - description: DownwardAPIVolumeFileApplyConfiguration - represents - properties: - fieldRef: - description: ObjectFieldSelectorApplyConfiguration - represents a - properties: - apiVersion: - type: string - fieldPath: - type: string - type: object - mode: - format: int32 - type: integer - path: - type: string - resourceFieldRef: - description: ResourceFieldSelectorApplyConfiguration - represents - properties: - containerName: - type: string - divisor: - 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 - resource: - type: string - type: object - type: object - type: array - type: object - emptyDir: - description: 'EmptyDirVolumeSourceApplyConfiguration represents ' - properties: - medium: - description: StorageMedium defines ways that storage can - be all - type: string - sizeLimit: - 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 - ephemeral: - description: EphemeralVolumeSourceApplyConfiguration represents - properties: - volumeClaimTemplate: - description: PersistentVolumeClaimTemplateApplyConfiguration - re - properties: - metadata: - description: ObjectMetaApplyConfiguration represents - an declara - properties: - annotations: - additionalProperties: - type: string - type: object - creationTimestamp: - format: date-time - type: string - deletionGracePeriodSeconds: - format: int64 - type: integer - deletionTimestamp: - format: date-time - type: string - finalizers: - items: - type: string - type: array - generateName: - type: string - generation: - format: int64 - type: integer - labels: - additionalProperties: - type: string - type: object - name: - type: string - namespace: - type: string - ownerReferences: - items: - description: OwnerReferenceApplyConfiguration - represents an dec - properties: - apiVersion: - type: string - blockOwnerDeletion: - type: boolean - controller: - type: boolean - kind: - type: string - name: - type: string - uid: - description: UID is a type that holds unique - ID values, includi - type: string - type: object - type: array - resourceVersion: - type: string - uid: - description: UID is a type that holds unique ID - values, includi - type: string - type: object - spec: - description: PersistentVolumeClaimSpecApplyConfiguration - repres - properties: - accessModes: - items: - type: string - type: array - dataSource: - description: TypedLocalObjectReferenceApplyConfiguration - repres - properties: - apiGroup: - type: string - kind: - type: string - name: - type: string - type: object - dataSourceRef: - description: 'TypedObjectReferenceApplyConfiguration - represents ' - properties: - apiGroup: - type: string - kind: - type: string - name: - type: string - namespace: - type: string - type: object - resources: - description: 'ResourceRequirementsApplyConfiguration - represents ' - properties: - claims: - items: - description: ResourceClaimApplyConfiguration - represents an decl - properties: - name: - type: string - type: object - type: array - limits: - 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 - description: ResourceList is a set of (resource - name, quantity) - type: object - requests: - 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 - description: ResourceList is a set of (resource - name, quantity) - type: object - type: object - selector: - description: LabelSelectorApplyConfiguration represents - an decl - properties: - matchExpressions: - items: - description: LabelSelectorRequirementApplyConfiguration - represe - properties: - key: - type: string - operator: - description: 'A label selector operator - is the set of operators ' - type: string - values: - items: - type: string - type: array - type: object - type: array - matchLabels: - additionalProperties: - type: string - type: object - type: object - storageClassName: - type: string - volumeMode: - description: PersistentVolumeMode describes how - a volume is int - type: string - volumeName: - type: string - type: object - type: object - type: object - fc: - description: FCVolumeSourceApplyConfiguration represents an - dec - properties: - fsType: - type: string - lun: - format: int32 - type: integer - readOnly: - type: boolean - targetWWNs: - items: - type: string - type: array - wwids: - items: - type: string - type: array - type: object - flexVolume: - description: FlexVolumeSourceApplyConfiguration represents - an d - properties: - driver: - type: string - fsType: - type: string - options: - additionalProperties: - type: string - type: object - readOnly: - type: boolean - secretRef: - description: 'LocalObjectReferenceApplyConfiguration represents ' - properties: - name: - type: string - type: object - type: object - flocker: - description: FlockerVolumeSourceApplyConfiguration represents - a - properties: - datasetName: - type: string - datasetUUID: - type: string - type: object - gcePersistentDisk: - description: GCEPersistentDiskVolumeSourceApplyConfiguration - re - properties: - fsType: - type: string - partition: - format: int32 - type: integer - pdName: - type: string - readOnly: - type: boolean - type: object - gitRepo: - description: GitRepoVolumeSourceApplyConfiguration represents - a - properties: - directory: - type: string - repository: - type: string - revision: - type: string - type: object - glusterfs: - description: GlusterfsVolumeSourceApplyConfiguration represents - properties: - endpoints: - type: string - path: - type: string - readOnly: - type: boolean - type: object - hostPath: - description: 'HostPathVolumeSourceApplyConfiguration represents ' - properties: - path: - type: string - type: - type: string - type: object - iscsi: - description: 'ISCSIVolumeSourceApplyConfiguration represents - an ' - properties: - chapAuthDiscovery: - type: boolean - chapAuthSession: - type: boolean - fsType: - type: string - initiatorName: - type: string - iqn: - type: string - iscsiInterface: - type: string - lun: - format: int32 - type: integer - portals: - items: - type: string - type: array - readOnly: - type: boolean - secretRef: - description: 'LocalObjectReferenceApplyConfiguration represents ' - properties: - name: - type: string - type: object - targetPortal: - type: string - type: object - nfs: - description: NFSVolumeSourceApplyConfiguration represents - an de - properties: - path: - type: string - readOnly: - type: boolean - server: - type: string - type: object - persistentVolumeClaim: - description: PersistentVolumeClaimVolumeSourceApplyConfiguratio - properties: - claimName: - type: string - readOnly: - type: boolean - type: object - photonPersistentDisk: - description: PhotonPersistentDiskVolumeSourceApplyConfiguration - properties: - fsType: - type: string - pdID: - type: string - type: object - portworxVolume: - description: 'PortworxVolumeSourceApplyConfiguration represents ' - properties: - fsType: - type: string - readOnly: - type: boolean - volumeID: - type: string - type: object - projected: - description: ProjectedVolumeSourceApplyConfiguration represents - properties: - defaultMode: - format: int32 - type: integer - sources: - items: - description: VolumeProjectionApplyConfiguration represents - an d - properties: - configMap: - description: ConfigMapProjectionApplyConfiguration - represents a - properties: - items: - items: - description: KeyToPathApplyConfiguration represents - an declarat - properties: - key: - type: string - mode: - format: int32 - type: integer - path: - type: string - type: object - type: array - name: - type: string - optional: - type: boolean - type: object - downwardAPI: - description: DownwardAPIProjectionApplyConfiguration - represents - properties: - items: - items: - description: DownwardAPIVolumeFileApplyConfiguration - represents - properties: - fieldRef: - description: ObjectFieldSelectorApplyConfiguration - represents a - properties: - apiVersion: - type: string - fieldPath: - type: string - type: object - mode: - format: int32 - type: integer - path: - type: string - resourceFieldRef: - description: ResourceFieldSelectorApplyConfiguration - represents - properties: - containerName: - type: string - divisor: - 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 - resource: - type: string - type: object - type: object - type: array - type: object - secret: - description: SecretProjectionApplyConfiguration - represents an d - properties: - items: - items: - description: KeyToPathApplyConfiguration represents - an declarat - properties: - key: - type: string - mode: - format: int32 - type: integer - path: - type: string - type: object - type: array - name: - type: string - optional: - type: boolean - type: object - serviceAccountToken: - description: ServiceAccountTokenProjectionApplyConfiguration - re - properties: - audience: - type: string - expirationSeconds: - format: int64 - type: integer - path: - type: string - type: object - type: object - type: array - type: object - quobyte: - description: QuobyteVolumeSourceApplyConfiguration represents - a - properties: - group: - type: string - readOnly: - type: boolean - registry: - type: string - tenant: - type: string - user: - type: string - volume: - type: string - type: object - rbd: - description: RBDVolumeSourceApplyConfiguration represents - an de - properties: - fsType: - type: string - image: - type: string - keyring: - type: string - monitors: - items: - type: string - type: array - pool: - type: string - readOnly: - type: boolean - secretRef: - description: 'LocalObjectReferenceApplyConfiguration represents ' - properties: - name: - type: string - type: object - user: - type: string - type: object - scaleIO: - description: ScaleIOVolumeSourceApplyConfiguration represents - a - properties: - fsType: - type: string - gateway: - type: string - protectionDomain: - type: string - readOnly: - type: boolean - secretRef: - description: 'LocalObjectReferenceApplyConfiguration represents ' - properties: - name: - type: string - type: object - sslEnabled: - type: boolean - storageMode: - type: string - storagePool: - type: string - system: - type: string - volumeName: - type: string - type: object - secret: - description: SecretVolumeSourceApplyConfiguration represents - an - properties: - defaultMode: - format: int32 - type: integer - items: - items: - description: KeyToPathApplyConfiguration represents - an declarat - properties: - key: - type: string - mode: - format: int32 - type: integer - path: - type: string - type: object - type: array - optional: - type: boolean - secretName: - type: string - type: object - storageos: - description: StorageOSVolumeSourceApplyConfiguration represents - properties: - fsType: - type: string - readOnly: - type: boolean - secretRef: - description: 'LocalObjectReferenceApplyConfiguration represents ' - properties: - name: - type: string - type: object - volumeName: - type: string - volumeNamespace: - type: string - type: object - vsphereVolume: - description: VsphereVirtualDiskVolumeSourceApplyConfiguration - r - properties: - fsType: - type: string - storagePolicyID: - type: string - storagePolicyName: - type: string - volumePath: - type: string - type: object - type: object - required: - - bucketConfig - - serviceAccountName - - workVolume - type: object - schedule: - description: The schedule in Cron format for periodic backups. - type: string - startingDeadlineSeconds: - description: 'Optional deadline in seconds for starting the job ' - format: int64 - nullable: true - type: integer - successfulJobsHistoryLimit: - description: The number of successful finished jobs to retain. - format: int32 - minimum: 0 - nullable: true - type: integer - required: - - jobConfig - - schedule - type: object - required: - - spec - type: object - served: true - storage: false - name: v1beta2 schema: openAPIV3Schema: diff --git a/config/crd/bases/moco.cybozu.com_mysqlclusters.yaml b/config/crd/bases/moco.cybozu.com_mysqlclusters.yaml index 21659d923..26b7a486a 100644 --- a/config/crd/bases/moco.cybozu.com_mysqlclusters.yaml +++ b/config/crd/bases/moco.cybozu.com_mysqlclusters.yaml @@ -14,6156 +14,6 @@ spec: singular: mysqlcluster scope: Namespaced versions: - - additionalPrinterColumns: - - jsonPath: .status.conditions[?(@.type=='Available')].status - name: Available - type: string - - jsonPath: .status.conditions[?(@.type=='Healthy')].status - name: Healthy - type: string - - jsonPath: .status.currentPrimaryIndex - name: Primary - type: integer - - jsonPath: .status.syncedReplicas - name: Synced replicas - type: integer - - jsonPath: .status.errantReplicas - name: Errant replicas - type: integer - - jsonPath: .status.backup.time - name: Last backup - type: string - deprecated: true - name: v1beta1 - schema: - openAPIV3Schema: - description: MySQLCluster is the Schema for the mysqlclusters A - properties: - apiVersion: - description: APIVersion defines the versioned schema of this re - type: string - kind: - description: Kind is a string value representing the REST resou - type: string - metadata: - type: object - spec: - description: MySQLClusterSpec defines the desired state of MySQ - properties: - backupPolicyName: - description: The name of BackupPolicy custom resource in the sa - nullable: true - type: string - collectors: - description: 'Collectors is the list of collector flag names of ' - items: - type: string - type: array - disableSlowQueryLogContainer: - description: DisableSlowQueryLogContainer controls whether to a - type: boolean - logRotationSchedule: - description: LogRotationSchedule specifies the schedule to rota - type: string - maxDelaySeconds: - default: 60 - description: 'MaxDelaySeconds configures the readiness probe of ' - minimum: 0 - type: integer - mysqlConfigMapName: - description: 'MySQLConfigMapName is a `ConfigMap` name of MySQL ' - nullable: true - type: string - podTemplate: - description: PodTemplate is a `Pod` template for MySQL server c - properties: - metadata: - description: Standard object's metadata. - properties: - annotations: - additionalProperties: - type: string - description: Annotations is a map of string keys and values. - type: object - labels: - additionalProperties: - type: string - description: Labels is a map of string keys and values. - type: object - name: - description: Name is the name of the object. - type: string - type: object - spec: - description: Specification of the desired behavior of the pod. - properties: - activeDeadlineSeconds: - format: int64 - type: integer - affinity: - description: AffinityApplyConfiguration represents an declarati - properties: - nodeAffinity: - description: NodeAffinityApplyConfiguration represents - an decla - properties: - preferredDuringSchedulingIgnoredDuringExecution: - items: - description: PreferredSchedulingTermApplyConfiguration - represen - properties: - preference: - description: NodeSelectorTermApplyConfiguration - represents an d - properties: - matchExpressions: - items: - description: NodeSelectorRequirementApplyConfiguration - represen - properties: - key: - type: string - operator: - description: A node selector operator - is the set of operators t - type: string - values: - items: - type: string - type: array - type: object - type: array - matchFields: - items: - description: NodeSelectorRequirementApplyConfiguration - represen - properties: - key: - type: string - operator: - description: A node selector operator - is the set of operators t - type: string - values: - items: - type: string - type: array - type: object - type: array - type: object - weight: - format: int32 - type: integer - type: object - type: array - requiredDuringSchedulingIgnoredDuringExecution: - description: NodeSelectorApplyConfiguration represents - an decla - properties: - nodeSelectorTerms: - items: - description: NodeSelectorTermApplyConfiguration - represents an d - properties: - matchExpressions: - items: - description: NodeSelectorRequirementApplyConfiguration - represen - properties: - key: - type: string - operator: - description: A node selector operator - is the set of operators t - type: string - values: - items: - type: string - type: array - type: object - type: array - matchFields: - items: - description: NodeSelectorRequirementApplyConfiguration - represen - properties: - key: - type: string - operator: - description: A node selector operator - is the set of operators t - type: string - values: - items: - type: string - type: array - type: object - type: array - type: object - type: array - type: object - type: object - podAffinity: - description: PodAffinityApplyConfiguration represents - an declar - properties: - preferredDuringSchedulingIgnoredDuringExecution: - items: - description: WeightedPodAffinityTermApplyConfiguration - represen - properties: - podAffinityTerm: - description: PodAffinityTermApplyConfiguration - represents an de - properties: - labelSelector: - description: LabelSelectorApplyConfiguration - represents an decl - properties: - matchExpressions: - items: - description: LabelSelectorRequirementApplyConfiguration - represe - properties: - key: - type: string - operator: - description: 'A label selector - operator is the set of operators ' - type: string - values: - items: - type: string - type: array - type: object - type: array - matchLabels: - additionalProperties: - type: string - type: object - type: object - namespaceSelector: - description: LabelSelectorApplyConfiguration - represents an decl - properties: - matchExpressions: - items: - description: LabelSelectorRequirementApplyConfiguration - represe - properties: - key: - type: string - operator: - description: 'A label selector - operator is the set of operators ' - type: string - values: - items: - type: string - type: array - type: object - type: array - matchLabels: - additionalProperties: - type: string - type: object - type: object - namespaces: - items: - type: string - type: array - topologyKey: - type: string - type: object - weight: - format: int32 - type: integer - type: object - type: array - requiredDuringSchedulingIgnoredDuringExecution: - items: - description: PodAffinityTermApplyConfiguration represents - an de - properties: - labelSelector: - description: LabelSelectorApplyConfiguration - represents an decl - properties: - matchExpressions: - items: - description: LabelSelectorRequirementApplyConfiguration - represe - properties: - key: - type: string - operator: - description: 'A label selector operator - is the set of operators ' - type: string - values: - items: - type: string - type: array - type: object - type: array - matchLabels: - additionalProperties: - type: string - type: object - type: object - namespaceSelector: - description: LabelSelectorApplyConfiguration - represents an decl - properties: - matchExpressions: - items: - description: LabelSelectorRequirementApplyConfiguration - represe - properties: - key: - type: string - operator: - description: 'A label selector operator - is the set of operators ' - type: string - values: - items: - type: string - type: array - type: object - type: array - matchLabels: - additionalProperties: - type: string - type: object - type: object - namespaces: - items: - type: string - type: array - topologyKey: - type: string - type: object - type: array - type: object - podAntiAffinity: - description: PodAntiAffinityApplyConfiguration represents - an de - properties: - preferredDuringSchedulingIgnoredDuringExecution: - items: - description: WeightedPodAffinityTermApplyConfiguration - represen - properties: - podAffinityTerm: - description: PodAffinityTermApplyConfiguration - represents an de - properties: - labelSelector: - description: LabelSelectorApplyConfiguration - represents an decl - properties: - matchExpressions: - items: - description: LabelSelectorRequirementApplyConfiguration - represe - properties: - key: - type: string - operator: - description: 'A label selector - operator is the set of operators ' - type: string - values: - items: - type: string - type: array - type: object - type: array - matchLabels: - additionalProperties: - type: string - type: object - type: object - namespaceSelector: - description: LabelSelectorApplyConfiguration - represents an decl - properties: - matchExpressions: - items: - description: LabelSelectorRequirementApplyConfiguration - represe - properties: - key: - type: string - operator: - description: 'A label selector - operator is the set of operators ' - type: string - values: - items: - type: string - type: array - type: object - type: array - matchLabels: - additionalProperties: - type: string - type: object - type: object - namespaces: - items: - type: string - type: array - topologyKey: - type: string - type: object - weight: - format: int32 - type: integer - type: object - type: array - requiredDuringSchedulingIgnoredDuringExecution: - items: - description: PodAffinityTermApplyConfiguration represents - an de - properties: - labelSelector: - description: LabelSelectorApplyConfiguration - represents an decl - properties: - matchExpressions: - items: - description: LabelSelectorRequirementApplyConfiguration - represe - properties: - key: - type: string - operator: - description: 'A label selector operator - is the set of operators ' - type: string - values: - items: - type: string - type: array - type: object - type: array - matchLabels: - additionalProperties: - type: string - type: object - type: object - namespaceSelector: - description: LabelSelectorApplyConfiguration - represents an decl - properties: - matchExpressions: - items: - description: LabelSelectorRequirementApplyConfiguration - represe - properties: - key: - type: string - operator: - description: 'A label selector operator - is the set of operators ' - type: string - values: - items: - type: string - type: array - type: object - type: array - matchLabels: - additionalProperties: - type: string - type: object - type: object - namespaces: - items: - type: string - type: array - topologyKey: - type: string - type: object - type: array - type: object - type: object - automountServiceAccountToken: - type: boolean - containers: - items: - description: ContainerApplyConfiguration represents an declarat - properties: - args: - items: - type: string - type: array - command: - items: - type: string - type: array - env: - items: - description: EnvVarApplyConfiguration represents an - declarative - properties: - name: - type: string - value: - type: string - valueFrom: - description: EnvVarSourceApplyConfiguration represents - an decla - properties: - configMapKeyRef: - description: 'ConfigMapKeySelectorApplyConfiguration - represents ' - properties: - key: - type: string - name: - type: string - optional: - type: boolean - type: object - fieldRef: - description: ObjectFieldSelectorApplyConfiguration - represents a - properties: - apiVersion: - type: string - fieldPath: - type: string - type: object - resourceFieldRef: - description: ResourceFieldSelectorApplyConfiguration - represents - properties: - containerName: - type: string - divisor: - 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 - resource: - type: string - type: object - secretKeyRef: - description: 'SecretKeySelectorApplyConfiguration - represents an ' - properties: - key: - type: string - name: - type: string - optional: - type: boolean - type: object - type: object - type: object - type: array - envFrom: - items: - description: EnvFromSourceApplyConfiguration represents - an decl - properties: - configMapRef: - description: ConfigMapEnvSourceApplyConfiguration - represents an - properties: - name: - type: string - optional: - type: boolean - type: object - prefix: - type: string - secretRef: - description: SecretEnvSourceApplyConfiguration - represents an de - properties: - name: - type: string - optional: - type: boolean - type: object - type: object - type: array - image: - type: string - imagePullPolicy: - description: 'PullPolicy describes a policy for if/when - to pull ' - type: string - lifecycle: - description: LifecycleApplyConfiguration represents - an declarat - properties: - postStart: - description: LifecycleHandlerApplyConfiguration - represents an d - properties: - exec: - description: ExecActionApplyConfiguration represents - an declara - properties: - command: - items: - type: string - type: array - type: object - httpGet: - description: HTTPGetActionApplyConfiguration - represents an decl - properties: - host: - type: string - httpHeaders: - items: - description: HTTPHeaderApplyConfiguration - represents an declara - properties: - name: - type: string - value: - type: string - type: object - type: array - path: - type: string - port: - anyOf: - - type: integer - - type: string - x-kubernetes-int-or-string: true - scheme: - description: URIScheme identifies the scheme - used for connectio - type: string - type: object - tcpSocket: - description: TCPSocketActionApplyConfiguration - represents an de - properties: - host: - type: string - port: - anyOf: - - type: integer - - type: string - x-kubernetes-int-or-string: true - type: object - type: object - preStop: - description: LifecycleHandlerApplyConfiguration - represents an d - properties: - exec: - description: ExecActionApplyConfiguration represents - an declara - properties: - command: - items: - type: string - type: array - type: object - httpGet: - description: HTTPGetActionApplyConfiguration - represents an decl - properties: - host: - type: string - httpHeaders: - items: - description: HTTPHeaderApplyConfiguration - represents an declara - properties: - name: - type: string - value: - type: string - type: object - type: array - path: - type: string - port: - anyOf: - - type: integer - - type: string - x-kubernetes-int-or-string: true - scheme: - description: URIScheme identifies the scheme - used for connectio - type: string - type: object - tcpSocket: - description: TCPSocketActionApplyConfiguration - represents an de - properties: - host: - type: string - port: - anyOf: - - type: integer - - type: string - x-kubernetes-int-or-string: true - type: object - type: object - type: object - livenessProbe: - description: 'ProbeApplyConfiguration represents an - declarative ' - properties: - exec: - description: ExecActionApplyConfiguration represents - an declara - properties: - command: - items: - type: string - type: array - type: object - failureThreshold: - format: int32 - type: integer - grpc: - description: GRPCActionApplyConfiguration represents - an declara - properties: - port: - format: int32 - type: integer - service: - type: string - type: object - httpGet: - description: HTTPGetActionApplyConfiguration represents - an decl - properties: - host: - type: string - httpHeaders: - items: - description: HTTPHeaderApplyConfiguration - represents an declara - properties: - name: - type: string - value: - type: string - type: object - type: array - path: - type: string - port: - anyOf: - - type: integer - - type: string - x-kubernetes-int-or-string: true - scheme: - description: URIScheme identifies the scheme - used for connectio - type: string - type: object - initialDelaySeconds: - format: int32 - type: integer - periodSeconds: - format: int32 - type: integer - successThreshold: - format: int32 - type: integer - tcpSocket: - description: TCPSocketActionApplyConfiguration represents - an de - properties: - host: - type: string - port: - anyOf: - - type: integer - - type: string - x-kubernetes-int-or-string: true - type: object - terminationGracePeriodSeconds: - format: int64 - type: integer - timeoutSeconds: - format: int32 - type: integer - type: object - name: - type: string - ports: - items: - description: ContainerPortApplyConfiguration represents - an decl - properties: - containerPort: - format: int32 - type: integer - hostIP: - type: string - hostPort: - format: int32 - type: integer - name: - type: string - protocol: - default: TCP - type: string - type: object - type: array - readinessProbe: - description: 'ProbeApplyConfiguration represents an - declarative ' - properties: - exec: - description: ExecActionApplyConfiguration represents - an declara - properties: - command: - items: - type: string - type: array - type: object - failureThreshold: - format: int32 - type: integer - grpc: - description: GRPCActionApplyConfiguration represents - an declara - properties: - port: - format: int32 - type: integer - service: - type: string - type: object - httpGet: - description: HTTPGetActionApplyConfiguration represents - an decl - properties: - host: - type: string - httpHeaders: - items: - description: HTTPHeaderApplyConfiguration - represents an declara - properties: - name: - type: string - value: - type: string - type: object - type: array - path: - type: string - port: - anyOf: - - type: integer - - type: string - x-kubernetes-int-or-string: true - scheme: - description: URIScheme identifies the scheme - used for connectio - type: string - type: object - initialDelaySeconds: - format: int32 - type: integer - periodSeconds: - format: int32 - type: integer - successThreshold: - format: int32 - type: integer - tcpSocket: - description: TCPSocketActionApplyConfiguration represents - an de - properties: - host: - type: string - port: - anyOf: - - type: integer - - type: string - x-kubernetes-int-or-string: true - type: object - terminationGracePeriodSeconds: - format: int64 - type: integer - timeoutSeconds: - format: int32 - type: integer - type: object - resizePolicy: - items: - description: ContainerResizePolicyApplyConfiguration - represents - properties: - resourceName: - description: ResourceName is the name identifying - various resou - type: string - restartPolicy: - description: ResourceResizeRestartPolicy specifies - how to handl - type: string - type: object - type: array - resources: - description: 'ResourceRequirementsApplyConfiguration - represents ' - properties: - claims: - items: - description: ResourceClaimApplyConfiguration represents - an decl - properties: - name: - type: string - type: object - type: array - limits: - 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 - description: ResourceList is a set of (resource - name, quantity) - type: object - requests: - 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 - description: ResourceList is a set of (resource - name, quantity) - type: object - type: object - securityContext: - description: SecurityContextApplyConfiguration represents - an de - properties: - allowPrivilegeEscalation: - type: boolean - capabilities: - description: CapabilitiesApplyConfiguration represents - an decla - properties: - add: - items: - description: Capability represent POSIX capabilities - type - type: string - type: array - drop: - items: - description: Capability represent POSIX capabilities - type - type: string - type: array - type: object - privileged: - type: boolean - procMount: - type: string - readOnlyRootFilesystem: - type: boolean - runAsGroup: - format: int64 - type: integer - runAsNonRoot: - type: boolean - runAsUser: - format: int64 - type: integer - seLinuxOptions: - description: SELinuxOptionsApplyConfiguration represents - an dec - properties: - level: - type: string - role: - type: string - type: - type: string - user: - type: string - type: object - seccompProfile: - description: SeccompProfileApplyConfiguration represents - an dec - properties: - localhostProfile: - type: string - type: - description: SeccompProfileType defines the - supported seccomp p - type: string - type: object - windowsOptions: - description: WindowsSecurityContextOptionsApplyConfiguration - re - properties: - gmsaCredentialSpec: - type: string - gmsaCredentialSpecName: - type: string - hostProcess: - type: boolean - runAsUserName: - type: string - type: object - type: object - startupProbe: - description: 'ProbeApplyConfiguration represents an - declarative ' - properties: - exec: - description: ExecActionApplyConfiguration represents - an declara - properties: - command: - items: - type: string - type: array - type: object - failureThreshold: - format: int32 - type: integer - grpc: - description: GRPCActionApplyConfiguration represents - an declara - properties: - port: - format: int32 - type: integer - service: - type: string - type: object - httpGet: - description: HTTPGetActionApplyConfiguration represents - an decl - properties: - host: - type: string - httpHeaders: - items: - description: HTTPHeaderApplyConfiguration - represents an declara - properties: - name: - type: string - value: - type: string - type: object - type: array - path: - type: string - port: - anyOf: - - type: integer - - type: string - x-kubernetes-int-or-string: true - scheme: - description: URIScheme identifies the scheme - used for connectio - type: string - type: object - initialDelaySeconds: - format: int32 - type: integer - periodSeconds: - format: int32 - type: integer - successThreshold: - format: int32 - type: integer - tcpSocket: - description: TCPSocketActionApplyConfiguration represents - an de - properties: - host: - type: string - port: - anyOf: - - type: integer - - type: string - x-kubernetes-int-or-string: true - type: object - terminationGracePeriodSeconds: - format: int64 - type: integer - timeoutSeconds: - format: int32 - type: integer - type: object - stdin: - type: boolean - stdinOnce: - type: boolean - terminationMessagePath: - type: string - terminationMessagePolicy: - description: TerminationMessagePolicy describes how - termination - type: string - tty: - type: boolean - volumeDevices: - items: - description: VolumeDeviceApplyConfiguration represents - an decla - properties: - devicePath: - type: string - name: - type: string - type: object - type: array - volumeMounts: - items: - description: VolumeMountApplyConfiguration represents - an declar - properties: - mountPath: - type: string - mountPropagation: - description: MountPropagationMode describes mount - propagation. - type: string - name: - type: string - readOnly: - type: boolean - subPath: - type: string - subPathExpr: - type: string - type: object - type: array - workingDir: - type: string - type: object - type: array - dnsConfig: - description: PodDNSConfigApplyConfiguration represents an - decla - properties: - nameservers: - items: - type: string - type: array - options: - items: - description: PodDNSConfigOptionApplyConfiguration represents - an - properties: - name: - type: string - value: - type: string - type: object - type: array - searches: - items: - type: string - type: array - type: object - dnsPolicy: - description: DNSPolicy defines how a pod's DNS will be configur - type: string - enableServiceLinks: - type: boolean - ephemeralContainers: - items: - description: EphemeralContainerApplyConfiguration represents - an - properties: - args: - items: - type: string - type: array - command: - items: - type: string - type: array - env: - items: - description: EnvVarApplyConfiguration represents an - declarative - properties: - name: - type: string - value: - type: string - valueFrom: - description: EnvVarSourceApplyConfiguration represents - an decla - properties: - configMapKeyRef: - description: 'ConfigMapKeySelectorApplyConfiguration - represents ' - properties: - key: - type: string - name: - type: string - optional: - type: boolean - type: object - fieldRef: - description: ObjectFieldSelectorApplyConfiguration - represents a - properties: - apiVersion: - type: string - fieldPath: - type: string - type: object - resourceFieldRef: - description: ResourceFieldSelectorApplyConfiguration - represents - properties: - containerName: - type: string - divisor: - 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 - resource: - type: string - type: object - secretKeyRef: - description: 'SecretKeySelectorApplyConfiguration - represents an ' - properties: - key: - type: string - name: - type: string - optional: - type: boolean - type: object - type: object - type: object - type: array - envFrom: - items: - description: EnvFromSourceApplyConfiguration represents - an decl - properties: - configMapRef: - description: ConfigMapEnvSourceApplyConfiguration - represents an - properties: - name: - type: string - optional: - type: boolean - type: object - prefix: - type: string - secretRef: - description: SecretEnvSourceApplyConfiguration - represents an de - properties: - name: - type: string - optional: - type: boolean - type: object - type: object - type: array - image: - type: string - imagePullPolicy: - description: 'PullPolicy describes a policy for if/when - to pull ' - type: string - lifecycle: - description: LifecycleApplyConfiguration represents - an declarat - properties: - postStart: - description: LifecycleHandlerApplyConfiguration - represents an d - properties: - exec: - description: ExecActionApplyConfiguration represents - an declara - properties: - command: - items: - type: string - type: array - type: object - httpGet: - description: HTTPGetActionApplyConfiguration - represents an decl - properties: - host: - type: string - httpHeaders: - items: - description: HTTPHeaderApplyConfiguration - represents an declara - properties: - name: - type: string - value: - type: string - type: object - type: array - path: - type: string - port: - anyOf: - - type: integer - - type: string - x-kubernetes-int-or-string: true - scheme: - description: URIScheme identifies the scheme - used for connectio - type: string - type: object - tcpSocket: - description: TCPSocketActionApplyConfiguration - represents an de - properties: - host: - type: string - port: - anyOf: - - type: integer - - type: string - x-kubernetes-int-or-string: true - type: object - type: object - preStop: - description: LifecycleHandlerApplyConfiguration - represents an d - properties: - exec: - description: ExecActionApplyConfiguration represents - an declara - properties: - command: - items: - type: string - type: array - type: object - httpGet: - description: HTTPGetActionApplyConfiguration - represents an decl - properties: - host: - type: string - httpHeaders: - items: - description: HTTPHeaderApplyConfiguration - represents an declara - properties: - name: - type: string - value: - type: string - type: object - type: array - path: - type: string - port: - anyOf: - - type: integer - - type: string - x-kubernetes-int-or-string: true - scheme: - description: URIScheme identifies the scheme - used for connectio - type: string - type: object - tcpSocket: - description: TCPSocketActionApplyConfiguration - represents an de - properties: - host: - type: string - port: - anyOf: - - type: integer - - type: string - x-kubernetes-int-or-string: true - type: object - type: object - type: object - livenessProbe: - description: 'ProbeApplyConfiguration represents an - declarative ' - properties: - exec: - description: ExecActionApplyConfiguration represents - an declara - properties: - command: - items: - type: string - type: array - type: object - failureThreshold: - format: int32 - type: integer - grpc: - description: GRPCActionApplyConfiguration represents - an declara - properties: - port: - format: int32 - type: integer - service: - type: string - type: object - httpGet: - description: HTTPGetActionApplyConfiguration represents - an decl - properties: - host: - type: string - httpHeaders: - items: - description: HTTPHeaderApplyConfiguration - represents an declara - properties: - name: - type: string - value: - type: string - type: object - type: array - path: - type: string - port: - anyOf: - - type: integer - - type: string - x-kubernetes-int-or-string: true - scheme: - description: URIScheme identifies the scheme - used for connectio - type: string - type: object - initialDelaySeconds: - format: int32 - type: integer - periodSeconds: - format: int32 - type: integer - successThreshold: - format: int32 - type: integer - tcpSocket: - description: TCPSocketActionApplyConfiguration represents - an de - properties: - host: - type: string - port: - anyOf: - - type: integer - - type: string - x-kubernetes-int-or-string: true - type: object - terminationGracePeriodSeconds: - format: int64 - type: integer - timeoutSeconds: - format: int32 - type: integer - type: object - name: - type: string - ports: - items: - description: ContainerPortApplyConfiguration represents - an decl - properties: - containerPort: - format: int32 - type: integer - hostIP: - type: string - hostPort: - format: int32 - type: integer - name: - type: string - protocol: - default: TCP - type: string - type: object - type: array - readinessProbe: - description: 'ProbeApplyConfiguration represents an - declarative ' - properties: - exec: - description: ExecActionApplyConfiguration represents - an declara - properties: - command: - items: - type: string - type: array - type: object - failureThreshold: - format: int32 - type: integer - grpc: - description: GRPCActionApplyConfiguration represents - an declara - properties: - port: - format: int32 - type: integer - service: - type: string - type: object - httpGet: - description: HTTPGetActionApplyConfiguration represents - an decl - properties: - host: - type: string - httpHeaders: - items: - description: HTTPHeaderApplyConfiguration - represents an declara - properties: - name: - type: string - value: - type: string - type: object - type: array - path: - type: string - port: - anyOf: - - type: integer - - type: string - x-kubernetes-int-or-string: true - scheme: - description: URIScheme identifies the scheme - used for connectio - type: string - type: object - initialDelaySeconds: - format: int32 - type: integer - periodSeconds: - format: int32 - type: integer - successThreshold: - format: int32 - type: integer - tcpSocket: - description: TCPSocketActionApplyConfiguration represents - an de - properties: - host: - type: string - port: - anyOf: - - type: integer - - type: string - x-kubernetes-int-or-string: true - type: object - terminationGracePeriodSeconds: - format: int64 - type: integer - timeoutSeconds: - format: int32 - type: integer - type: object - resizePolicy: - items: - description: ContainerResizePolicyApplyConfiguration - represents - properties: - resourceName: - description: ResourceName is the name identifying - various resou - type: string - restartPolicy: - description: ResourceResizeRestartPolicy specifies - how to handl - type: string - type: object - type: array - resources: - description: 'ResourceRequirementsApplyConfiguration - represents ' - properties: - claims: - items: - description: ResourceClaimApplyConfiguration represents - an decl - properties: - name: - type: string - type: object - type: array - limits: - 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 - description: ResourceList is a set of (resource - name, quantity) - type: object - requests: - 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 - description: ResourceList is a set of (resource - name, quantity) - type: object - type: object - securityContext: - description: SecurityContextApplyConfiguration represents - an de - properties: - allowPrivilegeEscalation: - type: boolean - capabilities: - description: CapabilitiesApplyConfiguration represents - an decla - properties: - add: - items: - description: Capability represent POSIX capabilities - type - type: string - type: array - drop: - items: - description: Capability represent POSIX capabilities - type - type: string - type: array - type: object - privileged: - type: boolean - procMount: - type: string - readOnlyRootFilesystem: - type: boolean - runAsGroup: - format: int64 - type: integer - runAsNonRoot: - type: boolean - runAsUser: - format: int64 - type: integer - seLinuxOptions: - description: SELinuxOptionsApplyConfiguration represents - an dec - properties: - level: - type: string - role: - type: string - type: - type: string - user: - type: string - type: object - seccompProfile: - description: SeccompProfileApplyConfiguration represents - an dec - properties: - localhostProfile: - type: string - type: - description: SeccompProfileType defines the - supported seccomp p - type: string - type: object - windowsOptions: - description: WindowsSecurityContextOptionsApplyConfiguration - re - properties: - gmsaCredentialSpec: - type: string - gmsaCredentialSpecName: - type: string - hostProcess: - type: boolean - runAsUserName: - type: string - type: object - type: object - startupProbe: - description: 'ProbeApplyConfiguration represents an - declarative ' - properties: - exec: - description: ExecActionApplyConfiguration represents - an declara - properties: - command: - items: - type: string - type: array - type: object - failureThreshold: - format: int32 - type: integer - grpc: - description: GRPCActionApplyConfiguration represents - an declara - properties: - port: - format: int32 - type: integer - service: - type: string - type: object - httpGet: - description: HTTPGetActionApplyConfiguration represents - an decl - properties: - host: - type: string - httpHeaders: - items: - description: HTTPHeaderApplyConfiguration - represents an declara - properties: - name: - type: string - value: - type: string - type: object - type: array - path: - type: string - port: - anyOf: - - type: integer - - type: string - x-kubernetes-int-or-string: true - scheme: - description: URIScheme identifies the scheme - used for connectio - type: string - type: object - initialDelaySeconds: - format: int32 - type: integer - periodSeconds: - format: int32 - type: integer - successThreshold: - format: int32 - type: integer - tcpSocket: - description: TCPSocketActionApplyConfiguration represents - an de - properties: - host: - type: string - port: - anyOf: - - type: integer - - type: string - x-kubernetes-int-or-string: true - type: object - terminationGracePeriodSeconds: - format: int64 - type: integer - timeoutSeconds: - format: int32 - type: integer - type: object - stdin: - type: boolean - stdinOnce: - type: boolean - targetContainerName: - type: string - terminationMessagePath: - type: string - terminationMessagePolicy: - description: TerminationMessagePolicy describes how - termination - type: string - tty: - type: boolean - volumeDevices: - items: - description: VolumeDeviceApplyConfiguration represents - an decla - properties: - devicePath: - type: string - name: - type: string - type: object - type: array - volumeMounts: - items: - description: VolumeMountApplyConfiguration represents - an declar - properties: - mountPath: - type: string - mountPropagation: - description: MountPropagationMode describes mount - propagation. - type: string - name: - type: string - readOnly: - type: boolean - subPath: - type: string - subPathExpr: - type: string - type: object - type: array - workingDir: - type: string - type: object - type: array - hostAliases: - items: - description: HostAliasApplyConfiguration represents an declarat - properties: - hostnames: - items: - type: string - type: array - ip: - type: string - type: object - type: array - hostIPC: - type: boolean - hostNetwork: - type: boolean - hostPID: - type: boolean - hostUsers: - type: boolean - hostname: - type: string - imagePullSecrets: - items: - description: 'LocalObjectReferenceApplyConfiguration represents ' - properties: - name: - type: string - type: object - type: array - initContainers: - items: - description: ContainerApplyConfiguration represents an declarat - properties: - args: - items: - type: string - type: array - command: - items: - type: string - type: array - env: - items: - description: EnvVarApplyConfiguration represents an - declarative - properties: - name: - type: string - value: - type: string - valueFrom: - description: EnvVarSourceApplyConfiguration represents - an decla - properties: - configMapKeyRef: - description: 'ConfigMapKeySelectorApplyConfiguration - represents ' - properties: - key: - type: string - name: - type: string - optional: - type: boolean - type: object - fieldRef: - description: ObjectFieldSelectorApplyConfiguration - represents a - properties: - apiVersion: - type: string - fieldPath: - type: string - type: object - resourceFieldRef: - description: ResourceFieldSelectorApplyConfiguration - represents - properties: - containerName: - type: string - divisor: - 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 - resource: - type: string - type: object - secretKeyRef: - description: 'SecretKeySelectorApplyConfiguration - represents an ' - properties: - key: - type: string - name: - type: string - optional: - type: boolean - type: object - type: object - type: object - type: array - envFrom: - items: - description: EnvFromSourceApplyConfiguration represents - an decl - properties: - configMapRef: - description: ConfigMapEnvSourceApplyConfiguration - represents an - properties: - name: - type: string - optional: - type: boolean - type: object - prefix: - type: string - secretRef: - description: SecretEnvSourceApplyConfiguration - represents an de - properties: - name: - type: string - optional: - type: boolean - type: object - type: object - type: array - image: - type: string - imagePullPolicy: - description: 'PullPolicy describes a policy for if/when - to pull ' - type: string - lifecycle: - description: LifecycleApplyConfiguration represents - an declarat - properties: - postStart: - description: LifecycleHandlerApplyConfiguration - represents an d - properties: - exec: - description: ExecActionApplyConfiguration represents - an declara - properties: - command: - items: - type: string - type: array - type: object - httpGet: - description: HTTPGetActionApplyConfiguration - represents an decl - properties: - host: - type: string - httpHeaders: - items: - description: HTTPHeaderApplyConfiguration - represents an declara - properties: - name: - type: string - value: - type: string - type: object - type: array - path: - type: string - port: - anyOf: - - type: integer - - type: string - x-kubernetes-int-or-string: true - scheme: - description: URIScheme identifies the scheme - used for connectio - type: string - type: object - tcpSocket: - description: TCPSocketActionApplyConfiguration - represents an de - properties: - host: - type: string - port: - anyOf: - - type: integer - - type: string - x-kubernetes-int-or-string: true - type: object - type: object - preStop: - description: LifecycleHandlerApplyConfiguration - represents an d - properties: - exec: - description: ExecActionApplyConfiguration represents - an declara - properties: - command: - items: - type: string - type: array - type: object - httpGet: - description: HTTPGetActionApplyConfiguration - represents an decl - properties: - host: - type: string - httpHeaders: - items: - description: HTTPHeaderApplyConfiguration - represents an declara - properties: - name: - type: string - value: - type: string - type: object - type: array - path: - type: string - port: - anyOf: - - type: integer - - type: string - x-kubernetes-int-or-string: true - scheme: - description: URIScheme identifies the scheme - used for connectio - type: string - type: object - tcpSocket: - description: TCPSocketActionApplyConfiguration - represents an de - properties: - host: - type: string - port: - anyOf: - - type: integer - - type: string - x-kubernetes-int-or-string: true - type: object - type: object - type: object - livenessProbe: - description: 'ProbeApplyConfiguration represents an - declarative ' - properties: - exec: - description: ExecActionApplyConfiguration represents - an declara - properties: - command: - items: - type: string - type: array - type: object - failureThreshold: - format: int32 - type: integer - grpc: - description: GRPCActionApplyConfiguration represents - an declara - properties: - port: - format: int32 - type: integer - service: - type: string - type: object - httpGet: - description: HTTPGetActionApplyConfiguration represents - an decl - properties: - host: - type: string - httpHeaders: - items: - description: HTTPHeaderApplyConfiguration - represents an declara - properties: - name: - type: string - value: - type: string - type: object - type: array - path: - type: string - port: - anyOf: - - type: integer - - type: string - x-kubernetes-int-or-string: true - scheme: - description: URIScheme identifies the scheme - used for connectio - type: string - type: object - initialDelaySeconds: - format: int32 - type: integer - periodSeconds: - format: int32 - type: integer - successThreshold: - format: int32 - type: integer - tcpSocket: - description: TCPSocketActionApplyConfiguration represents - an de - properties: - host: - type: string - port: - anyOf: - - type: integer - - type: string - x-kubernetes-int-or-string: true - type: object - terminationGracePeriodSeconds: - format: int64 - type: integer - timeoutSeconds: - format: int32 - type: integer - type: object - name: - type: string - ports: - items: - description: ContainerPortApplyConfiguration represents - an decl - properties: - containerPort: - format: int32 - type: integer - hostIP: - type: string - hostPort: - format: int32 - type: integer - name: - type: string - protocol: - default: TCP - type: string - type: object - type: array - readinessProbe: - description: 'ProbeApplyConfiguration represents an - declarative ' - properties: - exec: - description: ExecActionApplyConfiguration represents - an declara - properties: - command: - items: - type: string - type: array - type: object - failureThreshold: - format: int32 - type: integer - grpc: - description: GRPCActionApplyConfiguration represents - an declara - properties: - port: - format: int32 - type: integer - service: - type: string - type: object - httpGet: - description: HTTPGetActionApplyConfiguration represents - an decl - properties: - host: - type: string - httpHeaders: - items: - description: HTTPHeaderApplyConfiguration - represents an declara - properties: - name: - type: string - value: - type: string - type: object - type: array - path: - type: string - port: - anyOf: - - type: integer - - type: string - x-kubernetes-int-or-string: true - scheme: - description: URIScheme identifies the scheme - used for connectio - type: string - type: object - initialDelaySeconds: - format: int32 - type: integer - periodSeconds: - format: int32 - type: integer - successThreshold: - format: int32 - type: integer - tcpSocket: - description: TCPSocketActionApplyConfiguration represents - an de - properties: - host: - type: string - port: - anyOf: - - type: integer - - type: string - x-kubernetes-int-or-string: true - type: object - terminationGracePeriodSeconds: - format: int64 - type: integer - timeoutSeconds: - format: int32 - type: integer - type: object - resizePolicy: - items: - description: ContainerResizePolicyApplyConfiguration - represents - properties: - resourceName: - description: ResourceName is the name identifying - various resou - type: string - restartPolicy: - description: ResourceResizeRestartPolicy specifies - how to handl - type: string - type: object - type: array - resources: - description: 'ResourceRequirementsApplyConfiguration - represents ' - properties: - claims: - items: - description: ResourceClaimApplyConfiguration represents - an decl - properties: - name: - type: string - type: object - type: array - limits: - 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 - description: ResourceList is a set of (resource - name, quantity) - type: object - requests: - 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 - description: ResourceList is a set of (resource - name, quantity) - type: object - type: object - securityContext: - description: SecurityContextApplyConfiguration represents - an de - properties: - allowPrivilegeEscalation: - type: boolean - capabilities: - description: CapabilitiesApplyConfiguration represents - an decla - properties: - add: - items: - description: Capability represent POSIX capabilities - type - type: string - type: array - drop: - items: - description: Capability represent POSIX capabilities - type - type: string - type: array - type: object - privileged: - type: boolean - procMount: - type: string - readOnlyRootFilesystem: - type: boolean - runAsGroup: - format: int64 - type: integer - runAsNonRoot: - type: boolean - runAsUser: - format: int64 - type: integer - seLinuxOptions: - description: SELinuxOptionsApplyConfiguration represents - an dec - properties: - level: - type: string - role: - type: string - type: - type: string - user: - type: string - type: object - seccompProfile: - description: SeccompProfileApplyConfiguration represents - an dec - properties: - localhostProfile: - type: string - type: - description: SeccompProfileType defines the - supported seccomp p - type: string - type: object - windowsOptions: - description: WindowsSecurityContextOptionsApplyConfiguration - re - properties: - gmsaCredentialSpec: - type: string - gmsaCredentialSpecName: - type: string - hostProcess: - type: boolean - runAsUserName: - type: string - type: object - type: object - startupProbe: - description: 'ProbeApplyConfiguration represents an - declarative ' - properties: - exec: - description: ExecActionApplyConfiguration represents - an declara - properties: - command: - items: - type: string - type: array - type: object - failureThreshold: - format: int32 - type: integer - grpc: - description: GRPCActionApplyConfiguration represents - an declara - properties: - port: - format: int32 - type: integer - service: - type: string - type: object - httpGet: - description: HTTPGetActionApplyConfiguration represents - an decl - properties: - host: - type: string - httpHeaders: - items: - description: HTTPHeaderApplyConfiguration - represents an declara - properties: - name: - type: string - value: - type: string - type: object - type: array - path: - type: string - port: - anyOf: - - type: integer - - type: string - x-kubernetes-int-or-string: true - scheme: - description: URIScheme identifies the scheme - used for connectio - type: string - type: object - initialDelaySeconds: - format: int32 - type: integer - periodSeconds: - format: int32 - type: integer - successThreshold: - format: int32 - type: integer - tcpSocket: - description: TCPSocketActionApplyConfiguration represents - an de - properties: - host: - type: string - port: - anyOf: - - type: integer - - type: string - x-kubernetes-int-or-string: true - type: object - terminationGracePeriodSeconds: - format: int64 - type: integer - timeoutSeconds: - format: int32 - type: integer - type: object - stdin: - type: boolean - stdinOnce: - type: boolean - terminationMessagePath: - type: string - terminationMessagePolicy: - description: TerminationMessagePolicy describes how - termination - type: string - tty: - type: boolean - volumeDevices: - items: - description: VolumeDeviceApplyConfiguration represents - an decla - properties: - devicePath: - type: string - name: - type: string - type: object - type: array - volumeMounts: - items: - description: VolumeMountApplyConfiguration represents - an declar - properties: - mountPath: - type: string - mountPropagation: - description: MountPropagationMode describes mount - propagation. - type: string - name: - type: string - readOnly: - type: boolean - subPath: - type: string - subPathExpr: - type: string - type: object - type: array - workingDir: - type: string - type: object - type: array - nodeName: - type: string - nodeSelector: - additionalProperties: - type: string - type: object - os: - description: 'PodOSApplyConfiguration represents an declarative ' - properties: - name: - description: OSName is the set of OS'es that can be used - in OS. - type: string - type: object - overhead: - 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 - description: ResourceList is a set of (resource name, quantity) - type: object - preemptionPolicy: - description: PreemptionPolicy describes a policy for if/when - to - type: string - priority: - format: int32 - type: integer - priorityClassName: - type: string - readinessGates: - items: - description: PodReadinessGateApplyConfiguration represents - an d - properties: - conditionType: - description: PodConditionType is a valid value for PodCondition - type: string - type: object - type: array - resourceClaims: - items: - description: PodResourceClaimApplyConfiguration represents - an d - properties: - name: - type: string - source: - description: ClaimSourceApplyConfiguration represents - an declar - properties: - resourceClaimName: - type: string - resourceClaimTemplateName: - type: string - type: object - type: object - type: array - restartPolicy: - description: RestartPolicy describes how the container should - b - type: string - runtimeClassName: - type: string - schedulerName: - type: string - schedulingGates: - items: - description: 'PodSchedulingGateApplyConfiguration represents - an ' - properties: - name: - type: string - type: object - type: array - securityContext: - description: PodSecurityContextApplyConfiguration represents - an - properties: - fsGroup: - format: int64 - type: integer - fsGroupChangePolicy: - description: PodFSGroupChangePolicy holds policies that - will be - type: string - runAsGroup: - format: int64 - type: integer - runAsNonRoot: - type: boolean - runAsUser: - format: int64 - type: integer - seLinuxOptions: - description: SELinuxOptionsApplyConfiguration represents - an dec - properties: - level: - type: string - role: - type: string - type: - type: string - user: - type: string - type: object - seccompProfile: - description: SeccompProfileApplyConfiguration represents - an dec - properties: - localhostProfile: - type: string - type: - description: SeccompProfileType defines the supported - seccomp p - type: string - type: object - supplementalGroups: - items: - format: int64 - type: integer - type: array - sysctls: - items: - description: SysctlApplyConfiguration represents an - declarative - properties: - name: - type: string - value: - type: string - type: object - type: array - windowsOptions: - description: WindowsSecurityContextOptionsApplyConfiguration - re - properties: - gmsaCredentialSpec: - type: string - gmsaCredentialSpecName: - type: string - hostProcess: - type: boolean - runAsUserName: - type: string - type: object - type: object - serviceAccount: - type: string - serviceAccountName: - type: string - setHostnameAsFQDN: - type: boolean - shareProcessNamespace: - type: boolean - subdomain: - type: string - terminationGracePeriodSeconds: - format: int64 - type: integer - tolerations: - items: - description: TolerationApplyConfiguration represents an - declara - properties: - effect: - type: string - key: - type: string - operator: - description: A toleration operator is the set of operators - that - type: string - tolerationSeconds: - format: int64 - type: integer - value: - type: string - type: object - type: array - topologySpreadConstraints: - items: - description: TopologySpreadConstraintApplyConfiguration - represe - properties: - labelSelector: - description: LabelSelectorApplyConfiguration represents - an decl - properties: - matchExpressions: - items: - description: LabelSelectorRequirementApplyConfiguration - represe - properties: - key: - type: string - operator: - description: 'A label selector operator is - the set of operators ' - type: string - values: - items: - type: string - type: array - type: object - type: array - matchLabels: - additionalProperties: - type: string - type: object - type: object - matchLabelKeys: - items: - type: string - type: array - maxSkew: - format: int32 - type: integer - minDomains: - format: int32 - type: integer - nodeAffinityPolicy: - description: NodeInclusionPolicy defines the type of - node inclu - type: string - nodeTaintsPolicy: - description: NodeInclusionPolicy defines the type of - node inclu - type: string - topologyKey: - type: string - whenUnsatisfiable: - type: string - type: object - type: array - volumes: - items: - description: VolumeApplyConfiguration represents an declarative - properties: - awsElasticBlockStore: - description: AWSElasticBlockStoreVolumeSourceApplyConfiguration - properties: - fsType: - type: string - partition: - format: int32 - type: integer - readOnly: - type: boolean - volumeID: - type: string - type: object - azureDisk: - description: AzureDiskVolumeSourceApplyConfiguration - represents - properties: - cachingMode: - type: string - diskName: - type: string - diskURI: - type: string - fsType: - type: string - kind: - type: string - readOnly: - type: boolean - type: object - azureFile: - description: AzureFileVolumeSourceApplyConfiguration - represents - properties: - readOnly: - type: boolean - secretName: - type: string - shareName: - type: string - type: object - cephfs: - description: CephFSVolumeSourceApplyConfiguration represents - an - properties: - monitors: - items: - type: string - type: array - path: - type: string - readOnly: - type: boolean - secretFile: - type: string - secretRef: - description: 'LocalObjectReferenceApplyConfiguration - represents ' - properties: - name: - type: string - type: object - user: - type: string - type: object - cinder: - description: CinderVolumeSourceApplyConfiguration represents - an - properties: - fsType: - type: string - readOnly: - type: boolean - secretRef: - description: 'LocalObjectReferenceApplyConfiguration - represents ' - properties: - name: - type: string - type: object - volumeID: - type: string - type: object - configMap: - description: ConfigMapVolumeSourceApplyConfiguration - represents - properties: - defaultMode: - format: int32 - type: integer - items: - items: - description: KeyToPathApplyConfiguration represents - an declarat - properties: - key: - type: string - mode: - format: int32 - type: integer - path: - type: string - type: object - type: array - name: - type: string - optional: - type: boolean - type: object - csi: - description: CSIVolumeSourceApplyConfiguration represents - an de - properties: - driver: - type: string - fsType: - type: string - nodePublishSecretRef: - description: 'LocalObjectReferenceApplyConfiguration - represents ' - properties: - name: - type: string - type: object - readOnly: - type: boolean - volumeAttributes: - additionalProperties: - type: string - type: object - type: object - downwardAPI: - description: DownwardAPIVolumeSourceApplyConfiguration - represen - properties: - defaultMode: - format: int32 - type: integer - items: - items: - description: DownwardAPIVolumeFileApplyConfiguration - represents - properties: - fieldRef: - description: ObjectFieldSelectorApplyConfiguration - represents a - properties: - apiVersion: - type: string - fieldPath: - type: string - type: object - mode: - format: int32 - type: integer - path: - type: string - resourceFieldRef: - description: ResourceFieldSelectorApplyConfiguration - represents - properties: - containerName: - type: string - divisor: - 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 - resource: - type: string - type: object - type: object - type: array - type: object - emptyDir: - description: 'EmptyDirVolumeSourceApplyConfiguration - represents ' - properties: - medium: - description: StorageMedium defines ways that storage - can be all - type: string - sizeLimit: - 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 - ephemeral: - description: EphemeralVolumeSourceApplyConfiguration - represents - properties: - volumeClaimTemplate: - description: PersistentVolumeClaimTemplateApplyConfiguration - re - properties: - metadata: - description: ObjectMetaApplyConfiguration represents - an declara - properties: - annotations: - additionalProperties: - type: string - type: object - creationTimestamp: - format: date-time - type: string - deletionGracePeriodSeconds: - format: int64 - type: integer - deletionTimestamp: - format: date-time - type: string - finalizers: - items: - type: string - type: array - generateName: - type: string - generation: - format: int64 - type: integer - labels: - additionalProperties: - type: string - type: object - name: - type: string - namespace: - type: string - ownerReferences: - items: - description: OwnerReferenceApplyConfiguration - represents an dec - properties: - apiVersion: - type: string - blockOwnerDeletion: - type: boolean - controller: - type: boolean - kind: - type: string - name: - type: string - uid: - description: UID is a type that holds - unique ID values, includi - type: string - type: object - type: array - resourceVersion: - type: string - uid: - description: UID is a type that holds unique - ID values, includi - type: string - type: object - spec: - description: PersistentVolumeClaimSpecApplyConfiguration - repres - properties: - accessModes: - items: - type: string - type: array - dataSource: - description: TypedLocalObjectReferenceApplyConfiguration - repres - properties: - apiGroup: - type: string - kind: - type: string - name: - type: string - type: object - dataSourceRef: - description: 'TypedObjectReferenceApplyConfiguration - represents ' - properties: - apiGroup: - type: string - kind: - type: string - name: - type: string - namespace: - type: string - type: object - resources: - description: 'ResourceRequirementsApplyConfiguration - represents ' - properties: - claims: - items: - description: ResourceClaimApplyConfiguration - represents an decl - properties: - name: - type: string - type: object - type: array - limits: - 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 - description: ResourceList is a set of - (resource name, quantity) - type: object - requests: - 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 - description: ResourceList is a set of - (resource name, quantity) - type: object - type: object - selector: - description: LabelSelectorApplyConfiguration - represents an decl - properties: - matchExpressions: - items: - description: LabelSelectorRequirementApplyConfiguration - represe - properties: - key: - type: string - operator: - description: 'A label selector - operator is the set of operators ' - type: string - values: - items: - type: string - type: array - type: object - type: array - matchLabels: - additionalProperties: - type: string - type: object - type: object - storageClassName: - type: string - volumeMode: - description: PersistentVolumeMode describes - how a volume is int - type: string - volumeName: - type: string - type: object - type: object - type: object - fc: - description: FCVolumeSourceApplyConfiguration represents - an dec - properties: - fsType: - type: string - lun: - format: int32 - type: integer - readOnly: - type: boolean - targetWWNs: - items: - type: string - type: array - wwids: - items: - type: string - type: array - type: object - flexVolume: - description: FlexVolumeSourceApplyConfiguration represents - an d - properties: - driver: - type: string - fsType: - type: string - options: - additionalProperties: - type: string - type: object - readOnly: - type: boolean - secretRef: - description: 'LocalObjectReferenceApplyConfiguration - represents ' - properties: - name: - type: string - type: object - type: object - flocker: - description: FlockerVolumeSourceApplyConfiguration represents - a - properties: - datasetName: - type: string - datasetUUID: - type: string - type: object - gcePersistentDisk: - description: GCEPersistentDiskVolumeSourceApplyConfiguration - re - properties: - fsType: - type: string - partition: - format: int32 - type: integer - pdName: - type: string - readOnly: - type: boolean - type: object - gitRepo: - description: GitRepoVolumeSourceApplyConfiguration represents - a - properties: - directory: - type: string - repository: - type: string - revision: - type: string - type: object - glusterfs: - description: GlusterfsVolumeSourceApplyConfiguration - represents - properties: - endpoints: - type: string - path: - type: string - readOnly: - type: boolean - type: object - hostPath: - description: 'HostPathVolumeSourceApplyConfiguration - represents ' - properties: - path: - type: string - type: - type: string - type: object - iscsi: - description: 'ISCSIVolumeSourceApplyConfiguration represents - an ' - properties: - chapAuthDiscovery: - type: boolean - chapAuthSession: - type: boolean - fsType: - type: string - initiatorName: - type: string - iqn: - type: string - iscsiInterface: - type: string - lun: - format: int32 - type: integer - portals: - items: - type: string - type: array - readOnly: - type: boolean - secretRef: - description: 'LocalObjectReferenceApplyConfiguration - represents ' - properties: - name: - type: string - type: object - targetPortal: - type: string - type: object - name: - type: string - nfs: - description: NFSVolumeSourceApplyConfiguration represents - an de - properties: - path: - type: string - readOnly: - type: boolean - server: - type: string - type: object - persistentVolumeClaim: - description: PersistentVolumeClaimVolumeSourceApplyConfiguratio - properties: - claimName: - type: string - readOnly: - type: boolean - type: object - photonPersistentDisk: - description: PhotonPersistentDiskVolumeSourceApplyConfiguration - properties: - fsType: - type: string - pdID: - type: string - type: object - portworxVolume: - description: 'PortworxVolumeSourceApplyConfiguration - represents ' - properties: - fsType: - type: string - readOnly: - type: boolean - volumeID: - type: string - type: object - projected: - description: ProjectedVolumeSourceApplyConfiguration - represents - properties: - defaultMode: - format: int32 - type: integer - sources: - items: - description: VolumeProjectionApplyConfiguration - represents an d - properties: - configMap: - description: ConfigMapProjectionApplyConfiguration - represents a - properties: - items: - items: - description: KeyToPathApplyConfiguration - represents an declarat - properties: - key: - type: string - mode: - format: int32 - type: integer - path: - type: string - type: object - type: array - name: - type: string - optional: - type: boolean - type: object - downwardAPI: - description: DownwardAPIProjectionApplyConfiguration - represents - properties: - items: - items: - description: DownwardAPIVolumeFileApplyConfiguration - represents - properties: - fieldRef: - description: ObjectFieldSelectorApplyConfiguration - represents a - properties: - apiVersion: - type: string - fieldPath: - type: string - type: object - mode: - format: int32 - type: integer - path: - type: string - resourceFieldRef: - description: ResourceFieldSelectorApplyConfiguration - represents - properties: - containerName: - type: string - divisor: - 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 - resource: - type: string - type: object - type: object - type: array - type: object - secret: - description: SecretProjectionApplyConfiguration - represents an d - properties: - items: - items: - description: KeyToPathApplyConfiguration - represents an declarat - properties: - key: - type: string - mode: - format: int32 - type: integer - path: - type: string - type: object - type: array - name: - type: string - optional: - type: boolean - type: object - serviceAccountToken: - description: ServiceAccountTokenProjectionApplyConfiguration - re - properties: - audience: - type: string - expirationSeconds: - format: int64 - type: integer - path: - type: string - type: object - type: object - type: array - type: object - quobyte: - description: QuobyteVolumeSourceApplyConfiguration represents - a - properties: - group: - type: string - readOnly: - type: boolean - registry: - type: string - tenant: - type: string - user: - type: string - volume: - type: string - type: object - rbd: - description: RBDVolumeSourceApplyConfiguration represents - an de - properties: - fsType: - type: string - image: - type: string - keyring: - type: string - monitors: - items: - type: string - type: array - pool: - type: string - readOnly: - type: boolean - secretRef: - description: 'LocalObjectReferenceApplyConfiguration - represents ' - properties: - name: - type: string - type: object - user: - type: string - type: object - scaleIO: - description: ScaleIOVolumeSourceApplyConfiguration represents - a - properties: - fsType: - type: string - gateway: - type: string - protectionDomain: - type: string - readOnly: - type: boolean - secretRef: - description: 'LocalObjectReferenceApplyConfiguration - represents ' - properties: - name: - type: string - type: object - sslEnabled: - type: boolean - storageMode: - type: string - storagePool: - type: string - system: - type: string - volumeName: - type: string - type: object - secret: - description: SecretVolumeSourceApplyConfiguration represents - an - properties: - defaultMode: - format: int32 - type: integer - items: - items: - description: KeyToPathApplyConfiguration represents - an declarat - properties: - key: - type: string - mode: - format: int32 - type: integer - path: - type: string - type: object - type: array - optional: - type: boolean - secretName: - type: string - type: object - storageos: - description: StorageOSVolumeSourceApplyConfiguration - represents - properties: - fsType: - type: string - readOnly: - type: boolean - secretRef: - description: 'LocalObjectReferenceApplyConfiguration - represents ' - properties: - name: - type: string - type: object - volumeName: - type: string - volumeNamespace: - type: string - type: object - vsphereVolume: - description: VsphereVirtualDiskVolumeSourceApplyConfiguration - r - properties: - fsType: - type: string - storagePolicyID: - type: string - storagePolicyName: - type: string - volumePath: - type: string - type: object - type: object - type: array - type: object - required: - - spec - type: object - replicas: - default: 1 - description: Replicas is the number of instances. - format: int32 - type: integer - replicationSourceSecretName: - description: ReplicationSourceSecretName is a `Secret` name whi - nullable: true - type: string - restore: - description: Restore is the specification to perform Point-in-T - properties: - jobConfig: - description: Specifies parameters for restore Pod. - properties: - affinity: - description: If specified, the pod's scheduling constraints. - properties: - nodeAffinity: - description: NodeAffinityApplyConfiguration represents - an decla - properties: - preferredDuringSchedulingIgnoredDuringExecution: - items: - description: PreferredSchedulingTermApplyConfiguration - represen - properties: - preference: - description: NodeSelectorTermApplyConfiguration - represents an d - properties: - matchExpressions: - items: - description: NodeSelectorRequirementApplyConfiguration - represen - properties: - key: - type: string - operator: - description: A node selector operator - is the set of operators t - type: string - values: - items: - type: string - type: array - type: object - type: array - matchFields: - items: - description: NodeSelectorRequirementApplyConfiguration - represen - properties: - key: - type: string - operator: - description: A node selector operator - is the set of operators t - type: string - values: - items: - type: string - type: array - type: object - type: array - type: object - weight: - format: int32 - type: integer - type: object - type: array - requiredDuringSchedulingIgnoredDuringExecution: - description: NodeSelectorApplyConfiguration represents - an decla - properties: - nodeSelectorTerms: - items: - description: NodeSelectorTermApplyConfiguration - represents an d - properties: - matchExpressions: - items: - description: NodeSelectorRequirementApplyConfiguration - represen - properties: - key: - type: string - operator: - description: A node selector operator - is the set of operators t - type: string - values: - items: - type: string - type: array - type: object - type: array - matchFields: - items: - description: NodeSelectorRequirementApplyConfiguration - represen - properties: - key: - type: string - operator: - description: A node selector operator - is the set of operators t - type: string - values: - items: - type: string - type: array - type: object - type: array - type: object - type: array - type: object - type: object - podAffinity: - description: PodAffinityApplyConfiguration represents - an declar - properties: - preferredDuringSchedulingIgnoredDuringExecution: - items: - description: WeightedPodAffinityTermApplyConfiguration - represen - properties: - podAffinityTerm: - description: PodAffinityTermApplyConfiguration - represents an de - properties: - labelSelector: - description: LabelSelectorApplyConfiguration - represents an decl - properties: - matchExpressions: - items: - description: LabelSelectorRequirementApplyConfiguration - represe - properties: - key: - type: string - operator: - description: 'A label selector - operator is the set of operators ' - type: string - values: - items: - type: string - type: array - type: object - type: array - matchLabels: - additionalProperties: - type: string - type: object - type: object - namespaceSelector: - description: LabelSelectorApplyConfiguration - represents an decl - properties: - matchExpressions: - items: - description: LabelSelectorRequirementApplyConfiguration - represe - properties: - key: - type: string - operator: - description: 'A label selector - operator is the set of operators ' - type: string - values: - items: - type: string - type: array - type: object - type: array - matchLabels: - additionalProperties: - type: string - type: object - type: object - namespaces: - items: - type: string - type: array - topologyKey: - type: string - type: object - weight: - format: int32 - type: integer - type: object - type: array - requiredDuringSchedulingIgnoredDuringExecution: - items: - description: PodAffinityTermApplyConfiguration represents - an de - properties: - labelSelector: - description: LabelSelectorApplyConfiguration - represents an decl - properties: - matchExpressions: - items: - description: LabelSelectorRequirementApplyConfiguration - represe - properties: - key: - type: string - operator: - description: 'A label selector operator - is the set of operators ' - type: string - values: - items: - type: string - type: array - type: object - type: array - matchLabels: - additionalProperties: - type: string - type: object - type: object - namespaceSelector: - description: LabelSelectorApplyConfiguration - represents an decl - properties: - matchExpressions: - items: - description: LabelSelectorRequirementApplyConfiguration - represe - properties: - key: - type: string - operator: - description: 'A label selector operator - is the set of operators ' - type: string - values: - items: - type: string - type: array - type: object - type: array - matchLabels: - additionalProperties: - type: string - type: object - type: object - namespaces: - items: - type: string - type: array - topologyKey: - type: string - type: object - type: array - type: object - podAntiAffinity: - description: PodAntiAffinityApplyConfiguration represents - an de - properties: - preferredDuringSchedulingIgnoredDuringExecution: - items: - description: WeightedPodAffinityTermApplyConfiguration - represen - properties: - podAffinityTerm: - description: PodAffinityTermApplyConfiguration - represents an de - properties: - labelSelector: - description: LabelSelectorApplyConfiguration - represents an decl - properties: - matchExpressions: - items: - description: LabelSelectorRequirementApplyConfiguration - represe - properties: - key: - type: string - operator: - description: 'A label selector - operator is the set of operators ' - type: string - values: - items: - type: string - type: array - type: object - type: array - matchLabels: - additionalProperties: - type: string - type: object - type: object - namespaceSelector: - description: LabelSelectorApplyConfiguration - represents an decl - properties: - matchExpressions: - items: - description: LabelSelectorRequirementApplyConfiguration - represe - properties: - key: - type: string - operator: - description: 'A label selector - operator is the set of operators ' - type: string - values: - items: - type: string - type: array - type: object - type: array - matchLabels: - additionalProperties: - type: string - type: object - type: object - namespaces: - items: - type: string - type: array - topologyKey: - type: string - type: object - weight: - format: int32 - type: integer - type: object - type: array - requiredDuringSchedulingIgnoredDuringExecution: - items: - description: PodAffinityTermApplyConfiguration represents - an de - properties: - labelSelector: - description: LabelSelectorApplyConfiguration - represents an decl - properties: - matchExpressions: - items: - description: LabelSelectorRequirementApplyConfiguration - represe - properties: - key: - type: string - operator: - description: 'A label selector operator - is the set of operators ' - type: string - values: - items: - type: string - type: array - type: object - type: array - matchLabels: - additionalProperties: - type: string - type: object - type: object - namespaceSelector: - description: LabelSelectorApplyConfiguration - represents an decl - properties: - matchExpressions: - items: - description: LabelSelectorRequirementApplyConfiguration - represe - properties: - key: - type: string - operator: - description: 'A label selector operator - is the set of operators ' - type: string - values: - items: - type: string - type: array - type: object - type: array - matchLabels: - additionalProperties: - type: string - type: object - type: object - namespaces: - items: - type: string - type: array - topologyKey: - type: string - type: object - type: array - type: object - type: object - bucketConfig: - description: Specifies how to access an object storage bucket. - properties: - backendType: - default: s3 - description: BackendType is an identifier for the object - storag - enum: - - s3 - - gcs - type: string - bucketName: - description: The name of the bucket - minLength: 1 - type: string - caCert: - description: Path to SSL CA certificate file used in addition - t - type: string - endpointURL: - description: The API endpoint URL. - pattern: ^https?://.* - type: string - region: - description: The region of the bucket. - type: string - usePathStyle: - description: 'Allows you to enable the client to use path-style ' - type: boolean - required: - - bucketName - type: object - cpu: - anyOf: - - type: integer - - type: string - default: 4 - description: CPU is the amount of CPU requested for the Pod. - nullable: true - pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ - x-kubernetes-int-or-string: true - env: - description: List of environment variables to set in the contai - items: - description: EnvVarApplyConfiguration is the type defined - to im - properties: - name: - type: string - value: - type: string - valueFrom: - description: EnvVarSourceApplyConfiguration represents - an decla - properties: - configMapKeyRef: - description: 'ConfigMapKeySelectorApplyConfiguration - represents ' - properties: - key: - type: string - name: - type: string - optional: - type: boolean - type: object - fieldRef: - description: ObjectFieldSelectorApplyConfiguration - represents a - properties: - apiVersion: - type: string - fieldPath: - type: string - type: object - resourceFieldRef: - description: ResourceFieldSelectorApplyConfiguration - represents - properties: - containerName: - type: string - divisor: - 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 - resource: - type: string - type: object - secretKeyRef: - description: 'SecretKeySelectorApplyConfiguration - represents an ' - properties: - key: - type: string - name: - type: string - optional: - type: boolean - type: object - type: object - type: object - type: array - envFrom: - description: 'List of sources to populate environment variables ' - items: - description: EnvFromSourceApplyConfiguration is the type - define - properties: - configMapRef: - description: ConfigMapEnvSourceApplyConfiguration represents - an - properties: - name: - type: string - optional: - type: boolean - type: object - prefix: - type: string - secretRef: - description: SecretEnvSourceApplyConfiguration represents - an de - properties: - name: - type: string - optional: - type: boolean - type: object - type: object - type: array - maxCpu: - anyOf: - - type: integer - - type: string - description: MaxCPU is the amount of maximum CPU for the Pod. - nullable: true - pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ - x-kubernetes-int-or-string: true - maxMemory: - anyOf: - - type: integer - - type: string - description: 'MaxMemory is the amount of maximum memory for - the ' - nullable: true - pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ - x-kubernetes-int-or-string: true - memory: - anyOf: - - type: integer - - type: string - default: 4Gi - description: Memory is the amount of memory requested for - the P - nullable: true - pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ - x-kubernetes-int-or-string: true - serviceAccountName: - description: ServiceAccountName specifies the ServiceAccount - to - minLength: 1 - type: string - threads: - default: 4 - description: Threads is the number of threads used for backup - o - minimum: 1 - type: integer - volumeMounts: - description: VolumeMounts describes a list of volume mounts - tha - items: - description: 'VolumeMountApplyConfiguration is the type - defined ' - properties: - mountPath: - type: string - mountPropagation: - description: MountPropagationMode describes mount propagation. - type: string - name: - type: string - readOnly: - type: boolean - subPath: - type: string - subPathExpr: - type: string - type: object - type: array - volumes: - description: Volumes defines the list of volumes that can - be mo - items: - description: VolumeApplyConfiguration is the type defined - to im - properties: - awsElasticBlockStore: - description: AWSElasticBlockStoreVolumeSourceApplyConfiguration - properties: - fsType: - type: string - partition: - format: int32 - type: integer - readOnly: - type: boolean - volumeID: - type: string - type: object - azureDisk: - description: AzureDiskVolumeSourceApplyConfiguration - represents - properties: - cachingMode: - type: string - diskName: - type: string - diskURI: - type: string - fsType: - type: string - kind: - type: string - readOnly: - type: boolean - type: object - azureFile: - description: AzureFileVolumeSourceApplyConfiguration - represents - properties: - readOnly: - type: boolean - secretName: - type: string - shareName: - type: string - type: object - cephfs: - description: CephFSVolumeSourceApplyConfiguration represents - an - properties: - monitors: - items: - type: string - type: array - path: - type: string - readOnly: - type: boolean - secretFile: - type: string - secretRef: - description: 'LocalObjectReferenceApplyConfiguration - represents ' - properties: - name: - type: string - type: object - user: - type: string - type: object - cinder: - description: CinderVolumeSourceApplyConfiguration represents - an - properties: - fsType: - type: string - readOnly: - type: boolean - secretRef: - description: 'LocalObjectReferenceApplyConfiguration - represents ' - properties: - name: - type: string - type: object - volumeID: - type: string - type: object - configMap: - description: ConfigMapVolumeSourceApplyConfiguration - represents - properties: - defaultMode: - format: int32 - type: integer - items: - items: - description: KeyToPathApplyConfiguration represents - an declarat - properties: - key: - type: string - mode: - format: int32 - type: integer - path: - type: string - type: object - type: array - name: - type: string - optional: - type: boolean - type: object - csi: - description: CSIVolumeSourceApplyConfiguration represents - an de - properties: - driver: - type: string - fsType: - type: string - nodePublishSecretRef: - description: 'LocalObjectReferenceApplyConfiguration - represents ' - properties: - name: - type: string - type: object - readOnly: - type: boolean - volumeAttributes: - additionalProperties: - type: string - type: object - type: object - downwardAPI: - description: DownwardAPIVolumeSourceApplyConfiguration - represen - properties: - defaultMode: - format: int32 - type: integer - items: - items: - description: DownwardAPIVolumeFileApplyConfiguration - represents - properties: - fieldRef: - description: ObjectFieldSelectorApplyConfiguration - represents a - properties: - apiVersion: - type: string - fieldPath: - type: string - type: object - mode: - format: int32 - type: integer - path: - type: string - resourceFieldRef: - description: ResourceFieldSelectorApplyConfiguration - represents - properties: - containerName: - type: string - divisor: - 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 - resource: - type: string - type: object - type: object - type: array - type: object - emptyDir: - description: 'EmptyDirVolumeSourceApplyConfiguration - represents ' - properties: - medium: - description: StorageMedium defines ways that storage - can be all - type: string - sizeLimit: - 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 - ephemeral: - description: EphemeralVolumeSourceApplyConfiguration - represents - properties: - volumeClaimTemplate: - description: PersistentVolumeClaimTemplateApplyConfiguration - re - properties: - metadata: - description: ObjectMetaApplyConfiguration represents - an declara - properties: - annotations: - additionalProperties: - type: string - type: object - creationTimestamp: - format: date-time - type: string - deletionGracePeriodSeconds: - format: int64 - type: integer - deletionTimestamp: - format: date-time - type: string - finalizers: - items: - type: string - type: array - generateName: - type: string - generation: - format: int64 - type: integer - labels: - additionalProperties: - type: string - type: object - name: - type: string - namespace: - type: string - ownerReferences: - items: - description: OwnerReferenceApplyConfiguration - represents an dec - properties: - apiVersion: - type: string - blockOwnerDeletion: - type: boolean - controller: - type: boolean - kind: - type: string - name: - type: string - uid: - description: UID is a type that holds - unique ID values, includi - type: string - type: object - type: array - resourceVersion: - type: string - uid: - description: UID is a type that holds unique - ID values, includi - type: string - type: object - spec: - description: PersistentVolumeClaimSpecApplyConfiguration - repres - properties: - accessModes: - items: - type: string - type: array - dataSource: - description: TypedLocalObjectReferenceApplyConfiguration - repres - properties: - apiGroup: - type: string - kind: - type: string - name: - type: string - type: object - dataSourceRef: - description: 'TypedObjectReferenceApplyConfiguration - represents ' - properties: - apiGroup: - type: string - kind: - type: string - name: - type: string - namespace: - type: string - type: object - resources: - description: 'ResourceRequirementsApplyConfiguration - represents ' - properties: - claims: - items: - description: ResourceClaimApplyConfiguration - represents an decl - properties: - name: - type: string - type: object - type: array - limits: - 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 - description: ResourceList is a set of - (resource name, quantity) - type: object - requests: - 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 - description: ResourceList is a set of - (resource name, quantity) - type: object - type: object - selector: - description: LabelSelectorApplyConfiguration - represents an decl - properties: - matchExpressions: - items: - description: LabelSelectorRequirementApplyConfiguration - represe - properties: - key: - type: string - operator: - description: 'A label selector - operator is the set of operators ' - type: string - values: - items: - type: string - type: array - type: object - type: array - matchLabels: - additionalProperties: - type: string - type: object - type: object - storageClassName: - type: string - volumeMode: - description: PersistentVolumeMode describes - how a volume is int - type: string - volumeName: - type: string - type: object - type: object - type: object - fc: - description: FCVolumeSourceApplyConfiguration represents - an dec - properties: - fsType: - type: string - lun: - format: int32 - type: integer - readOnly: - type: boolean - targetWWNs: - items: - type: string - type: array - wwids: - items: - type: string - type: array - type: object - flexVolume: - description: FlexVolumeSourceApplyConfiguration represents - an d - properties: - driver: - type: string - fsType: - type: string - options: - additionalProperties: - type: string - type: object - readOnly: - type: boolean - secretRef: - description: 'LocalObjectReferenceApplyConfiguration - represents ' - properties: - name: - type: string - type: object - type: object - flocker: - description: FlockerVolumeSourceApplyConfiguration represents - a - properties: - datasetName: - type: string - datasetUUID: - type: string - type: object - gcePersistentDisk: - description: GCEPersistentDiskVolumeSourceApplyConfiguration - re - properties: - fsType: - type: string - partition: - format: int32 - type: integer - pdName: - type: string - readOnly: - type: boolean - type: object - gitRepo: - description: GitRepoVolumeSourceApplyConfiguration represents - a - properties: - directory: - type: string - repository: - type: string - revision: - type: string - type: object - glusterfs: - description: GlusterfsVolumeSourceApplyConfiguration - represents - properties: - endpoints: - type: string - path: - type: string - readOnly: - type: boolean - type: object - hostPath: - description: 'HostPathVolumeSourceApplyConfiguration - represents ' - properties: - path: - type: string - type: - type: string - type: object - iscsi: - description: 'ISCSIVolumeSourceApplyConfiguration represents - an ' - properties: - chapAuthDiscovery: - type: boolean - chapAuthSession: - type: boolean - fsType: - type: string - initiatorName: - type: string - iqn: - type: string - iscsiInterface: - type: string - lun: - format: int32 - type: integer - portals: - items: - type: string - type: array - readOnly: - type: boolean - secretRef: - description: 'LocalObjectReferenceApplyConfiguration - represents ' - properties: - name: - type: string - type: object - targetPortal: - type: string - type: object - name: - type: string - nfs: - description: NFSVolumeSourceApplyConfiguration represents - an de - properties: - path: - type: string - readOnly: - type: boolean - server: - type: string - type: object - persistentVolumeClaim: - description: PersistentVolumeClaimVolumeSourceApplyConfiguratio - properties: - claimName: - type: string - readOnly: - type: boolean - type: object - photonPersistentDisk: - description: PhotonPersistentDiskVolumeSourceApplyConfiguration - properties: - fsType: - type: string - pdID: - type: string - type: object - portworxVolume: - description: 'PortworxVolumeSourceApplyConfiguration - represents ' - properties: - fsType: - type: string - readOnly: - type: boolean - volumeID: - type: string - type: object - projected: - description: ProjectedVolumeSourceApplyConfiguration - represents - properties: - defaultMode: - format: int32 - type: integer - sources: - items: - description: VolumeProjectionApplyConfiguration - represents an d - properties: - configMap: - description: ConfigMapProjectionApplyConfiguration - represents a - properties: - items: - items: - description: KeyToPathApplyConfiguration - represents an declarat - properties: - key: - type: string - mode: - format: int32 - type: integer - path: - type: string - type: object - type: array - name: - type: string - optional: - type: boolean - type: object - downwardAPI: - description: DownwardAPIProjectionApplyConfiguration - represents - properties: - items: - items: - description: DownwardAPIVolumeFileApplyConfiguration - represents - properties: - fieldRef: - description: ObjectFieldSelectorApplyConfiguration - represents a - properties: - apiVersion: - type: string - fieldPath: - type: string - type: object - mode: - format: int32 - type: integer - path: - type: string - resourceFieldRef: - description: ResourceFieldSelectorApplyConfiguration - represents - properties: - containerName: - type: string - divisor: - 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 - resource: - type: string - type: object - type: object - type: array - type: object - secret: - description: SecretProjectionApplyConfiguration - represents an d - properties: - items: - items: - description: KeyToPathApplyConfiguration - represents an declarat - properties: - key: - type: string - mode: - format: int32 - type: integer - path: - type: string - type: object - type: array - name: - type: string - optional: - type: boolean - type: object - serviceAccountToken: - description: ServiceAccountTokenProjectionApplyConfiguration - re - properties: - audience: - type: string - expirationSeconds: - format: int64 - type: integer - path: - type: string - type: object - type: object - type: array - type: object - quobyte: - description: QuobyteVolumeSourceApplyConfiguration represents - a - properties: - group: - type: string - readOnly: - type: boolean - registry: - type: string - tenant: - type: string - user: - type: string - volume: - type: string - type: object - rbd: - description: RBDVolumeSourceApplyConfiguration represents - an de - properties: - fsType: - type: string - image: - type: string - keyring: - type: string - monitors: - items: - type: string - type: array - pool: - type: string - readOnly: - type: boolean - secretRef: - description: 'LocalObjectReferenceApplyConfiguration - represents ' - properties: - name: - type: string - type: object - user: - type: string - type: object - scaleIO: - description: ScaleIOVolumeSourceApplyConfiguration represents - a - properties: - fsType: - type: string - gateway: - type: string - protectionDomain: - type: string - readOnly: - type: boolean - secretRef: - description: 'LocalObjectReferenceApplyConfiguration - represents ' - properties: - name: - type: string - type: object - sslEnabled: - type: boolean - storageMode: - type: string - storagePool: - type: string - system: - type: string - volumeName: - type: string - type: object - secret: - description: SecretVolumeSourceApplyConfiguration represents - an - properties: - defaultMode: - format: int32 - type: integer - items: - items: - description: KeyToPathApplyConfiguration represents - an declarat - properties: - key: - type: string - mode: - format: int32 - type: integer - path: - type: string - type: object - type: array - optional: - type: boolean - secretName: - type: string - type: object - storageos: - description: StorageOSVolumeSourceApplyConfiguration - represents - properties: - fsType: - type: string - readOnly: - type: boolean - secretRef: - description: 'LocalObjectReferenceApplyConfiguration - represents ' - properties: - name: - type: string - type: object - volumeName: - type: string - volumeNamespace: - type: string - type: object - vsphereVolume: - description: VsphereVirtualDiskVolumeSourceApplyConfiguration - r - properties: - fsType: - type: string - storagePolicyID: - type: string - storagePolicyName: - type: string - volumePath: - type: string - type: object - type: object - type: array - workVolume: - description: WorkVolume is the volume source for the working - di - properties: - awsElasticBlockStore: - description: AWSElasticBlockStoreVolumeSourceApplyConfiguration - properties: - fsType: - type: string - partition: - format: int32 - type: integer - readOnly: - type: boolean - volumeID: - type: string - type: object - azureDisk: - description: AzureDiskVolumeSourceApplyConfiguration represents - properties: - cachingMode: - type: string - diskName: - type: string - diskURI: - type: string - fsType: - type: string - kind: - type: string - readOnly: - type: boolean - type: object - azureFile: - description: AzureFileVolumeSourceApplyConfiguration represents - properties: - readOnly: - type: boolean - secretName: - type: string - shareName: - type: string - type: object - cephfs: - description: CephFSVolumeSourceApplyConfiguration represents - an - properties: - monitors: - items: - type: string - type: array - path: - type: string - readOnly: - type: boolean - secretFile: - type: string - secretRef: - description: 'LocalObjectReferenceApplyConfiguration - represents ' - properties: - name: - type: string - type: object - user: - type: string - type: object - cinder: - description: CinderVolumeSourceApplyConfiguration represents - an - properties: - fsType: - type: string - readOnly: - type: boolean - secretRef: - description: 'LocalObjectReferenceApplyConfiguration - represents ' - properties: - name: - type: string - type: object - volumeID: - type: string - type: object - configMap: - description: ConfigMapVolumeSourceApplyConfiguration represents - properties: - defaultMode: - format: int32 - type: integer - items: - items: - description: KeyToPathApplyConfiguration represents - an declarat - properties: - key: - type: string - mode: - format: int32 - type: integer - path: - type: string - type: object - type: array - name: - type: string - optional: - type: boolean - type: object - csi: - description: CSIVolumeSourceApplyConfiguration represents - an de - properties: - driver: - type: string - fsType: - type: string - nodePublishSecretRef: - description: 'LocalObjectReferenceApplyConfiguration - represents ' - properties: - name: - type: string - type: object - readOnly: - type: boolean - volumeAttributes: - additionalProperties: - type: string - type: object - type: object - downwardAPI: - description: DownwardAPIVolumeSourceApplyConfiguration - represen - properties: - defaultMode: - format: int32 - type: integer - items: - items: - description: DownwardAPIVolumeFileApplyConfiguration - represents - properties: - fieldRef: - description: ObjectFieldSelectorApplyConfiguration - represents a - properties: - apiVersion: - type: string - fieldPath: - type: string - type: object - mode: - format: int32 - type: integer - path: - type: string - resourceFieldRef: - description: ResourceFieldSelectorApplyConfiguration - represents - properties: - containerName: - type: string - divisor: - 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 - resource: - type: string - type: object - type: object - type: array - type: object - emptyDir: - description: 'EmptyDirVolumeSourceApplyConfiguration represents ' - properties: - medium: - description: StorageMedium defines ways that storage - can be all - type: string - sizeLimit: - 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 - ephemeral: - description: EphemeralVolumeSourceApplyConfiguration represents - properties: - volumeClaimTemplate: - description: PersistentVolumeClaimTemplateApplyConfiguration - re - properties: - metadata: - description: ObjectMetaApplyConfiguration represents - an declara - properties: - annotations: - additionalProperties: - type: string - type: object - creationTimestamp: - format: date-time - type: string - deletionGracePeriodSeconds: - format: int64 - type: integer - deletionTimestamp: - format: date-time - type: string - finalizers: - items: - type: string - type: array - generateName: - type: string - generation: - format: int64 - type: integer - labels: - additionalProperties: - type: string - type: object - name: - type: string - namespace: - type: string - ownerReferences: - items: - description: OwnerReferenceApplyConfiguration - represents an dec - properties: - apiVersion: - type: string - blockOwnerDeletion: - type: boolean - controller: - type: boolean - kind: - type: string - name: - type: string - uid: - description: UID is a type that holds - unique ID values, includi - type: string - type: object - type: array - resourceVersion: - type: string - uid: - description: UID is a type that holds unique - ID values, includi - type: string - type: object - spec: - description: PersistentVolumeClaimSpecApplyConfiguration - repres - properties: - accessModes: - items: - type: string - type: array - dataSource: - description: TypedLocalObjectReferenceApplyConfiguration - repres - properties: - apiGroup: - type: string - kind: - type: string - name: - type: string - type: object - dataSourceRef: - description: 'TypedObjectReferenceApplyConfiguration - represents ' - properties: - apiGroup: - type: string - kind: - type: string - name: - type: string - namespace: - type: string - type: object - resources: - description: 'ResourceRequirementsApplyConfiguration - represents ' - properties: - claims: - items: - description: ResourceClaimApplyConfiguration - represents an decl - properties: - name: - type: string - type: object - type: array - limits: - 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 - description: ResourceList is a set of - (resource name, quantity) - type: object - requests: - 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 - description: ResourceList is a set of - (resource name, quantity) - type: object - type: object - selector: - description: LabelSelectorApplyConfiguration - represents an decl - properties: - matchExpressions: - items: - description: LabelSelectorRequirementApplyConfiguration - represe - properties: - key: - type: string - operator: - description: 'A label selector operator - is the set of operators ' - type: string - values: - items: - type: string - type: array - type: object - type: array - matchLabels: - additionalProperties: - type: string - type: object - type: object - storageClassName: - type: string - volumeMode: - description: PersistentVolumeMode describes - how a volume is int - type: string - volumeName: - type: string - type: object - type: object - type: object - fc: - description: FCVolumeSourceApplyConfiguration represents - an dec - properties: - fsType: - type: string - lun: - format: int32 - type: integer - readOnly: - type: boolean - targetWWNs: - items: - type: string - type: array - wwids: - items: - type: string - type: array - type: object - flexVolume: - description: FlexVolumeSourceApplyConfiguration represents - an d - properties: - driver: - type: string - fsType: - type: string - options: - additionalProperties: - type: string - type: object - readOnly: - type: boolean - secretRef: - description: 'LocalObjectReferenceApplyConfiguration - represents ' - properties: - name: - type: string - type: object - type: object - flocker: - description: FlockerVolumeSourceApplyConfiguration represents - a - properties: - datasetName: - type: string - datasetUUID: - type: string - type: object - gcePersistentDisk: - description: GCEPersistentDiskVolumeSourceApplyConfiguration - re - properties: - fsType: - type: string - partition: - format: int32 - type: integer - pdName: - type: string - readOnly: - type: boolean - type: object - gitRepo: - description: GitRepoVolumeSourceApplyConfiguration represents - a - properties: - directory: - type: string - repository: - type: string - revision: - type: string - type: object - glusterfs: - description: GlusterfsVolumeSourceApplyConfiguration represents - properties: - endpoints: - type: string - path: - type: string - readOnly: - type: boolean - type: object - hostPath: - description: 'HostPathVolumeSourceApplyConfiguration represents ' - properties: - path: - type: string - type: - type: string - type: object - iscsi: - description: 'ISCSIVolumeSourceApplyConfiguration represents - an ' - properties: - chapAuthDiscovery: - type: boolean - chapAuthSession: - type: boolean - fsType: - type: string - initiatorName: - type: string - iqn: - type: string - iscsiInterface: - type: string - lun: - format: int32 - type: integer - portals: - items: - type: string - type: array - readOnly: - type: boolean - secretRef: - description: 'LocalObjectReferenceApplyConfiguration - represents ' - properties: - name: - type: string - type: object - targetPortal: - type: string - type: object - nfs: - description: NFSVolumeSourceApplyConfiguration represents - an de - properties: - path: - type: string - readOnly: - type: boolean - server: - type: string - type: object - persistentVolumeClaim: - description: PersistentVolumeClaimVolumeSourceApplyConfiguratio - properties: - claimName: - type: string - readOnly: - type: boolean - type: object - photonPersistentDisk: - description: PhotonPersistentDiskVolumeSourceApplyConfiguration - properties: - fsType: - type: string - pdID: - type: string - type: object - portworxVolume: - description: 'PortworxVolumeSourceApplyConfiguration represents ' - properties: - fsType: - type: string - readOnly: - type: boolean - volumeID: - type: string - type: object - projected: - description: ProjectedVolumeSourceApplyConfiguration represents - properties: - defaultMode: - format: int32 - type: integer - sources: - items: - description: VolumeProjectionApplyConfiguration - represents an d - properties: - configMap: - description: ConfigMapProjectionApplyConfiguration - represents a - properties: - items: - items: - description: KeyToPathApplyConfiguration - represents an declarat - properties: - key: - type: string - mode: - format: int32 - type: integer - path: - type: string - type: object - type: array - name: - type: string - optional: - type: boolean - type: object - downwardAPI: - description: DownwardAPIProjectionApplyConfiguration - represents - properties: - items: - items: - description: DownwardAPIVolumeFileApplyConfiguration - represents - properties: - fieldRef: - description: ObjectFieldSelectorApplyConfiguration - represents a - properties: - apiVersion: - type: string - fieldPath: - type: string - type: object - mode: - format: int32 - type: integer - path: - type: string - resourceFieldRef: - description: ResourceFieldSelectorApplyConfiguration - represents - properties: - containerName: - type: string - divisor: - 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 - resource: - type: string - type: object - type: object - type: array - type: object - secret: - description: SecretProjectionApplyConfiguration - represents an d - properties: - items: - items: - description: KeyToPathApplyConfiguration - represents an declarat - properties: - key: - type: string - mode: - format: int32 - type: integer - path: - type: string - type: object - type: array - name: - type: string - optional: - type: boolean - type: object - serviceAccountToken: - description: ServiceAccountTokenProjectionApplyConfiguration - re - properties: - audience: - type: string - expirationSeconds: - format: int64 - type: integer - path: - type: string - type: object - type: object - type: array - type: object - quobyte: - description: QuobyteVolumeSourceApplyConfiguration represents - a - properties: - group: - type: string - readOnly: - type: boolean - registry: - type: string - tenant: - type: string - user: - type: string - volume: - type: string - type: object - rbd: - description: RBDVolumeSourceApplyConfiguration represents - an de - properties: - fsType: - type: string - image: - type: string - keyring: - type: string - monitors: - items: - type: string - type: array - pool: - type: string - readOnly: - type: boolean - secretRef: - description: 'LocalObjectReferenceApplyConfiguration - represents ' - properties: - name: - type: string - type: object - user: - type: string - type: object - scaleIO: - description: ScaleIOVolumeSourceApplyConfiguration represents - a - properties: - fsType: - type: string - gateway: - type: string - protectionDomain: - type: string - readOnly: - type: boolean - secretRef: - description: 'LocalObjectReferenceApplyConfiguration - represents ' - properties: - name: - type: string - type: object - sslEnabled: - type: boolean - storageMode: - type: string - storagePool: - type: string - system: - type: string - volumeName: - type: string - type: object - secret: - description: SecretVolumeSourceApplyConfiguration represents - an - properties: - defaultMode: - format: int32 - type: integer - items: - items: - description: KeyToPathApplyConfiguration represents - an declarat - properties: - key: - type: string - mode: - format: int32 - type: integer - path: - type: string - type: object - type: array - optional: - type: boolean - secretName: - type: string - type: object - storageos: - description: StorageOSVolumeSourceApplyConfiguration represents - properties: - fsType: - type: string - readOnly: - type: boolean - secretRef: - description: 'LocalObjectReferenceApplyConfiguration - represents ' - properties: - name: - type: string - type: object - volumeName: - type: string - volumeNamespace: - type: string - type: object - vsphereVolume: - description: VsphereVirtualDiskVolumeSourceApplyConfiguration - r - properties: - fsType: - type: string - storagePolicyID: - type: string - storagePolicyName: - type: string - volumePath: - type: string - type: object - type: object - required: - - bucketConfig - - serviceAccountName - - workVolume - type: object - restorePoint: - description: RestorePoint is the target date and time to restor - format: date-time - type: string - sourceName: - description: SourceName is the name of the source `MySQLCluster - minLength: 1 - type: string - sourceNamespace: - description: SourceNamespace is the namespace of the source `My - minLength: 1 - type: string - required: - - jobConfig - - restorePoint - - sourceName - - sourceNamespace - type: object - serverIDBase: - description: 'ServerIDBase, if set, will become the base number ' - format: int32 - type: integer - serviceTemplate: - description: ServiceTemplate is a `Service` template for both p - properties: - metadata: - description: Standard object's metadata. - properties: - annotations: - additionalProperties: - type: string - description: Annotations is a map of string keys and values. - type: object - labels: - additionalProperties: - type: string - description: Labels is a map of string keys and values. - type: object - name: - description: Name is the name of the object. - type: string - type: object - spec: - description: Spec is the ServiceSpec - properties: - allocateLoadBalancerNodePorts: - type: boolean - clusterIP: - type: string - clusterIPs: - items: - type: string - type: array - externalIPs: - items: - type: string - type: array - externalName: - type: string - externalTrafficPolicy: - description: ServiceExternalTrafficPolicy describes how nodes - d - type: string - healthCheckNodePort: - format: int32 - type: integer - internalTrafficPolicy: - description: ServiceInternalTrafficPolicy describes how nodes - d - type: string - ipFamilies: - items: - description: IPFamily represents the IP Family (IPv4 or - IPv6). - type: string - type: array - ipFamilyPolicy: - description: IPFamilyPolicy represents the dual-stack-ness - requ - type: string - loadBalancerClass: - type: string - loadBalancerIP: - type: string - loadBalancerSourceRanges: - items: - type: string - type: array - ports: - items: - description: ServicePortApplyConfiguration represents an - declar - properties: - appProtocol: - type: string - name: - type: string - nodePort: - format: int32 - type: integer - port: - format: int32 - type: integer - protocol: - default: TCP - type: string - targetPort: - anyOf: - - type: integer - - type: string - x-kubernetes-int-or-string: true - type: object - type: array - publishNotReadyAddresses: - type: boolean - selector: - additionalProperties: - type: string - type: object - sessionAffinity: - description: Session Affinity Type string - type: string - sessionAffinityConfig: - description: SessionAffinityConfigApplyConfiguration represents - properties: - clientIP: - description: ClientIPConfigApplyConfiguration represents - an dec - properties: - timeoutSeconds: - format: int32 - type: integer - type: object - type: object - type: - description: 'Service Type string describes ingress methods - for ' - type: string - type: object - type: object - startupDelaySeconds: - default: 3600 - description: StartupWaitSeconds is the maximum duration to wait - format: int32 - minimum: 0 - type: integer - volumeClaimTemplates: - description: VolumeClaimTemplates is a list of `PersistentVolum - items: - description: 'PersistentVolumeClaim is a user''s request for and ' - properties: - metadata: - description: Standard object's metadata. - properties: - annotations: - additionalProperties: - type: string - description: Annotations is a map of string keys and values. - type: object - labels: - additionalProperties: - type: string - description: Labels is a map of string keys and values. - type: object - name: - description: Name is the name of the object. - type: string - type: object - spec: - description: Spec defines the desired characteristics of a volu - properties: - accessModes: - items: - type: string - type: array - dataSource: - description: TypedLocalObjectReferenceApplyConfiguration - repres - properties: - apiGroup: - type: string - kind: - type: string - name: - type: string - type: object - dataSourceRef: - description: 'TypedObjectReferenceApplyConfiguration represents ' - properties: - apiGroup: - type: string - kind: - type: string - name: - type: string - namespace: - type: string - type: object - resources: - description: 'ResourceRequirementsApplyConfiguration represents ' - properties: - claims: - items: - description: ResourceClaimApplyConfiguration represents - an decl - properties: - name: - type: string - type: object - type: array - limits: - 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 - description: ResourceList is a set of (resource name, - quantity) - type: object - requests: - 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 - description: ResourceList is a set of (resource name, - quantity) - type: object - type: object - selector: - description: LabelSelectorApplyConfiguration represents - an decl - properties: - matchExpressions: - items: - description: LabelSelectorRequirementApplyConfiguration - represe - properties: - key: - type: string - operator: - description: 'A label selector operator is the - set of operators ' - type: string - values: - items: - type: string - type: array - type: object - type: array - matchLabels: - additionalProperties: - type: string - type: object - type: object - storageClassName: - type: string - volumeMode: - description: PersistentVolumeMode describes how a volume - is int - type: string - volumeName: - type: string - type: object - required: - - metadata - - spec - type: object - minItems: 1 - type: array - required: - - podTemplate - - volumeClaimTemplates - type: object - status: - description: MySQLClusterStatus defines the observed state of M - properties: - backup: - description: Backup is the status of the last successful backup - properties: - binlogFilename: - description: BinlogFilename is the binlog filename that the bac - type: string - binlogSize: - description: BinlogSize is the size in bytes of a tarball of bi - format: int64 - type: integer - dumpSize: - description: DumpSize is the size in bytes of a full dump of da - format: int64 - type: integer - elapsed: - description: Elapsed is the time spent on the backup. - type: string - gtidSet: - description: GTIDSet is the GTID set of the full dump of databa - type: string - sourceIndex: - description: SourceIndex is the ordinal of the backup source in - type: integer - sourceUUID: - description: SourceUUID is the `server_uuid` of the backup sour - type: string - time: - description: The time of the backup. - format: date-time - nullable: true - type: string - warnings: - description: Warnings are list of warnings from the last backup - items: - type: string - nullable: true - type: array - workDirUsage: - description: WorkDirUsage is the max usage in bytes of the woki - format: int64 - type: integer - required: - - binlogFilename - - binlogSize - - dumpSize - - elapsed - - gtidSet - - sourceIndex - - sourceUUID - - time - - warnings - - workDirUsage - type: object - cloned: - description: Cloned indicates if the initial cloning from an ex - type: boolean - conditions: - description: Conditions is an array of conditions. - items: - description: Condition contains details for one aspect of the c - properties: - lastTransitionTime: - description: 'lastTransitionTime is the last time the condition ' - format: date-time - type: string - message: - description: message is a human readable message indicating - det - maxLength: 32768 - type: string - observedGeneration: - description: observedGeneration represents the .metadata. - format: int64 - minimum: 0 - type: integer - reason: - description: reason contains a programmatic identifier indicati - maxLength: 1024 - minLength: 1 - pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$ - type: string - status: - description: status of the condition, one of True, False, Unkno - enum: - - "True" - - "False" - - Unknown - type: string - type: - description: type of condition in CamelCase or in foo.example. - maxLength: 316 - pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$ - type: string - required: - - lastTransitionTime - - message - - reason - - status - - type - type: object - type: array - currentPrimaryIndex: - description: CurrentPrimaryIndex is the index of the current pr - type: integer - errantReplicaList: - description: ErrantReplicaList is the list of indices of errant - items: - type: integer - type: array - errantReplicas: - description: ErrantReplicas is the number of instances that hav - type: integer - reconcileInfo: - description: ReconcileInfo represents version information for r - properties: - generation: - description: Generation is the `metadata. - format: int64 - type: integer - reconcileVersion: - description: ReconcileVersion is the version of the operator re - type: integer - type: object - restoredTime: - description: 'RestoredTime is the time when the cluster data is ' - format: date-time - type: string - syncedReplicas: - description: SyncedReplicas is the number of synced instances i - type: integer - required: - - currentPrimaryIndex - type: object - type: object - served: true - storage: false - subresources: - status: {} - additionalPrinterColumns: - jsonPath: .status.conditions[?(@.type=='Available')].status name: Available diff --git a/config/crd/tests/apiextensions.k8s.io_v1_customresourcedefinition_backuppolicies.moco.cybozu.com.yaml b/config/crd/tests/apiextensions.k8s.io_v1_customresourcedefinition_backuppolicies.moco.cybozu.com.yaml index e905e470f..44a99d14e 100644 --- a/config/crd/tests/apiextensions.k8s.io_v1_customresourcedefinition_backuppolicies.moco.cybozu.com.yaml +++ b/config/crd/tests/apiextensions.k8s.io_v1_customresourcedefinition_backuppolicies.moco.cybozu.com.yaml @@ -13,2198 +13,6 @@ spec: singular: backuppolicy scope: Namespaced versions: - - deprecated: true - name: v1beta1 - schema: - openAPIV3Schema: - description: 'BackupPolicy is a namespaced resource that should ' - properties: - apiVersion: - description: APIVersion defines the versioned schema of this re - type: string - kind: - description: Kind is a string value representing the REST resou - type: string - metadata: - type: object - spec: - description: BackupPolicySpec defines the configuration items f - properties: - activeDeadlineSeconds: - description: 'Specifies the duration in seconds relative to the ' - format: int64 - nullable: true - type: integer - backoffLimit: - description: Specifies the number of retries before marking thi - format: int32 - minimum: 0 - nullable: true - type: integer - concurrencyPolicy: - default: Allow - description: 'Specifies how to treat concurrent executions of a ' - enum: - - Allow - - Forbid - - Replace - type: string - failedJobsHistoryLimit: - description: The number of failed finished jobs to retain. - format: int32 - minimum: 0 - nullable: true - type: integer - jobConfig: - description: Specifies parameters for backup Pod. - properties: - affinity: - description: If specified, the pod's scheduling constraints. - properties: - nodeAffinity: - description: NodeAffinityApplyConfiguration represents an - decla - properties: - preferredDuringSchedulingIgnoredDuringExecution: - items: - description: PreferredSchedulingTermApplyConfiguration - represen - properties: - preference: - description: NodeSelectorTermApplyConfiguration - represents an d - properties: - matchExpressions: - items: - description: NodeSelectorRequirementApplyConfiguration - represen - properties: - key: - type: string - operator: - description: A node selector operator - is the set of operators t - type: string - values: - items: - type: string - type: array - type: object - type: array - matchFields: - items: - description: NodeSelectorRequirementApplyConfiguration - represen - properties: - key: - type: string - operator: - description: A node selector operator - is the set of operators t - type: string - values: - items: - type: string - type: array - type: object - type: array - type: object - weight: - format: int32 - type: integer - type: object - type: array - requiredDuringSchedulingIgnoredDuringExecution: - description: NodeSelectorApplyConfiguration represents - an decla - properties: - nodeSelectorTerms: - items: - description: NodeSelectorTermApplyConfiguration - represents an d - properties: - matchExpressions: - items: - description: NodeSelectorRequirementApplyConfiguration - represen - properties: - key: - type: string - operator: - description: A node selector operator - is the set of operators t - type: string - values: - items: - type: string - type: array - type: object - type: array - matchFields: - items: - description: NodeSelectorRequirementApplyConfiguration - represen - properties: - key: - type: string - operator: - description: A node selector operator - is the set of operators t - type: string - values: - items: - type: string - type: array - type: object - type: array - type: object - type: array - type: object - type: object - podAffinity: - description: PodAffinityApplyConfiguration represents an declar - properties: - preferredDuringSchedulingIgnoredDuringExecution: - items: - description: WeightedPodAffinityTermApplyConfiguration - represen - properties: - podAffinityTerm: - description: PodAffinityTermApplyConfiguration represents - an de - properties: - labelSelector: - description: LabelSelectorApplyConfiguration - represents an decl - properties: - matchExpressions: - items: - description: LabelSelectorRequirementApplyConfiguration - represe - properties: - key: - type: string - operator: - description: 'A label selector operator - is the set of operators ' - type: string - values: - items: - type: string - type: array - type: object - type: array - matchLabels: - additionalProperties: - type: string - type: object - type: object - namespaceSelector: - description: LabelSelectorApplyConfiguration - represents an decl - properties: - matchExpressions: - items: - description: LabelSelectorRequirementApplyConfiguration - represe - properties: - key: - type: string - operator: - description: 'A label selector operator - is the set of operators ' - type: string - values: - items: - type: string - type: array - type: object - type: array - matchLabels: - additionalProperties: - type: string - type: object - type: object - namespaces: - items: - type: string - type: array - topologyKey: - type: string - type: object - weight: - format: int32 - type: integer - type: object - type: array - requiredDuringSchedulingIgnoredDuringExecution: - items: - description: PodAffinityTermApplyConfiguration represents - an de - properties: - labelSelector: - description: LabelSelectorApplyConfiguration represents - an decl - properties: - matchExpressions: - items: - description: LabelSelectorRequirementApplyConfiguration - represe - properties: - key: - type: string - operator: - description: 'A label selector operator - is the set of operators ' - type: string - values: - items: - type: string - type: array - type: object - type: array - matchLabels: - additionalProperties: - type: string - type: object - type: object - namespaceSelector: - description: LabelSelectorApplyConfiguration represents - an decl - properties: - matchExpressions: - items: - description: LabelSelectorRequirementApplyConfiguration - represe - properties: - key: - type: string - operator: - description: 'A label selector operator - is the set of operators ' - type: string - values: - items: - type: string - type: array - type: object - type: array - matchLabels: - additionalProperties: - type: string - type: object - type: object - namespaces: - items: - type: string - type: array - topologyKey: - type: string - type: object - type: array - type: object - podAntiAffinity: - description: PodAntiAffinityApplyConfiguration represents - an de - properties: - preferredDuringSchedulingIgnoredDuringExecution: - items: - description: WeightedPodAffinityTermApplyConfiguration - represen - properties: - podAffinityTerm: - description: PodAffinityTermApplyConfiguration represents - an de - properties: - labelSelector: - description: LabelSelectorApplyConfiguration - represents an decl - properties: - matchExpressions: - items: - description: LabelSelectorRequirementApplyConfiguration - represe - properties: - key: - type: string - operator: - description: 'A label selector operator - is the set of operators ' - type: string - values: - items: - type: string - type: array - type: object - type: array - matchLabels: - additionalProperties: - type: string - type: object - type: object - namespaceSelector: - description: LabelSelectorApplyConfiguration - represents an decl - properties: - matchExpressions: - items: - description: LabelSelectorRequirementApplyConfiguration - represe - properties: - key: - type: string - operator: - description: 'A label selector operator - is the set of operators ' - type: string - values: - items: - type: string - type: array - type: object - type: array - matchLabels: - additionalProperties: - type: string - type: object - type: object - namespaces: - items: - type: string - type: array - topologyKey: - type: string - type: object - weight: - format: int32 - type: integer - type: object - type: array - requiredDuringSchedulingIgnoredDuringExecution: - items: - description: PodAffinityTermApplyConfiguration represents - an de - properties: - labelSelector: - description: LabelSelectorApplyConfiguration represents - an decl - properties: - matchExpressions: - items: - description: LabelSelectorRequirementApplyConfiguration - represe - properties: - key: - type: string - operator: - description: 'A label selector operator - is the set of operators ' - type: string - values: - items: - type: string - type: array - type: object - type: array - matchLabels: - additionalProperties: - type: string - type: object - type: object - namespaceSelector: - description: LabelSelectorApplyConfiguration represents - an decl - properties: - matchExpressions: - items: - description: LabelSelectorRequirementApplyConfiguration - represe - properties: - key: - type: string - operator: - description: 'A label selector operator - is the set of operators ' - type: string - values: - items: - type: string - type: array - type: object - type: array - matchLabels: - additionalProperties: - type: string - type: object - type: object - namespaces: - items: - type: string - type: array - topologyKey: - type: string - type: object - type: array - type: object - type: object - bucketConfig: - description: Specifies how to access an object storage bucket. - properties: - backendType: - default: s3 - description: BackendType is an identifier for the object storag - enum: - - s3 - - gcs - type: string - bucketName: - description: The name of the bucket - minLength: 1 - type: string - caCert: - description: Path to SSL CA certificate file used in addition - t - type: string - endpointURL: - description: The API endpoint URL. - pattern: ^https?://.* - type: string - region: - description: The region of the bucket. - type: string - usePathStyle: - description: 'Allows you to enable the client to use path-style ' - type: boolean - required: - - bucketName - type: object - cpu: - anyOf: - - type: integer - - type: string - default: 4 - description: CPU is the amount of CPU requested for the Pod. - nullable: true - pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ - x-kubernetes-int-or-string: true - env: - description: List of environment variables to set in the contai - items: - description: EnvVarApplyConfiguration is the type defined to - im - properties: - name: - type: string - value: - type: string - valueFrom: - description: EnvVarSourceApplyConfiguration represents an - decla - properties: - configMapKeyRef: - description: 'ConfigMapKeySelectorApplyConfiguration - represents ' - properties: - key: - type: string - name: - type: string - optional: - type: boolean - type: object - fieldRef: - description: ObjectFieldSelectorApplyConfiguration represents - a - properties: - apiVersion: - type: string - fieldPath: - type: string - type: object - resourceFieldRef: - description: ResourceFieldSelectorApplyConfiguration - represents - properties: - containerName: - type: string - divisor: - 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 - resource: - type: string - type: object - secretKeyRef: - description: 'SecretKeySelectorApplyConfiguration represents - an ' - properties: - key: - type: string - name: - type: string - optional: - type: boolean - type: object - type: object - type: object - type: array - envFrom: - description: 'List of sources to populate environment variables ' - items: - description: EnvFromSourceApplyConfiguration is the type define - properties: - configMapRef: - description: ConfigMapEnvSourceApplyConfiguration represents - an - properties: - name: - type: string - optional: - type: boolean - type: object - prefix: - type: string - secretRef: - description: SecretEnvSourceApplyConfiguration represents - an de - properties: - name: - type: string - optional: - type: boolean - type: object - type: object - type: array - maxCpu: - anyOf: - - type: integer - - type: string - description: MaxCPU is the amount of maximum CPU for the Pod. - nullable: true - pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ - x-kubernetes-int-or-string: true - maxMemory: - anyOf: - - type: integer - - type: string - description: 'MaxMemory is the amount of maximum memory for the ' - nullable: true - pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ - x-kubernetes-int-or-string: true - memory: - anyOf: - - type: integer - - type: string - default: 4Gi - description: Memory is the amount of memory requested for the - P - nullable: true - pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ - x-kubernetes-int-or-string: true - serviceAccountName: - description: ServiceAccountName specifies the ServiceAccount to - minLength: 1 - type: string - threads: - default: 4 - description: Threads is the number of threads used for backup - o - minimum: 1 - type: integer - volumeMounts: - description: VolumeMounts describes a list of volume mounts tha - items: - description: 'VolumeMountApplyConfiguration is the type defined ' - properties: - mountPath: - type: string - mountPropagation: - description: MountPropagationMode describes mount propagation. - type: string - name: - type: string - readOnly: - type: boolean - subPath: - type: string - subPathExpr: - type: string - type: object - type: array - volumes: - description: Volumes defines the list of volumes that can be mo - items: - description: VolumeApplyConfiguration is the type defined to - im - properties: - awsElasticBlockStore: - description: AWSElasticBlockStoreVolumeSourceApplyConfiguration - properties: - fsType: - type: string - partition: - format: int32 - type: integer - readOnly: - type: boolean - volumeID: - type: string - type: object - azureDisk: - description: AzureDiskVolumeSourceApplyConfiguration represents - properties: - cachingMode: - type: string - diskName: - type: string - diskURI: - type: string - fsType: - type: string - kind: - type: string - readOnly: - type: boolean - type: object - azureFile: - description: AzureFileVolumeSourceApplyConfiguration represents - properties: - readOnly: - type: boolean - secretName: - type: string - shareName: - type: string - type: object - cephfs: - description: CephFSVolumeSourceApplyConfiguration represents - an - properties: - monitors: - items: - type: string - type: array - path: - type: string - readOnly: - type: boolean - secretFile: - type: string - secretRef: - description: 'LocalObjectReferenceApplyConfiguration - represents ' - properties: - name: - type: string - type: object - user: - type: string - type: object - cinder: - description: CinderVolumeSourceApplyConfiguration represents - an - properties: - fsType: - type: string - readOnly: - type: boolean - secretRef: - description: 'LocalObjectReferenceApplyConfiguration - represents ' - properties: - name: - type: string - type: object - volumeID: - type: string - type: object - configMap: - description: ConfigMapVolumeSourceApplyConfiguration represents - properties: - defaultMode: - format: int32 - type: integer - items: - items: - description: KeyToPathApplyConfiguration represents - an declarat - properties: - key: - type: string - mode: - format: int32 - type: integer - path: - type: string - type: object - type: array - name: - type: string - optional: - type: boolean - type: object - csi: - description: CSIVolumeSourceApplyConfiguration represents - an de - properties: - driver: - type: string - fsType: - type: string - nodePublishSecretRef: - description: 'LocalObjectReferenceApplyConfiguration - represents ' - properties: - name: - type: string - type: object - readOnly: - type: boolean - volumeAttributes: - additionalProperties: - type: string - type: object - type: object - downwardAPI: - description: DownwardAPIVolumeSourceApplyConfiguration represen - properties: - defaultMode: - format: int32 - type: integer - items: - items: - description: DownwardAPIVolumeFileApplyConfiguration - represents - properties: - fieldRef: - description: ObjectFieldSelectorApplyConfiguration - represents a - properties: - apiVersion: - type: string - fieldPath: - type: string - type: object - mode: - format: int32 - type: integer - path: - type: string - resourceFieldRef: - description: ResourceFieldSelectorApplyConfiguration - represents - properties: - containerName: - type: string - divisor: - 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 - resource: - type: string - type: object - type: object - type: array - type: object - emptyDir: - description: 'EmptyDirVolumeSourceApplyConfiguration represents ' - properties: - medium: - description: StorageMedium defines ways that storage - can be all - type: string - sizeLimit: - 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 - ephemeral: - description: EphemeralVolumeSourceApplyConfiguration represents - properties: - volumeClaimTemplate: - description: PersistentVolumeClaimTemplateApplyConfiguration - re - properties: - metadata: - description: ObjectMetaApplyConfiguration represents - an declara - properties: - annotations: - additionalProperties: - type: string - type: object - creationTimestamp: - format: date-time - type: string - deletionGracePeriodSeconds: - format: int64 - type: integer - deletionTimestamp: - format: date-time - type: string - finalizers: - items: - type: string - type: array - generateName: - type: string - generation: - format: int64 - type: integer - labels: - additionalProperties: - type: string - type: object - name: - type: string - namespace: - type: string - ownerReferences: - items: - description: OwnerReferenceApplyConfiguration - represents an dec - properties: - apiVersion: - type: string - blockOwnerDeletion: - type: boolean - controller: - type: boolean - kind: - type: string - name: - type: string - uid: - description: UID is a type that holds - unique ID values, includi - type: string - type: object - type: array - resourceVersion: - type: string - uid: - description: UID is a type that holds unique - ID values, includi - type: string - type: object - spec: - description: PersistentVolumeClaimSpecApplyConfiguration - repres - properties: - accessModes: - items: - type: string - type: array - dataSource: - description: TypedLocalObjectReferenceApplyConfiguration - repres - properties: - apiGroup: - type: string - kind: - type: string - name: - type: string - type: object - dataSourceRef: - description: 'TypedObjectReferenceApplyConfiguration - represents ' - properties: - apiGroup: - type: string - kind: - type: string - name: - type: string - namespace: - type: string - type: object - resources: - description: 'ResourceRequirementsApplyConfiguration - represents ' - properties: - claims: - items: - description: ResourceClaimApplyConfiguration - represents an decl - properties: - name: - type: string - type: object - type: array - limits: - 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 - description: ResourceList is a set of (resource - name, quantity) - type: object - requests: - 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 - description: ResourceList is a set of (resource - name, quantity) - type: object - type: object - selector: - description: LabelSelectorApplyConfiguration - represents an decl - properties: - matchExpressions: - items: - description: LabelSelectorRequirementApplyConfiguration - represe - properties: - key: - type: string - operator: - description: 'A label selector operator - is the set of operators ' - type: string - values: - items: - type: string - type: array - type: object - type: array - matchLabels: - additionalProperties: - type: string - type: object - type: object - storageClassName: - type: string - volumeMode: - description: PersistentVolumeMode describes - how a volume is int - type: string - volumeName: - type: string - type: object - type: object - type: object - fc: - description: FCVolumeSourceApplyConfiguration represents - an dec - properties: - fsType: - type: string - lun: - format: int32 - type: integer - readOnly: - type: boolean - targetWWNs: - items: - type: string - type: array - wwids: - items: - type: string - type: array - type: object - flexVolume: - description: FlexVolumeSourceApplyConfiguration represents - an d - properties: - driver: - type: string - fsType: - type: string - options: - additionalProperties: - type: string - type: object - readOnly: - type: boolean - secretRef: - description: 'LocalObjectReferenceApplyConfiguration - represents ' - properties: - name: - type: string - type: object - type: object - flocker: - description: FlockerVolumeSourceApplyConfiguration represents - a - properties: - datasetName: - type: string - datasetUUID: - type: string - type: object - gcePersistentDisk: - description: GCEPersistentDiskVolumeSourceApplyConfiguration - re - properties: - fsType: - type: string - partition: - format: int32 - type: integer - pdName: - type: string - readOnly: - type: boolean - type: object - gitRepo: - description: GitRepoVolumeSourceApplyConfiguration represents - a - properties: - directory: - type: string - repository: - type: string - revision: - type: string - type: object - glusterfs: - description: GlusterfsVolumeSourceApplyConfiguration represents - properties: - endpoints: - type: string - path: - type: string - readOnly: - type: boolean - type: object - hostPath: - description: 'HostPathVolumeSourceApplyConfiguration represents ' - properties: - path: - type: string - type: - type: string - type: object - iscsi: - description: 'ISCSIVolumeSourceApplyConfiguration represents - an ' - properties: - chapAuthDiscovery: - type: boolean - chapAuthSession: - type: boolean - fsType: - type: string - initiatorName: - type: string - iqn: - type: string - iscsiInterface: - type: string - lun: - format: int32 - type: integer - portals: - items: - type: string - type: array - readOnly: - type: boolean - secretRef: - description: 'LocalObjectReferenceApplyConfiguration - represents ' - properties: - name: - type: string - type: object - targetPortal: - type: string - type: object - name: - type: string - nfs: - description: NFSVolumeSourceApplyConfiguration represents - an de - properties: - path: - type: string - readOnly: - type: boolean - server: - type: string - type: object - persistentVolumeClaim: - description: PersistentVolumeClaimVolumeSourceApplyConfiguratio - properties: - claimName: - type: string - readOnly: - type: boolean - type: object - photonPersistentDisk: - description: PhotonPersistentDiskVolumeSourceApplyConfiguration - properties: - fsType: - type: string - pdID: - type: string - type: object - portworxVolume: - description: 'PortworxVolumeSourceApplyConfiguration represents ' - properties: - fsType: - type: string - readOnly: - type: boolean - volumeID: - type: string - type: object - projected: - description: ProjectedVolumeSourceApplyConfiguration represents - properties: - defaultMode: - format: int32 - type: integer - sources: - items: - description: VolumeProjectionApplyConfiguration represents - an d - properties: - configMap: - description: ConfigMapProjectionApplyConfiguration - represents a - properties: - items: - items: - description: KeyToPathApplyConfiguration - represents an declarat - properties: - key: - type: string - mode: - format: int32 - type: integer - path: - type: string - type: object - type: array - name: - type: string - optional: - type: boolean - type: object - downwardAPI: - description: DownwardAPIProjectionApplyConfiguration - represents - properties: - items: - items: - description: DownwardAPIVolumeFileApplyConfiguration - represents - properties: - fieldRef: - description: ObjectFieldSelectorApplyConfiguration - represents a - properties: - apiVersion: - type: string - fieldPath: - type: string - type: object - mode: - format: int32 - type: integer - path: - type: string - resourceFieldRef: - description: ResourceFieldSelectorApplyConfiguration - represents - properties: - containerName: - type: string - divisor: - 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 - resource: - type: string - type: object - type: object - type: array - type: object - secret: - description: SecretProjectionApplyConfiguration - represents an d - properties: - items: - items: - description: KeyToPathApplyConfiguration - represents an declarat - properties: - key: - type: string - mode: - format: int32 - type: integer - path: - type: string - type: object - type: array - name: - type: string - optional: - type: boolean - type: object - serviceAccountToken: - description: ServiceAccountTokenProjectionApplyConfiguration - re - properties: - audience: - type: string - expirationSeconds: - format: int64 - type: integer - path: - type: string - type: object - type: object - type: array - type: object - quobyte: - description: QuobyteVolumeSourceApplyConfiguration represents - a - properties: - group: - type: string - readOnly: - type: boolean - registry: - type: string - tenant: - type: string - user: - type: string - volume: - type: string - type: object - rbd: - description: RBDVolumeSourceApplyConfiguration represents - an de - properties: - fsType: - type: string - image: - type: string - keyring: - type: string - monitors: - items: - type: string - type: array - pool: - type: string - readOnly: - type: boolean - secretRef: - description: 'LocalObjectReferenceApplyConfiguration - represents ' - properties: - name: - type: string - type: object - user: - type: string - type: object - scaleIO: - description: ScaleIOVolumeSourceApplyConfiguration represents - a - properties: - fsType: - type: string - gateway: - type: string - protectionDomain: - type: string - readOnly: - type: boolean - secretRef: - description: 'LocalObjectReferenceApplyConfiguration - represents ' - properties: - name: - type: string - type: object - sslEnabled: - type: boolean - storageMode: - type: string - storagePool: - type: string - system: - type: string - volumeName: - type: string - type: object - secret: - description: SecretVolumeSourceApplyConfiguration represents - an - properties: - defaultMode: - format: int32 - type: integer - items: - items: - description: KeyToPathApplyConfiguration represents - an declarat - properties: - key: - type: string - mode: - format: int32 - type: integer - path: - type: string - type: object - type: array - optional: - type: boolean - secretName: - type: string - type: object - storageos: - description: StorageOSVolumeSourceApplyConfiguration represents - properties: - fsType: - type: string - readOnly: - type: boolean - secretRef: - description: 'LocalObjectReferenceApplyConfiguration - represents ' - properties: - name: - type: string - type: object - volumeName: - type: string - volumeNamespace: - type: string - type: object - vsphereVolume: - description: VsphereVirtualDiskVolumeSourceApplyConfiguration - r - properties: - fsType: - type: string - storagePolicyID: - type: string - storagePolicyName: - type: string - volumePath: - type: string - type: object - type: object - type: array - workVolume: - description: WorkVolume is the volume source for the working di - properties: - awsElasticBlockStore: - description: AWSElasticBlockStoreVolumeSourceApplyConfiguration - properties: - fsType: - type: string - partition: - format: int32 - type: integer - readOnly: - type: boolean - volumeID: - type: string - type: object - azureDisk: - description: AzureDiskVolumeSourceApplyConfiguration represents - properties: - cachingMode: - type: string - diskName: - type: string - diskURI: - type: string - fsType: - type: string - kind: - type: string - readOnly: - type: boolean - type: object - azureFile: - description: AzureFileVolumeSourceApplyConfiguration represents - properties: - readOnly: - type: boolean - secretName: - type: string - shareName: - type: string - type: object - cephfs: - description: CephFSVolumeSourceApplyConfiguration represents - an - properties: - monitors: - items: - type: string - type: array - path: - type: string - readOnly: - type: boolean - secretFile: - type: string - secretRef: - description: 'LocalObjectReferenceApplyConfiguration represents ' - properties: - name: - type: string - type: object - user: - type: string - type: object - cinder: - description: CinderVolumeSourceApplyConfiguration represents - an - properties: - fsType: - type: string - readOnly: - type: boolean - secretRef: - description: 'LocalObjectReferenceApplyConfiguration represents ' - properties: - name: - type: string - type: object - volumeID: - type: string - type: object - configMap: - description: ConfigMapVolumeSourceApplyConfiguration represents - properties: - defaultMode: - format: int32 - type: integer - items: - items: - description: KeyToPathApplyConfiguration represents - an declarat - properties: - key: - type: string - mode: - format: int32 - type: integer - path: - type: string - type: object - type: array - name: - type: string - optional: - type: boolean - type: object - csi: - description: CSIVolumeSourceApplyConfiguration represents - an de - properties: - driver: - type: string - fsType: - type: string - nodePublishSecretRef: - description: 'LocalObjectReferenceApplyConfiguration represents ' - properties: - name: - type: string - type: object - readOnly: - type: boolean - volumeAttributes: - additionalProperties: - type: string - type: object - type: object - downwardAPI: - description: DownwardAPIVolumeSourceApplyConfiguration represen - properties: - defaultMode: - format: int32 - type: integer - items: - items: - description: DownwardAPIVolumeFileApplyConfiguration - represents - properties: - fieldRef: - description: ObjectFieldSelectorApplyConfiguration - represents a - properties: - apiVersion: - type: string - fieldPath: - type: string - type: object - mode: - format: int32 - type: integer - path: - type: string - resourceFieldRef: - description: ResourceFieldSelectorApplyConfiguration - represents - properties: - containerName: - type: string - divisor: - 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 - resource: - type: string - type: object - type: object - type: array - type: object - emptyDir: - description: 'EmptyDirVolumeSourceApplyConfiguration represents ' - properties: - medium: - description: StorageMedium defines ways that storage can - be all - type: string - sizeLimit: - 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 - ephemeral: - description: EphemeralVolumeSourceApplyConfiguration represents - properties: - volumeClaimTemplate: - description: PersistentVolumeClaimTemplateApplyConfiguration - re - properties: - metadata: - description: ObjectMetaApplyConfiguration represents - an declara - properties: - annotations: - additionalProperties: - type: string - type: object - creationTimestamp: - format: date-time - type: string - deletionGracePeriodSeconds: - format: int64 - type: integer - deletionTimestamp: - format: date-time - type: string - finalizers: - items: - type: string - type: array - generateName: - type: string - generation: - format: int64 - type: integer - labels: - additionalProperties: - type: string - type: object - name: - type: string - namespace: - type: string - ownerReferences: - items: - description: OwnerReferenceApplyConfiguration - represents an dec - properties: - apiVersion: - type: string - blockOwnerDeletion: - type: boolean - controller: - type: boolean - kind: - type: string - name: - type: string - uid: - description: UID is a type that holds unique - ID values, includi - type: string - type: object - type: array - resourceVersion: - type: string - uid: - description: UID is a type that holds unique ID - values, includi - type: string - type: object - spec: - description: PersistentVolumeClaimSpecApplyConfiguration - repres - properties: - accessModes: - items: - type: string - type: array - dataSource: - description: TypedLocalObjectReferenceApplyConfiguration - repres - properties: - apiGroup: - type: string - kind: - type: string - name: - type: string - type: object - dataSourceRef: - description: 'TypedObjectReferenceApplyConfiguration - represents ' - properties: - apiGroup: - type: string - kind: - type: string - name: - type: string - namespace: - type: string - type: object - resources: - description: 'ResourceRequirementsApplyConfiguration - represents ' - properties: - claims: - items: - description: ResourceClaimApplyConfiguration - represents an decl - properties: - name: - type: string - type: object - type: array - limits: - 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 - description: ResourceList is a set of (resource - name, quantity) - type: object - requests: - 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 - description: ResourceList is a set of (resource - name, quantity) - type: object - type: object - selector: - description: LabelSelectorApplyConfiguration represents - an decl - properties: - matchExpressions: - items: - description: LabelSelectorRequirementApplyConfiguration - represe - properties: - key: - type: string - operator: - description: 'A label selector operator - is the set of operators ' - type: string - values: - items: - type: string - type: array - type: object - type: array - matchLabels: - additionalProperties: - type: string - type: object - type: object - storageClassName: - type: string - volumeMode: - description: PersistentVolumeMode describes how - a volume is int - type: string - volumeName: - type: string - type: object - type: object - type: object - fc: - description: FCVolumeSourceApplyConfiguration represents an - dec - properties: - fsType: - type: string - lun: - format: int32 - type: integer - readOnly: - type: boolean - targetWWNs: - items: - type: string - type: array - wwids: - items: - type: string - type: array - type: object - flexVolume: - description: FlexVolumeSourceApplyConfiguration represents - an d - properties: - driver: - type: string - fsType: - type: string - options: - additionalProperties: - type: string - type: object - readOnly: - type: boolean - secretRef: - description: 'LocalObjectReferenceApplyConfiguration represents ' - properties: - name: - type: string - type: object - type: object - flocker: - description: FlockerVolumeSourceApplyConfiguration represents - a - properties: - datasetName: - type: string - datasetUUID: - type: string - type: object - gcePersistentDisk: - description: GCEPersistentDiskVolumeSourceApplyConfiguration - re - properties: - fsType: - type: string - partition: - format: int32 - type: integer - pdName: - type: string - readOnly: - type: boolean - type: object - gitRepo: - description: GitRepoVolumeSourceApplyConfiguration represents - a - properties: - directory: - type: string - repository: - type: string - revision: - type: string - type: object - glusterfs: - description: GlusterfsVolumeSourceApplyConfiguration represents - properties: - endpoints: - type: string - path: - type: string - readOnly: - type: boolean - type: object - hostPath: - description: 'HostPathVolumeSourceApplyConfiguration represents ' - properties: - path: - type: string - type: - type: string - type: object - iscsi: - description: 'ISCSIVolumeSourceApplyConfiguration represents - an ' - properties: - chapAuthDiscovery: - type: boolean - chapAuthSession: - type: boolean - fsType: - type: string - initiatorName: - type: string - iqn: - type: string - iscsiInterface: - type: string - lun: - format: int32 - type: integer - portals: - items: - type: string - type: array - readOnly: - type: boolean - secretRef: - description: 'LocalObjectReferenceApplyConfiguration represents ' - properties: - name: - type: string - type: object - targetPortal: - type: string - type: object - nfs: - description: NFSVolumeSourceApplyConfiguration represents - an de - properties: - path: - type: string - readOnly: - type: boolean - server: - type: string - type: object - persistentVolumeClaim: - description: PersistentVolumeClaimVolumeSourceApplyConfiguratio - properties: - claimName: - type: string - readOnly: - type: boolean - type: object - photonPersistentDisk: - description: PhotonPersistentDiskVolumeSourceApplyConfiguration - properties: - fsType: - type: string - pdID: - type: string - type: object - portworxVolume: - description: 'PortworxVolumeSourceApplyConfiguration represents ' - properties: - fsType: - type: string - readOnly: - type: boolean - volumeID: - type: string - type: object - projected: - description: ProjectedVolumeSourceApplyConfiguration represents - properties: - defaultMode: - format: int32 - type: integer - sources: - items: - description: VolumeProjectionApplyConfiguration represents - an d - properties: - configMap: - description: ConfigMapProjectionApplyConfiguration - represents a - properties: - items: - items: - description: KeyToPathApplyConfiguration represents - an declarat - properties: - key: - type: string - mode: - format: int32 - type: integer - path: - type: string - type: object - type: array - name: - type: string - optional: - type: boolean - type: object - downwardAPI: - description: DownwardAPIProjectionApplyConfiguration - represents - properties: - items: - items: - description: DownwardAPIVolumeFileApplyConfiguration - represents - properties: - fieldRef: - description: ObjectFieldSelectorApplyConfiguration - represents a - properties: - apiVersion: - type: string - fieldPath: - type: string - type: object - mode: - format: int32 - type: integer - path: - type: string - resourceFieldRef: - description: ResourceFieldSelectorApplyConfiguration - represents - properties: - containerName: - type: string - divisor: - 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 - resource: - type: string - type: object - type: object - type: array - type: object - secret: - description: SecretProjectionApplyConfiguration - represents an d - properties: - items: - items: - description: KeyToPathApplyConfiguration represents - an declarat - properties: - key: - type: string - mode: - format: int32 - type: integer - path: - type: string - type: object - type: array - name: - type: string - optional: - type: boolean - type: object - serviceAccountToken: - description: ServiceAccountTokenProjectionApplyConfiguration - re - properties: - audience: - type: string - expirationSeconds: - format: int64 - type: integer - path: - type: string - type: object - type: object - type: array - type: object - quobyte: - description: QuobyteVolumeSourceApplyConfiguration represents - a - properties: - group: - type: string - readOnly: - type: boolean - registry: - type: string - tenant: - type: string - user: - type: string - volume: - type: string - type: object - rbd: - description: RBDVolumeSourceApplyConfiguration represents - an de - properties: - fsType: - type: string - image: - type: string - keyring: - type: string - monitors: - items: - type: string - type: array - pool: - type: string - readOnly: - type: boolean - secretRef: - description: 'LocalObjectReferenceApplyConfiguration represents ' - properties: - name: - type: string - type: object - user: - type: string - type: object - scaleIO: - description: ScaleIOVolumeSourceApplyConfiguration represents - a - properties: - fsType: - type: string - gateway: - type: string - protectionDomain: - type: string - readOnly: - type: boolean - secretRef: - description: 'LocalObjectReferenceApplyConfiguration represents ' - properties: - name: - type: string - type: object - sslEnabled: - type: boolean - storageMode: - type: string - storagePool: - type: string - system: - type: string - volumeName: - type: string - type: object - secret: - description: SecretVolumeSourceApplyConfiguration represents - an - properties: - defaultMode: - format: int32 - type: integer - items: - items: - description: KeyToPathApplyConfiguration represents - an declarat - properties: - key: - type: string - mode: - format: int32 - type: integer - path: - type: string - type: object - type: array - optional: - type: boolean - secretName: - type: string - type: object - storageos: - description: StorageOSVolumeSourceApplyConfiguration represents - properties: - fsType: - type: string - readOnly: - type: boolean - secretRef: - description: 'LocalObjectReferenceApplyConfiguration represents ' - properties: - name: - type: string - type: object - volumeName: - type: string - volumeNamespace: - type: string - type: object - vsphereVolume: - description: VsphereVirtualDiskVolumeSourceApplyConfiguration - r - properties: - fsType: - type: string - storagePolicyID: - type: string - storagePolicyName: - type: string - volumePath: - type: string - type: object - type: object - required: - - bucketConfig - - serviceAccountName - - workVolume - type: object - schedule: - description: The schedule in Cron format for periodic backups. - type: string - startingDeadlineSeconds: - description: 'Optional deadline in seconds for starting the job ' - format: int64 - nullable: true - type: integer - successfulJobsHistoryLimit: - description: The number of successful finished jobs to retain. - format: int32 - minimum: 0 - nullable: true - type: integer - required: - - jobConfig - - schedule - type: object - required: - - spec - type: object - served: true - storage: false - name: v1beta2 schema: openAPIV3Schema: diff --git a/config/crd/tests/apiextensions.k8s.io_v1_customresourcedefinition_mysqlclusters.moco.cybozu.com.yaml b/config/crd/tests/apiextensions.k8s.io_v1_customresourcedefinition_mysqlclusters.moco.cybozu.com.yaml index 7d698b41c..4db87d6ec 100644 --- a/config/crd/tests/apiextensions.k8s.io_v1_customresourcedefinition_mysqlclusters.moco.cybozu.com.yaml +++ b/config/crd/tests/apiextensions.k8s.io_v1_customresourcedefinition_mysqlclusters.moco.cybozu.com.yaml @@ -24,6156 +24,6 @@ spec: singular: mysqlcluster scope: Namespaced versions: - - additionalPrinterColumns: - - jsonPath: .status.conditions[?(@.type=='Available')].status - name: Available - type: string - - jsonPath: .status.conditions[?(@.type=='Healthy')].status - name: Healthy - type: string - - jsonPath: .status.currentPrimaryIndex - name: Primary - type: integer - - jsonPath: .status.syncedReplicas - name: Synced replicas - type: integer - - jsonPath: .status.errantReplicas - name: Errant replicas - type: integer - - jsonPath: .status.backup.time - name: Last backup - type: string - deprecated: true - name: v1beta1 - schema: - openAPIV3Schema: - description: MySQLCluster is the Schema for the mysqlclusters A - properties: - apiVersion: - description: APIVersion defines the versioned schema of this re - type: string - kind: - description: Kind is a string value representing the REST resou - type: string - metadata: - type: object - spec: - description: MySQLClusterSpec defines the desired state of MySQ - properties: - backupPolicyName: - description: The name of BackupPolicy custom resource in the sa - nullable: true - type: string - collectors: - description: 'Collectors is the list of collector flag names of ' - items: - type: string - type: array - disableSlowQueryLogContainer: - description: DisableSlowQueryLogContainer controls whether to a - type: boolean - logRotationSchedule: - description: LogRotationSchedule specifies the schedule to rota - type: string - maxDelaySeconds: - default: 60 - description: 'MaxDelaySeconds configures the readiness probe of ' - minimum: 0 - type: integer - mysqlConfigMapName: - description: 'MySQLConfigMapName is a `ConfigMap` name of MySQL ' - nullable: true - type: string - podTemplate: - description: PodTemplate is a `Pod` template for MySQL server c - properties: - metadata: - description: Standard object's metadata. - properties: - annotations: - additionalProperties: - type: string - description: Annotations is a map of string keys and values. - type: object - labels: - additionalProperties: - type: string - description: Labels is a map of string keys and values. - type: object - name: - description: Name is the name of the object. - type: string - type: object - spec: - description: Specification of the desired behavior of the pod. - properties: - activeDeadlineSeconds: - format: int64 - type: integer - affinity: - description: AffinityApplyConfiguration represents an declarati - properties: - nodeAffinity: - description: NodeAffinityApplyConfiguration represents - an decla - properties: - preferredDuringSchedulingIgnoredDuringExecution: - items: - description: PreferredSchedulingTermApplyConfiguration - represen - properties: - preference: - description: NodeSelectorTermApplyConfiguration - represents an d - properties: - matchExpressions: - items: - description: NodeSelectorRequirementApplyConfiguration - represen - properties: - key: - type: string - operator: - description: A node selector operator - is the set of operators t - type: string - values: - items: - type: string - type: array - type: object - type: array - matchFields: - items: - description: NodeSelectorRequirementApplyConfiguration - represen - properties: - key: - type: string - operator: - description: A node selector operator - is the set of operators t - type: string - values: - items: - type: string - type: array - type: object - type: array - type: object - weight: - format: int32 - type: integer - type: object - type: array - requiredDuringSchedulingIgnoredDuringExecution: - description: NodeSelectorApplyConfiguration represents - an decla - properties: - nodeSelectorTerms: - items: - description: NodeSelectorTermApplyConfiguration - represents an d - properties: - matchExpressions: - items: - description: NodeSelectorRequirementApplyConfiguration - represen - properties: - key: - type: string - operator: - description: A node selector operator - is the set of operators t - type: string - values: - items: - type: string - type: array - type: object - type: array - matchFields: - items: - description: NodeSelectorRequirementApplyConfiguration - represen - properties: - key: - type: string - operator: - description: A node selector operator - is the set of operators t - type: string - values: - items: - type: string - type: array - type: object - type: array - type: object - type: array - type: object - type: object - podAffinity: - description: PodAffinityApplyConfiguration represents - an declar - properties: - preferredDuringSchedulingIgnoredDuringExecution: - items: - description: WeightedPodAffinityTermApplyConfiguration - represen - properties: - podAffinityTerm: - description: PodAffinityTermApplyConfiguration - represents an de - properties: - labelSelector: - description: LabelSelectorApplyConfiguration - represents an decl - properties: - matchExpressions: - items: - description: LabelSelectorRequirementApplyConfiguration - represe - properties: - key: - type: string - operator: - description: 'A label selector - operator is the set of operators ' - type: string - values: - items: - type: string - type: array - type: object - type: array - matchLabels: - additionalProperties: - type: string - type: object - type: object - namespaceSelector: - description: LabelSelectorApplyConfiguration - represents an decl - properties: - matchExpressions: - items: - description: LabelSelectorRequirementApplyConfiguration - represe - properties: - key: - type: string - operator: - description: 'A label selector - operator is the set of operators ' - type: string - values: - items: - type: string - type: array - type: object - type: array - matchLabels: - additionalProperties: - type: string - type: object - type: object - namespaces: - items: - type: string - type: array - topologyKey: - type: string - type: object - weight: - format: int32 - type: integer - type: object - type: array - requiredDuringSchedulingIgnoredDuringExecution: - items: - description: PodAffinityTermApplyConfiguration represents - an de - properties: - labelSelector: - description: LabelSelectorApplyConfiguration - represents an decl - properties: - matchExpressions: - items: - description: LabelSelectorRequirementApplyConfiguration - represe - properties: - key: - type: string - operator: - description: 'A label selector operator - is the set of operators ' - type: string - values: - items: - type: string - type: array - type: object - type: array - matchLabels: - additionalProperties: - type: string - type: object - type: object - namespaceSelector: - description: LabelSelectorApplyConfiguration - represents an decl - properties: - matchExpressions: - items: - description: LabelSelectorRequirementApplyConfiguration - represe - properties: - key: - type: string - operator: - description: 'A label selector operator - is the set of operators ' - type: string - values: - items: - type: string - type: array - type: object - type: array - matchLabels: - additionalProperties: - type: string - type: object - type: object - namespaces: - items: - type: string - type: array - topologyKey: - type: string - type: object - type: array - type: object - podAntiAffinity: - description: PodAntiAffinityApplyConfiguration represents - an de - properties: - preferredDuringSchedulingIgnoredDuringExecution: - items: - description: WeightedPodAffinityTermApplyConfiguration - represen - properties: - podAffinityTerm: - description: PodAffinityTermApplyConfiguration - represents an de - properties: - labelSelector: - description: LabelSelectorApplyConfiguration - represents an decl - properties: - matchExpressions: - items: - description: LabelSelectorRequirementApplyConfiguration - represe - properties: - key: - type: string - operator: - description: 'A label selector - operator is the set of operators ' - type: string - values: - items: - type: string - type: array - type: object - type: array - matchLabels: - additionalProperties: - type: string - type: object - type: object - namespaceSelector: - description: LabelSelectorApplyConfiguration - represents an decl - properties: - matchExpressions: - items: - description: LabelSelectorRequirementApplyConfiguration - represe - properties: - key: - type: string - operator: - description: 'A label selector - operator is the set of operators ' - type: string - values: - items: - type: string - type: array - type: object - type: array - matchLabels: - additionalProperties: - type: string - type: object - type: object - namespaces: - items: - type: string - type: array - topologyKey: - type: string - type: object - weight: - format: int32 - type: integer - type: object - type: array - requiredDuringSchedulingIgnoredDuringExecution: - items: - description: PodAffinityTermApplyConfiguration represents - an de - properties: - labelSelector: - description: LabelSelectorApplyConfiguration - represents an decl - properties: - matchExpressions: - items: - description: LabelSelectorRequirementApplyConfiguration - represe - properties: - key: - type: string - operator: - description: 'A label selector operator - is the set of operators ' - type: string - values: - items: - type: string - type: array - type: object - type: array - matchLabels: - additionalProperties: - type: string - type: object - type: object - namespaceSelector: - description: LabelSelectorApplyConfiguration - represents an decl - properties: - matchExpressions: - items: - description: LabelSelectorRequirementApplyConfiguration - represe - properties: - key: - type: string - operator: - description: 'A label selector operator - is the set of operators ' - type: string - values: - items: - type: string - type: array - type: object - type: array - matchLabels: - additionalProperties: - type: string - type: object - type: object - namespaces: - items: - type: string - type: array - topologyKey: - type: string - type: object - type: array - type: object - type: object - automountServiceAccountToken: - type: boolean - containers: - items: - description: ContainerApplyConfiguration represents an declarat - properties: - args: - items: - type: string - type: array - command: - items: - type: string - type: array - env: - items: - description: EnvVarApplyConfiguration represents an - declarative - properties: - name: - type: string - value: - type: string - valueFrom: - description: EnvVarSourceApplyConfiguration represents - an decla - properties: - configMapKeyRef: - description: 'ConfigMapKeySelectorApplyConfiguration - represents ' - properties: - key: - type: string - name: - type: string - optional: - type: boolean - type: object - fieldRef: - description: ObjectFieldSelectorApplyConfiguration - represents a - properties: - apiVersion: - type: string - fieldPath: - type: string - type: object - resourceFieldRef: - description: ResourceFieldSelectorApplyConfiguration - represents - properties: - containerName: - type: string - divisor: - 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 - resource: - type: string - type: object - secretKeyRef: - description: 'SecretKeySelectorApplyConfiguration - represents an ' - properties: - key: - type: string - name: - type: string - optional: - type: boolean - type: object - type: object - type: object - type: array - envFrom: - items: - description: EnvFromSourceApplyConfiguration represents - an decl - properties: - configMapRef: - description: ConfigMapEnvSourceApplyConfiguration - represents an - properties: - name: - type: string - optional: - type: boolean - type: object - prefix: - type: string - secretRef: - description: SecretEnvSourceApplyConfiguration - represents an de - properties: - name: - type: string - optional: - type: boolean - type: object - type: object - type: array - image: - type: string - imagePullPolicy: - description: 'PullPolicy describes a policy for if/when - to pull ' - type: string - lifecycle: - description: LifecycleApplyConfiguration represents - an declarat - properties: - postStart: - description: LifecycleHandlerApplyConfiguration - represents an d - properties: - exec: - description: ExecActionApplyConfiguration represents - an declara - properties: - command: - items: - type: string - type: array - type: object - httpGet: - description: HTTPGetActionApplyConfiguration - represents an decl - properties: - host: - type: string - httpHeaders: - items: - description: HTTPHeaderApplyConfiguration - represents an declara - properties: - name: - type: string - value: - type: string - type: object - type: array - path: - type: string - port: - anyOf: - - type: integer - - type: string - x-kubernetes-int-or-string: true - scheme: - description: URIScheme identifies the scheme - used for connectio - type: string - type: object - tcpSocket: - description: TCPSocketActionApplyConfiguration - represents an de - properties: - host: - type: string - port: - anyOf: - - type: integer - - type: string - x-kubernetes-int-or-string: true - type: object - type: object - preStop: - description: LifecycleHandlerApplyConfiguration - represents an d - properties: - exec: - description: ExecActionApplyConfiguration represents - an declara - properties: - command: - items: - type: string - type: array - type: object - httpGet: - description: HTTPGetActionApplyConfiguration - represents an decl - properties: - host: - type: string - httpHeaders: - items: - description: HTTPHeaderApplyConfiguration - represents an declara - properties: - name: - type: string - value: - type: string - type: object - type: array - path: - type: string - port: - anyOf: - - type: integer - - type: string - x-kubernetes-int-or-string: true - scheme: - description: URIScheme identifies the scheme - used for connectio - type: string - type: object - tcpSocket: - description: TCPSocketActionApplyConfiguration - represents an de - properties: - host: - type: string - port: - anyOf: - - type: integer - - type: string - x-kubernetes-int-or-string: true - type: object - type: object - type: object - livenessProbe: - description: 'ProbeApplyConfiguration represents an - declarative ' - properties: - exec: - description: ExecActionApplyConfiguration represents - an declara - properties: - command: - items: - type: string - type: array - type: object - failureThreshold: - format: int32 - type: integer - grpc: - description: GRPCActionApplyConfiguration represents - an declara - properties: - port: - format: int32 - type: integer - service: - type: string - type: object - httpGet: - description: HTTPGetActionApplyConfiguration represents - an decl - properties: - host: - type: string - httpHeaders: - items: - description: HTTPHeaderApplyConfiguration - represents an declara - properties: - name: - type: string - value: - type: string - type: object - type: array - path: - type: string - port: - anyOf: - - type: integer - - type: string - x-kubernetes-int-or-string: true - scheme: - description: URIScheme identifies the scheme - used for connectio - type: string - type: object - initialDelaySeconds: - format: int32 - type: integer - periodSeconds: - format: int32 - type: integer - successThreshold: - format: int32 - type: integer - tcpSocket: - description: TCPSocketActionApplyConfiguration represents - an de - properties: - host: - type: string - port: - anyOf: - - type: integer - - type: string - x-kubernetes-int-or-string: true - type: object - terminationGracePeriodSeconds: - format: int64 - type: integer - timeoutSeconds: - format: int32 - type: integer - type: object - name: - type: string - ports: - items: - description: ContainerPortApplyConfiguration represents - an decl - properties: - containerPort: - format: int32 - type: integer - hostIP: - type: string - hostPort: - format: int32 - type: integer - name: - type: string - protocol: - default: TCP - type: string - type: object - type: array - readinessProbe: - description: 'ProbeApplyConfiguration represents an - declarative ' - properties: - exec: - description: ExecActionApplyConfiguration represents - an declara - properties: - command: - items: - type: string - type: array - type: object - failureThreshold: - format: int32 - type: integer - grpc: - description: GRPCActionApplyConfiguration represents - an declara - properties: - port: - format: int32 - type: integer - service: - type: string - type: object - httpGet: - description: HTTPGetActionApplyConfiguration represents - an decl - properties: - host: - type: string - httpHeaders: - items: - description: HTTPHeaderApplyConfiguration - represents an declara - properties: - name: - type: string - value: - type: string - type: object - type: array - path: - type: string - port: - anyOf: - - type: integer - - type: string - x-kubernetes-int-or-string: true - scheme: - description: URIScheme identifies the scheme - used for connectio - type: string - type: object - initialDelaySeconds: - format: int32 - type: integer - periodSeconds: - format: int32 - type: integer - successThreshold: - format: int32 - type: integer - tcpSocket: - description: TCPSocketActionApplyConfiguration represents - an de - properties: - host: - type: string - port: - anyOf: - - type: integer - - type: string - x-kubernetes-int-or-string: true - type: object - terminationGracePeriodSeconds: - format: int64 - type: integer - timeoutSeconds: - format: int32 - type: integer - type: object - resizePolicy: - items: - description: ContainerResizePolicyApplyConfiguration - represents - properties: - resourceName: - description: ResourceName is the name identifying - various resou - type: string - restartPolicy: - description: ResourceResizeRestartPolicy specifies - how to handl - type: string - type: object - type: array - resources: - description: 'ResourceRequirementsApplyConfiguration - represents ' - properties: - claims: - items: - description: ResourceClaimApplyConfiguration represents - an decl - properties: - name: - type: string - type: object - type: array - limits: - 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 - description: ResourceList is a set of (resource - name, quantity) - type: object - requests: - 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 - description: ResourceList is a set of (resource - name, quantity) - type: object - type: object - securityContext: - description: SecurityContextApplyConfiguration represents - an de - properties: - allowPrivilegeEscalation: - type: boolean - capabilities: - description: CapabilitiesApplyConfiguration represents - an decla - properties: - add: - items: - description: Capability represent POSIX capabilities - type - type: string - type: array - drop: - items: - description: Capability represent POSIX capabilities - type - type: string - type: array - type: object - privileged: - type: boolean - procMount: - type: string - readOnlyRootFilesystem: - type: boolean - runAsGroup: - format: int64 - type: integer - runAsNonRoot: - type: boolean - runAsUser: - format: int64 - type: integer - seLinuxOptions: - description: SELinuxOptionsApplyConfiguration represents - an dec - properties: - level: - type: string - role: - type: string - type: - type: string - user: - type: string - type: object - seccompProfile: - description: SeccompProfileApplyConfiguration represents - an dec - properties: - localhostProfile: - type: string - type: - description: SeccompProfileType defines the - supported seccomp p - type: string - type: object - windowsOptions: - description: WindowsSecurityContextOptionsApplyConfiguration - re - properties: - gmsaCredentialSpec: - type: string - gmsaCredentialSpecName: - type: string - hostProcess: - type: boolean - runAsUserName: - type: string - type: object - type: object - startupProbe: - description: 'ProbeApplyConfiguration represents an - declarative ' - properties: - exec: - description: ExecActionApplyConfiguration represents - an declara - properties: - command: - items: - type: string - type: array - type: object - failureThreshold: - format: int32 - type: integer - grpc: - description: GRPCActionApplyConfiguration represents - an declara - properties: - port: - format: int32 - type: integer - service: - type: string - type: object - httpGet: - description: HTTPGetActionApplyConfiguration represents - an decl - properties: - host: - type: string - httpHeaders: - items: - description: HTTPHeaderApplyConfiguration - represents an declara - properties: - name: - type: string - value: - type: string - type: object - type: array - path: - type: string - port: - anyOf: - - type: integer - - type: string - x-kubernetes-int-or-string: true - scheme: - description: URIScheme identifies the scheme - used for connectio - type: string - type: object - initialDelaySeconds: - format: int32 - type: integer - periodSeconds: - format: int32 - type: integer - successThreshold: - format: int32 - type: integer - tcpSocket: - description: TCPSocketActionApplyConfiguration represents - an de - properties: - host: - type: string - port: - anyOf: - - type: integer - - type: string - x-kubernetes-int-or-string: true - type: object - terminationGracePeriodSeconds: - format: int64 - type: integer - timeoutSeconds: - format: int32 - type: integer - type: object - stdin: - type: boolean - stdinOnce: - type: boolean - terminationMessagePath: - type: string - terminationMessagePolicy: - description: TerminationMessagePolicy describes how - termination - type: string - tty: - type: boolean - volumeDevices: - items: - description: VolumeDeviceApplyConfiguration represents - an decla - properties: - devicePath: - type: string - name: - type: string - type: object - type: array - volumeMounts: - items: - description: VolumeMountApplyConfiguration represents - an declar - properties: - mountPath: - type: string - mountPropagation: - description: MountPropagationMode describes mount - propagation. - type: string - name: - type: string - readOnly: - type: boolean - subPath: - type: string - subPathExpr: - type: string - type: object - type: array - workingDir: - type: string - type: object - type: array - dnsConfig: - description: PodDNSConfigApplyConfiguration represents an - decla - properties: - nameservers: - items: - type: string - type: array - options: - items: - description: PodDNSConfigOptionApplyConfiguration represents - an - properties: - name: - type: string - value: - type: string - type: object - type: array - searches: - items: - type: string - type: array - type: object - dnsPolicy: - description: DNSPolicy defines how a pod's DNS will be configur - type: string - enableServiceLinks: - type: boolean - ephemeralContainers: - items: - description: EphemeralContainerApplyConfiguration represents - an - properties: - args: - items: - type: string - type: array - command: - items: - type: string - type: array - env: - items: - description: EnvVarApplyConfiguration represents an - declarative - properties: - name: - type: string - value: - type: string - valueFrom: - description: EnvVarSourceApplyConfiguration represents - an decla - properties: - configMapKeyRef: - description: 'ConfigMapKeySelectorApplyConfiguration - represents ' - properties: - key: - type: string - name: - type: string - optional: - type: boolean - type: object - fieldRef: - description: ObjectFieldSelectorApplyConfiguration - represents a - properties: - apiVersion: - type: string - fieldPath: - type: string - type: object - resourceFieldRef: - description: ResourceFieldSelectorApplyConfiguration - represents - properties: - containerName: - type: string - divisor: - 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 - resource: - type: string - type: object - secretKeyRef: - description: 'SecretKeySelectorApplyConfiguration - represents an ' - properties: - key: - type: string - name: - type: string - optional: - type: boolean - type: object - type: object - type: object - type: array - envFrom: - items: - description: EnvFromSourceApplyConfiguration represents - an decl - properties: - configMapRef: - description: ConfigMapEnvSourceApplyConfiguration - represents an - properties: - name: - type: string - optional: - type: boolean - type: object - prefix: - type: string - secretRef: - description: SecretEnvSourceApplyConfiguration - represents an de - properties: - name: - type: string - optional: - type: boolean - type: object - type: object - type: array - image: - type: string - imagePullPolicy: - description: 'PullPolicy describes a policy for if/when - to pull ' - type: string - lifecycle: - description: LifecycleApplyConfiguration represents - an declarat - properties: - postStart: - description: LifecycleHandlerApplyConfiguration - represents an d - properties: - exec: - description: ExecActionApplyConfiguration represents - an declara - properties: - command: - items: - type: string - type: array - type: object - httpGet: - description: HTTPGetActionApplyConfiguration - represents an decl - properties: - host: - type: string - httpHeaders: - items: - description: HTTPHeaderApplyConfiguration - represents an declara - properties: - name: - type: string - value: - type: string - type: object - type: array - path: - type: string - port: - anyOf: - - type: integer - - type: string - x-kubernetes-int-or-string: true - scheme: - description: URIScheme identifies the scheme - used for connectio - type: string - type: object - tcpSocket: - description: TCPSocketActionApplyConfiguration - represents an de - properties: - host: - type: string - port: - anyOf: - - type: integer - - type: string - x-kubernetes-int-or-string: true - type: object - type: object - preStop: - description: LifecycleHandlerApplyConfiguration - represents an d - properties: - exec: - description: ExecActionApplyConfiguration represents - an declara - properties: - command: - items: - type: string - type: array - type: object - httpGet: - description: HTTPGetActionApplyConfiguration - represents an decl - properties: - host: - type: string - httpHeaders: - items: - description: HTTPHeaderApplyConfiguration - represents an declara - properties: - name: - type: string - value: - type: string - type: object - type: array - path: - type: string - port: - anyOf: - - type: integer - - type: string - x-kubernetes-int-or-string: true - scheme: - description: URIScheme identifies the scheme - used for connectio - type: string - type: object - tcpSocket: - description: TCPSocketActionApplyConfiguration - represents an de - properties: - host: - type: string - port: - anyOf: - - type: integer - - type: string - x-kubernetes-int-or-string: true - type: object - type: object - type: object - livenessProbe: - description: 'ProbeApplyConfiguration represents an - declarative ' - properties: - exec: - description: ExecActionApplyConfiguration represents - an declara - properties: - command: - items: - type: string - type: array - type: object - failureThreshold: - format: int32 - type: integer - grpc: - description: GRPCActionApplyConfiguration represents - an declara - properties: - port: - format: int32 - type: integer - service: - type: string - type: object - httpGet: - description: HTTPGetActionApplyConfiguration represents - an decl - properties: - host: - type: string - httpHeaders: - items: - description: HTTPHeaderApplyConfiguration - represents an declara - properties: - name: - type: string - value: - type: string - type: object - type: array - path: - type: string - port: - anyOf: - - type: integer - - type: string - x-kubernetes-int-or-string: true - scheme: - description: URIScheme identifies the scheme - used for connectio - type: string - type: object - initialDelaySeconds: - format: int32 - type: integer - periodSeconds: - format: int32 - type: integer - successThreshold: - format: int32 - type: integer - tcpSocket: - description: TCPSocketActionApplyConfiguration represents - an de - properties: - host: - type: string - port: - anyOf: - - type: integer - - type: string - x-kubernetes-int-or-string: true - type: object - terminationGracePeriodSeconds: - format: int64 - type: integer - timeoutSeconds: - format: int32 - type: integer - type: object - name: - type: string - ports: - items: - description: ContainerPortApplyConfiguration represents - an decl - properties: - containerPort: - format: int32 - type: integer - hostIP: - type: string - hostPort: - format: int32 - type: integer - name: - type: string - protocol: - default: TCP - type: string - type: object - type: array - readinessProbe: - description: 'ProbeApplyConfiguration represents an - declarative ' - properties: - exec: - description: ExecActionApplyConfiguration represents - an declara - properties: - command: - items: - type: string - type: array - type: object - failureThreshold: - format: int32 - type: integer - grpc: - description: GRPCActionApplyConfiguration represents - an declara - properties: - port: - format: int32 - type: integer - service: - type: string - type: object - httpGet: - description: HTTPGetActionApplyConfiguration represents - an decl - properties: - host: - type: string - httpHeaders: - items: - description: HTTPHeaderApplyConfiguration - represents an declara - properties: - name: - type: string - value: - type: string - type: object - type: array - path: - type: string - port: - anyOf: - - type: integer - - type: string - x-kubernetes-int-or-string: true - scheme: - description: URIScheme identifies the scheme - used for connectio - type: string - type: object - initialDelaySeconds: - format: int32 - type: integer - periodSeconds: - format: int32 - type: integer - successThreshold: - format: int32 - type: integer - tcpSocket: - description: TCPSocketActionApplyConfiguration represents - an de - properties: - host: - type: string - port: - anyOf: - - type: integer - - type: string - x-kubernetes-int-or-string: true - type: object - terminationGracePeriodSeconds: - format: int64 - type: integer - timeoutSeconds: - format: int32 - type: integer - type: object - resizePolicy: - items: - description: ContainerResizePolicyApplyConfiguration - represents - properties: - resourceName: - description: ResourceName is the name identifying - various resou - type: string - restartPolicy: - description: ResourceResizeRestartPolicy specifies - how to handl - type: string - type: object - type: array - resources: - description: 'ResourceRequirementsApplyConfiguration - represents ' - properties: - claims: - items: - description: ResourceClaimApplyConfiguration represents - an decl - properties: - name: - type: string - type: object - type: array - limits: - 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 - description: ResourceList is a set of (resource - name, quantity) - type: object - requests: - 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 - description: ResourceList is a set of (resource - name, quantity) - type: object - type: object - securityContext: - description: SecurityContextApplyConfiguration represents - an de - properties: - allowPrivilegeEscalation: - type: boolean - capabilities: - description: CapabilitiesApplyConfiguration represents - an decla - properties: - add: - items: - description: Capability represent POSIX capabilities - type - type: string - type: array - drop: - items: - description: Capability represent POSIX capabilities - type - type: string - type: array - type: object - privileged: - type: boolean - procMount: - type: string - readOnlyRootFilesystem: - type: boolean - runAsGroup: - format: int64 - type: integer - runAsNonRoot: - type: boolean - runAsUser: - format: int64 - type: integer - seLinuxOptions: - description: SELinuxOptionsApplyConfiguration represents - an dec - properties: - level: - type: string - role: - type: string - type: - type: string - user: - type: string - type: object - seccompProfile: - description: SeccompProfileApplyConfiguration represents - an dec - properties: - localhostProfile: - type: string - type: - description: SeccompProfileType defines the - supported seccomp p - type: string - type: object - windowsOptions: - description: WindowsSecurityContextOptionsApplyConfiguration - re - properties: - gmsaCredentialSpec: - type: string - gmsaCredentialSpecName: - type: string - hostProcess: - type: boolean - runAsUserName: - type: string - type: object - type: object - startupProbe: - description: 'ProbeApplyConfiguration represents an - declarative ' - properties: - exec: - description: ExecActionApplyConfiguration represents - an declara - properties: - command: - items: - type: string - type: array - type: object - failureThreshold: - format: int32 - type: integer - grpc: - description: GRPCActionApplyConfiguration represents - an declara - properties: - port: - format: int32 - type: integer - service: - type: string - type: object - httpGet: - description: HTTPGetActionApplyConfiguration represents - an decl - properties: - host: - type: string - httpHeaders: - items: - description: HTTPHeaderApplyConfiguration - represents an declara - properties: - name: - type: string - value: - type: string - type: object - type: array - path: - type: string - port: - anyOf: - - type: integer - - type: string - x-kubernetes-int-or-string: true - scheme: - description: URIScheme identifies the scheme - used for connectio - type: string - type: object - initialDelaySeconds: - format: int32 - type: integer - periodSeconds: - format: int32 - type: integer - successThreshold: - format: int32 - type: integer - tcpSocket: - description: TCPSocketActionApplyConfiguration represents - an de - properties: - host: - type: string - port: - anyOf: - - type: integer - - type: string - x-kubernetes-int-or-string: true - type: object - terminationGracePeriodSeconds: - format: int64 - type: integer - timeoutSeconds: - format: int32 - type: integer - type: object - stdin: - type: boolean - stdinOnce: - type: boolean - targetContainerName: - type: string - terminationMessagePath: - type: string - terminationMessagePolicy: - description: TerminationMessagePolicy describes how - termination - type: string - tty: - type: boolean - volumeDevices: - items: - description: VolumeDeviceApplyConfiguration represents - an decla - properties: - devicePath: - type: string - name: - type: string - type: object - type: array - volumeMounts: - items: - description: VolumeMountApplyConfiguration represents - an declar - properties: - mountPath: - type: string - mountPropagation: - description: MountPropagationMode describes mount - propagation. - type: string - name: - type: string - readOnly: - type: boolean - subPath: - type: string - subPathExpr: - type: string - type: object - type: array - workingDir: - type: string - type: object - type: array - hostAliases: - items: - description: HostAliasApplyConfiguration represents an declarat - properties: - hostnames: - items: - type: string - type: array - ip: - type: string - type: object - type: array - hostIPC: - type: boolean - hostNetwork: - type: boolean - hostPID: - type: boolean - hostUsers: - type: boolean - hostname: - type: string - imagePullSecrets: - items: - description: 'LocalObjectReferenceApplyConfiguration represents ' - properties: - name: - type: string - type: object - type: array - initContainers: - items: - description: ContainerApplyConfiguration represents an declarat - properties: - args: - items: - type: string - type: array - command: - items: - type: string - type: array - env: - items: - description: EnvVarApplyConfiguration represents an - declarative - properties: - name: - type: string - value: - type: string - valueFrom: - description: EnvVarSourceApplyConfiguration represents - an decla - properties: - configMapKeyRef: - description: 'ConfigMapKeySelectorApplyConfiguration - represents ' - properties: - key: - type: string - name: - type: string - optional: - type: boolean - type: object - fieldRef: - description: ObjectFieldSelectorApplyConfiguration - represents a - properties: - apiVersion: - type: string - fieldPath: - type: string - type: object - resourceFieldRef: - description: ResourceFieldSelectorApplyConfiguration - represents - properties: - containerName: - type: string - divisor: - 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 - resource: - type: string - type: object - secretKeyRef: - description: 'SecretKeySelectorApplyConfiguration - represents an ' - properties: - key: - type: string - name: - type: string - optional: - type: boolean - type: object - type: object - type: object - type: array - envFrom: - items: - description: EnvFromSourceApplyConfiguration represents - an decl - properties: - configMapRef: - description: ConfigMapEnvSourceApplyConfiguration - represents an - properties: - name: - type: string - optional: - type: boolean - type: object - prefix: - type: string - secretRef: - description: SecretEnvSourceApplyConfiguration - represents an de - properties: - name: - type: string - optional: - type: boolean - type: object - type: object - type: array - image: - type: string - imagePullPolicy: - description: 'PullPolicy describes a policy for if/when - to pull ' - type: string - lifecycle: - description: LifecycleApplyConfiguration represents - an declarat - properties: - postStart: - description: LifecycleHandlerApplyConfiguration - represents an d - properties: - exec: - description: ExecActionApplyConfiguration represents - an declara - properties: - command: - items: - type: string - type: array - type: object - httpGet: - description: HTTPGetActionApplyConfiguration - represents an decl - properties: - host: - type: string - httpHeaders: - items: - description: HTTPHeaderApplyConfiguration - represents an declara - properties: - name: - type: string - value: - type: string - type: object - type: array - path: - type: string - port: - anyOf: - - type: integer - - type: string - x-kubernetes-int-or-string: true - scheme: - description: URIScheme identifies the scheme - used for connectio - type: string - type: object - tcpSocket: - description: TCPSocketActionApplyConfiguration - represents an de - properties: - host: - type: string - port: - anyOf: - - type: integer - - type: string - x-kubernetes-int-or-string: true - type: object - type: object - preStop: - description: LifecycleHandlerApplyConfiguration - represents an d - properties: - exec: - description: ExecActionApplyConfiguration represents - an declara - properties: - command: - items: - type: string - type: array - type: object - httpGet: - description: HTTPGetActionApplyConfiguration - represents an decl - properties: - host: - type: string - httpHeaders: - items: - description: HTTPHeaderApplyConfiguration - represents an declara - properties: - name: - type: string - value: - type: string - type: object - type: array - path: - type: string - port: - anyOf: - - type: integer - - type: string - x-kubernetes-int-or-string: true - scheme: - description: URIScheme identifies the scheme - used for connectio - type: string - type: object - tcpSocket: - description: TCPSocketActionApplyConfiguration - represents an de - properties: - host: - type: string - port: - anyOf: - - type: integer - - type: string - x-kubernetes-int-or-string: true - type: object - type: object - type: object - livenessProbe: - description: 'ProbeApplyConfiguration represents an - declarative ' - properties: - exec: - description: ExecActionApplyConfiguration represents - an declara - properties: - command: - items: - type: string - type: array - type: object - failureThreshold: - format: int32 - type: integer - grpc: - description: GRPCActionApplyConfiguration represents - an declara - properties: - port: - format: int32 - type: integer - service: - type: string - type: object - httpGet: - description: HTTPGetActionApplyConfiguration represents - an decl - properties: - host: - type: string - httpHeaders: - items: - description: HTTPHeaderApplyConfiguration - represents an declara - properties: - name: - type: string - value: - type: string - type: object - type: array - path: - type: string - port: - anyOf: - - type: integer - - type: string - x-kubernetes-int-or-string: true - scheme: - description: URIScheme identifies the scheme - used for connectio - type: string - type: object - initialDelaySeconds: - format: int32 - type: integer - periodSeconds: - format: int32 - type: integer - successThreshold: - format: int32 - type: integer - tcpSocket: - description: TCPSocketActionApplyConfiguration represents - an de - properties: - host: - type: string - port: - anyOf: - - type: integer - - type: string - x-kubernetes-int-or-string: true - type: object - terminationGracePeriodSeconds: - format: int64 - type: integer - timeoutSeconds: - format: int32 - type: integer - type: object - name: - type: string - ports: - items: - description: ContainerPortApplyConfiguration represents - an decl - properties: - containerPort: - format: int32 - type: integer - hostIP: - type: string - hostPort: - format: int32 - type: integer - name: - type: string - protocol: - default: TCP - type: string - type: object - type: array - readinessProbe: - description: 'ProbeApplyConfiguration represents an - declarative ' - properties: - exec: - description: ExecActionApplyConfiguration represents - an declara - properties: - command: - items: - type: string - type: array - type: object - failureThreshold: - format: int32 - type: integer - grpc: - description: GRPCActionApplyConfiguration represents - an declara - properties: - port: - format: int32 - type: integer - service: - type: string - type: object - httpGet: - description: HTTPGetActionApplyConfiguration represents - an decl - properties: - host: - type: string - httpHeaders: - items: - description: HTTPHeaderApplyConfiguration - represents an declara - properties: - name: - type: string - value: - type: string - type: object - type: array - path: - type: string - port: - anyOf: - - type: integer - - type: string - x-kubernetes-int-or-string: true - scheme: - description: URIScheme identifies the scheme - used for connectio - type: string - type: object - initialDelaySeconds: - format: int32 - type: integer - periodSeconds: - format: int32 - type: integer - successThreshold: - format: int32 - type: integer - tcpSocket: - description: TCPSocketActionApplyConfiguration represents - an de - properties: - host: - type: string - port: - anyOf: - - type: integer - - type: string - x-kubernetes-int-or-string: true - type: object - terminationGracePeriodSeconds: - format: int64 - type: integer - timeoutSeconds: - format: int32 - type: integer - type: object - resizePolicy: - items: - description: ContainerResizePolicyApplyConfiguration - represents - properties: - resourceName: - description: ResourceName is the name identifying - various resou - type: string - restartPolicy: - description: ResourceResizeRestartPolicy specifies - how to handl - type: string - type: object - type: array - resources: - description: 'ResourceRequirementsApplyConfiguration - represents ' - properties: - claims: - items: - description: ResourceClaimApplyConfiguration represents - an decl - properties: - name: - type: string - type: object - type: array - limits: - 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 - description: ResourceList is a set of (resource - name, quantity) - type: object - requests: - 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 - description: ResourceList is a set of (resource - name, quantity) - type: object - type: object - securityContext: - description: SecurityContextApplyConfiguration represents - an de - properties: - allowPrivilegeEscalation: - type: boolean - capabilities: - description: CapabilitiesApplyConfiguration represents - an decla - properties: - add: - items: - description: Capability represent POSIX capabilities - type - type: string - type: array - drop: - items: - description: Capability represent POSIX capabilities - type - type: string - type: array - type: object - privileged: - type: boolean - procMount: - type: string - readOnlyRootFilesystem: - type: boolean - runAsGroup: - format: int64 - type: integer - runAsNonRoot: - type: boolean - runAsUser: - format: int64 - type: integer - seLinuxOptions: - description: SELinuxOptionsApplyConfiguration represents - an dec - properties: - level: - type: string - role: - type: string - type: - type: string - user: - type: string - type: object - seccompProfile: - description: SeccompProfileApplyConfiguration represents - an dec - properties: - localhostProfile: - type: string - type: - description: SeccompProfileType defines the - supported seccomp p - type: string - type: object - windowsOptions: - description: WindowsSecurityContextOptionsApplyConfiguration - re - properties: - gmsaCredentialSpec: - type: string - gmsaCredentialSpecName: - type: string - hostProcess: - type: boolean - runAsUserName: - type: string - type: object - type: object - startupProbe: - description: 'ProbeApplyConfiguration represents an - declarative ' - properties: - exec: - description: ExecActionApplyConfiguration represents - an declara - properties: - command: - items: - type: string - type: array - type: object - failureThreshold: - format: int32 - type: integer - grpc: - description: GRPCActionApplyConfiguration represents - an declara - properties: - port: - format: int32 - type: integer - service: - type: string - type: object - httpGet: - description: HTTPGetActionApplyConfiguration represents - an decl - properties: - host: - type: string - httpHeaders: - items: - description: HTTPHeaderApplyConfiguration - represents an declara - properties: - name: - type: string - value: - type: string - type: object - type: array - path: - type: string - port: - anyOf: - - type: integer - - type: string - x-kubernetes-int-or-string: true - scheme: - description: URIScheme identifies the scheme - used for connectio - type: string - type: object - initialDelaySeconds: - format: int32 - type: integer - periodSeconds: - format: int32 - type: integer - successThreshold: - format: int32 - type: integer - tcpSocket: - description: TCPSocketActionApplyConfiguration represents - an de - properties: - host: - type: string - port: - anyOf: - - type: integer - - type: string - x-kubernetes-int-or-string: true - type: object - terminationGracePeriodSeconds: - format: int64 - type: integer - timeoutSeconds: - format: int32 - type: integer - type: object - stdin: - type: boolean - stdinOnce: - type: boolean - terminationMessagePath: - type: string - terminationMessagePolicy: - description: TerminationMessagePolicy describes how - termination - type: string - tty: - type: boolean - volumeDevices: - items: - description: VolumeDeviceApplyConfiguration represents - an decla - properties: - devicePath: - type: string - name: - type: string - type: object - type: array - volumeMounts: - items: - description: VolumeMountApplyConfiguration represents - an declar - properties: - mountPath: - type: string - mountPropagation: - description: MountPropagationMode describes mount - propagation. - type: string - name: - type: string - readOnly: - type: boolean - subPath: - type: string - subPathExpr: - type: string - type: object - type: array - workingDir: - type: string - type: object - type: array - nodeName: - type: string - nodeSelector: - additionalProperties: - type: string - type: object - os: - description: 'PodOSApplyConfiguration represents an declarative ' - properties: - name: - description: OSName is the set of OS'es that can be used - in OS. - type: string - type: object - overhead: - 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 - description: ResourceList is a set of (resource name, quantity) - type: object - preemptionPolicy: - description: PreemptionPolicy describes a policy for if/when - to - type: string - priority: - format: int32 - type: integer - priorityClassName: - type: string - readinessGates: - items: - description: PodReadinessGateApplyConfiguration represents - an d - properties: - conditionType: - description: PodConditionType is a valid value for PodCondition - type: string - type: object - type: array - resourceClaims: - items: - description: PodResourceClaimApplyConfiguration represents - an d - properties: - name: - type: string - source: - description: ClaimSourceApplyConfiguration represents - an declar - properties: - resourceClaimName: - type: string - resourceClaimTemplateName: - type: string - type: object - type: object - type: array - restartPolicy: - description: RestartPolicy describes how the container should - b - type: string - runtimeClassName: - type: string - schedulerName: - type: string - schedulingGates: - items: - description: 'PodSchedulingGateApplyConfiguration represents - an ' - properties: - name: - type: string - type: object - type: array - securityContext: - description: PodSecurityContextApplyConfiguration represents - an - properties: - fsGroup: - format: int64 - type: integer - fsGroupChangePolicy: - description: PodFSGroupChangePolicy holds policies that - will be - type: string - runAsGroup: - format: int64 - type: integer - runAsNonRoot: - type: boolean - runAsUser: - format: int64 - type: integer - seLinuxOptions: - description: SELinuxOptionsApplyConfiguration represents - an dec - properties: - level: - type: string - role: - type: string - type: - type: string - user: - type: string - type: object - seccompProfile: - description: SeccompProfileApplyConfiguration represents - an dec - properties: - localhostProfile: - type: string - type: - description: SeccompProfileType defines the supported - seccomp p - type: string - type: object - supplementalGroups: - items: - format: int64 - type: integer - type: array - sysctls: - items: - description: SysctlApplyConfiguration represents an - declarative - properties: - name: - type: string - value: - type: string - type: object - type: array - windowsOptions: - description: WindowsSecurityContextOptionsApplyConfiguration - re - properties: - gmsaCredentialSpec: - type: string - gmsaCredentialSpecName: - type: string - hostProcess: - type: boolean - runAsUserName: - type: string - type: object - type: object - serviceAccount: - type: string - serviceAccountName: - type: string - setHostnameAsFQDN: - type: boolean - shareProcessNamespace: - type: boolean - subdomain: - type: string - terminationGracePeriodSeconds: - format: int64 - type: integer - tolerations: - items: - description: TolerationApplyConfiguration represents an - declara - properties: - effect: - type: string - key: - type: string - operator: - description: A toleration operator is the set of operators - that - type: string - tolerationSeconds: - format: int64 - type: integer - value: - type: string - type: object - type: array - topologySpreadConstraints: - items: - description: TopologySpreadConstraintApplyConfiguration - represe - properties: - labelSelector: - description: LabelSelectorApplyConfiguration represents - an decl - properties: - matchExpressions: - items: - description: LabelSelectorRequirementApplyConfiguration - represe - properties: - key: - type: string - operator: - description: 'A label selector operator is - the set of operators ' - type: string - values: - items: - type: string - type: array - type: object - type: array - matchLabels: - additionalProperties: - type: string - type: object - type: object - matchLabelKeys: - items: - type: string - type: array - maxSkew: - format: int32 - type: integer - minDomains: - format: int32 - type: integer - nodeAffinityPolicy: - description: NodeInclusionPolicy defines the type of - node inclu - type: string - nodeTaintsPolicy: - description: NodeInclusionPolicy defines the type of - node inclu - type: string - topologyKey: - type: string - whenUnsatisfiable: - type: string - type: object - type: array - volumes: - items: - description: VolumeApplyConfiguration represents an declarative - properties: - awsElasticBlockStore: - description: AWSElasticBlockStoreVolumeSourceApplyConfiguration - properties: - fsType: - type: string - partition: - format: int32 - type: integer - readOnly: - type: boolean - volumeID: - type: string - type: object - azureDisk: - description: AzureDiskVolumeSourceApplyConfiguration - represents - properties: - cachingMode: - type: string - diskName: - type: string - diskURI: - type: string - fsType: - type: string - kind: - type: string - readOnly: - type: boolean - type: object - azureFile: - description: AzureFileVolumeSourceApplyConfiguration - represents - properties: - readOnly: - type: boolean - secretName: - type: string - shareName: - type: string - type: object - cephfs: - description: CephFSVolumeSourceApplyConfiguration represents - an - properties: - monitors: - items: - type: string - type: array - path: - type: string - readOnly: - type: boolean - secretFile: - type: string - secretRef: - description: 'LocalObjectReferenceApplyConfiguration - represents ' - properties: - name: - type: string - type: object - user: - type: string - type: object - cinder: - description: CinderVolumeSourceApplyConfiguration represents - an - properties: - fsType: - type: string - readOnly: - type: boolean - secretRef: - description: 'LocalObjectReferenceApplyConfiguration - represents ' - properties: - name: - type: string - type: object - volumeID: - type: string - type: object - configMap: - description: ConfigMapVolumeSourceApplyConfiguration - represents - properties: - defaultMode: - format: int32 - type: integer - items: - items: - description: KeyToPathApplyConfiguration represents - an declarat - properties: - key: - type: string - mode: - format: int32 - type: integer - path: - type: string - type: object - type: array - name: - type: string - optional: - type: boolean - type: object - csi: - description: CSIVolumeSourceApplyConfiguration represents - an de - properties: - driver: - type: string - fsType: - type: string - nodePublishSecretRef: - description: 'LocalObjectReferenceApplyConfiguration - represents ' - properties: - name: - type: string - type: object - readOnly: - type: boolean - volumeAttributes: - additionalProperties: - type: string - type: object - type: object - downwardAPI: - description: DownwardAPIVolumeSourceApplyConfiguration - represen - properties: - defaultMode: - format: int32 - type: integer - items: - items: - description: DownwardAPIVolumeFileApplyConfiguration - represents - properties: - fieldRef: - description: ObjectFieldSelectorApplyConfiguration - represents a - properties: - apiVersion: - type: string - fieldPath: - type: string - type: object - mode: - format: int32 - type: integer - path: - type: string - resourceFieldRef: - description: ResourceFieldSelectorApplyConfiguration - represents - properties: - containerName: - type: string - divisor: - 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 - resource: - type: string - type: object - type: object - type: array - type: object - emptyDir: - description: 'EmptyDirVolumeSourceApplyConfiguration - represents ' - properties: - medium: - description: StorageMedium defines ways that storage - can be all - type: string - sizeLimit: - 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 - ephemeral: - description: EphemeralVolumeSourceApplyConfiguration - represents - properties: - volumeClaimTemplate: - description: PersistentVolumeClaimTemplateApplyConfiguration - re - properties: - metadata: - description: ObjectMetaApplyConfiguration represents - an declara - properties: - annotations: - additionalProperties: - type: string - type: object - creationTimestamp: - format: date-time - type: string - deletionGracePeriodSeconds: - format: int64 - type: integer - deletionTimestamp: - format: date-time - type: string - finalizers: - items: - type: string - type: array - generateName: - type: string - generation: - format: int64 - type: integer - labels: - additionalProperties: - type: string - type: object - name: - type: string - namespace: - type: string - ownerReferences: - items: - description: OwnerReferenceApplyConfiguration - represents an dec - properties: - apiVersion: - type: string - blockOwnerDeletion: - type: boolean - controller: - type: boolean - kind: - type: string - name: - type: string - uid: - description: UID is a type that holds - unique ID values, includi - type: string - type: object - type: array - resourceVersion: - type: string - uid: - description: UID is a type that holds unique - ID values, includi - type: string - type: object - spec: - description: PersistentVolumeClaimSpecApplyConfiguration - repres - properties: - accessModes: - items: - type: string - type: array - dataSource: - description: TypedLocalObjectReferenceApplyConfiguration - repres - properties: - apiGroup: - type: string - kind: - type: string - name: - type: string - type: object - dataSourceRef: - description: 'TypedObjectReferenceApplyConfiguration - represents ' - properties: - apiGroup: - type: string - kind: - type: string - name: - type: string - namespace: - type: string - type: object - resources: - description: 'ResourceRequirementsApplyConfiguration - represents ' - properties: - claims: - items: - description: ResourceClaimApplyConfiguration - represents an decl - properties: - name: - type: string - type: object - type: array - limits: - 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 - description: ResourceList is a set of - (resource name, quantity) - type: object - requests: - 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 - description: ResourceList is a set of - (resource name, quantity) - type: object - type: object - selector: - description: LabelSelectorApplyConfiguration - represents an decl - properties: - matchExpressions: - items: - description: LabelSelectorRequirementApplyConfiguration - represe - properties: - key: - type: string - operator: - description: 'A label selector - operator is the set of operators ' - type: string - values: - items: - type: string - type: array - type: object - type: array - matchLabels: - additionalProperties: - type: string - type: object - type: object - storageClassName: - type: string - volumeMode: - description: PersistentVolumeMode describes - how a volume is int - type: string - volumeName: - type: string - type: object - type: object - type: object - fc: - description: FCVolumeSourceApplyConfiguration represents - an dec - properties: - fsType: - type: string - lun: - format: int32 - type: integer - readOnly: - type: boolean - targetWWNs: - items: - type: string - type: array - wwids: - items: - type: string - type: array - type: object - flexVolume: - description: FlexVolumeSourceApplyConfiguration represents - an d - properties: - driver: - type: string - fsType: - type: string - options: - additionalProperties: - type: string - type: object - readOnly: - type: boolean - secretRef: - description: 'LocalObjectReferenceApplyConfiguration - represents ' - properties: - name: - type: string - type: object - type: object - flocker: - description: FlockerVolumeSourceApplyConfiguration represents - a - properties: - datasetName: - type: string - datasetUUID: - type: string - type: object - gcePersistentDisk: - description: GCEPersistentDiskVolumeSourceApplyConfiguration - re - properties: - fsType: - type: string - partition: - format: int32 - type: integer - pdName: - type: string - readOnly: - type: boolean - type: object - gitRepo: - description: GitRepoVolumeSourceApplyConfiguration represents - a - properties: - directory: - type: string - repository: - type: string - revision: - type: string - type: object - glusterfs: - description: GlusterfsVolumeSourceApplyConfiguration - represents - properties: - endpoints: - type: string - path: - type: string - readOnly: - type: boolean - type: object - hostPath: - description: 'HostPathVolumeSourceApplyConfiguration - represents ' - properties: - path: - type: string - type: - type: string - type: object - iscsi: - description: 'ISCSIVolumeSourceApplyConfiguration represents - an ' - properties: - chapAuthDiscovery: - type: boolean - chapAuthSession: - type: boolean - fsType: - type: string - initiatorName: - type: string - iqn: - type: string - iscsiInterface: - type: string - lun: - format: int32 - type: integer - portals: - items: - type: string - type: array - readOnly: - type: boolean - secretRef: - description: 'LocalObjectReferenceApplyConfiguration - represents ' - properties: - name: - type: string - type: object - targetPortal: - type: string - type: object - name: - type: string - nfs: - description: NFSVolumeSourceApplyConfiguration represents - an de - properties: - path: - type: string - readOnly: - type: boolean - server: - type: string - type: object - persistentVolumeClaim: - description: PersistentVolumeClaimVolumeSourceApplyConfiguratio - properties: - claimName: - type: string - readOnly: - type: boolean - type: object - photonPersistentDisk: - description: PhotonPersistentDiskVolumeSourceApplyConfiguration - properties: - fsType: - type: string - pdID: - type: string - type: object - portworxVolume: - description: 'PortworxVolumeSourceApplyConfiguration - represents ' - properties: - fsType: - type: string - readOnly: - type: boolean - volumeID: - type: string - type: object - projected: - description: ProjectedVolumeSourceApplyConfiguration - represents - properties: - defaultMode: - format: int32 - type: integer - sources: - items: - description: VolumeProjectionApplyConfiguration - represents an d - properties: - configMap: - description: ConfigMapProjectionApplyConfiguration - represents a - properties: - items: - items: - description: KeyToPathApplyConfiguration - represents an declarat - properties: - key: - type: string - mode: - format: int32 - type: integer - path: - type: string - type: object - type: array - name: - type: string - optional: - type: boolean - type: object - downwardAPI: - description: DownwardAPIProjectionApplyConfiguration - represents - properties: - items: - items: - description: DownwardAPIVolumeFileApplyConfiguration - represents - properties: - fieldRef: - description: ObjectFieldSelectorApplyConfiguration - represents a - properties: - apiVersion: - type: string - fieldPath: - type: string - type: object - mode: - format: int32 - type: integer - path: - type: string - resourceFieldRef: - description: ResourceFieldSelectorApplyConfiguration - represents - properties: - containerName: - type: string - divisor: - 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 - resource: - type: string - type: object - type: object - type: array - type: object - secret: - description: SecretProjectionApplyConfiguration - represents an d - properties: - items: - items: - description: KeyToPathApplyConfiguration - represents an declarat - properties: - key: - type: string - mode: - format: int32 - type: integer - path: - type: string - type: object - type: array - name: - type: string - optional: - type: boolean - type: object - serviceAccountToken: - description: ServiceAccountTokenProjectionApplyConfiguration - re - properties: - audience: - type: string - expirationSeconds: - format: int64 - type: integer - path: - type: string - type: object - type: object - type: array - type: object - quobyte: - description: QuobyteVolumeSourceApplyConfiguration represents - a - properties: - group: - type: string - readOnly: - type: boolean - registry: - type: string - tenant: - type: string - user: - type: string - volume: - type: string - type: object - rbd: - description: RBDVolumeSourceApplyConfiguration represents - an de - properties: - fsType: - type: string - image: - type: string - keyring: - type: string - monitors: - items: - type: string - type: array - pool: - type: string - readOnly: - type: boolean - secretRef: - description: 'LocalObjectReferenceApplyConfiguration - represents ' - properties: - name: - type: string - type: object - user: - type: string - type: object - scaleIO: - description: ScaleIOVolumeSourceApplyConfiguration represents - a - properties: - fsType: - type: string - gateway: - type: string - protectionDomain: - type: string - readOnly: - type: boolean - secretRef: - description: 'LocalObjectReferenceApplyConfiguration - represents ' - properties: - name: - type: string - type: object - sslEnabled: - type: boolean - storageMode: - type: string - storagePool: - type: string - system: - type: string - volumeName: - type: string - type: object - secret: - description: SecretVolumeSourceApplyConfiguration represents - an - properties: - defaultMode: - format: int32 - type: integer - items: - items: - description: KeyToPathApplyConfiguration represents - an declarat - properties: - key: - type: string - mode: - format: int32 - type: integer - path: - type: string - type: object - type: array - optional: - type: boolean - secretName: - type: string - type: object - storageos: - description: StorageOSVolumeSourceApplyConfiguration - represents - properties: - fsType: - type: string - readOnly: - type: boolean - secretRef: - description: 'LocalObjectReferenceApplyConfiguration - represents ' - properties: - name: - type: string - type: object - volumeName: - type: string - volumeNamespace: - type: string - type: object - vsphereVolume: - description: VsphereVirtualDiskVolumeSourceApplyConfiguration - r - properties: - fsType: - type: string - storagePolicyID: - type: string - storagePolicyName: - type: string - volumePath: - type: string - type: object - type: object - type: array - type: object - required: - - spec - type: object - replicas: - default: 1 - description: Replicas is the number of instances. - format: int32 - type: integer - replicationSourceSecretName: - description: ReplicationSourceSecretName is a `Secret` name whi - nullable: true - type: string - restore: - description: Restore is the specification to perform Point-in-T - properties: - jobConfig: - description: Specifies parameters for restore Pod. - properties: - affinity: - description: If specified, the pod's scheduling constraints. - properties: - nodeAffinity: - description: NodeAffinityApplyConfiguration represents - an decla - properties: - preferredDuringSchedulingIgnoredDuringExecution: - items: - description: PreferredSchedulingTermApplyConfiguration - represen - properties: - preference: - description: NodeSelectorTermApplyConfiguration - represents an d - properties: - matchExpressions: - items: - description: NodeSelectorRequirementApplyConfiguration - represen - properties: - key: - type: string - operator: - description: A node selector operator - is the set of operators t - type: string - values: - items: - type: string - type: array - type: object - type: array - matchFields: - items: - description: NodeSelectorRequirementApplyConfiguration - represen - properties: - key: - type: string - operator: - description: A node selector operator - is the set of operators t - type: string - values: - items: - type: string - type: array - type: object - type: array - type: object - weight: - format: int32 - type: integer - type: object - type: array - requiredDuringSchedulingIgnoredDuringExecution: - description: NodeSelectorApplyConfiguration represents - an decla - properties: - nodeSelectorTerms: - items: - description: NodeSelectorTermApplyConfiguration - represents an d - properties: - matchExpressions: - items: - description: NodeSelectorRequirementApplyConfiguration - represen - properties: - key: - type: string - operator: - description: A node selector operator - is the set of operators t - type: string - values: - items: - type: string - type: array - type: object - type: array - matchFields: - items: - description: NodeSelectorRequirementApplyConfiguration - represen - properties: - key: - type: string - operator: - description: A node selector operator - is the set of operators t - type: string - values: - items: - type: string - type: array - type: object - type: array - type: object - type: array - type: object - type: object - podAffinity: - description: PodAffinityApplyConfiguration represents - an declar - properties: - preferredDuringSchedulingIgnoredDuringExecution: - items: - description: WeightedPodAffinityTermApplyConfiguration - represen - properties: - podAffinityTerm: - description: PodAffinityTermApplyConfiguration - represents an de - properties: - labelSelector: - description: LabelSelectorApplyConfiguration - represents an decl - properties: - matchExpressions: - items: - description: LabelSelectorRequirementApplyConfiguration - represe - properties: - key: - type: string - operator: - description: 'A label selector - operator is the set of operators ' - type: string - values: - items: - type: string - type: array - type: object - type: array - matchLabels: - additionalProperties: - type: string - type: object - type: object - namespaceSelector: - description: LabelSelectorApplyConfiguration - represents an decl - properties: - matchExpressions: - items: - description: LabelSelectorRequirementApplyConfiguration - represe - properties: - key: - type: string - operator: - description: 'A label selector - operator is the set of operators ' - type: string - values: - items: - type: string - type: array - type: object - type: array - matchLabels: - additionalProperties: - type: string - type: object - type: object - namespaces: - items: - type: string - type: array - topologyKey: - type: string - type: object - weight: - format: int32 - type: integer - type: object - type: array - requiredDuringSchedulingIgnoredDuringExecution: - items: - description: PodAffinityTermApplyConfiguration represents - an de - properties: - labelSelector: - description: LabelSelectorApplyConfiguration - represents an decl - properties: - matchExpressions: - items: - description: LabelSelectorRequirementApplyConfiguration - represe - properties: - key: - type: string - operator: - description: 'A label selector operator - is the set of operators ' - type: string - values: - items: - type: string - type: array - type: object - type: array - matchLabels: - additionalProperties: - type: string - type: object - type: object - namespaceSelector: - description: LabelSelectorApplyConfiguration - represents an decl - properties: - matchExpressions: - items: - description: LabelSelectorRequirementApplyConfiguration - represe - properties: - key: - type: string - operator: - description: 'A label selector operator - is the set of operators ' - type: string - values: - items: - type: string - type: array - type: object - type: array - matchLabels: - additionalProperties: - type: string - type: object - type: object - namespaces: - items: - type: string - type: array - topologyKey: - type: string - type: object - type: array - type: object - podAntiAffinity: - description: PodAntiAffinityApplyConfiguration represents - an de - properties: - preferredDuringSchedulingIgnoredDuringExecution: - items: - description: WeightedPodAffinityTermApplyConfiguration - represen - properties: - podAffinityTerm: - description: PodAffinityTermApplyConfiguration - represents an de - properties: - labelSelector: - description: LabelSelectorApplyConfiguration - represents an decl - properties: - matchExpressions: - items: - description: LabelSelectorRequirementApplyConfiguration - represe - properties: - key: - type: string - operator: - description: 'A label selector - operator is the set of operators ' - type: string - values: - items: - type: string - type: array - type: object - type: array - matchLabels: - additionalProperties: - type: string - type: object - type: object - namespaceSelector: - description: LabelSelectorApplyConfiguration - represents an decl - properties: - matchExpressions: - items: - description: LabelSelectorRequirementApplyConfiguration - represe - properties: - key: - type: string - operator: - description: 'A label selector - operator is the set of operators ' - type: string - values: - items: - type: string - type: array - type: object - type: array - matchLabels: - additionalProperties: - type: string - type: object - type: object - namespaces: - items: - type: string - type: array - topologyKey: - type: string - type: object - weight: - format: int32 - type: integer - type: object - type: array - requiredDuringSchedulingIgnoredDuringExecution: - items: - description: PodAffinityTermApplyConfiguration represents - an de - properties: - labelSelector: - description: LabelSelectorApplyConfiguration - represents an decl - properties: - matchExpressions: - items: - description: LabelSelectorRequirementApplyConfiguration - represe - properties: - key: - type: string - operator: - description: 'A label selector operator - is the set of operators ' - type: string - values: - items: - type: string - type: array - type: object - type: array - matchLabels: - additionalProperties: - type: string - type: object - type: object - namespaceSelector: - description: LabelSelectorApplyConfiguration - represents an decl - properties: - matchExpressions: - items: - description: LabelSelectorRequirementApplyConfiguration - represe - properties: - key: - type: string - operator: - description: 'A label selector operator - is the set of operators ' - type: string - values: - items: - type: string - type: array - type: object - type: array - matchLabels: - additionalProperties: - type: string - type: object - type: object - namespaces: - items: - type: string - type: array - topologyKey: - type: string - type: object - type: array - type: object - type: object - bucketConfig: - description: Specifies how to access an object storage bucket. - properties: - backendType: - default: s3 - description: BackendType is an identifier for the object - storag - enum: - - s3 - - gcs - type: string - bucketName: - description: The name of the bucket - minLength: 1 - type: string - caCert: - description: Path to SSL CA certificate file used in addition - t - type: string - endpointURL: - description: The API endpoint URL. - pattern: ^https?://.* - type: string - region: - description: The region of the bucket. - type: string - usePathStyle: - description: 'Allows you to enable the client to use path-style ' - type: boolean - required: - - bucketName - type: object - cpu: - anyOf: - - type: integer - - type: string - default: 4 - description: CPU is the amount of CPU requested for the Pod. - nullable: true - pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ - x-kubernetes-int-or-string: true - env: - description: List of environment variables to set in the contai - items: - description: EnvVarApplyConfiguration is the type defined - to im - properties: - name: - type: string - value: - type: string - valueFrom: - description: EnvVarSourceApplyConfiguration represents - an decla - properties: - configMapKeyRef: - description: 'ConfigMapKeySelectorApplyConfiguration - represents ' - properties: - key: - type: string - name: - type: string - optional: - type: boolean - type: object - fieldRef: - description: ObjectFieldSelectorApplyConfiguration - represents a - properties: - apiVersion: - type: string - fieldPath: - type: string - type: object - resourceFieldRef: - description: ResourceFieldSelectorApplyConfiguration - represents - properties: - containerName: - type: string - divisor: - 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 - resource: - type: string - type: object - secretKeyRef: - description: 'SecretKeySelectorApplyConfiguration - represents an ' - properties: - key: - type: string - name: - type: string - optional: - type: boolean - type: object - type: object - type: object - type: array - envFrom: - description: 'List of sources to populate environment variables ' - items: - description: EnvFromSourceApplyConfiguration is the type - define - properties: - configMapRef: - description: ConfigMapEnvSourceApplyConfiguration represents - an - properties: - name: - type: string - optional: - type: boolean - type: object - prefix: - type: string - secretRef: - description: SecretEnvSourceApplyConfiguration represents - an de - properties: - name: - type: string - optional: - type: boolean - type: object - type: object - type: array - maxCpu: - anyOf: - - type: integer - - type: string - description: MaxCPU is the amount of maximum CPU for the Pod. - nullable: true - pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ - x-kubernetes-int-or-string: true - maxMemory: - anyOf: - - type: integer - - type: string - description: 'MaxMemory is the amount of maximum memory for - the ' - nullable: true - pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ - x-kubernetes-int-or-string: true - memory: - anyOf: - - type: integer - - type: string - default: 4Gi - description: Memory is the amount of memory requested for - the P - nullable: true - pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ - x-kubernetes-int-or-string: true - serviceAccountName: - description: ServiceAccountName specifies the ServiceAccount - to - minLength: 1 - type: string - threads: - default: 4 - description: Threads is the number of threads used for backup - o - minimum: 1 - type: integer - volumeMounts: - description: VolumeMounts describes a list of volume mounts - tha - items: - description: 'VolumeMountApplyConfiguration is the type - defined ' - properties: - mountPath: - type: string - mountPropagation: - description: MountPropagationMode describes mount propagation. - type: string - name: - type: string - readOnly: - type: boolean - subPath: - type: string - subPathExpr: - type: string - type: object - type: array - volumes: - description: Volumes defines the list of volumes that can - be mo - items: - description: VolumeApplyConfiguration is the type defined - to im - properties: - awsElasticBlockStore: - description: AWSElasticBlockStoreVolumeSourceApplyConfiguration - properties: - fsType: - type: string - partition: - format: int32 - type: integer - readOnly: - type: boolean - volumeID: - type: string - type: object - azureDisk: - description: AzureDiskVolumeSourceApplyConfiguration - represents - properties: - cachingMode: - type: string - diskName: - type: string - diskURI: - type: string - fsType: - type: string - kind: - type: string - readOnly: - type: boolean - type: object - azureFile: - description: AzureFileVolumeSourceApplyConfiguration - represents - properties: - readOnly: - type: boolean - secretName: - type: string - shareName: - type: string - type: object - cephfs: - description: CephFSVolumeSourceApplyConfiguration represents - an - properties: - monitors: - items: - type: string - type: array - path: - type: string - readOnly: - type: boolean - secretFile: - type: string - secretRef: - description: 'LocalObjectReferenceApplyConfiguration - represents ' - properties: - name: - type: string - type: object - user: - type: string - type: object - cinder: - description: CinderVolumeSourceApplyConfiguration represents - an - properties: - fsType: - type: string - readOnly: - type: boolean - secretRef: - description: 'LocalObjectReferenceApplyConfiguration - represents ' - properties: - name: - type: string - type: object - volumeID: - type: string - type: object - configMap: - description: ConfigMapVolumeSourceApplyConfiguration - represents - properties: - defaultMode: - format: int32 - type: integer - items: - items: - description: KeyToPathApplyConfiguration represents - an declarat - properties: - key: - type: string - mode: - format: int32 - type: integer - path: - type: string - type: object - type: array - name: - type: string - optional: - type: boolean - type: object - csi: - description: CSIVolumeSourceApplyConfiguration represents - an de - properties: - driver: - type: string - fsType: - type: string - nodePublishSecretRef: - description: 'LocalObjectReferenceApplyConfiguration - represents ' - properties: - name: - type: string - type: object - readOnly: - type: boolean - volumeAttributes: - additionalProperties: - type: string - type: object - type: object - downwardAPI: - description: DownwardAPIVolumeSourceApplyConfiguration - represen - properties: - defaultMode: - format: int32 - type: integer - items: - items: - description: DownwardAPIVolumeFileApplyConfiguration - represents - properties: - fieldRef: - description: ObjectFieldSelectorApplyConfiguration - represents a - properties: - apiVersion: - type: string - fieldPath: - type: string - type: object - mode: - format: int32 - type: integer - path: - type: string - resourceFieldRef: - description: ResourceFieldSelectorApplyConfiguration - represents - properties: - containerName: - type: string - divisor: - 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 - resource: - type: string - type: object - type: object - type: array - type: object - emptyDir: - description: 'EmptyDirVolumeSourceApplyConfiguration - represents ' - properties: - medium: - description: StorageMedium defines ways that storage - can be all - type: string - sizeLimit: - 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 - ephemeral: - description: EphemeralVolumeSourceApplyConfiguration - represents - properties: - volumeClaimTemplate: - description: PersistentVolumeClaimTemplateApplyConfiguration - re - properties: - metadata: - description: ObjectMetaApplyConfiguration represents - an declara - properties: - annotations: - additionalProperties: - type: string - type: object - creationTimestamp: - format: date-time - type: string - deletionGracePeriodSeconds: - format: int64 - type: integer - deletionTimestamp: - format: date-time - type: string - finalizers: - items: - type: string - type: array - generateName: - type: string - generation: - format: int64 - type: integer - labels: - additionalProperties: - type: string - type: object - name: - type: string - namespace: - type: string - ownerReferences: - items: - description: OwnerReferenceApplyConfiguration - represents an dec - properties: - apiVersion: - type: string - blockOwnerDeletion: - type: boolean - controller: - type: boolean - kind: - type: string - name: - type: string - uid: - description: UID is a type that holds - unique ID values, includi - type: string - type: object - type: array - resourceVersion: - type: string - uid: - description: UID is a type that holds unique - ID values, includi - type: string - type: object - spec: - description: PersistentVolumeClaimSpecApplyConfiguration - repres - properties: - accessModes: - items: - type: string - type: array - dataSource: - description: TypedLocalObjectReferenceApplyConfiguration - repres - properties: - apiGroup: - type: string - kind: - type: string - name: - type: string - type: object - dataSourceRef: - description: 'TypedObjectReferenceApplyConfiguration - represents ' - properties: - apiGroup: - type: string - kind: - type: string - name: - type: string - namespace: - type: string - type: object - resources: - description: 'ResourceRequirementsApplyConfiguration - represents ' - properties: - claims: - items: - description: ResourceClaimApplyConfiguration - represents an decl - properties: - name: - type: string - type: object - type: array - limits: - 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 - description: ResourceList is a set of - (resource name, quantity) - type: object - requests: - 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 - description: ResourceList is a set of - (resource name, quantity) - type: object - type: object - selector: - description: LabelSelectorApplyConfiguration - represents an decl - properties: - matchExpressions: - items: - description: LabelSelectorRequirementApplyConfiguration - represe - properties: - key: - type: string - operator: - description: 'A label selector - operator is the set of operators ' - type: string - values: - items: - type: string - type: array - type: object - type: array - matchLabels: - additionalProperties: - type: string - type: object - type: object - storageClassName: - type: string - volumeMode: - description: PersistentVolumeMode describes - how a volume is int - type: string - volumeName: - type: string - type: object - type: object - type: object - fc: - description: FCVolumeSourceApplyConfiguration represents - an dec - properties: - fsType: - type: string - lun: - format: int32 - type: integer - readOnly: - type: boolean - targetWWNs: - items: - type: string - type: array - wwids: - items: - type: string - type: array - type: object - flexVolume: - description: FlexVolumeSourceApplyConfiguration represents - an d - properties: - driver: - type: string - fsType: - type: string - options: - additionalProperties: - type: string - type: object - readOnly: - type: boolean - secretRef: - description: 'LocalObjectReferenceApplyConfiguration - represents ' - properties: - name: - type: string - type: object - type: object - flocker: - description: FlockerVolumeSourceApplyConfiguration represents - a - properties: - datasetName: - type: string - datasetUUID: - type: string - type: object - gcePersistentDisk: - description: GCEPersistentDiskVolumeSourceApplyConfiguration - re - properties: - fsType: - type: string - partition: - format: int32 - type: integer - pdName: - type: string - readOnly: - type: boolean - type: object - gitRepo: - description: GitRepoVolumeSourceApplyConfiguration represents - a - properties: - directory: - type: string - repository: - type: string - revision: - type: string - type: object - glusterfs: - description: GlusterfsVolumeSourceApplyConfiguration - represents - properties: - endpoints: - type: string - path: - type: string - readOnly: - type: boolean - type: object - hostPath: - description: 'HostPathVolumeSourceApplyConfiguration - represents ' - properties: - path: - type: string - type: - type: string - type: object - iscsi: - description: 'ISCSIVolumeSourceApplyConfiguration represents - an ' - properties: - chapAuthDiscovery: - type: boolean - chapAuthSession: - type: boolean - fsType: - type: string - initiatorName: - type: string - iqn: - type: string - iscsiInterface: - type: string - lun: - format: int32 - type: integer - portals: - items: - type: string - type: array - readOnly: - type: boolean - secretRef: - description: 'LocalObjectReferenceApplyConfiguration - represents ' - properties: - name: - type: string - type: object - targetPortal: - type: string - type: object - name: - type: string - nfs: - description: NFSVolumeSourceApplyConfiguration represents - an de - properties: - path: - type: string - readOnly: - type: boolean - server: - type: string - type: object - persistentVolumeClaim: - description: PersistentVolumeClaimVolumeSourceApplyConfiguratio - properties: - claimName: - type: string - readOnly: - type: boolean - type: object - photonPersistentDisk: - description: PhotonPersistentDiskVolumeSourceApplyConfiguration - properties: - fsType: - type: string - pdID: - type: string - type: object - portworxVolume: - description: 'PortworxVolumeSourceApplyConfiguration - represents ' - properties: - fsType: - type: string - readOnly: - type: boolean - volumeID: - type: string - type: object - projected: - description: ProjectedVolumeSourceApplyConfiguration - represents - properties: - defaultMode: - format: int32 - type: integer - sources: - items: - description: VolumeProjectionApplyConfiguration - represents an d - properties: - configMap: - description: ConfigMapProjectionApplyConfiguration - represents a - properties: - items: - items: - description: KeyToPathApplyConfiguration - represents an declarat - properties: - key: - type: string - mode: - format: int32 - type: integer - path: - type: string - type: object - type: array - name: - type: string - optional: - type: boolean - type: object - downwardAPI: - description: DownwardAPIProjectionApplyConfiguration - represents - properties: - items: - items: - description: DownwardAPIVolumeFileApplyConfiguration - represents - properties: - fieldRef: - description: ObjectFieldSelectorApplyConfiguration - represents a - properties: - apiVersion: - type: string - fieldPath: - type: string - type: object - mode: - format: int32 - type: integer - path: - type: string - resourceFieldRef: - description: ResourceFieldSelectorApplyConfiguration - represents - properties: - containerName: - type: string - divisor: - 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 - resource: - type: string - type: object - type: object - type: array - type: object - secret: - description: SecretProjectionApplyConfiguration - represents an d - properties: - items: - items: - description: KeyToPathApplyConfiguration - represents an declarat - properties: - key: - type: string - mode: - format: int32 - type: integer - path: - type: string - type: object - type: array - name: - type: string - optional: - type: boolean - type: object - serviceAccountToken: - description: ServiceAccountTokenProjectionApplyConfiguration - re - properties: - audience: - type: string - expirationSeconds: - format: int64 - type: integer - path: - type: string - type: object - type: object - type: array - type: object - quobyte: - description: QuobyteVolumeSourceApplyConfiguration represents - a - properties: - group: - type: string - readOnly: - type: boolean - registry: - type: string - tenant: - type: string - user: - type: string - volume: - type: string - type: object - rbd: - description: RBDVolumeSourceApplyConfiguration represents - an de - properties: - fsType: - type: string - image: - type: string - keyring: - type: string - monitors: - items: - type: string - type: array - pool: - type: string - readOnly: - type: boolean - secretRef: - description: 'LocalObjectReferenceApplyConfiguration - represents ' - properties: - name: - type: string - type: object - user: - type: string - type: object - scaleIO: - description: ScaleIOVolumeSourceApplyConfiguration represents - a - properties: - fsType: - type: string - gateway: - type: string - protectionDomain: - type: string - readOnly: - type: boolean - secretRef: - description: 'LocalObjectReferenceApplyConfiguration - represents ' - properties: - name: - type: string - type: object - sslEnabled: - type: boolean - storageMode: - type: string - storagePool: - type: string - system: - type: string - volumeName: - type: string - type: object - secret: - description: SecretVolumeSourceApplyConfiguration represents - an - properties: - defaultMode: - format: int32 - type: integer - items: - items: - description: KeyToPathApplyConfiguration represents - an declarat - properties: - key: - type: string - mode: - format: int32 - type: integer - path: - type: string - type: object - type: array - optional: - type: boolean - secretName: - type: string - type: object - storageos: - description: StorageOSVolumeSourceApplyConfiguration - represents - properties: - fsType: - type: string - readOnly: - type: boolean - secretRef: - description: 'LocalObjectReferenceApplyConfiguration - represents ' - properties: - name: - type: string - type: object - volumeName: - type: string - volumeNamespace: - type: string - type: object - vsphereVolume: - description: VsphereVirtualDiskVolumeSourceApplyConfiguration - r - properties: - fsType: - type: string - storagePolicyID: - type: string - storagePolicyName: - type: string - volumePath: - type: string - type: object - type: object - type: array - workVolume: - description: WorkVolume is the volume source for the working - di - properties: - awsElasticBlockStore: - description: AWSElasticBlockStoreVolumeSourceApplyConfiguration - properties: - fsType: - type: string - partition: - format: int32 - type: integer - readOnly: - type: boolean - volumeID: - type: string - type: object - azureDisk: - description: AzureDiskVolumeSourceApplyConfiguration represents - properties: - cachingMode: - type: string - diskName: - type: string - diskURI: - type: string - fsType: - type: string - kind: - type: string - readOnly: - type: boolean - type: object - azureFile: - description: AzureFileVolumeSourceApplyConfiguration represents - properties: - readOnly: - type: boolean - secretName: - type: string - shareName: - type: string - type: object - cephfs: - description: CephFSVolumeSourceApplyConfiguration represents - an - properties: - monitors: - items: - type: string - type: array - path: - type: string - readOnly: - type: boolean - secretFile: - type: string - secretRef: - description: 'LocalObjectReferenceApplyConfiguration - represents ' - properties: - name: - type: string - type: object - user: - type: string - type: object - cinder: - description: CinderVolumeSourceApplyConfiguration represents - an - properties: - fsType: - type: string - readOnly: - type: boolean - secretRef: - description: 'LocalObjectReferenceApplyConfiguration - represents ' - properties: - name: - type: string - type: object - volumeID: - type: string - type: object - configMap: - description: ConfigMapVolumeSourceApplyConfiguration represents - properties: - defaultMode: - format: int32 - type: integer - items: - items: - description: KeyToPathApplyConfiguration represents - an declarat - properties: - key: - type: string - mode: - format: int32 - type: integer - path: - type: string - type: object - type: array - name: - type: string - optional: - type: boolean - type: object - csi: - description: CSIVolumeSourceApplyConfiguration represents - an de - properties: - driver: - type: string - fsType: - type: string - nodePublishSecretRef: - description: 'LocalObjectReferenceApplyConfiguration - represents ' - properties: - name: - type: string - type: object - readOnly: - type: boolean - volumeAttributes: - additionalProperties: - type: string - type: object - type: object - downwardAPI: - description: DownwardAPIVolumeSourceApplyConfiguration - represen - properties: - defaultMode: - format: int32 - type: integer - items: - items: - description: DownwardAPIVolumeFileApplyConfiguration - represents - properties: - fieldRef: - description: ObjectFieldSelectorApplyConfiguration - represents a - properties: - apiVersion: - type: string - fieldPath: - type: string - type: object - mode: - format: int32 - type: integer - path: - type: string - resourceFieldRef: - description: ResourceFieldSelectorApplyConfiguration - represents - properties: - containerName: - type: string - divisor: - 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 - resource: - type: string - type: object - type: object - type: array - type: object - emptyDir: - description: 'EmptyDirVolumeSourceApplyConfiguration represents ' - properties: - medium: - description: StorageMedium defines ways that storage - can be all - type: string - sizeLimit: - 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 - ephemeral: - description: EphemeralVolumeSourceApplyConfiguration represents - properties: - volumeClaimTemplate: - description: PersistentVolumeClaimTemplateApplyConfiguration - re - properties: - metadata: - description: ObjectMetaApplyConfiguration represents - an declara - properties: - annotations: - additionalProperties: - type: string - type: object - creationTimestamp: - format: date-time - type: string - deletionGracePeriodSeconds: - format: int64 - type: integer - deletionTimestamp: - format: date-time - type: string - finalizers: - items: - type: string - type: array - generateName: - type: string - generation: - format: int64 - type: integer - labels: - additionalProperties: - type: string - type: object - name: - type: string - namespace: - type: string - ownerReferences: - items: - description: OwnerReferenceApplyConfiguration - represents an dec - properties: - apiVersion: - type: string - blockOwnerDeletion: - type: boolean - controller: - type: boolean - kind: - type: string - name: - type: string - uid: - description: UID is a type that holds - unique ID values, includi - type: string - type: object - type: array - resourceVersion: - type: string - uid: - description: UID is a type that holds unique - ID values, includi - type: string - type: object - spec: - description: PersistentVolumeClaimSpecApplyConfiguration - repres - properties: - accessModes: - items: - type: string - type: array - dataSource: - description: TypedLocalObjectReferenceApplyConfiguration - repres - properties: - apiGroup: - type: string - kind: - type: string - name: - type: string - type: object - dataSourceRef: - description: 'TypedObjectReferenceApplyConfiguration - represents ' - properties: - apiGroup: - type: string - kind: - type: string - name: - type: string - namespace: - type: string - type: object - resources: - description: 'ResourceRequirementsApplyConfiguration - represents ' - properties: - claims: - items: - description: ResourceClaimApplyConfiguration - represents an decl - properties: - name: - type: string - type: object - type: array - limits: - 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 - description: ResourceList is a set of - (resource name, quantity) - type: object - requests: - 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 - description: ResourceList is a set of - (resource name, quantity) - type: object - type: object - selector: - description: LabelSelectorApplyConfiguration - represents an decl - properties: - matchExpressions: - items: - description: LabelSelectorRequirementApplyConfiguration - represe - properties: - key: - type: string - operator: - description: 'A label selector operator - is the set of operators ' - type: string - values: - items: - type: string - type: array - type: object - type: array - matchLabels: - additionalProperties: - type: string - type: object - type: object - storageClassName: - type: string - volumeMode: - description: PersistentVolumeMode describes - how a volume is int - type: string - volumeName: - type: string - type: object - type: object - type: object - fc: - description: FCVolumeSourceApplyConfiguration represents - an dec - properties: - fsType: - type: string - lun: - format: int32 - type: integer - readOnly: - type: boolean - targetWWNs: - items: - type: string - type: array - wwids: - items: - type: string - type: array - type: object - flexVolume: - description: FlexVolumeSourceApplyConfiguration represents - an d - properties: - driver: - type: string - fsType: - type: string - options: - additionalProperties: - type: string - type: object - readOnly: - type: boolean - secretRef: - description: 'LocalObjectReferenceApplyConfiguration - represents ' - properties: - name: - type: string - type: object - type: object - flocker: - description: FlockerVolumeSourceApplyConfiguration represents - a - properties: - datasetName: - type: string - datasetUUID: - type: string - type: object - gcePersistentDisk: - description: GCEPersistentDiskVolumeSourceApplyConfiguration - re - properties: - fsType: - type: string - partition: - format: int32 - type: integer - pdName: - type: string - readOnly: - type: boolean - type: object - gitRepo: - description: GitRepoVolumeSourceApplyConfiguration represents - a - properties: - directory: - type: string - repository: - type: string - revision: - type: string - type: object - glusterfs: - description: GlusterfsVolumeSourceApplyConfiguration represents - properties: - endpoints: - type: string - path: - type: string - readOnly: - type: boolean - type: object - hostPath: - description: 'HostPathVolumeSourceApplyConfiguration represents ' - properties: - path: - type: string - type: - type: string - type: object - iscsi: - description: 'ISCSIVolumeSourceApplyConfiguration represents - an ' - properties: - chapAuthDiscovery: - type: boolean - chapAuthSession: - type: boolean - fsType: - type: string - initiatorName: - type: string - iqn: - type: string - iscsiInterface: - type: string - lun: - format: int32 - type: integer - portals: - items: - type: string - type: array - readOnly: - type: boolean - secretRef: - description: 'LocalObjectReferenceApplyConfiguration - represents ' - properties: - name: - type: string - type: object - targetPortal: - type: string - type: object - nfs: - description: NFSVolumeSourceApplyConfiguration represents - an de - properties: - path: - type: string - readOnly: - type: boolean - server: - type: string - type: object - persistentVolumeClaim: - description: PersistentVolumeClaimVolumeSourceApplyConfiguratio - properties: - claimName: - type: string - readOnly: - type: boolean - type: object - photonPersistentDisk: - description: PhotonPersistentDiskVolumeSourceApplyConfiguration - properties: - fsType: - type: string - pdID: - type: string - type: object - portworxVolume: - description: 'PortworxVolumeSourceApplyConfiguration represents ' - properties: - fsType: - type: string - readOnly: - type: boolean - volumeID: - type: string - type: object - projected: - description: ProjectedVolumeSourceApplyConfiguration represents - properties: - defaultMode: - format: int32 - type: integer - sources: - items: - description: VolumeProjectionApplyConfiguration - represents an d - properties: - configMap: - description: ConfigMapProjectionApplyConfiguration - represents a - properties: - items: - items: - description: KeyToPathApplyConfiguration - represents an declarat - properties: - key: - type: string - mode: - format: int32 - type: integer - path: - type: string - type: object - type: array - name: - type: string - optional: - type: boolean - type: object - downwardAPI: - description: DownwardAPIProjectionApplyConfiguration - represents - properties: - items: - items: - description: DownwardAPIVolumeFileApplyConfiguration - represents - properties: - fieldRef: - description: ObjectFieldSelectorApplyConfiguration - represents a - properties: - apiVersion: - type: string - fieldPath: - type: string - type: object - mode: - format: int32 - type: integer - path: - type: string - resourceFieldRef: - description: ResourceFieldSelectorApplyConfiguration - represents - properties: - containerName: - type: string - divisor: - 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 - resource: - type: string - type: object - type: object - type: array - type: object - secret: - description: SecretProjectionApplyConfiguration - represents an d - properties: - items: - items: - description: KeyToPathApplyConfiguration - represents an declarat - properties: - key: - type: string - mode: - format: int32 - type: integer - path: - type: string - type: object - type: array - name: - type: string - optional: - type: boolean - type: object - serviceAccountToken: - description: ServiceAccountTokenProjectionApplyConfiguration - re - properties: - audience: - type: string - expirationSeconds: - format: int64 - type: integer - path: - type: string - type: object - type: object - type: array - type: object - quobyte: - description: QuobyteVolumeSourceApplyConfiguration represents - a - properties: - group: - type: string - readOnly: - type: boolean - registry: - type: string - tenant: - type: string - user: - type: string - volume: - type: string - type: object - rbd: - description: RBDVolumeSourceApplyConfiguration represents - an de - properties: - fsType: - type: string - image: - type: string - keyring: - type: string - monitors: - items: - type: string - type: array - pool: - type: string - readOnly: - type: boolean - secretRef: - description: 'LocalObjectReferenceApplyConfiguration - represents ' - properties: - name: - type: string - type: object - user: - type: string - type: object - scaleIO: - description: ScaleIOVolumeSourceApplyConfiguration represents - a - properties: - fsType: - type: string - gateway: - type: string - protectionDomain: - type: string - readOnly: - type: boolean - secretRef: - description: 'LocalObjectReferenceApplyConfiguration - represents ' - properties: - name: - type: string - type: object - sslEnabled: - type: boolean - storageMode: - type: string - storagePool: - type: string - system: - type: string - volumeName: - type: string - type: object - secret: - description: SecretVolumeSourceApplyConfiguration represents - an - properties: - defaultMode: - format: int32 - type: integer - items: - items: - description: KeyToPathApplyConfiguration represents - an declarat - properties: - key: - type: string - mode: - format: int32 - type: integer - path: - type: string - type: object - type: array - optional: - type: boolean - secretName: - type: string - type: object - storageos: - description: StorageOSVolumeSourceApplyConfiguration represents - properties: - fsType: - type: string - readOnly: - type: boolean - secretRef: - description: 'LocalObjectReferenceApplyConfiguration - represents ' - properties: - name: - type: string - type: object - volumeName: - type: string - volumeNamespace: - type: string - type: object - vsphereVolume: - description: VsphereVirtualDiskVolumeSourceApplyConfiguration - r - properties: - fsType: - type: string - storagePolicyID: - type: string - storagePolicyName: - type: string - volumePath: - type: string - type: object - type: object - required: - - bucketConfig - - serviceAccountName - - workVolume - type: object - restorePoint: - description: RestorePoint is the target date and time to restor - format: date-time - type: string - sourceName: - description: SourceName is the name of the source `MySQLCluster - minLength: 1 - type: string - sourceNamespace: - description: SourceNamespace is the namespace of the source `My - minLength: 1 - type: string - required: - - jobConfig - - restorePoint - - sourceName - - sourceNamespace - type: object - serverIDBase: - description: 'ServerIDBase, if set, will become the base number ' - format: int32 - type: integer - serviceTemplate: - description: ServiceTemplate is a `Service` template for both p - properties: - metadata: - description: Standard object's metadata. - properties: - annotations: - additionalProperties: - type: string - description: Annotations is a map of string keys and values. - type: object - labels: - additionalProperties: - type: string - description: Labels is a map of string keys and values. - type: object - name: - description: Name is the name of the object. - type: string - type: object - spec: - description: Spec is the ServiceSpec - properties: - allocateLoadBalancerNodePorts: - type: boolean - clusterIP: - type: string - clusterIPs: - items: - type: string - type: array - externalIPs: - items: - type: string - type: array - externalName: - type: string - externalTrafficPolicy: - description: ServiceExternalTrafficPolicy describes how nodes - d - type: string - healthCheckNodePort: - format: int32 - type: integer - internalTrafficPolicy: - description: ServiceInternalTrafficPolicy describes how nodes - d - type: string - ipFamilies: - items: - description: IPFamily represents the IP Family (IPv4 or - IPv6). - type: string - type: array - ipFamilyPolicy: - description: IPFamilyPolicy represents the dual-stack-ness - requ - type: string - loadBalancerClass: - type: string - loadBalancerIP: - type: string - loadBalancerSourceRanges: - items: - type: string - type: array - ports: - items: - description: ServicePortApplyConfiguration represents an - declar - properties: - appProtocol: - type: string - name: - type: string - nodePort: - format: int32 - type: integer - port: - format: int32 - type: integer - protocol: - default: TCP - type: string - targetPort: - anyOf: - - type: integer - - type: string - x-kubernetes-int-or-string: true - type: object - type: array - publishNotReadyAddresses: - type: boolean - selector: - additionalProperties: - type: string - type: object - sessionAffinity: - description: Session Affinity Type string - type: string - sessionAffinityConfig: - description: SessionAffinityConfigApplyConfiguration represents - properties: - clientIP: - description: ClientIPConfigApplyConfiguration represents - an dec - properties: - timeoutSeconds: - format: int32 - type: integer - type: object - type: object - type: - description: 'Service Type string describes ingress methods - for ' - type: string - type: object - type: object - startupDelaySeconds: - default: 3600 - description: StartupWaitSeconds is the maximum duration to wait - format: int32 - minimum: 0 - type: integer - volumeClaimTemplates: - description: VolumeClaimTemplates is a list of `PersistentVolum - items: - description: 'PersistentVolumeClaim is a user''s request for and ' - properties: - metadata: - description: Standard object's metadata. - properties: - annotations: - additionalProperties: - type: string - description: Annotations is a map of string keys and values. - type: object - labels: - additionalProperties: - type: string - description: Labels is a map of string keys and values. - type: object - name: - description: Name is the name of the object. - type: string - type: object - spec: - description: Spec defines the desired characteristics of a volu - properties: - accessModes: - items: - type: string - type: array - dataSource: - description: TypedLocalObjectReferenceApplyConfiguration - repres - properties: - apiGroup: - type: string - kind: - type: string - name: - type: string - type: object - dataSourceRef: - description: 'TypedObjectReferenceApplyConfiguration represents ' - properties: - apiGroup: - type: string - kind: - type: string - name: - type: string - namespace: - type: string - type: object - resources: - description: 'ResourceRequirementsApplyConfiguration represents ' - properties: - claims: - items: - description: ResourceClaimApplyConfiguration represents - an decl - properties: - name: - type: string - type: object - type: array - limits: - 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 - description: ResourceList is a set of (resource name, - quantity) - type: object - requests: - 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 - description: ResourceList is a set of (resource name, - quantity) - type: object - type: object - selector: - description: LabelSelectorApplyConfiguration represents - an decl - properties: - matchExpressions: - items: - description: LabelSelectorRequirementApplyConfiguration - represe - properties: - key: - type: string - operator: - description: 'A label selector operator is the - set of operators ' - type: string - values: - items: - type: string - type: array - type: object - type: array - matchLabels: - additionalProperties: - type: string - type: object - type: object - storageClassName: - type: string - volumeMode: - description: PersistentVolumeMode describes how a volume - is int - type: string - volumeName: - type: string - type: object - required: - - metadata - - spec - type: object - minItems: 1 - type: array - required: - - podTemplate - - volumeClaimTemplates - type: object - status: - description: MySQLClusterStatus defines the observed state of M - properties: - backup: - description: Backup is the status of the last successful backup - properties: - binlogFilename: - description: BinlogFilename is the binlog filename that the bac - type: string - binlogSize: - description: BinlogSize is the size in bytes of a tarball of bi - format: int64 - type: integer - dumpSize: - description: DumpSize is the size in bytes of a full dump of da - format: int64 - type: integer - elapsed: - description: Elapsed is the time spent on the backup. - type: string - gtidSet: - description: GTIDSet is the GTID set of the full dump of databa - type: string - sourceIndex: - description: SourceIndex is the ordinal of the backup source in - type: integer - sourceUUID: - description: SourceUUID is the `server_uuid` of the backup sour - type: string - time: - description: The time of the backup. - format: date-time - nullable: true - type: string - warnings: - description: Warnings are list of warnings from the last backup - items: - type: string - nullable: true - type: array - workDirUsage: - description: WorkDirUsage is the max usage in bytes of the woki - format: int64 - type: integer - required: - - binlogFilename - - binlogSize - - dumpSize - - elapsed - - gtidSet - - sourceIndex - - sourceUUID - - time - - warnings - - workDirUsage - type: object - cloned: - description: Cloned indicates if the initial cloning from an ex - type: boolean - conditions: - description: Conditions is an array of conditions. - items: - description: Condition contains details for one aspect of the c - properties: - lastTransitionTime: - description: 'lastTransitionTime is the last time the condition ' - format: date-time - type: string - message: - description: message is a human readable message indicating - det - maxLength: 32768 - type: string - observedGeneration: - description: observedGeneration represents the .metadata. - format: int64 - minimum: 0 - type: integer - reason: - description: reason contains a programmatic identifier indicati - maxLength: 1024 - minLength: 1 - pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$ - type: string - status: - description: status of the condition, one of True, False, Unkno - enum: - - "True" - - "False" - - Unknown - type: string - type: - description: type of condition in CamelCase or in foo.example. - maxLength: 316 - pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$ - type: string - required: - - lastTransitionTime - - message - - reason - - status - - type - type: object - type: array - currentPrimaryIndex: - description: CurrentPrimaryIndex is the index of the current pr - type: integer - errantReplicaList: - description: ErrantReplicaList is the list of indices of errant - items: - type: integer - type: array - errantReplicas: - description: ErrantReplicas is the number of instances that hav - type: integer - reconcileInfo: - description: ReconcileInfo represents version information for r - properties: - generation: - description: Generation is the `metadata. - format: int64 - type: integer - reconcileVersion: - description: ReconcileVersion is the version of the operator re - type: integer - type: object - restoredTime: - description: 'RestoredTime is the time when the cluster data is ' - format: date-time - type: string - syncedReplicas: - description: SyncedReplicas is the number of synced instances i - type: integer - required: - - currentPrimaryIndex - type: object - type: object - served: true - storage: false - subresources: - status: {} - additionalPrinterColumns: - jsonPath: .status.conditions[?(@.type=='Available')].status name: Available diff --git a/controllers/suite_test.go b/controllers/suite_test.go index 2912056b0..bc1b47096 100644 --- a/controllers/suite_test.go +++ b/controllers/suite_test.go @@ -9,7 +9,6 @@ import ( "testing" "time" - mocov1beta1 "github.com/cybozu-go/moco/api/v1beta1" mocov1beta2 "github.com/cybozu-go/moco/api/v1beta2" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" @@ -56,8 +55,6 @@ var _ = BeforeSuite(func() { err = clientgoscheme.AddToScheme(scheme) Expect(err).NotTo(HaveOccurred()) - err = mocov1beta1.AddToScheme(scheme) - Expect(err).NotTo(HaveOccurred()) err = mocov1beta2.AddToScheme(scheme) Expect(err).NotTo(HaveOccurred()) @@ -89,10 +86,6 @@ var _ = BeforeSuite(func() { }) Expect(err).NotTo(HaveOccurred()) - // enable conversion webhook - err = (&mocov1beta1.MySQLCluster{}).SetupWebhookWithManager(mgr) - Expect(err).NotTo(HaveOccurred()) - //+kubebuilder:scaffold:scheme k8sClient, err = client.New(cfg, client.Options{Scheme: scheme}) diff --git a/docs/SUMMARY.md b/docs/SUMMARY.md index 65af7face..09608a20b 100644 --- a/docs/SUMMARY.md +++ b/docs/SUMMARY.md @@ -18,9 +18,7 @@ # References - [Custom resources](crd.md) - - [MySQLCluster v1beta1](crd_mysqlcluster_v1beta1.md) - [MySQLCluster v1beta2](crd_mysqlcluster_v1beta2.md) - - [BackupPolicy v1beta1](crd_backuppolicy_v1beta1.md) - [BackupPolicy v1beta2](crd_backuppolicy_v1beta2.md) - [Commands](commands.md) - [kubectl-moco](kubectl-moco.md) diff --git a/docs/backup.md b/docs/backup.md index 2843760d9..b78ab1eaa 100644 --- a/docs/backup.md +++ b/docs/backup.md @@ -215,7 +215,7 @@ If not specified, it will be defaults to `s3`. The following is an example of a backup setup using Google Cloud Storage: ```yaml -apiVersion: moco.cybozu.com/v1beta1 +apiVersion: moco.cybozu.com/v1beta2 kind: BackupPolicy ... spec: diff --git a/docs/crd_backuppolicy_v1beta1.md b/docs/crd_backuppolicy_v1beta1.md deleted file mode 100644 index 84f519a26..000000000 --- a/docs/crd_backuppolicy_v1beta1.md +++ /dev/null @@ -1,87 +0,0 @@ - -### Custom Resources - -* [BackupPolicy](#backuppolicy) - -### Sub Resources - -* [BackupPolicyList](#backuppolicylist) -* [BackupPolicySpec](#backuppolicyspec) -* [BucketConfig](#bucketconfig) -* [JobConfig](#jobconfig) - -#### BackupPolicy - -BackupPolicy is a namespaced resource that should be referenced from MySQLCluster. - -| Field | Description | Scheme | Required | -| ----- | ----------- | ------ | -------- | -| metadata | | [metav1.ObjectMeta](https://pkg.go.dev/k8s.io/apimachinery/pkg/apis/meta/v1#ObjectMeta) | false | -| spec | | [BackupPolicySpec](#backuppolicyspec) | true | - -[Back to Custom Resources](#custom-resources) - -#### BackupPolicyList - -BackupPolicyList contains a list of BackupPolicy - -| Field | Description | Scheme | Required | -| ----- | ----------- | ------ | -------- | -| metadata | | [metav1.ListMeta](https://pkg.go.dev/k8s.io/apimachinery/pkg/apis/meta/v1#ListMeta) | false | -| items | | [][BackupPolicy](#backuppolicy) | true | - -[Back to Custom Resources](#custom-resources) - -#### BackupPolicySpec - -BackupPolicySpec defines the configuration items for MySQLCluster backup.\n\nThe following fields will be copied to CronJob.spec:\n\n- Schedule - StartingDeadlineSeconds - ConcurrencyPolicy - SuccessfulJobsHistoryLimit - FailedJobsHistoryLimit\n\nThe following fields will be copied to CronJob.spec.jobTemplate.\n\n- ActiveDeadlineSeconds - BackoffLimit - -| Field | Description | Scheme | Required | -| ----- | ----------- | ------ | -------- | -| schedule | The schedule in Cron format for periodic backups. See https://en.wikipedia.org/wiki/Cron | string | true | -| jobConfig | Specifies parameters for backup Pod. | [JobConfig](#jobconfig) | true | -| startingDeadlineSeconds | Optional deadline in seconds for starting the job if it misses scheduled time for any reason. Missed jobs executions will be counted as failed ones. | *int64 | false | -| concurrencyPolicy | Specifies how to treat concurrent executions of a Job. Valid values are: - \"Allow\" (default): allows CronJobs to run concurrently; - \"Forbid\": forbids concurrent runs, skipping next run if previous run hasn't finished yet; - \"Replace\": cancels currently running job and replaces it with a new one | [batchv1.ConcurrencyPolicy](https://pkg.go.dev/k8s.io/api/batch/v1#ConcurrencyPolicy) | false | -| activeDeadlineSeconds | Specifies the duration in seconds relative to the startTime that the job may be continuously active before the system tries to terminate it; value must be positive integer. If a Job is suspended (at creation or through an update), this timer will effectively be stopped and reset when the Job is resumed again. | *int64 | false | -| backoffLimit | Specifies the number of retries before marking this job failed. Defaults to 6 | *int32 | false | -| successfulJobsHistoryLimit | The number of successful finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified. Defaults to 3. | *int32 | false | -| failedJobsHistoryLimit | The number of failed finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1. | *int32 | false | - -[Back to Custom Resources](#custom-resources) - -#### BucketConfig - -BucketConfig is a set of parameter to access an object storage bucket. - -| Field | Description | Scheme | Required | -| ----- | ----------- | ------ | -------- | -| bucketName | The name of the bucket | string | true | -| region | The region of the bucket. This can also be set through `AWS_REGION` environment variable. | string | false | -| endpointURL | The API endpoint URL. Set this for non-S3 object storages. | string | false | -| usePathStyle | Allows you to enable the client to use path-style addressing, i.e., https?://ENDPOINT/BUCKET/KEY. By default, a virtual-host addressing is used (https?://BUCKET.ENDPOINT/KEY). | bool | false | -| backendType | BackendType is an identifier for the object storage to be used. | string | false | -| caCert | Path to SSL CA certificate file used in addition to system default. | string | false | - -[Back to Custom Resources](#custom-resources) - -#### JobConfig - -JobConfig is a set of parameters for backup and restore job Pods. - -| Field | Description | Scheme | Required | -| ----- | ----------- | ------ | -------- | -| serviceAccountName | ServiceAccountName specifies the ServiceAccount to run the Pod. | string | true | -| bucketConfig | Specifies how to access an object storage bucket. | [BucketConfig](#bucketconfig) | true | -| workVolume | WorkVolume is the volume source for the working directory. Since the backup or restore task can use a lot of bytes in the working directory, You should always give a volume with enough capacity.\n\nThe recommended volume source is a generic ephemeral volume. https://kubernetes.io/docs/concepts/storage/ephemeral-volumes/#generic-ephemeral-volumes | [VolumeSourceApplyConfiguration](https://pkg.go.dev/k8s.io/client-go/applyconfigurations/core/v1#VolumeSourceApplyConfiguration) | true | -| threads | Threads is the number of threads used for backup or restoration. | int | false | -| cpu | CPU is the amount of CPU requested for the Pod. | *[resource.Quantity](https://pkg.go.dev/k8s.io/apimachinery/pkg/api/resource#Quantity) | false | -| maxCpu | MaxCPU is the amount of maximum CPU for the Pod. | *[resource.Quantity](https://pkg.go.dev/k8s.io/apimachinery/pkg/api/resource#Quantity) | false | -| memory | Memory is the amount of memory requested for the Pod. | *[resource.Quantity](https://pkg.go.dev/k8s.io/apimachinery/pkg/api/resource#Quantity) | false | -| maxMemory | MaxMemory is the amount of maximum memory for the Pod. | *[resource.Quantity](https://pkg.go.dev/k8s.io/apimachinery/pkg/api/resource#Quantity) | false | -| envFrom | List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence.\n\nYou can configure S3 bucket access parameters through environment variables. See https://pkg.go.dev/github.com/aws/aws-sdk-go-v2/config#EnvConfig | [][EnvFromSourceApplyConfiguration](https://pkg.go.dev/k8s.io/client-go/applyconfigurations/core/v1#EnvFromSourceApplyConfiguration) | false | -| env | List of environment variables to set in the container.\n\nYou can configure S3 bucket access parameters through environment variables. See https://pkg.go.dev/github.com/aws/aws-sdk-go-v2/config#EnvConfig | [][EnvVarApplyConfiguration](https://pkg.go.dev/k8s.io/client-go/applyconfigurations/core/v1#EnvVarApplyConfiguration) | false | -| affinity | If specified, the pod's scheduling constraints. | *[AffinityApplyConfiguration](https://pkg.go.dev/k8s.io/client-go/applyconfigurations/core/v1#AffinityApplyConfiguration) | false | -| volumes | Volumes defines the list of volumes that can be mounted by containers in the Pod. | []VolumeApplyConfiguration | false | -| volumeMounts | VolumeMounts describes a list of volume mounts that are to be mounted in a container. | []VolumeMountApplyConfiguration | false | - -[Back to Custom Resources](#custom-resources) diff --git a/docs/crd_mysqlcluster_v1beta1.md b/docs/crd_mysqlcluster_v1beta1.md deleted file mode 100644 index ccd95fb4d..000000000 --- a/docs/crd_mysqlcluster_v1beta1.md +++ /dev/null @@ -1,208 +0,0 @@ - -### Custom Resources - -* [MySQLCluster](#mysqlcluster) - -### Sub Resources - -* [BackupStatus](#backupstatus) -* [MySQLClusterList](#mysqlclusterlist) -* [MySQLClusterSpec](#mysqlclusterspec) -* [MySQLClusterStatus](#mysqlclusterstatus) -* [ObjectMeta](#objectmeta) -* [PersistentVolumeClaim](#persistentvolumeclaim) -* [PodTemplateSpec](#podtemplatespec) -* [ReconcileInfo](#reconcileinfo) -* [RestoreSpec](#restorespec) -* [ServiceTemplate](#servicetemplate) -* [BucketConfig](#bucketconfig) -* [JobConfig](#jobconfig) - -#### BackupStatus - -BackupStatus represents the status of the last successful backup. - -| Field | Description | Scheme | Required | -| ----- | ----------- | ------ | -------- | -| time | The time of the backup. This is used to generate object keys of backup files in a bucket. | [metav1.Time](https://pkg.go.dev/k8s.io/apimachinery/pkg/apis/meta/v1#Time) | true | -| elapsed | Elapsed is the time spent on the backup. | [metav1.Duration](https://pkg.go.dev/k8s.io/apimachinery/pkg/apis/meta/v1#Duration) | true | -| sourceIndex | SourceIndex is the ordinal of the backup source instance. | int | true | -| sourceUUID | SourceUUID is the `server_uuid` of the backup source instance. | string | true | -| binlogFilename | BinlogFilename is the binlog filename that the backup source instance was writing to at the backup. | string | true | -| gtidSet | GTIDSet is the GTID set of the full dump of database. | string | true | -| dumpSize | DumpSize is the size in bytes of a full dump of database stored in an object storage bucket. | int64 | true | -| binlogSize | BinlogSize is the size in bytes of a tarball of binlog files stored in an object storage bucket. | int64 | true | -| workDirUsage | WorkDirUsage is the max usage in bytes of the woking directory. | int64 | true | -| warnings | Warnings are list of warnings from the last backup, if any. | []string | true | - -[Back to Custom Resources](#custom-resources) - -#### MySQLCluster - -MySQLCluster is the Schema for the mysqlclusters API - -| Field | Description | Scheme | Required | -| ----- | ----------- | ------ | -------- | -| metadata | | [metav1.ObjectMeta](https://pkg.go.dev/k8s.io/apimachinery/pkg/apis/meta/v1#ObjectMeta) | false | -| spec | | [MySQLClusterSpec](#mysqlclusterspec) | false | -| status | | [MySQLClusterStatus](#mysqlclusterstatus) | false | - -[Back to Custom Resources](#custom-resources) - -#### MySQLClusterList - -MySQLClusterList contains a list of MySQLCluster - -| Field | Description | Scheme | Required | -| ----- | ----------- | ------ | -------- | -| metadata | | [metav1.ListMeta](https://pkg.go.dev/k8s.io/apimachinery/pkg/apis/meta/v1#ListMeta) | false | -| items | | [][MySQLCluster](#mysqlcluster) | true | - -[Back to Custom Resources](#custom-resources) - -#### MySQLClusterSpec - -MySQLClusterSpec defines the desired state of MySQLCluster - -| Field | Description | Scheme | Required | -| ----- | ----------- | ------ | -------- | -| replicas | Replicas is the number of instances. Available values are positive odd numbers. | int32 | false | -| podTemplate | PodTemplate is a `Pod` template for MySQL server container. | [PodTemplateSpec](#podtemplatespec) | true | -| volumeClaimTemplates | VolumeClaimTemplates is a list of `PersistentVolumeClaim` templates for MySQL server container. A claim named \"mysql-data\" must be included in the list. | [][PersistentVolumeClaim](#persistentvolumeclaim) | true | -| serviceTemplate | ServiceTemplate is a `Service` template for both primary and replicas. | *[ServiceTemplate](#servicetemplate) | false | -| mysqlConfigMapName | MySQLConfigMapName is a `ConfigMap` name of MySQL config. | *string | false | -| replicationSourceSecretName | ReplicationSourceSecretName is a `Secret` name which contains replication source info. If this field is given, the `MySQLCluster` works as an intermediate primary. | *string | false | -| collectors | Collectors is the list of collector flag names of mysqld_exporter. If this field is not empty, MOCO adds mysqld_exporter as a sidecar to collect and export mysqld metrics in Prometheus format.\n\nSee https://github.com/prometheus/mysqld_exporter/blob/master/README.md#collector-flags for flag names.\n\nExample: [\"engine_innodb_status\", \"info_schema.innodb_metrics\"] | []string | false | -| serverIDBase | ServerIDBase, if set, will become the base number of server-id of each MySQL instance of this cluster. For example, if this is 100, the server-ids will be 100, 101, 102, and so on. If the field is not given or zero, MOCO automatically sets a random positive integer. | int32 | false | -| maxDelaySeconds | MaxDelaySeconds configures the readiness probe of mysqld container. For a replica mysqld instance, if it is delayed to apply transactions over this threshold, the mysqld instance will be marked as non-ready. The default is 60 seconds. Setting this field to 0 disables the delay check in the probe. | *int | false | -| startupDelaySeconds | StartupWaitSeconds is the maximum duration to wait for `mysqld` container to start working. The default is 3600 seconds. | int32 | false | -| logRotationSchedule | LogRotationSchedule specifies the schedule to rotate MySQL logs. If not set, the default is to rotate logs every 5 minutes. See https://pkg.go.dev/github.com/robfig/cron/v3#hdr-CRON_Expression_Format for the field format. | string | false | -| backupPolicyName | The name of BackupPolicy custom resource in the same namespace. If this is set, MOCO creates a CronJob to take backup of this MySQL cluster periodically. | *string | false | -| restore | Restore is the specification to perform Point-in-Time-Recovery from existing cluster. If this field is not null, MOCO restores the data as specified and create a new cluster with the data. This field is not editable. | *[RestoreSpec](#restorespec) | false | -| disableSlowQueryLogContainer | DisableSlowQueryLogContainer controls whether to add a sidecar container named \"slow-log\" to output slow logs as the containers output. If set to true, the sidecar container is not added. The default is false. | bool | false | - -[Back to Custom Resources](#custom-resources) - -#### MySQLClusterStatus - -MySQLClusterStatus defines the observed state of MySQLCluster - -| Field | Description | Scheme | Required | -| ----- | ----------- | ------ | -------- | -| conditions | Conditions is an array of conditions. | [][metav1.Condition](https://pkg.go.dev/k8s.io/apimachinery/pkg/apis/meta/v1#Condition) | false | -| currentPrimaryIndex | CurrentPrimaryIndex is the index of the current primary Pod in StatefulSet. Initially, this is zero. | int | true | -| syncedReplicas | SyncedReplicas is the number of synced instances including the primary. | int | false | -| errantReplicas | ErrantReplicas is the number of instances that have errant transactions. | int | false | -| errantReplicaList | ErrantReplicaList is the list of indices of errant replicas. | []int | false | -| backup | Backup is the status of the last successful backup. | [BackupStatus](#backupstatus) | true | -| restoredTime | RestoredTime is the time when the cluster data is restored. | *[metav1.Time](https://pkg.go.dev/k8s.io/apimachinery/pkg/apis/meta/v1#Time) | false | -| cloned | Cloned indicates if the initial cloning from an external source has been completed. | bool | false | -| reconcileInfo | ReconcileInfo represents version information for reconciler. | [ReconcileInfo](#reconcileinfo) | true | - -[Back to Custom Resources](#custom-resources) - -#### ObjectMeta - -ObjectMeta is metadata of objects. This is partially copied from metav1.ObjectMeta. - -| Field | Description | Scheme | Required | -| ----- | ----------- | ------ | -------- | -| name | Name is the name of the object. | string | false | -| labels | Labels is a map of string keys and values. | map[string]string | false | -| annotations | Annotations is a map of string keys and values. | map[string]string | false | - -[Back to Custom Resources](#custom-resources) - -#### PersistentVolumeClaim - -PersistentVolumeClaim is a user's request for and claim to a persistent volume. This is slightly modified from corev1.PersistentVolumeClaim. - -| Field | Description | Scheme | Required | -| ----- | ----------- | ------ | -------- | -| metadata | Standard object's metadata. | [ObjectMeta](#objectmeta) | true | -| spec | Spec defines the desired characteristics of a volume requested by a pod author. | [PersistentVolumeClaimSpecApplyConfiguration](https://pkg.go.dev/k8s.io/client-go/applyconfigurations/core/v1#PersistentVolumeClaimSpecApplyConfiguration) | true | - -[Back to Custom Resources](#custom-resources) - -#### PodTemplateSpec - -PodTemplateSpec describes the data a pod should have when created from a template. This is slightly modified from corev1.PodTemplateSpec. - -| Field | Description | Scheme | Required | -| ----- | ----------- | ------ | -------- | -| metadata | Standard object's metadata. The name in this metadata is ignored. | [ObjectMeta](#objectmeta) | false | -| spec | Specification of the desired behavior of the pod. The name of the MySQL server container in this spec must be `mysqld`. | [PodSpecApplyConfiguration](https://pkg.go.dev/k8s.io/client-go/applyconfigurations/core/v1#PodSpecApplyConfiguration) | true | - -[Back to Custom Resources](#custom-resources) - -#### ReconcileInfo - -ReconcileInfo is the type to record the last reconciliation information. - -| Field | Description | Scheme | Required | -| ----- | ----------- | ------ | -------- | -| generation | Generation is the `metadata.generation` value of the last reconciliation. See also https://kubernetes.io/docs/tasks/extend-kubernetes/custom-resources/custom-resource-definitions/#status-subresource | int64 | false | -| reconcileVersion | ReconcileVersion is the version of the operator reconciler. | int | true | - -[Back to Custom Resources](#custom-resources) - -#### RestoreSpec - -RestoreSpec represents a set of parameters for Point-in-Time Recovery. - -| Field | Description | Scheme | Required | -| ----- | ----------- | ------ | -------- | -| sourceName | SourceName is the name of the source `MySQLCluster`. | string | true | -| sourceNamespace | SourceNamespace is the namespace of the source `MySQLCluster`. | string | true | -| restorePoint | RestorePoint is the target date and time to restore data. The format is RFC3339. e.g. \"2006-01-02T15:04:05Z\" | [metav1.Time](https://pkg.go.dev/k8s.io/apimachinery/pkg/apis/meta/v1#Time) | true | -| jobConfig | Specifies parameters for restore Pod. | [JobConfig](#jobconfig) | true | - -[Back to Custom Resources](#custom-resources) - -#### ServiceTemplate - -ServiceTemplate defines the desired spec and annotations of Service - -| Field | Description | Scheme | Required | -| ----- | ----------- | ------ | -------- | -| metadata | Standard object's metadata. Only `annotations` and `labels` are valid. | [ObjectMeta](#objectmeta) | false | -| spec | Spec is the ServiceSpec | *[ServiceSpecApplyConfiguration](https://pkg.go.dev/k8s.io/client-go/applyconfigurations/core/v1#ServiceSpecApplyConfiguration) | false | - -[Back to Custom Resources](#custom-resources) - -#### BucketConfig - -BucketConfig is a set of parameter to access an object storage bucket. - -| Field | Description | Scheme | Required | -| ----- | ----------- | ------ | -------- | -| bucketName | The name of the bucket | string | true | -| region | The region of the bucket. This can also be set through `AWS_REGION` environment variable. | string | false | -| endpointURL | The API endpoint URL. Set this for non-S3 object storages. | string | false | -| usePathStyle | Allows you to enable the client to use path-style addressing, i.e., https?://ENDPOINT/BUCKET/KEY. By default, a virtual-host addressing is used (https?://BUCKET.ENDPOINT/KEY). | bool | false | -| backendType | BackendType is an identifier for the object storage to be used. | string | false | -| caCert | Path to SSL CA certificate file used in addition to system default. | string | false | - -[Back to Custom Resources](#custom-resources) - -#### JobConfig - -JobConfig is a set of parameters for backup and restore job Pods. - -| Field | Description | Scheme | Required | -| ----- | ----------- | ------ | -------- | -| serviceAccountName | ServiceAccountName specifies the ServiceAccount to run the Pod. | string | true | -| bucketConfig | Specifies how to access an object storage bucket. | [BucketConfig](#bucketconfig) | true | -| workVolume | WorkVolume is the volume source for the working directory. Since the backup or restore task can use a lot of bytes in the working directory, You should always give a volume with enough capacity.\n\nThe recommended volume source is a generic ephemeral volume. https://kubernetes.io/docs/concepts/storage/ephemeral-volumes/#generic-ephemeral-volumes | [VolumeSourceApplyConfiguration](https://pkg.go.dev/k8s.io/client-go/applyconfigurations/core/v1#VolumeSourceApplyConfiguration) | true | -| threads | Threads is the number of threads used for backup or restoration. | int | false | -| cpu | CPU is the amount of CPU requested for the Pod. | *[resource.Quantity](https://pkg.go.dev/k8s.io/apimachinery/pkg/api/resource#Quantity) | false | -| maxCpu | MaxCPU is the amount of maximum CPU for the Pod. | *[resource.Quantity](https://pkg.go.dev/k8s.io/apimachinery/pkg/api/resource#Quantity) | false | -| memory | Memory is the amount of memory requested for the Pod. | *[resource.Quantity](https://pkg.go.dev/k8s.io/apimachinery/pkg/api/resource#Quantity) | false | -| maxMemory | MaxMemory is the amount of maximum memory for the Pod. | *[resource.Quantity](https://pkg.go.dev/k8s.io/apimachinery/pkg/api/resource#Quantity) | false | -| envFrom | List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence.\n\nYou can configure S3 bucket access parameters through environment variables. See https://pkg.go.dev/github.com/aws/aws-sdk-go-v2/config#EnvConfig | [][EnvFromSourceApplyConfiguration](https://pkg.go.dev/k8s.io/client-go/applyconfigurations/core/v1#EnvFromSourceApplyConfiguration) | false | -| env | List of environment variables to set in the container.\n\nYou can configure S3 bucket access parameters through environment variables. See https://pkg.go.dev/github.com/aws/aws-sdk-go-v2/config#EnvConfig | [][EnvVarApplyConfiguration](https://pkg.go.dev/k8s.io/client-go/applyconfigurations/core/v1#EnvVarApplyConfiguration) | false | -| affinity | If specified, the pod's scheduling constraints. | *[AffinityApplyConfiguration](https://pkg.go.dev/k8s.io/client-go/applyconfigurations/core/v1#AffinityApplyConfiguration) | false | -| volumes | Volumes defines the list of volumes that can be mounted by containers in the Pod. | []VolumeApplyConfiguration | false | -| volumeMounts | VolumeMounts describes a list of volume mounts that are to be mounted in a container. | []VolumeMountApplyConfiguration | false | - -[Back to Custom Resources](#custom-resources) diff --git a/docs/links.csv b/docs/links.csv index 74bc43602..c679388a5 100644 --- a/docs/links.csv +++ b/docs/links.csv @@ -11,7 +11,7 @@ metav1.Condition,https://pkg.go.dev/k8s.io/apimachinery/pkg/apis/meta/v1#Conditi metav1.ListMeta,https://pkg.go.dev/k8s.io/apimachinery/pkg/apis/meta/v1#ListMeta metav1.ObjectMeta,https://pkg.go.dev/k8s.io/apimachinery/pkg/apis/meta/v1#ObjectMeta metav1.Time,https://pkg.go.dev/k8s.io/apimachinery/pkg/apis/meta/v1#Time -MySQLClusterConditionType,https://pkg.go.dev/github.com/cybozu-go/moco/api/v1beta1#MySQLClusterConditionType +MySQLClusterConditionType,https://pkg.go.dev/github.com/cybozu-go/moco/api/v1beta2#MySQLClusterConditionType OverwriteableContainerName,https://pkg.go.dev/github.com/cybozu-go/moco/api/v1beta2#OverwriteableContainerName resource.Quantity,https://pkg.go.dev/k8s.io/apimachinery/pkg/api/resource#Quantity PersistentVolumeClaimSpecApplyConfiguration,https://pkg.go.dev/k8s.io/client-go/applyconfigurations/core/v1#PersistentVolumeClaimSpecApplyConfiguration diff --git a/e2e/testdata/backup.yaml b/e2e/testdata/backup.yaml index 0ddde2c30..8c87e5df8 100644 --- a/e2e/testdata/backup.yaml +++ b/e2e/testdata/backup.yaml @@ -17,7 +17,7 @@ metadata: namespace: backup name: backup-owner --- -apiVersion: moco.cybozu.com/v1beta1 +apiVersion: moco.cybozu.com/v1beta2 kind: BackupPolicy metadata: namespace: backup diff --git a/e2e/testdata/backup_gcs.yaml b/e2e/testdata/backup_gcs.yaml index 42a2f4e13..646977e7b 100644 --- a/e2e/testdata/backup_gcs.yaml +++ b/e2e/testdata/backup_gcs.yaml @@ -17,7 +17,7 @@ metadata: namespace: backup-gcs name: backup-owner --- -apiVersion: moco.cybozu.com/v1beta1 +apiVersion: moco.cybozu.com/v1beta2 kind: BackupPolicy metadata: namespace: backup-gcs diff --git a/e2e/testdata/backup_tls.yaml b/e2e/testdata/backup_tls.yaml index 525b12ffc..b30631173 100644 --- a/e2e/testdata/backup_tls.yaml +++ b/e2e/testdata/backup_tls.yaml @@ -17,7 +17,7 @@ metadata: namespace: backup-tls name: backup-owner --- -apiVersion: moco.cybozu.com/v1beta1 +apiVersion: moco.cybozu.com/v1beta2 kind: BackupPolicy metadata: namespace: backup-tls