Documentation ¶
Overview ¶
Package v1alpha2 contains API Schema definitions for the infrastructure v1alpha2 API group +kubebuilder:object:generate=true +groupName=infrastructure.cluster.x-k8s.io
Index ¶
- Constants
- Variables
- type APIEndpoint
- type AvailabilityZone
- type AzureCluster
- type AzureClusterList
- type AzureClusterSpec
- type AzureClusterStatus
- type AzureMachine
- type AzureMachineList
- type AzureMachineProviderCondition
- type AzureMachineProviderConditionType
- type AzureMachineSpec
- type AzureMachineStatus
- type AzureMachineTemplate
- type AzureMachineTemplateList
- type AzureMachineTemplateResource
- type AzureMachineTemplateSpec
- type AzureResourceReference
- type BackendPool
- type FrontendIPConfig
- type Image
- type IngressRule
- type IngressRules
- type LoadBalancer
- type LoadBalancerHealthCheck
- type LoadBalancerListener
- type LoadBalancerProtocol
- type ManagedDisk
- type Network
- type NetworkSpec
- type OSDisk
- type PublicIP
- type SKU
- type SecurityGroup
- type SecurityGroupProtocol
- type SecurityGroupRole
- type SubnetSpec
- type Subnets
- type VM
- type VMIdentity
- type VMState
- type VnetSpec
Constants ¶
const ( // ControlPlane machine label ControlPlane string = "control-plane" // Node machine label Node string = "node" )
const ( AnnotationClusterInfrastructureReady = "azure.cluster.sigs.k8s.io/infrastructure-ready" ValueReady = "true" AnnotationControlPlaneReady = "azure.cluster.sigs.k8s.io/control-plane-ready" )
const ( // ClusterFinalizer allows ReconcileAzureCluster to clean up Azure resources associated with AzureCluster before // removing it from the apiserver. ClusterFinalizer = "azurecluster.infrastructure.cluster.x-k8s.io" )
const ( // MachineFinalizer allows ReconcileAzureMachine to clean up Azure resources associated with AzureMachine before // removing it from the apiserver. MachineFinalizer = "azuremachine.infrastructure.cluster.x-k8s.io" )
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "infrastructure.cluster.x-k8s.io", Version: "v1alpha2"} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion} // AddToScheme adds the types in this group-version to the given scheme. AddToScheme = SchemeBuilder.AddToScheme )
var ( // SecurityGroupBastion defines an SSH bastion role SecurityGroupBastion = SecurityGroupRole("bastion") // SecurityGroupNode defines a Kubernetes workload node role SecurityGroupNode = SecurityGroupRole(Node) // SecurityGroupControlPlane defines a Kubernetes control plane node role SecurityGroupControlPlane = SecurityGroupRole(ControlPlane) )
var ( // SecurityGroupProtocolAll is a wildcard for all IP protocols SecurityGroupProtocolAll = SecurityGroupProtocol("*") // SecurityGroupProtocolTCP represents the TCP protocol in ingress rules SecurityGroupProtocolTCP = SecurityGroupProtocol("Tcp") // SecurityGroupProtocolUDP represents the UDP protocol in ingress rules SecurityGroupProtocolUDP = SecurityGroupProtocol("Udp") )
var ( SKUBasic = SKU("Basic") SKUStandard = SKU("Standard") )
var ( // LoadBalancerProtocolTCP defines the LB API string representing the TCP protocol LoadBalancerProtocolTCP = LoadBalancerProtocol("TCP") // LoadBalancerProtocolSSL defines the LB API string representing the TLS protocol LoadBalancerProtocolSSL = LoadBalancerProtocol("SSL") // LoadBalancerProtocolHTTP defines the LB API string representing the HTTP protocol at L7 LoadBalancerProtocolHTTP = LoadBalancerProtocol("HTTP") // LoadBalancerProtocolHTTPS defines the LB API string representing the HTTP protocol at L7 LoadBalancerProtocolHTTPS = LoadBalancerProtocol("HTTPS") )
TODO
var ( // VMStateCreating ... VMStateCreating = VMState("Creating") // VMStateDeleting ... VMStateDeleting = VMState("Deleting") // VMStateFailed ... VMStateFailed = VMState("Failed") // VMStateMigrating ... VMStateMigrating = VMState("Migrating") // VMStateSucceeded ... VMStateSucceeded = VMState("Succeeded") // VMStateUpdating ... VMStateUpdating = VMState("Updating") )
Functions ¶
This section is empty.
Types ¶
type APIEndpoint ¶
type APIEndpoint struct { // The hostname on which the API server is serving. Host string `json:"host"` // The port on which the API server is serving. Port int `json:"port"` }
APIEndpoint represents a reachable Kubernetes API endpoint.
func (*APIEndpoint) DeepCopy ¶
func (in *APIEndpoint) DeepCopy() *APIEndpoint
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new APIEndpoint.
func (*APIEndpoint) DeepCopyInto ¶
func (in *APIEndpoint) DeepCopyInto(out *APIEndpoint)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AvailabilityZone ¶
type AvailabilityZone struct { ID *string `json:"id,omitempty"` Enabled *bool `json:"enabled,omitempty"` }
func (*AvailabilityZone) DeepCopy ¶
func (in *AvailabilityZone) DeepCopy() *AvailabilityZone
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AvailabilityZone.
func (*AvailabilityZone) DeepCopyInto ¶
func (in *AvailabilityZone) DeepCopyInto(out *AvailabilityZone)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AzureCluster ¶
type AzureCluster struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec AzureClusterSpec `json:"spec,omitempty"` Status AzureClusterStatus `json:"status,omitempty"` }
AzureCluster is the Schema for the azureclusters API
func (*AzureCluster) DeepCopy ¶
func (in *AzureCluster) DeepCopy() *AzureCluster
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AzureCluster.
func (*AzureCluster) DeepCopyInto ¶
func (in *AzureCluster) DeepCopyInto(out *AzureCluster)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*AzureCluster) DeepCopyObject ¶
func (in *AzureCluster) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type AzureClusterList ¶
type AzureClusterList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []AzureCluster `json:"items"` }
AzureClusterList contains a list of AzureCluster
func (*AzureClusterList) DeepCopy ¶
func (in *AzureClusterList) DeepCopy() *AzureClusterList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AzureClusterList.
func (*AzureClusterList) DeepCopyInto ¶
func (in *AzureClusterList) DeepCopyInto(out *AzureClusterList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*AzureClusterList) DeepCopyObject ¶
func (in *AzureClusterList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type AzureClusterSpec ¶
type AzureClusterSpec struct { // NetworkSpec encapsulates all things related to Azure network. NetworkSpec NetworkSpec `json:"networkSpec,omitempty"` ResourceGroup string `json:"resourceGroup"` Location string `json:"location"` }
AzureClusterSpec defines the desired state of AzureCluster
func (*AzureClusterSpec) DeepCopy ¶
func (in *AzureClusterSpec) DeepCopy() *AzureClusterSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AzureClusterSpec.
func (*AzureClusterSpec) DeepCopyInto ¶
func (in *AzureClusterSpec) DeepCopyInto(out *AzureClusterSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AzureClusterStatus ¶
type AzureClusterStatus struct { Network Network `json:"network,omitempty"` Bastion VM `json:"bastion,omitempty"` // Ready is true when the provider resource is ready. // +optional Ready bool `json:"ready"` // APIEndpoints represents the endpoints to communicate with the control plane. // +optional APIEndpoints []APIEndpoint `json:"apiEndpoints,omitempty"` }
AzureClusterStatus defines the observed state of AzureCluster
func (*AzureClusterStatus) DeepCopy ¶
func (in *AzureClusterStatus) DeepCopy() *AzureClusterStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AzureClusterStatus.
func (*AzureClusterStatus) DeepCopyInto ¶
func (in *AzureClusterStatus) DeepCopyInto(out *AzureClusterStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AzureMachine ¶
type AzureMachine struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec AzureMachineSpec `json:"spec,omitempty"` Status AzureMachineStatus `json:"status,omitempty"` }
AzureMachine is the Schema for the azuremachines API
func (*AzureMachine) DeepCopy ¶
func (in *AzureMachine) DeepCopy() *AzureMachine
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AzureMachine.
func (*AzureMachine) DeepCopyInto ¶
func (in *AzureMachine) DeepCopyInto(out *AzureMachine)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*AzureMachine) DeepCopyObject ¶
func (in *AzureMachine) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type AzureMachineList ¶
type AzureMachineList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []AzureMachine `json:"items"` }
AzureMachineList contains a list of AzureMachine
func (*AzureMachineList) DeepCopy ¶
func (in *AzureMachineList) DeepCopy() *AzureMachineList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AzureMachineList.
func (*AzureMachineList) DeepCopyInto ¶
func (in *AzureMachineList) DeepCopyInto(out *AzureMachineList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*AzureMachineList) DeepCopyObject ¶
func (in *AzureMachineList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type AzureMachineProviderCondition ¶
type AzureMachineProviderCondition struct { // Type is the type of the condition. Type AzureMachineProviderConditionType `json:"type"` // Status is the status of the condition. Status corev1.ConditionStatus `json:"status"` // LastProbeTime is the last time we probed the condition. // +optional LastProbeTime metav1.Time `json:"lastProbeTime"` // LastTransitionTime is the last time the condition transitioned from one status to another. // +optional LastTransitionTime metav1.Time `json:"lastTransitionTime"` // Reason is a unique, one-word, CamelCase reason for the condition's last transition. // +optional Reason string `json:"reason"` // Message is a human-readable message indicating details about last transition. // +optional Message string `json:"message"` }
AzureMachineProviderCondition is a condition in a AzureMachineProviderStatus
func (*AzureMachineProviderCondition) DeepCopy ¶
func (in *AzureMachineProviderCondition) DeepCopy() *AzureMachineProviderCondition
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AzureMachineProviderCondition.
func (*AzureMachineProviderCondition) DeepCopyInto ¶
func (in *AzureMachineProviderCondition) DeepCopyInto(out *AzureMachineProviderCondition)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AzureMachineProviderConditionType ¶
type AzureMachineProviderConditionType string
AzureMachineProviderConditionType is a valid value for AzureMachineProviderCondition.Type
const ( // MachineCreated indicates whether the machine has been created or not. If not, // it should include a reason and message for the failure. MachineCreated AzureMachineProviderConditionType = "MachineCreated" )
Valid conditions for an Azure machine instance
type AzureMachineSpec ¶
type AzureMachineSpec struct { // ProviderID is the unique identifier as specified by the cloud provider. // +optional ProviderID *string `json:"providerID,omitempty"` VMSize string `json:"vmSize"` AvailabilityZone AvailabilityZone `json:"availabilityZone,omitempty"` Image Image `json:"image"` OSDisk OSDisk `json:"osDisk"` Location string `json:"location"` SSHPublicKey string `json:"sshPublicKey"` }
AzureMachineSpec defines the desired state of AzureMachine
func (*AzureMachineSpec) DeepCopy ¶
func (in *AzureMachineSpec) DeepCopy() *AzureMachineSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AzureMachineSpec.
func (*AzureMachineSpec) DeepCopyInto ¶
func (in *AzureMachineSpec) DeepCopyInto(out *AzureMachineSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AzureMachineStatus ¶
type AzureMachineStatus struct { // Ready is true when the provider resource is ready. // +optional Ready bool `json:"ready"` // Addresses contains the Azure instance associated addresses. Addresses []v1.NodeAddress `json:"addresses,omitempty"` // VMState is the provisioning state of the Azure virtual machine. // +optional VMState *VMState `json:"vmState,omitempty"` // ErrorReason will be set in the event that there is a terminal problem // reconciling the Machine and will contain a succinct value suitable // for machine interpretation. // // This field should not be set for transitive errors that a controller // faces that are expected to be fixed automatically over // time (like service outages), but instead indicate that something is // fundamentally wrong with the Machine's spec or the configuration of // the controller, and that manual intervention is required. Examples // of terminal errors would be invalid combinations of settings in the // spec, values that are unsupported by the controller, or the // responsible controller itself being critically misconfigured. // // Any transient errors that occur during the reconciliation of Machines // can be added as events to the Machine object and/or logged in the // controller's output. // +optional ErrorReason *errors.MachineStatusError `json:"errorReason,omitempty"` // ErrorMessage will be set in the event that there is a terminal problem // reconciling the Machine and will contain a more verbose string suitable // for logging and human consumption. // // This field should not be set for transitive errors that a controller // faces that are expected to be fixed automatically over // time (like service outages), but instead indicate that something is // fundamentally wrong with the Machine's spec or the configuration of // the controller, and that manual intervention is required. Examples // of terminal errors would be invalid combinations of settings in the // spec, values that are unsupported by the controller, or the // responsible controller itself being critically misconfigured. // // Any transient errors that occur during the reconciliation of Machines // can be added as events to the Machine object and/or logged in the // controller's output. // +optional ErrorMessage *string `json:"errorMessage,omitempty"` }
AzureMachineStatus defines the observed state of AzureMachine
func (*AzureMachineStatus) DeepCopy ¶
func (in *AzureMachineStatus) DeepCopy() *AzureMachineStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AzureMachineStatus.
func (*AzureMachineStatus) DeepCopyInto ¶
func (in *AzureMachineStatus) DeepCopyInto(out *AzureMachineStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AzureMachineTemplate ¶
type AzureMachineTemplate struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec AzureMachineTemplateSpec `json:"spec,omitempty"` }
AzureMachineTemplate is the Schema for the azuremachinetemplates API
func (*AzureMachineTemplate) DeepCopy ¶
func (in *AzureMachineTemplate) DeepCopy() *AzureMachineTemplate
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AzureMachineTemplate.
func (*AzureMachineTemplate) DeepCopyInto ¶
func (in *AzureMachineTemplate) DeepCopyInto(out *AzureMachineTemplate)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*AzureMachineTemplate) DeepCopyObject ¶
func (in *AzureMachineTemplate) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type AzureMachineTemplateList ¶
type AzureMachineTemplateList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []AzureMachineTemplate `json:"items"` }
AzureMachineTemplateList contains a list of AzureMachineTemplate
func (*AzureMachineTemplateList) DeepCopy ¶
func (in *AzureMachineTemplateList) DeepCopy() *AzureMachineTemplateList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AzureMachineTemplateList.
func (*AzureMachineTemplateList) DeepCopyInto ¶
func (in *AzureMachineTemplateList) DeepCopyInto(out *AzureMachineTemplateList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*AzureMachineTemplateList) DeepCopyObject ¶
func (in *AzureMachineTemplateList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type AzureMachineTemplateResource ¶
type AzureMachineTemplateResource struct { // Spec is the specification of the desired behavior of the machine. Spec AzureMachineSpec `json:"spec"` }
AzureMachineTemplateResource describes the data needed to create am AzureMachine from a template
func (*AzureMachineTemplateResource) DeepCopy ¶
func (in *AzureMachineTemplateResource) DeepCopy() *AzureMachineTemplateResource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AzureMachineTemplateResource.
func (*AzureMachineTemplateResource) DeepCopyInto ¶
func (in *AzureMachineTemplateResource) DeepCopyInto(out *AzureMachineTemplateResource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AzureMachineTemplateSpec ¶
type AzureMachineTemplateSpec struct {
Template AzureMachineTemplateResource `json:"template"`
}
AzureMachineTemplateSpec defines the desired state of AzureMachineTemplate
func (*AzureMachineTemplateSpec) DeepCopy ¶
func (in *AzureMachineTemplateSpec) DeepCopy() *AzureMachineTemplateSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AzureMachineTemplateSpec.
func (*AzureMachineTemplateSpec) DeepCopyInto ¶
func (in *AzureMachineTemplateSpec) DeepCopyInto(out *AzureMachineTemplateSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AzureResourceReference ¶
type AzureResourceReference struct { // ID of resource // +optional ID *string `json:"id,omitempty"` }
AzureResourceReference is a reference to a specific Azure resource by ID
func (*AzureResourceReference) DeepCopy ¶
func (in *AzureResourceReference) DeepCopy() *AzureResourceReference
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AzureResourceReference.
func (*AzureResourceReference) DeepCopyInto ¶
func (in *AzureResourceReference) DeepCopyInto(out *AzureResourceReference)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type BackendPool ¶
func (*BackendPool) DeepCopy ¶
func (in *BackendPool) DeepCopy() *BackendPool
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BackendPool.
func (*BackendPool) DeepCopyInto ¶
func (in *BackendPool) DeepCopyInto(out *BackendPool)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type FrontendIPConfig ¶
type FrontendIPConfig struct { }
func (*FrontendIPConfig) DeepCopy ¶
func (in *FrontendIPConfig) DeepCopy() *FrontendIPConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FrontendIPConfig.
func (*FrontendIPConfig) DeepCopyInto ¶
func (in *FrontendIPConfig) DeepCopyInto(out *FrontendIPConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Image ¶
type Image struct { Publisher string `json:"publisher"` Offer string `json:"offer"` SKU string `json:"sku"` Version string `json:"version"` }
func (*Image) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Image.
func (*Image) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type IngressRule ¶
type IngressRule struct { Description string `json:"description"` Protocol SecurityGroupProtocol `json:"protocol"` // SourcePorts - The source port or range. Integer or range between 0 and 65535. Asterix '*' can also be used to match all ports. SourcePorts *string `json:"sourcePorts,omitempty"` // DestinationPorts - The destination port or range. Integer or range between 0 and 65535. Asterix '*' can also be used to match all ports. DestinationPorts *string `json:"destinationPorts,omitempty"` // Source - The CIDR or source IP range. Asterix '*' can also be used to match all source IPs. Default tags such as 'VirtualNetwork', 'AzureLoadBalancer' and 'Internet' can also be used. If this is an ingress rule, specifies where network traffic originates from. Source *string `json:"source,omitempty"` // Destination - The destination address prefix. CIDR or destination IP range. Asterix '*' can also be used to match all source IPs. Default tags such as 'VirtualNetwork', 'AzureLoadBalancer' and 'Internet' can also be used. Destination *string `json:"destination,omitempty"` }
TODO IngressRule defines an Azure ingress rule for security groups.
func (*IngressRule) DeepCopy ¶
func (in *IngressRule) DeepCopy() *IngressRule
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressRule.
func (*IngressRule) DeepCopyInto ¶
func (in *IngressRule) DeepCopyInto(out *IngressRule)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type IngressRules ¶
type IngressRules []*IngressRule
TODO IngressRules is a slice of Azure ingress rules for security groups.
func (IngressRules) DeepCopy ¶
func (in IngressRules) DeepCopy() IngressRules
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressRules.
func (IngressRules) DeepCopyInto ¶
func (in IngressRules) DeepCopyInto(out *IngressRules)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type LoadBalancer ¶
type LoadBalancer struct { ID string `json:"id,omitempty"` Name string `json:"name,omitempty"` SKU SKU `json:"sku,omitempty"` FrontendIPConfig FrontendIPConfig `json:"frontendIpConfig,omitempty"` BackendPool BackendPool `json:"backendPool,omitempty"` }
TODO LoadBalancer defines an Azure load balancer.
func (*LoadBalancer) DeepCopy ¶
func (in *LoadBalancer) DeepCopy() *LoadBalancer
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LoadBalancer.
func (*LoadBalancer) DeepCopyInto ¶
func (in *LoadBalancer) DeepCopyInto(out *LoadBalancer)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type LoadBalancerHealthCheck ¶
type LoadBalancerHealthCheck struct { Target string `json:"target"` Interval time.Duration `json:"interval"` Timeout time.Duration `json:"timeout"` HealthyThreshold int64 `json:"healthyThreshold"` UnhealthyThreshold int64 `json:"unhealthyThreshold"` }
TODO LoadBalancerHealthCheck defines an Azure load balancer health check.
func (*LoadBalancerHealthCheck) DeepCopy ¶
func (in *LoadBalancerHealthCheck) DeepCopy() *LoadBalancerHealthCheck
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LoadBalancerHealthCheck.
func (*LoadBalancerHealthCheck) DeepCopyInto ¶
func (in *LoadBalancerHealthCheck) DeepCopyInto(out *LoadBalancerHealthCheck)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type LoadBalancerListener ¶
type LoadBalancerListener struct { Protocol LoadBalancerProtocol `json:"protocol"` Port int64 `json:"port"` InstanceProtocol LoadBalancerProtocol `json:"instanceProtocol"` InstancePort int64 `json:"instancePort"` }
TODO LoadBalancerListener defines an Azure load balancer listener.
func (*LoadBalancerListener) DeepCopy ¶
func (in *LoadBalancerListener) DeepCopy() *LoadBalancerListener
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LoadBalancerListener.
func (*LoadBalancerListener) DeepCopyInto ¶
func (in *LoadBalancerListener) DeepCopyInto(out *LoadBalancerListener)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type LoadBalancerProtocol ¶
type LoadBalancerProtocol string
TODO LoadBalancerProtocol defines listener protocols for a load balancer.
type ManagedDisk ¶
type ManagedDisk struct {
StorageAccountType string `json:"storageAccountType"`
}
func (*ManagedDisk) DeepCopy ¶
func (in *ManagedDisk) DeepCopy() *ManagedDisk
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ManagedDisk.
func (*ManagedDisk) DeepCopyInto ¶
func (in *ManagedDisk) DeepCopyInto(out *ManagedDisk)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Network ¶
type Network struct { // SecurityGroups is a map from the role/kind of the security group to its unique name, if any. SecurityGroups map[SecurityGroupRole]SecurityGroup `json:"securityGroups,omitempty"` // APIServerLB is the Kubernetes API server load balancer. APIServerLB LoadBalancer `json:"apiServerLb,omitempty"` // APIServerIP is the Kubernetes API server public IP address. APIServerIP PublicIP `json:"apiServerIp,omitempty"` }
Network encapsulates Azure networking resources.
func (*Network) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Network.
func (*Network) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NetworkSpec ¶
type NetworkSpec struct { // Vnet configuration. // +optional Vnet VnetSpec `json:"vnet,omitempty"` // Subnets configuration. // +optional Subnets Subnets `json:"subnets,omitempty"` }
NetworkSpec encapsulates all things related to Azure network.
func (*NetworkSpec) DeepCopy ¶
func (in *NetworkSpec) DeepCopy() *NetworkSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkSpec.
func (*NetworkSpec) DeepCopyInto ¶
func (in *NetworkSpec) DeepCopyInto(out *NetworkSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type OSDisk ¶
type OSDisk struct { OSType string `json:"osType"` ManagedDisk ManagedDisk `json:"managedDisk"` DiskSizeGB int32 `json:"diskSizeGB"` }
func (*OSDisk) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OSDisk.
func (*OSDisk) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PublicIP ¶
type PublicIP struct { ID string `json:"id,omitempty"` Name string `json:"name,omitempty"` IPAddress string `json:"ipAddress,omitempty"` DNSName string `json:"dnsName,omitempty"` }
PublicIP defines an Azure public IP address. TODO: Remove once load balancer is implemented.
func (*PublicIP) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PublicIP.
func (*PublicIP) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SecurityGroup ¶
type SecurityGroup struct { ID string `json:"id"` Name string `json:"name"` IngressRules IngressRules `json:"ingressRule"` }
SecurityGroup defines an Azure security group.
func (*SecurityGroup) DeepCopy ¶
func (in *SecurityGroup) DeepCopy() *SecurityGroup
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecurityGroup.
func (*SecurityGroup) DeepCopyInto ¶
func (in *SecurityGroup) DeepCopyInto(out *SecurityGroup)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SecurityGroupProtocol ¶
type SecurityGroupProtocol string
SecurityGroupProtocol defines the protocol type for a security group rule.
type SecurityGroupRole ¶
type SecurityGroupRole string
SecurityGroupRole defines the unique role of a security group.
type SubnetSpec ¶
type SubnetSpec struct { // ID defines a unique identifier to reference this resource. ID string `json:"id,omitempty"` // Name defines a name for the subnet resource. Name string `json:"name"` // VnetID defines the ID of the virtual network this subnet should be built in. VnetID string `json:"vnetId"` // CidrBlock is the CIDR block to be used when the provider creates a managed Vnet. CidrBlock string `json:"cidrBlock,omitempty"` // SecurityGroup defines the NSG (network security group) that should be attached to this subnet. SecurityGroup SecurityGroup `json:"securityGroup"` }
SubnetSpec configures an Azure subnet.
func (*SubnetSpec) DeepCopy ¶
func (in *SubnetSpec) DeepCopy() *SubnetSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SubnetSpec.
func (*SubnetSpec) DeepCopyInto ¶
func (in *SubnetSpec) DeepCopyInto(out *SubnetSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Subnets ¶
type Subnets []*SubnetSpec
Subnets is a slice of Subnet.
func (Subnets) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Subnets.
func (Subnets) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (Subnets) ToMap ¶
func (s Subnets) ToMap() map[string]*SubnetSpec
TODO ToMap returns a map from id to subnet.
type VM ¶
type VM struct { ID string `json:"id,omitempty"` Name string `json:"name,omitempty"` AvailabilityZone string `json:"availabilityZone,omitempty"` // Hardware profile VMSize string `json:"vmSize,omitempty"` // Storage profile Image Image `json:"image,omitempty"` OSDisk OSDisk `json:"osDisk,omitempty"` StartupScript string `json:"startupScript,omitempty"` // State - The provisioning state, which only appears in the response. State VMState `json:"vmState,omitempty"` Identity VMIdentity `json:"identity,omitempty"` }
VM describes an Azure virtual machine.
func (*VM) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VM.
func (*VM) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type VMIdentity ¶
type VMIdentity string
VMIdentity defines the identity of the virtual machine, if configured.
type VnetSpec ¶
type VnetSpec struct { // ID is the identifier of the virtual network this provider should use to create resources. ID string `json:"id,omitempty"` // Name defines a name for the virtual network resource. Name string `json:"name"` // CidrBlock is the CIDR block to be used when the provider creates a managed virtual network. CidrBlock string `json:"cidrBlock,omitempty"` }
VnetSpec configures an Azure virtual network.
func (*VnetSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VnetSpec.
func (*VnetSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.