Documentation
¶
Index ¶
- func ConnectCluster() *kubernetes.Clientset
- func GetClientSet(kubeconfigPath string) *kubernetes.Clientset
- func GetClusterName() string
- func GetKubeConfigPath() string
- func GetUser(cluster string) (string, error)
- func SanitizeConfigMap(configMap []byte) string
- func TrimClusterName(cluster []byte) string
- type AppsExec
- type AppsRun
- type Connection
- type JobContext
- type JobYaml
- type KubeContext
- type TemplateField
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConnectCluster ¶
func ConnectCluster() *kubernetes.Clientset
Initiate communication with cluster
func GetClientSet ¶
func GetClientSet(kubeconfigPath string) *kubernetes.Clientset
func SanitizeConfigMap ¶
func TrimClusterName ¶
Remove the line feed on the cluster Name
Types ¶
type Connection ¶
type Connection struct {
KubeConfigPath string
ClientSet *kubernetes.Clientset
Cluster string
}
func (Connection) NewConnection ¶
func (clusterConnection Connection) NewConnection() bool
type JobContext ¶
type KubeContext ¶
type TemplateField ¶
func ListTemplateFields ¶
func ListTemplateFields(t *template.Template) []TemplateField
func NewField ¶
func NewField(node string) (TemplateField, error)
Click to show internal directories.
Click to hide internal directories.