Hello,

I noticed that if I set environment variables in both spec.podTemplate &
spec.jobManager.podTemplate for the same container (flink-maincontainer),
the values from the latter selectively overwrite the values from the
former. For example, if I define something like this (omitting metadata
properties):

spec:
  podTemplate:
    spec:
      containers:
      - name: flink-main-container
        env:
          - name: FOO
            value: BAR
          - name: BAZ
            value: BAK
  jobManager:
    podTemplate:
      spec:
        containers:
        - name: flink-main-container
          env:
            - name: EXTRA
              value: ENVVAR

The final spec for the Job Manager Deployment will only contain EXTRA and
BAZ, so FOO is overwritten by EXTRA.

Is this expected? I am already evaluating the latest release of the
operator (1.4.0).

Regards,
Alexis.

Reply via email to