fix: hardcode image to use params.env#56
Conversation
Signed-off-by: Wen Zhou <wenzhou@redhat.com>
📝 WalkthroughWalkthroughThe change adds a Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Security and design concerns
🚥 Pre-merge checks | ✅ 2✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Comment |
There was a problem hiding this comment.
Actionable comments posted: 2
🧹 Nitpick comments (1)
config/openshift/kustomization.yaml (1)
14-15:generatorOptionsapplies globally to all generatorsThis
disableNameSuffixHash: trueis defined at the root level, affecting all current and futureconfigMapGeneratorandsecretGeneratorentries in this file. If other generators are added later, they'll unexpectedly lack hash suffixes, potentially breaking rollout detection.Move the option inside the specific generator if you want to scope it:
Scoped generator option
configMapGenerator: - envs: - params.env name: wva-parameters -generatorOptions: - disableNameSuffixHash: true + options: + disableNameSuffixHash: true🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@config/openshift/kustomization.yaml` around lines 14 - 15, The generatorOptions.disableNameSuffixHash is currently set at the root and therefore globally disables name hashing for all generators; instead, move disableNameSuffixHash: true into the specific generator block(s) (e.g., inside the configMapGenerator or secretGenerator entries) so only those generators omit the hash while others retain rollout-safe suffixes; update the kustomization to remove the top-level generatorOptions.disableNameSuffixHash and add the option under the intended configMapGenerator/secretGenerator definitions.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@config/openshift/kustomization.yaml`:
- Around line 10-15: The configMapGenerator references a missing params.env
which causes kustomize to fail; create the missing params.env file containing
the required key (wva-controller-image=<image-reference>) so the wva-parameters
ConfigMap produced by configMapGenerator includes the wva-controller-image entry
used by the replacement rule, or alternatively update documentation to state
that params.env must be provided by the deployer; ensure the filename exactly
matches params.env and that the key name is wva-controller-image to satisfy the
replacement rule that consumes wva-parameters.
- Around line 39-50: The replacements stanza is referencing
data.wva-controller-image from a generated ConfigMap named wva-parameters but
the configMapGenerator relies on a missing params.env, so either add a
params.env in config/openshift containing a line like
wva-controller-image=<your-openshift-image> so the configMapGenerator
(wva-parameters) contains data.wva-controller-image, or remove the broken
configMapGenerator and the replacements: block entirely so the images override
flow (images: in config/manager/kustomization.yaml) does not rely on a
non-existent ConfigMap; update the kustomization entries to ensure the
wva-parameters ConfigMap and the replacements: stanza are consistent with the
presence or absence of params.env and the target data.wva-controller-image.
---
Nitpick comments:
In `@config/openshift/kustomization.yaml`:
- Around line 14-15: The generatorOptions.disableNameSuffixHash is currently set
at the root and therefore globally disables name hashing for all generators;
instead, move disableNameSuffixHash: true into the specific generator block(s)
(e.g., inside the configMapGenerator or secretGenerator entries) so only those
generators omit the hash while others retain rollout-safe suffixes; update the
kustomization to remove the top-level generatorOptions.disableNameSuffixHash and
add the option under the intended configMapGenerator/secretGenerator
definitions.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Central YAML (base), Organization UI (inherited)
Review profile: CHILL
Plan: Pro
Run ID: ff5c3622-abc8-4cfe-a221-b1d830f8b0c3
📒 Files selected for processing (1)
config/openshift/kustomization.yaml
Signed-off-by: Wen Zhou <wenzhou@redhat.com>
|
need ack on this one @anishasthana |
Description
ref https://redhat.atlassian.net/browse/INFERENG-5816
need opendatahub-io/opendatahub-operator#3383
we are too late to get this into ODH 3.4 relase cycle
since this wont impact ODH but only RHOAI 3.4, as long as it is merged to main and sync to RHDS by code freeze, we should be fine.
backport fix for 3.4ea2 is already in RHDS build
How Has This Been Tested?
Merge criteria:
Summary by CodeRabbit