Skip to content

Commit

Permalink
Merge pull request #11 from rawlingsj/master
Browse files Browse the repository at this point in the history
chore: lets enabele controller and cronjob by default and allow folks…
  • Loading branch information
cloudbees-ci-cd[bot] authored Apr 6, 2020
2 parents da6b8c7 + 172c90d commit fa05bb3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
10 changes: 2 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,16 +96,10 @@ helm repo add jx-labs https://jenkinsxio-labs.storage.googleapis.com/charts
```bash
helm repo update
```
install the gsm controller chart
```bash
helm install --set deployment.enabled=true --set projectID=$SECRETS_MANAGER_PROJECT_ID gsm-controller jx-labs/gsm-controller
```

or to run it as a Kubernetes CronJob which has the advantage of reguarly checking the Google Secret Manager store and
updating cluster secrets if there are new values.
install the helm chart, this includes a kubernetes controller that always runs and watches for new or updated secrets. We also install a kubernetes CronJon that periodically triggers and checks for updated secret versions in Google Secret Manager.

```bash
helm install --set cron.enabled=true --set projectID=$SECRETS_MANAGER_PROJECT_ID gsm jx-labs/gsm-controller
helm install --set projectID=$SECRETS_MANAGER_PROJECT_ID gsm-controller jx-labs/gsm-controller
```

### Annotate secrets
Expand Down
4 changes: 2 additions & 2 deletions charts/gsm-controller/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ jxRequirements:
# kubernetes.io/ingress.class: nginx

deployment:
enabled: false
enabled: true

cron:
enabled: false
enabled: true
schedule: "*/5 * * * *"

0 comments on commit fa05bb3

Please sign in to comment.