Skip to content

Fix showroom helm install for non-root EE containers - #9869

Open
rhjcd wants to merge 1 commit into
redhat-cop:developmentfrom
rhjcd:fix-showroom-helm-no-sudo
Open

Fix showroom helm install for non-root EE containers#9869
rhjcd wants to merge 1 commit into
redhat-cop:developmentfrom
rhjcd:fix-showroom-helm-no-sudo

Conversation

@rhjcd

@rhjcd rhjcd commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

Summary

  • The showroom role's check-and-install-helm.yaml uses become: true to install helm to /usr/local/bin with root ownership. RHDP execution environments run as uid 1000 without sudo installed, causing a fatal error: /bin/sh: sudo: command not found.
  • Added a rescue block that catches the become failure and falls back to installing helm in ~/.local/bin (user-writable, no privileges needed).
  • Set a _showroom_helm_binary fact pointing to whichever helm path was found or installed, and pass it via binary_path to the kubernetes.core.helm_template calls in both deploy-showroom-helm.yaml and deploy-showroom-helm-zerotouch.yaml.
  • Fully backwards compatible: on hosts where become succeeds, behavior is unchanged.

Test plan

  • Provision a showroom catalog item on an EE (non-root) environment and verify helm installs to ~/.local/bin without error
  • Provision a showroom catalog item on a traditional (root-capable) host and verify the existing /usr/local/bin path still works

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants