exposestrategy

package
v3.0.0-...-d6c4d9c Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2023 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AgentConfig

type AgentConfig struct {
	Log       *zap.SugaredLogger
	Namespace string
	Client    ctrlruntimeclient.Client
	Versions  kubermatic.Versions

	// AgentPod is an agent pod using Envoy image.
	AgentPod       *corev1.Pod
	AgentConfigMap *corev1.ConfigMap
}

AgentConfig contains the configuration to deploy an agent like the ones deployed on each node when Tunneling strategy is used.

func (*AgentConfig) CleanUp

func (a *AgentConfig) CleanUp(ctx context.Context) error

CleanUp deletes the resources.

func (*AgentConfig) DeployAgentPod

func (a *AgentConfig) DeployAgentPod(ctx context.Context) error

DeployAgentPod deploys the pod to be used to verify tunneling expose strategy.

func (*AgentConfig) GetKASHostPort

func (a *AgentConfig) GetKASHostPort() string

GetKASHostPort returns the host:port that can be used to reach the KAS passing from the tunnel.

type KubeVersion

type KubeVersion struct {
	Major      string                 `json:"major"`
	Minor      string                 `json:"minor"`
	GitVersion string                 `json:"gitVersion"`
	Other      map[string]interface{} `json:"-"`
}

func (KubeVersion) MajorVersion

func (k KubeVersion) MajorVersion() uint64

func (KubeVersion) MinorVersion

func (k KubeVersion) MinorVersion() uint64

type KubeVersions

type KubeVersions struct {
	ServerVersion KubeVersion `json:"serverVersion"`
	ClientVersion KubeVersion `json:"clientVersion"`
}

KubeVersions is used to unmarshal the output of 'kubectl version -ojson'.

Jump to

Keyboard shortcuts

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