Skip to content

Commit

Permalink
Merge pull request #11 from mamercad/readme
Browse files Browse the repository at this point in the history
Update readme and fix secret and bump
  • Loading branch information
mamercad authored Feb 19, 2022
2 parents 1bbf7d4 + 0424e4c commit 72fcb59
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 13 deletions.
35 changes: 25 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,25 +39,40 @@ Helm's [documentation](https://helm.sh/docs) to get started.
Once Helm has been set up correctly, add the repo as follows:

```bash
helm repo add ambientweather-exporter https://mamercad.github.io/ambientweather-exporter/
helm repo update
helm search repo ambientweather-exporter
$ helm repo add ambientweather-exporter https://mamercad.github.io/ambientweather-exporter/
"ambientweather-exporter" has been added to your repositories
```

If you had already added this repo earlier, run `helm repo update` to retrieve
the latest versions of the packages. You can then run `helm search repo
ambientweather-exporter` to see the charts.
Update Helm repositories:

To install the `ambientweather-exporter` chart:
```bash
$ helm repo update | grep ambi
...Successfully got an update from the "ambientweather-exporter" chart repository
```

Find the exporter:

```bash
helm install my-ambientweather-exporter ambientweather-exporter/ambientweather-exporter
$ helm search repo ambientweather-exporter
NAME CHART VERSION APP VERSION DESCRIPTION
ambientweather-exporter/ambientweather-exporter 0.2.0 0.2.0 A Helm chart for the AmbientWeather Exporter
```

To uninstall the chart:
Install the exporter:

```bash
helm delete my-ambientweather-exporter
$ helm install my-ambientweather-exporter \
--namespace ambientweather --create-namespace \
--set secret.ambi_app_key="$AMBI_APP_KEY" \
--set secret.ambi_api_key="$AMBI_API_KEY" \
--set service.type="LoadBalancer" \
ambientweather-exporter/ambientweather-exporter
NAME: my-ambientweather-exporter
LAST DEPLOYED: Sat Feb 19 11:12:16 2022
NAMESPACE: ambientweather
STATUS: deployed
REVISION: 1
TEST SUITE: None
```

## Grafana
Expand Down
4 changes: 2 additions & 2 deletions charts/ambientweather-exporter/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ apiVersion: v2
name: ambientweather-exporter
description: A Helm chart for the AmbientWeather Exporter
type: application
version: 0.2.0
appVersion: "0.2.0"
version: 0.3.0
appVersion: "0.3.0"
2 changes: 1 addition & 1 deletion charts/ambientweather-exporter/templates/secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ kind: Secret
apiVersion: v1
data:
AMBI_APP_KEY: "{{ .Values.secret.ambi_app_key | b64enc }}"
AMBI_API_KEY: "{{ .Values.secret.ambi_app_key | b64enc }}"
AMBI_API_KEY: "{{ .Values.secret.ambi_api_key | b64enc }}"
metadata:
name: "{{ .Release.Name }}-creds"
namespace: "{{ .Release.Namespace }}"
Expand Down

0 comments on commit 72fcb59

Please sign in to comment.