-
Story
-
Resolution: Done
-
Undefined
-
None
-
False
-
-
False
-
-
Problem (FLPATH-3145)
The cost-onprem helm chart uses the 'lookup' command in templates, which breaks oc-mirror for disconnected customers. The error occurs when oc-mirror tries to template the chart:
execution error at (cost-onprem/templates/infrastructure/storage/job-minio-buckets.yaml:3:24): ODF (OpenShift Data Foundation) not detected. This chart requires ODF with NooBaa for S3 storage.
The 'lookup' command requires an active kubernetes cluster connection, making the chart incompatible with oc-mirror which needs to template charts offline.
Root Cause
The helm 'lookup' function is used to detect ODF/NooBaa presence, but this approach:
- Requires cluster connectivity during templating
- Breaks oc-mirror functionality for disconnected environments
- Prevents chart packaging and mirroring
Solution
Replace 'lookup' commands with alternative approaches that don't require cluster connectivity:
- Use values.yaml configuration options instead of runtime detection
- Move cluster validations to post-install hooks or init containers
- Provide clear documentation for required dependencies
Acceptance Criteria
- [ ] Identify all uses of 'lookup' command in chart templates
- [ ] Replace lookup-based ODF detection with values.yaml configuration
- [ ] Update templates to use conditional logic based on values
- [ ] Create post-install validation hooks if needed for runtime checks
- [ ] Update values.yaml with new configuration options
- [ ] Test chart templating works without cluster connectivity
- [ ] Verify oc-mirror can successfully template and mirror the chart
- [ ] Update documentation for new configuration approach
Definition of Done
- No 'lookup' commands remain in helm templates
- Chart can be templated offline without cluster connectivity
- oc-mirror successfully processes the chart
- Functionality is preserved through alternative configuration
- links to