Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
aslafy-z committed Jul 25, 2024
1 parent a64a96c commit 5d7d303
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 60 deletions.
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ To uninstall the chart:
helm delete --namespace test my-application
```

## Configuration

## Values

### Parameters
Expand Down
58 changes: 0 additions & 58 deletions README.md.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -29,64 +29,6 @@ To uninstall the chart:
helm delete --namespace test my-application
```

## Configuration

{{ template "chart.requirementsSection" . }}


{{ define "chart.valueDefaultColumnRender" }}
{{- $defaultValue := (default .Default .AutoDefault) -}}
{{- $notationType := .NotationType }}
{{- if (and (hasPrefix "`" $defaultValue) (hasSuffix "`" $defaultValue) ) -}}
{{- $defaultValue = (toYaml (fromJson (trimAll "`" (default .Default .AutoDefault) ) ) ) -}}
{{- $notationType = "yaml" }}
{{- end -}}
{{- if (eq $notationType "tpl" ) }}
<pre lang="{{ $notationType }}">
{{ .Key }}: |
{{- $defaultValue | nindent 2 }}
</pre>
{{- else }}
<pre lang="{{ $notationType }}">
{{ $defaultValue }}
</pre>
{{- end }}
{{ end }}

{{/*
{{ define "chart.typeColumnRender" }}
{{- if (eq .Type "k8s/storage/persistent-volume/access-modes" )}}
<a target="_blank"
href="https://kubernetes.io/docs/concepts/storage/persistent-volumes/#access-modes"
>{{- .Type }}</a>
{{- else }}
{{ .Type }}
{{- end }}
{{ end }}

{{ define "chart.valuesTableHtml" }}
<table>
<thead>
<th>Key</th>
<th>Type</th>
<th>Default</th>
<th>Description</th>
</thead>
<tbody>
{{- range .Values }}
<tr>
<td id="{{ .Key | replace "." "--" }}"><a href="./values.yaml#L{{ .LineNumber }}">{{ .Key }}</a></td>
<td>{{- template "chart.typeColumnRender" . -}}</td>
<td>
<div>{{ template "chart.valueDefaultColumnRender" . }}</div>
</td>
<td>{{ if .Description }}{{ .Description }}{{ else }}{{ .AutoDescription }}{{ end }}</td>
</tr>
{{- end }}
</tbody>
</table>
{{ end }}
*/}}
{{ template "chart.valuesSection" . }}

{{ template "helm-docs.versionFooter" . }}
Expand Down

0 comments on commit 5d7d303

Please sign in to comment.