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

Jenkins Kubernetes plugin referencing config map as environment variable

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Unresolved
    • Icon: Blocker Blocker
    • kubernetes-plugin
    • None
    • Kubernetes plug-in 1.29.2
      Jenkins 2.263.3

      Hi, 

      Is there a way to reference a configMap as environment variable as describe in 

      https://kubernetes.io/docs/tasks/configure-pod-container/configure-pod-configmap/#define-container-environment-variables-using-configmap-data

       

      Documentation from https://plugins.jenkins.io/kubernetes/ mentioned only enVar and secretEnvVar. 

      • envVars Environment variables that are applied to ALL containers.
        • envVar An environment variable whose value is defined inline.
        • secretEnvVar An environment variable whose value is derived from a Kubernetes secret.

       

      I am using a scripted pipeline to define my pod template. Is this a feature request for the plugin?

            Unassigned Unassigned
            e88z4 Felix
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: