namespaceconfig

package
v1.13.1-rc.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecorateWithClusterConfigs

func DecorateWithClusterConfigs(ctx context.Context, reader client.Reader, policies *AllConfigs) status.MultiError

DecorateWithClusterConfigs updates AllPolices with all the ClusterConfigs from APIServer.

func NamespaceConfigsEqual

func NamespaceConfigsEqual(decoder decode.Decoder, lhs client.Object, rhs client.Object) (bool, error)

NamespaceConfigsEqual returns true if the NamespaceConfigs are equivalent.

Types

type AllConfigs

type AllConfigs struct {
	// Map of names to NamespaceConfigs.
	NamespaceConfigs map[string]v1.NamespaceConfig
	// Singleton config for non-CRD cluster-scoped resources.
	ClusterConfig *v1.ClusterConfig
	// Config with declared state for CRDs.
	CRDClusterConfig *v1.ClusterConfig
	// Map of names to Syncs.
	Syncs map[string]v1.Sync
}

AllConfigs holds things that Importer wants to sync. It is only used in-process, not written directly as a Kubernetes resource.

func ListConfigs

func ListConfigs(ctx context.Context, cache cache.Cache) (*AllConfigs, error)

ListConfigs returns all configs from API server.

func NewAllConfigs

func NewAllConfigs(importToken string, loadTime metav1.Time, fileObjects []ast.FileObject) *AllConfigs

NewAllConfigs initializes a default empty AllConfigs.

func (*AllConfigs) ClusterScopedCount

func (c *AllConfigs) ClusterScopedCount() int

ClusterScopedCount returns the number of cluster-scoped resources in the AllConfigs.

Jump to

Keyboard shortcuts

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