Skip to content

[Feautre] mcpServer.spec.deployment.env should be standard env api #98

@Colvin-Y

Description

@Colvin-Y

Why we need it

Current env field is a simple map (map[string]string), but user may want to config env by dowardAPI

How to do

change api same as pod.spec.containers.env

FIELDS:
  name	<string> -required-
    Name of the environment variable. Must be a C_IDENTIFIER.

  value	<string>
    Variable references $(VAR_NAME) are expanded using the previously defined
    environment variables in the container and any service environment
    variables. If a variable cannot be resolved, the reference in the input
    string will be unchanged. Double $$ are reduced to a single $, which allows
    for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will produce the
    string literal "$(VAR_NAME)". Escaped references will never be expanded,
    regardless of whether the variable exists or not. Defaults to "".

  valueFrom	<EnvVarSource>
    Source for the environment variable's value. Cannot be used if value is not
    empty.

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