services

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSecretsWithKeys

func GetSecretsWithKeys(k8sClient kubernetes.Interface, namespace string, keys []string) ([]corev1.Secret, error)

func GetSecretsWithRegexKeys

func GetSecretsWithRegexKeys(k8sClient kubernetes.Interface, namespace string, keyExpr string) ([]corev1.Secret, error)

func ReadKubeconfig

func ReadKubeconfig() (kubernetes.Interface, string, error)

func ReadProxyProps

func ReadProxyProps(e *Env) error

func ReadSecret

func ReadSecret(k8sClient kubernetes.Interface, namespace string, optional bool, keys []string) (*corev1.Secret, error)

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"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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