Documentation ¶
Index ¶
- type KubernetesClient
- func (client *KubernetesClient) CreateApplicationEvent(app *appv1alpha1.Application, reason string, message string, ...) (*v1.Event, error)
- func (client *KubernetesClient) GetSecretData(namespace string, secretName string) (map[string][]byte, error)
- func (client *KubernetesClient) GetSecretField(namespace string, secretName string, field string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KubernetesClient ¶
type KubernetesClient struct { Clientset kubernetes.Interface ApplicationsClientset versioned.Interface Context context.Context Namespace string }
func NewKubernetesClient ¶
func NewKubernetesClient(ctx context.Context, client kubernetes.Interface, applicationsClientset versioned.Interface, namespace string) *KubernetesClient
func NewKubernetesClientFromConfig ¶
func NewKubernetesClientFromConfig(ctx context.Context, namespace string, kubeconfig string) (*KubernetesClient, error)
NewKubernetesClient creates a new Kubernetes client object from given configuration file. If configuration file is the empty string, in-cluster client will be created.
func (*KubernetesClient) CreateApplicationEvent ¶ added in v0.10.2
func (client *KubernetesClient) CreateApplicationEvent(app *appv1alpha1.Application, reason string, message string, annotations map[string]string) (*v1.Event, error)
CreateApplicationevent creates a kubernetes event with a custom reason and message for an application.
func (*KubernetesClient) GetSecretData ¶
func (client *KubernetesClient) GetSecretData(namespace string, secretName string) (map[string][]byte, error)
GetSecretData returns the raw data from named K8s secret in given namespace
func (*KubernetesClient) GetSecretField ¶
func (client *KubernetesClient) GetSecretField(namespace string, secretName string, field string) (string, error)
GetSecretField returns the value of a field from named K8s secret in given namespace
Click to show internal directories.
Click to hide internal directories.