common

package
v2.11.0 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package common contains utility functions used by different components

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigLoggers added in v2.10.0

func ConfigLoggers(mode string) logr.Logger

to use different mode for logging, e.g. development, production when not set mode it falls to "default" which is used by startup main.go.

func GetDomain added in v2.7.0

func GetDomain(cli client.Client, name string, namespace string) (string, error)

Use openshift-console namespace to get host domain.

func GetMonitoringData added in v2.7.0

func GetMonitoringData(data string) (string, error)

encode configmap data and return in base64.

func MatchLineInFile added in v2.7.0

func MatchLineInFile(fileName string, replacements map[string]string) error

MatchLineInFile use the 'key' of the replacements as match pattern and replace the line with 'value'.

func ReplaceStringsInFile added in v2.1.0

func ReplaceStringsInFile(fileName string, replacements map[string]string) error

ReplaceStringsInFile replaces variable with value in manifests during runtime.

func TrimToRFC1123Name added in v2.4.0

func TrimToRFC1123Name(input string) string

func UpdatePodSecurityRolebinding

func UpdatePodSecurityRolebinding(cli client.Client, serviceAccountsList []string, namespace string) error

UpdatePodSecurityRolebinding update default rolebinding which is created in namespace by manifests being used by different components and sre monitoring.

Types

This section is empty.

Jump to

Keyboard shortcuts

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