parse

package
v1.13.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2022 License: Apache-2.0 Imports: 18 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) ([]*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