ack

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: May 8, 2025 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ACKKubeletConfig

type ACKKubeletConfig struct {
	MaxPods *int32 `json:"maxPods,omitempty"`
}

type DefaultProvider

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

func NewDefaultProvider

func NewDefaultProvider(clusterID string, ackClient *ackclient.Client, cache *cache.Cache) *DefaultProvider

func (*DefaultProvider) GetClusterCNI

func (p *DefaultProvider) GetClusterCNI(_ context.Context) (string, error)

func (*DefaultProvider) GetNodeRegisterScript

func (p *DefaultProvider) GetNodeRegisterScript(ctx context.Context,
	capacityType string,
	nodeClaim *karpv1.NodeClaim,
	kubeletCfg *v1alpha1.KubeletConfiguration,
	userData *string) (string, error)

func (*DefaultProvider) LivenessProbe

func (p *DefaultProvider) LivenessProbe(_ *http.Request) error

type NodeConfig

type NodeConfig struct {
	KubeletConfig *ACKKubeletConfig `json:"kubelet_config,omitempty"`
}

type Provider

type Provider interface {
	GetNodeRegisterScript(context.Context, string, *karpv1.NodeClaim, *v1alpha1.KubeletConfiguration, *string) (string, error)
	GetClusterCNI(context.Context) (string, error)
	LivenessProbe(*http.Request) error
}

Jump to

Keyboard shortcuts

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