collector

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2020 License: Apache-2.0 Imports: 21 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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
	RoleBindings                     []rbacv1.RoleBinding
	ClusterRoleBindings              []rbacv1.ClusterRoleBinding
	Deployments                      []appsv1.Deployment
	ServiceAccounts                  []corev1.ServiceAccount
	V1CustomResourceDefinitions      []apiextv1.CustomResourceDefinition
	V1beta1CustomResourceDefinitions []apiextv1beta1.CustomResourceDefinition
	ValidatingWebhooks               []admissionregv1.ValidatingWebhook
	MutatingWebhooks                 []admissionregv1.MutatingWebhook
	CustomResources                  []unstructured.Unstructured
	ScorecardConfig                  scorecardv1alpha3.Configuration

	Others []unstructured.Unstructured
}

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

func (*Manifests) SplitCSVClusterPermissionsObjects added in v0.19.3

func (c *Manifests) SplitCSVClusterPermissionsObjects() (in, out []controllerutil.Object)

SplitCSVClusterPermissionsObjects splits cluster roles that should be written to a CSV as clusterPermissions (in) from cluster roles and cluster role bindings that should be written directly to the bundle (out).

func (*Manifests) SplitCSVPermissionsObjects added in v0.19.3

func (c *Manifests) SplitCSVPermissionsObjects() (in, out []controllerutil.Object)

SplitCSVPermissionsObjects splits roles that should be written to a CSV as permissions (in) from roles and role bindings that should be written directly to the bundle (out).

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