Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

telegram-polling annotations #5465

Open
awant13 opened this issue Feb 26, 2025 · 1 comment
Open

telegram-polling annotations #5465

awant13 opened this issue Feb 26, 2025 · 1 comment

Comments

@awant13
Copy link

awant13 commented Feb 26, 2025

What would you like to see!

Please add annotations to the telegram-polling deployment.
This entity is present in all deployments except telegram-polling.

{{- if .Values.telegramPolling.enabled -}}
apiVersion: apps/v1
kind: Deployment
metadata:
  name: {{ include "oncall.telegramPolling.fullname" . }}
  labels:
    {{- include "oncall.telegramPolling.labels" . | nindent 4 }}
spec:
  replicas: 1
  selector:
    matchLabels:
      {{- include "oncall.telegramPolling.selectorLabels" . | nindent 6 }}
  template:
    metadata:
      {{- with .Values.podAnnotations }}
      annotations:
        random-annotation: {{ randAlphaNum 10 | lower }}
        {{- toYaml . | nindent 8 }}
      {{- end }}
      labels:
        {{- include "oncall.telegramPolling.selectorLabels" . | nindent 8 }}
        {{- if .Values.telegramPolling.podLabels }}
        {{- toYaml .Values.telegramPolling.podLabels | nindent 8 }}
        {{- end }}
    spec:
      {{- with .Values.imagePullSecrets }}
      imagePullSecrets:
        {{- toYaml . | nindent 8 }}
      {{- end }}
      serviceAccountName: {{ include "oncall.serviceAccountName" . }}
      securityContext:
        {{- toYaml .Values.podSecurityContext | nindent 8 }}
      initContainers:
        {{- include "oncall.initContainer" . | nindent 8 }}
      containers:
        - name: telegram-polling
          securityContext:
            {{- toYaml .Values.securityContext | nindent 12 }}
          image: {{ include "oncall.engine.image" . }}
          imagePullPolicy: {{ .Values.image.pullPolicy }}
          command: ['sh', '-c', 'python manage.py start_telegram_polling']
          env:
            {{- include "snippet.oncall.env" . | nindent 12 }}
            {{- include "snippet.oncall.telegram.env" . | nindent 12 }}
            {{- include "snippet.db.env" . | nindent 12 }}
            {{- include "snippet.broker.env" . | nindent 12 }}
            {{- include "oncall.extraEnvs" . | nindent 12 }}
          {{- with .Values.telegramPolling.resources }}
          resources:
            {{- toYaml . | nindent 12 }}
          {{- end }}
          {{- with .Values.telegramPolling.extraVolumeMounts }}
          volumeMounts: {{- . | toYaml | nindent 12 }}
          {{- end }}
      {{- with .Values.telegramPolling.extraVolumes }}
      volumes: {{- . | toYaml | nindent 8 }}
      {{- end }}
{{- end -}}

Product Area

Helm/Kubernetes/Docker

Anything else to add?

No response

Copy link
Contributor

The current version of Grafana OnCall, at the time this issue was opened, is v1.15.0. If your issue pertains to an older version of Grafana OnCall, please be sure to list it in the PR description. Thank you 😄!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant