Documentation ¶
Index ¶
- func CRC32Checksum(s string) string
- func CheckGetEnvBool(key string) (value bool, err error)
- func CheckGetEnvFloat(key string) (value float64, err error)
- func CheckGetEnvInt(key string) (value int, err error)
- func CheckGetEnvString(key string) (value string, err error)
- func CheckGetEnvUInt(key string) (value uint, err error)
- func GenerateConfigMap(name, namespaceName string, data map[string]string) corev1.ConfigMap
- func GenerateDeployment(config DeploymentConfig) appsv1.Deployment
- func GenerateExternalSecret(...) externalsecretsv1alpha1.ExternalSecret
- func GenerateIngress(...) networking.Ingress
- func GeneratePassword(length uint, excludeAmbiguousChars bool) (password string, err error)
- func GeneratePushSecret(pushSecretName, targetSecretName, sourceSecretName, namespaceName string, ...) externalsecretsv1alpha1.PushSecret
- func GenerateSecret(name, namespaceName string, data map[string]string) corev1.Secret
- func GetFunctionName(functionLvl int) string
- func LogDebug(message string, fields ...interface{})
- func LogError(message string, err error, fields ...interface{})
- func LogInfo(message string, fields ...interface{})
- func LogTrace(message string, fields ...interface{})
- func LogWarning(message string, err error, fields ...interface{})
- func SetLoglevel(logLevel string) (err error)
- type DeploymentConfig
- type ProbeSpec
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CRC32Checksum ¶
Calculates the CRC32 checksum (using the ISO 3309-HDLC polynomial setting) of a string and returns the resulting number as uppercase HEX string.
func CheckGetEnvBool ¶ added in v0.2.0
func CheckGetEnvFloat ¶ added in v0.2.0
func CheckGetEnvInt ¶ added in v0.2.0
func CheckGetEnvString ¶ added in v0.2.0
func CheckGetEnvUInt ¶ added in v0.2.0
func GenerateConfigMap ¶
func GenerateDeployment ¶
func GenerateDeployment(config DeploymentConfig) appsv1.Deployment
use a struct to avoid mistakes in the order of arguments and keep things read- and debugable
func GenerateExternalSecret ¶
func GenerateExternalSecret( name, namespace, secretStoreName, secretStoreKind, targetSecretName, remoteSecretName string, refreshInterval metav1.Duration, externalSecretKeyMapping map[string]string, ) externalsecretsv1alpha1.ExternalSecret
func GenerateIngress ¶
func GenerateIngress( name, namespace, dnsUri, ingressBaseUrl, serviceName, path, ingressClassName string, port int32, pathType networking.PathType, ) networking.Ingress
func GeneratePassword ¶
Generates a password of given length, optionally in-/excluding ambigous characters ("<>[](){}:;'/|\\,") which can cause issues in some applications
func GeneratePushSecret ¶
func GeneratePushSecret( pushSecretName, targetSecretName, sourceSecretName, namespaceName string, secretStoreName, secretStoreKind string, keys []string, refreshInterval metav1.Duration, ) externalsecretsv1alpha1.PushSecret
func GenerateSecret ¶
func GetFunctionName ¶
GetFunction feturns the function name by functionLvl. 1 = one level up, 2 = two levels up from current function
func LogDebug ¶
func LogDebug(message string, fields ...interface{})
debugLog logs debug messages with contextual information.
func LogInfo ¶
func LogInfo(message string, fields ...interface{})
LogInfo logs info messages with contextual information.
func LogTrace ¶ added in v0.1.1
func LogTrace(message string, fields ...interface{})
debugLog logs debug messages with contextual information.
func LogWarning ¶
LogWarning logs an warning with contextual information.
func SetLoglevel ¶ added in v0.1.1
Types ¶
type DeploymentConfig ¶
type DeploymentConfig struct { Name string Namespace string Volumes []corev1.Volume ImagePullSecretName string ContainerName string Image string PortName string EnvFromSecretNames []string EnvFromConfigMapNames []string VolumeMounts []corev1.VolumeMount ImagePullPolicy corev1.PullPolicy ContainerPort int32 DefaultConfigMapVolumeMode int32 Replicas int32 EnvVarData map[string]string PodLabels map[string]string MatchLabels map[string]string CpuRequestMilli int64 CpuLimitMilli int64 MemoryRequestMi int64 MemoryLimitMi int64 LivenessProbeSpec ProbeSpec ReadinessProbeSpec ProbeSpec }