Skip to content

Commit

Permalink
Merge pull request #300 from MinaFoundation/PM-2092-add-label-and-ann…
Browse files Browse the repository at this point in the history
…otations-to-the-service-openmina-nodes-helm-chart

PM-2092 - Add Service Labels and Annotation to Openmina
  • Loading branch information
kaozenn authored Nov 26, 2024
2 parents cb58af9 + 8ed2595 commit c4e6086
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 2 deletions.
2 changes: 1 addition & 1 deletion openmina-node/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: 0.1.1
version: 0.1.2

# 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
4 changes: 3 additions & 1 deletion openmina-node/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# openmina-node

![Version: 0.1.1](https://img.shields.io/badge/Version-0.1.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v0.8.1](https://img.shields.io/badge/AppVersion-v0.8.1-informational?style=flat-square)
![Version: 0.1.2](https://img.shields.io/badge/Version-0.1.2-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v0.8.1](https://img.shields.io/badge/AppVersion-v0.8.1-informational?style=flat-square)

A Helm chart for Kubernetes

Expand Down Expand Up @@ -79,6 +79,8 @@ helmfile status
| replicaCount | int | `1` | The number of replicas |
| resources | object | `{}` | Resource limitations for the pods |
| securityContext | object | `{}` | The Security Context |
| service.annotations | object | `{}` | The service annotations |
| service.labels | object | `{}` | The service labels |
| service.port | int | `3000` | The service port |
| service.type | string | `"ClusterIP"` | The service type |
| serviceAccount.annotations | object | `{}` | Annotations to add to the service account |
Expand Down
7 changes: 7 additions & 0 deletions openmina-node/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@ metadata:
name: {{ include "openmina-node.fullname" . }}
labels:
{{- include "openmina-node.labels" . | nindent 4 }}
{{- with .Values.service.labels }}
{{- toYaml . | nindent 4 }}
{{- end }}
{{- with .Values.service.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
type: {{ .Values.service.type }}
ports:
Expand Down
4 changes: 4 additions & 0 deletions openmina-node/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ service:
type: ClusterIP
# -- The service port
port: 3000
# -- The service labels
labels: {}
# -- The service annotations
annotations: {}

ingress:
# -- Whether to create an Ingress
Expand Down

0 comments on commit c4e6086

Please sign in to comment.