v1beta1

package
v1.1.616 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 22, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

package v1beta1 contains API Schema definitions for the infrastructure v1beta1 API group +kubebuilder:object:generate=true +groupName=infrastructure.cluster.x-k8s.io

Index

Constants

View Source
const (
	// VMRunningCondition reports on current status of the AzureStackHCIVirtualMachine.
	VMRunningCondition clusterv1.ConditionType = "VMRunning"
	// VMUpdatingReason used when the vm updating is in progress.
	VMUpdatingReason = "VMUpdating"
	// VMProvisionFailedReason used for failures during vm provisioning.
	VMProvisionFailedReason = "VMProvisionFailed"
	// VMNotFoundReason used when the vm couldn't be retrieved.
	VMNotFoundReason = "VMNotFound"
	// OutOfMemoryReason used when the AzureStackHCI resource is out of memory.
	OutOfMemoryReason = "OutOfMemory"
	// OutOfCapacityReason used when the AzureStackHCI resource is out of capacity.
	OutOfCapacityReason = "OutOfCapacity"
	// OutOfNodeCapacityReason used when the AzureStackHCI node is out of capacity.
	OutOfNodeCapacityReason = "OutOfNodeCapacity"
)
View Source
const (
	// NetworkInfrastructureReadyCondition reports on current status of the AzureStackHCICluster
	NetworkInfrastructureReadyCondition clusterv1.ConditionType = "NetworkInfrastructureReady"
	// ClusterReconciliationFailedReason used for failures during cluster reconciliation.
	ClusterReconciliationFailedReason = "ClusterReconciliationFailed"
	// LoadBalancerProvisioningReason used for provisioning of lb
	LoadBalancerProvisioningReason = "LoadBalancerProvisioning"
	// LoadBalancerDeletingReason used when waiting on lbs to be deleted
	LoadBalancerDeletingReason = "LoadBalancerDeleting"
	// AzureStackHCIMachinesDeletingReason used when waiting on machines to be deleted
	AzureStackHCIMachinesDeletingReason = "AzureStackHCIMachineDeleting"
)
View Source
const (
	// LoadBalancerInfrastructureReadyCondition reports on current status of the AzureStackHCILoadBalancer
	LoadBalancerInfrastructureReadyCondition clusterv1.ConditionType = "LoadBalancerInfrastructureReady"
	// LoadBalancerServiceReconciliationFailedReason used for service failures during loadbalancer reconciliation.
	LoadBalancerServiceReconciliationFailedReason = "ServiceReconciliationFailed"
	// LoadBalancerServiceStatusFailedReason used for service status failures.
	LoadBalancerServiceStatusFailedReason = "ServiceStatusFailed"
	// LoadBalancerMachineReconciliationFailedReason used for machine failures during loadbalancer reconciliation.
	LoadBalancerMachineReconciliationFailedReason = "MachineReconciliationFailed"
	// LoadBalancerAddressUnavailableReason used when waiting for loadbalancer to have an address.
	LoadBalancerAddressUnavailableReason = "AddressUnavailable"
	// LoadBalancerNoReplicasReadyReason used when no replicas are in a ready state.
	LoadBalancerNoReplicasReadyReason = "NoReplicasReady"

	// LoadBalancerReplicasReadyCondition reports on current status of the AzureStackHCILoadBalancer machine replicas
	LoadBalancerReplicasReadyCondition clusterv1.ConditionType = "LoadBalancerReplicasReady"
	// LoadBalancerWaitingForReplicasReadyReason used when we are waiting for replicas to be ready.
	LoadBalancerWaitingForReplicasReadyReason = "WaitingForReplicasToBeReady"
	// LoadBalancerReplicasScalingUpReason used when we are scaling up the replicas.
	LoadBalancerReplicasScalingUpReason = "ScalingUp"
	// LoadBalancerReplicasScalingDownReason used when we are scaling down the replicas.
	LoadBalancerReplicasScalingDownReason = "ScalingDown"
	// LoadBalancerReplicasUpgradingReason used when we are upgrading the replicas.
	LoadBalancerReplicasUpgradingReason = "Upgrading"
	// LoadBalancerReplicasFailedReason used when we have failed replicas.
	LoadBalancerReplicasFailedReason = "FailedReplicas"
)
View Source
const (
	// AzureStackHCIClusterPhasePending is the first state a Cluster is assigned by
	// Cluster API Cluster controller after being created.
	AzureStackHCIClusterPhasePending = AzureStackHCIClusterPhase("pending")

	// AzureStackHCIClusterPhaseProvisioning is the state when the Cluster has a provider infrastructure
	// object associated and can start provisioning.
	AzureStackHCIClusterPhaseProvisioning = AzureStackHCIClusterPhase("provisioning")

	// AzureStackHCIClusterPhaseProvisioned is the state when its
	// infrastructure has been created and configured.
	AzureStackHCIClusterPhaseProvisioned = AzureStackHCIClusterPhase("provisioned")

	// AzureStackHCIClusterPhaseDeleting is the Cluster state when a delete
	// request has been sent to the API Server,
	// but its infrastructure has not yet been fully deleted.
	AzureStackHCIClusterPhaseDeleting = AzureStackHCIClusterPhase("deleting")

	// AzureStackHCIClusterPhaseFailed is the Cluster state when the system
	// might require user intervention.
	AzureStackHCIClusterPhaseFailed = AzureStackHCIClusterPhase("failed")

	// AzureStackHCIClusterPhaseUpgrading is the Cluster state when the system
	// is in the middle of a update.
	AzureStackHCIClusterPhaseUpgrading = AzureStackHCIClusterPhase("upgrading")

	// AzureStackHCIClusterPhaseUnknown is returned if the Cluster state cannot be determined.
	AzureStackHCIClusterPhaseUnknown = AzureStackHCIClusterPhase("")
)
View Source
const (
	// AzureStackHCILoadBalancerPhasePending is the first state a LoadBalancer is assigned by
	// the controller after being created.
	AzureStackHCILoadBalancerPhasePending = AzureStackHCILoadBalancerPhase("pending")

	// AzureStackHCILoadBalancerPhaseProvisioning is the state when the LoadBalancer is waiting for the
	// first replica to be ready.
	AzureStackHCILoadBalancerPhaseProvisioning = AzureStackHCILoadBalancerPhase("provisioning")

	// AzureStackHCILoadBalancerPhaseProvisioned is the state when its infrastructure has been created
	// and configured. All replicas are ready and we have the desired number of replicas.
	AzureStackHCILoadBalancerPhaseProvisioned = AzureStackHCILoadBalancerPhase("provisioned")

	// AzureStackHCILoadBalancerPhaseScaling is the state when replicas are being scaled.
	AzureStackHCILoadBalancerPhaseScaling = AzureStackHCILoadBalancerPhase("scaling")

	// AzureStackHCILoadBalancerPhaseUpgrading is the state when the system is in the middle of a update.
	AzureStackHCILoadBalancerPhaseUpgrading = AzureStackHCILoadBalancerPhase("upgrading")

	// AzureStackHCILoadBalancerPhaseDeleting is the state when a delete request has been sent to
	// the API Server, but its infrastructure has not yet been fully deleted.
	AzureStackHCILoadBalancerPhaseDeleting = AzureStackHCILoadBalancerPhase("deleting")

	// AzureStackHCILoadBalancerPhaseFailed is the state when the system might require user intervention.
	AzureStackHCILoadBalancerPhaseFailed = AzureStackHCILoadBalancerPhase("failed")

	// AzureStackHCILoadBalancerPhaseUnknown is returned if the state cannot be determined.
	AzureStackHCILoadBalancerPhaseUnknown = AzureStackHCILoadBalancerPhase("")
)
View Source
const (
	// ControlPlane machine label
	ControlPlane string = "control-plane"
	// Node machine label
	Node string = "node"
)
View Source
const (
	// OSVersionLabelName is the label set on resources to identify their os version
	OSVersionLabelName = "msft.microsoft/os-version"
	// LoadBalancerLabel is the label set on load balancer replica machines
	LoadBalancerLabel = "msft.microsoft/load-balancer"
)
View Source
const (
	// OSTypeLinux
	OSTypeLinux = OSType("Linux")
	// OSTypeWindows
	OSTypeWindows = OSType("Windows")
	// OSTypeWindows2022
	OSTypeWindows2022 = OSType("Windows2022")
)
View Source
const (
	AnnotationClusterInfrastructureReady = "azurestackhci.cluster.sigs.k8s.io/infrastructure-ready"
	ValueReady                           = "true"
	AnnotationControlPlaneReady          = "azurestackhci.cluster.sigs.k8s.io/control-plane-ready"
	AzureOperationIDAnnotationKey        = "management.azure.com/operationId"
	AzureCorrelationIDAnnotationKey      = "management.azure.com/correlationId"
)
View Source
const (
	// AzureStackHCILoadBalancerFinalizer allows ReconcileLoadBalancer to clean up the load balancer resources before removing it from the apiserver.
	AzureStackHCILoadBalancerFinalizer = "azurestackhciloadbalancer.infrastructure.cluster.x-k8s.io"
)
View Source
const (
	// ClusterFinalizer allows ReconcileAzureStackHCICluster to clean up Azure resources associated with AzureStackHCICluster before
	// removing it from the apiserver.
	ClusterFinalizer = "azurestackhcicluster.infrastructure.cluster.x-k8s.io"
)
View Source
const (
	// MachineFinalizer allows ReconcileAzureStackHCIMachine to clean up Azure resources associated with AzureStackHCIMachine before
	// removing it from the apiserver.
	MachineFinalizer = "azurestackhcimachine.infrastructure.cluster.x-k8s.io"
)
View Source
const (
	// VirtualMachineFinalizer allows ReconcileVirtualAzureStackHCIMachine to clean up AzureStackHCI resources associated with VirtualAzureStackHCIMachine before
	// removing it from the apiserver.
	VirtualMachineFinalizer = "azurestackhcivirtualmachine.infrastructure.cluster.x-k8s.io"
)

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "infrastructure.cluster.x-k8s.io", Version: "v1beta1"}

	// 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
)
View Source
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

