Fix showroom helm install for non-root EE containers - #9869
Open
rhjcd wants to merge 1 commit into
Open
Conversation
The helm install task used become: true to install to /usr/local/bin with root ownership. RHDP execution environments run as uid 1000 without sudo, causing a fatal "sudo: command not found" error. Add a rescue block that falls back to installing helm in ~/.local/bin when become fails. Set _showroom_helm_binary fact so helm_template tasks use the correct binary path regardless of install location.
ahsen-shah
approved these changes
Jul 14, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
check-and-install-helm.yamlusesbecome: trueto install helm to/usr/local/binwith root ownership. RHDP execution environments run as uid 1000 withoutsudoinstalled, causing a fatal error:/bin/sh: sudo: command not found.rescueblock that catches thebecomefailure and falls back to installing helm in~/.local/bin(user-writable, no privileges needed)._showroom_helm_binaryfact pointing to whichever helm path was found or installed, and pass it viabinary_pathto thekubernetes.core.helm_templatecalls in bothdeploy-showroom-helm.yamlanddeploy-showroom-helm-zerotouch.yaml.becomesucceeds, behavior is unchanged.Test plan
~/.local/binwithout error/usr/local/binpath still works