Documentation ¶
Index ¶
- Constants
- func CreateInfrastructureWorkflow(ctx workflow.Context, input CreateAzureInfrastructureWorkflowInput) error
- func DeleteClusterWorkflow(ctx workflow.Context, input DeleteClusterWorkflowInput) error
- func DeleteInfrastructureWorkflow(ctx workflow.Context, input DeleteAzureInfrastructureWorkflowInput) error
- func HasOwnedTag(clusterName string, tags map[string]string) bool
- func HasSharedTag(clusterName string, tags map[string]string) bool
- func RemoveSharedTag(tags map[string]string, clusterName string) map[string]string
- func UpdateClusterWorkflow(ctx workflow.Context, input UpdateClusterWorkflowInput) error
- type AssignRoleActivity
- type AssignRoleActivityInput
- type AzureClientFactory
- type BackendAddressPool
- type CollectUpdateClusterProvidersActivity
- type CollectUpdateClusterProvidersActivityInput
- type CollectUpdateClusterProvidersActivityOutput
- type ConstantIPAddressProvider
- type ConstantResourceIDProvider
- type CreateAzureInfrastructureWorkflowInput
- type CreateClusterWorkflow
- type CreateClusterWorkflowInput
- type CreateLoadBalancerActivity
- type CreateLoadBalancerActivityInput
- type CreateLoadBalancerActivityOutput
- type CreateNSGActivity
- type CreateNSGActivityInput
- type CreateNSGActivityOutput
- type CreatePublicIPActivity
- type CreatePublicIPActivityInput
- type CreatePublicIPActivityOutput
- type CreateRouteTableActivity
- type CreateRouteTableActivityInput
- type CreateRouteTableActivityOutput
- type CreateSubnetActivity
- type CreateSubnetActivityInput
- type CreateSubnetActivityOutput
- type CreateVMSSActivity
- type CreateVMSSActivityInput
- type CreateVMSSActivityOutput
- type CreateVnetActivity
- type CreateVnetActivityInput
- type CreateVnetActivityOutput
- type DeleteAzureInfrastructureWorkflowInput
- type DeleteClusterFromStoreActivity
- type DeleteClusterFromStoreActivityInput
- type DeleteClusterWorkflowInput
- type DeleteLoadBalancerActivity
- type DeleteLoadBalancerActivityInput
- type DeleteNSGActivity
- type DeleteNSGActivityInput
- type DeleteNodePoolFromStoreActivity
- type DeleteNodePoolFromStoreActivityInput
- type DeletePublicIPActivity
- type DeletePublicIPActivityInput
- type DeleteRouteTableActivity
- type DeleteRouteTableActivityInput
- type DeleteSubnetActivity
- type DeleteSubnetActivityInput
- type DeleteVMSSActivity
- type DeleteVMSSActivityInput
- type DeleteVNetActivity
- type DeleteVNetActivityInput
- type FrontendIPConfiguration
- type IPAddressProvider
- type Image
- type InboundNATPool
- type LoadBalancer
- type LoadBalancerTemplate
- type LoadBalancingRule
- type MapResourceIDByNameProvider
- type NodePoolAndVMSS
- type OptionalUint
- type OutboundRule
- type Probe
- type PublicIPAddress
- type ResourceIDByNameProvider
- type ResourceIDProvider
- type RoleAssignment
- type RoleAssignmentTemplate
- type RouteTable
- type SecurityGroup
- type SecurityRule
- type SetClusterStatusActivity
- type SetClusterStatusActivityInput
- type Subnet
- type SubnetTemplate
- type Tag
- type UpdateClusterAccessPointsActivity
- type UpdateClusterAccessPointsActivityInput
- type UpdateClusterWorkflowInput
- type UpdateVMSSActivity
- type UpdateVMSSActivityInput
- type VirtualMachineScaleSet
- type VirtualMachineScaleSetChanges
- type VirtualMachineScaleSetTemplate
- type VirtualNetwork
- type VirtualNetworkTemplate
Constants ¶
const AssignRoleActivityName = "pke-azure-assign-role"
AssignRoleActivityName is the default registration name of the activity
const CollectUpdateClusterProvidersActivityName = "pke-azure-collect-update-cluster-providers"
const (
CreateClusterWorkflowName = "pke-azure-create-cluster"
)
const CreateInfraWorkflowName = "pke-azure-create-infra"
const CreateLoadBalancerActivityName = "pke-azure-create-load-balancer"
CreateLoadBalancerActivityName is the default registration name of the activity
const CreateNSGActivityName = "pke-azure-create-nsg"
CreateNSGActivityName is the default registration name of the activity
const CreatePublicIPActivityName = "pke-azure-create-public-ip"
AssignRoleActivityName is the default registration name of the activity
const CreateRouteTableActivityName = "pke-azure-create-route-table"
CreateRouteTableActivityName is the default registration name of the activity
const CreateSubnetActivityName = "pke-azure-create-subnet"
CreateSubnetActivityName is the default registration name of the activity
const CreateVMSSActivityName = "pke-azure-create-vmss"
CreateVMSSActivityName is the default registration name of the activity
const CreateVnetActivityName = "pke-azure-create-vnet"
CreateVnetActivityName is the default registration name of the activity
const DeleteClusterFromStoreActivityName = "pke-azure-delete-cluster-from-store"
const DeleteClusterWorkflowName = "pke-azure-delete-cluster"
const DeleteInfraWorkflowName = "pke-azure-delete-infra"
const DeleteLoadBalancerActivityName = "pke-azure-delete-load-balancer"
DeleteLoadBalancerActivityName is the default registration name of the activity
const DeleteNSGActivityName = "pke-azure-delete-nsg"
DeleteNSGActivityName is the default registration name of the activity
const DeleteNodePoolFromStoreActivityName = "pke-azure-delete-node-pool-from-store"
const DeletePublicIPActivityName = "pke-azure-delete-public-ip"
DeletePublicIPActivityName is the default registration name of the activity
const DeleteRouteTableActivityName = "pke-azure-delete-route-table"
DeleteRouteTableActivityName is the default registration name of the activity
const DeleteSubnetActivityName = "pke-azure-delete-subnet"
DeleteSubnetActivityName is the default registration name of the activity
const DeleteVMSSActivityName = "pke-azure-delete-vmss"
DeleteVMSSActivityName is the default registration name of the activity
const DeleteVNetActivityName = "pke-azure-delete-vnet"
DeleteVNetActivityName is the default registration name of the activity
const SetClusterStatusActivityName = "pke-azure-set-cluster-status"
const UpdateClusterAccessPointsActivityName = "pke-azure-upd-cluster-accesspoints"
const UpdateClusterWorkflowName = "pke-azure-update-cluster"
const UpdateVMSSActivityName = "pke-azure-update-vmss"
UpdateVMSSActivityName is the default registration name of the activity
Variables ¶
This section is empty.
Functions ¶
func CreateInfrastructureWorkflow ¶
func CreateInfrastructureWorkflow(ctx workflow.Context, input CreateAzureInfrastructureWorkflowInput) error
func DeleteClusterWorkflow ¶
func DeleteClusterWorkflow(ctx workflow.Context, input DeleteClusterWorkflowInput) error
func DeleteInfrastructureWorkflow ¶
func DeleteInfrastructureWorkflow(ctx workflow.Context, input DeleteAzureInfrastructureWorkflowInput) error
func RemoveSharedTag ¶
func UpdateClusterWorkflow ¶
func UpdateClusterWorkflow(ctx workflow.Context, input UpdateClusterWorkflowInput) error
Types ¶
type AssignRoleActivity ¶
type AssignRoleActivity struct {
// contains filtered or unexported fields
}
AssignRoleActivity represents an activity for creating an Azure network security group
func MakeAssignRoleActivity ¶
func MakeAssignRoleActivity(azureClientFactory *AzureClientFactory) AssignRoleActivity
MakeAssignRoleActivity returns a new CreateNSGActivity
func (AssignRoleActivity) Execute ¶
func (a AssignRoleActivity) Execute(ctx context.Context, input AssignRoleActivityInput) error
type AssignRoleActivityInput ¶
type AssignRoleActivityInput struct { OrganizationID uint SecretID string ClusterName string ResourceGroupName string RoleAssignment RoleAssignment }
type AzureClientFactory ¶
type AzureClientFactory struct {
// contains filtered or unexported fields
}
func NewAzureClientFactory ¶
func NewAzureClientFactory(secretStore pkeworkflow.SecretStore) *AzureClientFactory
func (*AzureClientFactory) New ¶
func (f *AzureClientFactory) New(organizationID uint, secretID string) (*pkgAzure.CloudConnection, error)
type BackendAddressPool ¶
type BackendAddressPool struct {
Name string
}
type CollectUpdateClusterProvidersActivity ¶
type CollectUpdateClusterProvidersActivity struct {
// contains filtered or unexported fields
}
func MakeCollectUpdateClusterProvidersActivity ¶
func MakeCollectUpdateClusterProvidersActivity(azureClientFactory *AzureClientFactory) CollectUpdateClusterProvidersActivity
func (CollectUpdateClusterProvidersActivity) Execute ¶
func (a CollectUpdateClusterProvidersActivity) Execute(ctx context.Context, input CollectUpdateClusterProvidersActivityInput) (output CollectUpdateClusterProvidersActivityOutput, err error)
type CollectUpdateClusterProvidersActivityOutput ¶
type CollectUpdateClusterProvidersActivityOutput struct { BackendAddressPoolIDProviders []MapResourceIDByNameProvider InboundNATPoolIDProviders []MapResourceIDByNameProvider RouteTableIDProvider MapResourceIDByNameProvider SecurityGroupIDProvider MapResourceIDByNameProvider SubnetIDProvider MapResourceIDByNameProvider }
type ConstantIPAddressProvider ¶
type ConstantIPAddressProvider string
ConstantIPAddressProvider implements an IPAddressProvider with a constant value
func (ConstantIPAddressProvider) Get ¶
func (p ConstantIPAddressProvider) Get() string
Get returns the constant IP address stored in the provider
type ConstantResourceIDProvider ¶
type ConstantResourceIDProvider string
ConstantResourceIDProvider implements a ResourceIDProvider with a constant value
func (ConstantResourceIDProvider) Get ¶
func (p ConstantResourceIDProvider) Get() string
Get returns the constant resource ID stored in the provider
type CreateAzureInfrastructureWorkflowInput ¶
type CreateAzureInfrastructureWorkflowInput struct { OrganizationID uint ClusterID uint ClusterName string SecretID string ResourceGroupName string LoadBalancers []LoadBalancerTemplate PublicIPAddress PublicIPAddress RoleAssignments []RoleAssignmentTemplate RouteTable RouteTable ScaleSets []VirtualMachineScaleSetTemplate SecurityGroups []SecurityGroup VirtualNetwork VirtualNetworkTemplate HTTPProxy intPKE.HTTPProxy AccessPoints pke.AccessPoints APIServerAccessPoints pke.APIServerAccessPoints }
type CreateClusterWorkflow ¶
type CreateClusterWorkflow struct {
// contains filtered or unexported fields
}
func NewCreateClusterWorkflow ¶
func NewCreateClusterWorkflow() CreateClusterWorkflow
func (CreateClusterWorkflow) Execute ¶
func (w CreateClusterWorkflow) Execute(ctx workflow.Context, input CreateClusterWorkflowInput) (err error)
type CreateClusterWorkflowInput ¶
type CreateClusterWorkflowInput struct { ClusterID uint ClusterName string ClusterUID string OrganizationID uint OrganizationName string ResourceGroupName string SecretID string Distribution string OIDCEnabled bool VirtualNetworkTemplate VirtualNetworkTemplate LoadBalancerTemplates []LoadBalancerTemplate PublicIPAddress PublicIPAddress RoleAssignmentTemplates []RoleAssignmentTemplate RouteTable RouteTable SecurityGroups []SecurityGroup VirtualMachineScaleSetTemplates []VirtualMachineScaleSetTemplate NodePoolLabels map[string]map[string]string HTTPProxy intPKE.HTTPProxy AccessPoints pke.AccessPoints APIServerAccessPoints pke.APIServerAccessPoints }
CreateClusterWorkflowInput
type CreateLoadBalancerActivity ¶
type CreateLoadBalancerActivity struct {
// contains filtered or unexported fields
}
CreateLoadBalancerActivity represents an activity for creating an Azure load balancer
func MakeCreateLoadBalancerActivity ¶
func MakeCreateLoadBalancerActivity(azureClientFactory *AzureClientFactory) CreateLoadBalancerActivity
MakeCreateLoadBalancerActivity returns a new CreateLoadBalancerActivity
func (CreateLoadBalancerActivity) Execute ¶
func (a CreateLoadBalancerActivity) Execute(ctx context.Context, input CreateLoadBalancerActivityInput) (output CreateLoadBalancerActivityOutput, err error)
Execute performs the activity
type CreateLoadBalancerActivityInput ¶
type CreateLoadBalancerActivityInput struct { OrganizationID uint SecretID string ClusterName string ResourceGroupName string LoadBalancer LoadBalancer }
CreateLoadBalancerActivityInput represents the input needed for executing a CreateLoadBalancerActivity
type CreateNSGActivity ¶
type CreateNSGActivity struct {
// contains filtered or unexported fields
}
CreateNSGActivity represents an activity for creating an Azure network security group
func MakeCreateNSGActivity ¶
func MakeCreateNSGActivity(azureClientFactory *AzureClientFactory) CreateNSGActivity
MakeCreateNSGActivity returns a new CreateNSGActivity
func (CreateNSGActivity) Execute ¶
func (a CreateNSGActivity) Execute(ctx context.Context, input CreateNSGActivityInput) (output CreateNSGActivityOutput, err error)
Execute performs the activity
type CreateNSGActivityInput ¶
type CreateNSGActivityInput struct { OrganizationID uint SecretID string ClusterName string ResourceGroupName string SecurityGroup SecurityGroup }
CreateNSGActivityInput represents the input needed for executing a CreateNSGActivity
type CreateNSGActivityOutput ¶
type CreateNSGActivityOutput struct {
NetworkSecurityGroupID string
}
CreateNSGActivityOutput represents the output of executing a CreateNSGActivity
type CreatePublicIPActivity ¶
type CreatePublicIPActivity struct {
// contains filtered or unexported fields
}
AssignRoleActivity represents an activity for creating an Azure network security group
func MakeCreatePublicIPActivity ¶
func MakeCreatePublicIPActivity(azureClientFactory *AzureClientFactory) CreatePublicIPActivity
MakeAssignRoleActivity returns a new CreateNSGActivity
func (CreatePublicIPActivity) Execute ¶
func (a CreatePublicIPActivity) Execute(ctx context.Context, input CreatePublicIPActivityInput) (output CreatePublicIPActivityOutput, err error)
type CreatePublicIPActivityInput ¶
type CreatePublicIPActivityInput struct { OrganizationID uint SecretID string ClusterName string ResourceGroupName string PublicIPAddress PublicIPAddress }
type CreateRouteTableActivity ¶
type CreateRouteTableActivity struct {
// contains filtered or unexported fields
}
CreateRouteTableActivity represents an activity for creating an Azure route table
func MakeCreateRouteTableActivity ¶
func MakeCreateRouteTableActivity(azureClientFactory *AzureClientFactory) CreateRouteTableActivity
MakeCreateRouteTableActivity returns a new CreateRouteTableActivity
func (CreateRouteTableActivity) Execute ¶
func (a CreateRouteTableActivity) Execute(ctx context.Context, input CreateRouteTableActivityInput) (output CreateRouteTableActivityOutput, err error)
Execute performs the activity
type CreateRouteTableActivityInput ¶
type CreateRouteTableActivityInput struct { OrganizationID uint SecretID string ClusterName string ResourceGroupName string RouteTable RouteTable }
CreateRouteTableActivityInput represents the input needed for executing a CreateRouteTableActivity
type CreateRouteTableActivityOutput ¶
CreateRouteTableActivityOutput represents the output of executing a CreateRouteTableActivity
type CreateSubnetActivity ¶
type CreateSubnetActivity struct {
// contains filtered or unexported fields
}
CreateSubnetActivity represents an activity for creating an Azure subnet
func MakeCreateSubnetActivity ¶
func MakeCreateSubnetActivity(azureClientFactory *AzureClientFactory) CreateSubnetActivity
MakeCreateSubnetActivity returns a new CreateSubnetActivity
func (CreateSubnetActivity) Execute ¶
func (a CreateSubnetActivity) Execute(ctx context.Context, input CreateSubnetActivityInput) (output CreateSubnetActivityOutput, err error)
Execute performs the activity
type CreateSubnetActivityInput ¶
type CreateSubnetActivityInput struct { OrganizationID uint SecretID string ClusterName string ResourceGroupName string VirtualNetworkName string Subnet Subnet }
CreateSubnetActivityInput represents the input needed for executing a CreateSubnetActivity
type CreateSubnetActivityOutput ¶
type CreateSubnetActivityOutput struct {
SubnetID string
}
type CreateVMSSActivity ¶
type CreateVMSSActivity struct {
// contains filtered or unexported fields
}
CreateVMSSActivity represents an activity for creating an Azure virtual machine scale set
func MakeCreateVMSSActivity ¶
func MakeCreateVMSSActivity(azureClientFactory *AzureClientFactory, tokenGenerator pkeworkflowadapter.TokenGenerator) CreateVMSSActivity
MakeCreateVMSSActivity returns a new CreateVMSSActivity
func (CreateVMSSActivity) Execute ¶
func (a CreateVMSSActivity) Execute(ctx context.Context, input CreateVMSSActivityInput) (output CreateVMSSActivityOutput, err error)
Execute performs the activity
type CreateVMSSActivityInput ¶
type CreateVMSSActivityInput struct { OrganizationID uint ClusterID uint SecretID string ClusterName string ResourceGroupName string ScaleSet VirtualMachineScaleSet HTTPProxy intPKEWorkflow.HTTPProxy }
CreateVMSSActivityInput represents the input needed for executing a CreateVMSSActivity
type CreateVMSSActivityOutput ¶
type CreateVMSSActivityOutput struct {
PrincipalID string
}
type CreateVnetActivity ¶
type CreateVnetActivity struct {
// contains filtered or unexported fields
}
CreateVnetActivity represents an activity for creating an Azure virtual network
func MakeCreateVnetActivity ¶
func MakeCreateVnetActivity(azureClientFactory *AzureClientFactory) CreateVnetActivity
MakeCreateVnetActivity returns a new CreateVnetActivity
func (CreateVnetActivity) Execute ¶
func (a CreateVnetActivity) Execute(ctx context.Context, input CreateVnetActivityInput) (output CreateVnetActivityOutput, err error)
Execute performs the activity
type CreateVnetActivityInput ¶
type CreateVnetActivityInput struct { OrganizationID uint SecretID string ClusterName string ResourceGroupName string VirtualNetwork VirtualNetwork }
CreateVnetActivityInput represents the input needed for executing a CreateVnetActivity
type DeleteClusterFromStoreActivity ¶
type DeleteClusterFromStoreActivity struct {
// contains filtered or unexported fields
}
func MakeDeleteClusterFromStoreActivity ¶
func MakeDeleteClusterFromStoreActivity(store pke.ClusterStore) DeleteClusterFromStoreActivity
func (DeleteClusterFromStoreActivity) Execute ¶
func (a DeleteClusterFromStoreActivity) Execute(ctx context.Context, input DeleteClusterFromStoreActivityInput) error
type DeleteClusterFromStoreActivityInput ¶
type DeleteClusterFromStoreActivityInput struct {
ClusterID uint
}
type DeleteClusterWorkflowInput ¶
type DeleteClusterWorkflowInput struct { OrganizationID uint SecretID string ClusterID uint ClusterName string ClusterUID string K8sSecretID string ResourceGroupName string LoadBalancerNames []string PublicIPAddressNames []string RouteTableName string ScaleSetNames []string SecurityGroupNames []string VirtualNetworkName string Forced bool }
type DeleteLoadBalancerActivity ¶
type DeleteLoadBalancerActivity struct {
// contains filtered or unexported fields
}
DeleteLoadBalancerActivity represents an activity for deleting an Azure load balancer
func MakeDeleteLoadBalancerActivity ¶
func MakeDeleteLoadBalancerActivity(azureClientFactory *AzureClientFactory) DeleteLoadBalancerActivity
MakeDeleteLoadBalancerActivity returns a new CreateLoadBalancerActivity
func (DeleteLoadBalancerActivity) Execute ¶
func (a DeleteLoadBalancerActivity) Execute(ctx context.Context, input DeleteLoadBalancerActivityInput) (err error)
type DeleteLoadBalancerActivityInput ¶
type DeleteLoadBalancerActivityInput struct { OrganizationID uint SecretID string ClusterName string ResourceGroupName string LoadBalancerName string }
DeleteLoadBalancerActivityInput represents the input needed for executing a DeleteLoadBalancerActivity
type DeleteNSGActivity ¶
type DeleteNSGActivity struct {
// contains filtered or unexported fields
}
DeleteNSGActivity represents an activity for deleting a network security group
func MakeDeleteNSGActivity ¶
func MakeDeleteNSGActivity(azureClientFactory *AzureClientFactory) DeleteNSGActivity
MakeDeleteNSGActivity returns a new DeleteNSGActivity
func (DeleteNSGActivity) Execute ¶
func (a DeleteNSGActivity) Execute(ctx context.Context, input DeleteNSGActivityInput) (err error)
type DeleteNSGActivityInput ¶
type DeleteNSGActivityInput struct { OrganizationID uint SecretID string ClusterName string ResourceGroupName string NSGName string }
DeleteNSGActivityInput represents the input needed for executing a DeleteNSGActivity
type DeleteNodePoolFromStoreActivity ¶
type DeleteNodePoolFromStoreActivity struct {
// contains filtered or unexported fields
}
func MakeDeleteNodePoolFromStoreActivity ¶
func MakeDeleteNodePoolFromStoreActivity(store pke.ClusterStore) DeleteNodePoolFromStoreActivity
func (DeleteNodePoolFromStoreActivity) Execute ¶
func (a DeleteNodePoolFromStoreActivity) Execute(ctx context.Context, input DeleteNodePoolFromStoreActivityInput) error
type DeletePublicIPActivity ¶
type DeletePublicIPActivity struct {
// contains filtered or unexported fields
}
DeletePublicIPActivity represents an activity for deleting a public IP
func MakeDeletePublicIPActivity ¶
func MakeDeletePublicIPActivity(azureClientFactory *AzureClientFactory) DeletePublicIPActivity
MakeDeletePublicIPActivity returns a new DeletePublicIPActivity
func (DeletePublicIPActivity) Execute ¶
func (a DeletePublicIPActivity) Execute(ctx context.Context, input DeletePublicIPActivityInput) error
type DeletePublicIPActivityInput ¶
type DeletePublicIPActivityInput struct { OrganizationID uint SecretID string ClusterName string ResourceGroupName string PublicIPAddressName string }
DeleteVNetActivityInput represents the input needed for executing a DeletePublicIPActivity
type DeleteRouteTableActivity ¶
type DeleteRouteTableActivity struct {
// contains filtered or unexported fields
}
DeleteRouteTableActivity represents an activity for deleting a route table
func MakeDeleteRouteTableActivity ¶
func MakeDeleteRouteTableActivity(azureClientFactory *AzureClientFactory) DeleteRouteTableActivity
MakeDeleteRouteTableActivity returns a new MakeDeleteRouteTableActivity
func (DeleteRouteTableActivity) Execute ¶
func (a DeleteRouteTableActivity) Execute(ctx context.Context, input DeleteRouteTableActivityInput) (err error)
type DeleteRouteTableActivityInput ¶
type DeleteRouteTableActivityInput struct { OrganizationID uint SecretID string ClusterName string ResourceGroupName string RouteTableName string }
DeleteRouteTableActivityInput represents the input needed for executing a DeleteRouteTableActivity
type DeleteSubnetActivity ¶
type DeleteSubnetActivity struct {
// contains filtered or unexported fields
}
DeleteSubnetActivity represents an activity for deleting a subnet
func MakeDeleteSubnetActivity ¶
func MakeDeleteSubnetActivity(azureClientFactory *AzureClientFactory) DeleteSubnetActivity
MakeDeleteSubnetActivity returns a new DeleteSubnetActivity
func (DeleteSubnetActivity) Execute ¶
func (a DeleteSubnetActivity) Execute(ctx context.Context, input DeleteSubnetActivityInput) (err error)
type DeleteSubnetActivityInput ¶
type DeleteSubnetActivityInput struct { OrganizationID uint SecretID string ClusterName string ResourceGroupName string VNetName string SubnetName string }
DeleteSubnetActivityInput represents the input needed for executing a DeleteSubnetActivity
type DeleteVMSSActivity ¶
type DeleteVMSSActivity struct {
// contains filtered or unexported fields
}
DeleteVMSSActivity represents an activity for deleting a VMSS
func MakeDeleteVMSSActivity ¶
func MakeDeleteVMSSActivity(azureClientFactory *AzureClientFactory) DeleteVMSSActivity
MakeDeleteVMSSActivity returns a new DeleteVMSSActivity
func (DeleteVMSSActivity) Execute ¶
func (a DeleteVMSSActivity) Execute(ctx context.Context, input DeleteVMSSActivityInput) (err error)
type DeleteVMSSActivityInput ¶
type DeleteVMSSActivityInput struct { OrganizationID uint SecretID string ClusterName string ResourceGroupName string VMSSName string }
DeleteVMSSActivityInput represents the input needed for executing a DeleteVMSSActivity
type DeleteVNetActivity ¶
type DeleteVNetActivity struct {
// contains filtered or unexported fields
}
DeleteVNetActivity represents an activity for deleting a VNet
func MakeDeleteVNetActivity ¶
func MakeDeleteVNetActivity(azureClientFactory *AzureClientFactory) DeleteVNetActivity
MakeDeleteVNetActivity returns a new DeleteVNetActivity
func (DeleteVNetActivity) Execute ¶
func (a DeleteVNetActivity) Execute(ctx context.Context, input DeleteVNetActivityInput) (err error)
type DeleteVNetActivityInput ¶
type DeleteVNetActivityInput struct { OrganizationID uint SecretID string ClusterName string ResourceGroupName string VNetName string }
DeleteVNetActivityInput represents the input needed for executing a DeleteVNetActivity
type FrontendIPConfiguration ¶
type IPAddressProvider ¶
type IPAddressProvider interface {
Get() string
}
IPAddressProvider describes the interface of the provider of a single IP address
type InboundNATPool ¶
type LoadBalancer ¶
type LoadBalancer struct { Name string Location string SKU string BackendAddressPools []BackendAddressPool FrontendIPConfigurations []FrontendIPConfiguration InboundNATPools []InboundNATPool LoadBalancingRules []LoadBalancingRule OutboundRules []OutboundRule Probes []Probe }
type LoadBalancerTemplate ¶
type LoadBalancerTemplate struct { Name string Location string SKU string BackendAddressPoolName string OutboundBackendAddressPoolName string InboundNATPoolName string SubnetName string PublicIPAddressName string }
func (LoadBalancerTemplate) Render ¶
func (t LoadBalancerTemplate) Render(publicIPAddressIDProvider ResourceIDByNameProvider, subnetIDProvider ResourceIDByNameProvider) LoadBalancer
type LoadBalancingRule ¶
type LoadBalancingRule struct { Name string BackendAddressPool *BackendAddressPool BackendPort int32 DisableOutboundSNAT bool FrontendIPConfig *FrontendIPConfiguration FrontendPort int32 Probe *Probe Protocol string }
type MapResourceIDByNameProvider ¶
MapResourceIDByNameProvider implements a ResourceIDByNameProvider with a map of string to string
func (MapResourceIDByNameProvider) Get ¶
func (p MapResourceIDByNameProvider) Get(name string) string
Get returns the resource ID associated with the specified name in the mapping of the provider
func (MapResourceIDByNameProvider) Put ¶
func (p MapResourceIDByNameProvider) Put(name string, resourceID string)
Put associates the specified name and resource ID pair in the mapping of the provider
type NodePoolAndVMSS ¶
type OptionalUint ¶
func NewUint ¶
func NewUint(v uint) OptionalUint
type OutboundRule ¶
type OutboundRule struct { Name string BackendAddressPool *BackendAddressPool FrontendIPConfigs []*FrontendIPConfiguration }
type PublicIPAddress ¶
type ResourceIDByNameProvider ¶
ResourceIDByNameProvider describes the interface of the by-name provider of a resource ID
type ResourceIDProvider ¶
type ResourceIDProvider interface {
Get() string
}
ResourceIDProvider describes the interface of the provider of a single resource ID
type RoleAssignment ¶
type RoleAssignmentTemplate ¶
func (RoleAssignmentTemplate) Render ¶
func (t RoleAssignmentTemplate) Render(vmssPrincipalIDProvider ResourceIDByNameProvider) RoleAssignment
type RouteTable ¶
RouteTable represents an Azure route table
type SecurityGroup ¶
type SecurityGroup struct { Name string Location string Rules []SecurityRule }
SecurityGroup represents a network security group
type SecurityRule ¶
type SecurityRule struct { Name string Access string Description string Destination string DestinationPortRange string Direction string Priority int32 Protocol string Source string SourcePortRange string }
SecurityRule represents a network security rule
type SetClusterStatusActivity ¶
type SetClusterStatusActivity struct {
// contains filtered or unexported fields
}
func MakeSetClusterStatusActivity ¶
func MakeSetClusterStatusActivity(store pke.ClusterStore) SetClusterStatusActivity
func (SetClusterStatusActivity) Execute ¶
func (a SetClusterStatusActivity) Execute(ctx context.Context, input SetClusterStatusActivityInput) error
type SubnetTemplate ¶
type SubnetTemplate struct { Name string CIDR string NetworkSecurityGroupName string RouteTableName string }
func (SubnetTemplate) Render ¶
func (t SubnetTemplate) Render(routeTableIDProvider ResourceIDByNameProvider, securityGroupIDProvider ResourceIDByNameProvider) Subnet
type UpdateClusterAccessPointsActivity ¶
type UpdateClusterAccessPointsActivity struct {
// contains filtered or unexported fields
}
func MakeUpdateClusterAccessPointsActivity ¶
func MakeUpdateClusterAccessPointsActivity(store pke.ClusterStore) UpdateClusterAccessPointsActivity
func (UpdateClusterAccessPointsActivity) Execute ¶
func (a UpdateClusterAccessPointsActivity) Execute(ctx context.Context, input UpdateClusterAccessPointsActivityInput) error
type UpdateClusterAccessPointsActivityInput ¶
type UpdateClusterAccessPointsActivityInput struct { ClusterID uint AccessPoints pke.AccessPoints }
type UpdateClusterWorkflowInput ¶
type UpdateClusterWorkflowInput struct { OrganizationID uint SecretID string ClusterID uint ClusterName string ConfigSecretID string ResourceGroupName string PublicIPAddressName string RouteTableName string VirtualNetworkName string RoleAssignments []RoleAssignmentTemplate SubnetsToCreate []SubnetTemplate SubnetsToDelete []string VMSSToCreate []VirtualMachineScaleSetTemplate VMSSToDelete []NodePoolAndVMSS VMSSToUpdate []VirtualMachineScaleSetChanges Labels map[string]map[string]string AccessPoints pke.AccessPoints APIServerAccessPoints pke.APIServerAccessPoints }
UpdateClusterWorkflowInput
type UpdateVMSSActivity ¶
type UpdateVMSSActivity struct {
// contains filtered or unexported fields
}
UpdateVMSSActivity represents an activity for deleting a VMSS
func MakeUpdateVMSSActivity ¶
func MakeUpdateVMSSActivity(azureClientFactory *AzureClientFactory) UpdateVMSSActivity
MakeUpdateVMSSActivity returns a new UpdateVMSSActivity
func (UpdateVMSSActivity) Execute ¶
func (a UpdateVMSSActivity) Execute(ctx context.Context, input UpdateVMSSActivityInput) (err error)
type UpdateVMSSActivityInput ¶
type UpdateVMSSActivityInput struct { OrganizationID uint SecretID string ClusterName string ResourceGroupName string Changes VirtualMachineScaleSetChanges }
UpdateVMSSActivityInput represents the input needed for executing a UpdateVMSSActivity
type VirtualMachineScaleSet ¶
type VirtualMachineScaleSet struct { AdminUsername string Image Image InstanceCount int64 InstanceType string LBBackendAddressPoolIDs []string LBInboundNATPoolIDs []string Location string Name string NetworkSecurityGroupID string SSHPublicKey string SubnetID string UserDataScriptParams map[string]string UserDataScriptTemplate string Zones []string }
VirtualMachineScaleSet represents an Azure virtual machine scale set
type VirtualMachineScaleSetChanges ¶
type VirtualMachineScaleSetChanges struct { Name string InstanceCount OptionalUint }
type VirtualMachineScaleSetTemplate ¶
type VirtualMachineScaleSetTemplate struct { AdminUsername string Image Image InstanceCount uint InstanceType string BackendAddressPoolName string OutputBackendAddressPoolName string InboundNATPoolName string Location string Name string NetworkSecurityGroupName string NodePoolName string SSHPublicKey string SubnetName string UserDataScriptParams map[string]string UserDataScriptTemplate string Zones []string Role pkgPke.Role }
func (VirtualMachineScaleSetTemplate) Render ¶
func (t VirtualMachineScaleSetTemplate) Render( backendAddressPoolIDProviders []ResourceIDByNameProvider, inboundNATPoolIDProviders []ResourceIDByNameProvider, apiServerAddressProvider IPAddressProvider, apiServerCertSansProvider ConstantResourceIDProvider, securityGroupIDProvider ResourceIDByNameProvider, subnetIDProvider ResourceIDByNameProvider, ) VirtualMachineScaleSet
type VirtualNetwork ¶
type VirtualNetworkTemplate ¶
type VirtualNetworkTemplate struct { Name string CIDRs []string Location string Subnets []SubnetTemplate }
func (VirtualNetworkTemplate) Render ¶
func (t VirtualNetworkTemplate) Render(routeTableIDProvider ResourceIDByNameProvider, securityGroupIDProvider ResourceIDByNameProvider) VirtualNetwork
Source Files ¶
- assign_role_activity.go
- azure.go
- collect_update_cluster_providers_activity.go
- common.go
- create_cluster.go
- create_infra.go
- create_lb_activity.go
- create_nsg_activity.go
- create_public_ip_activity.go
- create_route_table_activity.go
- create_subnet_activity.go
- create_vmss_activity.go
- create_vnet_activity.go
- delete_cluster.go
- delete_cluster_from_store_activity.go
- delete_infra.go
- delete_lb_activity.go
- delete_nodepool_from_store_activity.go
- delete_nsg_activity.go
- delete_public_ip_activity.go
- delete_route_table_activity.go
- delete_subnet_activity.go
- delete_vmss_activity.go
- delete_vnet_activity.go
- set_cluster_status_activity.go
- update_cluster.go
- update_cluster_accesspoints_activity.go
- update_vmss_activity.go