Documentation ¶
Overview ¶
Package k8s contains helper functions to establlish connection and communicate with k8s apis
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // KubeConfig specifies the path of kubeconfig file KubeConfig string // ContextName specifies the name of kubeconfig context ContextName string // kubearmor-ca secret label KubeArmorCALabels = map[string]string{ "kubearmor-app": "kubearmor-ca", } )
Functions ¶
func AutoDetectEnvironment ¶ added in v0.13.4
AutoDetectEnvironment detect the environment for a given k8s context
func GetKubeArmorCaSecret ¶ added in v1.2.0
func GetKubeArmorCaSecret(client kubernetes.Interface) (string, string)
Types ¶
type Client ¶
type Client struct { K8sClientset kubernetes.Interface KSPClientset ksp.SecurityV1Interface APIextClientset apiextensionsclientset.Interface RawConfig clientcmdapi.Config Config *rest.Config }
Client Structure
Click to show internal directories.
Click to hide internal directories.