|
1 | 1 | package v1alpha1 |
2 | 2 |
|
3 | 3 | import ( |
4 | | - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" |
| 4 | + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" |
5 | 5 | ) |
6 | 6 |
|
7 | 7 | // +genclient |
8 | 8 | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object |
9 | 9 |
|
10 | 10 | type GKECluster struct { |
11 | | - metav1.TypeMeta `json:",inline"` |
12 | | - metav1.ObjectMeta `json:"metadata,omitempty"` |
| 11 | + metav1.TypeMeta `json:",inline"` |
| 12 | + metav1.ObjectMeta `json:"metadata,omitempty"` |
13 | 13 |
|
14 | | - Spec GKEClusterSpec `json:"spec"` |
15 | | - Status GKEClusterStatus `json:"status"` |
| 14 | + Spec GKEClusterSpec `json:"spec"` |
| 15 | + Status GKEClusterStatus `json:"status"` |
16 | 16 | } |
17 | 17 |
|
18 | 18 | type GKEClusterSpec struct { |
19 | | - DiskSize int32 `json:"diskSize,omitempty"` |
20 | | - MachineType string `json:"machineType,omitempty"` |
21 | | - EnableNetworkPolicy bool `json:"enableNetworkPolicy,omitempty"` |
22 | | - DisableLegacyAuthorization bool `json:"disableLegacyAuthorization,omitempty"` |
23 | | - EnablePodSecurityPolicy bool `json:"enablePodSecurityPolicy,omitempty"` |
24 | | - NumNodes int32 `json:"numNodes,omitempty"` |
25 | | - Preemptible bool `json:"preemptible,omitempty"` |
26 | | - EnableAutoscaling bool `json:"enableAutoscaling,omitempty"` |
27 | | - MaxNodes int32 `json:"maxNodes,omitempty"` |
28 | | - MinNodes int32 `json:"minNodes,omitempty"` |
29 | | - ClusterVersion string `json:"clusterVersion,omitempty"` |
30 | | - Zone string `json:"zone"` |
31 | | - ServiceCidr string `json:"serviceCidr,omitempty"` |
32 | | - ClusterCidr string `json:"clusterCidr,omitempty"` |
33 | | - EnableManagedPrometheus bool `json:"enableManagedPrometheus,omitempty"` |
| 19 | + DiskSize int32 `json:"diskSize,omitempty"` |
| 20 | + MachineType string `json:"machineType,omitempty"` |
| 21 | + EnableNetworkPolicy bool `json:"enableNetworkPolicy,omitempty"` |
| 22 | + StackType string `json:"stackType,omitempty"` |
| 23 | + DisableLegacyAuthorization bool `json:"disableLegacyAuthorization,omitempty"` |
| 24 | + EnablePodSecurityPolicy bool `json:"enablePodSecurityPolicy,omitempty"` |
| 25 | + NumNodes int32 `json:"numNodes,omitempty"` |
| 26 | + Preemptible bool `json:"preemptible,omitempty"` |
| 27 | + EnableAutoscaling bool `json:"enableAutoscaling,omitempty"` |
| 28 | + MaxNodes int32 `json:"maxNodes,omitempty"` |
| 29 | + MinNodes int32 `json:"minNodes,omitempty"` |
| 30 | + ClusterVersion string `json:"clusterVersion,omitempty"` |
| 31 | + Zone string `json:"zone"` |
| 32 | + ServiceCidr string `json:"serviceCidr,omitempty"` |
| 33 | + ClusterCidr string `json:"clusterCidr,omitempty"` |
| 34 | + EnableManagedPrometheus bool `json:"enableManagedPrometheus,omitempty"` |
34 | 35 | } |
35 | 36 |
|
36 | 37 | type GKEClusterStatus struct { |
37 | | - Status string `json:"status,omitempty"` |
38 | | - Message string `json:"message,omitempty"` |
39 | | - ClusterName string `json:"clusterName,omitempty"` |
40 | | - FirstCleanedAt string `json:"firstCleanedAt,omitempty"` |
| 38 | + Status string `json:"status,omitempty"` |
| 39 | + Message string `json:"message,omitempty"` |
| 40 | + ClusterName string `json:"clusterName,omitempty"` |
| 41 | + FirstCleanedAt string `json:"firstCleanedAt,omitempty"` |
41 | 42 | } |
42 | 43 |
|
43 | 44 | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object |
44 | 45 | type GKEClusterList struct { |
45 | | - metav1.TypeMeta `json:",inline"` |
46 | | - metav1.ListMeta `json:"metadata"` |
| 46 | + metav1.TypeMeta `json:",inline"` |
| 47 | + metav1.ListMeta `json:"metadata"` |
47 | 48 |
|
48 | | - Items []GKECluster `json:"items"` |
| 49 | + Items []GKECluster `json:"items"` |
49 | 50 | } |
0 commit comments