envoyfilter

package
v0.0.0-...-d4a9768 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder struct {
	ConfigPatches []*ConfigPatch
	// contains filtered or unexported fields
}

func NewEnvoyFilterBuilder

func NewEnvoyFilterBuilder() *Builder

NewEnvoyFilterBuilder returns EnvoyFilterBuilder for building istio EnvoyFilters

func (*Builder) Build

func (e *Builder) Build() *apiv1alpha3.EnvoyFilter

Build returns EnvoyFilter generated from the configuration provided to the builder.

func (*Builder) WithAnnotation

func (e *Builder) WithAnnotation(key, val string) *Builder

WithAnnotation adds annotation to the EnvoyFilter. Can be used multiple times to add more annotations

func (*Builder) WithConfigPatch

func (e *Builder) WithConfigPatch(patch *ConfigPatch) *Builder

WithConfigPatch adds provided patch to the end of the EnvoyFilter patches chain

func (*Builder) WithName

func (e *Builder) WithName(name string) *Builder

WithName sets name of EnvoyFilter

func (*Builder) WithNamespace

func (e *Builder) WithNamespace(namespace string) *Builder

WithNamespace sets namespace of EnvoyFilter

func (*Builder) WithWorkloadSelector

func (e *Builder) WithWorkloadSelector(key, val string) *Builder

WithWorkloadSelector adds labels to EnvoyFilter's WorkloadSelector. Can be used multiple times to add more selectors

Jump to

Keyboard shortcuts

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