Documentation ¶
Index ¶
- Variables
- func ControlPlaneConfigMapName(cluster *v1alpha1.Cluster) string
- func CreateOrUpdateNetworkAPIServerIP(scope *Scope)
- func ListOptionsForCluster(clusterName string) metav1.ListOptions
- func MachineConfigFromProviderSpec(clusterClient client.MachineClassesGetter, ...) (*v1alpha1.AzureMachineProviderSpec, error)
- type AzureClients
- type MachineScope
- type MachineScopeGetter
- type MachineScopeGetterFunc
- type MachineScopeParams
- type Scope
- func (s *Scope) Close()
- func (s *Scope) Location() string
- func (s *Scope) Name() string
- func (s *Scope) Namespace() string
- func (s *Scope) Network() *v1alpha1.Network
- func (s *Scope) SecurityGroups() map[v1alpha1.SecurityGroupRole]*v1alpha1.SecurityGroup
- func (s *Scope) Subnets() v1alpha1.Subnets
- func (s *Scope) Vnet() *v1alpha1.VnetSpec
- type ScopeGetter
- type ScopeGetterFunc
- type ScopeParams
Constants ¶
This section is empty.
Variables ¶
var ( DefaultScopeGetter ScopeGetter = ScopeGetterFunc(NewScope) DefaultMachineScopeGetter MachineScopeGetter = MachineScopeGetterFunc(NewMachineScope) )
Functions ¶
func ControlPlaneConfigMapName ¶ added in v0.2.2
ControlPlaneConfigMapName returns the name of the ConfigMap used to coordinate the bootstrapping of control plane nodes.
func CreateOrUpdateNetworkAPIServerIP ¶
func CreateOrUpdateNetworkAPIServerIP(scope *Scope)
CreateOrUpdateNetworkAPIServerIP creates or updates public ip name and dns name
func ListOptionsForCluster ¶ added in v0.2.2
func ListOptionsForCluster(clusterName string) metav1.ListOptions
ListOptionsForCluster returns a ListOptions with a label selector for clusterName.
func MachineConfigFromProviderSpec ¶
func MachineConfigFromProviderSpec(clusterClient client.MachineClassesGetter, providerConfig clusterv1.ProviderSpec, log logr.Logger) (*v1alpha1.AzureMachineProviderSpec, error)
MachineConfigFromProviderSpec tries to decode the JSON-encoded spec, falling back on getting a MachineClass if the value is absent.
Types ¶
type AzureClients ¶
type AzureClients struct { SubscriptionID string Authorizer autorest.Authorizer }
AzureClients contains all the Azure clients used by the scopes.
type MachineScope ¶
type MachineScope struct { *Scope Machine *clusterv1.Machine MachineClient client.MachineInterface MachineConfig *v1alpha1.AzureMachineProviderSpec MachineStatus *v1alpha1.AzureMachineProviderStatus }
MachineScope defines a scope defined around a machine and its cluster.
func NewMachineScope ¶
func NewMachineScope(params MachineScopeParams) (*MachineScope, error)
NewMachineScope creates a new MachineScope from the supplied parameters. This is meant to be called for each machine actuator operation.
func (*MachineScope) Close ¶
func (m *MachineScope) Close()
Close the MachineScope by updating the machine spec, machine status.
func (*MachineScope) Location ¶
func (m *MachineScope) Location() string
Location returns the machine location.
func (*MachineScope) Namespace ¶
func (m *MachineScope) Namespace() string
Namespace returns the machine namespace.
func (*MachineScope) Role ¶
func (m *MachineScope) Role() string
Role returns the machine role from the labels.
type MachineScopeGetter ¶
type MachineScopeGetter interface {
GetMachineScope(params MachineScopeParams) (*MachineScope, error)
}
type MachineScopeGetterFunc ¶
type MachineScopeGetterFunc func(params MachineScopeParams) (*MachineScope, error)
func (MachineScopeGetterFunc) GetMachineScope ¶
func (f MachineScopeGetterFunc) GetMachineScope(params MachineScopeParams) (*MachineScope, error)
type MachineScopeParams ¶
type MachineScopeParams struct { AzureClients Cluster *clusterv1.Cluster Machine *clusterv1.Machine Client client.ClusterV1alpha1Interface Logger logr.Logger }
MachineScopeParams defines the input parameters used to create a new MachineScope.
type Scope ¶
type Scope struct { AzureClients Cluster *clusterv1.Cluster ClusterClient client.ClusterInterface ClusterConfig *v1alpha1.AzureClusterProviderSpec ClusterStatus *v1alpha1.AzureClusterProviderStatus Context context.Context logr.Logger }
Scope defines the basic context for an actuator to operate upon.
func NewScope ¶
func NewScope(params ScopeParams) (*Scope, error)
NewScope creates a new Scope from the supplied parameters. This is meant to be called for each different actuator iteration.
func (*Scope) Close ¶
func (s *Scope) Close()
Close closes the current scope persisting the cluster configuration and status.
func (*Scope) SecurityGroups ¶
func (s *Scope) SecurityGroups() map[v1alpha1.SecurityGroupRole]*v1alpha1.SecurityGroup
SecurityGroups returns the cluster security groups as a map, it creates the map if empty.
type ScopeGetter ¶
type ScopeGetter interface {
GetScope(params ScopeParams) (*Scope, error)
}
type ScopeGetterFunc ¶
type ScopeGetterFunc func(params ScopeParams) (*Scope, error)
func (ScopeGetterFunc) GetScope ¶
func (f ScopeGetterFunc) GetScope(params ScopeParams) (*Scope, error)
type ScopeParams ¶
type ScopeParams struct { AzureClients Cluster *clusterv1.Cluster Client client.ClusterV1alpha1Interface Logger logr.Logger }
ScopeParams defines the input parameters used to create a new Scope.