diff --git a/cmd/flux/reconcile.go b/cmd/flux/reconcile.go index c348be0d615a631fb7c7923058790a81c01ea864..25a5e0cf55ab067678dac4a9ddfa1f92c15da5d6 100644 --- a/cmd/flux/reconcile.go +++ b/cmd/flux/reconcile.go @@ -131,10 +131,10 @@ func requestReconciliation(ctx context.Context, kubeClient client.Client, } if ann := obj.GetAnnotations(); ann == nil { obj.SetAnnotations(map[string]string{ - meta.ReconcileAtAnnotation: time.Now().Format(time.RFC3339Nano), + meta.ReconcileRequestAnnotation: time.Now().Format(time.RFC3339Nano), }) } else { - ann[meta.ReconcileAtAnnotation] = time.Now().Format(time.RFC3339Nano) + ann[meta.ReconcileRequestAnnotation] = time.Now().Format(time.RFC3339Nano) obj.SetAnnotations(ann) } return kubeClient.Update(ctx, obj.asClientObject()) diff --git a/cmd/flux/reconcile_alert.go b/cmd/flux/reconcile_alert.go index d5acf20404367ad731da93877c29ea80ffb60c1e..f37ed870f72ac5fc949093d962f1362ef88e5f90 100644 --- a/cmd/flux/reconcile_alert.go +++ b/cmd/flux/reconcile_alert.go @@ -77,10 +77,10 @@ func reconcileAlertCmdRun(cmd *cobra.Command, args []string) error { logger.Actionf("annotating Alert %s in %s namespace", name, namespace) if alert.Annotations == nil { alert.Annotations = map[string]string{ - meta.ReconcileAtAnnotation: time.Now().Format(time.RFC3339Nano), + meta.ReconcileRequestAnnotation: time.Now().Format(time.RFC3339Nano), } } else { - alert.Annotations[meta.ReconcileAtAnnotation] = time.Now().Format(time.RFC3339Nano) + alert.Annotations[meta.ReconcileRequestAnnotation] = time.Now().Format(time.RFC3339Nano) } if err := kubeClient.Update(ctx, &alert); err != nil { diff --git a/cmd/flux/reconcile_alertprovider.go b/cmd/flux/reconcile_alertprovider.go index 3b76bf00a077f59097bd5f1d5b86d99354ac5402..67f12cd0f345a09c2deafd5fb468c54a29561abb 100644 --- a/cmd/flux/reconcile_alertprovider.go +++ b/cmd/flux/reconcile_alertprovider.go @@ -73,10 +73,10 @@ func reconcileAlertProviderCmdRun(cmd *cobra.Command, args []string) error { if alertProvider.Annotations == nil { alertProvider.Annotations = map[string]string{ - meta.ReconcileAtAnnotation: time.Now().Format(time.RFC3339Nano), + meta.ReconcileRequestAnnotation: time.Now().Format(time.RFC3339Nano), } } else { - alertProvider.Annotations[meta.ReconcileAtAnnotation] = time.Now().Format(time.RFC3339Nano) + alertProvider.Annotations[meta.ReconcileRequestAnnotation] = time.Now().Format(time.RFC3339Nano) } if err := kubeClient.Update(ctx, &alertProvider); err != nil { return err diff --git a/cmd/flux/reconcile_helmrelease.go b/cmd/flux/reconcile_helmrelease.go index 80c8c575c2e216cf770bee341f610643ea03cc16..edbb36710614392b80290570e080f8d9930e46e1 100644 --- a/cmd/flux/reconcile_helmrelease.go +++ b/cmd/flux/reconcile_helmrelease.go @@ -153,10 +153,10 @@ func requestHelmReleaseReconciliation(ctx context.Context, kubeClient client.Cli } if helmRelease.Annotations == nil { helmRelease.Annotations = map[string]string{ - meta.ReconcileAtAnnotation: time.Now().Format(time.RFC3339Nano), + meta.ReconcileRequestAnnotation: time.Now().Format(time.RFC3339Nano), } } else { - helmRelease.Annotations[meta.ReconcileAtAnnotation] = time.Now().Format(time.RFC3339Nano) + helmRelease.Annotations[meta.ReconcileRequestAnnotation] = time.Now().Format(time.RFC3339Nano) } return kubeClient.Update(ctx, helmRelease) }) diff --git a/cmd/flux/reconcile_kustomization.go b/cmd/flux/reconcile_kustomization.go index 109096a33e21bed5d24cff43801a1ce28c1c923e..b543ed4d90aa0f3f60d1c294f7c5061c4472d8ff 100644 --- a/cmd/flux/reconcile_kustomization.go +++ b/cmd/flux/reconcile_kustomization.go @@ -142,10 +142,10 @@ func requestKustomizeReconciliation(ctx context.Context, kubeClient client.Clien } if kustomization.Annotations == nil { kustomization.Annotations = map[string]string{ - meta.ReconcileAtAnnotation: time.Now().Format(time.RFC3339Nano), + meta.ReconcileRequestAnnotation: time.Now().Format(time.RFC3339Nano), } } else { - kustomization.Annotations[meta.ReconcileAtAnnotation] = time.Now().Format(time.RFC3339Nano) + kustomization.Annotations[meta.ReconcileRequestAnnotation] = time.Now().Format(time.RFC3339Nano) } return kubeClient.Update(ctx, kustomization) }) diff --git a/cmd/flux/reconcile_receiver.go b/cmd/flux/reconcile_receiver.go index f89da3dc2831efb33e407aeca72aec543a3efa49..b26b55f20ef39ba23d6151fb9af8aca2df4193e3 100644 --- a/cmd/flux/reconcile_receiver.go +++ b/cmd/flux/reconcile_receiver.go @@ -77,10 +77,10 @@ func reconcileReceiverCmdRun(cmd *cobra.Command, args []string) error { logger.Actionf("annotating Receiver %s in %s namespace", name, namespace) if receiver.Annotations == nil { receiver.Annotations = map[string]string{ - meta.ReconcileAtAnnotation: time.Now().Format(time.RFC3339Nano), + meta.ReconcileRequestAnnotation: time.Now().Format(time.RFC3339Nano), } } else { - receiver.Annotations[meta.ReconcileAtAnnotation] = time.Now().Format(time.RFC3339Nano) + receiver.Annotations[meta.ReconcileRequestAnnotation] = time.Now().Format(time.RFC3339Nano) } if err := kubeClient.Update(ctx, &receiver); err != nil { return err diff --git a/cmd/flux/reconcile_source_bucket.go b/cmd/flux/reconcile_source_bucket.go index 2c20598e4d12a849180c05c368cf2994d3e21167..229289275156fa903820175cbf35d5474e6644af 100644 --- a/cmd/flux/reconcile_source_bucket.go +++ b/cmd/flux/reconcile_source_bucket.go @@ -145,10 +145,10 @@ func requestBucketReconciliation(ctx context.Context, kubeClient client.Client, } if bucket.Annotations == nil { bucket.Annotations = map[string]string{ - meta.ReconcileAtAnnotation: time.Now().Format(time.RFC3339Nano), + meta.ReconcileRequestAnnotation: time.Now().Format(time.RFC3339Nano), } } else { - bucket.Annotations[meta.ReconcileAtAnnotation] = time.Now().Format(time.RFC3339Nano) + bucket.Annotations[meta.ReconcileRequestAnnotation] = time.Now().Format(time.RFC3339Nano) } return kubeClient.Update(ctx, bucket) }) diff --git a/cmd/flux/reconcile_source_git.go b/cmd/flux/reconcile_source_git.go index d6dfcd8e5b4ec3e6d2d752dc215690ce9cbda689..b5e54e7554058fc36ffefe06eeae39cbd39ea846 100644 --- a/cmd/flux/reconcile_source_git.go +++ b/cmd/flux/reconcile_source_git.go @@ -116,10 +116,10 @@ func requestGitRepositoryReconciliation(ctx context.Context, kubeClient client.C } if repository.Annotations == nil { repository.Annotations = map[string]string{ - meta.ReconcileAtAnnotation: time.Now().Format(time.RFC3339Nano), + meta.ReconcileRequestAnnotation: time.Now().Format(time.RFC3339Nano), } } else { - repository.Annotations[meta.ReconcileAtAnnotation] = time.Now().Format(time.RFC3339Nano) + repository.Annotations[meta.ReconcileRequestAnnotation] = time.Now().Format(time.RFC3339Nano) } return kubeClient.Update(ctx, repository) }) diff --git a/cmd/flux/reconcile_source_helm.go b/cmd/flux/reconcile_source_helm.go index 782afcba62f9c39a414e7fba5056a80eaf92baf9..4e52d172cbd99aa248ed6eb75c632aac59745045 100644 --- a/cmd/flux/reconcile_source_helm.go +++ b/cmd/flux/reconcile_source_helm.go @@ -117,10 +117,10 @@ func requestHelmRepositoryReconciliation(ctx context.Context, kubeClient client. } if repository.Annotations == nil { repository.Annotations = map[string]string{ - meta.ReconcileAtAnnotation: time.Now().Format(time.RFC3339Nano), + meta.ReconcileRequestAnnotation: time.Now().Format(time.RFC3339Nano), } } else { - repository.Annotations[meta.ReconcileAtAnnotation] = time.Now().Format(time.RFC3339Nano) + repository.Annotations[meta.ReconcileRequestAnnotation] = time.Now().Format(time.RFC3339Nano) } return kubeClient.Update(ctx, repository) })