k8s

package
v0.15.1 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2024 License: BSD-3-Clause Imports: 16 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 client.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 NewIngress added in v0.8.0

func NewIngress(nginx *v1alpha1.Nginx) *networkingv1.Ingress

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