parse

package
v1.16.3-rc.3 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// UnregisteredCluster represents a cluster that has not been registered in clusterregistry/.
	UnregisteredCluster = "unregistered_cluster"
)

Variables

This section is empty.

Functions

func FindFiles

func FindFiles(dir cmpath.Absolute) ([]cmpath.Absolute, error)

FindFiles lists what are likely the files tracked by git in cases where we may not be dealing with a git repository. ONLY FOR USE IN THE CLI.

Tries git first, and falls back to using `find` if git does not work.

Guaranteed to return the same files as ListFiles in git repo with no uncommitted changes (see tests for findFiles)

func GetSyncedCRDs

func GetSyncedCRDs(ctx context.Context, skipAPIServer bool, apiServerTimeout time.Duration) ([]*v1beta1.CustomResourceDefinition, status.MultiError)

GetSyncedCRDs returns the CRDs synced to the cluster in the current context.

Times out after 15 seconds.

Types

This section is empty.

Jump to

Keyboard shortcuts

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