Skip to content

Commit

Permalink
Fix multi-line prerequisites
Browse files Browse the repository at this point in the history
Signed-off-by: Tamal Saha <[email protected]>
  • Loading branch information
tamalsaha committed May 2, 2020
1 parent 54c5e30 commit 91d228b
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
4 changes: 2 additions & 2 deletions templates/bindata.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ func (fi bindataFileInfo) Sys() interface{} {
return nil
}

var _readmeTpl = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xcc\x93\xd1\x6f\x1a\x39\x10\xc6\xdf\xfd\x57\x8c\xc4\x3d\x04\x14\x96\x77\xa2\x3b\x29\x4a\xee\x74\xd1\x71\xa7\x28\x21\x27\x55\x08\x69\x27\xbb\x03\xeb\xc6\x6b\xbb\xf6\x2c\x29\x42\xfc\xef\x95\xed\x65\xb3\x50\xa2\xaa\x2f\x6d\xdf\xd8\x31\xfe\xc6\xf3\xfd\xbe\x19\xc0\x6e\x07\xd9\xbd\x33\x1f\xa9\xe0\xec\xb1\x32\x8e\xff\xc3\x9a\x60\xbf\x17\x62\xd1\x3f\x6a\xab\xcb\x8b\x7e\xf1\xe9\x61\x06\xfb\xfd\x10\xc6\x47\x2a\xb7\xe4\x0b\x27\x2d\x4b\xa3\xa3\xce\x60\x00\xf3\xd9\xd5\xed\xc3\x95\x10\x79\x9e\x17\x46\x7b\xa3\x48\xfc\x06\x15\xa9\x1a\x1c\x59\x03\x58\x96\x51\xe1\x81\xac\xf1\x92\x8d\xdb\x1e\xfa\x9d\x96\x53\xc7\xa3\xcb\x8d\x2d\x91\x3b\x3d\xa9\x3d\xa3\x52\xed\x3d\x45\xe8\xe9\x3d\xad\xb6\x3c\x09\xe5\x9b\x0a\x5d\x37\x24\x8c\xf5\x57\xf7\xbd\xc5\x22\xda\x92\xe7\x79\x1c\xe9\x4e\xb3\x33\x65\x53\x84\x31\x85\x98\x57\xd2\x43\x11\x44\xa0\x24\xab\xcc\xd6\x1f\x59\x72\x6d\x6d\xd0\x35\x1a\x10\x16\xff\x34\xcf\xe4\x34\x31\xf9\xe5\x45\xc5\x6c\xa7\x93\xc9\x4b\x57\xca\xa4\x19\x42\xa1\x1a\xcf\xe4\xa0\xf1\x52\xaf\x81\x2b\x82\xc5\xdf\xa4\xea\xf4\x77\x3f\x9d\x4c\xc2\xa8\x99\xaf\x86\x60\xb1\x78\xc1\x35\x41\x8d\x1a\xd7\xe4\xb2\xf8\xb4\x7b\x47\x8e\x3e\x35\xd2\x4b\x26\x2f\xc4\x6e\x07\x0e\xf5\x9a\xc2\x73\x7a\x07\x30\xde\xef\x45\x22\x17\xe6\xda\xed\xc6\x40\xba\x3c\x10\xbb\x4b\x3e\x1e\xfa\x47\x7f\x84\x98\x9b\xce\xe0\x50\x4d\x03\xbf\x4a\xae\xe2\xa7\x4b\x7e\x81\x0e\x36\xe6\x67\x08\xe4\xd3\x73\x11\xf8\x31\xc8\xe6\xe1\xbd\xa6\xae\x51\x97\xdf\x40\x14\x46\x79\x63\xd4\xc1\x90\xe9\xa4\xa4\x15\x36\x8a\xa1\x30\x7a\x25\xd7\x8d\xc3\x10\x80\x0c\x82\xfc\xe2\xa8\xb6\xbc\x18\x1c\x7d\x0f\xc1\x53\x4c\x0b\x28\xe9\xd9\x47\x31\x8b\x0e\x6b\x62\x72\xe1\x13\x19\x0a\xd4\xf0\x4c\x9d\x36\x95\x50\x36\x2e\x30\x68\x3d\x4a\xcd\x84\xf8\x03\x46\xa3\xb9\xb4\xa3\xd1\x14\x66\xd2\x33\x04\xfb\x5a\xf7\x7d\x9b\x9a\x3c\x7a\x1b\x5a\xa5\xbc\x3e\x69\xf9\x1e\xd2\xe6\x70\x34\x29\x49\x11\x53\x3c\xce\x3d\xa3\xaf\xc6\xc6\x92\x43\x36\xee\x3c\xba\xf6\xff\xe7\xc8\x7d\x17\x10\x47\xb5\xd9\x90\x87\x43\xb0\xfa\xf6\x9b\xda\x1a\x4d\x9a\x3d\xa0\xf7\xa6\x90\xc8\x54\xbe\x65\x2e\x45\x30\x41\x55\xf1\x42\x2f\x89\x69\x1d\x6e\xfa\x14\x52\xdf\x95\x51\xca\xbc\x46\x27\xf0\x59\x51\x8f\x48\x87\x2c\x94\x7b\x78\xcc\x2a\x1e\x3f\x06\x53\x7a\x4d\xb9\x22\xe9\xba\x4c\x6c\x50\x35\xe4\xb3\xb8\x72\x6d\x3e\xff\x8f\xa5\xb8\x55\x8f\x96\x0a\xb9\xda\x02\x61\x51\xbd\x49\xf7\x96\x3c\x1f\x8f\x3d\x31\xbc\xd0\xf6\xf7\xa8\xb4\xb8\xec\x7e\x2e\x73\x40\xb7\x6e\x6a\xd2\x0c\x6c\x5a\xb8\x2d\xb5\x3c\x83\xbf\x8c\x03\xfa\x8c\xb5\x55\xf4\x53\x56\x0c\xd2\xcb\x4f\xc7\xfe\x33\x3d\xa9\x43\x7e\xad\x98\x9c\x46\x96\x1b\x52\xdb\x4b\x40\xf8\x70\xfd\xef\x0c\x56\x52\x51\x8a\xbf\x8f\x0e\xc9\x16\x62\x72\x13\x56\xc6\x9d\xee\x4a\xbb\x26\xd6\x99\x8d\x2c\x43\x1a\x2a\xa9\x48\x9c\xe4\x3b\x42\xfa\x25\xac\x69\x07\x69\xd3\xb1\xc5\x5a\x45\x3b\xbe\x04\x00\x00\xff\xff\x5f\xae\x5b\x7f\x7c\x07\x00\x00")
var _readmeTpl = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xcc\x93\x41\x6f\xe3\x36\x10\x85\xef\xfc\x15\x03\xb8\x87\xd8\x88\xe5\xbb\x83\x16\x08\x92\x16\x0d\xea\x16\x41\xe2\x14\x28\x0c\x03\x9a\x48\x63\x8b\x0d\x45\xb2\xe4\xc8\xa9\x61\xf8\xbf\x2f\x48\xca\xb2\xec\x75\xb0\xd8\xcb\xee\xde\xc4\xa1\xf8\x86\xf3\xbe\xc7\x01\xec\x76\x90\x3d\x3a\xf3\x2f\x15\x9c\x3d\x57\xc6\xf1\x5f\x58\x13\xec\xf7\x42\x2c\xfa\x5b\x6d\x75\x79\xd5\x2f\xbe\x3c\xcd\x60\xbf\x1f\xc2\xf8\x44\xe5\x9e\x7c\xe1\xa4\x65\x69\x74\xd4\x19\x0c\x60\x3e\xbb\xb9\x7f\xba\x11\x22\xcf\xf3\xc2\x68\x6f\x14\x89\x9f\xa0\x22\x55\x83\x23\x6b\x00\xcb\x32\x2a\x3c\x91\x35\x5e\xb2\x71\xdb\x43\xbf\xf3\x72\xea\x78\x72\xb8\xb1\x25\x72\xa7\x27\xb5\x67\x54\xaa\x3d\xa7\x08\x3d\x7d\xa4\xd5\x96\x27\xa1\x7c\x57\xa1\xeb\x86\x84\xb1\xfe\xec\xbc\xb7\x58\x44\x5b\xf2\x3c\x8f\x23\x3d\x68\x76\xa6\x6c\x8a\x30\xa6\x10\xf3\x4a\x7a\x28\x82\x08\x94\x64\x95\xd9\xfa\x13\x4b\x6e\xad\x0d\xba\x46\x03\xc2\xe2\x8f\xe6\x95\x9c\x26\x26\xbf\xbc\xaa\x98\xed\x74\x32\x79\xeb\x4a\x99\x34\x43\x28\x54\xe3\x99\x1c\x34\x5e\xea\x35\x70\x45\xb0\xf8\x9d\x54\x9d\x7e\xf7\xd3\xc9\x24\x8c\x9a\xf9\x6a\x08\x16\x8b\x37\x5c\x13\xd4\xa8\x71\x4d\x2e\x8b\x57\x7b\x74\xe4\xe8\xbf\x46\x7a\xc9\xe4\xc5\x6e\x07\x0e\xf5\x9a\xc2\x6d\x7a\xf5\x30\x4b\xe2\x16\xbe\x76\xbb\x31\x90\x2e\x0f\xbc\x1e\x92\x8b\x87\xee\xd1\x1d\x21\xe6\xa6\xb3\x37\x54\xd3\xb8\xef\x92\xab\xb8\x74\xc9\x2d\xd0\xc1\xc4\xfc\x82\xff\xf9\xf4\x52\x00\xbe\x0d\xb0\x79\xb8\xaf\xa9\x6b\xd4\xe5\x17\x00\x85\x51\x8e\x84\x3a\x14\x32\xed\x94\xb4\xc2\x46\x31\x14\x46\xaf\xe4\xba\x71\x18\xf0\x67\x10\xe4\x17\x27\xb5\xe5\xd5\xe0\x64\x3d\x04\x4f\x31\x2b\xa0\xa4\x67\x1f\xc5\x2c\x3a\xac\x89\xc9\x85\x25\x32\x14\xa8\xe1\x95\x3a\x6d\x2a\xa1\x6c\x5c\x60\xd0\x7a\x94\x9a\x09\xf1\x0b\x8c\x46\x73\x69\x47\xa3\x29\xcc\xa4\x67\x08\xf6\xb5\xee\xfb\x36\x33\x79\xf4\x36\xb4\x4a\x69\x7d\xd1\xf2\x23\xa4\xcd\x61\x6b\x52\x92\x22\xa6\xb8\x9d\x7b\x46\x5f\x8d\x8d\x25\x87\x6c\xdc\x65\x74\xed\xff\x97\xc8\x7d\x15\x10\x47\xb5\xd9\x90\x87\x43\xb0\xfa\xf6\x9b\xda\x1a\x4d\x9a\x3d\xa0\xf7\xa6\x90\xc8\x54\x1e\x33\x97\x22\x98\xa0\xaa\x78\xa0\x97\xc4\xf4\x18\xee\xfa\x14\x52\xdf\x95\x51\xca\xbc\x47\x27\xf0\x55\x51\x8f\x48\x87\x2c\x94\x7b\x78\xcc\x2a\x6e\x3f\x07\x53\x7a\x4d\xb9\x22\xe9\xba\x4c\x6c\x50\x35\xe4\x33\x21\x8e\xf9\xfc\x3b\x96\xe2\xab\x7a\xb6\x54\xc8\xd5\x16\x08\x8b\xea\x28\xdd\x7b\xe2\xf9\x78\xec\x89\xe1\x8d\xb6\x3f\x47\xa5\xc5\x75\xf7\xb9\xcc\x01\xdd\xba\xa9\x49\x33\xb0\x69\xe1\xb6\xd4\xf2\x0c\x7e\x33\x0e\xe8\x7f\xac\xad\xa2\xef\xf2\xc4\x20\xdd\xfc\x7c\xec\x5f\xd3\x95\x3a\xe4\xb7\x8a\xc9\x69\x64\xb9\x21\xb5\xbd\x06\x84\x7f\x6e\xff\x9c\xc1\x4a\x2a\x4a\xf1\xf7\xd1\x21\xd9\x42\x4c\x6e\xc2\xca\xb8\xf3\xb7\xd2\x3e\x13\xeb\xcc\x46\x96\x21\x0d\x95\x54\x24\xce\xf2\x1d\x21\xfd\x10\xd6\xb4\x83\xb4\xe9\xd8\x62\xad\xa2\x1d\x9f\x02\x00\x00\xff\xff\xc0\xfd\x61\xa1\x7a\x07\x00\x00")

