Skip to content

Commit

Permalink
add env var to pgt-web-app for ocv backend
Browse files Browse the repository at this point in the history
  • Loading branch information
simisimis committed Dec 10, 2024
1 parent e5d80cb commit bb1f913
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pgt-web-app/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.2.1
version: 0.2.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
3 changes: 2 additions & 1 deletion pgt-web-app/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# pgt-web-app

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

A Helm chart for Kubernetes

Expand Down Expand Up @@ -56,6 +56,7 @@ helmfile status
| config.discord.clientId | string | `""` | Discord Application ID |
| config.discord.guildId | string | `""` | Discord Guild/Server ID |
| config.discord.token | string | `""` | Discord API Token |
| config.ocvServer | string | `"http://on-chain-voting-server:8080"` | |
| config.privateKey | string | `"-----BEGIN PRIVATE KEY-----\nMIIEvAIBADANBgkqhkiG9w0BAQEFAASCBKYwggSiAgEAAoIBAQDCEKoQMfoxAoAx\nL9aNa2YP5EIy8dgqB/bcR6jaZwBUGaxqdeaA9ofYiIcEZyqPW5hL79i+tvHKfhU+\nTgh2VLAy2bpHyJZknwzLfC1lAyx67lZeIZpV1pqgvJL08rQZpddV+42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D73gdxFThew0DqBvAJcZ6EpVPozyPZAoGAcN6j\neZR5k2XNSu0s9b/HTwvw+MKr+Bb0PPiqK26M4hAl4Pe/KUHpQ9khBA0b5Skb2bo6\nNuGzqy8KZT9j4y2++VXcraM0tGRDOoQ2Jq+NSZ0qX37J7ddkN8exaSGTwyJWbegB\nnKq9/lkRvQQQKczMekemZUr1kDyYvX5OrL1HapUCgYAM7VCohi1sFfDUov1lAc+d\na51R641gaZmlw2749k762+6J6vagu6hcWljPiHo4pA9drvVqeMsNdKcXfs1JXqnC\niTdqrpGobUM8bNVyPRXxryQIKOJ6ou8xt1pyenAhOoMTOSOllnU8/bM/VSPXXHrf\nGv61TwASbeDP/WPoCMnylw==\n"` | |
| config.publicKey | string | `"-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAwhCqEDH6MQKAMS/WjWtm\nD+RCMvHYKgf23Eeo2mcAVBmsanXmgPaH2IiHBGcqj1uYS+/Yvrbxyn4VPk4IdlSw\nMtm6R8iWZJ8My3wtZQMseu5WXiGaVdaaoLyS9PK0GaXXVfuNgrnMdgIJQ09uV9Fv\nxY7CMGSn6vXokSiGtGr63fD1DPQOTZkHFYNpbMSw0eHwqmonkEpt7tYF3zTvB/MH\n8kuWS4F1rJM4wIHiYKoOPUqYc4lf7K/fiOGElkMQDGLFXesMCVXDIduR3aLYwhwk\nvxxcSFQL6bdmGX/8XPamdCiguxAPAn47K80AF9UpTG2pl7uneSXsi3CPofD8yTlL\n1QIDAQAB\n-----END PUBLIC KEY-----\n"` | |
| deploymentAnnotations | object | `{}` | Annotations to add to deployments |
Expand Down
2 changes: 2 additions & 0 deletions pgt-web-app/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ spec:
value: production
- name: NEXT_APP_URL
value: https://{{ (index .Values.ingress.hosts 0).host }}
- name: NEXT_PUBLIC_OCV_API_BASE_URL
value: {{ .Values.config.ocvServer }}
ports:
- name: http
containerPort: {{ .Values.service.port }}
Expand Down
1 change: 1 addition & 0 deletions pgt-web-app/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ config:
guildId: ""
# -- Discord API Token
token: ""
ocvServer: "http://on-chain-voting-server:8080"

# This sets the container image more information can be found here: https://kubernetes.io/docs/concepts/containers/images/
image:
Expand Down

0 comments on commit bb1f913

Please sign in to comment.