|
| 1 | +/* |
| 2 | +Copyright AppsCode Inc. and Contributors |
| 3 | +
|
| 4 | +Licensed under the AppsCode Community 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/AppsCode-Community-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 | +) |
| 22 | + |
| 23 | +const ( |
| 24 | + ResourceKindKubedbUiPresets = "KubedbUiPresets" |
| 25 | + ResourceKubedbUiPresets = "kubedbuipresets" |
| 26 | + ResourceKubedbUiPresetss = "kubedbuipresetss" |
| 27 | +) |
| 28 | + |
| 29 | +// KubedbUiPresets defines the schama for KubedbUiPresets Installer. |
| 30 | + |
| 31 | +// +genclient |
| 32 | +// +genclient:skipVerbs=updateStatus |
| 33 | +// +k8s:openapi-gen=true |
| 34 | +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object |
| 35 | + |
| 36 | +// +kubebuilder:object:root=true |
| 37 | +// +kubebuilder:resource:path=kubedbuipresetss,singular=kubedbuipresets,categories={kubeops,appscode} |
| 38 | +type KubedbUiPresets struct { |
| 39 | + metav1.TypeMeta `json:",inline,omitempty"` |
| 40 | + metav1.ObjectMeta `json:"metadata,omitempty"` |
| 41 | + Spec KubedbUiPresetsSpec `json:"spec,omitempty"` |
| 42 | +} |
| 43 | + |
| 44 | +type KubedbUiPresetsSpec struct { |
| 45 | + CAPI CapiPresetsSpec `json:"capi"` |
| 46 | +} |
| 47 | + |
| 48 | +type CapiPresetsSpec struct { |
| 49 | + // +optional |
| 50 | + Provider string `json:"provider"` |
| 51 | + Namespace string `json:"namespace"` |
| 52 | + ClusterName string `json:"clusterName"` |
| 53 | +} |
| 54 | + |
| 55 | +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object |
| 56 | + |
| 57 | +// KubedbUiPresetsList is a list of KubedbUiPresetss |
| 58 | +type KubedbUiPresetsList struct { |
| 59 | + metav1.TypeMeta `json:",inline"` |
| 60 | + metav1.ListMeta `json:"metadata,omitempty"` |
| 61 | + // Items is a list of KubedbUiPresets CRD objects |
| 62 | + Items []KubedbUiPresets `json:"items,omitempty"` |
| 63 | +} |
0 commit comments