Documentation
¶
Index ¶
Constants ¶
View Source
const ( HTTPRoute = "HTTPRoute" TCPRoute = "TCPRoute" StableServiceName = "argo-rollouts-stable-service" CanaryServiceName = "argo-rollouts-canary-service" HTTPRouteName = "argo-rollouts-http-route" GRPCRouteName = "argo-rollouts-grpc-route" TCPRouteName = "argo-rollouts-tcp-route" RolloutNamespace = "default" ConfigMapName = "test-config" ManagedRouteName = "test-header-route" )
Variables ¶
View Source
var ConfigMapObj = v1.ConfigMap{ ObjectMeta: metav1.ObjectMeta{ Name: ConfigMapName, Namespace: RolloutNamespace, }, }
View Source
var GRPCRouteObj = gatewayv1.GRPCRoute{ ObjectMeta: metav1.ObjectMeta{ Name: GRPCRouteName, Namespace: RolloutNamespace, }, Spec: gatewayv1.GRPCRouteSpec{ Rules: []gatewayv1.GRPCRouteRule{ { BackendRefs: []gatewayv1.GRPCBackendRef{ { BackendRef: gatewayv1.BackendRef{ BackendObjectReference: gatewayv1.BackendObjectReference{ Name: StableServiceName, Port: &port, }, Weight: &weight, }, }, { BackendRef: gatewayv1.BackendRef{ BackendObjectReference: gatewayv1.BackendObjectReference{ Name: CanaryServiceName, Port: &port, }, Weight: &weight, }, }, }, }, }, }, }
View Source
var HTTPRouteObj = gatewayv1.HTTPRoute{ ObjectMeta: metav1.ObjectMeta{ Name: HTTPRouteName, Namespace: RolloutNamespace, }, Spec: gatewayv1.HTTPRouteSpec{ Rules: []gatewayv1.HTTPRouteRule{ { BackendRefs: []gatewayv1.HTTPBackendRef{ { BackendRef: gatewayv1.BackendRef{ BackendObjectReference: gatewayv1.BackendObjectReference{ Name: StableServiceName, Port: &port, }, Weight: &weight, }, }, { BackendRef: gatewayv1.BackendRef{ BackendObjectReference: gatewayv1.BackendObjectReference{ Name: CanaryServiceName, Port: &port, }, Weight: &weight, }, }, }, Matches: []gatewayv1.HTTPRouteMatch{ { Path: &httpPathMatch, }, }, }, }, }, }
View Source
var TCPPRouteObj = v1alpha2.TCPRoute{ ObjectMeta: metav1.ObjectMeta{ Name: TCPRouteName, Namespace: RolloutNamespace, }, Spec: v1alpha2.TCPRouteSpec{ Rules: []v1alpha2.TCPRouteRule{ { BackendRefs: []v1alpha2.BackendRef{ { BackendObjectReference: v1alpha2.BackendObjectReference{ Name: StableServiceName, Port: &port, }, Weight: &weight, }, { BackendObjectReference: v1alpha2.BackendObjectReference{ Name: CanaryServiceName, Port: &port, }, Weight: &weight, }, }, }, }, }, }
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.