Documentation ¶
Overview ¶
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- Constants
- type DestinationRuleBuilder
- func (b *DestinationRuleBuilder) Build() *v1alpha3.DestinationRule
- func (b *DestinationRuleBuilder) InitSubsets() *DestinationRuleBuilder
- func (b *DestinationRuleBuilder) RemoveExperimentLabel() *DestinationRuleBuilder
- func (b *DestinationRuleBuilder) ToStable(stableSubset string) *DestinationRuleBuilder
- func (b *DestinationRuleBuilder) WithDeployment(d *appsv1.Deployment, name string) *DestinationRuleBuilder
- func (b *DestinationRuleBuilder) WithExperimentRegistered(exp string) *DestinationRuleBuilder
- func (b *DestinationRuleBuilder) WithInitLabel() *DestinationRuleBuilder
- func (b *DestinationRuleBuilder) WithInitializingLabel() *DestinationRuleBuilder
- func (b *DestinationRuleBuilder) WithName(name string) *DestinationRuleBuilder
- func (b *DestinationRuleBuilder) WithProgressingLabel() *DestinationRuleBuilder
- func (b *DestinationRuleBuilder) WithStableLabel() *DestinationRuleBuilder
- func (b *DestinationRuleBuilder) WithSubset(name string, d *appsv1.Deployment) *DestinationRuleBuilder
- type HTTPRouteBuilder
- type HTTPRouteDestinationBuilder
- func (b *HTTPRouteDestinationBuilder) Build() *networkingv1alpha3.HTTPRouteDestination
- func (b *HTTPRouteDestinationBuilder) WithHost(host string) *HTTPRouteDestinationBuilder
- func (b *HTTPRouteDestinationBuilder) WithPort(port uint32) *HTTPRouteDestinationBuilder
- func (b *HTTPRouteDestinationBuilder) WithSubset(subset string) *HTTPRouteDestinationBuilder
- func (b *HTTPRouteDestinationBuilder) WithWeight(w int32) *HTTPRouteDestinationBuilder
- type IstioRoutingRules
- func (r *IstioRoutingRules) Cleanup(context context.Context, instance *iter8v1alpha1.Experiment, ...) (err error)
- func (r *IstioRoutingRules) DeleteAll(ic istioclient.Interface) (err error)
- func (r *IstioRoutingRules) GetRoutingRules(instance *iter8v1alpha1.Experiment, ic istioclient.Interface) error
- func (r *IstioRoutingRules) Initialize(context context.Context, instance *iter8v1alpha1.Experiment, ...) error
- func (r *IstioRoutingRules) IsInit() bool
- func (r *IstioRoutingRules) ToString() string
- func (r *IstioRoutingRules) UpdateCandidate(context context.Context, targets *targets.Targets, ic istioclient.Interface) error
- func (r *IstioRoutingRules) UpdateRemoveRules(ic istioclient.Interface) error
- func (r *IstioRoutingRules) UpdateRolloutPercent(instance *iter8v1alpha1.Experiment, rolloutPercent int, ...) error
- type VirtualServiceBuilder
- func (b *VirtualServiceBuilder) Build() *v1alpha3.VirtualService
- func (b *VirtualServiceBuilder) InitGateways() *VirtualServiceBuilder
- func (b *VirtualServiceBuilder) InitHTTPRoutes() *VirtualServiceBuilder
- func (b *VirtualServiceBuilder) InitHosts() *VirtualServiceBuilder
- func (b *VirtualServiceBuilder) RemoveExperimentLabel() *VirtualServiceBuilder
- func (b *VirtualServiceBuilder) ToStable(stableFilter *networkingv1alpha3.HTTPRouteDestination) *VirtualServiceBuilder
- func (b *VirtualServiceBuilder) WithExperimentRegistered(exp string) *VirtualServiceBuilder
- func (b *VirtualServiceBuilder) WithExternalLabel() *VirtualServiceBuilder
- func (b *VirtualServiceBuilder) WithGateways(gws []string) *VirtualServiceBuilder
- func (b *VirtualServiceBuilder) WithHTTPRoute(route *networkingv1alpha3.HTTPRoute) *VirtualServiceBuilder
- func (b *VirtualServiceBuilder) WithHosts(hosts []string) *VirtualServiceBuilder
- func (b *VirtualServiceBuilder) WithInitLabel() *VirtualServiceBuilder
- func (b *VirtualServiceBuilder) WithInitializingLabel() *VirtualServiceBuilder
- func (b *VirtualServiceBuilder) WithMeshGateway() *VirtualServiceBuilder
- func (b *VirtualServiceBuilder) WithName(name string) *VirtualServiceBuilder
- func (b *VirtualServiceBuilder) WithNewStableSet(host, subset string) *VirtualServiceBuilder
- func (b *VirtualServiceBuilder) WithProgressingLabel() *VirtualServiceBuilder
- func (b *VirtualServiceBuilder) WithRolloutPercent(rolloutFilter *networkingv1alpha3.HTTPRouteDestination, rolloutPercent int32) *VirtualServiceBuilder
- func (b *VirtualServiceBuilder) WithStableLabel() *VirtualServiceBuilder
Constants ¶
View Source
const ( IstioRuleSuffix = ".iter8-experiment" Baseline = "baseline" Candidate = "candidate" Stable = "stable" Progressing = "progressing" Initializing = "initializing" External = "external" ExperimentInit = "iter8-tools/init" ExperimentRole = "iter8-tools/role" ExperimentLabel = "iter8-tools/experiment" ExperimentHost = "iter8-tools/host" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DestinationRuleBuilder ¶
type DestinationRuleBuilder v1alpha3.DestinationRule
func NewDestinationRule ¶
func NewDestinationRule(host, name, namespace string) *DestinationRuleBuilder
func NewDestinationRuleBuilder ¶
func NewDestinationRuleBuilder(dr *v1alpha3.DestinationRule) *DestinationRuleBuilder
func (*DestinationRuleBuilder) Build ¶
func (b *DestinationRuleBuilder) Build() *v1alpha3.DestinationRule
func (*DestinationRuleBuilder) InitSubsets ¶ added in v0.2.0
func (b *DestinationRuleBuilder) InitSubsets() *DestinationRuleBuilder
func (*DestinationRuleBuilder) RemoveExperimentLabel ¶
func (b *DestinationRuleBuilder) RemoveExperimentLabel() *DestinationRuleBuilder
func (*DestinationRuleBuilder) ToStable ¶ added in v0.2.0
func (b *DestinationRuleBuilder) ToStable(stableSubset string) *DestinationRuleBuilder
func (*DestinationRuleBuilder) WithDeployment ¶ added in v0.2.0
func (b *DestinationRuleBuilder) WithDeployment(d *appsv1.Deployment, name string) *DestinationRuleBuilder
func (*DestinationRuleBuilder) WithExperimentRegistered ¶ added in v0.2.0
func (b *DestinationRuleBuilder) WithExperimentRegistered(exp string) *DestinationRuleBuilder
func (*DestinationRuleBuilder) WithInitLabel ¶
func (b *DestinationRuleBuilder) WithInitLabel() *DestinationRuleBuilder
func (*DestinationRuleBuilder) WithInitializingLabel ¶ added in v0.2.0
func (b *DestinationRuleBuilder) WithInitializingLabel() *DestinationRuleBuilder
func (*DestinationRuleBuilder) WithName ¶
func (b *DestinationRuleBuilder) WithName(name string) *DestinationRuleBuilder
func (*DestinationRuleBuilder) WithProgressingLabel ¶
func (b *DestinationRuleBuilder) WithProgressingLabel() *DestinationRuleBuilder
func (*DestinationRuleBuilder) WithStableLabel ¶
func (b *DestinationRuleBuilder) WithStableLabel() *DestinationRuleBuilder
func (*DestinationRuleBuilder) WithSubset ¶
func (b *DestinationRuleBuilder) WithSubset(name string, d *appsv1.Deployment) *DestinationRuleBuilder
WithSubset adds subset to the rule
type HTTPRouteBuilder ¶ added in v0.2.0
type HTTPRouteBuilder networkingv1alpha3.HTTPRoute
func NewEmptyHTTPRoute ¶ added in v0.2.0
func NewEmptyHTTPRoute() *HTTPRouteBuilder
func NewHTTPRoute ¶ added in v0.2.0
func NewHTTPRoute(route *networkingv1alpha3.HTTPRoute) *HTTPRouteBuilder
func (*HTTPRouteBuilder) Build ¶ added in v0.2.0
func (b *HTTPRouteBuilder) Build() *networkingv1alpha3.HTTPRoute
func (*HTTPRouteBuilder) WithDestination ¶ added in v0.2.0
func (b *HTTPRouteBuilder) WithDestination(d *networkingv1alpha3.HTTPRouteDestination) *HTTPRouteBuilder
type HTTPRouteDestinationBuilder ¶ added in v0.2.0
type HTTPRouteDestinationBuilder networkingv1alpha3.HTTPRouteDestination
func NewHTTPRouteDestination ¶ added in v0.2.0
func NewHTTPRouteDestination() *HTTPRouteDestinationBuilder
func (*HTTPRouteDestinationBuilder) Build ¶ added in v0.2.0
func (b *HTTPRouteDestinationBuilder) Build() *networkingv1alpha3.HTTPRouteDestination
func (*HTTPRouteDestinationBuilder) WithHost ¶ added in v0.2.0
func (b *HTTPRouteDestinationBuilder) WithHost(host string) *HTTPRouteDestinationBuilder
func (*HTTPRouteDestinationBuilder) WithPort ¶ added in v0.2.0
func (b *HTTPRouteDestinationBuilder) WithPort(port uint32) *HTTPRouteDestinationBuilder
func (*HTTPRouteDestinationBuilder) WithSubset ¶ added in v0.2.0
func (b *HTTPRouteDestinationBuilder) WithSubset(subset string) *HTTPRouteDestinationBuilder
func (*HTTPRouteDestinationBuilder) WithWeight ¶ added in v0.2.0
func (b *HTTPRouteDestinationBuilder) WithWeight(w int32) *HTTPRouteDestinationBuilder
type IstioRoutingRules ¶
type IstioRoutingRules struct { DestinationRule *v1alpha3.DestinationRule VirtualService *v1alpha3.VirtualService }
func (*IstioRoutingRules) Cleanup ¶
func (r *IstioRoutingRules) Cleanup(context context.Context, instance *iter8v1alpha1.Experiment, ic istioclient.Interface) (err error)
func (*IstioRoutingRules) DeleteAll ¶
func (r *IstioRoutingRules) DeleteAll(ic istioclient.Interface) (err error)
func (*IstioRoutingRules) GetRoutingRules ¶ added in v0.2.0
func (r *IstioRoutingRules) GetRoutingRules(instance *iter8v1alpha1.Experiment, ic istioclient.Interface) error
func (*IstioRoutingRules) Initialize ¶ added in v0.2.0
func (r *IstioRoutingRules) Initialize(context context.Context, instance *iter8v1alpha1.Experiment, targets *targets.Targets, ic istioclient.Interface) error
func (*IstioRoutingRules) IsInit ¶
func (r *IstioRoutingRules) IsInit() bool
func (*IstioRoutingRules) ToString ¶ added in v0.2.0
func (r *IstioRoutingRules) ToString() string
func (*IstioRoutingRules) UpdateCandidate ¶ added in v0.2.0
func (r *IstioRoutingRules) UpdateCandidate(context context.Context, targets *targets.Targets, ic istioclient.Interface) error
func (*IstioRoutingRules) UpdateRemoveRules ¶
func (r *IstioRoutingRules) UpdateRemoveRules(ic istioclient.Interface) error
func (*IstioRoutingRules) UpdateRolloutPercent ¶
func (r *IstioRoutingRules) UpdateRolloutPercent(instance *iter8v1alpha1.Experiment, rolloutPercent int, ic istioclient.Interface) error
type VirtualServiceBuilder ¶
type VirtualServiceBuilder v1alpha3.VirtualService
func NewVirtualService ¶
func NewVirtualService(host, name, namespace string) *VirtualServiceBuilder
func NewVirtualServiceBuilder ¶
func NewVirtualServiceBuilder(vs *v1alpha3.VirtualService) *VirtualServiceBuilder
func (*VirtualServiceBuilder) Build ¶
func (b *VirtualServiceBuilder) Build() *v1alpha3.VirtualService
func (*VirtualServiceBuilder) InitGateways ¶ added in v0.2.0
func (b *VirtualServiceBuilder) InitGateways() *VirtualServiceBuilder
func (*VirtualServiceBuilder) InitHTTPRoutes ¶ added in v0.2.0
func (b *VirtualServiceBuilder) InitHTTPRoutes() *VirtualServiceBuilder
func (*VirtualServiceBuilder) InitHosts ¶ added in v0.2.0
func (b *VirtualServiceBuilder) InitHosts() *VirtualServiceBuilder
func (*VirtualServiceBuilder) RemoveExperimentLabel ¶
func (b *VirtualServiceBuilder) RemoveExperimentLabel() *VirtualServiceBuilder
func (*VirtualServiceBuilder) ToStable ¶ added in v0.2.0
func (b *VirtualServiceBuilder) ToStable(stableFilter *networkingv1alpha3.HTTPRouteDestination) *VirtualServiceBuilder
func (*VirtualServiceBuilder) WithExperimentRegistered ¶ added in v0.2.0
func (b *VirtualServiceBuilder) WithExperimentRegistered(exp string) *VirtualServiceBuilder
func (*VirtualServiceBuilder) WithExternalLabel ¶ added in v0.2.0
func (b *VirtualServiceBuilder) WithExternalLabel() *VirtualServiceBuilder
func (*VirtualServiceBuilder) WithGateways ¶ added in v0.2.0
func (b *VirtualServiceBuilder) WithGateways(gws []string) *VirtualServiceBuilder
func (*VirtualServiceBuilder) WithHTTPRoute ¶ added in v0.2.0
func (b *VirtualServiceBuilder) WithHTTPRoute(route *networkingv1alpha3.HTTPRoute) *VirtualServiceBuilder
func (*VirtualServiceBuilder) WithHosts ¶ added in v0.2.0
func (b *VirtualServiceBuilder) WithHosts(hosts []string) *VirtualServiceBuilder
func (*VirtualServiceBuilder) WithInitLabel ¶
func (b *VirtualServiceBuilder) WithInitLabel() *VirtualServiceBuilder
func (*VirtualServiceBuilder) WithInitializingLabel ¶ added in v0.2.0
func (b *VirtualServiceBuilder) WithInitializingLabel() *VirtualServiceBuilder
func (*VirtualServiceBuilder) WithMeshGateway ¶ added in v0.2.0
func (b *VirtualServiceBuilder) WithMeshGateway() *VirtualServiceBuilder
func (*VirtualServiceBuilder) WithName ¶
func (b *VirtualServiceBuilder) WithName(name string) *VirtualServiceBuilder
func (*VirtualServiceBuilder) WithNewStableSet ¶
func (b *VirtualServiceBuilder) WithNewStableSet(host, subset string) *VirtualServiceBuilder
func (*VirtualServiceBuilder) WithProgressingLabel ¶
func (b *VirtualServiceBuilder) WithProgressingLabel() *VirtualServiceBuilder
func (*VirtualServiceBuilder) WithRolloutPercent ¶
func (b *VirtualServiceBuilder) WithRolloutPercent(rolloutFilter *networkingv1alpha3.HTTPRouteDestination, rolloutPercent int32) *VirtualServiceBuilder
func (*VirtualServiceBuilder) WithStableLabel ¶
func (b *VirtualServiceBuilder) WithStableLabel() *VirtualServiceBuilder
Click to show internal directories.
Click to hide internal directories.