Watch Aspire live streamsDocsTry Aspire
Watch Aspire live streamsDocsTry

EnvFromSourceV1

Classsealednet10.0
📦 Aspire.Hosting.Kubernetes v13.6.0-preview.1.26478.8
EnvFromSourceV1 represents an environment variable source used to populate environment variables in a container.
namespace Aspire.Hosting.Kubernetes.Resources;
public sealed class EnvFromSourceV1
{
// ...
}
This class allows defining environment variables for a container by sourcing them from either a ConfigMap or a Secret. Optionally, a common prefix can be added to the environment variable keys.
View all constructors
View all properties
EnvFromSourceV1 can be used in scenarios where container environments need data from ConfigMaps or Secrets or when a consistent prefix is required for environment variable names within the container.