mtls

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2021 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildMeshResourceObjectMeta added in v1.1.0

func BuildMeshResourceObjectMeta(
	mesh *discoveryv1.Mesh,
) metav1.ObjectMeta

Build the common ObjectMeta used for child certificate resources of this mesh Exposed for use in enterprise

func IsSigningCert

func IsSigningCert(secret *corev1.Secret) bool

used by networking reconciler to filter ignored secrets

func RootCASecretName added in v1.1.0

func RootCASecretName(virtualMeshRef ezkube.ResourceId) *skv2corev1.ObjectRef

Types

type Translator

type Translator interface {
	// Translate translates the appropriate VirtualService and DestinationRule for the given Mesh.
	// returns nil if no VirtualService or DestinationRule is required for the Mesh (i.e. if no VirtualService/DestinationRule features are required, such as subsets).
	// Output resources will be added to the istio.Builder
	// Errors caused by invalid user config will be reported using the Reporter.
	Translate(
		mesh *discoveryv1.Mesh,
		virtualMesh *discoveryv1.MeshStatus_AppliedVirtualMesh,
		istioOutputs istio.Builder,
		localOutputs local.Builder,
		reporter reporting.Reporter,
	)
}

the VirtualService translator translates a Mesh into a VirtualService.

func NewTranslator

func NewTranslator(
	ctx context.Context,
	secrets corev1sets.SecretSet,
	workloads discoveryv1sets.WorkloadSet,
) Translator

Directories

Path Synopsis
Package mock_mtls is a generated GoMock package.
Package mock_mtls is a generated GoMock package.

Jump to

Keyboard shortcuts

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