istiocontrolplane

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2019 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// MetadataNamespace is the namespace for mesh metadata (labels, annotations)
	MetadataNamespace = "install.operator.istio.io"

	// OwnerNameKey represents the name of the owner to which the resource relates
	OwnerNameKey = MetadataNamespace + "/owner-name"
	// OwnerKindKey represents the kind of the owner to which the resource relates
	OwnerKindKey = MetadataNamespace + "/owner-kind"
	// OwnerGroupKey represents the group of the owner to which the resource relates
	OwnerGroupKey = MetadataNamespace + "/owner-group"

	// OwnerGenerationKey represents the generation to which the resource was last reconciled
	OwnerGenerationKey = MetadataNamespace + "/owner-generation"
)
View Source
const (
	// ChartOwnerKey is the annotation key used to store the name of the chart that created the resource
	ChartOwnerKey = MetadataNamespace + "/chart-owner"
)

Variables

This section is empty.

Functions

func Add

func Add(mgr manager.Manager) error

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

func AttachCobraFlags

func AttachCobraFlags(cmd *cobra.Command)

AttachCobraFlags attaches a set of Cobra flags to the given Cobra command.

Cobra is the command-line processor that Istio uses. This command attaches the set of flags used to configure the IstioControlPlane reconciler

func NewIstioPruningDetails

func NewIstioPruningDetails(instance *v1alpha1.IstioControlPlane) helmreconciler.PruningDetails

NewPruningDetails creates a new PruningDetails object specific to the instance.

func NewIstioStatusUpdater

func NewIstioStatusUpdater(instance *v1alpha1.IstioControlPlane) helmreconciler.RenderingListener

NewIstioStatusUpdater returns a new IstioStatusUpdater instance for the specified IstioControlPlane

Types

type IstioChartCustomizerFactory

type IstioChartCustomizerFactory struct {
	*helmreconciler.DefaultChartCustomizerFactory
}

IstioChartCustomizerFactory creates ChartCustomizer objects specific to IstioControlPlane resources.

func (*IstioChartCustomizerFactory) NewChartCustomizer

func (f *IstioChartCustomizerFactory) NewChartCustomizer(chartName string) helmreconciler.ChartCustomizer

NewChartCustomizer returns a new ChartCustomizer for the specific chart. Currently, an IstioDefaultChartCustomizer is returned for all charts except: kiali

type IstioChartCustomizerListener

type IstioChartCustomizerListener struct {
	*helmreconciler.DefaultChartCustomizerListener
}

IstioChartCustomizerListener provides ChartCustomizer objects specific to IstioControlPlane resources.

func NewChartCustomizerListener

func NewChartCustomizerListener() *IstioChartCustomizerListener

NewChartCustomizerListener returns a new IstioChartCustomizerListener

type IstioDefaultChartCustomizer

type IstioDefaultChartCustomizer struct {
	*helmreconciler.DefaultChartCustomizer
}

IstioDefaultChartCustomizer represents the default ChartCustomizer for IstioControlPlane charts.

func NewIstioDefaultChartCustomizer

func NewIstioDefaultChartCustomizer(chartName, chartAnnotationKey string) *IstioDefaultChartCustomizer

NewIstioDefaultChartCustomizer creates a new IstioDefaultChartCustomizer

func (*IstioDefaultChartCustomizer) EndChart

func (c *IstioDefaultChartCustomizer) EndChart(chartName string) error

EndChart waits for any deployments or stateful sets that were created to become ready

type IstioRenderingCustomizerFactory

type IstioRenderingCustomizerFactory struct{}

func (*IstioRenderingCustomizerFactory) NewCustomizer

NewCustomizer returns a RenderingCustomizer for Istio

type IstioRenderingInput

type IstioRenderingInput struct {
	// contains filtered or unexported fields
}

IstioRenderingInput is a RenderingInput specific to an IstioControlPlane instance.

func NewIstioRenderingInput

func NewIstioRenderingInput(instance *v1alpha1.IstioControlPlane) *IstioRenderingInput

