@@ -29,13 +29,13 @@ type VpnGwSpec struct {
29
29
// INSERT ADDITIONAL SPEC FIELDS - desired state of cluster
30
30
// Important: Run "make" to regenerate code after modifying this file
31
31
32
+ // vpn gw static ip
33
+ Ip string `json:"ip"`
32
34
// pod subnet
33
35
// the vpn gw server pod running inside in this pod
34
36
// user can access all pod in this subnet via vpn gw
35
37
// if use subnet lb vip in this subnet, so no need svc cidr in this case
36
- Subnet string `json:"subnet"`
37
- // vpn gw static ip
38
- Ip string `json:"ip"`
38
+ Subnet string `json:"subnet"`
39
39
Replicas int32 `json:"replicas"`
40
40
// vpn gw pod node selector
41
41
Selector []string `json:"selector"`
@@ -62,16 +62,16 @@ type VpnGwSpec struct {
62
62
SslVpnImage string `json:"sslVpnImage"`
63
63
64
64
// vpn gw enable ipsec vpn
65
- EnableIpsecVpn bool `json:"EnableIpsecVpn "`
65
+ EnableIpsecVpn bool `json:"enableIpsecVpn "`
66
66
// ipsec use strongswan server
67
67
// all ipsec vpn spec start with ipsec
68
68
IpsecVpnImage string `json:"ipsecVpnImage"`
69
69
}
70
70
71
71
// VpnGwStatus defines the observed state of VpnGw
72
72
type VpnGwStatus struct {
73
- Subnet string `json:"subnet" patchStrategy:"merge"`
74
73
Ip string `json:"ip" patchStrategy:"merge"`
74
+ Subnet string `json:"subnet" patchStrategy:"merge"`
75
75
Replicas int32 `json:"replicas" patchStrategy:"merge"`
76
76
Selector []string `json:"selector" patchStrategy:"merge"`
77
77
Tolerations []corev1.Toleration `json:"tolerations" patchStrategy:"merge"`
0 commit comments