azuremodel

package
v1.22.3 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APILoadBalancerModelBuilder

type APILoadBalancerModelBuilder struct {
	*AzureModelContext

	Lifecycle         fi.Lifecycle
	SecurityLifecycle fi.Lifecycle
}

APILoadBalancerModelBuilder builds a LoadBalancer for accessing the API

func (*APILoadBalancerModelBuilder) Build

Build builds tasks for creating a K8s API server for Azure.

type AzureModelContext

type AzureModelContext struct {
	*model.KopsModelContext
}

AzureModelContext is

func (*AzureModelContext) CloudTagsForInstanceGroup

func (c *AzureModelContext) CloudTagsForInstanceGroup(ig *kops.InstanceGroup) map[string]*string

CloudTagsForInstanceGroup computes the tags to apply to instances in the specified InstanceGroup Mostly copied from pkg/model/context.go, but "/" in tag keys are replaced with "_" as Azure doesn't allow "/" in tag keys.

func (*AzureModelContext) LinkToAzureSubnet

func (c *AzureModelContext) LinkToAzureSubnet(spec *kops.ClusterSubnetSpec) *azuretasks.Subnet

LinkToAzureSubnet returns the Azure Subnet object the cluster is located in.

func (*AzureModelContext) LinkToLoadBalancer

func (c *AzureModelContext) LinkToLoadBalancer() *azuretasks.LoadBalancer

LinkToLoadBalancer returns the Load Balancer object for the cluster.

func (*AzureModelContext) LinkToResourceGroup

func (c *AzureModelContext) LinkToResourceGroup() *azuretasks.ResourceGroup

LinkToResourceGroup returns the Resource Group object the cluster is located in.

func (*AzureModelContext) LinkToVirtualNetwork

func (c *AzureModelContext) LinkToVirtualNetwork() *azuretasks.VirtualNetwork

LinkToVirtualNetwork returns the Azure Virtual Network object the cluster is located in.

func (*AzureModelContext) NameForLoadBalancer

func (c *AzureModelContext) NameForLoadBalancer() string

NameForLoadBalancer returns the name of the Load Balancer object for the cluster.

func (*AzureModelContext) NameForResourceGroup

func (c *AzureModelContext) NameForResourceGroup() string

NameForResourceGroup returns the name of the Resource Group object the cluster is located in.

func (*AzureModelContext) NameForRouteTable

func (c *AzureModelContext) NameForRouteTable() string

NameForRouteTable returns the name of the Route Table object for the cluster.

func (*AzureModelContext) NameForVirtualNetwork

func (c *AzureModelContext) NameForVirtualNetwork() string

NameForVirtualNetwork returns the name of the Azure Virtual Network object the cluster is located in.

type NetworkModelBuilder

type NetworkModelBuilder struct {
	*AzureModelContext
	Lifecycle fi.Lifecycle
}

NetworkModelBuilder configures a Virtual Network and subnets.

func (*NetworkModelBuilder) Build

Build builds tasks for creating a virtual network and subnets.

type ResourceGroupModelBuilder

type ResourceGroupModelBuilder struct {
	*AzureModelContext
	Lifecycle fi.Lifecycle
}

ResourceGroupModelBuilder configures a Resource Group.

func (*ResourceGroupModelBuilder) Build

Build builds a task for creating a Resource Group.

type VMScaleSetModelBuilder

type VMScaleSetModelBuilder struct {
	*AzureModelContext
	BootstrapScriptBuilder *model.BootstrapScriptBuilder
	Lifecycle              fi.Lifecycle
}

VMScaleSetModelBuilder configures VMScaleSet objects

func (*VMScaleSetModelBuilder) Build

Build is responsible for constructing the VM ScaleSet from the kops spec.

Jump to

Keyboard shortcuts

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