collector

package
v0.19.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manifests

type Manifests struct {
	Roles                            []rbacv1.Role
	ClusterRoles                     []rbacv1.ClusterRole
	Deployments                      []appsv1.Deployment
	V1CustomResourceDefinitions      []apiextv1.CustomResourceDefinition
	V1beta1CustomResourceDefinitions []apiextv1beta1.CustomResourceDefinition
	ValidatingWebhooks               []admissionregv1.ValidatingWebhook
	MutatingWebhooks                 []admissionregv1.MutatingWebhook
	CustomResources                  []unstructured.Unstructured
	Others                           []unstructured.Unstructured
}

Manifests holds a collector of all manifests relevant to CSV updates.

func (*Manifests) UpdateFromDirs

func (c *Manifests) UpdateFromDirs(deployDir, crdsDir string) error

UpdateFromDirs adds Roles, ClusterRoles, Deployments, and Custom Resource examples found in deployDir, and CustomResourceDefinitions found in crdsDir, to their respective fields in a Manifests, then filters and deduplicates them. All other objects are added to Manifests.Others.

func (*Manifests) UpdateFromReader

func (c *Manifests) UpdateFromReader(r io.Reader) error

UpdateFromReader adds Roles, ClusterRoles, Deployments, CustomResourceDefinitions, and Custom Resources found in r to their respective fields in a Manifests, then filters and deduplicates them. All other objects are added to Manifests.Others.

Jump to

Keyboard shortcuts

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