Documentation ¶
Index ¶
- func FilterVDBsByServiceRef(vdbs *servicemeshapi.VirtualDeploymentBindingList, serviceName string, ...) []servicemeshapi.VirtualDeploymentBinding
- func GetServiceRefNamespace(vdb *servicemeshapi.VirtualDeploymentBinding) string
- func GetVDB(ctx context.Context, r client.Client, namespace string, name string, ...) error
- func GetVDBForPod(vdbs []servicemeshapi.VirtualDeploymentBinding, podLabels labels.Set) *servicemeshapi.VirtualDeploymentBinding
- func IsVirtualDeploymentBindingActive(virtualDeploymentBinding *servicemeshapi.VirtualDeploymentBinding) bool
- func ListVDB(ctx context.Context, r client.Reader) (*servicemeshapi.VirtualDeploymentBindingList, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FilterVDBsByServiceRef ¶
func FilterVDBsByServiceRef(vdbs *servicemeshapi.VirtualDeploymentBindingList, serviceName string, serviceNamespace string) []servicemeshapi.VirtualDeploymentBinding
FilterVDBsByServiceRef return a filtered list of VDBs from the input list that refers to the given service
func GetServiceRefNamespace ¶
func GetServiceRefNamespace(vdb *servicemeshapi.VirtualDeploymentBinding) string
GetServiceRefNamespace returns the namespace of the serviceRef from the VDB resource
func GetVDB ¶
func GetVDB(ctx context.Context, r client.Client, namespace string, name string, vdb *servicemeshapi.VirtualDeploymentBinding) error
GetVDB returns the vdb object for a given name and namespace
func GetVDBForPod ¶
func GetVDBForPod(vdbs []servicemeshapi.VirtualDeploymentBinding, podLabels labels.Set) *servicemeshapi.VirtualDeploymentBinding
GetVDBForPod checks for which vdb does the "vdb.Spec.Target.Service.MatchLabels" match the given Pod labels
func IsVirtualDeploymentBindingActive ¶
func IsVirtualDeploymentBindingActive(virtualDeploymentBinding *servicemeshapi.VirtualDeploymentBinding) bool
func ListVDB ¶
func ListVDB(ctx context.Context, r client.Reader) (*servicemeshapi.VirtualDeploymentBindingList, error)
ListVDB returns a list of virtual deployment binding for all namespaces
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.