util

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2020 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildArgumentListFromMap

func BuildArgumentListFromMap(baseArguments, overrideArguments map[string]string) (command []string)

func GetProxyEnvVars

func GetProxyEnvVars() []corev1.EnvVar

GetProxyEnvVars builds a list of environment variables to use in the control plane containers in order to use the right proxy

func WriteKubeComponent

func WriteKubeComponent(obj runtime.Object, path string) error

Types

type APIEndpoint

type APIEndpoint struct {
	// The hostname on which the API server is serving.
	Host string `json:"host"`

	// The port on which the API server is serving.
	Port int32 `json:"port"`
}

APIEndpoint represents a reachable Kubernetes API endpoint using scheme-less host:port (port is optional).

func (APIEndpoint) IsZero

func (v APIEndpoint) IsZero() bool

IsZero returns true if host and the port are zero values.

func (APIEndpoint) String

func (v APIEndpoint) String() string

String returns a formatted version HOST:PORT of this APIEndpoint.

func (*APIEndpoint) UnmarshalJSON

func (v *APIEndpoint) UnmarshalJSON(data []byte) error

type HostPathMount

type HostPathMount struct {
	// Name of the volume inside the pod template.
	Name string `json:"name,omitempty"`
	// HostPath is the path in the host that will be mounted inside
	// the pod.
	HostPath string `json:"hostPath,omitempty"`
	// MountPath is the path inside the pod where hostPath will be mounted.
	MountPath string `json:"mountPath,omitempty"`
	// ReadOnly controls write access to the volume
	ReadOnly bool `json:"readOnly,omitempty"`

	HostPathType corev1.HostPathType `json:"hostPathType,omitempty"`
}

HostPathMount contains elements describing volumes that are mounted from the host.

Jump to

Keyboard shortcuts

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