alibabacloud

package
v0.7.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	EIPNetwork                      = "AlibabaCloud-EIP"
	AliasSEIP                       = "EIP-Network"
	ReleaseStrategyConfigName       = "ReleaseStrategy"
	PoolIdConfigName                = "PoolId"
	ResourceGroupIdConfigName       = "ResourceGroupId"
	BandwidthConfigName             = "Bandwidth"
	BandwidthPackageIdConfigName    = "BandwidthPackageId"
	ChargeTypeConfigName            = "ChargeType"
	DescriptionConfigName           = "Description"
	WithEIPAnnotationKey            = "k8s.aliyun.com/pod-with-eip"
	ReleaseStrategyAnnotationkey    = "k8s.aliyun.com/pod-eip-release-strategy"
	PoolIdAnnotationkey             = "k8s.aliyun.com/eip-public-ip-address-pool-id"
	ResourceGroupIdAnnotationkey    = "k8s.aliyun.com/eip-resource-group-id"
	BandwidthAnnotationkey          = "k8s.aliyun.com/eip-bandwidth"
	BandwidthPackageIdAnnotationkey = "k8s.aliyun.com/eip-common-bandwidth-package-id"
	ChargeTypeConfigAnnotationkey   = "k8s.aliyun.com/eip-internet-charge-type"
	EIPNameAnnotationKey            = "k8s.aliyun.com/eip-name"
	EIPDescriptionAnnotationKey     = "k8s.aliyun.com/eip-description"
)
View Source
const (
	NATGWNetwork       = "AlibabaCloud-NATGW"
	AliasNATGW         = "NATGW-Network"
	FixedConfigName    = "Fixed"
	PortsConfigName    = "Ports"
	ProtocolConfigName = "Protocol"
	DnatAnsKey         = "k8s.aliyun.com/pod-dnat"
	PortsAnsKey        = "k8s.aliyun.com/pod-dnat-expose-port"
	ProtocolAnsKey     = "k8s.aliyun.com/pod-dnat-expose-protocol"
	FixedAnsKey        = "k8s.aliyun.com/pod-dnat-fixed"
)
View Source
const (
	NlbSPNetwork     = "AlibabaCloud-NLB-SharedPort"
	NlbIdsConfigName = "NlbIds"
)
View Source
const (
	SlbNetwork              = "AlibabaCloud-SLB"
	AliasSLB                = "LB-Network"
	SlbIdsConfigName        = "SlbIds"
	PortProtocolsConfigName = "PortProtocols"
	SlbListenerOverrideKey  = "service.beta.kubernetes.io/alibaba-cloud-loadbalancer-force-override-listeners"
	SlbIdAnnotationKey      = "service.beta.kubernetes.io/alibaba-cloud-loadbalancer-id"
	SlbIdLabelKey           = "service.k8s.alibaba/loadbalancer-id"
	SvcSelectorKey          = "statefulset.kubernetes.io/pod-name"
	SlbConfigHashKey        = "game.kruise.io/network-config-hash"
)
View Source
const (
	SlbSPNetwork  = "AlibabaCloud-SLB-SharedPort"
	SvcSLBSPLabel = "game.kruise.io/AlibabaCloud-SLB-SharedPort"
)
View Source
const (
	AlibabaCloud = "AlibabaCloud"
)
View Source
const (
	ErrorUpperLimit = "the number of backends supported by slb reaches the upper limit"
)

Variables

This section is empty.

Functions

func NewAlibabaCloudProvider

func NewAlibabaCloudProvider() (cloudprovider.CloudProvider, error)

Types

type EipPlugin added in v0.5.0

type EipPlugin struct {
}

func (EipPlugin) Alias added in v0.5.0

func (E EipPlugin) Alias() string

func (EipPlugin) Init added in v0.5.0

func (EipPlugin) Name added in v0.5.0

func (E EipPlugin) Name() string

func (EipPlugin) OnPodAdded added in v0.5.0

func (E EipPlugin) OnPodAdded(client client.Client, pod *corev1.Pod, ctx context.Context) (*corev1.Pod, errors.PluginError)

func (EipPlugin) OnPodDeleted added in v0.5.0

func (E EipPlugin) OnPodDeleted(client client.Client, pod *corev1.Pod, ctx context.Context) errors.PluginError

func (EipPlugin) OnPodUpdated added in v0.5.0

func (E EipPlugin) OnPodUpdated(client client.Client, pod *corev1.Pod, ctx context.Context) (*corev1.Pod, errors.PluginError)

type NatGwPlugin

