Documentation ¶
Index ¶
- Variables
- func FetchKubeanConfigProperty(client kubernetes.Interface) *cluster.ConfigProperty
- func GetCurrentNS() (string, error)
- func GetCurrentNSOrDefault() string
- func GetCurrentRunningPodName() string
- func IsExist(filepath string) bool
- func NewCertManager(Orz []string, effectiveTime time.Duration, dnsNames []string, ...) *certManager
- func NewSchema() *runtime.Scheme
- func UpdateOwnReference(client kubernetes.Interface, configMapList []*apis.ConfigMapRef, ...) error
- func WriteFile(filepath string, bytes []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ServiceAccountNamespaceFile = "/var/run/secrets/kubernetes.io/serviceaccount/namespace"
Functions ¶
func FetchKubeanConfigProperty ¶ added in v0.18.3
func FetchKubeanConfigProperty(client kubernetes.Interface) *cluster.ConfigProperty
func GetCurrentNS ¶
GetCurrentNS fetch namespace the current pod running in. reference to client-go (config *inClusterClientConfig) Namespace() (string, bool, error).
func GetCurrentNSOrDefault ¶
func GetCurrentNSOrDefault() string
func GetCurrentRunningPodName ¶ added in v0.9.0
func GetCurrentRunningPodName() string
func NewCertManager ¶ added in v0.9.0
func NewSchema ¶
NewSchema returns a singleton schema set which aggregated Kubernetes's schemes and extended schemes.
func UpdateOwnReference ¶ added in v0.8.2
func UpdateOwnReference(client kubernetes.Interface, configMapList []*apis.ConfigMapRef, secretList []*apis.SecretRef, belongToReference metav1.OwnerReference) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.