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 ¶
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