func readmeTplBytes() ([]byte, error) {
return bindataRead(
Expand All @@ -92,7 +92,7 @@ func readmeTpl() (*asset, error) {
return nil, err
}

info := bindataFileInfo{name: "readme.tpl", size: 1916, mode: os.FileMode(420), modTime: time.Unix(1573722179, 0)}
info := bindataFileInfo{name: "readme.tpl", size: 1914, mode: os.FileMode(420), modTime: time.Unix(1573722179, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
Expand Down
3 changes: 1 addition & 2 deletions templates/readme.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ $ helm install {{ .Release.Name }} {{ .Repository.Name }}/{{ .Chart.Name }} -n {
This chart deploys {{ .Project.App }} on a [Kubernetes](http://kubernetes.io) cluster using the [Helm](https://helm.sh) package manager.

## Prerequisites

{{ range .Prerequisites -}}
{{ range .Prerequisites }}
- {{ . }}
{{- end }}

Expand Down
5 changes: 4 additions & 1 deletion testdata/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@ This chart deploys a Stash operator on a [Kubernetes](http://kubernetes.io) clus

## Prerequisites

- Kubernetes 1.11+
- Kubernetes v1.14+
- `--allow-privileged` flag must be set to true for both the API server and the kubelet
- (If you use Docker) The Docker daemon of the cluster nodes must allow shared mounts
- Pre-installed HashiCorp Vault server.

## Installing the Chart

Expand Down
5 changes: 4 additions & 1 deletion testdata/doc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@ chart:
values: "-- generate from values file --"
valuesExample: "-- generate from values file --"
prerequisites:
- Kubernetes 1.11+
- "Kubernetes v1.14+"
- "`--allow-privileged` flag must be set to true for both the API server and the kubelet"
- "(If you use Docker) The Docker daemon of the cluster nodes must allow shared mounts"
- "Pre-installed HashiCorp Vault server."
release:
name: stash-operator
namespace: kube-system

0 comments on commit 91d228b

Please sign in to comment.