alibabacloud

package
v0.4.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

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 (
	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 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 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