k8s

package
v0.0.0-...-dc0d138 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Deployment = ResourceType("deployment")
	Service    = ResourceType("service")
	Ingress    = ResourceType("ingress")
)

Variables

This section is empty.

Functions

func DefaultMap

func DefaultMap() map[string]string

func GetIngressAnnotations

func GetIngressAnnotations(n *devopsV1.Nginx) map[string]string

func GetIngressClassName

func GetIngressClassName(n *devopsV1.Nginx) *string

func GetIngressDefaultBackend

func GetIngressDefaultBackend(n *devopsV1.Nginx) *networkingV1.IngressBackend

func GetIngressLabels

func GetIngressLabels(n *devopsV1.Nginx) map[string]string

func GetIngressRule

func GetIngressRule(n *devopsV1.Nginx, path, host string) networkingV1.IngressRule

func GetIngressRules

func GetIngressRules(n *devopsV1.Nginx) []networkingV1.IngressRule

func GetObjectMeta

func GetObjectMeta(res ResourceType, n *devopsV1.Nginx, labels, annotations map[string]string) metaV1.ObjectMeta

func GetServiceAnnotations

func GetServiceAnnotations(n *devopsV1.Nginx) map[string]string

func GetServiceLabels

func GetServiceLabels(n *devopsV1.Nginx) map[string]string

func GetServicePorts

func GetServicePorts() []coreV1.ServicePort

func GetServiceSelector

func GetServiceSelector(n *devopsV1.Nginx) map[string]string

func GetServiceType

func GetServiceType(n *devopsV1.Nginx) coreV1.ServiceType

func GetTypeMeta

func GetTypeMeta(res ResourceType) metaV1.TypeMeta

func LabelsForNginx

func LabelsForNginx(name string) map[string]string

func LambdaCompare

func LambdaCompare(f func() bool, a, b interface{}) interface{}

func MakeKeyForNginx

func MakeKeyForNginx(key string) string

func MergeMap

func MergeMap(a, b map[string]string) map[string]string

func NewDeployment

func NewDeployment(n *devopsV1.Nginx) (*appsV1.Deployment, error)

func NewIngress

func NewIngress(n *devopsV1.Nginx) *networkingV1.Ingress

func NewService

func NewService(n *devopsV1.Nginx) *coreV1.Service

Types

type ResourceType

type ResourceType string

type StringUtils

type StringUtils struct {
	Value     string
	Defaulted string
}

func NewDefaultStringUtils

func NewDefaultStringUtils(value, defaulted string) *StringUtils

func NewStringUtils

func NewStringUtils(value string) *StringUtils

func (*StringUtils) IsEmpty

func (s *StringUtils) IsEmpty() bool

func (*StringUtils) ValueOrDefault

func (s *StringUtils) ValueOrDefault() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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