cuddly-jelly-27016
03/06/2025, 3:05 PMapiVersion: v1
kind: PodTemplate
metadata:
name: flyte-workflow-base
namespace: flyte
template:
metadata:
name: flyte-workflow-base
spec:
initContainers:
- name: init
image: alpine
volumeMounts:
- name: shared-data
mountPath: /data
containers:
- name: default
image: rwgrim/docker-noop
volumeMounts:
- name: shared-data
mountPath: /data
terminationMessagePath: "/dev/foo"
....
### Expected behavior
I would expect default default pod templates to still be an option according to https://docs.flyte.org/en/latest/deployment/configuration/general.html#evaluation-order-in-podtemplates
I suspect the newer changes will always take precedence over pod templates
### Additional context to reproduce
To reproduce create a default pod template with init container. Set in plugins.k8 and clusterResourceTemplates.inline confirm initcontainer using describe pod. Upgrade to 1.14 using the same helm and pod template. InitContainer will be ignored and you will get an Access Denied error attempting to write to the volume mount defined in it.
Further discussion https://flyte-org.slack.com/archives/CP2HDHKE1/p1738100120966119
### Screenshots
No response
### Are you sure this issue hasn't been raised already?
• Yes
### Have you read the Code of Conduct?
• Yes
flyteorg/flytecuddly-jelly-27016
03/06/2025, 3:05 PM