reference

package
v0.0.184-gd91fd91 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ReconcileForQuarksJob represents the QuarksJob CRD
	ReconcileForQuarksJob = iota
)

Variables

This section is empty.

Functions

func GetReconciles

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

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

func ReferencedConfigMaps

func ReferencedConfigMaps(object qjv1a1.QuarksJob) map[string]bool

ReferencedConfigMaps returns a list of all names for ConfigMaps referenced by the QuarksJob

func ReferencedSecrets

func ReferencedSecrets(object qjv1a1.QuarksJob) map[string]bool

ReferencedSecrets returns a list of all names for Secrets referenced by the QuarksJob

func SkipReconciles

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

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