You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For each project that uses the reconcileAt annotation:
bump its version of pkg/runtime to 0.1.2 (this picks up the new Changed predicate):
go get github.com/fluxcd/pkg/runtime@v0.1.2
ensure api/go.mod also has pkg/apis/meta v0.1.0 (this means you can use the status struct embed), with a similar go get
remove the LastHandledReconcileAt field from status and embed meta.ReconcileRequestStatus inline, instead:
type ThingStatus struct {// ...meta.ReconcileRequestStatus `json:",inline"`}
run make manifests to update the CRD; it should not alter the schema, only a doc string
run make api-docs (if there is one) to update docs. This does make a material change.
if there's anywhere that refers to something.GetAnnotation()[meta.ReconcileAtAnnotation], change it to use meta.ReconcileAnnotationValue(something.GetAnnotations())
change something.Status.LastHandledReconcileAt to something.Status.GetLastHandledReconcileRequest(), and something.Status.LastHandledReconcileAt = now to something.Status.SetLastHandledReconcileRequest(now)
Once all of those have been updated and a minor version released, think about changing the annotation used by the command-line tool and the notification-controller, which both write the annotation. (EDIT: I think updating the CLI should wait for a minor version release, since it's a minor breaking change in the sense that the new CLI won't work with older controllers.)
The text was updated successfully, but these errors were encountered:
squaremo
added a commit
to fluxcd/kustomize-controller
that referenced
this issue
Oct 22, 2020
For each project that uses the reconcileAt annotation:
go get
LastHandledReconcileAt
field from status and embed meta.ReconcileRequestStatus inline, instead:make manifests
to update the CRD; it should not alter the schema, only a doc stringmake api-docs
(if there is one) to update docs. This does make a material change.something.GetAnnotation()[meta.ReconcileAtAnnotation]
, change it to usemeta.ReconcileAnnotationValue(something.GetAnnotations())
something.Status.LastHandledReconcileAt
tosomething.Status.GetLastHandledReconcileRequest()
, andsomething.Status.LastHandledReconcileAt = now
tosomething.Status.SetLastHandledReconcileRequest(now)
Projects:
image-automation-controller(does not use reconcileAt, yet)source-controllerdoes not support reconcileAt or suspendFinally:
Once all of those have been updated and a minor version released, think about changing the annotation used by the command-line tool and the notification-controller, which both write the annotation. (EDIT: I think updating the CLI should wait for a minor version release, since it's a minor breaking change in the sense that the new CLI won't work with older controllers.)
The text was updated successfully, but these errors were encountered: