Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-47671

EnvFromSource is not parsed

XMLWordPrintable

      Hi,

      EnvFromSource definition is not parsed, I dove into the dependencies and I have seen that kubernetes [models|https://github.com/fabric8io/kubernetes-model] definitions made by fabric8 are automatically generated and in the latest release of the package EnvFrom exists in the generated schemas.
      It could come from the outdated version of kubernetes [client|https://github.com/fabric8io/kubernetes-client|https://github.com/fabric8io/kubernetes-client] which is in 2.6.1 whereas the latest is in 3.0.1.

      Here is an example of a deployment with env vars profided by a config map :

      apiVersion: extensions/v1beta1
       kind: Deployment
       metadata:
         name: whoami
       spec:
         replicas: 1
         template:
           metadata:
             labels:
               app: whoami
           spec:
             containers:
               - name: whoami
                 image: emilevauge/whoami
                 ports:
                   - containerPort: 80
                 envFrom:
                   - configMapRef:
                       name: whoami
      —
      apiVersion: v1
       kind: ConfigMap
       metadata:
         name: whoami
       data:
         ENV_FOO: "bar"
      

       

      Hope it will help !

      Regards

            azure_devops Azure DevOps
            zevran Gaël Reyrol
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: