kubernetes

package
v3.12.0 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2023 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Overview

Utilities to connect to and command a Kubernetes cluster to start and shut down pods. Used for running PIQUANT computations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KubeHelper

type KubeHelper struct {
	Clientset  *kubernetes.Clientset
	Kubeconfig string
	Log        logger.ILogger
}

func (*KubeHelper) Bootstrap

func (k *KubeHelper) Bootstrap(location string, apiLog logger.ILogger)

func (*KubeHelper) DeletePod

func (k *KubeHelper) DeletePod(namespace string, name string) error

func (*KubeHelper) RunPod

func (k *KubeHelper) RunPod(
	cmd []string,
	args []string,
	env map[string]string,
	volumes []apiv1.Volume,
	volumeMounts []apiv1.VolumeMount,
	dockerImage string,
	namespace string,
	podnameprefix string,
	labels map[string]string,
	creator pixlUser.UserInfo,
	background bool) (string, error)

Jump to

Keyboard shortcuts

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