Documentation ¶
Index ¶
- Constants
- Variables
- func CreateFile(dir, filename, content string) error
- func CreateOrUpdateNamespace(ctx context.Context, client client.Client, ns *corev1.Namespace) error
- func CreateSecret(name, namespace string) func(ctx context.Context, f *feature.Feature) error
- func CreateSubscription(ctx context.Context, client client.Client, namespace, subscriptionYaml string) error
- func GetConfigMap(client client.Client, namespace, name string) (*corev1.ConfigMap, error)
- func GetFeatureTracker(ctx context.Context, cli client.Client, appNamespace, featureName string) (*featurev1.FeatureTracker, error)
- func GetNamespace(ctx context.Context, client client.Client, namespace string) (*corev1.Namespace, error)
- func GetService(ctx context.Context, client client.Client, namespace, name string) (*corev1.Service, error)
- func NewDSCInitialization(ns string) *dsciv1.DSCInitialization
- func NewNamespace(name string) *corev1.Namespace
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
CreateFile creates a file with the given content in the specified directory.
func CreateOrUpdateNamespace ¶ added in v2.12.0
func CreateSecret ¶ added in v2.10.0
func CreateSubscription ¶
func GetConfigMap ¶ added in v2.10.0
func GetFeatureTracker ¶ added in v2.10.0
func GetNamespace ¶ added in v2.10.0
func GetService ¶ added in v2.10.0
func NewDSCInitialization ¶ added in v2.10.0
func NewDSCInitialization(ns string) *dsciv1.DSCInitialization
func NewNamespace ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.