mirror of
https://github.com/ysoftdevs/gardener-extension-shoot-fleet-agent.git
synced 2026-07-10 07:02:55 +02:00
Initial v1.0.0 commit
This commit is contained in:
+289
@@ -0,0 +1,289 @@
|
||||
SPDX short identifier: Apache-2.0
|
||||
|
||||
```
|
||||
Apache License
|
||||
Version 2.0, January 2004
|
||||
http://www.apache.org/licenses/
|
||||
|
||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||
|
||||
1. Definitions.
|
||||
|
||||
"License" shall mean the terms and conditions for use, reproduction,
|
||||
and distribution as defined by Sections 1 through 9 of this document.
|
||||
|
||||
"Licensor" shall mean the copyright owner or entity authorized by
|
||||
the copyright owner that is granting the License.
|
||||
|
||||
"Legal Entity" shall mean the union of the acting entity and all
|
||||
other entities that control, are controlled by, or are under common
|
||||
control with that entity. For the purposes of this definition,
|
||||
"control" means (i) the power, direct or indirect, to cause the
|
||||
direction or management of such entity, whether by contract or
|
||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
||||
|
||||
"You" (or "Your") shall mean an individual or Legal Entity
|
||||
exercising permissions granted by this License.
|
||||
|
||||
"Source" form shall mean the preferred form for making modifications,
|
||||
including but not limited to software source code, documentation
|
||||
source, and configuration files.
|
||||
|
||||
"Object" form shall mean any form resulting from mechanical
|
||||
transformation or translation of a Source form, including but
|
||||
not limited to compiled object code, generated documentation,
|
||||
and conversions to other media types.
|
||||
|
||||
"Work" shall mean the work of authorship, whether in Source or
|
||||
Object form, made available under the License, as indicated by a
|
||||
copyright notice that is included in or attached to the work
|
||||
(an example is provided in the Appendix below).
|
||||
|
||||
"Derivative Works" shall mean any work, whether in Source or Object
|
||||
form, that is based on (or derived from) the Work and for which the
|
||||
editorial revisions, annotations, elaborations, or other modifications
|
||||
represent, as a whole, an original work of authorship. For the purposes
|
||||
of this License, Derivative Works shall not include works that remain
|
||||
separable from, or merely link (or bind by name) to the interfaces of,
|
||||
the Work and Derivative Works thereof.
|
||||
|
||||
"Contribution" shall mean any work of authorship, including
|
||||
the original version of the Work and any modifications or additions
|
||||
to that Work or Derivative Works thereof, that is intentionally
|
||||
submitted to Licensor for inclusion in the Work by the copyright owner
|
||||
or by an individual or Legal Entity authorized to submit on behalf of
|
||||
the copyright owner. For the purposes of this definition, "submitted"
|
||||
means any form of electronic, verbal, or written communication sent
|
||||
to the Licensor or its representatives, including but not limited to
|
||||
communication on electronic mailing lists, source code control systems,
|
||||
and issue tracking systems that are managed by, or on behalf of, the
|
||||
Licensor for the purpose of discussing and improving the Work, but
|
||||
excluding communication that is conspicuously marked or otherwise
|
||||
designated in writing by the copyright owner as "Not a Contribution."
|
||||
|
||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
||||
on behalf of whom a Contribution has been received by Licensor and
|
||||
subsequently incorporated within the Work.
|
||||
|
||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
copyright license to reproduce, prepare Derivative Works of,
|
||||
publicly display, publicly perform, sublicense, and distribute the
|
||||
Work and such Derivative Works in Source or Object form.
|
||||
|
||||
3. Grant of Patent License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
(except as stated in this section) patent license to make, have made,
|
||||
use, offer to sell, sell, import, and otherwise transfer the Work,
|
||||
where such license applies only to those patent claims licensable
|
||||
by such Contributor that are necessarily infringed by their
|
||||
Contribution(s) alone or by combination of their Contribution(s)
|
||||
with the Work to which such Contribution(s) was submitted. If You
|
||||
institute patent litigation against any entity (including a
|
||||
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
||||
or a Contribution incorporated within the Work constitutes direct
|
||||
or contributory patent infringement, then any patent licenses
|
||||
granted to You under this License for that Work shall terminate
|
||||
as of the date such litigation is filed.
|
||||
|
||||
4. Redistribution. You may reproduce and distribute copies of the
|
||||
Work or Derivative Works thereof in any medium, with or without
|
||||
modifications, and in Source or Object form, provided that You
|
||||
meet the following conditions:
|
||||
|
||||
(a) You must give any other recipients of the Work or
|
||||
Derivative Works a copy of this License; and
|
||||
|
||||
(b) You must cause any modified files to carry prominent notices
|
||||
stating that You changed the files; and
|
||||
|
||||
(c) You must retain, in the Source form of any Derivative Works
|
||||
that You distribute, all copyright, patent, trademark, and
|
||||
attribution notices from the Source form of the Work,
|
||||
excluding those notices that do not pertain to any part of
|
||||
the Derivative Works; and
|
||||
|
||||
(d) If the Work includes a "NOTICE" text file as part of its
|
||||
distribution, then any Derivative Works that You distribute must
|
||||
include a readable copy of the attribution notices contained
|
||||
within such NOTICE file, excluding those notices that do not
|
||||
pertain to any part of the Derivative Works, in at least one
|
||||
of the following places: within a NOTICE text file distributed
|
||||
as part of the Derivative Works; within the Source form or
|
||||
documentation, if provided along with the Derivative Works; or,
|
||||
within a display generated by the Derivative Works, if and
|
||||
wherever such third-party notices normally appear. The contents
|
||||
of the NOTICE file are for informational purposes only and
|
||||
do not modify the License. You may add Your own attribution
|
||||
notices within Derivative Works that You distribute, alongside
|
||||
or as an addendum to the NOTICE text from the Work, provided
|
||||
that such additional attribution notices cannot be construed
|
||||
as modifying the License.
|
||||
|
||||
You may add Your own copyright statement to Your modifications and
|
||||
may provide additional or different license terms and conditions
|
||||
for use, reproduction, or distribution of Your modifications, or
|
||||
for any such Derivative Works as a whole, provided Your use,
|
||||
reproduction, and distribution of the Work otherwise complies with
|
||||
the conditions stated in this License.
|
||||
|
||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
||||
any Contribution intentionally submitted for inclusion in the Work
|
||||
by You to the Licensor shall be under the terms and conditions of
|
||||
this License, without any additional terms or conditions.
|
||||
Notwithstanding the above, nothing herein shall supersede or modify
|
||||
the terms of any separate license agreement you may have executed
|
||||
with Licensor regarding such Contributions.
|
||||
|
||||
6. Trademarks. This License does not grant permission to use the trade
|
||||
names, trademarks, service marks, or product names of the Licensor,
|
||||
except as required for reasonable and customary use in describing the
|
||||
origin of the Work and reproducing the content of the NOTICE file.
|
||||
|
||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
||||
agreed to in writing, Licensor provides the Work (and each
|
||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||||
implied, including, without limitation, any warranties or conditions
|
||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
||||
PARTICULAR PURPOSE. You are solely responsible for determining the
|
||||
appropriateness of using or redistributing the Work and assume any
|
||||
risks associated with Your exercise of permissions under this License.
|
||||
|
||||
8. Limitation of Liability. In no event and under no legal theory,
|
||||
whether in tort (including negligence), contract, or otherwise,
|
||||
unless required by applicable law (such as deliberate and grossly
|
||||
negligent acts) or agreed to in writing, shall any Contributor be
|
||||
liable to You for damages, including any direct, indirect, special,
|
||||
incidental, or consequential damages of any character arising as a
|
||||
result of this License or out of the use or inability to use the
|
||||
Work (including but not limited to damages for loss of goodwill,
|
||||
work stoppage, computer failure or malfunction, or any and all
|
||||
other commercial damages or losses), even if such Contributor
|
||||
has been advised of the possibility of such damages.
|
||||
|
||||
9. Accepting Warranty or Additional Liability. While redistributing
|
||||
the Work or Derivative Works thereof, You may choose to offer,
|
||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
||||
or other liability obligations and/or rights consistent with this
|
||||
License. However, in accepting such obligations, You may act only
|
||||
on Your own behalf and on Your sole responsibility, not on behalf
|
||||
of any other Contributor, and only if You agree to indemnify,
|
||||
defend, and hold each Contributor harmless for any liability
|
||||
incurred by, or claims asserted against, such Contributor by reason
|
||||
of your accepting any such warranty or additional liability.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
APPENDIX: How to apply the Apache License to your work.
|
||||
|
||||
To apply the Apache License to your work, attach the following
|
||||
boilerplate notice, with the fields enclosed by brackets "[]"
|
||||
replaced with your own identifying information. (Don't include
|
||||
the brackets!) The text should be enclosed in the appropriate
|
||||
comment syntax for the file format. We also recommend that a
|
||||
file or class name and description of purpose be included on the
|
||||
same "printed page" as the copyright notice for easier
|
||||
identification within third-party archives.
|
||||
|
||||
Copyright [yyyy] [name of copyright owner]
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
```
|
||||
|
||||
## APIs
|
||||
|
||||
This project may include APIs to SAP or third party products or services. The use of these APIs,
|
||||
products and services may be subject to additional agreements. In no event shall the application
|
||||
of the Apache Software License, v.2 to this project grant any rights in or to these APIs, products
|
||||
or services that would alter, expand, be inconsistent with, or supersede any terms of these additional
|
||||
agreements. API means application programming interfaces, as well as their respective specifications
|
||||
and implementing code that allows other software products to communicate with or call on SAP or
|
||||
third party products or services (for example, SAP Enterprise Services, BAPIs, Idocs, RFCs and
|
||||
ABAP calls or other user exits) and may be made available through SAP or third party products,
|
||||
SDKs, documentation or other media.
|
||||
|
||||
## Subcomponents
|
||||
|
||||
This project includes the following subcomponents that are subject to separate license terms.
|
||||
Your use of these subcomponents is subject to the separate license terms applicable to
|
||||
each subcomponent.
|
||||
|
||||
Schema of the external API types that are served by the Kubernetes API server
|
||||
https://github.com/kubernetes/api
|
||||
Copyright 2017 The Kubernetes Authors
|
||||
Apache 2 license (https://github.com/kubernetes/api/blob/master/LICENSE)
|
||||
|
||||
Scheme, typing, encoding, decoding, and conversion packages for Kubernetes and Kubernetes-like API objects.
|
||||
https://github.com/kubernetes/apimachinery
|
||||
Copyright 2014 The Kubernetes Authors
|
||||
Apache 2 license (https://github.com/kubernetes/apimachinery/blob/master/LICENSE)
|
||||
|
||||
Logrus.
|
||||
https://github.com/sirupsen/logrus
|
||||
Copyright (c) 2014 Simon Eskildsen
|
||||
MIT license (https://github.com/sirupsen/logrus/blob/master/LICENSE)
|
||||
|
||||
Client-go
|
||||
https://github.com/kubernetes/client-go
|
||||
Copyright 2017 The Kubernetes Authors
|
||||
Apache 2 license (https://github.com/kubernetes/client-go/blob/master/LICENSE)
|
||||
|
||||
Etcd
|
||||
https://github.com/coreos/etcd
|
||||
Copyright 2017 The etcd Authors
|
||||
Apache 2 license (https://github.com/coreos/etcd/blob/master/LICENSE)
|
||||
|
||||
Kubebuilder
|
||||
Copyright 2017 The Kubernetes Authors
|
||||
Apache 2 license (https://github.com/kubernetes-sigs/kubebuilder/blob/master/LICENSE)
|
||||
|
||||
Helm
|
||||
https://git.k8s.io/helm
|
||||
Copyright 2017 The Kubernetes Authors
|
||||
Apache 2 license (https://git.k8s.io/helm/LICENSE)
|
||||
|
||||
------
|
||||
|
||||
## MIT License
|
||||
|
||||
SPDX short identifier: MIT
|
||||
|
||||
```
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) <year> <owner>
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
```
|
||||
|
||||
------
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
## etcd-druid
|
||||
|
||||
Copyright (c) 2019 SAP SE or an SAP affiliate company. All rights reserved.
|
||||
+324
@@ -0,0 +1,324 @@
|
||||
// Copyright (c) 2019 SAP SE or an SAP affiliate company. All rights reserved. This file is licensed under the Apache Software License, v. 2 except as noted otherwise in the LICENSE file.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
package v1alpha1
|
||||
|
||||
import (
|
||||
corev1 "k8s.io/api/core/v1"
|
||||
"k8s.io/apimachinery/pkg/api/resource"
|
||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
)
|
||||
|
||||
const (
|
||||
// GarbageCollectionPolicyExponential defines the exponential policy for garbage collecting old backups
|
||||
GarbageCollectionPolicyExponential = "Exponential"
|
||||
// GarbageCollectionPolicyLimitBased defines the limit based policy for garbage collecting old backups
|
||||
GarbageCollectionPolicyLimitBased = "LimitBased"
|
||||
|
||||
// Basic is a constant for metrics level basic.
|
||||
Basic MetricsLevel = "basic"
|
||||
// Extensive is a constant for metrics level extensive.
|
||||
Extensive MetricsLevel = "extensive"
|
||||
)
|
||||
|
||||
// MetricsLevel defines the level 'basic' or 'extensive'.
|
||||
// +kubebuilder:validation:Enum=basic;extensive
|
||||
type MetricsLevel string
|
||||
|
||||
// GarbageCollectionPolicy defines the type of policy for snapshot garbage collection.
|
||||
// +kubebuilder:validation:Enum=Exponential;LimitBased
|
||||
type GarbageCollectionPolicy string
|
||||
|
||||
// StorageProvider defines the type of object store provider for storing backups.
|
||||
type StorageProvider string
|
||||
|
||||
// StoreSpec defines parameters related to ObjectStore persisting backups
|
||||
type StoreSpec struct {
|
||||
// +optional
|
||||
Container *string `json:"container,omitempty"`
|
||||
// +required
|
||||
Prefix string `json:"prefix"`
|
||||
// +optional
|
||||
Provider *StorageProvider `json:"provider,omitempty"`
|
||||
// +optional
|
||||
SecretRef *corev1.SecretReference `json:"secretRef,omitempty"`
|
||||
}
|
||||
|
||||
// TLSConfig hold the TLS configuration details.
|
||||
type TLSConfig struct {
|
||||
// +required
|
||||
ServerTLSSecretRef corev1.SecretReference `json:"serverTLSSecretRef"`
|
||||
// +required
|
||||
ClientTLSSecretRef corev1.SecretReference `json:"clientTLSSecretRef"`
|
||||
// +required
|
||||
TLSCASecretRef corev1.SecretReference `json:"tlsCASecretRef"`
|
||||
}
|
||||
|
||||
// BackupSpec defines parametes associated with the full and delta snapshots of etcd
|
||||
type BackupSpec struct {
|
||||
// Port define the port on which etcd-backup-restore server will exposed.
|
||||
// +optional
|
||||
Port *int `json:"port,omitempty"`
|
||||
// +optional
|
||||
TLS *TLSConfig `json:"tls,omitempty"`
|
||||
// Image defines the etcd container image and tag
|
||||
// +optional
|
||||
Image *string `json:"image,omitempty"`
|
||||
// Store defines the specification of object store provider for storing backups.
|
||||
// +optional
|
||||
Store *StoreSpec `json:"store,omitempty"`
|
||||
// Resources defines the compute Resources required by backup-restore container.
|
||||
// More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
|
||||
// +optional
|
||||
Resources *corev1.ResourceRequirements `json:"resources,omitempty"`
|
||||
// FullSnapshotSchedule defines the cron standard schedule for full snapshots.
|
||||
// +optional
|
||||
FullSnapshotSchedule *string `json:"fullSnapshotSchedule,omitempty"`
|
||||
// GarbageCollectionPolicy defines the policy for garbage collecting old backups
|
||||
// +optional
|
||||
GarbageCollectionPolicy *GarbageCollectionPolicy `json:"garbageCollectionPolicy,omitempty"`
|
||||
// GarbageCollectionPeriod defines the period for garbage collecting old backups
|
||||
// +optional
|
||||
GarbageCollectionPeriod *metav1.Duration `json:"garbageCollectionPeriod,omitempty"`
|
||||
// DeltaSnapshotPeriod defines the period after which delta snapshots will be taken
|
||||
// +optional
|
||||
DeltaSnapshotPeriod *metav1.Duration `json:"deltaSnapshotPeriod,omitempty"`
|
||||
// DeltaSnapshotMemoryLimit defines the memory limit after which delta snapshots will be taken
|
||||
// +optional
|
||||
DeltaSnapshotMemoryLimit *resource.Quantity `json:"deltaSnapshotMemoryLimit,omitempty"`
|
||||
}
|
||||
|
||||
// EtcdConfig defines parametes associated etcd deployed
|
||||
type EtcdConfig struct {
|
||||
// Quota defines the etcd DB quota.
|
||||
// +optional
|
||||
Quota *resource.Quantity `json:"quota,omitempty"`
|
||||
// DefragmentationSchedule defines the cron standard schedule for defragmentation of etcd.
|
||||
// +optional
|
||||
DefragmentationSchedule *string `json:"defragmentationSchedule,omitempty"`
|
||||
// +optional
|
||||
ServerPort *int `json:"serverPort,omitempty"`
|
||||
// +optional
|
||||
ClientPort *int `json:"clientPort,omitempty"`
|
||||
// Image defines the etcd container image and tag
|
||||
// +optional
|
||||
Image *string `json:"image,omitempty"`
|
||||
// +optional
|
||||
AuthSecretRef *corev1.SecretReference `json:"authSecretRef,omitempty"`
|
||||
// Metrics defines the level of detail for exported metrics of etcd, specify 'extensive' to include histogram metrics.
|
||||
// +optional
|
||||
Metrics MetricsLevel `json:"metrics,omitempty"`
|
||||
// Resources defines the compute Resources required by etcd container.
|
||||
// More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
|
||||
// +optional
|
||||
Resources *corev1.ResourceRequirements `json:"resources,omitempty"`
|
||||
// +optional
|
||||
TLS *TLSConfig `json:"tls,omitempty"`
|
||||
}
|
||||
|
||||
// EtcdSpec defines the desired state of Etcd
|
||||
type EtcdSpec struct {
|
||||
// selector is a label query over pods that should match the replica count.
|
||||
// It must match the pod template's labels.
|
||||
// More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
|
||||
Selector *metav1.LabelSelector `json:"selector"`
|
||||
// +required
|
||||
Labels map[string]string `json:"labels"`
|
||||
// +optional
|
||||
Annotations map[string]string `json:"annotations,omitempty"`
|
||||
// +required
|
||||
Etcd EtcdConfig `json:"etcd"`
|
||||
// +required
|
||||
Backup BackupSpec `json:"backup"`
|
||||
// +required
|
||||
Replicas int `json:"replicas"`
|
||||
// PriorityClassName is the name of a priority class that shall be used for the etcd pods.
|
||||
// +optional
|
||||
PriorityClassName *string `json:"priorityClassName,omitempty"`
|
||||
// StorageClass defines the name of the StorageClass required by the claim.
|
||||
// More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1
|
||||
// +optional
|
||||
StorageClass *string `json:"storageClass,omitempty"`
|
||||
// StorageCapacity defines the size of persistent volume.
|
||||
// +optional
|
||||
StorageCapacity *resource.Quantity `json:"storageCapacity,omitempty"`
|
||||
// VolumeClaimTemplate defines the volume claim template to be created
|
||||
// +optional
|
||||
VolumeClaimTemplate *string `json:"volumeClaimTemplate,omitempty"`
|
||||
}
|
||||
|
||||
// CrossVersionObjectReference contains enough information to let you identify the referred resource.
|
||||
type CrossVersionObjectReference struct {
|
||||
// Kind of the referent
|
||||
// +required
|
||||
Kind string `json:"kind,omitempty"`
|
||||
// Name of the referent
|
||||
// +required
|
||||
Name string `json:"name,omitempty"`
|
||||
// API version of the referent
|
||||
// +optional
|
||||
APIVersion string `json:"apiVersion,omitempty"`
|
||||
}
|
||||
|
||||
// ConditionStatus is the status of a condition.
|
||||
type ConditionStatus string
|
||||
|
||||
// ConditionType is a string alias.
|
||||
type ConditionType string
|
||||
|
||||
const (
|
||||
// ConditionAvailable is a condition type for indicating availability.
|
||||
ConditionAvailable ConditionType = "Available"
|
||||
|
||||
// ConditionTrue means a resource is in the condition.
|
||||
ConditionTrue ConditionStatus = "True"
|
||||
// ConditionFalse means a resource is not in the condition.
|
||||
ConditionFalse ConditionStatus = "False"
|
||||
// ConditionUnknown means Gardener can't decide if a resource is in the condition or not.
|
||||
ConditionUnknown ConditionStatus = "Unknown"
|
||||
// ConditionProgressing means the condition was seen true, failed but stayed within a predefined failure threshold.
|
||||
// In the future, we could add other intermediate conditions, e.g. ConditionDegraded.
|
||||
ConditionProgressing ConditionStatus = "Progressing"
|
||||
|
||||
// ConditionCheckError is a constant for a reason in condition.
|
||||
ConditionCheckError = "ConditionCheckError"
|
||||
)
|
||||
|
||||
// Condition holds the information about the state of a resource.
|
||||
type Condition struct {
|
||||
// Type of the Etcd condition.
|
||||
Type ConditionType `json:"type,omitempty"`
|
||||
// Status of the condition, one of True, False, Unknown.
|
||||
Status ConditionStatus `json:"status,omitempty"`
|
||||
// Last time the condition transitioned from one status to another.
|
||||
LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty"`
|
||||
// Last time the condition was updated.
|
||||
LastUpdateTime metav1.Time `json:"lastUpdateTime,omitempty"`
|
||||
// The reason for the condition's last transition.
|
||||
Reason string `json:"reason,omitempty"`
|
||||
// A human readable message indicating details about the transition.
|
||||
Message string `json:"message,omitempty"`
|
||||
}
|
||||
|
||||
// EndpointStatus is the status of a condition.
|
||||
type EndpointStatus string
|
||||
|
||||
// LastOperationType is a string alias.
|
||||
type LastOperationType string
|
||||
|
||||
const (
|
||||
// LastOperationTypeCreate indicates a 'create' operation.
|
||||
LastOperationTypeCreate LastOperationType = "Create"
|
||||
// LastOperationTypeReconcile indicates a 'reconcile' operation.
|
||||
LastOperationTypeReconcile LastOperationType = "Reconcile"
|
||||
// LastOperationTypeDelete indicates a 'delete' operation.
|
||||
LastOperationTypeDelete LastOperationType = "Delete"
|
||||
)
|
||||
|
||||
// LastOperationState is a string alias.
|
||||
type LastOperationState string
|
||||
|
||||
const (
|
||||
// LastOperationStateProcessing indicates that an operation is ongoing.
|
||||
LastOperationStateProcessing LastOperationState = "Processing"
|
||||
// LastOperationStateSucceeded indicates that an operation has completed successfully.
|
||||
LastOperationStateSucceeded LastOperationState = "Succeeded"
|
||||
// LastOperationStateError indicates that an operation is completed with errors and will be retried.
|
||||
LastOperationStateError LastOperationState = "Error"
|
||||
// LastOperationStateFailed indicates that an operation is completed with errors and won't be retried.
|
||||
LastOperationStateFailed LastOperationState = "Failed"
|
||||
// LastOperationStatePending indicates that an operation cannot be done now, but will be tried in future.
|
||||
LastOperationStatePending LastOperationState = "Pending"
|
||||
// LastOperationStateAborted indicates that an operation has been aborted.
|
||||
LastOperationStateAborted LastOperationState = "Aborted"
|
||||
)
|
||||
|
||||
// LastOperation indicates the type and the state of the last operation, along with a description
|
||||
// message and a progress indicator.
|
||||
type LastOperation struct {
|
||||
// A human readable message indicating details about the last operation.
|
||||
Description string `json:"description,omitempty"`
|
||||
// Last time the operation state transitioned from one to another.
|
||||
LastUpdateTime metav1.Time `json:"lastUpdateTime,omitempty"`
|
||||
// The progress in percentage (0-100) of the last operation.
|
||||
Progress int `json:"progress,omitempty"`
|
||||
// Status of the last operation, one of Aborted, Processing, Succeeded, Error, Failed.
|
||||
State LastOperationState `json:"state,omitempty"`
|
||||
// Type of the last operation, one of Create, Reconcile, Delete.
|
||||
Type LastOperationType `json:"type,omitempty"`
|
||||
}
|
||||
|
||||
// EtcdStatus defines the observed state of Etcd
|
||||
type EtcdStatus struct {
|
||||
// ObservedGeneration is the most recent generation observed for this resource.
|
||||
// +optional
|
||||
ObservedGeneration *int64 `json:"observedGeneration,omitempty"`
|
||||
// +optional
|
||||
Etcd CrossVersionObjectReference `json:"etcd,omitempty"`
|
||||
// +optional
|
||||
Conditions []Condition `json:"conditions,omitempty"`
|
||||
// +optional
|
||||
CurrentReplicas int32 `json:"currentReplicas,omitempty"`
|
||||
// +optional
|
||||
ServiceName *string `json:"serviceName,omitempty"`
|
||||
// +optional
|
||||
LastError *string `json:"lastError,omitempty"`
|
||||
// +optional
|
||||
Replicas int32 `json:"replicas,omitempty"`
|
||||
// +optional
|
||||
ReadyReplicas int32 `json:"readyReplicas,omitempty"`
|
||||
// +optional
|
||||
Ready *bool `json:"ready,omitempty"`
|
||||
// +optional
|
||||
UpdatedReplicas int32 `json:"updatedReplicas,omitempty"`
|
||||
// selector is a label query over pods that should match the replica count.
|
||||
// It must match the pod template's labels.
|
||||
// +optional
|
||||
LabelSelector *metav1.LabelSelector `json:"labelSelector,omitempty"`
|
||||
//LastOperation LastOperation `json:"lastOperation,omitempty"`
|
||||
}
|
||||
|
||||
// +genclient
|
||||
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
|
||||
|
||||
// +kubebuilder:object:root=true
|
||||
// +kubebuilder:subresource:status
|
||||
// +kubebuilder:printcolumn:name="Ready",type=string,JSONPath=`.status.ready`
|
||||
// +kubebuilder:printcolumn:name="Age",type=date,JSONPath=`.metadata.creationTimestamp`
|
||||
// +kubebuilder:subresource:scale:specpath=.spec.replicas,statuspath=.status.replicas,selectorpath=.status.labelSelector
|
||||
|
||||
// Etcd is the Schema for the etcds API
|
||||
type Etcd struct {
|
||||
metav1.TypeMeta `json:",inline"`
|
||||
metav1.ObjectMeta `json:"metadata,omitempty"`
|
||||
|
||||
Spec EtcdSpec `json:"spec,omitempty"`
|
||||
Status EtcdStatus `json:"status,omitempty"`
|
||||
}
|
||||
|
||||
// +genclient
|
||||
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
|
||||
|
||||
// +kubebuilder:object:root=true
|
||||
|
||||
// EtcdList contains a list of Etcd
|
||||
type EtcdList struct {
|
||||
metav1.TypeMeta `json:",inline"`
|
||||
metav1.ListMeta `json:"metadata,omitempty"`
|
||||
Items []Etcd `json:"items"`
|
||||
}
|
||||
|
||||
func init() {
|
||||
SchemeBuilder.Register(&Etcd{}, &EtcdList{})
|
||||
}
|
||||
+34
@@ -0,0 +1,34 @@
|
||||
// Copyright (c) 2019 SAP SE or an SAP affiliate company. All rights reserved. This file is licensed under the Apache Software License, v. 2 except as noted otherwise in the LICENSE file.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
// Package v1alpha1 contains API Schema definitions for the druid v1alpha1 API group
|
||||
// +kubebuilder:object:generate=true
|
||||
// +groupName=druid.gardener.cloud
|
||||
package v1alpha1
|
||||
|
||||
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: "druid.gardener.cloud", Version: "v1alpha1"}
|
||||
|
||||
// SchemeBuilder is used to add go types to the GroupVersionKind scheme
|
||||
SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion}
|
||||
|
||||
// AddToScheme adds the types in this group-version to the given scheme.
|
||||
AddToScheme = SchemeBuilder.AddToScheme
|
||||
)
|
||||
+404
@@ -0,0 +1,404 @@
|
||||
// +build !ignore_autogenerated
|
||||
|
||||
// Copyright (c) 2019 SAP SE or an SAP affiliate company. All rights reserved. This file is licensed under the Apache Software License, v. 2 except as noted otherwise in the LICENSE file.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
// Code generated by controller-gen. DO NOT EDIT.
|
||||
|
||||
package v1alpha1
|
||||
|
||||
import (
|
||||
"k8s.io/api/core/v1"
|
||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
runtime "k8s.io/apimachinery/pkg/runtime"
|
||||
)
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *BackupSpec) DeepCopyInto(out *BackupSpec) {
|
||||
*out = *in
|
||||
if in.Port != nil {
|
||||
in, out := &in.Port, &out.Port
|
||||
*out = new(int)
|
||||
**out = **in
|
||||
}
|
||||
if in.TLS != nil {
|
||||
in, out := &in.TLS, &out.TLS
|
||||
*out = new(TLSConfig)
|
||||
**out = **in
|
||||
}
|
||||
if in.Image != nil {
|
||||
in, out := &in.Image, &out.Image
|
||||
*out = new(string)
|
||||
**out = **in
|
||||
}
|
||||
if in.Store != nil {
|
||||
in, out := &in.Store, &out.Store
|
||||
*out = new(StoreSpec)
|
||||
(*in).DeepCopyInto(*out)
|
||||
}
|
||||
if in.Resources != nil {
|
||||
in, out := &in.Resources, &out.Resources
|
||||
*out = new(v1.ResourceRequirements)
|
||||
(*in).DeepCopyInto(*out)
|
||||
}
|
||||
if in.FullSnapshotSchedule != nil {
|
||||
in, out := &in.FullSnapshotSchedule, &out.FullSnapshotSchedule
|
||||
*out = new(string)
|
||||
**out = **in
|
||||
}
|
||||
if in.GarbageCollectionPolicy != nil {
|
||||
in, out := &in.GarbageCollectionPolicy, &out.GarbageCollectionPolicy
|
||||
*out = new(GarbageCollectionPolicy)
|
||||
**out = **in
|
||||
}
|
||||
if in.GarbageCollectionPeriod != nil {
|
||||
in, out := &in.GarbageCollectionPeriod, &out.GarbageCollectionPeriod
|
||||
*out = new(metav1.Duration)
|
||||
**out = **in
|
||||
}
|
||||
if in.DeltaSnapshotPeriod != nil {
|
||||
in, out := &in.DeltaSnapshotPeriod, &out.DeltaSnapshotPeriod
|
||||
*out = new(metav1.Duration)
|
||||
**out = **in
|
||||
}
|
||||
if in.DeltaSnapshotMemoryLimit != nil {
|
||||
in, out := &in.DeltaSnapshotMemoryLimit, &out.DeltaSnapshotMemoryLimit
|
||||
x := (*in).DeepCopy()
|
||||
*out = &x
|
||||
}
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BackupSpec.
|
||||
func (in *BackupSpec) DeepCopy() *BackupSpec {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(BackupSpec)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *Condition) DeepCopyInto(out *Condition) {
|
||||
*out = *in
|
||||
in.LastTransitionTime.DeepCopyInto(&out.LastTransitionTime)
|
||||
in.LastUpdateTime.DeepCopyInto(&out.LastUpdateTime)
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Condition.
|
||||
func (in *Condition) DeepCopy() *Condition {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(Condition)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *CrossVersionObjectReference) DeepCopyInto(out *CrossVersionObjectReference) {
|
||||
*out = *in
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CrossVersionObjectReference.
|
||||
func (in *CrossVersionObjectReference) DeepCopy() *CrossVersionObjectReference {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(CrossVersionObjectReference)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *Etcd) DeepCopyInto(out *Etcd) {
|
||||
*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 Etcd.
|
||||
func (in *Etcd) DeepCopy() *Etcd {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(Etcd)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
|
||||
func (in *Etcd) 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 *EtcdConfig) DeepCopyInto(out *EtcdConfig) {
|
||||
*out = *in
|
||||
if in.Quota != nil {
|
||||
in, out := &in.Quota, &out.Quota
|
||||
x := (*in).DeepCopy()
|
||||
*out = &x
|
||||
}
|
||||
if in.DefragmentationSchedule != nil {
|
||||
in, out := &in.DefragmentationSchedule, &out.DefragmentationSchedule
|
||||
*out = new(string)
|
||||
**out = **in
|
||||
}
|
||||
if in.ServerPort != nil {
|
||||
in, out := &in.ServerPort, &out.ServerPort
|
||||
*out = new(int)
|
||||
**out = **in
|
||||
}
|
||||
if in.ClientPort != nil {
|
||||
in, out := &in.ClientPort, &out.ClientPort
|
||||
*out = new(int)
|
||||
**out = **in
|
||||
}
|
||||
if in.Image != nil {
|
||||
in, out := &in.Image, &out.Image
|
||||
*out = new(string)
|
||||
**out = **in
|
||||
}
|
||||
if in.AuthSecretRef != nil {
|
||||
in, out := &in.AuthSecretRef, &out.AuthSecretRef
|
||||
*out = new(v1.SecretReference)
|
||||
**out = **in
|
||||
}
|
||||
if in.Resources != nil {
|
||||
in, out := &in.Resources, &out.Resources
|
||||
*out = new(v1.ResourceRequirements)
|
||||
(*in).DeepCopyInto(*out)
|
||||
}
|
||||
if in.TLS != nil {
|
||||
in, out := &in.TLS, &out.TLS
|
||||
*out = new(TLSConfig)
|
||||
**out = **in
|
||||
}
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EtcdConfig.
|
||||
func (in *EtcdConfig) DeepCopy() *EtcdConfig {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(EtcdConfig)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *EtcdList) DeepCopyInto(out *EtcdList) {
|
||||
*out = *in
|
||||
out.TypeMeta = in.TypeMeta
|
||||
in.ListMeta.DeepCopyInto(&out.ListMeta)
|
||||
if in.Items != nil {
|
||||
in, out := &in.Items, &out.Items
|
||||
*out = make([]Etcd, len(*in))
|
||||
for i := range *in {
|
||||
(*in)[i].DeepCopyInto(&(*out)[i])
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EtcdList.
|
||||
func (in *EtcdList) DeepCopy() *EtcdList {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(EtcdList)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
|
||||
func (in *EtcdList) 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 *EtcdSpec) DeepCopyInto(out *EtcdSpec) {
|
||||
*out = *in
|
||||
if in.Selector != nil {
|
||||
in, out := &in.Selector, &out.Selector
|
||||
*out = new(metav1.LabelSelector)
|
||||
(*in).DeepCopyInto(*out)
|
||||
}
|
||||
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
|
||||
}
|
||||
}
|
||||
in.Etcd.DeepCopyInto(&out.Etcd)
|
||||
in.Backup.DeepCopyInto(&out.Backup)
|
||||
if in.PriorityClassName != nil {
|
||||
in, out := &in.PriorityClassName, &out.PriorityClassName
|
||||
*out = new(string)
|
||||
**out = **in
|
||||
}
|
||||
if in.StorageClass != nil {
|
||||
in, out := &in.StorageClass, &out.StorageClass
|
||||
*out = new(string)
|
||||
**out = **in
|
||||
}
|
||||
if in.StorageCapacity != nil {
|
||||
in, out := &in.StorageCapacity, &out.StorageCapacity
|
||||
x := (*in).DeepCopy()
|
||||
*out = &x
|
||||
}
|
||||
if in.VolumeClaimTemplate != nil {
|
||||
in, out := &in.VolumeClaimTemplate, &out.VolumeClaimTemplate
|
||||
*out = new(string)
|
||||
**out = **in
|
||||
}
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EtcdSpec.
|
||||
func (in *EtcdSpec) DeepCopy() *EtcdSpec {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(EtcdSpec)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *EtcdStatus) DeepCopyInto(out *EtcdStatus) {
|
||||
*out = *in
|
||||
if in.ObservedGeneration != nil {
|
||||
in, out := &in.ObservedGeneration, &out.ObservedGeneration
|
||||
*out = new(int64)
|
||||
**out = **in
|
||||
}
|
||||
out.Etcd = in.Etcd
|
||||
if in.Conditions != nil {
|
||||
in, out := &in.Conditions, &out.Conditions
|
||||
*out = make([]Condition, len(*in))
|
||||
for i := range *in {
|
||||
(*in)[i].DeepCopyInto(&(*out)[i])
|
||||
}
|
||||
}
|
||||
if in.ServiceName != nil {
|
||||
in, out := &in.ServiceName, &out.ServiceName
|
||||
*out = new(string)
|
||||
**out = **in
|
||||
}
|
||||
if in.LastError != nil {
|
||||
in, out := &in.LastError, &out.LastError
|
||||
*out = new(string)
|
||||
**out = **in
|
||||
}
|
||||
if in.Ready != nil {
|
||||
in, out := &in.Ready, &out.Ready
|
||||
*out = new(bool)
|
||||
**out = **in
|
||||
}
|
||||
if in.LabelSelector != nil {
|
||||
in, out := &in.LabelSelector, &out.LabelSelector
|
||||
*out = new(metav1.LabelSelector)
|
||||
(*in).DeepCopyInto(*out)
|
||||
}
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EtcdStatus.
|
||||
func (in *EtcdStatus) DeepCopy() *EtcdStatus {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(EtcdStatus)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *LastOperation) DeepCopyInto(out *LastOperation) {
|
||||
*out = *in
|
||||
in.LastUpdateTime.DeepCopyInto(&out.LastUpdateTime)
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LastOperation.
|
||||
func (in *LastOperation) DeepCopy() *LastOperation {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(LastOperation)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *StoreSpec) DeepCopyInto(out *StoreSpec) {
|
||||
*out = *in
|
||||
if in.Container != nil {
|
||||
in, out := &in.Container, &out.Container
|
||||
*out = new(string)
|
||||
**out = **in
|
||||
}
|
||||
if in.Provider != nil {
|
||||
in, out := &in.Provider, &out.Provider
|
||||
*out = new(StorageProvider)
|
||||
**out = **in
|
||||
}
|
||||
if in.SecretRef != nil {
|
||||
in, out := &in.SecretRef, &out.SecretRef
|
||||
*out = new(v1.SecretReference)
|
||||
**out = **in
|
||||
}
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StoreSpec.
|
||||
func (in *StoreSpec) DeepCopy() *StoreSpec {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(StoreSpec)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *TLSConfig) DeepCopyInto(out *TLSConfig) {
|
||||
*out = *in
|
||||
out.ServerTLSSecretRef = in.ServerTLSSecretRef
|
||||
out.ClientTLSSecretRef = in.ClientTLSSecretRef
|
||||
out.TLSCASecretRef = in.TLSCASecretRef
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TLSConfig.
|
||||
func (in *TLSConfig) DeepCopy() *TLSConfig {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(TLSConfig)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
Reference in New Issue
Block a user