Skip to content

Commit

Permalink
Add (optional) environment variables to deployment (#109)
Browse files Browse the repository at this point in the history
Add optional environment variables `NASA_API_KEY` and `GIPHY_API_KEY` to access the nasa.gov and giphy APIs with private credentials
  • Loading branch information
mathew-fleisch authored Jan 10, 2023
1 parent 87ce6ad commit c9858e3
Show file tree
Hide file tree
Showing 11 changed files with 1,679 additions and 282 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/example-bashbot-github-action-gate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
uses: asdf-vm/actions/install@v1
with:
tool_versions: |
bashbot 2.0.1
bashbot 2.0.2
yq 4.30.6
-
name: Run Bashbot as debugging gate to job
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/example-bashbot-github-action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
uses: asdf-vm/actions/install@v1
with:
tool_versions: |
bashbot 2.0.1
bashbot 2.0.2
yq 4.30.6
-
name: Send Slack Message With Bashbot Binary
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/example-notify-slack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
name: Install Bashbot via asdf
uses: asdf-vm/actions/install@v1
with:
tool_versions: bashbot 2.0.1
tool_versions: bashbot 2.0.2
-
name: Send Slack Message With Bashbot Binary
env:
Expand Down
331 changes: 86 additions & 245 deletions README.md

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions charts/bashbot/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ apiVersion: v2
name: bashbot
description: Bashbot is a slack ChatOps tool for Infrastructure and DevOps teams.
type: application
version: v2.0.1
appVersion: v2.0.1
version: v2.0.2
appVersion: v2.0.2
4 changes: 2 additions & 2 deletions charts/bashbot/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ metadata:
namespace: {{ .Values.namespace }}
data:
{{- if index .Values "config.yaml" }}
config.yaml: |
{{ index .Values "config.yaml" | indent 3 }}
.tool-versions: |
{{ index .Values ".tool-versions" | indent 3 }}
config.yaml: |
{{ index .Values "config.yaml" | indent 3 }}
{{- end }}
12 changes: 12 additions & 0 deletions charts/bashbot/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,18 @@ spec:
name: {{ .Values.botname }}-env
key: AIRQUALITY_API_KEY
optional: true
- name: NASA_API_KEY
valueFrom:
secretKeyRef:
name: {{ .Values.botname }}-env
key: NASA_API_KEY
optional: true
- name: GIPHY_API_KEY
valueFrom:
secretKeyRef:
name: {{ .Values.botname }}-env
key: GIPHY_API_KEY
optional: true
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.pullPolicy }}
name: {{ .Values.botname }}
Expand Down
Loading

0 comments on commit c9858e3

Please sign in to comment.