reference

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetConfigMapsReferencedBy

func GetConfigMapsReferencedBy(object interface{}) (map[string]bool, error)

GetConfigMapsReferencedBy returns a list of all names for ConfigMaps referenced by the object The object can be an QuarksStatefulSet or a BOSHDeployment

func GetReconciles

func GetReconciles(ctx context.Context, client crc.Client, reconcileType ReconcileType, object apis.Object, versionCheck bool) ([]reconcile.Request, error)

GetReconciles returns reconciliation requests for the BOSHDeployments or QuarksStatefulSets that reference an object. The object can be a ConfigMap or a Secret

func GetSecretsReferencedBy

func GetSecretsReferencedBy(ctx context.Context, client crc.Client, object interface{}) (map[string]bool, error)

GetSecretsReferencedBy returns a list of all names for Secrets referenced by the object The object can be an QuarksStatefulSet or a BOSHDeployment

func SkipReconciles added in v0.3.0

func SkipReconciles(ctx context.Context, client crc.Client, object apis.Object) bool

SkipReconciles returns true if the object is stale, and shouldn't be enqueued for reconciliation The object can be a ConfigMap or a Secret

Types

type ReconcileType

type ReconcileType int

ReconcileType lists all the types of reconciliations we can return, for controllers that have types that can reference ConfigMaps or Secrets

const (
	// ReconcileForBOSHDeployment represents the BOSHDeployment CRD
	ReconcileForBOSHDeployment ReconcileType = iota
	// ReconcileForQuarksStatefulSet represents the QuarksStatefulSet CRD
	ReconcileForQuarksStatefulSet
)

func (ReconcileType) String

func (r ReconcileType) String() string

Jump to

Keyboard shortcuts

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