This repository has been archived by the owner on Dec 15, 2022. It is now read-only.
generated from crossplane/provider-template
-
Notifications
You must be signed in to change notification settings - Fork 20
/
zz_setup.go
executable file
·190 lines (181 loc) · 12 KB
/
zz_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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
/*
Copyright 2021 The Crossplane Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
package controller
import (
"k8s.io/client-go/util/workqueue"
ctrl "sigs.k8s.io/controller-runtime"
"github.com/crossplane/crossplane-runtime/pkg/logging"
tjconfig "github.com/crossplane/terrajet/pkg/config"
"github.com/crossplane/terrajet/pkg/terraform"
resourcegrouppolicyassignment "github.com/crossplane-contrib/provider-jet-azure/internal/controller/authorization/resourcegrouppolicyassignment"
resourcegroup "github.com/crossplane-contrib/provider-jet-azure/internal/controller/azure/resourcegroup"
rediscache "github.com/crossplane-contrib/provider-jet-azure/internal/controller/cache/rediscache"
redisenterprisecluster "github.com/crossplane-contrib/provider-jet-azure/internal/controller/cache/redisenterprisecluster"
redisenterprisedatabase "github.com/crossplane-contrib/provider-jet-azure/internal/controller/cache/redisenterprisedatabase"
redisfirewallrule "github.com/crossplane-contrib/provider-jet-azure/internal/controller/cache/redisfirewallrule"
redislinkedserver "github.com/crossplane-contrib/provider-jet-azure/internal/controller/cache/redislinkedserver"
kubernetescluster "github.com/crossplane-contrib/provider-jet-azure/internal/controller/containerservice/kubernetescluster"
kubernetesclusternodepool "github.com/crossplane-contrib/provider-jet-azure/internal/controller/containerservice/kubernetesclusternodepool"
account "github.com/crossplane-contrib/provider-jet-azure/internal/controller/cosmosdb/account"
cassandrakeyspace "github.com/crossplane-contrib/provider-jet-azure/internal/controller/cosmosdb/cassandrakeyspace"
cassandratable "github.com/crossplane-contrib/provider-jet-azure/internal/controller/cosmosdb/cassandratable"
gremlindatabase "github.com/crossplane-contrib/provider-jet-azure/internal/controller/cosmosdb/gremlindatabase"
gremlingraph "github.com/crossplane-contrib/provider-jet-azure/internal/controller/cosmosdb/gremlingraph"
mongocollection "github.com/crossplane-contrib/provider-jet-azure/internal/controller/cosmosdb/mongocollection"
mongodatabase "github.com/crossplane-contrib/provider-jet-azure/internal/controller/cosmosdb/mongodatabase"
notebookworkspace "github.com/crossplane-contrib/provider-jet-azure/internal/controller/cosmosdb/notebookworkspace"
sqlcontainer "github.com/crossplane-contrib/provider-jet-azure/internal/controller/cosmosdb/sqlcontainer"
sqldatabase "github.com/crossplane-contrib/provider-jet-azure/internal/controller/cosmosdb/sqldatabase"
sqlfunction "github.com/crossplane-contrib/provider-jet-azure/internal/controller/cosmosdb/sqlfunction"
sqlstoredprocedure "github.com/crossplane-contrib/provider-jet-azure/internal/controller/cosmosdb/sqlstoredprocedure"
sqltrigger "github.com/crossplane-contrib/provider-jet-azure/internal/controller/cosmosdb/sqltrigger"
table "github.com/crossplane-contrib/provider-jet-azure/internal/controller/cosmosdb/table"
activedirectoryadministrator "github.com/crossplane-contrib/provider-jet-azure/internal/controller/dbforpostgresql/activedirectoryadministrator"
configuration "github.com/crossplane-contrib/provider-jet-azure/internal/controller/dbforpostgresql/configuration"
database "github.com/crossplane-contrib/provider-jet-azure/internal/controller/dbforpostgresql/database"
firewallrule "github.com/crossplane-contrib/provider-jet-azure/internal/controller/dbforpostgresql/firewallrule"
flexibleserver "github.com/crossplane-contrib/provider-jet-azure/internal/controller/dbforpostgresql/flexibleserver"
flexibleserverconfiguration "github.com/crossplane-contrib/provider-jet-azure/internal/controller/dbforpostgresql/flexibleserverconfiguration"
flexibleserverdatabase "github.com/crossplane-contrib/provider-jet-azure/internal/controller/dbforpostgresql/flexibleserverdatabase"
flexibleserverfirewallrule "github.com/crossplane-contrib/provider-jet-azure/internal/controller/dbforpostgresql/flexibleserverfirewallrule"
server "github.com/crossplane-contrib/provider-jet-azure/internal/controller/dbforpostgresql/server"
virtualnetworkrule "github.com/crossplane-contrib/provider-jet-azure/internal/controller/dbforpostgresql/virtualnetworkrule"
iothub "github.com/crossplane-contrib/provider-jet-azure/internal/controller/devices/iothub"
iothubconsumergroup "github.com/crossplane-contrib/provider-jet-azure/internal/controller/devices/iothubconsumergroup"
iothubdps "github.com/crossplane-contrib/provider-jet-azure/internal/controller/devices/iothubdps"
iothubdpscertificate "github.com/crossplane-contrib/provider-jet-azure/internal/controller/devices/iothubdpscertificate"
iothubdpssharedaccesspolicy "github.com/crossplane-contrib/provider-jet-azure/internal/controller/devices/iothubdpssharedaccesspolicy"
iothubendpointeventhub "github.com/crossplane-contrib/provider-jet-azure/internal/controller/devices/iothubendpointeventhub"
iothubendpointservicebusqueue "github.com/crossplane-contrib/provider-jet-azure/internal/controller/devices/iothubendpointservicebusqueue"
iothubendpointservicebustopic "github.com/crossplane-contrib/provider-jet-azure/internal/controller/devices/iothubendpointservicebustopic"
iothubendpointstoragecontainer "github.com/crossplane-contrib/provider-jet-azure/internal/controller/devices/iothubendpointstoragecontainer"
iothubenrichment "github.com/crossplane-contrib/provider-jet-azure/internal/controller/devices/iothubenrichment"
iothubfallbackroute "github.com/crossplane-contrib/provider-jet-azure/internal/controller/devices/iothubfallbackroute"
iothubroute "github.com/crossplane-contrib/provider-jet-azure/internal/controller/devices/iothubroute"
iothubsharedaccesspolicy "github.com/crossplane-contrib/provider-jet-azure/internal/controller/devices/iothubsharedaccesspolicy"
monitormetricalert "github.com/crossplane-contrib/provider-jet-azure/internal/controller/insights/monitormetricalert"
accesspolicy "github.com/crossplane-contrib/provider-jet-azure/internal/controller/keyvault/accesspolicy"
certificate "github.com/crossplane-contrib/provider-jet-azure/internal/controller/keyvault/certificate"
certificateissuer "github.com/crossplane-contrib/provider-jet-azure/internal/controller/keyvault/certificateissuer"
key "github.com/crossplane-contrib/provider-jet-azure/internal/controller/keyvault/key"
managedhardwaresecuritymodule "github.com/crossplane-contrib/provider-jet-azure/internal/controller/keyvault/managedhardwaresecuritymodule"
managedstorageaccount "github.com/crossplane-contrib/provider-jet-azure/internal/controller/keyvault/managedstorageaccount"
managedstorageaccountsastokendefinition "github.com/crossplane-contrib/provider-jet-azure/internal/controller/keyvault/managedstorageaccountsastokendefinition"
secret "github.com/crossplane-contrib/provider-jet-azure/internal/controller/keyvault/secret"
vault "github.com/crossplane-contrib/provider-jet-azure/internal/controller/keyvault/vault"
workspace "github.com/crossplane-contrib/provider-jet-azure/internal/controller/loganalytics/workspace"
loadbalancer "github.com/crossplane-contrib/provider-jet-azure/internal/controller/network/loadbalancer"
subnet "github.com/crossplane-contrib/provider-jet-azure/internal/controller/network/subnet"
subnetnatgatewayassociation "github.com/crossplane-contrib/provider-jet-azure/internal/controller/network/subnetnatgatewayassociation"
subnetnetworksecuritygroupassociation "github.com/crossplane-contrib/provider-jet-azure/internal/controller/network/subnetnetworksecuritygroupassociation"
subnetroutetableassociation "github.com/crossplane-contrib/provider-jet-azure/internal/controller/network/subnetroutetableassociation"
subnetserviceendpointstoragepolicy "github.com/crossplane-contrib/provider-jet-azure/internal/controller/network/subnetserviceendpointstoragepolicy"
virtualnetwork "github.com/crossplane-contrib/provider-jet-azure/internal/controller/network/virtualnetwork"
virtualnetworkgateway "github.com/crossplane-contrib/provider-jet-azure/internal/controller/network/virtualnetworkgateway"
virtualnetworkgatewayconnection "github.com/crossplane-contrib/provider-jet-azure/internal/controller/network/virtualnetworkgatewayconnection"
virtualnetworkpeering "github.com/crossplane-contrib/provider-jet-azure/internal/controller/network/virtualnetworkpeering"
virtualwan "github.com/crossplane-contrib/provider-jet-azure/internal/controller/network/virtualwan"
providerconfig "github.com/crossplane-contrib/provider-jet-azure/internal/controller/providerconfig"
resourcegrouptemplatedeployment "github.com/crossplane-contrib/provider-jet-azure/internal/controller/resources/resourcegrouptemplatedeployment"
mssqlserver "github.com/crossplane-contrib/provider-jet-azure/internal/controller/sql/mssqlserver"
serversql "github.com/crossplane-contrib/provider-jet-azure/internal/controller/sql/server"
accountstorage "github.com/crossplane-contrib/provider-jet-azure/internal/controller/storage/account"
blob "github.com/crossplane-contrib/provider-jet-azure/internal/controller/storage/blob"
container "github.com/crossplane-contrib/provider-jet-azure/internal/controller/storage/container"
)
// Setup creates all controllers with the supplied logger and adds them to
// the supplied manager.
func Setup(mgr ctrl.Manager, l logging.Logger, wl workqueue.RateLimiter, ps terraform.SetupFn, ws *terraform.WorkspaceStore, cfg *tjconfig.Provider, concurrency int) error {
for _, setup := range []func(ctrl.Manager, logging.Logger, workqueue.RateLimiter, terraform.SetupFn, *terraform.WorkspaceStore, *tjconfig.Provider, int) error{
resourcegrouppolicyassignment.Setup,
resourcegroup.Setup,
rediscache.Setup,
redisenterprisecluster.Setup,
redisenterprisedatabase.Setup,
redisfirewallrule.Setup,
redislinkedserver.Setup,
kubernetescluster.Setup,
kubernetesclusternodepool.Setup,
account.Setup,
cassandrakeyspace.Setup,
cassandratable.Setup,
gremlindatabase.Setup,
gremlingraph.Setup,
mongocollection.Setup,
mongodatabase.Setup,
notebookworkspace.Setup,
sqlcontainer.Setup,
sqldatabase.Setup,
sqlfunction.Setup,
sqlstoredprocedure.Setup,
sqltrigger.Setup,
table.Setup,
activedirectoryadministrator.Setup,
configuration.Setup,
database.Setup,
firewallrule.Setup,
flexibleserver.Setup,
flexibleserverconfiguration.Setup,
flexibleserverdatabase.Setup,
flexibleserverfirewallrule.Setup,
server.Setup,
virtualnetworkrule.Setup,
iothub.Setup,
iothubconsumergroup.Setup,
iothubdps.Setup,
iothubdpscertificate.Setup,
iothubdpssharedaccesspolicy.Setup,
iothubendpointeventhub.Setup,
iothubendpointservicebusqueue.Setup,
iothubendpointservicebustopic.Setup,
iothubendpointstoragecontainer.Setup,
iothubenrichment.Setup,
iothubfallbackroute.Setup,
iothubroute.Setup,
iothubsharedaccesspolicy.Setup,
monitormetricalert.Setup,
accesspolicy.Setup,
certificate.Setup,
certificateissuer.Setup,
key.Setup,
managedhardwaresecuritymodule.Setup,
managedstorageaccount.Setup,
managedstorageaccountsastokendefinition.Setup,
secret.Setup,
vault.Setup,
workspace.Setup,
loadbalancer.Setup,
subnet.Setup,
subnetnatgatewayassociation.Setup,
subnetnetworksecuritygroupassociation.Setup,
subnetroutetableassociation.Setup,
subnetserviceendpointstoragepolicy.Setup,
virtualnetwork.Setup,
virtualnetworkgateway.Setup,
virtualnetworkgatewayconnection.Setup,
virtualnetworkpeering.Setup,
virtualwan.Setup,
providerconfig.Setup,
resourcegrouptemplatedeployment.Setup,
mssqlserver.Setup,
serversql.Setup,
accountstorage.Setup,
blob.Setup,
container.Setup,
} {
if err := setup(mgr, l, wl, ps, ws, cfg, concurrency); err != nil {
return err
}
}
return nil
}