Skip to content

Commit

Permalink
address ido's review
Browse files Browse the repository at this point in the history
  • Loading branch information
itamarreif committed Nov 6, 2024
1 parent 9aaf752 commit e81543e
Show file tree
Hide file tree
Showing 8 changed files with 37 additions and 20 deletions.
4 changes: 2 additions & 2 deletions charts/auctioneer/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ auctioneer
Common labels
*/}}
{{- define "auctioneer.labels" -}}
{{ include "rollup.selectorLabels" . }}
{{ include "auctioneer.selectorLabels" . }}
{{- end }}

{{/*
Selector labels
*/}}
{{- define "auctioneer.selectorLabels" -}}
app: {{ include "rollup.appName" . }}
app: {{ include "auctioneer.appName" . }}
{{- end }}

{{- define "auctioneer.image" -}}
Expand Down
8 changes: 4 additions & 4 deletions charts/auctioneer/templates/deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: auctioneer
name: {{ include "auctioneer.appName " . }}
namespace: {{ include "auctioneer.namespace" . }}
labels:
app: auctioneer
{{ include "auctioneer.labels" . }}
spec:
replicas: {{ .Values.global.replicaCount }}
selector:
matchLabels:
app: auctioneer
{{ include "auctioneer.labels" . }}
template:
metadata:
labels:
app: auctioneer
{{ include "auctioneer.labels" . }}
spec:
containers:
- name: auctioneer
Expand Down
20 changes: 20 additions & 0 deletions charts/auctioneer/templates/prometheusrule.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{{- if .Values.alerting.enabled -}}
apiVersion: monitoring.coreos.com/v1
kind: PrometheusRule
metadata:
name: {{ include "auctioneer.appName" . }}-alerting
{{- if .Values.alerting.prometheusRule.namespace }}
namespace: {{ .Values.alerting.prometheusRule.namespace | quote }}
{{- end }}
labels:
{{- include "auctioneer.labels" . | nindent 4 }}
{{- if .Values.alerting.prometheusRule.additionalLabels }}
{{- toYaml .Values.alerting.prometheusRule.additionalLabels | nindent 4 }}
{{- end }}
spec:
{{- if .Values.alerting.prometheusRule.rules }}
groups:
- name: {{ template "auctioneer.appName" . }}
rules: {{- toYaml .Values.alerting.prometheusRule.rules | nindent 4 }}
{{- end }}
{{- end }}
8 changes: 4 additions & 4 deletions charts/auctioneer/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
kind: Service
apiVersion: v1
metadata:
name: auctioneer-metrics
name: {{ include "auctioneer.appName" . }}-metrics
namespace: {{ include "auctioneer.namespace" . }}
labels:
app: auctioneer
{{ include "auctioneer.labels" . }}
spec:
selector:
app: auctioneer
{{ include "auctioneer.selectorLabels" . }}
ports:
- name: auctioneer-metrics
- name: metrics
port: {{ .Values.ports.metrics }}
targetPort: auctioneer-metrics
{{- end }}
6 changes: 3 additions & 3 deletions charts/auctioneer/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ global:
replicaCount: 1
# Whether to use tty readable logging for astria services, when false use json.
useTTY: false
dev: true
dev: false

images:
auctioneer:
repo: ghcr.io/astriaorg/astria-auctioneer
pullPolicy: IfNotPresent
tag: 1.0.0-rc.1
devTag: local
tag: 0.0.1
devTag: 0.0.1

config:
sequencerGrpcEndpoint: ""
Expand Down
3 changes: 0 additions & 3 deletions charts/deploy.just
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,6 @@ deploy-auctioneer:
delete-auctioneer:
@just delete chart auctioneer astria-dev-cluster

wait-for-auctioneer:
kubectl wait -n astria-dev-cluster deployment auctioneer --for=condition=Available=True --timeout=600s

deploy-bridge-withdrawer:
helm install evm-bridge-withdrawer-chart ./charts/evm-bridge-withdrawer \
--namespace astria-dev-cluster \
Expand Down
6 changes: 3 additions & 3 deletions charts/evm-rollup/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ spec:
- name: ws-rpc-svc
port: {{ .Values.ports.wsRPC }}
targetPort: ws-rpc
# TODO: fix this to match bharath's work in the geth repo
- name: bundle-grpc-svc
port: {{ .Values.ports.bundleGRPC }}
- name: execution-grpc-svc
# TODO: this service should be served over UDS
port: {{ .Values.ports.executionGRPC }}
targetPort: bundle-grpc
---
{{- if .Values.metrics.enabled }}
Expand Down
2 changes: 1 addition & 1 deletion dev/values/auctioneer/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ config:
feeAssetDenomination: "nria"
sequencerAddressPrefix: astria
rollupGrpcEndpoint: "http://astria-evm-service.astria-dev-cluster.svc.cluster.local:50051"
rollupId: "astriachain"
rollupId: "astria"
latencyMarginMs: 1000
logLevel: "debug"

Expand Down

0 comments on commit e81543e

Please sign in to comment.