...
1
2
3
4 package stress
5
6 var namespaceYaml = `
7 apiVersion: v1
8 kind: Namespace
9 metadata:
10 name: ""
11 `
12
13 var configMapYaml = `
14 apiVersion: v1
15 kind: ConfigMap
16 metadata:
17 name: ""
18 namespace: ""
19 data: {}
20 `
21
22 var cronTabCRDYaml = `
23 apiVersion: apiextensions.k8s.io/v1
24 kind: CustomResourceDefinition
25 metadata:
26 name: crontabs.stable.example.com
27 spec:
28 group: stable.example.com
29 versions:
30 - name: v1
31 served: true
32 storage: true
33 schema:
34 openAPIV3Schema:
35 type: object
36 properties:
37 apiVersion:
38 type: string
39 kind:
40 type: string
41 metadata:
42 type: object
43 spec:
44 type: object
45 properties:
46 cronSpec:
47 type: string
48 image:
49 type: string
50 scope: Namespaced
51 names:
52 plural: crontabs
53 singular: crontab
54 kind: CronTab
55 shortNames:
56 - ct
57 `
58
59 var cronTabYaml = `
60 apiVersion: stable.example.com/v1
61 kind: CronTab
62 metadata:
63 name: ""
64 namespace: ""
65 spec:
66 cronSpec: "* * * * */5"
67 `
68
69 var deploymentYaml = `
70 apiVersion: apps/v1
71 kind: Deployment
72 metadata:
73 name: ""
74 namespace: ""
75 spec:
76 replicas: 1
77 selector:
78 matchLabels:
79 app: nginx
80 template:
81 metadata:
82 labels:
83 app: nginx
84 spec:
85 containers:
86 - name: nginx
87 image: nginx:1.19.6
88 ports:
89 - containerPort: 80
90 resources:
91 requests:
92 cpu: 10m
93 memory: 1Mi
94 `
95
View as plain text