Skip to content

Installer subchart renders empty initContainers block when no initContainers are present #974

@rbogendoerfer

Description

@rbogendoerfer

Describe the bug
The installer subchart renders an empty initContainers block in the job when no initContainers are defined:

      initContainers:
      containers:
      - name: pega-installer
        image: pega-docker.downloads.pega.com/platform/installer:25.1.1

This empty block confuses some conformity scanners and causes conformity checks to fail.

To Reproduce
Use out-of-the-box charts 4.2.0 with global.actions.execute=install and don't define any initContainers, etc. The rendered template will have the empty initContainers tag.

Expected behavior
When no initContainers are defined there should not be an initContainers block at all.

Chart version
4.2.0 without customizations

Server (if applicable, please complete the following information):
n/a

Additional context
n/a

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions