-
Notifications
You must be signed in to change notification settings - Fork 155
/
e_k_s_kubernetes_network_config_response.go
70 lines (58 loc) · 2.66 KB
/
e_k_s_kubernetes_network_config_response.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
// Code generated by go-swagger; DO NOT EDIT.
package models
// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command
import (
"context"
"github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
)
// EKSKubernetesNetworkConfigResponse The Kubernetes network configuration for the cluster. The response contains
// a value for serviceIpv6Cidr or serviceIpv4Cidr, but not both.
//
// swagger:model EKSKubernetesNetworkConfigResponse
type EKSKubernetesNetworkConfigResponse struct {
// The IP family used to assign Kubernetes pod and service IP addresses. The
// IP family is always ipv4, unless you have a 1.21 or later cluster running
// version 1.10.1 or later of the Amazon VPC CNI add-on and specified ipv6 when
// you created the cluster.
IPFamily string `json:"ipFamily,omitempty"`
// The CIDR block that Kubernetes pod and service IP addresses are assigned
// from. Kubernetes assigns addresses from an IPv4 CIDR block assigned to a
// subnet that the node is in. If you didn't specify a CIDR block when you created
// the cluster, then Kubernetes assigns addresses from either the 10.100.0.0/16
// or 172.20.0.0/16 CIDR blocks. If this was specified, then it was specified
// when the cluster was created and it can't be changed.
ServiceIPV4Cidr string `json:"serviceIpv4Cidr,omitempty"`
// The CIDR block that Kubernetes pod and service IP addresses are assigned
// from if you created a 1.21 or later cluster with version 1.10.1 or later
// of the Amazon VPC CNI add-on and specified ipv6 for ipFamily when you created
// the cluster. Kubernetes assigns service addresses from the unique local address
// range (fc00::/7) because you can't specify a custom IPv6 CIDR block when
// you create the cluster.
ServiceIPV6Cidr string `json:"serviceIpv6Cidr,omitempty"`
}
// Validate validates this e k s kubernetes network config response
func (m *EKSKubernetesNetworkConfigResponse) Validate(formats strfmt.Registry) error {
return nil
}
// ContextValidate validates this e k s kubernetes network config response based on context it is used
func (m *EKSKubernetesNetworkConfigResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
return nil
}
// MarshalBinary interface implementation
func (m *EKSKubernetesNetworkConfigResponse) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
return swag.WriteJSON(m)
}
// UnmarshalBinary interface implementation
func (m *EKSKubernetesNetworkConfigResponse) UnmarshalBinary(b []byte) error {
var res EKSKubernetesNetworkConfigResponse
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
*m = res
return nil
}