fixtures

package
v2.16.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// Timeout is the default timeout for waiting for a condition to be met.
	Timeout = 5 * time.Second
	// Interval is the default interval for polling for a condition to be met.
	Interval = 250 * time.Millisecond
	BaseDir  = "templates"
)
View Source
const (
	TestNamespacePrefix = "test-ns"
	TestDomainFooCom    = "*.foo.com"
)
View Source
const KnativeServingCrd = `` /* 428-byte string literal not displayed */
View Source
const KnativeServingInstance = `apiVersion: operator.knative.dev/v1beta1
kind: KnativeServing
metadata:
  name: knative-serving-instance
spec: {}
`
View Source
const KnativeServingSubscription = `` /* 329-byte string literal not displayed */
View Source
const OpenshiftClusterIngress = `` /* 144-byte string literal not displayed */
View Source
const OssmSubscription = `` /* 327-byte string literal not displayed */
View Source
const ServiceMeshControlPlaneCRD = `` /* 976-byte string literal not displayed */

Variables

View Source
var TestEmbeddedFiles embed.FS

TestEmbeddedFiles is an embedded filesystem that contains templates used specifically in tests files

Functions

func CreateFile added in v2.10.0

func CreateFile(dir, filename, content string) error

CreateFile creates a file with the given content in the specified directory.

func CreateOrUpdateNamespace added in v2.12.0

func CreateOrUpdateNamespace(ctx context.Context, client client.Client, ns *corev1.Namespace) error

func CreateSecret added in v2.10.0

func CreateSecret(name, namespace string) func(ctx context.Context, f *feature.Feature) error

func CreateSubscription

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

func GetConfigMap added in v2.10.0

func GetConfigMap(client client.Client, namespace, name string) (*corev1.ConfigMap, error)

func GetFeatureTracker added in v2.10.0

func GetFeatureTracker(ctx context.Context, cli client.Client, appNamespace, featureName string) (*featurev1.FeatureTracker, error)

func GetNamespace added in v2.10.0

func GetNamespace(ctx context.Context, client client.Client, namespace string) (*corev1.Namespace, error)

func GetService added in v2.10.0

func GetService(ctx context.Context, client client.Client, namespace, name string) (*corev1.Service, error)

func NewDSCInitialization added in v2.10.0

func NewDSCInitialization(ns string) *dsciv1.DSCInitialization

func NewNamespace

func NewNamespace(name string) *corev1.Namespace

Types

This section is empty.

Jump to

Keyboard shortcuts

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