-
Story
-
Resolution: Unresolved
-
Normal
-
None
-
None
-
None
-
6
-
False
-
-
False
-
?
-
?
-
?
-
?
-
-
As a user of test-operator:
I want to be able to specify arbitrary PersistentVolumeClaim, Secret, ConfigMap and mount it to the test pod spawned by the test-operator.
So that:
I can consume artifacts inside the test pods which were generated prior to the execution of test-operator (e.g., images generated using os-test-images tool [1])
Definition of Done:
- All CRs (Tempest, Tobiko, HorizonTest, AnsibleTest, ...) accept extraMounts [2] parameter that can be used to specify PersistentVolumeClaim, Secret or Configmag that should be mounted to the test pods.
- The implementation can be inspired by PRs for other operators [3].
- The test-operator documentation is updated so that it properly descripes how to use the extraMounts parameter
Constraints or Risks:
- We shouldn't be removing extraConfigmapMounts parameter from the test-operator yet in order to stay backward compatible.
Deliverables:
- PR for the test-operator which adds extraMounts [2] parameter.
- PR for the test-operator which updates the test-operator documentation so that it reflects the changes regarding the extraMounts parameter.
Notes:
We historically have the ExtraMounts interface that can be use to define the same set of information for ConfigMaps, Secrets, and any other k8s supported object that can be mount within a Pod (see [4] as an example).
The goal of this jira is to include the storage module from lib-common [2] and make the implementation consistent to what has been done for the other operators. Here some documentation [2] and here a very basic implementation (that is what is needed here [6]) that we did for horizon.
[1] https://opendev.org/openstack/os-test-images/src/branch/master/manifest.yaml
[2] https://github.com/openstack-k8s-operators/dev-docs/blob/main/extra_mounts.md
[3] https://github.com/openstack-k8s-operators/horizon-operator/pull/308
[4] https://github.com/openstack-k8s-operators/cinder-operator/pull/65
[5] https://github.com/openstack-k8s-operators/lib-common/tree/main/modules/storage
[6] https://github.com/openstack-k8s-operators/horizon-operator/pull/308
- is related to
-
OSPRH-10366 Replace ExtraConfigmapsMounts with ExtraMounts interface
- Closed