Skip to content

Commit

Permalink
Whitespace fix indent
Browse files Browse the repository at this point in the history
  • Loading branch information
tnederlof committed Nov 27, 2023
1 parent e59423f commit 652253d
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions charts/_templates.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -115,25 +115,26 @@ First, create the secret declaratively with YAML or imperatively using the follo
{{ else if eq .Name "rstudio-workbench" -}}
`kubectl create secret generic workbench-license --from-file=licenses/workbench.lic`
{{ else -}}
{{ template "chart.header" . }}
`kubectl create secret generic license --from-file=licenses/license.lic`
{{- end }}

Second, specify the following values:

```yaml
license:
file:
{{ if eq .Name "rstudio-connect" }}
{{- if eq .Name "rstudio-connect" }}
secret: connect-license
secretKey: connect.lic
{{ else if eq .Name "rstudio-pm" }}
{{- else if eq .Name "rstudio-pm" }}
secret: package-manager-license
secretKey: package-manager.lic
{{ else if eq .Name "rstudio-workbench" }}
{{- else if eq .Name "rstudio-workbench" }}
secret: workbench-license
secretKey: workbench.lic
{{ else }}
{{ template "chart.header" . }}
{{- else }}
secret: license
secretKey: license.lic
{{ end }}
```

Expand All @@ -147,7 +148,7 @@ Alternatively, license files can be set during `helm install` with the following
{{ else if eq .Name "rstudio-workbench" -}}
`--set-file license.file.contents=licenses/workbench.lic`
{{ else -}}
{{ template "chart.header" . }}
`--set-file license.file.contents=licenses/license.lic`
{{- end }}

### License Key
Expand Down

0 comments on commit 652253d

Please sign in to comment.