-
Notifications
You must be signed in to change notification settings - Fork 155
/
agent_pool_config.go
69 lines (53 loc) · 3.21 KB
/
agent_pool_config.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
// 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"
)
// AgentPoolConfig agent pool config
//
// swagger:model AgentPoolConfig
type AgentPoolConfig struct {
// EnableNodePublicIP - Some scenarios may require nodes in a node pool to receive their own dedicated public IP addresses. A common scenario is for gaming workloads, where a console needs to make a direct connection to a cloud virtual machine to minimize hops. For more information see [assigning a public IP per node](https://docs.microsoft.com/azure/aks/use-multiple-node-pools#assign-a-public-ip-per-node-for-your-node-pools). The default is false.
EnableNodePublicIP bool `json:"enableNodePublicIP,omitempty"`
// MaxPods - The maximum number of pods that can run on a node.
MaxPods int32 `json:"maxPods,omitempty"`
// MaxSurgeUpgradeSetting - This can either be set to an integer (e.g. '5') or a percentage (e.g. '50%'). If a percentage is specified, it is the percentage of the total agent pool size at the time of the upgrade. For percentages, fractional nodes are rounded up. If not specified, the default is 1. For more information, including best practices, see: https://docs.microsoft.com/azure/aks/upgrade-cluster#customize-node-surge-upgrade
MaxSurgeUpgradeSetting string `json:"maxSurge,omitempty"`
// OsDiskType - Possible values include: 'Managed', 'Ephemeral'
OsDiskType string `json:"osDiskType,omitempty"`
// OsType - Possible values include: 'Linux', 'Windows'. The default value is 'Linux'.
// Windows node pools are not supported on kubenet clusters
OsType string `json:"osType,omitempty"`
// PodSubnetID - If omitted, pod IPs are statically assigned on the node subnet (see vnetSubnetID for more details). This is of the form: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}
PodSubnetID string `json:"podSubnetID,omitempty"`
// VnetSubnetID - If this is not specified, a VNET and subnet will be generated and used. If no podSubnetID is specified, this applies to nodes and pods, otherwise it applies to just nodes. This is of the form: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}
VnetSubnetID string `json:"vnetSubnetID,omitempty"`
}
// Validate validates this agent pool config
func (m *AgentPoolConfig) Validate(formats strfmt.Registry) error {
return nil
}
// ContextValidate validates this agent pool config based on context it is used
func (m *AgentPoolConfig) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
return nil
}
// MarshalBinary interface implementation
func (m *AgentPoolConfig) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
return swag.WriteJSON(m)
}
// UnmarshalBinary interface implementation
func (m *AgentPoolConfig) UnmarshalBinary(b []byte) error {
var res AgentPoolConfig
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
*m = res
return nil
}