func DecodeRawExtension

func DecodeRawExtension(in *runtime.RawExtension, out runtime.Object) error

DecodeRawExtension will decode a runtime.RawExtension into a specific runtime object based on the schema

Types

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 AzureStackHCICluster

type AzureStackHCICluster struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   AzureStackHCIClusterSpec   `json:"spec,omitempty"`
	Status AzureStackHCIClusterStatus `json:"status,omitempty"`
}

AzureStackHCICluster is the Schema for the azurestackhciclusters API

func (*AzureStackHCICluster) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AzureStackHCICluster.

func (*AzureStackHCICluster) DeepCopyInto

func (in *AzureStackHCICluster) DeepCopyInto(out *AzureStackHCICluster)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*AzureStackHCICluster) DeepCopyObject

func (in *AzureStackHCICluster) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*AzureStackHCICluster) GetConditions

func (c *AzureStackHCICluster) GetConditions() clusterv1.Conditions

GetConditions returns the list of conditions for AzureStackHCICluster.

func (*AzureStackHCICluster) Hub

func (*AzureStackHCICluster) Hub()

Hub marks AzureStackHCICluster as a conversion hub.

func (*AzureStackHCICluster) SetConditions

func (c *AzureStackHCICluster) SetConditions(conditions clusterv1.Conditions)

