Skip to content

Commit

Permalink
Implemented the telegram bot helm chart version environment variable
Browse files Browse the repository at this point in the history
  • Loading branch information
glenndehaan committed Apr 12, 2023
1 parent 6c4b1f7 commit 66c0f00
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/telegram-pepperbot/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,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: 1.2.0
version: 1.2.1

# 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
2 changes: 1 addition & 1 deletion charts/telegram-pepperbot/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# telegram-pepperbot

![Version: 1.2.0](https://img.shields.io/badge/Version-1.2.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: latest](https://img.shields.io/badge/AppVersion-latest-informational?style=flat-square)
![Version: 1.2.1](https://img.shields.io/badge/Version-1.2.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: latest](https://img.shields.io/badge/AppVersion-latest-informational?style=flat-square)

A Helm chart for deploying the telegram-pepperbot application

Expand Down
8 changes: 8 additions & 0 deletions charts/telegram-pepperbot/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ spec:
imagePullPolicy: {{ .Values.image.pullPolicy }}
command: ["dumb-init", "message-queuing"]
env:
- name: HELM_CHART_VERSION
value: "v{{ .Chart.Version }}"
- name: REDIS_URL
value: "redis://{{ .Values.pepperbot.redisHost }}:6379"
- name: TELOXIDE_TOKEN
Expand Down Expand Up @@ -110,6 +112,8 @@ spec:
imagePullPolicy: {{ .Values.image.pullPolicy }}
command: ["dumb-init", "bot-commands"]
env:
- name: HELM_CHART_VERSION
value: "v{{ .Chart.Version }}"
- name: REDIS_URL
value: "redis://{{ .Values.pepperbot.redisHost }}:6379"
- name: TELOXIDE_TOKEN
Expand Down Expand Up @@ -177,6 +181,8 @@ spec:
imagePullPolicy: {{ .Values.image.pullPolicy }}
command: ["dumb-init", "bot-consumer"]
env:
- name: HELM_CHART_VERSION
value: "v{{ .Chart.Version }}"
- name: REDIS_URL
value: "redis://{{ .Values.pepperbot.redisHost }}:6379"
- name: TELOXIDE_TOKEN
Expand Down Expand Up @@ -256,6 +262,8 @@ spec:
port: http
command: ["dumb-init", "webserver"]
env:
- name: HELM_CHART_VERSION
value: "v{{ .Chart.Version }}"
- name: REDIS_URL
value: "redis://{{ .Values.pepperbot.redisHost }}:6379"
- name: TELOXIDE_TOKEN
Expand Down

0 comments on commit 66c0f00

Please sign in to comment.