Documentation ¶
Index ¶
- type APILoadBalancerModelBuilder
- type AzureModelContext
- func (c *AzureModelContext) CloudTagsForInstanceGroup(ig *kops.InstanceGroup) map[string]*string
- func (c *AzureModelContext) LinkToApplicationSecurityGroupControlPlane() *azuretasks.ApplicationSecurityGroup
- func (c *AzureModelContext) LinkToApplicationSecurityGroupNodes() *azuretasks.ApplicationSecurityGroup
- func (c *AzureModelContext) LinkToAzureSubnet(spec *kops.ClusterSubnetSpec) *azuretasks.Subnet
- func (c *AzureModelContext) LinkToLoadBalancer() *azuretasks.LoadBalancer
- func (c *AzureModelContext) LinkToResourceGroup() *azuretasks.ResourceGroup
- func (c *AzureModelContext) LinkToVirtualNetwork() *azuretasks.VirtualNetwork
- func (c *AzureModelContext) NameForApplicationSecurityGroupControlPlane() string
- func (c *AzureModelContext) NameForApplicationSecurityGroupNodes() string
- func (c *AzureModelContext) NameForLoadBalancer() string
- func (c *AzureModelContext) NameForResourceGroup() string
- func (c *AzureModelContext) NameForRouteTable() string
- func (c *AzureModelContext) NameForVirtualNetwork() string
- type NetworkModelBuilder
- type ResourceGroupModelBuilder
- type VMScaleSetModelBuilder
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 ¶
func (b *APILoadBalancerModelBuilder) Build(c *fi.CloudupModelBuilderContext) error
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) LinkToApplicationSecurityGroupControlPlane ¶ added in v1.28.0
func (c *AzureModelContext) LinkToApplicationSecurityGroupControlPlane() *azuretasks.ApplicationSecurityGroup
LinkToApplicationSecurityGroupControlPlane returns the Application Security Group object for the ControlPlane role.
func (*AzureModelContext) LinkToApplicationSecurityGroupNodes ¶ added in v1.28.0
func (c *AzureModelContext) LinkToApplicationSecurityGroupNodes() *azuretasks.ApplicationSecurityGroup
LinkToApplicationSecurityGroupNodes returns the Application Security Group object for the Node role.
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) NameForApplicationSecurityGroupControlPlane ¶ added in v1.28.0
func (c *AzureModelContext) NameForApplicationSecurityGroupControlPlane() string
NameForApplicationSecurityGroupControlPlane returns the name of the Application Security Group object for the ControlPlane role.
func (*AzureModelContext) NameForApplicationSecurityGroupNodes ¶ added in v1.28.0
func (c *AzureModelContext) NameForApplicationSecurityGroupNodes() string
NameForApplicationSecurityGroupNodes returns the name of the Application Security Group object for the Node role.
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 ¶
func (b *NetworkModelBuilder) Build(c *fi.CloudupModelBuilderContext) error
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 ¶
func (b *ResourceGroupModelBuilder) Build(c *fi.CloudupModelBuilderContext) error
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 ¶
func (b *VMScaleSetModelBuilder) Build(c *fi.CloudupModelBuilderContext) error
Build is responsible for constructing the VM ScaleSet from the kops spec.