@@ -4,26 +4,26 @@ import (
4
4
"context"
5
5
"fmt"
6
6
7
- "sigs.k8s.io/controller-runtime/pkg/log"
8
7
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
9
8
"sigs.k8s.io/cli-utils/pkg/kstatus/status"
10
9
"sigs.k8s.io/controller-runtime/pkg/client"
10
+ "sigs.k8s.io/controller-runtime/pkg/log"
11
11
addonsv1alpha1 "sigs.k8s.io/kubebuilder-declarative-pattern/pkg/patterns/addon/pkg/apis/v1alpha1"
12
12
"sigs.k8s.io/kubebuilder-declarative-pattern/pkg/patterns/declarative"
13
13
"sigs.k8s.io/kubebuilder-declarative-pattern/pkg/patterns/declarative/pkg/manifest"
14
14
)
15
15
16
16
type kstatusAggregator struct {
17
- client client.Client
17
+ client client.Client
18
18
reconciler * declarative.Reconciler
19
19
}
20
20
21
- func NewKstatusAgregator (c client.Client , reconciler * declarative.Reconciler ) * kstatusAggregator {
21
+ func NewKstatusAgregator (c client.Client , reconciler * declarative.Reconciler ) * kstatusAggregator {
22
22
return & kstatusAggregator {client : c , reconciler : reconciler }
23
23
}
24
24
25
- func (k * kstatusAggregator ) Reconciled (ctx context.Context , src declarative.DeclarativeObject ,
26
- objs * manifest.Objects ) error {
25
+ func (k * kstatusAggregator ) Reconciled (ctx context.Context , src declarative.DeclarativeObject ,
26
+ objs * manifest.Objects ) error {
27
27
log := log .Log
28
28
29
29
statusMap := make (map [status.Status ]bool )
@@ -74,7 +74,7 @@ func(k *kstatusAggregator) Reconciled(ctx context.Context, src declarative.Decla
74
74
changed = true
75
75
}
76
76
} else {
77
- return fmt .Errorf ("instance %T was not an addonsv1alpha1.CommonObject or unstructured." +
77
+ return fmt .Errorf ("instance %T was not an addonsv1alpha1.CommonObject or unstructured." +
78
78
"Unstructured" ,
79
79
src )
80
80
}
0 commit comments