istio

package
v0.9.3 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2020 License: Apache-2.0 Imports: 13 Imported by: 1

Documentation

Index

Constants

View Source
const Type = "Istio"

Variables

This section is empty.

Functions

func GetHttpRoutesI added in v0.9.0

func GetHttpRoutesI(obj *unstructured.Unstructured) ([]interface{}, error)

func GetRolloutVirtualServiceKeys

func GetRolloutVirtualServiceKeys(rollout *v1alpha1.Rollout) []string

GetRolloutVirtualServiceKeys gets the virtual service and its namespace from a rollout

func ValidateHTTPRoutes added in v0.9.0

func ValidateHTTPRoutes(r *v1alpha1.Rollout, httpRoutes []HttpRoute) error

validateHTTPRoutes ensures that all the routes in the rollout exist and they only have two destinations

Types

type HttpRoute added in v0.9.0

type HttpRoute struct {
	Name  string  `json:"name,omitempty"`
	Route []route `json:"route,omitempty"`
}

httpRoute fields within the HTTP struct of the Virtual Service that the controller modifies

func GetHttpRoutes added in v0.9.0

func GetHttpRoutes(obj *unstructured.Unstructured, httpRoutesI []interface{}) ([]HttpRoute, error)

type Reconciler

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

Reconciler holds required fields to reconcile Istio resources

func NewReconciler

func NewReconciler(r *v1alpha1.Rollout, client dynamic.Interface, recorder record.EventRecorder, defaultAPIVersion string, istioVirtualServiceLister dynamiclister.Lister) *Reconciler

NewReconciler returns a reconciler struct that brings the Virtual Service into the desired state

func (*Reconciler) Reconcile

func (r *Reconciler) Reconcile(desiredWeight int32) error

Reconcile modifies Istio resources to reach desired state

func (*Reconciler) Type

func (r *Reconciler) Type() string

Type indicates this reconciler is an Istio reconciler

Jump to

Keyboard shortcuts

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