SetConditions sets the conditions for AzureStackHCICluster.

func (*AzureStackHCICluster) SetupWebhookWithManager

func (r *AzureStackHCICluster) SetupWebhookWithManager(mgr ctrl.Manager) error

type AzureStackHCIClusterList

type AzureStackHCIClusterList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []AzureStackHCICluster `json:"items"`
}

AzureStackHCIClusterList contains a list of AzureStackHCICluster

func (*AzureStackHCIClusterList) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AzureStackHCIClusterList.

func (*AzureStackHCIClusterList) DeepCopyInto

func (in *AzureStackHCIClusterList) DeepCopyInto(out *AzureStackHCIClusterList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*AzureStackHCIClusterList) DeepCopyObject

func (in *AzureStackHCIClusterList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*AzureStackHCIClusterList) Hub

func (*AzureStackHCIClusterList) Hub()

Hub marks AzureStackHCIClusterList as a conversion hub.

type AzureStackHCIClusterPhase

type AzureStackHCIClusterPhase string

type AzureStackHCIClusterSpec

type AzureStackHCIClusterSpec struct {
	// NetworkSpec encapsulates all things related to Azure network.
	NetworkSpec NetworkSpec `json:"networkSpec,omitempty"`

	ResourceGroup string `json:"resourceGroup"`

	Location string `json:"location"`

	// AzureStackHCILoadBalancer is used to declare the AzureStackHCILoadBalancerSpec if a LoadBalancer is desired for the AzureStackHCICluster.
	AzureStackHCILoadBalancer *AzureStackHCILoadBalancerSpec `json:"azureStackHCILoadBalancer,omitempty"`

	// ControlPlaneEndpoint represents the endpoint used to communicate with the control plane.
	// +optional
	ControlPlaneEndpoint clusterv1.APIEndpoint `json:"controlPlaneEndpoint"`

	// Version indicates the desired Kubernetes version of the cluster.
	Version *string `json:"version"`

	// Management is true when the cluster is a Management Cluster.
	Management bool `json:"management,omitempty"`
}

AzureStackHCIClusterSpec defines the desired state of AzureStackHCICluster

func (*AzureStackHCIClusterSpec) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AzureStackHCIClusterSpec.

func (*AzureStackHCIClusterSpec) DeepCopyInto

