Documentation ¶
Index ¶
- Constants
- Variables
- func BootstrapVampService(configPath string) (string, string, string, error)
- func CheckAndWaitForService(url string, cert []byte) error
- func CreateOrUpdateDeployment(clientset *kubernetes.Clientset, ns string, deployment *appsv1.Deployment) error
- func CreateOrUpdateOpaqueSecret(clientset *kubernetes.Clientset, ns string, name string, ...) error
- func CreateOrUpdateSecret(clientset *kubernetes.Clientset, ns string, secret *apiv1.Secret) error
- func CreateOrUpdateService(clientset *kubernetes.Clientset, ns string, service *apiv1.Service) error
- func CreateOrUpdateStatefulSet(clientset *kubernetes.Clientset, ns string, statefulSet *appsv1.StatefulSet) error
- func GetKubeConfigPath(configPath string) *string
- func GetOpaqueSecret(clientset *kubernetes.Clientset, ns string, name string) (map[string][]byte, error)
- func GetServiceExternalIP(clientset *kubernetes.Clientset, ns string, name string) (string, error)
- func InstallMongoDB(clientset *kubernetes.Clientset, ns string) error
- func InstallVamp(clientset *kubernetes.Clientset, ns string, config *models.VampConfig) (*string, []byte, []byte, error)
- func InstallVampService(config *models.VampConfig, configPath string) (string, []byte, []byte, error)
- func SetupVampCredentials(clientset *kubernetes.Clientset, ns string) error
- func VampConfigValidateAndSetupDefaults(config *models.VampConfig) (*models.VampConfig, error)
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",
AccessTokenExpiration: "10m",
}
Golang does't support struct constants Default values for an installation config
Functions ¶
func BootstrapVampService ¶
func CheckAndWaitForService ¶ added in v0.0.22
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 CreateOrUpdateSecret ¶ added in v0.0.22
func CreateOrUpdateService ¶ added in v0.0.22
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
Tries to detect kubeconfig path if it is not explicitly set
func GetOpaqueSecret ¶ added in v0.0.22
func GetServiceExternalIP ¶ added in v0.0.22
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 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.
Click to show internal directories.
Click to hide internal directories.