Skip to content

Commit 5257910

Browse files
⚠️ update Ansible requirements (#5846)
* ⚠️ update ansible requirements For Ansible-based language operators, upgrade - `community.kubernetes` from `1.2.1` to `2.0.1` - `kubernetes.core` from `2.2.0` to `2.3.1` - `cloud.common` from `2.2.0` to `2.2.1` Signed-off-by: Camila Macedo <[email protected]> * Apply suggestions from code review
1 parent 0eb9ae4 commit 5257910

File tree

3 files changed

+90
-6
lines changed

3 files changed

+90
-6
lines changed
Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
# entries is a list of entries to include in
2+
# release notes and/or the migration guide
3+
entries:
4+
- description: >
5+
For Ansible-based language operators, upgrade `community.kubernetes` from `1.2.1` to `2.0.1`. **IMPORTANT** The `community.kubernetes` collection is being renamed to kubernetes.core. As of version 2.0.0, the collection has been replaced by deprecated redirects for all content to kubernetes.core. If you are using FQCNs starting with `community.kubernetes`, please update them to `kubernetes.core`.
6+
kind: "change"
7+
breaking: true
8+
migration:
9+
header: For Ansible-based language operators, upgrade `community.kubernetes` from `1.2.1` to `2.0.1`.
10+
body: |
11+
**IMPORTANT** The `community.kubernetes` collection is being renamed to `kubernetes.core`. As of version 2.0.0, the collection has been replaced by deprecated redirects for all content to kubernetes.core. If you are using FQCNs starting with `community.kubernetes`, please update them to `kubernetes.core`.
12+
Ensure that you check the [community.kubernetes changelog](https://github.com/ansible-collections/community.kubernetes/blob/main/CHANGELOG.rst) to verify if your Operator code must be updated and it is affected by the MAJOR changes.
13+
14+
In the `requirements.yml` file:
15+
16+
Replace:
17+
18+
```yaml
19+
collections:
20+
- name: community.kubernetes
21+
version: "1.2.1"
22+
```
23+
24+
With:
25+
26+
```yaml
27+
collections:
28+
- name: community.kubernetes
29+
version: "2.0.1"
30+
```
31+
- description: >
32+
For Ansible-based language operators, upgrade `kubernetes.core` from `2.2.0` to `2.3.1`. **IMPORTANT** The `community.kubernetes` collection is being renamed to kubernetes.core. As of version 2.0.0, the collection has been replaced by deprecated redirects for all content to kubernetes.core. If you are using FQCNs starting with `community.kubernetes`, please update them to `kubernetes.core`.
33+
kind: "change"
34+
breaking: false
35+
migration:
36+
header: For Ansible-based language operators, upgrade `kubernetes.core` from `2.2.0` to `2.3.1`.
37+
body: |
38+
Ensure that you check the [kubernetes.core changelog](https://github.com/ansible-collections/kubernetes.core/blob/main/CHANGELOG.rst) to verify if your Operator code must be updated and it is affected by the MAJOR changes.
39+
40+
In the `requirements.yml` file:
41+
42+
Replace:
43+
44+
```yaml
45+
collections:
46+
...
47+
- name: kubernetes.core
48+
version: "2.2.0"
49+
```
50+
51+
With:
52+
53+
```yaml
54+
collections:
55+
...
56+
- name: kubernetes.core
57+
version: "2.3.1"
58+
```
59+
- description: >
60+
For Ansible-based language operators, upgrade `community.kubernetes` from `1.2.1` to `2.0.1`. **IMPORTANT** The `community.kubernetes` collection is being renamed to kubernetes.core. As of version 2.0.0, the collection has been replaced by deprecated redirects for all content to kubernetes.core. If you are using FQCNs starting with `community.kubernetes`, please update them to `kubernetes.core`.
61+
kind: "change"
62+
breaking: false
63+
migration:
64+
header: For Ansible-based language operators, upgrade `cloud.common` from `2.2.0` to `2.2.1`.
65+
body: |
66+
In the `requirements.yml` file:
67+
68+
Replace:
69+
70+
```ymal
71+
collections:
72+
...
73+
- name: cloud.common
74+
version: "2.2.0"
75+
```
76+
77+
With:
78+
79+
```ymal
80+
collections:
81+
...
82+
- name: cloud.common
83+
version: "2.2.1"
84+
```

internal/plugins/ansible/v1/scaffolds/internal/templates/requirements.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@ func (f *RequirementsYml) SetTemplateDefaults() error {
3636
const requirementsYmlTmpl = `---
3737
collections:
3838
- name: community.kubernetes
39-
version: "1.2.1"
39+
version: "2.0.1"
4040
- name: operator_sdk.util
4141
version: "0.4.0"
4242
- name: kubernetes.core
43-
version: "2.2.0"
43+
version: "2.3.1"
4444
- name: cloud.common
45-
version: "2.1.0"
45+
version: "2.1.1"
4646
`
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
---
22
collections:
33
- name: community.kubernetes
4-
version: "1.2.1"
4+
version: "2.0.1"
55
- name: operator_sdk.util
66
version: "0.4.0"
77
- name: kubernetes.core
8-
version: "2.2.0"
8+
version: "2.3.1"
99
- name: cloud.common
10-
version: "2.1.0"
10+
version: "2.1.1"

0 commit comments

Comments
 (0)