downward

package
v0.36.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 9, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package downward implements a client interface for interacting with Kubernetes "downwardAPI" volumes. See https://kubernetes.io/docs/tasks/inject-data-application/downward-api-volume-expose-pod-information/.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PodInfo

type PodInfo struct {
	// Namespace where the current pod is running.
	Namespace string

	// Name of the current pod.
	Name string

	// Labels of the current pod.
	Labels map[string]string
}

PodInfo contains pod metadata about the current pod.

func Load

func Load(directory string) (*PodInfo, error)

Load pod metadata from a downwardAPI volume directory.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL