utils

package
v0.11.3 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DiscoveredObjectMeta

func DiscoveredObjectMeta(sourceResource metav1.Object) metav1.ObjectMeta

construct an ObjectMeta for a discovered resource from a source object (the object from which the resource was discovered)

func DiscoveredResourceName

func DiscoveredResourceName(sourceResource ezkube.ClusterResourceId) string

util for conventionally naming discovered resources

func GetIngressGatewayDetector added in v0.10.10

func GetIngressGatewayDetector(settings *settingsv1alpha2.Settings, clusterName string) (*settingsv1alpha2.SettingsSpec_Istio_IngressGatewayDetector, error)

Get the workload labels and TLS port name used to detect ingress gateways in the given cluster.

func GetSingletonSettings added in v0.10.10

func GetSingletonSettings(ctx context.Context, inLocal input.LocalSnapshot) (*settingsv1alpha2.Settings, error)

TODO this is copied from networking snapshot_utils. remove this when functionality is added to skv2 Safely fetch the single Settings object from snapshot. Log and error if not singleton.

Types

This section is empty.

Jump to

Keyboard shortcuts

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