type NatGwPlugin struct {
}

func (NatGwPlugin) Alias

func (n NatGwPlugin) Alias() string

func (NatGwPlugin) Init

func (NatGwPlugin) Name

func (n NatGwPlugin) Name() string

func (NatGwPlugin) OnPodAdded

func (n NatGwPlugin) OnPodAdded(c client.Client, pod *corev1.Pod, ctx context.Context) (*corev1.Pod, errors.PluginError)

func (NatGwPlugin) OnPodDeleted

func (n NatGwPlugin) OnPodDeleted(c client.Client, pod *corev1.Pod, ctx context.Context) errors.PluginError

func (NatGwPlugin) OnPodUpdated

func (n NatGwPlugin) OnPodUpdated(c client.Client, pod *corev1.Pod, ctx context.Context) (*corev1.Pod, errors.PluginError)

type NlbSpPlugin added in v0.6.0

type NlbSpPlugin struct {
}

func (*NlbSpPlugin) Alias added in v0.6.0

func (N *NlbSpPlugin) Alias() string

func (*NlbSpPlugin) Init added in v0.6.0

func (*NlbSpPlugin) Name added in v0.6.0

func (N *NlbSpPlugin) Name() string

func (*NlbSpPlugin) OnPodAdded added in v0.6.0

func (N *NlbSpPlugin) OnPodAdded(c client.Client, pod *corev1.Pod, ctx context.Context) (*corev1.Pod, cperrors.PluginError)

func (*NlbSpPlugin) OnPodDeleted added in v0.6.0

func (N *NlbSpPlugin) OnPodDeleted(client client.Client, pod *corev1.Pod, ctx context.Context) cperrors.PluginError

func (*NlbSpPlugin) OnPodUpdated added in v0.6.0

func (N *NlbSpPlugin) OnPodUpdated(c client.Client, pod *corev1.Pod, ctx context.Context) (*corev1.Pod, cperrors.PluginError)

type Provider

type Provider struct {
	// contains filtered or unexported fields
}

func (*Provider) ListPlugins

func (ap *Provider) ListPlugins() (map[string]cloudprovider.Plugin, error)

func (*Provider) Name

func (ap *Provider) Name() string

type SlbPlugin

type SlbPlugin struct {
	// contains filtered or unexported fields
}

func (*SlbPlugin) Alias

func (s *SlbPlugin) Alias() string

func (*SlbPlugin) Init

func (*SlbPlugin) Name

func (s *SlbPlugin) Name() string

func (*SlbPlugin) OnPodAdded

func (s *SlbPlugin) OnPodAdded(c client.Client, pod *corev1.Pod, ctx context.Context) (*corev1.Pod, cperrors.PluginError)

func (*SlbPlugin) OnPodDeleted

func (s *SlbPlugin) OnPodDeleted(c client.Client, pod *corev1.Pod, ctx context.Context) cperrors.PluginError

func (*SlbPlugin) OnPodUpdated

func (s *SlbPlugin) OnPodUpdated(c client.Client, pod *corev1.Pod, ctx context.Context) (*corev1.Pod, cperrors.PluginError)

type SlbSpPlugin

type SlbSpPlugin struct {
	// contains filtered or unexported fields
}

func (*SlbSpPlugin) Alias

func (s *SlbSpPlugin) Alias() string

func (*SlbSpPlugin) Init

func (*SlbSpPlugin) Name

func (s *SlbSpPlugin) Name() string

func (*SlbSpPlugin) OnPodAdded

func (s *SlbSpPlugin) OnPodAdded(c client.Client, pod *corev1.Pod, ctx context.Context) (*corev1.Pod, cperrors.PluginError)

func (*SlbSpPlugin) OnPodDeleted

func (s *SlbSpPlugin) OnPodDeleted(c client.Client, pod *corev1.Pod, ctx context.Context) cperrors.PluginError

func (*SlbSpPlugin) OnPodUpdated

func (s *SlbSpPlugin) OnPodUpdated(c client.Client, pod *corev1.Pod, ctx context.Context) (*corev1.Pod, cperrors.PluginError)

Directories

Path Synopsis
apis
v1beta1
Package v1beta1 Package v1 contains API Schema definitions for the alibabacloud v1beta1 API group +k8s:deepcopy-gen=package,register +groupName=alibabacloud.com
Package v1beta1 Package v1 contains API Schema definitions for the alibabacloud v1beta1 API group +k8s:deepcopy-gen=package,register +groupName=alibabacloud.com

Jump to

Keyboard shortcuts

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