Skip to content

Commit

Permalink
fix blockmeta server, bump ver
Browse files Browse the repository at this point in the history
  • Loading branch information
kw1knode committed Jun 3, 2024
1 parent 0639be0 commit 67baf47
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 4 deletions.
2 changes: 1 addition & 1 deletion charts/blockmeta/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 3.1.0
version: 3.2.0

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
5 changes: 2 additions & 3 deletions charts/blockmeta/templates/server/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
{{- $componentName := "server" }}
{{- $componentLabel := include "blockmeta.componentLabelFor" $componentName | default "" }}


apiVersion: apps/v1
kind: Deployment
metadata:
Expand Down Expand Up @@ -48,8 +47,8 @@ spec:
- "./blockmeta"
- "--sink-addr={{ include "sink.uniqueName" . }}-svc"
- "--grpc-listen-addr=:{{ index $values.service.ports "grpc" }}"
- "--auth-url={{ .Values.authUrl }}"
- "--metering-url={{ .Values.meteringUrl }}"
- "--auth-url={{ .Values.auth.url }}"
- "--metering-url={{ .Values.metering.url }}"
{{- range $arg := $values.extraArgs }}
- {{ $arg }}
{{- end }}
Expand Down
31 changes: 31 additions & 0 deletions charts/blockmeta/templates/sink/service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{{- $values := $.Values.sink }}
{{- $componentName := "sink" }}
{{- $componentLabel := include "blockmeta.componentLabelFor" $componentName }}

apiVersion: v1
kind: Service
metadata:
name: {{ include "sink.uniqueName" . }}-svc
labels:
app.kubernetes.io/name: {{ include "sink.uniqueName" . }}-svc
spec:
{{- with $values.service.type }}
type: {{ . }}
{{- else }}
type: ClusterIP
{{- end }}
{{- with $values.service.ipFamilyPolicy }}
ipFamilyPolicy: {{ . }}
{{- end }}
{{- with $values.service.clusterIP }}
clusterIP: {{ . }}
{{- end }}
ports:
{{- range $portName, $portNumber := $values.service.ports }}
- port: {{ $portNumber }} # the port we expose on the Service, user configurable
targetPort: {{ $portName }} # the name of the port on the container that we are routing to
protocol: TCP
name: {{ $portName }}
{{- end }}
selector:
app.kubernetes.io/name: {{ include "sink.uniqueName" . }}

0 comments on commit 67baf47

Please sign in to comment.