Skip to content
This repository was archived by the owner on Nov 1, 2022. It is now read-only.

Specifying automated containers in a HelmRelease #3143

Closed
@austinbv

Description

@austinbv

Describe the bug

We are running into a weird issue with the HelmOperator - We are trying to configure the automated deployments of custom images in the Airflow Helm Chart in the gitsync containers and initContainers. We have added annotations to our helm release and it looks like the below. We are not seeing any logs about the initContainer or gitSync and new images are not detected.

kind: HelmRelease
metadata:
  name: airflow
  namespace: airflow
  annotations:
    fluxcd.io/automated: true

    filter.fluxcd.io/airflow: glob:airflow-dev-*

    filter.fluxcd.io/initContainer: glob:git-*
    repository.fluxcd.io/initContainer: dags.initContainer.image.repository
    tag.fluxcd.io/initContainer: dags.initContainer.image.tag

    filter.fluxcd.io/gitSync: glob:git-*
    repository.fluxcd.io/gitSync: dags.git.gitSync.image.repository
    tag.fluxcd.io/gitSync: dags.git.gitSync.image.tag
spec:
  releaseName: airflow
  chart:
    repository: https://kubernetes-charts.storage.googleapis.com
    version: 7.1.x
    name: airflow
  values:
    airflow:
      image:
        repository: ****.dkr.ecr.****.amazonaws.com/****
        tag: airflow-dev-63b3d5ed649cb3e41611c8fc5eb8dfc583433604
    dags:
      initContainer:
        enabled: true
        image:
          repository: ****.dkr.ecr.****.amazonaws.com/****
          tag: git-41d01deba5c2a08edd5e006fddd8fe8497539a73
      git:
        gitSync:
          enabled: true
          image:
            repository: ****.dkr.ecr.****.amazonaws.com/****
            tag: git-41d01deba5c2a08edd5e006fddd8fe8497539a73

Additional context

  • Helm Operator version: 1.1.0
  • Kubernetes version: v1.16.8-eks-e16311
  • Git provider: github
  • Helm repository provider: stable/airflow

⚠️ ⚠️ ⚠️ ⚠️

Note, this is a direct copy of fluxcd/helm-operator#464 (comment) I was not sure which repo was correct as it's a feature of the helm operator but documentation for this feature is in this repo, and the code is in this repo https://github.com/fluxcd/flux/blob/master/pkg/cluster/kubernetes/resource/helmrelease.go. If I did anything wrong feel free to close the issue!

⚠️ ⚠️ ⚠️ ⚠️

Metadata

Metadata

Assignees

No one assigned

    Labels

    blocked-needs-validationIssue is waiting to be validated before we can proceedbug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions