-
Notifications
You must be signed in to change notification settings - Fork 6
/
storage_types.go
37 lines (30 loc) · 978 Bytes
/
storage_types.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
package v1alpha1
import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
// +genclient
// +genclient:noStatus
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// +kubebuilder:resource:categories=common;giantswarm
// +kubebuilder:storageversion
// +k8s:openapi-gen=true
// StorageConfig used to provide storage for Giant Swarm API microservices. Deprecated.
type StorageConfig struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata"`
Spec StorageConfigSpec `json:"spec"`
}
// +k8s:openapi-gen=true
type StorageConfigSpec struct {
Storage StorageConfigSpecStorage `json:"storage"`
}
// +k8s:openapi-gen=true
type StorageConfigSpecStorage struct {
Data map[string]string `json:"data"`
}
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
type StorageConfigList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata"`
Items []StorageConfig `json:"items"`
}