Commit 95b36d0
committed
dns/gcp: Allow configuring custom endpoints
If a custom service endpoint has been configured for DNS, use it when
creating the client for the Google Cloud DNS service.
This feature is behind the "GCPCustomAPIEndpoints" featuregate.
This commit resolves CORS-3907.
https://issues.redhat.com/browse/CORS-3907
* pkg/dns/gcp/provider.go (Config): Add GCPCustomEndpointsEnabled field
to the provider config.
(New): If a custom endpoint is set and the featuregate is enabled,
configure the new client to use the endpoint.
* pkg/operator/controller/dns/controller.go (Config): Add
GCPCustomEndpointsEnabled field.
(createDNSProvider): Pass GCPCustomEndpointsEnabled from the controller
config to the GCP provider config.
* pkg/operator/operator.go (New): Set the controller config field based
on the featuregate.1 parent e80fa46 commit 95b36d0
File tree
3 files changed
+32
-7
lines changed- pkg
- dns/gcp
- operator
- controller/dns
3 files changed
+32
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
35 | | - | |
36 | | - | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
37 | 39 | | |
38 | 40 | | |
39 | 41 | | |
40 | | - | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
41 | 58 | | |
42 | 59 | | |
43 | 60 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
117 | 121 | | |
118 | 122 | | |
119 | 123 | | |
| |||
698 | 702 | | |
699 | 703 | | |
700 | 704 | | |
701 | | - | |
702 | | - | |
703 | | - | |
| 705 | + | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
704 | 710 | | |
705 | 711 | | |
706 | 712 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
| 140 | + | |
140 | 141 | | |
141 | 142 | | |
142 | 143 | | |
| |||
256 | 257 | | |
257 | 258 | | |
258 | 259 | | |
| 260 | + | |
259 | 261 | | |
260 | 262 | | |
261 | 263 | | |
| |||
0 commit comments