configcheck

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2023 License: Apache-2.0 Imports: 16 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
	Resources   corev1.ResourceRequirements
}

func New

func New(
	config []byte,
	c client.Client,
	cs *kubernetes.Clientset,
	va *vectorv1alpha1.Vector,
) *ConfigCheck

func (*ConfigCheck) Run

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

Jump to

Keyboard shortcuts

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