configurationchanger

package
v0.0.0-...-556b8be Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CanaryWeightManipulator

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

CanaryWeightManipulator allows to manipulate the traffic weight for the canary in the VirtualService

func NewCanaryWeightManipulator

func NewCanaryWeightManipulator(mesh mesh.Mesh, canaryWeight int32) *CanaryWeightManipulator

NewCanaryWeightManipulator creates a CanaryWeightManipulator

func (*CanaryWeightManipulator) Manipulate

func (c *CanaryWeightManipulator) Manipulate(ch *chart.Chart) error

Manipulate updates the provided traffic weight in the VirtualService contained in the chart

type ChartManipulator

type ChartManipulator interface {
	Manipulate(ch *chart.Chart) error
}

ChartManipulator interface for manipulating charts

type ConfigurationChanger

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

ConfigurationChanger supports to update a Chart in the Git repo

func NewConfigurationChanger

func NewConfigurationChanger(configServiceURL string) *ConfigurationChanger

NewConfigurationChanger creates a ConfigurationChanger

func (*ConfigurationChanger) UpdateLoadedChart

func (c *ConfigurationChanger) UpdateLoadedChart(chart *chart.Chart, event keptnv2.EventData, generated bool,
	chartUpdater ChartManipulator) (*chart.Chart, string, error)

UpdateLoadedChart updates the passed chart and stores it in Git

type IConfigurationChanger

type IConfigurationChanger interface {
	UpdateLoadedChart(chart *chart.Chart, event keptnv2.EventData, generated bool, chartUpdater ChartManipulator) (*chart.Chart, string, error)
}

IConfigurationChanger defines operations to change the configuration of a helm chart

type ReplicaCountManipulator

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

ReplicaCountManipulator allows to manipulate the replica count of Deployments contained in a chart

func NewReplicaCountManipulator

func NewReplicaCountManipulator(replicaIncrement int) *ReplicaCountManipulator

NewReplicaCountManipulator creates a new ReplicaCountManipulator

func (*ReplicaCountManipulator) Manipulate

func (u *ReplicaCountManipulator) Manipulate(ch *chart.Chart) error

Manipulate increases the replica count in the deployments by the provided replicaIncrement

type ValuesManipulator

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

ValuesManipulator allows to manipulate the values of a Helm chart

func NewValuesManipulator

func NewValuesManipulator(values map[string]interface{}) *ValuesManipulator

NewValuesManipulator creates a new ValuesManipulator

func (*ValuesManipulator) Manipulate

func (v *ValuesManipulator) Manipulate(ch *chart.Chart) error

Manipulate updates the values

Jump to

Keyboard shortcuts

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