pke

package
v0.0.0-...-e7c744b Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const PKEOnAzure = "pke-on-azure"

Variables

This section is empty.

Functions

func GetApiServerLBRuleName

func GetApiServerLBRuleName() string

func GetBackendAddressPoolName

func GetBackendAddressPoolName() string

func GetFrontEndIPConfigName

func GetFrontEndIPConfigName() string

func GetInboundNATPoolName

func GetInboundNATPoolName() string

func GetInternalLoadBalancerName

func GetInternalLoadBalancerName(clusterName string) string

func GetLoadBalancerName

func GetLoadBalancerName(clusterName string) string

func GetOutboundBackendAddressPoolName

func GetOutboundBackendAddressPoolName() string

func GetPublicIPAddressName

func GetPublicIPAddressName(clusterName string) string

func GetRouteTableName

func GetRouteTableName(clusterName string) string

func GetVMSSName

func GetVMSSName(clusterName, nodePoolName string) string

func IsNotFound

func IsNotFound(err error) bool

IsNotFound returns true if the error is about a resource not being found

Types

type APIServerAccessPoint

type APIServerAccessPoint string

func (APIServerAccessPoint) GetName

func (a APIServerAccessPoint) GetName() string

type APIServerAccessPoints

type APIServerAccessPoints []APIServerAccessPoint

func (APIServerAccessPoints) Exists

func (a APIServerAccessPoints) Exists(name string) bool

type AccessPoint

type AccessPoint struct {
	Name    string
	Address string
}

type AccessPoints

type AccessPoints []AccessPoint

func (AccessPoints) Exists

func (a AccessPoints) Exists(name string) bool

func (AccessPoints) Get

func (a AccessPoints) Get(name string) *AccessPoint

type Cluster

type Cluster struct {
	clusterbase.ClusterBase

	Location         string
	NodePools        []NodePool
	ResourceGroup    ResourceGroup
	VirtualNetwork   VirtualNetwork
	Kubernetes       intPKE.Kubernetes
	ActiveWorkflowID string
	HTTPProxy        intPKE.HTTPProxy

	AccessPoints          AccessPoints
	APIServerAccessPoints APIServerAccessPoints
}

Cluster defines fields for PKE-on-Azure clusters

func (Cluster) HasActiveWorkflow

func (c Cluster) HasActiveWorkflow() bool

type ClusterStore

type ClusterStore interface {
	Create(params CreateParams) (Cluster, error)
	CreateNodePool(clusterID uint, nodePool NodePool) error
	Delete(clusterID uint) error
	DeleteNodePool(clusterID uint, nodePoolName string) error
	GetByID(clusterID uint) (Cluster, error)
	SetStatus(clusterID uint, status, message string) error
	SetActiveWorkflowID(clusterID uint, workflowID string) error
	SetConfigSecretID(clusterID uint, secretID string) error
	SetSSHSecretID(clusterID uint, sshSecretID string) error
	SetNodePoolSizes(clusterID uint, nodePoolName string, min, max, desiredCount uint, autoscaling bool) error
	UpdateClusterAccessPoints(clusterID uint, accessPoints AccessPoints) error
}

ClusterStore defines behaviors of Cluster persistent storage

type CreateParams

type CreateParams struct {
	Name                  string
	OrganizationID        uint
	CreatedBy             uint
	Location              string
	SecretID              string
	SSHSecretID           string
	RBAC                  bool
	OIDC                  bool
	KubernetesVersion     string
	ResourceGroupName     string
	VirtualNetworkName    string
	NodePools             []NodePool
	HTTPProxy             intPKE.HTTPProxy
	AccessPoints          AccessPoints
	APIServerAccessPoints APIServerAccessPoints
}

type NodePool

type NodePool struct {
	Autoscaling  bool
	CreatedBy    uint
	DesiredCount uint
	InstanceType string
	Max          uint
	Min          uint
	Name         string
	Roles        []string
	Subnet       Subnetwork
	Zones        []string
}

type ResourceGroup

type ResourceGroup struct {
	Name string
}

type Subnetwork

type Subnetwork struct {
	Name string
}

type VirtualNetwork

type VirtualNetwork struct {
	Location string
	Name     string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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