reconciler

package
v0.17.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Secret

type Secret struct {
	// contains filtered or unexported fields
}

func NewSecret

func NewSecret(owner metav1.Object, values map[string][]byte) *Secret

func (*Secret) ApplySecret added in v0.2.0

func (p *Secret) ApplySecret(otherSecret corev1.Secret)

ApplySecret fills in type and data on top of the Secret.

func (*Secret) ApplyTemplate

func (p *Secret) ApplyTemplate(template sgv1alpha1.SecretTemplate) error

func (*Secret) ApplyTemplates

func (p *Secret) ApplyTemplates(defaultTpl sgv1alpha1.SecretTemplate,
	customTpl *sgv1alpha1.SecretTemplate) error

func (*Secret) AsSecret

func (p *Secret) AsSecret() *corev1.Secret

func (*Secret) AssociateExistingSecret added in v0.4.0

func (p *Secret) AssociateExistingSecret(otherSecret corev1.Secret)

AssociateExistingSecret copies the UID and ResourceVersion from other into the receiver

type Status

type Status struct {
	S          sgv1alpha1.GenericStatus
	UpdateFunc func(sgv1alpha1.GenericStatus)
}

func (*Status) IsReconcileSucceeded added in v0.2.0

func (s *Status) IsReconcileSucceeded() bool

func (*Status) Result

func (s *Status) Result() sgv1alpha1.GenericStatus

func (*Status) SetReconcileCompleted

func (s *Status) SetReconcileCompleted(err error)

func (*Status) SetReconciling

func (s *Status) SetReconciling(meta metav1.ObjectMeta)

func (*Status) WithReconcileCompleted

func (s *Status) WithReconcileCompleted(result reconcile.Result, err error) (reconcile.Result, error)

type TerminalReconcileErr added in v0.4.0

type TerminalReconcileErr struct {
	Err error
}

TerminalReconcileErr represent a reconciliation error that cannot be corrected without some change in the system (e.g. reconfiguring resources, adding/removing resources). It's indicative to not requeue a reconcile request.

func (TerminalReconcileErr) Error added in v0.4.0

func (e TerminalReconcileErr) Error() string

Jump to

Keyboard shortcuts

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