func (in *AzureStackHCIClusterSpec) DeepCopyInto(out *AzureStackHCIClusterSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type AzureStackHCIClusterStatus

type AzureStackHCIClusterStatus struct {
	Bastion VM `json:"bastion,omitempty"`

	// Ready is true when the provider resource is ready.
	// +optional
	Ready bool `json:"ready"`

	// Phase represents the current phase of cluster actuation.
	// E.g. Pending, Running, Terminating, Failed etc.
	// +optional
	Phase string `json:"phase,omitempty"`

	// Conditions defines current service state of the AzureStackHCICluster.
	// +optional
	Conditions clusterv1.Conditions `json:"conditions,omitempty"`
}

AzureStackHCIClusterStatus defines the observed state of AzureStackHCICluster

func (*AzureStackHCIClusterStatus) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AzureStackHCIClusterStatus.

func (*AzureStackHCIClusterStatus) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*AzureStackHCIClusterStatus) GetTypedPhase

GetTypedPhase attempts to parse the Phase field and return the typed AzureStackHCIClusterPhase representation as described in `types.go`.

func (*AzureStackHCIClusterStatus) SetTypedPhase

SetTypedPhase sets the Phase field to the string representation of AzureStackHCIClusterPhase.

type AzureStackHCILoadBalancer

type AzureStackHCILoadBalancer struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   AzureStackHCILoadBalancerSpec   `json:"spec,omitempty"`
	Status AzureStackHCILoadBalancerStatus `json:"status,omitempty"`
}

AzureStackHCILoadBalancer is the Schema for the azurestackhciloadbalancers API

func (*AzureStackHCILoadBalancer) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AzureStackHCILoadBalancer.

func (*AzureStackHCILoadBalancer) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*AzureStackHCILoadBalancer) DeepCopyObject

func (in *AzureStackHCILoadBalancer) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*AzureStackHCILoadBalancer) GetConditions

func (c *AzureStackHCILoadBalancer) GetConditions() clusterv1.Conditions

GetConditions returns the list of conditions for AzureStackHCILoadBalancer.

func (*AzureStackHCILoadBalancer) Hub

Hub marks AzureStackHCILoadBalancer as a conversion hub.

func (*AzureStackHCILoadBalancer) SetConditions

func (c *AzureStackHCILoadBalancer) SetConditions(conditions clusterv1.Conditions)

SetConditions sets the conditions for AzureStackHCILoadBalancer.

func (*AzureStackHCILoadBalancer) SetupWebhookWithManager

func (r *AzureStackHCILoadBalancer) SetupWebhookWithManager(mgr ctrl.Manager) error

type AzureStackHCILoadBalancerList

type AzureStackHCILoadBalancerList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []AzureStackHCILoadBalancer `json:"items"`
}

AzureStackHCILoadBalancerList contains a list of AzureStackHCILoadBalancers

func (*AzureStackHCILoadBalancerList) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AzureStackHCILoadBalancerList.

func (*AzureStackHCILoadBalancerList) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*AzureStackHCILoadBalancerList) DeepCopyObject

func (in *AzureStackHCILoadBalancerList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*AzureStackHCILoadBalancerList) Hub

Hub marks AzureStackHCILoadBalancerList as a conversion hub.

type AzureStackHCILoadBalancerPhase

type AzureStackHCILoadBalancerPhase string

type AzureStackHCILoadBalancerSpec

type AzureStackHCILoadBalancerSpec struct {
	SSHPublicKey string `json:"sshPublicKey"`
	Image        Image  `json:"image"`
	VMSize       string `json:"vmSize"`

	// +optional
	StorageContainer string `json:"storageContainer"`

	// Number of desired loadbalancer machines. Defaults to 1.
	// This is a pointer to distinguish between explicit zero and not specified.
	// +optional
	// +kubebuilder:default=1
	Replicas *int32 `json:"replicas,omitempty"`
}

func (*AzureStackHCILoadBalancerSpec) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AzureStackHCILoadBalancerSpec.

func (*AzureStackHCILoadBalancerSpec) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type AzureStackHCILoadBalancerStatus

type AzureStackHCILoadBalancerStatus struct {
	// +optional
	Ready bool `json:"ready,omitempty"`

	// Total number of non-terminated replicas for this loadbalancer
	// +optional
	Replicas int32 `json:"replicas,omitempty"`

	// Total number of ready (service connected) replicas for this loadbalancer
	// +optional
	ReadyReplicas int32 `json:"readyReplicas,omitempty"`

	// Total number of failed replicas for this loadbalancer.
	// +optional
	FailedReplicas int32 `json:"failedReplicas,omitempty"`

	// Address is the IP address of the load balancer.
	// +optional
	Address string `json:"address,omitempty"`

	// Port is the port of the azureStackHCIloadbalancers frontend.
	Port int32 `json:"port,omitempty"`

	// Phase represents the current phase of loadbalancer actuation.
	// E.g. Pending, Running, Terminating, Failed etc.
	// +optional
	Phase string `json:"phase,omitempty"`

	// Conditions defines current service state of the AzureStackHCILoadBalancer.
	// +optional
	Conditions clusterv1.Conditions `json:"conditions,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"`

	// Selector is the label selector in string format to avoid introspection
	// by clients, and is used to provide the CRD-based integration for the
	// scale subresource and additional integrations for things like kubectl
	// describe.. The string will be in the same format as the query-param syntax.
	// More info about label selectors: http://kubernetes.io/docs/user-guide/labels#label-selectors
	// +optional
	Selector string `json:"selector,omitempty"`
}

