Thanks to visit codestin.com
Credit goes to github.com

Skip to content

V1ConfigMapKeySelector missing name field? #85

@lmccalman

Description

@lmccalman

I'm trying to give environment variables to a V1Container constructor, and particularly I want those environment variables to come from a config map. In yaml it would look like:

env:
  - name: MY_ENV_VAR
    valueFrom:
      configMapKeyRef:
          name: myconfigmap
          key: foo

However, the V1ConfigMapKeySelector that is expected in the constructor of V1EnvVarSource only takes a 'key' argument, not the 'name' argument. Is this a change in the API or am I using the wrong types? My apologies if I've misunderstood! The same issue seems to apply to V1SecretKeySelector too.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions