|
| 1 | +/* |
| 2 | +Copyright AppsCode Inc. and Contributors |
| 3 | +
|
| 4 | +Licensed under the PolyForm Noncommercial License 1.0.0 (the "License"); |
| 5 | +you may not use this file except in compliance with the License. |
| 6 | +You may obtain a copy of the License at |
| 7 | +
|
| 8 | + https://github.com/appscode/licenses/raw/1.0.0/PolyForm-Noncommercial-1.0.0.md |
| 9 | +
|
| 10 | +Unless required by applicable law or agreed to in writing, software |
| 11 | +distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | +See the License for the specific language governing permissions and |
| 14 | +limitations under the License. |
| 15 | +*/ |
| 16 | + |
| 17 | +package v1alpha1 |
| 18 | + |
| 19 | +import ( |
| 20 | + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" |
| 21 | + api "x-helm.dev/apimachinery/apis/releases/v1alpha1" |
| 22 | +) |
| 23 | + |
| 24 | +// KubedbcomDocumentDBEditorOptions defines the schama for DocumentDB Editor UI Options. |
| 25 | + |
| 26 | +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object |
| 27 | + |
| 28 | +// +kubebuilder:object:root=true |
| 29 | +// +kubebuilder:resource:path=kubedbcomdocumentdbeditoroptionss,singular=kubedbcomdocumentdbeditoroptions |
| 30 | +type KubedbcomDocumentDBEditorOptions struct { |
| 31 | + metav1.TypeMeta `json:",inline,omitempty"` |
| 32 | + metav1.ObjectMeta `json:"metadata,omitempty"` |
| 33 | + Spec KubedbcomDocumentDBEditorOptionsSpec `json:"spec,omitempty"` |
| 34 | +} |
| 35 | + |
| 36 | +// KubedbcomDocumentDBEditorOptionsSpec is the schema for DocumentDB profile values file |
| 37 | +type KubedbcomDocumentDBEditorOptionsSpec struct { |
| 38 | + api.Metadata `json:"metadata,omitempty"` |
| 39 | + Spec KubedbcomDocumentDBEditorOptionsSpecSpec `json:"spec"` |
| 40 | +} |
| 41 | + |
| 42 | +type KubedbcomDocumentDBEditorOptionsSpecSpec struct { |
| 43 | + // +optional |
| 44 | + Annotations map[string]string `json:"annotations"` |
| 45 | + // +optional |
| 46 | + Labels map[string]string `json:"labels"` |
| 47 | + // +optional |
| 48 | + Replicas int `json:"replicas,omitempty"` |
| 49 | + Persistence Persistence `json:"persistence"` |
| 50 | + PodResources PodResources `json:"podResources"` |
| 51 | + AuthSecret AuthSecret `json:"authSecret"` |
| 52 | + DeletionPolicy DeletionPolicy `json:"deletionPolicy"` |
| 53 | + Configuration string `json:"configuration"` |
| 54 | + Admin AdminOptions `json:"admin"` |
| 55 | + Backup BackupToolSpec `json:"backup"` |
| 56 | + Monitoring MonitoringOperator `json:"monitoring"` |
| 57 | + // +optional |
| 58 | + Openshift Openshift `json:"openshift"` |
| 59 | +} |
| 60 | + |
| 61 | +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object |
| 62 | + |
| 63 | +// KubedbcomDocumentDBEditorOptionsList is a list of KubedbcomDocumentDBEditorOptionss |
| 64 | +type KubedbcomDocumentDBEditorOptionsList struct { |
| 65 | + metav1.TypeMeta `json:",inline"` |
| 66 | + metav1.ListMeta `json:"metadata,omitempty"` |
| 67 | + // Items is a list of KubedbcomDocumentDBEditorOptions CRD objects |
| 68 | + Items []KubedbcomDocumentDBEditorOptions `json:"items,omitempty"` |
| 69 | +} |
0 commit comments