metadata

package
v0.11.3 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package metadata implements metadata related utilities.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsKubernetes

func IsKubernetes() bool

IsKubernetes return true if running on Kubernetes. It uses the environment variable KUBERNETES_SERVICE_HOST to decide if we we are running Kubernetes.

func KubernetesNamespace

func KubernetesNamespace() string

KubernetesNamespace returns the Kubernetes namespace. It returns an empty string if there is an error in retrieving the namespace.

Types

This section is empty.

Jump to

Keyboard shortcuts

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