kubernetesk8s.io/kubernetes/pkg/kubelet/util/env Index | Files

package env

import "k8s.io/kubernetes/pkg/kubelet/util/env"

Index

Functions

func ParseEnv

func ParseEnv(envFilePath, key string) (string, error)

ParseEnv implements a strict parser for .env environment files, adhering to the format defined in the RFC documentation at https://smartmob-rfc.readthedocs.io/en/latest/2-dotenv.html.

This function implements a strict parser for environment files similar to the requirements in the OCI and Docker env file RFCs:

Source Files

env_util.go

Version
v1.34.0-rc.0
Published
Aug 6, 2025
Platform
js/wasm
Imports
4 packages
Last checked
3 minutes ago

Tools for package owners.