assess requirement to set approval strategy on Openshift
Summary
A customer ran into issues (ticket link, internal) because the GitLab Operator had updated automatically. They tried to deploy a Rails configuration change, and couldn't because their YAML specified a chart version from a different (earlier) Operator release.
Example error from our docs:
chart version 5.7.0 not supported; please use one of the following: 5.7.1, 5.6.4, 5.5.4
Their version was specified as 7.3.3
but their operator now was 0.25.1
which supports 7.3.6, 7.4.2, 7.5.1
It would seem that Openshift customers need to set the approval strategy to manual
However, you can control whether an operator is upgraded automatically by setting an approval strategy.
Two approval strategies are available:
- Automatic (default) - New operator versions are installed automatically when they are available on the subscription channel.
- Manual - When a new operator version is available on the subscription channel, the subscription indicates that an update is available, but you must approve the update manually.
Steps to reproduce
Deploy the GitLab operator on openshift with the default automatic approval strategy
Configuration used
(Please provide a sanitized version of the GitLab Custom Resource spec
or any other relevant configuration used wrapped in a YAML code block (starting with ```yaml
). Make sure to remove/change any sensitive or identifying information.)
(Paste sanitized configuration here)
Current behavior
The operator automatically upgrades and introduces an incompatibility with the deployed chart version
Expected behavior
The documentation (and, if possible, the GitLab Operator) ensure that operator updates are manually approved.
Versions
- Operator: (tagged version | branch | hash
git rev-parse HEAD
) - Platform:
- Cloud: (GKE | AKS | EKS | ?)
- Self-hosted: (OpenShift | Minikube | Rancher RKE | ?)
- Kubernetes: (
kubectl version
)- Client:
- Server:
Relevant logs
(Please provide any relevant log snippets you have collected, using code blocks (```) to format)