Skip to content

fix: move UI sidecars to initContainers for RestartPolicy support#1783

Merged
bsquizz merged 1 commit into
RedHatInsights:masterfrom
mmusil:iqe-cji-completion
Jun 8, 2026
Merged

fix: move UI sidecars to initContainers for RestartPolicy support#1783
bsquizz merged 1 commit into
RedHatInsights:masterfrom
mmusil:iqe-cji-completion

Conversation

@mmusil

@mmusil mmusil commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

Container-level restartPolicy is only supported for init containers in K8s. Native sidecar pattern (K8s 1.29+) requires:

  • Init container with restartPolicy: Always
  • Starts concurrently with main container (not before)
  • Auto-terminates when main container exits

Previous commit set restartPolicy: Always but left containers in spec.containers, where the field is ignored by the API server. This fix moves Selenium and Playwright containers to spec.initContainers where restartPolicy works.

Fixes Job hang issue where UI sidecars prevented Job completion.

Container-level restartPolicy is only supported for init containers in K8s.
Native sidecar pattern (K8s 1.29+) requires:
- Init container with restartPolicy: Always
- Starts concurrently with main container (not before)
- Auto-terminates when main container exits

Previous commit set restartPolicy: Always but left containers in spec.containers,
where the field is ignored by the API server. This fix moves Selenium and
Playwright containers to spec.initContainers where restartPolicy works.

Fixes Job hang issue where UI sidecars prevented Job completion.
@bsquizz bsquizz merged commit b98ff23 into RedHatInsights:master Jun 8, 2026
7 of 8 checks passed
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