Skip to content

Commit 0b9d5b9

Browse files
committed
Remove UUID suffix from created objects
Signed-off-by: Raul Sevilla <[email protected]>
1 parent d0177d9 commit 0b9d5b9

18 files changed

+41
-36
lines changed

docs/kube-burner.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ Each iteration of this workload creates the following objects:
5050
- 1 deployment holding a postgresql database
5151
- 5 deployments consisting of a client application for the previous database
5252
- 1 service pointing to the postgresl database
53+
- 10 secrets
5354

5455
- **max-services**: This workload is a cluster limits focused test which creates maximum possible services per namespace. It **will create a single namespace, each iteration of this workload will populate that namespace with these objects:**
5556
- 1 simple application deployment (hello-openshift)

roles/kube-burner/files/app-deployment.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
kind: Deployment
22
apiVersion: apps/v1
33
metadata:
4-
name: perfapp-{{.Replica}}-{{.Iteration}}-{{.UUID}}
4+
name: perfapp-{{.Replica}}-{{.Iteration}}
55
spec:
66
template:
77
metadata:
88
labels:
9-
name: perfapp-{{.Replica}}-{{.Iteration}}-{{.UUID}}
9+
name: perfapp-{{.Replica}}-{{.Iteration}}
1010
spec:
1111
nodeSelector:
1212
{{.nodeSelectorKey}}: {{.nodeSelectorValue}}
@@ -32,7 +32,7 @@ spec:
3232
- name: POSTGRESQL_DATABASE
3333
value: kubelet-density
3434
- name: POSTGRESQL_HOSTNAME
35-
value: postgres-{{.Iteration}}-{{.UUID}}
35+
value: postgres-{{.Iteration}}
3636
- name: POSTGRESQL_PORT
3737
value: '5432'
3838
- name: POSTGRESQL_RETRY_INTERVAL
@@ -44,7 +44,7 @@ spec:
4444
replicas: 1
4545
selector:
4646
matchLabels:
47-
name: perfapp-{{.Replica}}-{{.Iteration}}-{{.UUID}}
47+
name: perfapp-{{.Replica}}-{{.Iteration}}
4848
triggers:
4949
- type: ConfigChange
5050
strategy:

roles/kube-burner/files/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
kind: Build
33
apiVersion: build.openshift.io/v1
44
metadata:
5-
name: {{.JobName}}-{{.Replica}}-{{.UUID}}
5+
name: {{.JobName}}-{{.Replica}}
66
spec:
77
nodeSelector:
88
{{.nodeSelectorKey}}: {{.nodeSelectorValue}}
@@ -21,4 +21,4 @@ spec:
2121
output:
2222
to:
2323
kind: ImageStreamTag
24-
name: {{.prefix}}-{{.Replica}}-{{.UUID}}:latest
24+
name: {{.prefix}}-{{.Replica}}:latest

roles/kube-burner/files/buildconfig.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
kind: BuildConfig
33
apiVersion: build.openshift.io/v1
44
metadata:
5-
name: {{.JobName}}-{{.Replica}}-{{.UUID}}
5+
name: {{.JobName}}-{{.Replica}}
66
spec:
77
nodeSelector:
88
{{.nodeSelectorKey}}: {{.nodeSelectorValue}}
99
triggers:
1010
- type: GitHub
1111
github:
12-
secret: {{.JobName}}-{{.Replica}}-{{.UUID}}
12+
secret: {{.JobName}}-{{.Replica}}
1313
- type: ImageChange
1414
source:
1515
type: Git
@@ -20,8 +20,8 @@ spec:
2020
sourceStrategy:
2121
from:
2222
kind: ImageStreamTag
23-
name: {{.from}}-{{.Replica}}-{{.UUID}}:latest
23+
name: {{.from}}-{{.Replica}}:latest
2424
output:
2525
to:
2626
kind: ImageStreamTag
27-
name: {{.to}}-{{.Replica}}-{{.UUID}}:latest
27+
name: {{.to}}-{{.Replica}}:latest

roles/kube-burner/files/configmap.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
apiVersion: v1
33
kind: ConfigMap
44
metadata:
5-
name: {{.JobName}}-{{.Replica}}-{{.UUID}}
5+
name: {{.JobName}}-{{.Replica}}
66
data:
77
key1: "3"
88
key2: "value"

roles/kube-burner/files/deployment.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@
22
kind: Deployment
33
apiVersion: apps/v1
44
metadata:
5-
name: {{.name}}-{{.Replica}}-{{.UUID}}
5+
name: {{.name}}-{{.Replica}}
66
spec:
77
replicas: {{.podReplicas}}
88
selector:
99
matchLabels:
10-
app: {{.name}}-{{.Iteration}}-{{.Replica}}-{{.UUID}}
10+
app: {{.name}}-{{.Iteration}}-{{.Replica}}
1111
template:
1212
metadata:
1313
labels:
14-
app: {{.name}}-{{.Iteration}}-{{.Replica}}-{{.UUID}}
14+
app: {{.name}}-{{.Iteration}}-{{.Replica}}
1515
spec:
1616
nodeSelector:
1717
{{.nodeSelectorKey}}: {{.nodeSelectorValue}}
@@ -46,16 +46,16 @@ spec:
4646
volumes:
4747
- name: secret-1
4848
secret:
49-
secretName: {{.JobName}}-1-{{.UUID}}
49+
secretName: {{.JobName}}-1
5050
- name: secret-2
5151
secret:
52-
secretName: {{.JobName}}-2-{{.UUID}}
52+
secretName: {{.JobName}}-2
5353
- name: configmap-1
5454
configMap:
55-
name: {{.JobName}}-1-{{.UUID}}
55+
name: {{.JobName}}-1
5656
- name: configmap-2
5757
configMap:
58-
name: {{.JobName}}-2-{{.UUID}}
58+
name: {{.JobName}}-2
5959
# Add not-ready/unreachable tolerations for 15 minutes so that node
6060
# failure doesn't trigger pod deletion.
6161
tolerations:

roles/kube-burner/files/imagestream.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
kind: ImageStream
33
apiVersion: image.openshift.io/v1
44
metadata:
5-
name: {{.prefix}}-{{.Replica}}-{{.UUID}}
5+
name: {{.prefix}}-{{.Replica}}
66
spec:
7-
{{ if .image }}
7+
{{ if index . "image" }}
88
dockerImageRepository: {{.image}}
99
{{ end }}

roles/kube-burner/files/pod.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
kind: Pod
22
apiVersion: v1
33
metadata:
4-
name: {{.JobName}}-{{.Iteration}}-{{.UUID}}
4+
name: {{.JobName}}-{{.Iteration}}
55
labels:
66
name: {{.JobName}}
77
spec:

roles/kube-burner/files/postgres-deployment.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
kind: Deployment
22
apiVersion: apps/v1
33
metadata:
4-
name: postgres-{{.Replica}}-{{.Iteration}}-{{.UUID}}
4+
name: postgres-{{.Replica}}-{{.Iteration}}
55
spec:
66
template:
77
metadata:
88
labels:
9-
name: postgres-{{.Replica}}-{{.Iteration}}-{{.UUID}}
9+
name: postgres-{{.Replica}}-{{.Iteration}}
1010
spec:
1111
nodeSelector:
1212
{{.nodeSelectorKey}}: {{.nodeSelectorValue}}
@@ -30,7 +30,7 @@ spec:
3030
replicas: 1
3131
selector:
3232
matchLabels:
33-
name: postgres-{{.Replica}}-{{.Iteration}}-{{.UUID}}
33+
name: postgres-{{.Replica}}-{{.Iteration}}
3434
triggers:
3535
- type: ConfigChange
3636
strategy:

roles/kube-burner/files/postgres-service.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
kind: Service
33
apiVersion: v1
44
metadata:
5-
name: postgres-{{.Iteration}}-{{.UUID}}
5+
name: postgres-{{.Iteration}}
66
spec:
77
selector:
8-
name: postgres-{{.Replica}}-{{.Iteration}}-{{.UUID}}
8+
name: postgres-{{.Replica}}-{{.Iteration}}
99
ports:
1010
- protocol: TCP
1111
port: 5432

0 commit comments

Comments
 (0)