util

package
v0.0.0-...-5d42de7 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigurePodConfigSecurityContext

func ConfigurePodConfigSecurityContext(podConfig *util.PodConfig, securityContextsMap map[string]api.SecurityContext, securityContextID string, isOpenshift bool)

ConfigurePodConfigSecurityContext configures the Security Context values into the PodConfig if the securityContext for the 'securityContextID' is in 'securityContextsMap' then it's values are set otherwise FSGID is set to 0 for Kubernetes

func GenerateImageTag

func GenerateImageTag(defaultImage string, imageRegistries []string, registryConfig *api.RegistryConfiguration) string

GenerateImageTag return the final image after evaluating the registry configuration and the list of images

func GetSecurityContext

func GetSecurityContext(securityContextsMap map[string]api.SecurityContext, securityContextID string) *api.SecurityContext

GetSecurityContext returns the security context if it exists in 'securityContextsMap'

Types

This section is empty.

Jump to

Keyboard shortcuts

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