Documentation
¶
Index ¶
- Constants
- func WebhookSecretName(clusterName string) string
- type Config
- type PortAllocator
- func (a *PortAllocator) AllocateKubeletPort(ctx context.Context, clusterName, clusterNamespace string) (int, error)
- func (a *PortAllocator) AllocateWebhookPort(ctx context.Context, clusterName, clusterNamespace string) (int, error)
- func (a *PortAllocator) DeallocateKubeletPort(ctx context.Context, clusterName, clusterNamespace string, kubeletPort int) error
- func (a *PortAllocator) DeallocateWebhookPort(ctx context.Context, clusterName, clusterNamespace string, webhookPort int) error
- func (a *PortAllocator) InitPortAllocatorConfig(ctx context.Context, client ctrlruntimeclient.Client, ...) manager.Runnable
- type ResourceEnsurer
- type SharedAgent
- type VirtualAgent
Constants ¶
View Source
const ( )
View Source
const (
VirtualNodeMode = "virtual"
)
Variables ¶
This section is empty.
Functions ¶
func WebhookSecretName ¶ added in v0.3.0
Types ¶
type PortAllocator ¶ added in v0.3.4
type PortAllocator struct {
ctrlruntimeclient.Client
KubeletCM *v1.ConfigMap
WebhookCM *v1.ConfigMap
}
func NewPortAllocator ¶ added in v0.3.4
func NewPortAllocator(ctx context.Context, client ctrlruntimeclient.Client) (*PortAllocator, error)
func (*PortAllocator) AllocateKubeletPort ¶ added in v0.3.4
func (*PortAllocator) AllocateWebhookPort ¶ added in v0.3.4
func (*PortAllocator) DeallocateKubeletPort ¶ added in v0.3.4
func (*PortAllocator) DeallocateWebhookPort ¶ added in v0.3.4
func (*PortAllocator) InitPortAllocatorConfig ¶ added in v0.3.4
func (a *PortAllocator) InitPortAllocatorConfig(ctx context.Context, client ctrlruntimeclient.Client, kubeletPortRange, webhookPortRange string) manager.Runnable
type ResourceEnsurer ¶ added in v0.3.0
type SharedAgent ¶ added in v0.3.0
type SharedAgent struct {
// contains filtered or unexported fields
}
func NewSharedAgent ¶ added in v0.3.0
func NewSharedAgent(config *Config, serviceIP, image, imagePullPolicy, token string, kubeletPort, webhookPort int, imagePullSecrets []string) *SharedAgent
func (*SharedAgent) EnsureResources ¶ added in v0.3.0
func (s *SharedAgent) EnsureResources(ctx context.Context) error
func (*SharedAgent) Name ¶ added in v0.3.0
func (s *SharedAgent) Name() string
type VirtualAgent ¶ added in v0.3.0
type VirtualAgent struct {
*Config
Image string
ImagePullPolicy string
ImageRegistry string
// contains filtered or unexported fields
}
func NewVirtualAgent ¶ added in v0.3.0
func NewVirtualAgent(config *Config, serviceIP, token, Image, ImagePullPolicy string, imagePullSecrets []string) *VirtualAgent
func (*VirtualAgent) EnsureResources ¶ added in v0.3.0
func (v *VirtualAgent) EnsureResources(ctx context.Context) error
func (*VirtualAgent) Name ¶ added in v0.3.0
func (v *VirtualAgent) Name() string
Click to show internal directories.
Click to hide internal directories.