NewIstioRenderingInput creates a new IstioRenderiongInput for the specified instance.

func (*IstioRenderingInput) GetChartPath

func (i *IstioRenderingInput) GetChartPath() string

GetChartPath returns the absolute path locating the charts to be rendered.

func (*IstioRenderingInput) GetProcessingOrder

func (i *IstioRenderingInput) GetProcessingOrder(manifests helmreconciler.ChartManifestsMap) ([]string, error)

GetProcessingOrder returns the order in which the rendered charts should be processed.

func (*IstioRenderingInput) GetTargetNamespace

func (i *IstioRenderingInput) GetTargetNamespace() string

GetTargetNamespace returns the namespace within which rendered namespaced resources should be generated (i.e. Release.Namespace)

func (*IstioRenderingInput) GetValues

func (i *IstioRenderingInput) GetValues() map[string]interface{}

GetValues returns the values that should be used when rendering the charts.

type IstioRenderingListener

type IstioRenderingListener struct {
	*helmreconciler.CompositeRenderingListener
}

IstioRenderingListener is a RenderingListener specific to IstioControlPlane resources

func NewIstioRenderingListener

func NewIstioRenderingListener(instance *v1alpha1.IstioControlPlane) *IstioRenderingListener

NewIstioRenderingListener returns a new IstioRenderingListener, which is a composite that includes IstioStatusUpdater and IstioChartCustomizerListener.

type IstioStatusUpdater

type IstioStatusUpdater struct {
	*helmreconciler.DefaultRenderingListener
	// contains filtered or unexported fields
}

IstioStatusUpdater is a RenderingListener that updates the status field on the IstioControlPlane instance based on the results of the Reconcile operation.

func (*IstioStatusUpdater) EndReconcile

func (u *IstioStatusUpdater) EndReconcile(_ runtime.Object, err error) error

EndReconcile updates the status field on the IstioControlPlane instance based on the resulting err parameter.

func (*IstioStatusUpdater) RegisterReconciler

func (u *IstioStatusUpdater) RegisterReconciler(reconciler *helmreconciler.HelmReconciler)

RegisterReconciler registers the HelmReconciler with this object

type KialiChartCustomizer

type KialiChartCustomizer struct {
	*IstioDefaultChartCustomizer
}

KialiChartCustomizer is a ChartCustomizer for the kiali chart

func NewKialiChartCustomizer

func NewKialiChartCustomizer(chartName, chartAnnotationKey string) *KialiChartCustomizer

NewKialiChartCustomizer creates a new KialiChartCustomizer

func (*KialiChartCustomizer) BeginResource

func (c *KialiChartCustomizer) BeginResource(obj runtime.Object) (runtime.Object, error)

BeginResource invokes the default BeginResource behavior for all resources and patches the grafana and jaeger URLs in the "kiali" ConfigMap with the actual installed URLs. (TODO)

type Options

type Options struct {
	// BaseChartPath is the abosolute path used as the base path when a relative path is specified in
	// IstioControlPlane.Spec.ChartPath
	BaseChartPath string
	// DefaultChartPath is the relative path used added to BaseChartPath when no value is specified in
	// IstioControlPlane.Spec.ChartPath
	DefaultChartPath string
}

Options represents the details used to configure the controller.

type ReconcileIstioControlPlane

type ReconcileIstioControlPlane struct {
	// contains filtered or unexported fields
}

ReconcileIstioControlPlane reconciles a IstioControlPlane object

func (*ReconcileIstioControlPlane) Reconcile

Reconcile reads that state of the cluster for a IstioControlPlane object and makes changes based on the state read and what is in the IstioControlPlane.Spec TODO(user): Modify this Reconcile function to implement your Controller logic. This example creates a Pod as an example Note: The Controller will requeue the Request to be processed again if the returned error is non-nil or Result.Requeue is true, otherwise upon completion it will remove the work from the queue.

Jump to

Keyboard shortcuts

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