istio

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2021 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// AddonName is the unique name of the Kong cluster.Addon
	AddonName clusters.AddonName = "istio"

	// Namespace is the namespace that the Addon compontents
	// will be deployed under when deployment finishes
	Namespace = "istio-system"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Addon

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

Addon is a Kong Proxy addon which can be deployed on a clusters.Cluster.

func New

func New() *Addon

New produces a new clusters.Addon for Kong but uses a very opionated set of default configurations (see the defaults() function for more details). If you need to customize your Kong deployment, use the kong.Builder instead.

func (*Addon) Delete

func (a *Addon) Delete(ctx context.Context, cluster clusters.Cluster) error

func (*Addon) Deploy

func (a *Addon) Deploy(ctx context.Context, cluster clusters.Cluster) error

func (*Addon) EnableMeshForNamespace

func (a *Addon) EnableMeshForNamespace(ctx context.Context, cluster clusters.Cluster, name string) error

EnableMeshForNamespace will add the "istio-injection=enabled" label to the provided namespace by name which will indicate to Istio to inject sidecard pods to add it to the mesh network.

func (*Addon) Name

func (a *Addon) Name() clusters.AddonName

func (*Addon) Namespace

func (a *Addon) Namespace() string

Namespace indicates the namespace where the Istio addon components are to be deployed and managed.

func (*Addon) Ready

func (a *Addon) Ready(ctx context.Context, cluster clusters.Cluster) (waitForObjects []runtime.Object, ready bool, err error)

func (*Addon) Version

func (a *Addon) Version() semver.Version

Version indicates the Istio version for this addon.

type Builder

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

Builder is a configuration tool to generate Istio cluster addons.

func NewBuilder

func NewBuilder() *Builder

NewBuilder provides a new Builder object for configuring Istio cluster addons.

func (*Builder) Build

func (b *Builder) Build() *Addon

Build generates a new kong cluster.Addon which can be loaded and deployed into a test Environment's cluster.Cluster.

func (*Builder) WithGrafana

func (b *Builder) WithGrafana() *Builder

WithGrafana triggers a deployment of Grafana configured specifically for Istio.

See: https://istio.io/latest/docs/ops/integrations/grafana/

func (*Builder) WithJaeger

func (b *Builder) WithJaeger() *Builder

WithJaeger triggers a deployment of Jaeger configured specifically for Istio.

See: https://istio.io/latest/docs/ops/integrations/jaeger/

func (*Builder) WithKiali

func (b *Builder) WithKiali() *Builder

WithKiali triggers a deployment of Kiali configured specifically for Istio.

See: https://kiali.io/documentation/

func (*Builder) WithPrometheus

func (b *Builder) WithPrometheus() *Builder

WithPrometheus triggers a deployment of Prometheus configured specifically for Istio.

See: https://istio.io/latest/docs/ops/integrations/prometheus/

func (*Builder) WithVersion

func (b *Builder) WithVersion(version semver.Version) *Builder

WithVersion configures the specific version of Istio which should be deployed.

Jump to

Keyboard shortcuts

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