util

package
v4.102.0 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2024 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBucketObjectName

func GetBucketObjectName(svc *runtime.ServiceRuntime, bucket *appcatv1.ObjectBucket, resName string, obj resource.Managed) string

GetBucketObjectName ensures that the right object name is chosen. Legacy buckets where created with wrong object names that break nested services. This logic returns the new naming scheme, if there's no existing bucket CR. If there's already a CR it will simply return it's name. The `obj` parameter should always be a deepCopy of the original, otherwise the pointer in the calling function will have all the fields populated. Which can lead to unexpected side effects.

Types

This section is empty.

Jump to

Keyboard shortcuts

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