Browse Source

Merge c4c39daa78 into 53e28ff20c

pull/52/merge
Maksim Kochkin 4 years ago
committed by GitHub
parent
commit
fcc4eea955
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      README.md
  2. 11
      helm3-dependency/Chart.yaml
  3. 55
      helm3-dependency/README.md
  4. 13
      helm3-dependency/values-nomaria.yaml
  5. 7
      helm3-dependency/values.yaml

1
README.md

@ -15,6 +15,7 @@ to explore ArgoCD and GitOps!
| [pre-post-sync](pre-post-sync/) | Demonstrates Argo CD PreSync and PostSync hooks |
| [sync-waves](sync-waves/) | Demonstrates Argo CD sync waves with hooks |
| [helm-dependency](helm-dependency/) | Demonstrates how to customize an OTS (off-the-shelf) helm chart from an upstream repo |
| [helm3-dependency](helm3-dependency/) | Demonstrates how to customize an OTS (off-the-shelf) helm chart from an upstream repo usgin Helm 3 |
| [sock-shop](sock-shop/) | A microservices demo app (https://microservices-demo.github.io) |
| [plugins](plugins/) | Apps which demonstrate config management plugins usage |
| [blue-green](blue-green/) | Demonstrates how to implement blue-green deployment using [Argo Rollouts](https://github.com/argoproj/argo-rollouts)

11
helm3-dependency/Chart.yaml

@ -0,0 +1,11 @@
apiVersion: v2
name: wordpress
description: Wordpress Argo demo
type: application
version: 0.1.0
appVersion: 5.0.2
dependencies:
- name: wordpress
version: 5.0.2
repository: https://kubernetes-charts.storage.googleapis.com

55
helm3-dependency/README.md

@ -0,0 +1,55 @@
# Helm 3 Dependencies
This example application demonstrates how an OTS (off-the-shelf) helm chart can be retrieved and
pinned to a specific helm sem version from an upstream helm repository, and customized using a custom
values.yaml in the private git repository.
In this example, the wordpress application is pulled from the stable helm repo, and pinned to v5.0.2:
```yaml
dependencies:
- name: wordpress
version: 5.0.2
repository: https://kubernetes-charts.storage.googleapis.com
```
A custom values.yaml is used to customize the parameters of the wordpress helm chart:
```yaml
wordpress:
wordpressPassword: foo
mariadb:
db:
password: bar
rootUser:
password: baz
```
### Subchart Note
The wordpress chart referenced in this example contains a subchart for mariadb as specified in the requirements.yaml file of the wordpress chart:
```yaml
- name: mariadb
version: 5.x.x
repository: https://kubernetes-charts.storage.googleapis.com/
condition: mariadb.enabled
tags:
- wordpress-database
```
In order to disable this chart, you must set the value to false for both `mariadb.enabled` and `wordpress.mariadb.enabled`. The first is used by the mariadb subchart condition field, the second is used by the wordpress chart deployment template. An example demonstration is available in the values-nomaria.yaml file:
```yaml
mariadb:
enabled: false
wordpress:
wordpressPassword: foo
mariadb:
enabled: false
externalDatabase:
host: localhost
user: bn_wordpress
password: ""
database: bitnami_wordpress
port: 3306
```

13
helm3-dependency/values-nomaria.yaml

@ -0,0 +1,13 @@
mariadb:
enabled: false
wordpress:
wordpressPassword: foo
mariadb:
enabled: false
externalDatabase:
host: localhost
user: bn_wordpress
password: ""
database: bitnami_wordpress
port: 3306

7
helm3-dependency/values.yaml

@ -0,0 +1,7 @@
wordpress:
wordpressPassword: foo
mariadb:
db:
password: bar
rootUser:
password: baz
Loading…
Cancel
Save