configcheck

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ConfigCheckInitiatorVector    = "VectorInitiator"
	ConfigCheckInitiatorPipieline = "PipelineInitiator"
)

Variables

View Source
var (
	ValidationError         = errors.New("config validation error")
	ConfigcheckTimeoutError = errors.New("timeout waiting configcheck pod result")
)

Functions

This section is empty.

Types

type ConfigCheck

type ConfigCheck struct {
	Config []byte

	Client    client.Client
	ClientSet *kubernetes.Clientset

	Name        string
	Namespace   string
	Initiator   string
	Image       string
	Envs        []corev1.EnvVar
	Hash        string
	Tolerations []corev1.Toleration
}

func New

func New(
	config []byte,
	c client.Client,
	cs *kubernetes.Clientset,
	name, namespace, image string,
	envs []corev1.EnvVar,
	tolerations []corev1.Toleration,
) *ConfigCheck

func (*ConfigCheck) Run

func (cc *ConfigCheck) Run(ctx context.Context) error

Jump to

Keyboard shortcuts

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