kube

package
v0.0.0-...-11d49e1 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnvSecret

func EnvSecret(name string, secretName string, secretKey string) coreV1.EnvVar

Helper function fore generating a kubernetes environment variable from a kubernetes secret

func RandStringBytes

func RandStringBytes(n int) string

Types

type Spec

type Spec struct {
	Namespace   string
	Lables      map[string]string
	Secrets     []coreV1.Secret
	ConfigMaps  []coreV1.ConfigMap
	PVCS        []coreV1.PersistentVolumeClaim
	Deployments []appsV1.Deployment
	Services    []coreV1.Service
	Jobs        []batchV1.Job
}

func (*Spec) Create

func (s *Spec) Create(client kubernetes.Interface) error

func (*Spec) Delete

func (s *Spec) Delete(client kubernetes.Interface) error

func (*Spec) InjectLabels

func (s *Spec) InjectLabels(labels map[string]string)

Jump to

Keyboard shortcuts

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