|
1 | 1 | """
|
2 |
| -Defaults module |
| 2 | +Defaults module. |
| 3 | +
|
| 4 | +This module is automatically loaded with variables defined in |
| 5 | +conf/ocsci/default_config.yaml in its DEFAULTS section. |
| 6 | +
|
| 7 | +If the variable can be used in some config file sections from ocsci/config.py |
| 8 | +module, plese put your defaults rather to mentioned default_config.yaml file! |
| 9 | +
|
| 10 | +See the documentation in conf/README.md file to understand this config file. |
| 11 | +
|
| 12 | +PYTEST_DONT_REWRITE - avoid pytest to rewrite, keep this msg here please! |
3 | 13 | """
|
4 | 14 | import os
|
5 | 15 | from getpass import getuser
|
6 | 16 |
|
7 | 17 | THIS_DIR = os.path.dirname(os.path.abspath(__file__))
|
8 | 18 | TOP_DIR = os.path.dirname(THIS_DIR)
|
9 | 19 | TEMPLATE_DIR = os.path.join(TOP_DIR, "templates/ocs-deployment/")
|
| 20 | +STORAGE_API_VERSION = 'storage.k8s.io/v1' |
| 21 | +ROOK_API_VERSION = 'ceph.rook.io/v1' |
| 22 | +OCP_API_VERSION = 'project.openshift.io/v1' |
| 23 | +OPENSHIFT_REST_CLIENT_API_VERSION = 'v1' |
10 | 24 |
|
11 |
| -# This module is automatically loaded with variables defined in |
12 |
| -# conf/ocsci/default_config.yaml in its DEFAULTS section. |
13 |
| -# If the variable can be used in some config file sections from ocsci/config.py |
14 |
| -# module, plese put your defaults rather to mentioned default_config.yaml file! |
15 |
| - |
16 |
| -# See the documentation in conf/README.md file to understand this config file. |
17 |
| - |
18 |
| -# Those variables are duplicate at the moment from default_config.yaml and once |
19 |
| -# we drop support for old runner we will remove those variables from here and |
20 |
| -# will have them defined only on one place. |
| 25 | +# Those variables below are duplicate at the moment from default_config.yaml |
| 26 | +# and once we drop support for old runner we will remove those variables from |
| 27 | +# here and will have them defined only on one place. |
21 | 28 |
|
22 |
| -# Be aware that variables defined below are not used anywhere in th config |
23 |
| -# files and their sections when we rendering config! |
| 29 | +# Be aware that variables defined above and below are not used anywhere in the |
| 30 | +# config files and their sections when we rendering config! |
24 | 31 |
|
25 | 32 | INSTALLER_VERSION = '4.1.0-rc.3'
|
26 | 33 | CLIENT_VERSION = INSTALLER_VERSION
|
|
44 | 51 | 'ceph_image': CEPH_IMAGE,
|
45 | 52 | 'rook_image': ROOK_IMAGE,
|
46 | 53 | }
|
47 |
| -STORAGE_API_VERSION = 'storage.k8s.io/v1' |
48 |
| -ROOK_API_VERSION = 'ceph.rook.io/v1' |
49 |
| -OCP_API_VERSION = 'project.openshift.io/v1' |
50 |
| -OPENSHIFT_REST_CLIENT_API_VERSION = 'v1' |
|
0 commit comments