Skip to content

[BUG] HELM chart renders #136

@noltedennis

Description

@noltedennis

Describe the bug

We deploy image-mapper via ArgoCD. Typically, when lookup is used inside of HELM charts, we set an ignoreDifferences and the application is shown as healthy. Here, a lookup is used as well. The variable filled by this lookup, however, is used in the secret and the mutatingwebhookconfiguration.

If we were to enter either usage into ArgoCD's ignoreDifferences configuration, then the application would still show as healthy. But this can lead to just one of the two resources being synced. This leads to admission failures and creates image pull errors within the cluster.

We'd like to see an improvement to the CA & TLS generation to avoid this edge case, as it can have severe consequences on production clusters.

Tested with Version

HELM v0.4.54

To Reproduce

Steps to reproduce the behavior:

  1. Deploy HELM chart via ArgoCD
  2. Introduce ignoreDifferences to ignore the caBundle changes in the secret and mutatingwebhookconfiguration
  3. Rollout a change that only affects the mutatingwebhookconfiguration
  4. Observe that image pulls no longer work due to TLS failures

Expected behavior

The mutatingwebhook should somehow source the caBundle from the secret to avoid this edge case.

Screenshots

ArgoCD continuously shows the application to be out of sync due to the HELM lookup usage.

Image

Additional context

N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions