agent

package
v0.2.2-rc3 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2025 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SharedNodeAgentName = "kubelet"
	SharedNodeMode      = "shared"
)
View Source
const (
	VirtualNodeMode = "virtual"
)

Variables

This section is empty.

Functions

func WebhookSecretName added in v0.3.0

func WebhookSecretName(clusterName string) string

Types

type Agent

type Agent interface {
	Name() string
	Config() ctrlruntimeclient.Object
	Resources() ([]ctrlruntimeclient.Object, error)
}

func New

func New(cluster *v1alpha1.Cluster, serviceIP, sharedAgentImage, token string) Agent

func NewSharedAgent added in v0.3.0

func NewSharedAgent(cluster *v1alpha1.Cluster, serviceIP, sharedAgentImage, token string) Agent

func NewVirtualAgent added in v0.3.0

func NewVirtualAgent(cluster *v1alpha1.Cluster, serviceIP, token string) Agent

type SharedAgent added in v0.3.0

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

func (*SharedAgent) Config

func (s *SharedAgent) Config() ctrlruntimeclient.Object

func (*SharedAgent) DNSName

func (s *SharedAgent) DNSName() string

func (*SharedAgent) Name added in v0.3.0

func (s *SharedAgent) Name() string

func (*SharedAgent) Resources

func (s *SharedAgent) Resources() ([]ctrlruntimeclient.Object, error)

type VirtualAgent added in v0.3.0

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

func (*VirtualAgent) Config

func (*VirtualAgent) Name added in v0.3.0

func (v *VirtualAgent) Name() string

func (*VirtualAgent) Resources

func (v *VirtualAgent) Resources() ([]ctrlruntimeclient.Object, error)

Jump to

Keyboard shortcuts

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