-
Notifications
You must be signed in to change notification settings - Fork 155
/
a_k_s_network_profile.go
74 lines (56 loc) · 3.13 KB
/
a_k_s_network_profile.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
71
72
73
74
// 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"
)
// AKSNetworkProfile AKS NetworkProfile profile of network configuration.
//
// swagger:model AKSNetworkProfile
type AKSNetworkProfile struct {
// DNSServiceIP - An IP address assigned to the Kubernetes DNS service. It must be within the Kubernetes service address range specified in serviceCidr.
DNSServiceIP string `json:"dnsServiceIP,omitempty"`
// DockerBridgeCidr - A CIDR notation IP range assigned to the Docker bridge network. It must not overlap with any Subnet IP ranges or the Kubernetes service address range.
DockerBridgeCidr string `json:"dockerBridgeCidr,omitempty"`
// LoadBalancerSku - The default is 'standard'. See [Azure Load Balancer SKUs](https://docs.microsoft.com/azure/load-balancer/skus) for more information about the differences between load balancer SKUs. Possible values include: 'LoadBalancerSkuStandard', 'LoadBalancerSkuBasic'
LoadBalancerSku string `json:"loadBalancerSku,omitempty"`
// NetworkMode - This cannot be specified if networkPlugin is anything other than 'azure'. Possible values include: 'Transparent', 'Bridge'
NetworkMode string `json:"networkMode,omitempty"`
// NetworkPlugin - Network plugin used for building the Kubernetes network. Possible values include: 'Azure', 'Kubenet'
NetworkPlugin string `json:"networkPlugin,omitempty"`
// NetworkPolicy - Network policy used for building the Kubernetes network. Possible values include: 'Calico', 'Azure'
NetworkPolicy string `json:"networkPolicy,omitempty"`
// OutboundType - This can only be set at cluster creation time and cannot be changed later. For more information see [egress outbound type](https://docs.microsoft.com/azure/aks/egress-outboundtype). Possible values include: 'OutboundTypeLoadBalancer', 'OutboundTypeUserDefinedRouting', 'OutboundTypeManagedNATGateway', 'OutboundTypeUserAssignedNATGateway'
OutboundType string `json:"outboundType,omitempty"`
// PodCidr - A CIDR notation IP range from which to assign pod IPs when kubenet is used.
PodCidr string `json:"podCidr,omitempty"`
// ServiceCidr - A CIDR notation IP range from which to assign service cluster IPs. It must not overlap with any Subnet IP ranges.
ServiceCidr string `json:"serviceCidr,omitempty"`
}
// Validate validates this a k s network profile
func (m *AKSNetworkProfile) Validate(formats strfmt.Registry) error {
return nil
}
// ContextValidate validates this a k s network profile based on context it is used
func (m *AKSNetworkProfile) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
return nil
}
// MarshalBinary interface implementation
func (m *AKSNetworkProfile) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
return swag.WriteJSON(m)
}
// UnmarshalBinary interface implementation
func (m *AKSNetworkProfile) UnmarshalBinary(b []byte) error {
var res AKSNetworkProfile
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
*m = res
return nil
}