factory

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2020 License: Apache-2.0 Imports: 33 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateOrUpdateConfigurationSecret

func CreateOrUpdateConfigurationSecret(ctx context.Context, cr *victoriametricsv1beta1.VmAgent, rclient client.Client, c *conf.BaseOperatorConf) error

func CreateOrUpdateRuleConfigMaps

func CreateOrUpdateRuleConfigMaps(ctx context.Context, cr *victoriametricsv1beta1.VmAlert, rclient client.Client) ([]string, error)

func CreateOrUpdateTlsAssets added in v0.0.2

func CreateOrUpdateTlsAssets(ctx context.Context, cr *victoriametricsv1beta1.VmAgent, rclient client.Client) error

func CreateOrUpdateVmAgent

func CreateOrUpdateVmAgent(ctx context.Context, cr *victoriametricsv1beta1.VmAgent, rclient client.Client, c *conf.BaseOperatorConf) (reconcile.Result, error)

we assume, that configmaps were created before this function was called

func CreateOrUpdateVmAlert

func CreateOrUpdateVmAlert(ctx context.Context, cr *victoriametricsv1beta1.VmAlert, rclient client.Client, c *conf.BaseOperatorConf, cmNames []string) (reconcile.Result, error)

func MergePatchContainers

func MergePatchContainers(base, patches []v1.Container) ([]v1.Container, error)

MergePatchContainers adds patches to base using a strategic merge patch and iterating by container name, failing on the first error

func SelectRules

func SelectRules(ctx context.Context, cr *victoriametricsv1beta1.VmAlert, rclient client.Client) (map[string]string, error)

Types

type BasicAuthCredentials

type BasicAuthCredentials struct {
	// contains filtered or unexported fields
}

BasicAuthCredentials represents a username password pair to be used with basic http authentication, see https://tools.ietf.org/html/rfc7617.

type BearerToken

type BearerToken string

BearerToken represents a bearer token, see https://tools.ietf.org/html/rfc6750.

Jump to

Keyboard shortcuts

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