-
Notifications
You must be signed in to change notification settings - Fork 112
/
knative_resources.go
57 lines (53 loc) · 1.22 KB
/
knative_resources.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
package fixtures
const (
TestNamespacePrefix = "test-ns"
TestDomainFooCom = "*.foo.com"
)
const KnativeServingSubscription = `apiVersion: operators.coreos.com/v1alpha1
kind: Subscription
metadata:
name: serverless-operator
namespace: openshift-serverless
spec:
channel: stable
installPlanApproval: Automatic
name: serverless-operator
source: redhat-operators
sourceNamespace: openshift-marketplace
startingCSV: serverless-operator.v1.31.0
`
const KnativeServingCrd = `apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
name: knativeservings.operator.knative.dev
spec:
group: operator.knative.dev
names:
kind: KnativeServing
listKind: KnativeServingList
plural: knativeservings
singular: knativeserving
scope: Namespaced
versions:
- name: v1beta1
served: true
storage: true
schema:
openAPIV3Schema:
type: object
`
const KnativeServingInstance = `apiVersion: operator.knative.dev/v1beta1
kind: KnativeServing
metadata:
name: knative-serving-instance
spec: {}
`
const OpenshiftClusterIngress = `apiVersion: config.openshift.io/v1
kind: Ingress
metadata:
name: cluster
spec:
domain: "foo.io"
loadBalancer:
platform:
type: ""`