kubernetes

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2023 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrDNSPatternInvalid = errors.New("name is not a valid kubernetes DNS name")
)

Functions

func New

func New(ctx context.Context) types.Engine

New returns a new Kubernetes Engine.

func PersistentVolumeClaim

func PersistentVolumeClaim(namespace, name, storageClass, size string, storageRwx bool) (*v1.PersistentVolumeClaim, error)

func Pod

func Pod(namespace string, step *types.Step, labels, annotations map[string]string) (*v1.Pod, error)

func Service

func Service(namespace, name, podName string, ports []string) (*v1.Service, error)

Types

type Config

type Config struct {
	Namespace      string
	StorageClass   string
	VolumeSize     string
	StorageRwx     bool
	PodLabels      map[string]string
	PodAnnotations map[string]string
}

Jump to

Keyboard shortcuts

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