k8s

package
v1.16.0 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ResourcesCell provides a set of handles to Kubernetes resources used throughout the
	// clustermesh-apiserver. Each of the resources share a client-go informer and backing store so we only
	// have one watch API call for each resource kind and that we maintain only one copy of each object.
	//
	// See pkg/k8s/resource/resource.go for documentation on the Resource[T] type.
	ResourcesCell = cell.Module(
		"k8s-resources",
		"Clustermesh-apiserver Kubernetes resources",

		cell.Config(k8s.DefaultConfig),
		cell.Provide(
			k8s.ServiceResource,
			k8s.EndpointsResource,
			CiliumNodeResource,
			k8s.CiliumIdentityResource,

			CiliumSlimEndpointResource,
			k8s.CiliumExternalWorkloads,
		),
	)
)

Functions

func CiliumNodeResource added in v1.16.0

func CiliumNodeResource(params k8s.CiliumResourceParams, opts ...func(*metav1.ListOptions)) (resource.Resource[*cilium_api_v2.CiliumNode], error)

func CiliumSlimEndpointResource

func CiliumSlimEndpointResource(params k8s.CiliumResourceParams, opts ...func(*metav1.ListOptions)) (resource.Resource[*types.CiliumEndpoint], error)

Types

type Resources

type Resources struct {
	cell.In

	Services            resource.Resource[*slim_corev1.Service]
	Endpoints           resource.Resource[*k8s.Endpoints]
	CiliumNodes         resource.Resource[*cilium_api_v2.CiliumNode]
	CiliumIdentities    resource.Resource[*cilium_api_v2.CiliumIdentity]
	CiliumSlimEndpoints resource.Resource[*types.CiliumEndpoint]
}

Resources is a convenience struct to group all the agent k8s resources as cell constructor parameters.

Jump to

Keyboard shortcuts

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