Documentation ¶
Index ¶
- func CreateNamespaceIfNotExist(namespace string, existingNamespaces map[string]bool, k8sClient *k8s.Clientset) error
- func CreateSecrets(k8sClient *k8s.Clientset, existingNamespaces map[string]bool, ...) error
- func CreateSecretsByNamespace(k8sClient *k8s.Clientset, namespace string, deployment *apis.Deployment) error
- func CreateServiceForDeployment(namespace string, serviceName string, family string, k8sClient *k8s.Clientset, ...) error
- func DeleteK8S(namespaces []string, kubeConfig *rest.Config, log *logging.Logger) error
- func DeleteNodeReaderClusterRoleBindingToNamespace(k8sClient *k8s.Clientset, namespace string, log *logging.Logger)
- func DeployKubernetesObjects(config *viper.Viper, k8sClient *k8s.Clientset, deployment *apis.Deployment, ...) (map[string]ServiceMapping, error)
- func DeployServices(config *viper.Viper, k8sClient *k8s.Clientset, deployment *apis.Deployment, ...) (map[string]ServiceMapping, error)
- func FindNodeIdFromServiceName(deployment *apis.Deployment, serviceName string) (int, error)
- func GetAllDeployedNamespaces(deployment *apis.Deployment) []string
- func GetExistingNamespaces(k8sClient *k8s.Clientset) (map[string]bool, error)
- func GetNamespace(objectMeta metav1.ObjectMeta) string
- func GrantNodeReaderPermissionToNamespace(k8sClient *k8s.Clientset, namespace string, log *logging.Logger) error
- func TagKubeNodes(k8sClient *k8s.Clientset, deploymentName string, ...) error
- func WaitUntilKubernetesNodeExists(k8sClient *k8s.Clientset, nodeNames []string, timeout time.Duration, ...) error
- type ServiceMapping
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateSecrets ¶
func DeployKubernetesObjects ¶
func DeployServices ¶
func FindNodeIdFromServiceName ¶
func FindNodeIdFromServiceName(deployment *apis.Deployment, serviceName string) (int, error)
FindNodeIdFromServiceName finds the node id that should be running this service
func GetAllDeployedNamespaces ¶
func GetAllDeployedNamespaces(deployment *apis.Deployment) []string
func GetExistingNamespaces ¶
func GetNamespace ¶
func GetNamespace(objectMeta metav1.ObjectMeta) string
func GrantNodeReaderPermissionToNamespace ¶
func GrantNodeReaderPermissionToNamespace(k8sClient *k8s.Clientset, namespace string, log *logging.Logger) error
GrantNodeReaderPermissionToNamespace grant read permission to the default user belongs to specified namespace
func TagKubeNodes ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.