k8s

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2019 License: BSD-3-Clause Imports: 14 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractNginxSpec

func ExtractNginxSpec(o metav1.ObjectMeta) (v1alpha1.NginxSpec, error)

ExtractNginxSpec extracts the nginx used to create the object

func GetNginxNameFromObject

func GetNginxNameFromObject(o metav1.Object) string

func LabelsForNginx

func LabelsForNginx(name string) map[string]string

LabelsForNginx returns the labels for a Nginx CR with the given name

func LabelsForNginxString

func LabelsForNginxString(name string) string

LabelsForNginxString returns the labels in string format.

func NewDeployment

func NewDeployment(n *v1alpha1.Nginx) (*appv1.Deployment, error)

NewDeployment creates a deployment for a given Nginx resource.

func NewService

func NewService(n *v1alpha1.Nginx) *corev1.Service

NewService assembles the ClusterIP service for the Nginx

func SetNginxSpec

func SetNginxSpec(o *metav1.ObjectMeta, spec v1alpha1.NginxSpec) error

SetNginxSpec sets the nginx spec into the object annotation to be later extracted

Types

This section is empty.

Jump to

Keyboard shortcuts

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