Documentation
¶
Index ¶
- func GetSecretsWithKeys(k8sClient kubernetes.Interface, namespace string, keys []string) ([]corev1.Secret, error)
- func GetSecretsWithRegexKeys(k8sClient kubernetes.Interface, namespace string, keyExpr string) ([]corev1.Secret, error)
- func ReadKubeconfig() (kubernetes.Interface, string, error)
- func ReadProxyProps(e *Env) error
- func ReadSecret(k8sClient kubernetes.Interface, namespace string, optional bool, keys []string) (*corev1.Secret, error)
- func ReadServiceAccount(k8sClient kubernetes.Interface, namespace string) (string, error)
- type Env
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetSecretsWithKeys ¶
func GetSecretsWithRegexKeys ¶
func ReadKubeconfig ¶
func ReadKubeconfig() (kubernetes.Interface, string, error)
func ReadProxyProps ¶
func ReadSecret ¶
func ReadServiceAccount ¶
func ReadServiceAccount(k8sClient kubernetes.Interface, namespace string) (string, error)
Types ¶
type Env ¶
type Env struct {
HTTPProxy string `yaml:"httpProxy,omitempty"`
HTTPSProxy string `yaml:"httpsProxy,omitempty"`
NoProxy string `yaml:"noProxy,omitempty"`
PodCIDR *string `yaml:"podCIDR"`
ProxyCaCertData string `yaml:"proxyCaCertData,omitempty"`
ProxyCaCertName string `yaml:"proxyCaCertName,omitempty"`
ProxyCaCertPath string `yaml:"proxyCaCertPath,omitempty"`
ServiceIPRange *string `yaml:"serviceIPRange"`
}
Click to show internal directories.
Click to hide internal directories.