utils

package
v0.0.0-...-aa7598a Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: Apache-2.0 Imports: 16 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildDockerImagePath

func BuildDockerImagePath(dockerRepository string, imageVersion string) string

func FileHash

func FileHash(filePath string) (string, error)

func GetSSHPublicKey

func GetSSHPublicKey(filePath string) (pulumi.StringOutput, error)

func IndentMultilineString

func IndentMultilineString(s string, indentation int) string

func JSONMustMarshal

func JSONMustMarshal(v any) string

func KubeConfigYAMLToJSON

func KubeConfigYAMLToJSON(kubeConfig pulumi.StringOutput) pulumi.StringInput

KubeConfigYAMLToJSON safely converts a yaml kubeconfig to a json string.

func MergeMaps

func MergeMaps(a, b map[string]interface{}, mergeSlices bool) map[string]interface{}

func MergeOptions

func MergeOptions[T any](current []T, opts ...T) []T

func MergeYAML

func MergeYAML(oldValuesYamlContent string, newValuesYamlContent string) (string, error)

func MergeYAMLWithSlices

func MergeYAMLWithSlices(oldValuesYamlContent string, newValuesYamlContent string) (string, error)

func NewImagePullSecret

func NewImagePullSecret(e config.Env, namespace string, opts ...pulumi.ResourceOption) (*corev1.Secret, error)

NewImagePullSecret creates an image pull secret based on environment

func ParseImageReference

func ParseImageReference(imageRef string) (imagePath string, tag string)

func Pointer

func Pointer[T any](value T) *T

func PulumiDependsOn

func PulumiDependsOn(resources ...pulumi.Resource) pulumi.ResourceOption

func ReadSecretFile

func ReadSecretFile(filePath string) (pulumi.StringOutput, error)

func StrHash

func StrHash(all ...string) string

func StringPtr

func StringPtr(s string) pulumi.StringPtrInput

Types

type RandomGenerator

type RandomGenerator struct {
	// contains filtered or unexported fields
}

func NewRandomGenerator

func NewRandomGenerator(e config.Env, name string, options ...func(*RandomGenerator)) *RandomGenerator

func (*RandomGenerator) RandomString

func (r *RandomGenerator) RandomString(name string, length int, special bool) (*random.RandomString, error)

Jump to

Keyboard shortcuts

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