Skip to content

Commit c4b1644

Browse files
authored
Merge pull request #59 from helmwave/0.27.x
0.27.x
2 parents a9dc39f + 0572e8e commit c4b1644

File tree

16 files changed

+632
-237
lines changed

16 files changed

+632
-237
lines changed

README.md

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# [helmwave.github.io/docs](https://helmwave.github.io/docs)
1+
# [docs.helmwave.app](https://docs.helmwave.app)
22

33
> The helmwave's docs
44
@@ -14,9 +14,10 @@ mike serve
1414

1515
### Prod
1616

17-
Done automatically via GitHub Actions. Fresh created branches will update `latest` symlink, other pushes will just trigger deploy of corresponding version.
17+
Done automatically via GitHub Actions.
18+
Fresh-created branches will update `latest` symlink, other pushes will just trigger deploy of a corresponding version.
1819

19-
The only thing you need to update is helmwave version in:
20+
The only thing you need to update is `helmwave` version in:
2021

2122
- [examples](docs/examples)
2223
- [docs/tpl.md](docs/tpl.md)

docs/anno.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ metadata:
3737
!!! danger "Kubedog can't be enabled when there are releases in multiple contexts."
3838

3939

40-
[example](examples/kubedog/README.md)
40+
[:material-duck: example](examples/kubedog/README.md)
4141

4242
inspired by [werf annotations](https://werf.io/documentation/reference/deploy_annotations.html)
4343

docs/ci.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ helmwave:
5858
expire_in: 2 week
5959
```
6060
61-
See the [example](../examples/apps-per-ns/#cicd-with-gitlab-ci)
61+
See the [:material-duck: example](../examples/apps-per-ns/#cicd-with-gitlab-ci)
6262
6363
6464
### Kube-Linter and Helmwave

docs/cli.md

+61-16
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ VERSION:
1111
0.27.3
1212
1313
DESCRIPTION:
14-
This tool helps you compose your helm releases!
14+
This tool helps you compose your :simple-helm: helm releases!
1515
0. $ helmwave yml
1616
1. $ helmwave build
1717
2. $ helmwave up
@@ -43,13 +43,29 @@ GLOBAL OPTIONS:
4343
4444
```
4545

46+
!!! note "workflow"
47+
48+
```mermaid
49+
flowchart TD
50+
helmwave.yml.tpl -- yml --> helmwave.yml -- build --> .helmwave/planfile
51+
.helmwave/planfile --> up(up)
52+
.helmwave/planfile --> down(down)
53+
.helmwave/planfile --> ls(ls)
54+
.helmwave/planfile --> s(status)
55+
.helmwave/planfile --> r(rollback)
56+
.helmwave/planfile --> g(graph)
57+
.helmwave/planfile --> v(validate)
58+
.helmwave/planfile --> diff(diff)
59+
```
60+
*If you don't see a graph, please reload the page.*
61+
4662
## step 0: templating
4763

4864
### `yml`
4965

5066
This command renders `helmwave.yml.tpl` to `helmwave.yml`.
5167

52-
!!! info "Flags"
68+
!!! success "Flags"
5369

5470
```shell
5571
--tpl value Main tpl file (default: "helmwave.yml.tpl") [$HELMWAVE_TPL]
@@ -86,7 +102,7 @@ You can pass `--yml` flag into [`build`](#build) command for launching [`yml`](#
86102
--graph-width value set ceil width: 1 – disable graph; 0 – full names; N>1 – show only N symbols; N<0 – drop N symbols from end. (default: 0) [$HELMWAVE_GRAPH_WIDTH]
87103
--skip-unchanged skip unchanged releases (default: false) [$HELMWAVE_SKIP_UNCHANGED]
88104
--diff-mode value You can set: [ live | local | none ] (default: "live") [$HELMWAVE_DIFF_MODE]
89-
--charts-cache-dir value enable caching of helm charts in specified directory [$HELMWAVE_CHARTS_CACHE]
105+
--charts-cache-dir value enable caching of :simple-helm: helm charts in specified directory [$HELMWAVE_CHARTS_CACHE]
90106
--yml auto helmwave.yml.tpl --> helmwave.yml (default: false) [$HELMWAVE_AUTO_YML, $HELMWAVE_AUTO_YAML]
91107
--wide value show line around changes (default: 5) [$HELMWAVE_DIFF_WIDE]
92108
--show-secret show secret in diff (default: true) [$HELMWAVE_DIFF_SHOW_SECRET]
@@ -108,7 +124,7 @@ And you can also use `--yml` flag that renders `helmwave.yml.tpl` to `helmwave.y
108124

109125
### `up`
110126

111-
Helmwave will install repositories and helm-releases from a plan.
127+
Helmwave will install repositories and :simple-helm: helm releases from a plan.
112128

113129
!!! info "Flags"
114130

@@ -119,15 +135,15 @@ Helmwave will install repositories and helm-releases from a plan.
119135
--kubedog-start-delay value delay kubedog start, don't make it too late (default: 1s) [$HELMWAVE_KUBEDOG_START_DELAY]
120136
--kubedog-timeout value timeout of kubedog multitrackers (default: 5m0s) [$HELMWAVE_KUBEDOG_TIMEOUT]
121137
--kubedog-log-width value Set kubedog max log line width (default: 140) [$HELMWAVE_KUBEDOG_LOG_WIDTH]
122-
--progress Enable progress logs of helm (INFO log level) (default: false) [$HELMWAVE_PROGRESS]
138+
--progress Enable progress logs of :simple-helm: helm (INFO log level) (default: false) [$HELMWAVE_PROGRESS]
123139
--parallel-limit value Limit amount of parallel releases (default: 0) [$HELMWAVE_PARALLEL_LIMIT]
124140
--plandir value, -p value path to plandir (default: ".helmwave/") [$HELMWAVE_PLANDIR, $HELMWAVE_PLAN]
125141
--tags value, -t value [ --tags value, -t value ] build releases by tags: -t tag1 -t tag3,tag4 [$HELMWAVE_TAGS]
126142
--match-all-tags match all provided tags (default: false) [$HELMWAVE_MATCH_ALL_TAGS]
127143
--graph-width value set ceil width: 1 – disable graph; 0 – full names; N>1 – show only N symbols; N<0 – drop N symbols from end. (default: 0) [$HELMWAVE_GRAPH_WIDTH]
128144
--skip-unchanged skip unchanged releases (default: false) [$HELMWAVE_SKIP_UNCHANGED]
129145
--diff-mode value You can set: [ live | local | none ] (default: "live") [$HELMWAVE_DIFF_MODE]
130-
--charts-cache-dir value enable caching of helm charts in specified directory [$HELMWAVE_CHARTS_CACHE]
146+
--charts-cache-dir value enable caching of :simple-helm: helm charts in specified directory [$HELMWAVE_CHARTS_CACHE]
131147
--yml auto helmwave.yml.tpl --> helmwave.yml (default: false) [$HELMWAVE_AUTO_YML, $HELMWAVE_AUTO_YAML]
132148
--wide value show line around changes (default: 5) [$HELMWAVE_DIFF_WIDE]
133149
--show-secret show secret in diff (default: true) [$HELMWAVE_DIFF_SHOW_SECRET]
@@ -151,7 +167,7 @@ $ helmwave down
151167

152168
### `ls`
153169

154-
Helmwave will get a list of helm-releases from a plan.
170+
Helmwave will get a list of :simple-helm: helm releases from a plan.
155171

156172
```bash
157173
$ helmwave ls
@@ -169,7 +185,7 @@ $ helmwave ls
169185

170186
### `status`
171187

172-
Helmwave try getting status of helm-releases from plan.
188+
Helmwave try getting status of :simple-helm: helm releases from a plan.
173189

174190
```bash
175191
$ helmwave status
@@ -198,7 +214,14 @@ $ helmwave status
198214

199215
### `rollback`
200216

201-
Rollback helm-releases from plan.
217+
Rollback :simple-helm: helm releases from a plan.
218+
219+
!!! info "Flags"
220+
221+
```shell
222+
--revision value rollback all releases to this revision (default: -1)
223+
```
224+
202225

203226
```bash
204227
$ helmwave rollback
@@ -209,10 +232,15 @@ $ helmwave rollback
209232

210233
### `graph`
211234

212-
Show only graph of helm releases from plan.
235+
Show only :material-graph: graph of :simple-helm: helm releases from plan.
213236

214-
You can use `--graph-width` option to set width of graph.
237+
!!! info "Flags"
238+
239+
```shell
240+
--graph-width value set ceil width: 1 – disable graph; 0 – full names; N>1 – show only N symbols; N<0 – drop N symbols from end. (default: 0) [$HELMWAVE_GRAPH_WIDTH]
241+
```
215242

243+
> Graph draws with [:simple-github: helmwave/asciigraph](https://github.com/helmwave/asciigraph)
216244
217245

218246
### `validate`
@@ -225,14 +253,31 @@ Helmwave will validate plan.
225253

226254
Diff has 2 subcommands
227255

228-
- `helmwave diff live` will diff with manifests in the k8s-cluster
256+
- `helmwave diff live` will diff with manifests in the :simple-kubernetes: kubernetes cluster
229257
- `helmwave diff plan` will diff with your another local plan.
230258

231-
---
259+
!!! info "Flags"
260+
261+
```shell
262+
--wide value show line around changes (default: 5) [$HELMWAVE_DIFF_WIDE]
263+
--show-secret show secret in diff (default: true) [$HELMWAVE_DIFF_SHOW_SECRET]
264+
--3-way-merge show 3-way merge diff (default: false) [$HELMWAVE_DIFF_3_WAY_MERGE]
265+
```
266+
267+
232268

233269
## Logs
234270

235-
> Logs options. Helmwave use [logrus](https://github.com/sirupsen/logrus) as internal logger.
271+
> Helmwave uses [:simple-github: sirupsen/logrus](https://github.com/sirupsen/logrus) as internal logger.
272+
273+
!!! info "Flags"
274+
275+
```shell
276+
--log-format value You can set: [ text | json | pad | emoji ] (default: "emoji") [$HELMWAVE_LOG_FORMAT]
277+
--log-level value You can set: [ debug | info | warn | fatal | panic | trace ] (default: "info") [$HELMWAVE_LOG_LEVEL, $HELMWAVE_LOG_LVL]
278+
--log-color Force color (default: true) [$HELMWAVE_LOG_COLOR]
279+
--log-timestamps Add timestamps to log messages (default: false) [$HELMWAVE_LOG_TIMESTAMPS]
280+
```
236281

237282
### Log Format
238283

@@ -253,7 +298,7 @@ Helmwave supports several log-format
253298
| incompatible version |||||||
254299
| helm-debug |||||||
255300
| file content |||||||
256-
| helm manifests, bug report |||||||
301+
| :simple-helm: helm manifests, bug report |||||||
257302

258303
`info` is preferred loglevel.
259304

@@ -329,7 +374,7 @@ helmwave <cmd>
329374

330375
## schema
331376

332-
You can generate json schema for autocomplete and validate `helmwave.yml` in your IDE.
377+
You can generate json schema for autocomplete and validate `helmwave.yml` in your [IDE](../ide).
333378

334379
```shell
335380
helmwave schema > helmwave.schema.json

docs/examples/hate-umbrella/README.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ Why is Umbrella chart evil?
99
- Umbrella chart doesn't provide separate your environments.
1010
- When sub-chart is modified, you need to fix it twice.
1111

12-
Suppose that you need to describe the next architecture.
12+
!!! info "Suppose that you need to describe the next architecture."
1313

14-
```mermaid
15-
graph LR
16-
frontend --> api --> rabbitmq & minio_s3
17-
consumer --> rabbitmq & minio_s3 & postgresql
18-
```
19-
*If you don't see a graph, please reload the page.*
14+
```mermaid
15+
graph LR
16+
frontend --> api --> rabbitmq & minio_s3
17+
consumer --> rabbitmq & minio_s3 & postgresql
18+
```
19+
*If you don't see a graph, please reload the page.*
2020

2121
Example of **helmwave.yml** for this architecture.
2222

docs/examples/kubedog/README.md

+2
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ We are going to use `commonAnnotations`.
3535
3636
**Run**
3737

38+
!!! tip "You can combine `--kubedog` and [`--progress`](../cli/#log-level)"
39+
3840
```shell
3941
helmwave up --build --kubedog
4042
```

docs/examples/private-env/README.md

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Private environment
2+
3+
**`helmwave.yml`**
4+
5+
```yaml
6+
{% include "helmwave.yml" %}
7+
```
8+
9+
**Disable diff**
10+
11+
You can also use `local`
12+
13+
```shell
14+
export HELMWAVE_DIFF_MODE=none
15+
```
16+
17+
**build a plan**
18+
19+
you can also use `--charts-cache-dir`.
20+
21+
```shell
22+
helmwave build
23+
```
24+
25+
**upload plan to private environment**
26+
27+
```shell
28+
whatever you want
29+
```
30+
31+
**on the private environment**
32+
33+
```shell
34+
helmwave up
35+
```
+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
repositories:
2+
- name: jetstack
3+
url: https://charts.jetstack.io
4+
5+
releases:
6+
- name: cert-manager
7+
chart:
8+
name: jetstack/cert-manager
9+
version: v1.12.1
10+
offline_kube_version: 1.22.2
11+
namespace: cert-manager

docs/examples/private-gitlab-repo/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Private GitLab repo
22

3-
Learn more about GitLab Helm Registry [here](https://docs.gitlab.com/ee/user/packages/helm_repository/)
3+
Learn more about GitLab :simple-helm: helm Registry [here](https://docs.gitlab.com/ee/user/packages/helm_repository/)
44

55
```shell
66
.

docs/examples/quick-start/README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
<script async id="asciicast-591181" src="https://asciinema.org/a/591181.js"></script>
44

5-
1. **[Install helmwave](../../install)**
5+
1. **[📥 Install helmwave](../../install)**
66
2. **Create `helmwave.yml`**
77

8-
Suppose the `helmwave.yml` representing the desired state of your helm releases looks like:
8+
Suppose the `helmwave.yml` representing the desired state of your :simple-helm: helm releases looks like:
99

1010
```yaml
1111
{% include "helmwave.yml" %}
@@ -35,10 +35,10 @@
3535
[🙃 aka INFO]: Success 2 / 2
3636
```
3737

38-
5. **Check**
38+
5. **Check ✔️**
3939

4040
```shell
41-
$ helm list -n my-namespace
41+
$ :simple-helm: helm list -n my-namespace
4242
NAME NAMESPACE REVISION UPDATED STATUS CHART APP VERSION
4343
a my-namespace 1 2023-06-13 16:25:42.446056 +0400 +04 deployed nats-7.8.3 2.9.17
4444
b my-namespace 1 2023-06-13 16:25:42.444662 +0400 +04 deployed nats-7.8.3 2.9.17
@@ -49,4 +49,4 @@
4949
b-nats-0 1/1 Running 0 36s
5050
```
5151

52-
6. **Congratulations!**
52+
6. **Congratulations! 🥳**

docs/examples/values-delimiter-flags/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Delimiter flags for values
22

3-
Sometimes we need to include strings in values that will be templated by helm itself (via `tpl` function). In this case we can change helmwave delimiters, so it won't render foreign expressions.
3+
Sometimes we need to include strings in values that will be templated by :simple-helm: helm itself (via `tpl` function). In this case we can change helmwave delimiters, so it won't render foreign expressions.
44

55
`cat values.yml`
66

0 commit comments

Comments
 (0)