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.

        Source Files