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 NewK8SClient ¶
func NewK8SClient() (kubernetes.Interface, error)
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
Click to show internal directories.
Click to hide internal directories.