spring-cloud-deployer icon indicating copy to clipboard operation
spring-cloud-deployer copied to clipboard

Missing environment variables ref properties for k8s initContainer

Open GangHun-Jo opened this issue 11 months ago • 3 comments
trafficstars

Description

It seems below k8s initContainer properties are not supported with spring-cloud-deployer

  • initContainers[].env[].valueFrom.fieldRef
  • initContainers[].envFrom[].configMapRef
  • initContainers[].envFrom[].secretRef
spec:
  template:
    spec:
      initContainers:
        - name: my-init-container
          env:             
          - name: POD_UID
              valueFrom:
                fieldRef:
                  apiVersion: v1
                  fieldPath: metadata.uid
          envFrom: 
            - configMapRef:
                name: myConfigMap
            - secretRef:
                name: mySecret

GangHun-Jo avatar Dec 20 '24 08:12 GangHun-Jo

@cppwfs Any updates here? If you have any plan for this, please let me know. Also I created PR for this issue. Thank you

GangHun-Jo avatar Jan 23 '25 02:01 GangHun-Jo

@GangHun-Jo Thank you for opening the issue.
We have scheduled this for update in the 3.0.x deployer release.

cppwfs avatar Jan 23 '25 12:01 cppwfs

@cppwfs Could you tell me the approximate release schedule for 3.0.x? I'd like to refer to it in my work plan.

GangHun-Jo avatar Jan 31 '25 01:01 GangHun-Jo