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.
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 ¶
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.
Click to show internal directories.
Click to hide internal directories.