system

package
v1.5.5 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetManagerNamespace

func GetManagerNamespace() string

GetManagerNamespace return the namespace where the controller is running.

func GetNamespaceFromFile

func GetNamespaceFromFile(nsFilePath string) (string, error)

GetNamespaceFromFile returns the namespace from a file. This code is copied from controller-runtime, because it is a private method there. https://github.com/kubernetes-sigs/controller-runtime/blob/316aea4229158103123166a5e45076f1a86bd807/pkg/leaderelection/leader_election.go#L104

Types

This section is empty.

Jump to

Keyboard shortcuts

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