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
internal/scaffold/helm/chart.go: change default API version (#2859)
Changed default API version for new Helm-based operators
to `helm.operator-sdk/v1alpha1`. The `k8s.io` domain is
reserved, so CRDs should not use it without explicit appproval.
Changed default API version for new Helm-based operators
4
+
to `helm.operator-sdk/v1alpha1`. The `k8s.io` domain is
5
+
reserved, so CRDs should not use it without explicit appproval.
6
+
See the [API Review Process](https://github.com/kubernetes/community/blob/81ec4af0ed02b4c5c0917a16563250b2f45250c2/sig-architecture/api-review-process.md#mandatory) for details.
7
+
8
+
kind: change
9
+
10
+
# Is this a breaking change?
11
+
breaking: false
12
+
13
+
migration:
14
+
header: Helm-based operators should not use `k8s.io` API version suffix
15
+
body: |-
16
+
Newly created Helm-based operators no longer use the `k8s.io` domain
17
+
suffix as a default API version because it is reserved. APIs and CRDs
18
+
using this domain [require API review][api-review] and approval.
19
+
Existing projects that do not have this approval should migrate to use
20
+
a new CRD API version suffix.
21
+
22
+
Make the following changes to migrate to a new group name:
23
+
24
+
- `watches.yaml` - Update the `group` field.
25
+
- `deploy/role.yaml` - Update the `apiGroups` field in the policy rule giving access to the CRD.
26
+
- `deploy/crds/`
27
+
- Update the `metadata.name` and `spec.group` fields in the CRD files.
28
+
- Update the `apiVersion` field in the CR files.
29
+
- Rename the CRD and CR files to reflect the new group name.
0 commit comments