# What this PR does Runs Telegram long polling to get updates. It's enabled by setting `FEATURE_TELEGRAM_LONG_POLLING_ENABLED=True`. That will disable webhook and run separate deployment for telegram long polling. Telegram long polling is not very HA mode, but it does not need to expose webhook url to internet and simplifies telegram integration. ## Which issue(s) this PR fixes closes #561 ## Checklist - [x] Unit, integration, and e2e (if applicable) tests updated - [x] Documentation added (or `pr:no public docs` PR label added if not required) - [x] `CHANGELOG.md` updated (or `pr:no changelog` PR label added if not required)
36 lines
1,020 B
YAML
36 lines
1,020 B
YAML
suite: test image and imagePullPolicy for deployments
|
|
templates:
|
|
- celery/deployment.yaml
|
|
- engine/deployment.yaml
|
|
- engine/job-migrate.yaml
|
|
- telegram-polling/deployment.yaml
|
|
release:
|
|
name: oncall
|
|
chart:
|
|
appVersion: 1.2.36
|
|
tests:
|
|
- it: image={} -> should use default image tag
|
|
set:
|
|
telegramPolling.enabled: true
|
|
asserts:
|
|
- equal:
|
|
path: spec.template.spec.containers[0].image
|
|
value: grafana/oncall:1.2.36
|
|
- equal:
|
|
path: spec.template.spec.containers[0].imagePullPolicy
|
|
value: Always
|
|
|
|
- it: image.repository and image.tag -> should use custom image
|
|
set:
|
|
telegramPolling.enabled: true
|
|
image:
|
|
repository: custom-oncall
|
|
tag: 1.2.36-custom
|
|
pullPolicy: IfNotPresent
|
|
asserts:
|
|
- equal:
|
|
path: spec.template.spec.containers[0].image
|
|
value: custom-oncall:1.2.36-custom
|
|
- equal:
|
|
path: spec.template.spec.containers[0].imagePullPolicy
|
|
value: IfNotPresent
|