StarlingX Platform Armada App
Go to file
Gabriel de Araújo Cabral 855c7b1da9 Add check for csi-snapshotter container creation
This commit introduces a check to determine whether or not the
csi-snapshotter container will be created in each provisioner's
pod.

The only scenario in which the 'provisioner.snapshotter.enabled'
field will automatically be set to 'true' and the csi-snapshotter
container will be created during apply is with:
- CRDs created: volumesnapshotclasses, volumesnapshots and
  volumesnapshotcontents.
- Snapshot-controller pod created and using the correct image
  according to the K8s version.

In all other scenarios, 'provisioner.snapshotter.enabled' will be
set to 'false' during apply and the container will not be created.

Remembering that the user can create/remove the container manually
if desired via helm override.

Depends-on: https://review.opendev.org/c/starlingx/platform-armada-app/+/904875

Test Plan:
 PASS: Build a new app package with the code changes
 PASS: Successfully execute upload, apply, remove, and delete
       operations for platform-integ-apps
 PASS: In an environment with CRDs and snapshot-controller using
       the correct image version according to Kubernetes, apply the
       app and verify that the snaphotter field is 'enabled: true'
       and the container has been created in both provisioner pods
 PASS: In an environment with CRDs but with snapshot-controller
       using the incorrect image version according to Kubernetes,
       apply the app and verify that the snaphotter field is
       'enabled: false' and the container has not been created
 PASS: In an environment without CRDs and snapshot-controller, apply
       the app and verify that snaphotter field is 'enabled: false'
       and the container has not been created
 PASS: Manually create/remove csi-snapshotter container via
       helm-override

Partial-Bug: 2045897

Change-Id: I7dbcbba520c9758de84e8dae5a553ec1fee69518
Signed-off-by: Gabriel de Araújo Cabral <gabriel.cabral@windriver.com>
2024-01-25 13:28:02 -03:00
helm-charts Add check for csi-snapshotter container creation 2024-01-25 13:28:02 -03:00
python3-k8sapp-platform Add check for csi-snapshotter container creation 2024-01-25 13:28:02 -03:00
stx-platform-helm Update ceph-csi helm charts to v3.10.1 2024-01-22 21:57:30 -03:00
.gitignore Update app Zuul Check Jobs. 2023-12-15 12:44:37 -07:00
.gitreview Add a .gitreview file to the new repo 2019-09-09 09:29:58 -05:00
.zuul.yaml Update app Zuul Check Jobs. 2023-12-15 12:44:37 -07:00
bindep.txt Enable py39 tox gate/test for app plugins 2021-09-13 11:37:39 -04:00
CONTRIBUTING.rst Adding zuul jobs for new repo 2019-09-09 14:47:45 -05:00
debian_build_layer.cfg Add debian_build_layer.cfg file 2021-10-05 14:10:40 -04:00
debian_iso_image.inc platform-armada-app: update debian_iso_image.inc 2022-11-23 11:11:19 +08:00
debian_pkg_dirs Auto-increment chart versions 2024-01-17 16:26:23 -06:00
HACKING.rst Adding zuul jobs for new repo 2019-09-09 14:47:45 -05:00
requirements.txt Adding zuul jobs for new repo 2019-09-09 14:47:45 -05:00
test-requirements.txt Adding zuul jobs for new repo 2019-09-09 14:47:45 -05:00
tox.ini Update app Zuul Check Jobs. 2023-12-15 12:44:37 -07:00