utils

package
v0.20.2 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteIfExists

func DeleteIfExists(ctx context.Context, cli client.Client, obj client.Object) error

func Max

func Max(a, b int32) int32

func Min

func Min(a, b int32) int32

func MustExtractList

func MustExtractList(obj runtime.Object) []runtime.Object

MustExtractList panics if the object isn't a list

func MustGetKind

func MustGetKind(obj runtime.Object) schema.GroupVersionKind

func RemoteClient

func RemoteClient(ctx context.Context, log logr.Logger, reader client.Reader, cluster *picchuv1alpha1.Cluster) (client.Client, error)

RemoteClient creates a k8s client from a cluster object.

func UpdateStatus

func UpdateStatus(ctx context.Context, client client.Client, obj client.Object) error

UpdateStatus first tries new method of status update, and falls back to old.

func VariantEnabled

func VariantEnabled(releaseManager *picchu.ReleaseManager, variant string) bool

Types

type Config

type Config struct {
	HumaneReleasesEnabled     bool
	ManageRoute53             bool
	RequeueAfter              time.Duration
	PrometheusQueryAddress    string
	PrometheusQueryTTL        time.Duration
	ServiceLevelsNamespace    string
	ServiceLevelsFleet        string
	ConcurrentRevisions       int
	ConcurrentReleaseManagers int
	DevRoutesServiceHost      string
	DevRoutesServicePort      int
}

Jump to

Keyboard shortcuts

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