Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Global customer-defined initContainer configuration #14018

Open
shuangkun opened this issue Dec 19, 2024 · 1 comment
Open

Global customer-defined initContainer configuration #14018

shuangkun opened this issue Dec 19, 2024 · 1 comment
Labels
area/controller Controller issues, panics type/feature Feature request

Comments

@shuangkun
Copy link
Member

Summary

Global customer-defined initContainer configuration.

Use Cases

In large-scale simulation scenarios, we need to use initContainer to prepare data in each step, but we don’t want to configure it in each pod, so we hope to have a global configuration similar to mainContainer to configure initContainer.


Message from the maintainers:

Love this feature request? Give it a 👍. We prioritise the proposals with the most 👍.

@shuangkun shuangkun added the type/feature Feature request label Dec 19, 2024
@shuangkun
Copy link
Member Author

We tried to use this method in workflowDefaults for global configuration, but mirrorVolumeMounts did not take effect. I also found the reason, because when creating a pod, the addInitContainers operation is earlier than applyPodPatch.

  podSpecPatch: |
      initContainers:
        - name: my-init-contaienr
          image:init-image:latest
          mirrorVolumeMounts: true
          resources:
            requests:
              memory: 2Gi
              cpu: 300m

@shuangkun shuangkun added the area/controller Controller issues, panics label Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/controller Controller issues, panics type/feature Feature request
Projects
None yet
Development

No branches or pull requests

1 participant