v1.31.0
Updating an Ansible Operator to use the updated Ansible 2.15.0 image
- Update the
FROMdirective in theDockerfileto have a version tag >v1.30.0 - Evaluate your dependency requirements. The change to Ansible 2.15.0 also included removal of some pre-installed Python modules. You may need to update your
Dockerfiletopip installmodules required by your operator.
See #6483 for more details.
Upgrading an Ansible Operator project to match the latest ansible/v1 plugin changes
- In the
requirements.ymlfile:- Remove the
community.kubernetescollection entry - Update the version of the
operator_sdk.utilcollection entry tov0.5.0
- Remove the
- In the
molecule/kind/molecule.ymlandmolecule/default/molecule.ymlfiles:- Remove all instances of the
lintfield. For an example of the diff, see: https://github.com/operator-framework/operator-sdk/pull/6483/files#diff-f159b0d7ec17de90f5b5c297ce997254e6ea4001269167be25615c45c489539e
- Remove all instances of the
See #6483 for more details.
Migrating away from the quay.io/operator-framework/ansible-operator-2.11-preview base image
- Update the
FROMdirective in theDockerfileto use the base imagequay.io/operator-framework/ansible-operator:vX.Y.ZwherevX.Y.Zis >v1.30.0
See #6483 for more details.
Require watch on secrets
The operator now requires the watch operation on secrets. When using a custom ServiceAccount for deployment, the following additional role is now required:
rules:
- apiGroups:
- ""
resources:
- secrets
verbs:
- watch
See #6354 for more details.
Last modified July 27, 2023: Release v1.31.0 (#6522) (e67da35e)