exposestrategy

package
v2.17.0-beta.0 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2021 License: Apache-2.0 Imports: 23 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() error

CleanUp deletes the resources.

func (*AgentConfig) DeployAgentPod

func (a *AgentConfig) DeployAgentPod() 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 ClusterJig

type ClusterJig struct {
	Log            *zap.SugaredLogger
	Name           string
	DatacenterName string
	Version        semver.Semver
	Client         ctrlruntimeclient.Client

	Cluster *kubermaticv1.Cluster
}

ClusterJig helps setting up a user cluster for testing.

func (*ClusterJig) CleanUp

func (c *ClusterJig) CleanUp() error

CleanUp deletes the cluster.

func (*ClusterJig) SetUp

func (c *ClusterJig) SetUp() error

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