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" TCPRouteName = "argo-rollouts-tcp-route" RolloutNamespace = "default" ConfigMapName = "test-config" HTTPManagedRouteName = "test-http-header-route" )
Variables ¶
View Source
var ConfigMapObj = v1.ConfigMap{ ObjectMeta: metav1.ObjectMeta{ Name: ConfigMapName, Namespace: RolloutNamespace, }, }
View Source
var HTTPRouteObj = v1beta1.HTTPRoute{ ObjectMeta: metav1.ObjectMeta{ Name: HTTPRouteName, Namespace: RolloutNamespace, }, Spec: v1beta1.HTTPRouteSpec{ CommonRouteSpec: v1beta1.CommonRouteSpec{ ParentRefs: []v1beta1.ParentReference{ { Name: "argo-rollouts-gateway", }, }, }, Rules: []v1beta1.HTTPRouteRule{ { BackendRefs: []v1beta1.HTTPBackendRef{ { BackendRef: v1beta1.BackendRef{ BackendObjectReference: v1beta1.BackendObjectReference{ Name: StableServiceName, Port: &port, }, Weight: &weight, }, }, { BackendRef: v1beta1.BackendRef{ BackendObjectReference: v1beta1.BackendObjectReference{ Name: CanaryServiceName, Port: &port, }, Weight: &weight, }, }, }, Matches: []v1beta1.HTTPRouteMatch{ { Path: &httpPathMatch, }, }, }, }, }, }
View Source
var TCPPRouteObj = v1alpha2.TCPRoute{ ObjectMeta: metav1.ObjectMeta{ Name: TCPRouteName, Namespace: RolloutNamespace, }, Spec: v1alpha2.TCPRouteSpec{ CommonRouteSpec: v1alpha2.CommonRouteSpec{ ParentRefs: []v1beta1.ParentReference{ { Name: "argo-rollouts-gateway", }, }, }, 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.