Documentation ¶
Index ¶
- func DiscoveredObjectMeta(sourceResource metav1.Object) metav1.ObjectMeta
- func DiscoveredResourceName(sourceResource ezkube.ClusterResourceId) string
- func GetIngressGatewayDetector(settings *settingsv1alpha2.Settings, clusterName string) (*settingsv1alpha2.SettingsSpec_Istio_IngressGatewayDetector, error)
- func GetSingletonSettings(ctx context.Context, inLocal input.LocalSnapshot) (*settingsv1alpha2.Settings, error)
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.
Click to show internal directories.
Click to hide internal directories.