Documentation
¶
Index ¶
Constants ¶
View Source
const RolloutReconcileWaitTime = time.Second * 3
RolloutReconcileWaitTime is the time to wait before reconcile again an application still in rollout phase
Variables ¶
This section is empty.
Functions ¶
func ComputeAppRevisionHash ¶ added in v1.0.0
func ComputeAppRevisionHash(appRevision *v1alpha2.ApplicationRevision) (string, error)
ComputeAppRevisionHash computes a single hash value for an appRevision object
func DeepEqualRevision ¶ added in v1.0.0
func DeepEqualRevision(old, new *v1alpha2.ApplicationRevision) bool
DeepEqualRevision will check the Application and Definition to see if the Application is the same revision AC and component are generated by the application and definitions
Types ¶
type AppRevisionHash ¶ added in v1.0.0
type AppRevisionHash struct {
ApplicationSpecHash string
WorkloadDefinitionHash map[string]string
ComponentDefinitionHash map[string]string
TraitDefinitionHash map[string]string
ScopeDefinitionHash map[string]string
}
AppRevisionHash is used to compute the hash value of the AppRevision
type Reconciler ¶
type Reconciler struct {
client.Client
Log logr.Logger
Scheme *runtime.Scheme
// contains filtered or unexported fields
}
Reconciler reconciles a Application object
func (*Reconciler) SetupWithManager ¶
func (r *Reconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager install to manager
func (*Reconciler) UpdateStatus ¶ added in v0.3.3
func (r *Reconciler) UpdateStatus(ctx context.Context, app *v1alpha2.Application, opts ...client.UpdateOption) error
UpdateStatus updates v1alpha2.Application's Status with retry.RetryOnConflict
Click to show internal directories.
Click to hide internal directories.