Resource Type: kubernetes_env_var

Defined in:
lib/puppet/type/kubernetes_env_var.rb
Providers:
swagger

Overview

EnvVar represents an environment variable present in a Container.

Properties

  • ensure (defaults to: present)

    The basic property that the resource should be in.

    Supported values:
    • present
    • absent
  • name (namevar)

    Name of the environment variable. Must be a C_IDENTIFIER.

  • value

    Variable references $(VAR_NAME) are expanded using the previous 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. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to ”.

  • value_from

    Source for the environment variable’s value. Cannot be used if value is not empty.

Parameters

  • name

    Name of the env_var.

  • provider

    The specific backend to use for this ‘kubernetes_env_var` resource. You will seldom need to specify this — Puppet will usually discover the appropriate provider for your platform.