helper

package
v0.0.0-...-36354f6 Latest Latest
Warning

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

Go to latest
Published: May 23, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ComponentName = "ncs-kubernetes-extensions"
)

Variables

View Source
var HealthCheck = http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
	w.Header().Set("Content-Type", "application/json")
	w.WriteHeader(200)
	_, _ = w.Write(status)
})

Functions

func GetDefaultLabels

func GetDefaultLabels() map[string]string

func NewK8SClient

func NewK8SClient() (kubernetes.Interface, error)

func NewSecret

func NewSecret(name, namespace string, typ corev1.SecretType) *corev1.Secret

Types

type Annotation

type Annotation interface {
	GetKey(name ...string) string
	GetValue(names ...string) string
	GetValueOrDefault(name, def string) string
	IsEnabled() bool
}

func NewAnnotationHelper

func NewAnnotationHelper(annotation map[string]string, keys ...string) Annotation

NewAnnotationHelper keys = ncs.extensions.keys...k8s.io

Jump to

Keyboard shortcuts

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