utils

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2019 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeploymentCreate

func DeploymentCreate(client *kubernetes.Clientset, new *appsv1.Deployment) (*appsv1.Deployment, error)

DeploymentCreate is a wrapper which will attempt to create and/or up a deployment.

func IngressCreate

IngressCreate is a wrapper which will attempt to create and/or up an ingress.

func NamespaceCreate added in v0.6.0

func NamespaceCreate(client *kubernetes.Clientset, new *corev1.Namespace) (*corev1.Namespace, error)

NamespaceCreate is a wrapper which will only create a namespace.

func PersistentVolumeClaimCreate

func PersistentVolumeClaimCreate(client *kubernetes.Clientset, new *corev1.PersistentVolumeClaim) (*corev1.PersistentVolumeClaim, error)

PersistentVolumeClaimCreate is used for creating new Persistent Volume Claims.

func PodCreate

func PodCreate(client *kubernetes.Clientset, pod *corev1.Pod) (*corev1.Pod, error)

PodCreate is used for creating a Pod object.

func PodWait added in v0.8.0

func PodWait(client *kubernetes.Clientset, namespace, name string) error

PodWait will wait for a Pod to start.

func RoleCreate added in v0.6.0

func RoleCreate(client *kubernetes.Clientset, new *rbacv1.Role) (*rbacv1.Role, error)

RoleCreate is a wrapper which will attempt to create and/or up an Roles.

func SecretCreate

func SecretCreate(client *kubernetes.Clientset, new *corev1.Secret) (*corev1.Secret, error)

SecretCreate is a wrapper which will attempt to create and/or up a secret.

func ServiceCreate

func ServiceCreate(client *kubernetes.Clientset, new *corev1.Service) (*corev1.Service, error)

ServiceCreate is a wrapper which will attempt to create and/or up a service.

Types

This section is empty.

Jump to

Keyboard shortcuts

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