Documentation ¶
Overview ¶
Package common contains utility functions used by different components
Index ¶
- func ConfigLoggers(mode string) logr.Logger
- func GetDomain(cli client.Client, name string, namespace string) (string, error)
- func GetMonitoringData(data string) (string, error)
- func MatchLineInFile(fileName string, replacements map[string]string) error
- func ReplaceStringsInFile(fileName string, replacements map[string]string) error
- func TrimToRFC1123Name(input string) string
- func UpdatePodSecurityRolebinding(cli client.Client, serviceAccountsList []string, namespace string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigLoggers ¶ added in v2.10.0
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 GetMonitoringData ¶ added in v2.7.0
encode configmap data and return in base64.
func MatchLineInFile ¶ added in v2.7.0
MatchLineInFile use the 'key' of the replacements as match pattern and replace the line with 'value'.
func ReplaceStringsInFile ¶ added in v2.1.0
ReplaceStringsInFile replaces variable with value in manifests during runtime.
func TrimToRFC1123Name ¶ added in v2.4.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.