deployment

package
v0.0.0-...-caeb0ac Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: Apache-2.0 Imports: 25 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder interface {
	// With adds a new Echo configuration to the Builder. Once built, the instance
	// pointer will be updated to point at the new Instance.
	With(i *echo.Instance, cfg echo.Config) Builder

	// WithConfig mimics the behavior of With, but does not allow passing a reference
	// and returns an echoboot builder rather than a generic echo builder.
	// TODO rename this to With, and the old method to WithInstance
	WithConfig(cfg echo.Config) Builder

	// WithClusters will cause subsequent With or WithConfig calls to be applied to the given clusters.
	WithClusters(...cluster.Cluster) Builder

	// Build and initialize all Echo Instances. Upon returning, the Instance pointers
	// are assigned and all Instances are ready to communicate with each other.
	Build() (echo.Instances, error)
	BuildOrFail(t test.Failer) echo.Instances
}

Builder for a group of collaborating Echo Instances. Once built, all Instances in the group:

  1. Are ready to receive traffic, and
  2. Can call every other Instance in the group (i.e. have received Envoy config from Pilot).

If a test needs to verify that one Instance is NOT reachable from another, there are a couple of options:

  1. Build a group while all Instances ARE reachable. Then apply a policy disallowing the communication.
  2. Build the source and destination Instances in separate groups and then call `source.WaitUntilCallable(destination)`.

func New

func New(ctx resource.Context, clusters ...cluster.Cluster) Builder

New builder for echo deployments.

Jump to

Keyboard shortcuts

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