helpers

package
v0.4.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CommandKind = vcbus.SchemeGroupVersion.WithKind("Command")

CommandKind creates command GroupVersionKind

View Source
var JobKind = vcbatch.SchemeGroupVersion.WithKind("Job")

JobKind creates job GroupVersionKind

View Source
var V1beta1QueueKind = schedulerv1beta1.SchemeGroupVersion.WithKind("Queue")

V1beta1QueueKind is queue kind with v1alpha2 version

Functions

func CreateOrUpdateConfigMap added in v0.4.1

func CreateOrUpdateConfigMap(job *vcbatch.Job, kubeClients kubernetes.Interface, data map[string]string, cmName string) error

CreateOrUpdateConfigMap : 1. creates config map resource if not present 2. updates config map is necessary

func CreateSecret

func CreateSecret(job *vcbatch.Job, kubeClients kubernetes.Interface, data map[string][]byte, secretName string) error

CreateSecret create secret

func DeleteConfigmap

func DeleteConfigmap(job *vcbatch.Job, kubeClients kubernetes.Interface, cmName string) error

DeleteConfigmap deletes the config map resource

func DeleteSecret

func DeleteSecret(job *vcbatch.Job, kubeClients kubernetes.Interface, secretName string) error

DeleteSecret delete secret

func GeneratePodgroupName

func GeneratePodgroupName(pod *v1.Pod) string

GeneratePodgroupName generate podgroup name of normal pod

func StartHealthz

func StartHealthz(healthzBindAddress, name string) error

StartHealthz register healthz interface

Types

This section is empty.

Jump to

Keyboard shortcuts

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