envvars

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package envvars is the package that builds the environment variables that kubernetes provides to the containers run by it. The content of this package is copied from k8s.io/kubernetes, even if it isn't (exactly) a 1-1 copy. This exists so we do not have to import from k8s.io/kubernetes which is currently problematic. Original import path: "k8s.io/kubernetes/pkg/kubelet/envvars"

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromServices

func FromServices(services []*v1.Service) []v1.EnvVar

FromServices builds environment variables that a container is started with, which tell the container where to find the services it may need, which are provided as an argument.

func IsServiceIPSet

func IsServiceIPSet(service *v1.Service) bool

IsServiceIPSet aims to check if the service's ClusterIP is set or not the objective is not to perform validation here This function is copied verbatim from "k8s.io/kubernetes/pkg/apis/core/v1/helper"

Types

This section is empty.

Jump to

Keyboard shortcuts

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