servicenamespace

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2022 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ByServiceNamespace = "byServiceNamespace"
)

Variables

This section is empty.

Functions

func IndexByServiceNamespace

func IndexByServiceNamespace(obj interface{}) ([]string, error)

func NewController

func NewController(
	config *rest.Config,
	serviceNamespaceInformer bindinformers.ServiceNamespaceInformer,
	clusterBindingInformer bindinformers.ClusterBindingInformer,
	serviceExportInformer bindinformers.ServiceExportInformer,
	namespaceInformer coreinformers.NamespaceInformer,
	roleInformer rbacinformers.RoleInformer,
	roleBindingInformer rbacinformers.RoleBindingInformer,
) (*controller, error)

NewController returns a new controller for ServiceNamespaces.

func ServiceNamespaceAnnotationValue

func ServiceNamespaceAnnotationValue(ns, name string) string

func ServiceNamespaceFromAnnotation

func ServiceNamespaceFromAnnotation(value string) (ns string, name string, err error)

Types

type CommitFunc added in v0.0.6

type CommitFunc = func(context.Context, *Resource, *Resource) error

Jump to

Keyboard shortcuts

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