You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The modules follow a strict import hierarchy to avoid circular imports:
61
+
62
+
```
63
+
constants.py (no project imports)
64
+
↓
65
+
utils.py (imports from constants)
66
+
↓
67
+
image_config.py (imports from constants and utils)
68
+
```
69
+
70
+
Functions that instantiate `ImageConfig` must stay in `image_config.py`. Functions that only use `GLOBAL_CONFIG` or utilities can live in `utils.py`.
71
+
72
+
### Global Configuration
73
+
74
+
The global configuration is loaded once at module import time in `constants.py` and exposed as `GLOBAL_CONFIG`. This eliminates the need to pass `global_config` to most functions.
75
+
76
+
```python
77
+
from constants importGLOBAL_CONFIG
78
+
79
+
# Access any config value
80
+
table_order =GLOBAL_CONFIG.get("table_order", [])
81
+
display_names =GLOBAL_CONFIG["display_names"]
82
+
```
83
+
84
+
### ImageConfig Class
85
+
86
+
The `ImageConfig` class provides a dynamic, config-driven interface for image data:
87
+
88
+
```python
89
+
from image_config import ImageConfig, load_repository_images
"""Get human-readable display name for a repository.
244
-
245
-
Raises:
246
-
KeyError: If repository not found in global config display_names.
247
-
"""
248
-
```
334
+
- The `ImageConfig.is_supported` property checks if `eop >= today`
249
335
250
336
## Update knowledge base
251
337
252
-
If there are any new changes to the documentations generation and organization, make sure to update you knowledge base in the steering/docs.md file.
338
+
If there are any new changes to the documentations generation and organization, make sure to update you knowledge base in the steering/docs.md file and any runbook or update to processes should also be updated in DEVELOPMENT.md files.
339
+
This is done so that developers get the most up-to-date information on the current codebase.
0 commit comments