func (*AzureStackHCILoadBalancerStatus) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AzureStackHCILoadBalancerStatus.

func (*AzureStackHCILoadBalancerStatus) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*AzureStackHCILoadBalancerStatus) GetTypedPhase

GetTypedPhase attempts to parse the Phase field and return the typed AzureStackHCILoadBalancerPhase representation as described in `types.go`.

func (*AzureStackHCILoadBalancerStatus) SetTypedPhase

SetTypedPhase sets the Phase field to the string representation of AzureStackHCILoadBalancerPhase

type AzureStackHCIMachine

type AzureStackHCIMachine struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   AzureStackHCIMachineSpec   `json:"spec,omitempty"`
	Status AzureStackHCIMachineStatus `json:"status,omitempty"`
}

AzureStackHCIMachine is the Schema for the azurestackhcimachines API

func (*AzureStackHCIMachine) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AzureStackHCIMachine.

func (*AzureStackHCIMachine) DeepCopyInto

func (in *AzureStackHCIMachine) DeepCopyInto(out *AzureStackHCIMachine)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*AzureStackHCIMachine) DeepCopyObject

func (in *AzureStackHCIMachine) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*AzureStackHCIMachine) GetConditions

func (c *AzureStackHCIMachine) GetConditions() clusterv1.Conditions

func (*AzureStackHCIMachine) Hub

func (*AzureStackHCIMachine) Hub()

Hub marks AzureStackHCIMachine as a conversion hub.

func (*AzureStackHCIMachine) SetConditions

func (c *AzureStackHCIMachine) SetConditions(conditions clusterv1.Conditions)

func (*AzureStackHCIMachine) SetupWebhookWithManager

func (m *AzureStackHCIMachine) SetupWebhookWithManager(mgr ctrl.Manager) error

SetupWebhookWithManager will setup and register the webhook with the controller mnager

type AzureStackHCIMachineList

type AzureStackHCIMachineList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []AzureStackHCIMachine `json:"items"`
}

AzureStackHCIMachineList contains a list of AzureStackHCIMachine

func (*AzureStackHCIMachineList) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AzureStackHCIMachineList.

func (*AzureStackHCIMachineList) DeepCopyInto

func (in *AzureStackHCIMachineList) DeepCopyInto(out *AzureStackHCIMachineList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*AzureStackHCIMachineList) DeepCopyObject

func (in *AzureStackHCIMachineList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*AzureStackHCIMachineList) Hub

func (*AzureStackHCIMachineList) Hub()

Hub marks AzureStackHCIMachineList as a conversion hub.

type AzureStackHCIMachineProviderCondition

type AzureStackHCIMachineProviderCondition struct {
	// Type is the type of the condition.
	Type AzureStackHCIMachineProviderConditionType `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"`
}

AzureStackHCIMachineProviderCondition is a condition in a AzureStackHCIMachineProviderStatus

func (*AzureStackHCIMachineProviderCondition) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AzureStackHCIMachineProviderCondition.

func (*AzureStackHCIMachineProviderCondition) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type AzureStackHCIMachineProviderConditionType

type AzureStackHCIMachineProviderConditionType string

AzureStackHCIMachineProviderConditionType is a valid value for AzureStackHCIMachineProviderCondition.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 AzureStackHCIMachineProviderConditionType = "MachineCreated"
)

Valid conditions for an Azure machine instance

type AzureStackHCIMachineSpec

type AzureStackHCIMachineSpec 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,omitempty"`

	OSDisk OSDisk `json:"osDisk,omitempty"`

	Location string `json:"location"`

	SSHPublicKey string `json:"sshPublicKey"`

	// +optional
	StorageContainer string `json:"storageContainer"`

	// AllocatePublicIP allows the ability to create dynamic public ips for machines where this value is true.
	// +optional
	AllocatePublicIP bool `json:"allocatePublicIP,omitempty"`

	AdditionalSSHKeys []string `json:"additionalSSHKeys,omitempty"`

	// +optional
	NetworkInterfaces NetworkInterfaces `json:"networkInterfaces,omitempty"`
}

AzureStackHCIMachineSpec defines the desired state of AzureStackHCIMachine

func (*AzureStackHCIMachineSpec) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AzureStackHCIMachineSpec.

func (*AzureStackHCIMachineSpec) DeepCopyInto

