Documentation ¶
Index ¶
- func NewCompositionRevision(c *v1.Composition, revision int64, compSpecHash string) *v1alpha1.CompositionRevision
- func NewCompositionRevisionComposedTemplate(ct v1.ComposedTemplate) v1alpha1.ComposedTemplate
- func NewCompositionRevisionConnectionDetail(cd v1.ConnectionDetail) v1alpha1.ConnectionDetail
- func NewCompositionRevisionPatch(p v1.Patch) v1alpha1.Patch
- func NewCompositionRevisionPatchSet(ps v1.PatchSet) v1alpha1.PatchSet
- func NewCompositionRevisionReadinessCheck(rc v1.ReadinessCheck) v1alpha1.ReadinessCheck
- func NewCompositionRevisionSpec(cs v1.CompositionSpec, revision int64) v1alpha1.CompositionRevisionSpec
- func NewCompositionRevisionTransform(t v1.Transform) v1alpha1.Transform
- func Setup(mgr ctrl.Manager, o controller.Options) error
- type Reconciler
- type ReconcilerOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCompositionRevision ¶
func NewCompositionRevision(c *v1.Composition, revision int64, compSpecHash string) *v1alpha1.CompositionRevision
NewCompositionRevision creates a new revision of the supplied Composition.
func NewCompositionRevisionComposedTemplate ¶
func NewCompositionRevisionComposedTemplate(ct v1.ComposedTemplate) v1alpha1.ComposedTemplate
NewCompositionRevisionComposedTemplate translates a composition's composed (resource) template to a composition composed template.
func NewCompositionRevisionConnectionDetail ¶
func NewCompositionRevisionConnectionDetail(cd v1.ConnectionDetail) v1alpha1.ConnectionDetail
NewCompositionRevisionConnectionDetail translates a composition's connection detail to a composition revision connection detail.
func NewCompositionRevisionPatch ¶
NewCompositionRevisionPatch translates a composition's patch to a composition revision patch.
func NewCompositionRevisionPatchSet ¶
NewCompositionRevisionPatchSet translates a composition's patch set to a composition revision patch set.
func NewCompositionRevisionReadinessCheck ¶
func NewCompositionRevisionReadinessCheck(rc v1.ReadinessCheck) v1alpha1.ReadinessCheck
NewCompositionRevisionReadinessCheck translates a composition's readiness check to a composition revision readiness check.
func NewCompositionRevisionSpec ¶
func NewCompositionRevisionSpec(cs v1.CompositionSpec, revision int64) v1alpha1.CompositionRevisionSpec
NewCompositionRevisionSpec translates a composition's spec to a composition revision spec.
func NewCompositionRevisionTransform ¶
NewCompositionRevisionTransform translates a compostion's transform to a composition revision transform.
Types ¶
type Reconciler ¶
type Reconciler struct {
// contains filtered or unexported fields
}
A Reconciler reconciles Compositions by creating new CompositionRevisions for each revision of the Composition's spec.
func NewReconciler ¶
func NewReconciler(mgr manager.Manager, opts ...ReconcilerOption) *Reconciler
NewReconciler returns a Reconciler of Compositions.
type ReconcilerOption ¶
type ReconcilerOption func(*Reconciler)
ReconcilerOption is used to configure the Reconciler.
func WithLogger ¶
func WithLogger(log logging.Logger) ReconcilerOption
WithLogger specifies how the Reconciler should log messages.
func WithRecorder ¶
func WithRecorder(er event.Recorder) ReconcilerOption
WithRecorder specifies how the Reconciler should record Kubernetes events.