kubeclient

package
v0.0.33 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2019 License: Apache-2.0 Imports: 24 Imported by: 2

Documentation

Index

Constants

View Source
const InstallationNamespace = "vamp-system"

This is shared between installation and credentials, it is currently not configurable TODO: add it to VampConfig when it is configurable

Variables

View Source
var DefaultVampConfig = models.VampConfig{
	DatabaseName: "vamp",
	ImageName:    "magneticio/vampkubist",
	ImageTag:     "0.7.8",
	Mode:         "IN_CLUSTER",
}

Golang does't support struct constants Default values for an installation config

Functions

func BootstrapVampService

func BootstrapVampService(configPath string) (string, string, string, error)

func CheckAndWaitForService added in v0.0.22

func CheckAndWaitForService(url string, cert []byte) error

func CreateOrUpdateDeployment added in v0.0.22

func CreateOrUpdateDeployment(clientset *kubernetes.Clientset, ns string, deployment *appsv1.Deployment) error

func CreateOrUpdateOpaqueSecret added in v0.0.22

func CreateOrUpdateOpaqueSecret(clientset *kubernetes.Clientset, ns string, name string, data map[string][]byte) error

func CreateOrUpdateSecret added in v0.0.22

func CreateOrUpdateSecret(clientset *kubernetes.Clientset, ns string, secret *apiv1.Secret) error

func CreateOrUpdateService added in v0.0.22

func CreateOrUpdateService(clientset *kubernetes.Clientset, ns string, service *apiv1.Service) error

func CreateOrUpdateStatefulSet added in v0.0.22

func CreateOrUpdateStatefulSet(clientset *kubernetes.Clientset, ns string, statefulSet *appsv1.StatefulSet) error

func GetKubeConfigPath added in v0.0.22

func GetKubeConfigPath(configPath string) *string

Tries to detect kubeconfig path if it is not explicitly set

func GetOpaqueSecret added in v0.0.22

func GetOpaqueSecret(clientset *kubernetes.Clientset, ns string, name string) (map[string][]byte, error)

func GetServiceExternalIP added in v0.0.22

func GetServiceExternalIP(clientset *kubernetes.Clientset, ns string, name string) (string, error)

func InstallMongoDB added in v0.0.22

func InstallMongoDB(clientset *kubernetes.Clientset, ns string) error

func InstallVamp added in v0.0.22

func InstallVamp(clientset *kubernetes.Clientset, ns string, config *models.VampConfig) (*string, []byte, []byte, error)

func InstallVampService added in v0.0.22

func InstallVampService(config *models.VampConfig, configPath string) (string, []byte, []byte, error)

func SetupVampCredentials added in v0.0.22

func SetupVampCredentials(clientset *kubernetes.Clientset, ns string) error

This method installs namespace, cluster role binding and image pull secret TODO: differenciate between already exists and other error types

func VampConfigValidateAndSetupDefaults added in v0.0.22

func VampConfigValidateAndSetupDefaults(config *models.VampConfig) (*models.VampConfig, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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