func (in *AzureStackHCIMachineSpec) DeepCopyInto(out *AzureStackHCIMachineSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type AzureStackHCIMachineStatus

type AzureStackHCIMachineStatus 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"`

	// Conditions defines current service state of the AzureStackHCIMachine.
	// +optional
	Conditions clusterv1.Conditions `json:"conditions,omitempty"`

	// FailureReason 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
	FailureReason *errors.MachineStatusError `json:"failureReason,omitempty"`

	// FailureMessage 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
	FailureMessage *string `json:"failureMessage,omitempty"`
}

AzureStackHCIMachineStatus defines the observed state of AzureStackHCIMachine

func (*AzureStackHCIMachineStatus) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AzureStackHCIMachineStatus.

func (*AzureStackHCIMachineStatus) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type AzureStackHCIMachineTemplate

type AzureStackHCIMachineTemplate struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec AzureStackHCIMachineTemplateSpec `json:"spec,omitempty"`
}

AzureStackHCIMachineTemplate is the Schema for the azurestackhcimachinetemplates API

func (*AzureStackHCIMachineTemplate) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AzureStackHCIMachineTemplate.

func (*AzureStackHCIMachineTemplate) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*AzureStackHCIMachineTemplate) DeepCopyObject

func (in *AzureStackHCIMachineTemplate) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*AzureStackHCIMachineTemplate) Hub

Hub marks AzureStackHCIMachineTemplate as a conversion hub.

func (*AzureStackHCIMachineTemplate) SetupWebhookWithManager

func (r *AzureStackHCIMachineTemplate) SetupWebhookWithManager(mgr ctrl.Manager) error

type AzureStackHCIMachineTemplateList

type AzureStackHCIMachineTemplateList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []AzureStackHCIMachineTemplate `json:"items"`
}

AzureStackHCIMachineTemplateList contains a list of AzureStackHCIMachineTemplate

func (*AzureStackHCIMachineTemplateList) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AzureStackHCIMachineTemplateList.

func (*AzureStackHCIMachineTemplateList) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*AzureStackHCIMachineTemplateList) DeepCopyObject

func (in *AzureStackHCIMachineTemplateList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*AzureStackHCIMachineTemplateList) Hub

Hub marks AzureStackHCIMachineTemplateList as a conversion hub.

type AzureStackHCIMachineTemplateResource

type AzureStackHCIMachineTemplateResource struct {
	// Spec is the specification of the desired behavior of the machine.
	Spec AzureStackHCIMachineSpec `json:"spec"`
}

AzureStackHCIMachineTemplateResource describes the data needed to create an AzureStackHCIMachine from a template

func (*AzureStackHCIMachineTemplateResource) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AzureStackHCIMachineTemplateResource.

func (*AzureStackHCIMachineTemplateResource) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type AzureStackHCIMachineTemplateSpec

type AzureStackHCIMachineTemplateSpec struct {
	Template AzureStackHCIMachineTemplateResource `json:"template"`
}

AzureStackHCIMachineTemplateSpec defines the desired state of AzureStackHCIMachineTemplate

func (*AzureStackHCIMachineTemplateSpec) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AzureStackHCIMachineTemplateSpec.

func (*AzureStackHCIMachineTemplateSpec) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type AzureStackHCIResourceReference

type AzureStackHCIResourceReference struct {
	// ID of resource
	// +optional
	ID *string `json:"id,omitempty"`
}

AzureStackHCIResourceReference is a reference to a specific Azure resource by ID

func (*AzureStackHCIResourceReference) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AzureStackHCIResourceReference.

func (*AzureStackHCIResourceReference) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type AzureStackHCIVirtualMachine

type AzureStackHCIVirtualMachine struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   AzureStackHCIVirtualMachineSpec   `json:"spec,omitempty"`
	Status AzureStackHCIVirtualMachineStatus `json:"status,omitempty"`
}

AzureStackHCIVirtualMachine is the Schema for the azurestackhcivirtualmachines API

func (*AzureStackHCIVirtualMachine) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AzureStackHCIVirtualMachine.

func (*AzureStackHCIVirtualMachine) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*AzureStackHCIVirtualMachine) DeepCopyObject

func (in *AzureStackHCIVirtualMachine) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*AzureStackHCIVirtualMachine) GetConditions

GetConditions returns the list of conditions for the AzureStackHCIVirtualMachine.

func (*AzureStackHCIVirtualMachine) Hub

Hub marks AzureStackHCIVirtualMachine as a conversion hub.

func (*AzureStackHCIVirtualMachine) SetConditions

func (m *AzureStackHCIVirtualMachine) SetConditions(conditions clusterv1.Conditions)

SetConditions sets the conditions for the AzureStackHCIVirtualMachine.

func (*AzureStackHCIVirtualMachine) SetupWebhookWithManager

