system

package
v2.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Overview

Package system contains utiilities for the system namespace.

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

func GetPartitionFromRegion added in v2.1.0

func GetPartitionFromRegion(region string) string

GetPartitionFromRegion returns the cluster partition.

Types

This section is empty.

Jump to

Keyboard shortcuts

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