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 ¶
GetRolloutVirtualServiceKeys gets the virtual service and its namespace from a rollout
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
Click to show internal directories.
Click to hide internal directories.