k8s

package
v0.1.21 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Copyright (C) 2021-2024, Kubefirst

This program is licensed under MIT. See the LICENSE file for more details.

This program is licensed under MIT. See the LICENSE file for more details.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateSecretV2

func CreateSecretV2(clientset *kubernetes.Clientset, secret *v1.Secret) error

CreateSecretV2 creates a Kubernetes Secret

func DeleteSecretV2 added in v0.1.21

func DeleteSecretV2(clientset *kubernetes.Clientset, namespace string, secretName string) error

DeleteSecretV2 reads the content of a Kubernetes Secret

func ReadSecretV2

func ReadSecretV2(clientset *kubernetes.Clientset, namespace string, secretName string) (map[string]interface{}, error)

ReadSecretV2 reads the content of a Kubernetes Secret

func UpdateSecretV2

func UpdateSecretV2(clientset *kubernetes.Clientset, namespace string, secretName string, secretValues map[string][]byte) error

UpdateSecretV2 updates the key value pairs of a Kubernetes Secret

Types

type CloudAccountsArgs added in v0.1.21

type CloudAccountsArgs struct {
	CloudAccounts string `json:"cloud_accounts"`
}

type KubernetesClient

type KubernetesClient struct {
	Clientset      *kubernetes.Clientset
	RestConfig     *rest.Config
	KubeConfigPath string
}

func CreateKubeConfig

func CreateKubeConfig(inCluster bool, kubeConfigPath string) *KubernetesClient

CreateKubeConfig returns a struct KubernetesClient with references to a clientset, restConfig, and path to the Kubernetes config used to generate the client

type UpdateSecretArgs

type UpdateSecretArgs struct {
	ConsoleTour string `json:"console-tour"`
}

Jump to

Keyboard shortcuts

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