|
|
@ -30,7 +30,7 @@ import (
|
|
|
|
"k8s.io/client-go/util/retry"
|
|
|
|
"k8s.io/client-go/util/retry"
|
|
|
|
"sigs.k8s.io/controller-runtime/pkg/client"
|
|
|
|
"sigs.k8s.io/controller-runtime/pkg/client"
|
|
|
|
|
|
|
|
|
|
|
|
"github.com/fluxcd/notification-controller/api/v1beta1"
|
|
|
|
notificationv1 "github.com/fluxcd/notification-controller/api/v1beta2"
|
|
|
|
"github.com/fluxcd/pkg/apis/meta"
|
|
|
|
"github.com/fluxcd/pkg/apis/meta"
|
|
|
|
|
|
|
|
|
|
|
|
"github.com/fluxcd/flux2/internal/utils"
|
|
|
|
"github.com/fluxcd/flux2/internal/utils"
|
|
|
@ -111,7 +111,7 @@ func (reconcile reconcileCommand) run(cmd *cobra.Command, args []string) error {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
logger.Successf("%s annotated", reconcile.kind)
|
|
|
|
logger.Successf("%s annotated", reconcile.kind)
|
|
|
|
|
|
|
|
|
|
|
|
if reconcile.kind == v1beta1.AlertKind || reconcile.kind == v1beta1.ReceiverKind {
|
|
|
|
if reconcile.kind == notificationv1.AlertKind || reconcile.kind == notificationv1.ReceiverKind {
|
|
|
|
if err = wait.PollImmediate(rootArgs.pollInterval, rootArgs.timeout,
|
|
|
|
if err = wait.PollImmediate(rootArgs.pollInterval, rootArgs.timeout,
|
|
|
|
isReconcileReady(ctx, kubeClient, namespacedName, reconcile.object)); err != nil {
|
|
|
|
isReconcileReady(ctx, kubeClient, namespacedName, reconcile.object)); err != nil {
|
|
|
|
return err
|
|
|
|
return err
|
|
|
|