Skip to content

Conversation

@aldato
Copy link

@aldato aldato commented Nov 14, 2025

Summary

This PR adds the capability of managing the affinity of the different component deployments being used by EDA.

Changes

  • Added the necessary changes in the EDA CDR
  • Added the defaults for affinity
  • Added the required conditionals in the Jinja2 templates

Tests

I tested it using simple podAntiAffinity rules within the EDA CR under spec.event_stream with the following and it worked just fine (against the task pod of controller):

    task_affinity:
      podAntiAffinity:
        requiredDuringSchedulingIgnoredDuringExecution:
        - labelSelector:
            matchExpressions:
            - key: app.kubernetes.io/name
              operator: In
              values:
              - automation-controller-task
          topologyKey: kubernetes.io/hostname

@sonarqubecloud
Copy link

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.

1 participant