Skip to content
This repository was archived by the owner on May 14, 2025. It is now read-only.
This repository was archived by the owner on May 14, 2025. It is now read-only.

spring.cloud.dataflow.task.platform.kubernetes.accounts.[platformid].initContainer no longer injects the initContainer #5496

@juanpablo-santos

Description

@juanpablo-santos

Description:
Using latest SCDF (2.11.0) the initContainer section described through spring.cloud.dataflow.task.platform.kubernetes.accounts.[platformid].initContainer is no longer working, the pods aren't set up with the described initContainer. F.ex., this configuration from SPRING_APPLICATION_JSON did work with SCDF 2.10.3, but doesn't with 2.11.0:

[...]
     "spring": {
        "cloud": {
          "dataflow": {
            [...]
            "features": {
              "schedules-enabled": true
            },
            "task": {
              "platform": {
                "kubernetes": {
                  "accounts": {
                    "onp": {
                      [...]
                      "initContainer": {
                        "containerName": "shared-libs",
                        "environmentVariables": [
                          "MY_VAR=/my-dir"
                        ],
                        "commands": [
                          "sh",
                          "/tmp/init.sh"
                        ],
                        "imageName": "myimagename:myversion",
                        "volumeMounts": [
                          {
                            "name": "vol-libs",
                            "mountPath": "/libs",
                            "readOnly": false
                          }
                        ]
                      },
[...]

Release versions:
Issue happens with 2.11.0, wasn't happening with 2.10.3

Custom apps:
N/A

Steps to reproduce:
set up the above configuration on SPRING_APPLICATION_JSON on a 2.11.0 SCDF server, and launch some pods; they don't get the initContainer

Screenshots:
N/A

Additional context:
N/A

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions