Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateNewClientset ¶
func CreateNewClientset(kubeconfig string) (kubernetes.Interface, error)
Create a new kubernetes clientset from the provided kubeconfig. Default to in-cluster if none is provided.
func GetNamespace ¶
Read the namespace from the inserted serviceaccount file. Fallback to default if the file does not exist.
func NewErrorGetNamespace ¶
Types ¶
type ErrorGetNamespace ¶
type ErrorGetNamespace struct {
// contains filtered or unexported fields
}
func (*ErrorGetNamespace) Error ¶
func (e *ErrorGetNamespace) Error() string
Click to show internal directories.
Click to hide internal directories.