mirror of
https://github.com/rancher/types.git
synced 2025-09-24 03:18:38 +00:00
Merge pull request #46 from StrongMonkey/add-more-fields
Add more fields
This commit is contained in:
@@ -103,6 +103,24 @@ type GoogleKubernetesEngineConfig struct {
|
||||
Credential string `json:"credential,omitempty"`
|
||||
// Enable alpha feature
|
||||
EnableAlphaFeature bool `json:"enableAlphaFeature,omitempty"`
|
||||
// Configuration for the HTTP (L7) load balancing controller addon
|
||||
HTTPLoadBalancing bool `json:"httpLoadBalancing,omitempty"`
|
||||
// Configuration for the horizontal pod autoscaling feature, which increases or decreases the number of replica pods a replication controller has based on the resource usage of the existing pods
|
||||
HorizontalPodAutoscaling bool `json:"horizontalPodAutoscaling,omitempty"`
|
||||
// Configuration for the Kubernetes Dashboard
|
||||
KubernetesDashboard bool `json:"kubernetesDashboard,omitempty"`
|
||||
// Configuration for NetworkPolicy
|
||||
NetworkPolicyConfig bool `json:"networkPolicyConfig,omitempty"`
|
||||
// The list of Google Compute Engine locations in which the cluster's nodes should be located
|
||||
Locations []string `json:"locations,omitempty"`
|
||||
// Image Type
|
||||
ImageType string `json:"imageType,omitempty"`
|
||||
// Network
|
||||
Network string `json:"network,omitempty"`
|
||||
// Sub Network
|
||||
SubNetwork string `json:"subNetwork,omitempty"`
|
||||
// Configuration for LegacyAbac
|
||||
LegacyAbac bool `json:"legacyAbac,omitempty"`
|
||||
}
|
||||
|
||||
type AzureKubernetesServiceConfig struct {
|
||||
|
@@ -589,6 +589,11 @@ func (in *GoogleKubernetesEngineConfig) DeepCopyInto(out *GoogleKubernetesEngine
|
||||
(*out)[key] = val
|
||||
}
|
||||
}
|
||||
if in.Locations != nil {
|
||||
in, out := &in.Locations, &out.Locations
|
||||
*out = make([]string, len(*in))
|
||||
copy(*out, *in)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
|
@@ -1,32 +1,50 @@
|
||||
package client
|
||||
|
||||
const (
|
||||
GoogleKubernetesEngineConfigType = "googleKubernetesEngineConfig"
|
||||
GoogleKubernetesEngineConfigFieldClusterIpv4Cidr = "clusterIpv4Cidr"
|
||||
GoogleKubernetesEngineConfigFieldCredential = "credential"
|
||||
GoogleKubernetesEngineConfigFieldDescription = "description"
|
||||
GoogleKubernetesEngineConfigFieldDiskSizeGb = "diskSizeGb"
|
||||
GoogleKubernetesEngineConfigFieldEnableAlphaFeature = "enableAlphaFeature"
|
||||
GoogleKubernetesEngineConfigFieldLabels = "labels"
|
||||
GoogleKubernetesEngineConfigFieldMachineType = "machineType"
|
||||
GoogleKubernetesEngineConfigFieldMasterVersion = "masterVersion"
|
||||
GoogleKubernetesEngineConfigFieldNodeCount = "nodeCount"
|
||||
GoogleKubernetesEngineConfigFieldNodeVersion = "nodeVersion"
|
||||
GoogleKubernetesEngineConfigFieldProjectID = "projectId"
|
||||
GoogleKubernetesEngineConfigFieldZone = "zone"
|
||||
GoogleKubernetesEngineConfigType = "googleKubernetesEngineConfig"
|
||||
GoogleKubernetesEngineConfigFieldClusterIpv4Cidr = "clusterIpv4Cidr"
|
||||
GoogleKubernetesEngineConfigFieldCredential = "credential"
|
||||
GoogleKubernetesEngineConfigFieldDescription = "description"
|
||||
GoogleKubernetesEngineConfigFieldDiskSizeGb = "diskSizeGb"
|
||||
GoogleKubernetesEngineConfigFieldEnableAlphaFeature = "enableAlphaFeature"
|
||||
GoogleKubernetesEngineConfigFieldHTTPLoadBalancing = "httpLoadBalancing"
|
||||
GoogleKubernetesEngineConfigFieldHorizontalPodAutoscaling = "horizontalPodAutoscaling"
|
||||
GoogleKubernetesEngineConfigFieldImageType = "imageType"
|
||||
GoogleKubernetesEngineConfigFieldKubernetesDashboard = "kubernetesDashboard"
|
||||
GoogleKubernetesEngineConfigFieldLabels = "labels"
|
||||
GoogleKubernetesEngineConfigFieldLegacyAbac = "legacyAbac"
|
||||
GoogleKubernetesEngineConfigFieldLocations = "locations"
|
||||
GoogleKubernetesEngineConfigFieldMachineType = "machineType"
|
||||
GoogleKubernetesEngineConfigFieldMasterVersion = "masterVersion"
|
||||
GoogleKubernetesEngineConfigFieldNetwork = "network"
|
||||
GoogleKubernetesEngineConfigFieldNetworkPolicyConfig = "networkPolicyConfig"
|
||||
GoogleKubernetesEngineConfigFieldNodeCount = "nodeCount"
|
||||
GoogleKubernetesEngineConfigFieldNodeVersion = "nodeVersion"
|
||||
GoogleKubernetesEngineConfigFieldProjectID = "projectId"
|
||||
GoogleKubernetesEngineConfigFieldSubNetwork = "subNetwork"
|
||||
GoogleKubernetesEngineConfigFieldZone = "zone"
|
||||
)
|
||||
|
||||
type GoogleKubernetesEngineConfig struct {
|
||||
ClusterIpv4Cidr string `json:"clusterIpv4Cidr,omitempty"`
|
||||
Credential string `json:"credential,omitempty"`
|
||||
Description string `json:"description,omitempty"`
|
||||
DiskSizeGb *int64 `json:"diskSizeGb,omitempty"`
|
||||
EnableAlphaFeature *bool `json:"enableAlphaFeature,omitempty"`
|
||||
Labels map[string]string `json:"labels,omitempty"`
|
||||
MachineType string `json:"machineType,omitempty"`
|
||||
MasterVersion string `json:"masterVersion,omitempty"`
|
||||
NodeCount *int64 `json:"nodeCount,omitempty"`
|
||||
NodeVersion string `json:"nodeVersion,omitempty"`
|
||||
ProjectID string `json:"projectId,omitempty"`
|
||||
Zone string `json:"zone,omitempty"`
|
||||
ClusterIpv4Cidr string `json:"clusterIpv4Cidr,omitempty"`
|
||||
Credential string `json:"credential,omitempty"`
|
||||
Description string `json:"description,omitempty"`
|
||||
DiskSizeGb *int64 `json:"diskSizeGb,omitempty"`
|
||||
EnableAlphaFeature *bool `json:"enableAlphaFeature,omitempty"`
|
||||
HTTPLoadBalancing *bool `json:"httpLoadBalancing,omitempty"`
|
||||
HorizontalPodAutoscaling *bool `json:"horizontalPodAutoscaling,omitempty"`
|
||||
ImageType string `json:"imageType,omitempty"`
|
||||
KubernetesDashboard *bool `json:"kubernetesDashboard,omitempty"`
|
||||
Labels map[string]string `json:"labels,omitempty"`
|
||||
LegacyAbac *bool `json:"legacyAbac,omitempty"`
|
||||
Locations []string `json:"locations,omitempty"`
|
||||
MachineType string `json:"machineType,omitempty"`
|
||||
MasterVersion string `json:"masterVersion,omitempty"`
|
||||
Network string `json:"network,omitempty"`
|
||||
NetworkPolicyConfig *bool `json:"networkPolicyConfig,omitempty"`
|
||||
NodeCount *int64 `json:"nodeCount,omitempty"`
|
||||
NodeVersion string `json:"nodeVersion,omitempty"`
|
||||
ProjectID string `json:"projectId,omitempty"`
|
||||
SubNetwork string `json:"subNetwork,omitempty"`
|
||||
Zone string `json:"zone,omitempty"`
|
||||
}
|
||||
|
Reference in New Issue
Block a user