kube

package
v2.5.0 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2023 License: Apache-2.0 Imports: 42 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KubeNodeName = "KUBE_NODE_NAME"
	AppName      = "baetyl-app-name"
	AppVersion   = "baetyl-app-version"
	ServiceName  = "baetyl-service-name"
	PrefixBaetyl = "baetyl-"

	RegistryAddress  = "address"
	RegistryUsername = "username"
	RegistryPassword = "password"

	ServiceAccountName = "baetyl-edge-system-service-account"
	MasterRole         = "node-role.kubernetes.io/master"
	BaetylSetPodSpec   = "baetyl_set_pod_spec"
)

Variables

View Source
var (
	ErrSetPodSpec = errors.New("failed to convert SetPodSpec function")
)

Functions

func SetPodSpec added in v2.2.0

func SetPodSpec(spec *corev1.PodSpec, _ *specv1.Application) (*corev1.PodSpec, error)

func TransSvcToContainer added in v2.3.0

func TransSvcToContainer(svc *specv1.Service, c *corev1.Container) (*corev1.Container, error)

Types

type SetPodSpecFunc added in v2.2.0

type SetPodSpecFunc func(*corev1.PodSpec, *specv1.Application) (*corev1.PodSpec, error)

Jump to

Keyboard shortcuts

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