Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsRunningOnDocker ¶
func IsRunningOnDocker() bool
IsRunningOnDocker checks whether the application is running in a Docker container.
func IsRunningOnKubernetes ¶
func IsRunningOnKubernetes() bool
IsRunningOnKubernetes checks whether the application is running on a Kubernetes cluster.
func KubernetesConfig ¶
func KubernetesConfig() (*kubernetes.Clientset, error)
KubernetesConfig configures the application for Kubernetes.
func LoadSslCert ¶ added in v0.1.2
func LoadSslCert(client IClientSet, nameSpace string, secretKey string, crtFile string, keyFile string) error
LoadSslCert loads an SSL certificate and its private key from a Secrets, and writes them to the pod file system. Those files are automatically deleted when the pod is destroyed.
Types ¶
type IClientSet ¶ added in v0.1.2
type IClientSet interface {
CoreV1() corev1.CoreV1Interface
}
IClientSet the abstracts Kubernetes client API
Click to show internal directories.
Click to hide internal directories.