custom

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2023 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OriginalSpecAnnotation = "rollouts.kruise.io/original-spec-configuration"
	LuaConfigMap           = "kruise-rollout-configuration"
)

Variables

This section is empty.

Functions

func NewCustomController

func NewCustomController(client client.Client, conf Config) (network.NetworkProvider, error)

Types

type Config

type Config struct {
	Key           string
	RolloutNs     string
	CanaryService string
	StableService string
	// network providers need to be created
	TrafficConf []v1beta1.ObjectRef
	OwnerRef    metav1.OwnerReference
}

type Data

type Data struct {
	Spec        interface{}       `json:"spec,omitempty"`
	Labels      map[string]string `json:"labels,omitempty"`
	Annotations map[string]string `json:"annotations,omitempty"`
}

type LuaData

type LuaData struct {
	Data          Data
	CanaryWeight  int32
	StableWeight  int32
	Matches       []v1beta1.HttpRouteMatch
	CanaryService string
	StableService string
}

Jump to

Keyboard shortcuts

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