Skip to content

Commit bb3a599

Browse files
authored
Merge pull request #12998 from chrischdi/pr-1-10-1-11-document-crd-rbac
📖 book: document required permissions for GetObjectFromContractVersionedRef
2 parents d25a869 + af66ef0 commit bb3a599

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

docs/book/src/developer/providers/migrations/v1.10-to-v1.11.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2800,6 +2800,12 @@ As documented in [Suggested changes for providers](#suggested-changes-for-provid
28002800
external.GetObjectFromContractVersionedRef(ctx, r.Client, cluster.Spec.InfrastructureRef, cluster.Namespace)
28012801
```
28022802

2803+
- This functions requires the permissions to `get`, `list` and `watch` objects of the type `customresourcedefinitions` to identify the used contract version.
2804+
2805+
```go
2806+
// +kubebuilder:rbac:groups=apiextensions.k8s.io,resources=customresourcedefinitions,verbs=get;list;watch
2807+
```
2808+
28032809
- Go clients writing status of core Cluster API objects, should use at least Cluster API v1.9 Go types.
28042810
If that is not possible, avoid updating or patching the entire status field and instead you should patch only individual fields.
28052811
(Cluster API v1.9 introduced `.status.v1beta2` fields that are necessary for lossless v1beta2 => v1beta1 => v1beta2 round trips)
@@ -2854,6 +2860,12 @@ As documented in [Suggested changes for providers](#suggested-changes-for-provid
28542860
external.GetObjectFromContractVersionedRef(ctx, r.Client, cluster.Spec.InfrastructureRef, cluster.Namespace)
28552861
```
28562862

2863+
- This functions requires the permissions to `get`, `list` and `watch` objects of the type `customresourcedefinitions` to identify the used contract version.
2864+
2865+
```go
2866+
// +kubebuilder:rbac:groups=apiextensions.k8s.io,resources=customresourcedefinitions,verbs=get;list;watch
2867+
```
2868+
28572869
- core Cluster API added the new CRD migrator component in the v1.9 release. For more details, see: https://github.com/kubernetes-sigs/cluster-api/issues/11894
28582870
- CRD migration in clusterctl has been deprecated and will be removed in CAPI v1.13, so it's recommended to
28592871
adopt the CRD migrator in providers instead.

0 commit comments

Comments
 (0)