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

Updating initContainers Configuration to Match Pod Specifications #477

@Wordbe

Description

@Wordbe

Problem description:
The options for initContainers described in the document https://docs.spring.io/spring-cloud-dataflow/docs/current/reference/htmlsingle/#_init_containers differ from the options used in regular Kubernetes pods.
This discrepancy causes confusion for users who are familiar with standard pod syntax.

Solution description:
We request an enhancement of the documentation. Please introduce and explain the various options available for initContainers in the document. Specifically, clarify the following options:

  • containerName (not name)
  • imageName (not image)
  • environmentVariables (not env)

Additionally, it would be helpful to provide an example of how to use these options in a YAML file, such as:

data:
  application.yaml: |-
    spring:
      cloud:
        dataflow:
          task:
            platform:
              kubernetes:
                accounts:
                  default:
                    initContainers:
                      - containerName: test
                        imageName: busybox:latest
                        commands: 
                          - sh
                          - -c
                          - echo hello
                      - containerName: test2
                        imageName: busybox:latest
                        commands:
                          - sh
                          - -c
                          - echo world

Furthermore, please include information about other possible options, such as:

  • imagePullPolicy
  • volumeMounts
  • and others

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions