common

package
v0.0.0-...-14494c5 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2023 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertResourceUpdated

func AssertResourceUpdated(ctx context.Context, k8sClient client.Client, instance *klcv1alpha3.KeptnApp) *klcv1alpha3.KeptnAppVersion

func DeleteAppInCluster

func DeleteAppInCluster(ctx context.Context, k8sClient client.Client, instance *klcv1alpha3.KeptnApp)

func GetAppVersion

func GetAppVersion(ctx context.Context, k8sClient client.Client, instance *klcv1alpha3.KeptnApp) *klcv1alpha3.KeptnAppVersion

func IgnoreAlreadyExists

func IgnoreAlreadyExists(err error) error

func InitKeptnMeters

func InitKeptnMeters() apicommon.KeptnMeters

func LogErrorIfPresent

func LogErrorIfPresent(err error)

func MakeKLTDefaultNamespace

func MakeKLTDefaultNamespace(k8sClient client.Client, name string) *v1.Namespace

func ResetSpanRecords

func ResetSpanRecords(tp *otelsdk.TracerProvider, spanRecorder *sdktest.SpanRecorder)

func WriteReport

func WriteReport(specReport ginkgotypes.SpecReport, f *os.File)

Types

type TracerFactory

type TracerFactory struct {
	Tracer trace.TracerProvider
}

func (*TracerFactory) GetTracer

func (f *TracerFactory) GetTracer(name string) controllercommon.ITracer

Jump to

Keyboard shortcuts

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