func (r *AzureStackHCIVirtualMachine) SetupWebhookWithManager(mgr ctrl.Manager) error

type AzureStackHCIVirtualMachineList

type AzureStackHCIVirtualMachineList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []AzureStackHCIVirtualMachine `json:"items"`
}

AzureStackHCIVirtualMachineList contains a list of AzureStackHCIVirtualMachine

func (*AzureStackHCIVirtualMachineList) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AzureStackHCIVirtualMachineList.

func (*AzureStackHCIVirtualMachineList) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*AzureStackHCIVirtualMachineList) DeepCopyObject

func (in *AzureStackHCIVirtualMachineList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*AzureStackHCIVirtualMachineList) Hub

Hub marks AzureStackHCIVirtualMachineList as a conversion hub.

type AzureStackHCIVirtualMachineSpec

type AzureStackHCIVirtualMachineSpec struct {
	VMSize           string           `json:"vmSize"`
	AvailabilityZone AvailabilityZone `json:"availabilityZone,omitempty"`
	Image            Image            `json:"image"`
	OSDisk           OSDisk           `json:"osDisk,omitempty"`
	BootstrapData    *string          `json:"bootstrapData,omitempty"`
	Identity         VMIdentity       `json:"identity,omitempty"`
	Location         string           `json:"location"` // does location belong here?
	SSHPublicKey     string           `json:"sshPublicKey"`

	// +optional
	StorageContainer string `json:"storageContainer"`

	// come from the cluster scope for machine and lb controller creation path
	ResourceGroup    string   `json:"resourceGroup"`
	VnetName         string   `json:"vnetName"`
	ClusterName      string   `json:"clusterName"`
	SubnetName       string   `json:"subnetName"`
	BackendPoolNames []string `json:"backendPoolNames,omitempty"`

	AdditionalSSHKeys []string `json:"additionalSSHKeys,omitempty"`

	// +optional
	NetworkInterfaces NetworkInterfaces `json:"networkInterfaces,omitempty"`
}

AzureStackHCIVirtualMachineSpec defines the desired state of AzureStackHCIVirtualMachine

func (*AzureStackHCIVirtualMachineSpec) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AzureStackHCIVirtualMachineSpec.

func (*AzureStackHCIVirtualMachineSpec) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type AzureStackHCIVirtualMachineStatus

type AzureStackHCIVirtualMachineStatus struct {
	// Ready is true when the provider resource is ready.
	// +optional
	Ready bool `json:"ready"`

	// Addresses contains the AzureStackHCI instance associated addresses.
	Addresses []v1core.NodeAddress `json:"addresses,omitempty"`

	// VMState is the provisioning state of the AzureStackHCI virtual machine.
	// +optional
	VMState *VMState `json:"vmState,omitempty"`

	// +optional
	FailureReason *errors.MachineStatusError `json:"failureReason,omitempty"`

	// +optional
	FailureMessage *string `json:"failureMessage,omitempty"`

	// Conditions defines current service state of the AzureStackHCIVirtualMachine.
	// +optional
	Conditions clusterv1.Conditions `json:"conditions,omitempty"`
}

AzureStackHCIVirtualMachineStatus defines the observed state of AzureStackHCIVirtualMachine

func (*AzureStackHCIVirtualMachineStatus) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AzureStackHCIVirtualMachineStatus.

func (*AzureStackHCIVirtualMachineStatus) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type IPAllocationMethod added in v1.1.11

type IPAllocationMethod int32
const (
	IPAllocationMethod_Invalid IPAllocationMethod = 0
	IPAllocationMethod_Dynamic IPAllocationMethod = 1
	IPAllocationMethod_Static  IPAllocationMethod = 2
)

nolint: golint

type Image

type Image struct {
	Publisher *string `json:"publisher,omitempty"`
	Offer     *string `json:"offer,omitempty"`
	SKU       *string `json:"sku,omitempty"`

	ID *string `json:"id,omitempty"`

	SubscriptionID *string `json:"subscriptionID,omitempty"`
	ResourceGroup  *string `json:"resourceGroup,omitempty"`
	Gallery        *string `json:"gallery,omitempty"`
	Name           *string `json:"name,omitempty"`

	Version *string `json:"version,omitempty"`
	OSType  OSType  `json:"osType"`
}

Image defines information about the image to use for VM creation. There are three ways to specify an image: by ID, by publisher, or by Shared Image Gallery. If specifying an image by ID, only the ID field needs to be set. If specifying an image by publisher, the Publisher, Offer, SKU, and Version fields must be set. If specifying an image from a Shared Image Gallery, the SubscriptionID, ResourceGroup, Gallery, Name, and Version fields must be set.

func (*Image) DeepCopy

func (in *Image) DeepCopy() *Image

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Image.

func (*Image) DeepCopyInto

