-
Notifications
You must be signed in to change notification settings - Fork 74
/
zz_bigquery_setup.go
executable file
·60 lines (55 loc) · 2.66 KB
/
zz_bigquery_setup.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
// SPDX-FileCopyrightText: 2023 The Crossplane Authors <https://crossplane.io>
//
// SPDX-License-Identifier: Apache-2.0
package controller
import (
ctrl "sigs.k8s.io/controller-runtime"
"github.com/crossplane/upjet/pkg/controller"
analyticshubdataexchange "github.com/upbound/provider-gcp/internal/controller/bigquery/analyticshubdataexchange"
analyticshubdataexchangeiammember "github.com/upbound/provider-gcp/internal/controller/bigquery/analyticshubdataexchangeiammember"
analyticshublisting "github.com/upbound/provider-gcp/internal/controller/bigquery/analyticshublisting"
connection "github.com/upbound/provider-gcp/internal/controller/bigquery/connection"
dataset "github.com/upbound/provider-gcp/internal/controller/bigquery/dataset"
datasetaccess "github.com/upbound/provider-gcp/internal/controller/bigquery/datasetaccess"
datasetiambinding "github.com/upbound/provider-gcp/internal/controller/bigquery/datasetiambinding"
datasetiammember "github.com/upbound/provider-gcp/internal/controller/bigquery/datasetiammember"
datasetiampolicy "github.com/upbound/provider-gcp/internal/controller/bigquery/datasetiampolicy"
datatransferconfig "github.com/upbound/provider-gcp/internal/controller/bigquery/datatransferconfig"
job "github.com/upbound/provider-gcp/internal/controller/bigquery/job"
reservation "github.com/upbound/provider-gcp/internal/controller/bigquery/reservation"
reservationassignment "github.com/upbound/provider-gcp/internal/controller/bigquery/reservationassignment"
routine "github.com/upbound/provider-gcp/internal/controller/bigquery/routine"
table "github.com/upbound/provider-gcp/internal/controller/bigquery/table"
tableiambinding "github.com/upbound/provider-gcp/internal/controller/bigquery/tableiambinding"
tableiammember "github.com/upbound/provider-gcp/internal/controller/bigquery/tableiammember"
tableiampolicy "github.com/upbound/provider-gcp/internal/controller/bigquery/tableiampolicy"
)
// Setup_bigquery creates all controllers with the supplied logger and adds them to
// the supplied manager.
func Setup_bigquery(mgr ctrl.Manager, o controller.Options) error {
for _, setup := range []func(ctrl.Manager, controller.Options) error{
analyticshubdataexchange.Setup,
analyticshubdataexchangeiammember.Setup,
analyticshublisting.Setup,
connection.Setup,
dataset.Setup,
datasetaccess.Setup,
datasetiambinding.Setup,
datasetiammember.Setup,
datasetiampolicy.Setup,
datatransferconfig.Setup,
job.Setup,
reservation.Setup,
reservationassignment.Setup,
routine.Setup,
table.Setup,
tableiambinding.Setup,
tableiammember.Setup,
tableiampolicy.Setup,
} {
if err := setup(mgr, o); err != nil {
return err
}
}
return nil
}