util

package
v0.0.0-...-e104709 Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SecretName             = "jvm-build-s3-secrets" //#nosec
	S3BucketNameAnnotation = "jvmbuildservice.io/s3-bucket-name"
	S3SyncStateAnnotation  = "jvmbuildservice.io/s3-sync-state"
	S3Finalizer            = "jvmbuildservice.io/s3-finalizer"
)
View Source
const (
	ControllerDeploymentName = "hacbs-jvm-operator"
	ControllerNamespace      = "jvm-build-service"

	// goland:noinspection GoCommentStart
	// Label convention as per https://kubernetes.io/docs/reference/labels-annotations-taints is to use lower-case.
	StatusLabel     = "status"
	StatusSucceeded = "succeeded"
	StatusFailed    = "failed"
	StatusBuilding  = "building"
)

Variables

View Source
var (
	ImageTag  string
	ImageRepo string
	S3Enabled bool
)

Functions

func BucketName

func BucketName(client client.Client, ctx context.Context, namespace string) (string, error)

func CreateS3Session

func CreateS3Session(client client.Client, ctx context.Context, log logr.Logger, namespace string) *session.Session

func GetImageName

func GetImageName(ctx context.Context, client client.Client, log logr.Logger, substr, envvar string) (string, error)

func HashString

func HashString(unique string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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