You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/book/src/developer/providers/v1.1-to-v1.2.md
+3-2Lines changed: 3 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ maintainers of providers and consumers of our Go API.
10
10
## Dependencies
11
11
12
12
**Note**: Only the most relevant dependencies are listed, `k8s.io/` and `ginkgo`/`gomega` dependencies
13
-
in ClusterAPI are kept in sync with the versions used by `sigs.k8s.io/controller-runtime`.
13
+
in ClusterAPI are kept in sync with the versions used by `sigs.k8s.io/controller-runtime`.
14
14
15
15
-
16
16
@@ -26,7 +26,8 @@ in ClusterAPI are kept in sync with the versions used by `sigs.k8s.io/controller
26
26
27
27
### API Changes
28
28
29
-
-
29
+
-`util.ClusterToInfrastructureMapFuncWithExternallyManagedCheck` was removed and the externally managed check was added to `util.ClusterToInfrastructureMapFunc`, which required changing its signature.
30
+
Users of the former simply need to start using the latter and users of the latter need to add the new arguments to their call.
log.V(4).Info(fmt.Sprintf("%T is externally managed, skipping mapping", providerCluster))
226
+
returnnil
227
+
}
215
228
216
229
return []reconcile.Request{
217
230
{
218
231
NamespacedName: client.ObjectKey{
219
-
Namespace: c.Namespace,
220
-
Name: c.Spec.InfrastructureRef.Name,
232
+
Namespace: cluster.Namespace,
233
+
Name: cluster.Spec.InfrastructureRef.Name,
221
234
},
222
235
},
223
236
}
224
237
}
225
238
}
226
239
227
-
// ClusterToInfrastructureMapFuncWithExternallyManagedCheck is like ClusterToInfrastructureMapFunc but will exclude externally managed infrastructures from the mapping.
228
-
// We will update ClusterToInfrastructureMapFunc to include this check in an upcoming release but defer that for now as adjusting the signature is a breaking change.
229
-
funcClusterToInfrastructureMapFuncWithExternallyManagedCheck(ctx context.Context, gvk schema.GroupVersionKind, c client.Client, providerCluster client.Object) handler.MapFunc {
0 commit comments