func (in *Image) DeepCopyInto(out *Image)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type IpConfigurationSpec added in v1.1.11

type IpConfigurationSpec struct {
	Name string `json:"name,omitempty"`
	// +optional
	Primary bool `json:"primary,omitempty"`
	// +optional
	Allocation IPAllocationMethod `json:"allocation,omitempty"`
	// below fields are unused, but adding for completeness
	// +optional
	IpAddress string `json:"ipAddress,omitempty"`
	// +optional
	PrefixLength string `json:"prefixLength,omitempty"`
	// +optional
	SubnetId string `json:"subnetId,omitempty"`
	// +optional
	Gateway string `json:"gateway,omitempty"`
}

nolint: golint

func (*IpConfigurationSpec) DeepCopy added in v1.1.11

func (in *IpConfigurationSpec) DeepCopy() *IpConfigurationSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IpConfigurationSpec.

func (*IpConfigurationSpec) DeepCopyInto added in v1.1.11

func (in *IpConfigurationSpec) DeepCopyInto(out *IpConfigurationSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type IpConfigurations added in v1.1.11

type IpConfigurations []*IpConfigurationSpec

nolint: golint

func (IpConfigurations) DeepCopy added in v1.1.11

func (in IpConfigurations) DeepCopy() IpConfigurations

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IpConfigurations.

func (IpConfigurations) DeepCopyInto added in v1.1.11

func (in IpConfigurations) DeepCopyInto(out *IpConfigurations)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

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 NetworkInterfaceSpec added in v1.1.11

type NetworkInterfaceSpec struct {
	// +optional
	Name string `json:"name,omitempty"`
	// +optional
	IPConfigurations IpConfigurations `json:"ipConfigurations,omitempty"`
}

func (*NetworkInterfaceSpec) DeepCopy added in v1.1.11

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkInterfaceSpec.

func (*NetworkInterfaceSpec) DeepCopyInto added in v1.1.11

func (in *NetworkInterfaceSpec) DeepCopyInto(out *NetworkInterfaceSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type NetworkInterfaces added in v1.1.11

type NetworkInterfaces []*NetworkInterfaceSpec

func (NetworkInterfaces) DeepCopy added in v1.1.11

func (in NetworkInterfaces) DeepCopy() NetworkInterfaces

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkInterfaces.

func (NetworkInterfaces) DeepCopyInto added in v1.1.11

func (in NetworkInterfaces) DeepCopyInto(out *NetworkInterfaces)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type NetworkSpec

type NetworkSpec struct {
	// Vnet is the configuration for the Azure virtual network.
	// +optional
	Vnet VnetSpec `json:"vnet,omitempty"`

	// Subnets is the configuration for the control-plane subnet and the node subnet.
	// +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 {
	Name        string      `json:"name"`
	Source      string      `json:"source"`
	OSType      OSType      `json:"osType"`
	DiskSizeGB  int32       `json:"diskSizeGB"`
	ManagedDisk ManagedDisk `json:"managedDisk"`
}

func (*OSDisk) DeepCopy

func (in *OSDisk) DeepCopy() *OSDisk

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OSDisk.

func (*OSDisk) DeepCopyInto

func (in *OSDisk) DeepCopyInto(out *OSDisk)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type OSType

type OSType string

OSType describes the OS type of a disk.

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"`
}

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

func (in Subnets) DeepCopy() Subnets

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Subnets.

func (Subnets) DeepCopyInto

func (in Subnets) DeepCopyInto(out *Subnets)

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

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"`

	BootstrapData string `json:"bootstrapData,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

func (in *VM) DeepCopy() *VM

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VM.

func (*VM) DeepCopyInto

func (in *VM) DeepCopyInto(out *VM)

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 VMState

type VMState string

VMState describes the state of an Azure virtual machine.

type VirtualMachinesByCreationTimestamp

type VirtualMachinesByCreationTimestamp []*AzureStackHCIVirtualMachine

VirtualMachinesByCreationTimestamp sorts a list of AzureStackHCIVirtualMachine by creation timestamp, using their names as a tie breaker.

func (VirtualMachinesByCreationTimestamp) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualMachinesByCreationTimestamp.

func (VirtualMachinesByCreationTimestamp) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (VirtualMachinesByCreationTimestamp) Len

func (VirtualMachinesByCreationTimestamp) Less

func (VirtualMachinesByCreationTimestamp) Swap

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"`

	// Group is the resource group the vnet should use.
	Group string `json:"group,omitempty"`
}

VnetSpec configures an Azure virtual network.

func (*VnetSpec) DeepCopy

func (in *VnetSpec) DeepCopy() *VnetSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VnetSpec.

func (*VnetSpec) DeepCopyInto

func (in *VnetSpec) DeepCopyInto(out *VnetSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL