utils

package
v0.0.0-...-98a682e Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2026 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AivenSecretUpdatedKey = "AIVEN_SECRET_UPDATED"
	AivenCAKey            = "AIVEN_CA"
)

Variables

View Source
var ErrNotFound = errors.New("ErrNotFound")
View Source
var ErrUnrecoverable = errors.New("ErrUnrecoverable")

Functions

func AivenFail

func AivenFail(operation string, application *aiven_nais_io_v1.AivenApplication, err error, notFoundIsRecoverable bool, logger logrus.FieldLogger) error

func CreateSuffix

func CreateSuffix(application *aiven_nais_io_v1.AivenApplication) (string, error)

func Expired

func Expired(expiredAt time.Time) bool

func GetGVK

func GetGVK(scheme *runtime.Scheme, obj runtime.Object) (*schema.GroupVersionKind, error)

func KeysFromStringMap

func KeysFromStringMap(m map[string]string) []string

func LocalFail

func LocalFail(operation string, application *aiven_nais_io_v1.AivenApplication, err error, logger logrus.FieldLogger)

func MergeByteMap

func MergeByteMap(src, dst map[string][]byte) map[string][]byte

func MergeStringMap

func MergeStringMap(src, dst map[string]string) map[string]string

func Parse

func Parse(expiresAt string) (time.Time, error)

func SelectSuffix

func SelectSuffix(access string) string

func UnwrapAivenError

func UnwrapAivenError(errorMessage error, logger logrus.FieldLogger, notFoundIsRecoverable bool) error

Types

type SecretConfig

type SecretConfig struct {
	Project     project.ProjectManager
	ProjectName string
}

func NewSecretConfig

func NewSecretConfig(aiven *aiven.Client, projectName string) SecretConfig

func (SecretConfig) ApplyIndividualSecret

func (s SecretConfig) ApplyIndividualSecret(ctx context.Context, application *aiven_nais_io_v1.AivenApplication, secret *corev1.Secret, logger log.FieldLogger) ([]corev1.Secret, error)

Jump to

Keyboard shortcuts

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