Documentation ¶
Index ¶
- Constants
- type OpenshiftTrafficRouting
- type RpcPlugin
- func (r *RpcPlugin) InitPlugin() pluginTypes.RpcError
- func (r *RpcPlugin) RemoveManagedRoutes(ro *v1alpha1.Rollout) pluginTypes.RpcError
- func (r *RpcPlugin) SetHeaderRoute(ro *v1alpha1.Rollout, headerRouting *v1alpha1.SetHeaderRoute) pluginTypes.RpcError
- func (r *RpcPlugin) SetMirrorRoute(ro *v1alpha1.Rollout, setMirrorRoute *v1alpha1.SetMirrorRoute) pluginTypes.RpcError
- func (r *RpcPlugin) SetWeight(rollout *v1alpha1.Rollout, desiredWeight int32, ...) pluginTypes.RpcError
- func (r *RpcPlugin) Type() string
- func (r *RpcPlugin) UpdateHash(ro *v1alpha1.Rollout, canaryHash, stableHash string, ...) pluginTypes.RpcError
- func (r *RpcPlugin) VerifyWeight(rollout *v1alpha1.Rollout, desiredWeight int32, ...) (pluginTypes.RpcVerified, pluginTypes.RpcError)
Constants ¶
View Source
const ControllerType = "Openshift"
Type holds this controller type
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OpenshiftTrafficRouting ¶
type OpenshiftTrafficRouting struct { // Routes is an array of strings which refer to the names of the Routes used to route traffic to the service Routes []string `json:"routes" protobuf:"bytes,1,name=routes"` }
OpenshiftTrafficRouting defines the configuration required to use Openshift routes for traffic
type RpcPlugin ¶
type RpcPlugin struct {
// contains filtered or unexported fields
}
func (*RpcPlugin) InitPlugin ¶
func (r *RpcPlugin) InitPlugin() pluginTypes.RpcError
func (*RpcPlugin) RemoveManagedRoutes ¶
func (r *RpcPlugin) RemoveManagedRoutes(ro *v1alpha1.Rollout) pluginTypes.RpcError
func (*RpcPlugin) SetHeaderRoute ¶
func (r *RpcPlugin) SetHeaderRoute(ro *v1alpha1.Rollout, headerRouting *v1alpha1.SetHeaderRoute) pluginTypes.RpcError
func (*RpcPlugin) SetMirrorRoute ¶
func (r *RpcPlugin) SetMirrorRoute(ro *v1alpha1.Rollout, setMirrorRoute *v1alpha1.SetMirrorRoute) pluginTypes.RpcError
func (*RpcPlugin) SetWeight ¶
func (r *RpcPlugin) SetWeight(rollout *v1alpha1.Rollout, desiredWeight int32, additionalDestinations []v1alpha1.WeightDestination) pluginTypes.RpcError
SetWeight modifies the OpenShift Route resource to reach the desired weight.
func (*RpcPlugin) UpdateHash ¶
func (r *RpcPlugin) UpdateHash(ro *v1alpha1.Rollout, canaryHash, stableHash string, additionalDestinations []v1alpha1.WeightDestination) pluginTypes.RpcError
UpdateHash informs a traffic routing reconciler about new canary/stable pod hashes
func (*RpcPlugin) VerifyWeight ¶
func (r *RpcPlugin) VerifyWeight(rollout *v1alpha1.Rollout, desiredWeight int32, additionalDestinations []v1alpha1.WeightDestination) (pluginTypes.RpcVerified, pluginTypes.RpcError)
Verifies weight of routes given by rollout
Click to show internal directories.
Click to hide internal directories.