common

package
v0.0.0-...-5705da6 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	InsightsConfigMapName    = "insights-proxy"
	ProxyDeploymentName      = InsightsConfigMapName
	ProxyServiceName         = ProxyDeploymentName
	ProxyServicePort         = 8080
	ProxySecretName          = "apicastconf"
	EnvInsightsBackendDomain = "INSIGHTS_BACKEND_DOMAIN"
	EnvInsightsProxyDomain   = "INSIGHTS_PROXY_DOMAIN"
	EnvInsightsEnabled       = "INSIGHTS_ENABLED"
	// Environment variable to override the Insights proxy image
	EnvInsightsProxyImageTag = "RELATED_IMAGE_INSIGHTS_PROXY"
)

Variables

This section is empty.

Functions

func MergeLabelsAndAnnotations

func MergeLabelsAndAnnotations(dest *metav1.ObjectMeta, srcLabels, srcAnnotations map[string]string)

MergeLabelsAndAnnotations copies labels and annotations from a source to the destination ObjectMeta, overwriting any existing labels and annotations of the same key.

func SeccompProfile

func SeccompProfile(openshift bool) *corev1.SeccompProfile

SeccompProfile returns a SeccompProfile for the restricted Pod Security Standard that, on OpenShift, is backwards-compatible with OpenShift < 4.11. TODO Remove once OpenShift < 4.11 support is dropped

Types

type DefaultOSUtils

type DefaultOSUtils struct{}

func (*DefaultOSUtils) GetEnv

func (o *DefaultOSUtils) GetEnv(name string) string

GetEnv returns the value of the environment variable with the provided name. If no such variable exists, the empty string is returned.

type OSUtils

type OSUtils interface {
	GetEnv(name string) string
}

OSUtils is an abstraction on functionality that interacts with the operating system

Jump to

Keyboard shortcuts

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