experiment

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 23, 2020 License: Apache-2.0 Imports: 34 Imported by: 0

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

View Source
const (
	KubernetesV1 = "v1"

	Iter8Controller = "iter8-controller"
	Finalizer       = "finalizer.iter8-tools"
)

Variables

This section is empty.

Functions

func Add

func Add(mgr manager.Manager) error

Add creates a new Experiment Controller and adds it to the Manager with default RBAC. The Manager will set fields on the Controller and Start it when the Manager is Started.

Types

type ReconcileExperiment

type ReconcileExperiment struct {
	client.Client
	// contains filtered or unexported fields
}

ReconcileExperiment reconciles a Experiment object

func (*ReconcileExperiment) MarkActionPause added in v0.1.0

func (r *ReconcileExperiment) MarkActionPause(context context.Context, instance *iter8v1alpha1.Experiment)

func (*ReconcileExperiment) MarkActionResume added in v0.1.0

func (r *ReconcileExperiment) MarkActionResume(context context.Context, instance *iter8v1alpha1.Experiment)

func (*ReconcileExperiment) MarkAnalyticsServiceError

func (r *ReconcileExperiment) MarkAnalyticsServiceError(context context.Context, instance *iter8v1alpha1.Experiment,
	messageFormat string, messageA ...interface{})

func (*ReconcileExperiment) MarkAnalyticsServiceRunning

func (r *ReconcileExperiment) MarkAnalyticsServiceRunning(context context.Context, instance *iter8v1alpha1.Experiment)

func (*ReconcileExperiment) MarkExperimentFailed

func (r *ReconcileExperiment) MarkExperimentFailed(context context.Context, instance *iter8v1alpha1.Experiment,
	messageFormat string, messageA ...interface{})

func (*ReconcileExperiment) MarkExperimentProgress

func (r *ReconcileExperiment) MarkExperimentProgress(context context.Context, instance *iter8v1alpha1.Experiment,
	broadcast bool, reason, messageFormat string, messageA ...interface{})

func (*ReconcileExperiment) MarkExperimentSucceeded

func (r *ReconcileExperiment) MarkExperimentSucceeded(context context.Context, instance *iter8v1alpha1.Experiment,
	messageFormat string, messageA ...interface{})

func (*ReconcileExperiment) MarkRoutingRulesError

func (r *ReconcileExperiment) MarkRoutingRulesError(context context.Context, instance *iter8v1alpha1.Experiment,
	messageFormat string, messageA ...interface{})

func (*ReconcileExperiment) MarkRoutingRulesReady

func (r *ReconcileExperiment) MarkRoutingRulesReady(context context.Context, instance *iter8v1alpha1.Experiment,
	messageFormat string, messageA ...interface{})

func (*ReconcileExperiment) MarkSyncMetrics

func (r *ReconcileExperiment) MarkSyncMetrics(context context.Context, instance *iter8v1alpha1.Experiment)

func (*ReconcileExperiment) MarkSyncMetricsError

func (r *ReconcileExperiment) MarkSyncMetricsError(context context.Context, instance *iter8v1alpha1.Experiment,
	messageFormat string, messageA ...interface{})

func (*ReconcileExperiment) MarkTargetsError

func (r *ReconcileExperiment) MarkTargetsError(context context.Context, instance *iter8v1alpha1.Experiment,
	messageFormat string, messageA ...interface{})

MarkTargetsError records the condition that the target components are missing

func (*ReconcileExperiment) MarkTargetsFound

func (r *ReconcileExperiment) MarkTargetsFound(context context.Context, instance *iter8v1alpha1.Experiment)

func (*ReconcileExperiment) Reconcile

func (r *ReconcileExperiment) Reconcile(request reconcile.Request) (reconcile.Result, error)

Reconcile reads that state of the cluster for a Experiment object and makes changes based on the state read and what is in the Experiment.Spec +kubebuilder:rbac:groups=iter8.tools,resources=experiments,verbs=get;list;watch;create;update;patch;delete +kubebuilder:rbac:groups=iter8.tools,resources=experiments/status,verbs=get;update;patch +kubebuilder:rbac:groups=networking.istio.io,resources=destinationrules,verbs=get;list;watch;create;update;patch;delete +kubebuilder:rbac:groups=networking.istio.io,resources=virtualservices,verbs=get;list;watch;create;update;patch;delete +kubebuilder:rbac:groups=serving.knative.dev,resources=services,verbs=get;list;watch;update;patch +kubebuilder:rbac:groups=serving.knative.dev,resources=services/status,verbs=get +kubebuilder:rbac:groups=serving.knative.dev,resources=revisions,verbs=get;list;watch +kubebuilder:rbac:groups=serving.knative.dev,resources=revisions/status,verbs=get +kubebuilder:rbac:groups=apps,resources=deployments,verbs=get;list;watch;update;patch;delete +kubebuilder:rbac:groups=apps,resources=deployments/status,verbs=get;update;patch

Directories

Path Synopsis
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL