Skip to content

helm chart: allow each component to have different custom pod annotations #18400

Description

@wc-s

Description

Currently, to inject custom annotations into airflow pods, we can use such a snippet in the values.yaml:

airflowPodAnnotations:
  my-annotation: "foo"

However, this will inject the annotation to the pods of all airflow components (scheduler.. worker.. etc.). There is no way to inject different annotations to different components.

It would be nice to be able to inject different annotations to different components with such a values.yaml:

workers:
  podAnnotations:
    my-annotation: "foo"

scheduler:
  podAnnotations:
    my-annotation: "bar"

Use case/motivation

Generally, it's not a bad idea to make things more customizable to the chart users.

Specifically for my use case, the motivation is because we are using vault sidecar to inject secrets into our airflow pods: https://www.vaultproject.io/docs/platform/k8s/injector#secrets-via-annotations

And we wish to have different vault connection settings for the different pods.

Related issues

No response

Are you willing to submit a PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions