Skip to content

Commit

Permalink
Merge pull request #6447 from onflow/petera/align-benchnet-prom-labels
Browse files Browse the repository at this point in the history
[Benchnet] Align default label names
  • Loading branch information
peterargue authored Sep 18, 2024
2 parents e5add94 + ce68d73 commit 5d89d4d
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 40 deletions.
16 changes: 8 additions & 8 deletions integration/benchnet2/flow/templates/access.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ metadata:
name: {{ $k }}
labels:
app: {{ $k }}
networkId: {{ $.Values.networkId }}
nodeType: access
network: {{ $.Values.networkId }}
role: access
owner: {{ $.Values.owner }}
service: flow

Expand All @@ -18,9 +18,9 @@ spec:
selector:
matchLabels:
app: {{ $k }}
nodeType: access
role: access
service: flow
networkId: {{ $.Values.networkId }}
network: {{ $.Values.networkId }}

template:
metadata:
Expand All @@ -30,9 +30,9 @@ spec:
prometheus.io/port: "8080"
labels:
app: {{ $k }}
nodeType: access
role: access
service: flow
networkId: {{ $.Values.networkId }}
network: {{ $.Values.networkId }}
spec:
nodeSelector:
iam.gke.io/gke-metadata-server-enabled: "true"
Expand Down Expand Up @@ -84,7 +84,7 @@ spec:
- metadata:
name: data
labels:
networkId: {{ $.Values.networkId }}
network: {{ $.Values.networkId }}
spec:
accessModes: ["ReadWriteOnce"]
resources:
Expand All @@ -105,7 +105,7 @@ metadata:
name: {{ $k }}
labels:
app: {{ $k }}
networkId: {{ $.Values.networkId }}
network: {{ $.Values.networkId }}
spec:
{{ if $v.servicePorts }}
ports: {{ $v.servicePorts | toYaml | nindent 12 }}
Expand Down
16 changes: 8 additions & 8 deletions integration/benchnet2/flow/templates/collection.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ metadata:
name: {{ $k }}
labels:
app: {{ $k }}
networkId: {{ $.Values.networkId }}
nodeType: collection
network: {{ $.Values.networkId }}
role: collection
owner: {{ $.Values.owner }}
service: flow

Expand All @@ -18,7 +18,7 @@ spec:
selector:
matchLabels:
app: {{ $k }}
nodeType: collection
role: collection
service: flow

template:
Expand All @@ -29,9 +29,9 @@ spec:
prometheus.io/port: "8080"
labels:
app: {{ $k }}
nodeType: collection
role: collection
service: flow
networkId: {{ $.Values.networkId }}
network: {{ $.Values.networkId }}
spec:
nodeSelector:
iam.gke.io/gke-metadata-server-enabled: "true"
Expand Down Expand Up @@ -83,7 +83,7 @@ spec:
- metadata:
name: data
labels:
networkId: {{ $.Values.networkId }}
network: {{ $.Values.networkId }}
spec:
accessModes: ["ReadWriteOnce"]
resources:
Expand All @@ -103,7 +103,7 @@ metadata:
name: {{ $k }}
labels:
app: {{ $k }}
networkId: {{ $.Values.networkId }}
network: {{ $.Values.networkId }}
owner: {{ $.Values.owner }}
spec:
{{ if $v.servicePorts }}
Expand All @@ -114,4 +114,4 @@ spec:
selector:
app: {{ $k }}
type: NodePort
{{- end }}
{{- end }}
16 changes: 8 additions & 8 deletions integration/benchnet2/flow/templates/consensus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ metadata:
name: {{ $k }}
labels:
app: {{ $k }}
networkId: {{ $.Values.networkId }}
nodeType: consensus
network: {{ $.Values.networkId }}
role: consensus
owner: {{ $.Values.owner }}
service: flow

Expand All @@ -18,7 +18,7 @@ spec:
selector:
matchLabels:
app: {{ $k }}
nodeType: consensus
role: consensus
service: flow

template:
Expand All @@ -29,9 +29,9 @@ spec:
prometheus.io/port: "8080"
labels:
app: {{ $k }}
nodeType: consensus
role: consensus
service: flow
networkId: {{ $.Values.networkId }}
network: {{ $.Values.networkId }}
spec:
nodeSelector:
iam.gke.io/gke-metadata-server-enabled: "true"
Expand Down Expand Up @@ -83,7 +83,7 @@ spec:
- metadata:
name: data
labels:
networkId: {{ $.Values.networkId }}
network: {{ $.Values.networkId }}
spec:
accessModes: ["ReadWriteOnce"]
resources:
Expand All @@ -103,7 +103,7 @@ metadata:
name: {{ $k }}
labels:
app: {{ $k }}
networkId: {{ $.Values.networkId }}
network: {{ $.Values.networkId }}
owner: {{ $.Values.owner }}
spec:
{{ if $v.servicePorts }}
Expand All @@ -114,4 +114,4 @@ spec:
selector:
app: {{ $k }}
type: NodePort
{{- end }}
{{- end }}
14 changes: 7 additions & 7 deletions integration/benchnet2/flow/templates/execution.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ metadata:
name: {{ $k }}
labels:
app: {{ $k }}
networkId: {{ $.Values.networkId }}
nodeType: execution
network: {{ $.Values.networkId }}
role: execution
owner: {{ $.Values.owner }}
service: flow

Expand All @@ -18,7 +18,7 @@ spec:
selector:
matchLabels:
app: {{ $k }}
nodeType: execution
role: execution
service: flow

template:
Expand All @@ -29,9 +29,9 @@ spec:
prometheus.io/port: "8080"
labels:
app: {{ $k }}
nodeType: execution
role: execution
service: flow
networkId: {{ $.Values.networkId }}
network: {{ $.Values.networkId }}
spec:
nodeSelector:
iam.gke.io/gke-metadata-server-enabled: "true"
Expand Down Expand Up @@ -83,7 +83,7 @@ spec:
- metadata:
name: data
labels:
networkId: {{ $.Values.networkId }}
network: {{ $.Values.networkId }}
spec:
accessModes: ["ReadWriteOnce"]
resources:
Expand All @@ -103,7 +103,7 @@ metadata:
name: {{ $k }}
labels:
app: {{ $k }}
networkId: {{ $.Values.networkId }}
network: {{ $.Values.networkId }}
owner: {{ $.Values.owner }}
spec:
{{ if $v.servicePorts }}
Expand Down
18 changes: 9 additions & 9 deletions integration/benchnet2/flow/templates/verification.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,19 @@ metadata:
name: {{ $k }}
labels:
app: {{ $k }}
nodeType: verification
network: {{ $.Values.networkId }}
role: verification
service: flow
networkId: {{ $.Values.networkId }}

spec:
serviceName: {{ $k }}
replicas: 1
selector:
matchLabels:
app: {{ $k }}
nodeType: verification
role: verification
service: flow
networkId: {{ $.Values.networkId }}
network: {{ $.Values.networkId }}

template:
metadata:
Expand All @@ -29,8 +29,8 @@ spec:
prometheus.io/port: "8080"
labels:
app: {{ $k }}
networkId: {{ $.Values.networkId }}
nodeType: verification
network: {{ $.Values.networkId }}
role: verification
owner: {{ $.Values.owner }}
service: flow
spec:
Expand Down Expand Up @@ -83,7 +83,7 @@ spec:
- metadata:
name: data
labels:
networkId: {{ $.Values.networkId }}
network: {{ $.Values.networkId }}
spec:
accessModes: ["ReadWriteOnce"]
resources:
Expand All @@ -103,7 +103,7 @@ metadata:
name: {{ $k }}
labels:
app: {{ $k }}
networkId: {{ $.Values.networkId }}
network: {{ $.Values.networkId }}
owner: {{ $.Values.owner }}
spec:
{{ if $v.servicePorts }}
Expand All @@ -114,4 +114,4 @@ spec:
selector:
app: {{ $k }}
type: NodePort
{{- end }}
{{- end }}

0 comments on commit 5d89d4d

Please sign in to comment.