fixtures

package
v2.21.0 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2024 License: Apache-2.0 Imports: 18 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 CreateOrUpdateDSCI added in v2.18.0

func CreateOrUpdateDSCI(ctx context.Context, client client.Client, dsci *dsciv1.DSCInitialization) error

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) feature.Action

func CreateService added in v2.21.0

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

func CreateSubscription

func CreateSubscription(ctx context.Context, client client.Client, namespace, subscriptionYaml string) 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(ctx context.Context, cli client.Client, dsciName, 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