-
Notifications
You must be signed in to change notification settings - Fork 37
Expand file tree
/
Copy pathNOTES.txt
More file actions
84 lines (62 loc) · 4.14 KB
/
NOTES.txt
File metadata and controls
84 lines (62 loc) · 4.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
{{ include "rstudio-connect.fullname" . }} successfully deployed to namespace {{ $.Release.Namespace }}
{{- $hasLauncherDataDir := false }}
{{- $hasLauncherDataDirPVCName := false}}
{{- /* Verify configuration values */ -}}
{{- if hasKey .Values "config" }}
{{- if hasKey .Values.config "Licensing" }}
{{- if hasKey .Values.config.Licensing "LicenseType" }}
NOTE: `.Values.config.Licensing.LicenseType` is configured manually. Normally, we automatically configure this value:
- When `license.server` is set, we set `LicenseType` to `remote`.
- Otherwise, `LicenseType` uses the default of `local`.
Please consider removing this configuration value.
{{- end }}
{{- end }}
{{- if hasKey .Values.config "Launcher" }}
{{- if hasKey .Values.config.Launcher "DataDir" }}
{{- $hasLauncherDataDir = true }}
{{- if contains ":" .Values.config.Launcher.DataDir }}
{{- fail "NOTE: `config.Launcher.DataDir` is configured with a ':'. This functionality has been removed. Instead, please use a Persistent Volume Claim through the `sharedStorage` values and unset `config.Launcher.DataDir`." -}}
{{- end }}
{{- end }}
{{- if hasKey .Values.config.Launcher "DataDirPVCName" }}
{{- $hasLauncherDataDirPVCName = true }}
{{- end }}
{{- end }}
{{- end }}
{{- /* chart deprecations and misconfiguration warnings */ -}}
{{- if and .Values.launcher.enabled .Values.backends.kubernetes.enabled }}
{{- fail "\n\n`launcher.enabled` and `backends.kubernetes.enabled` cannot both be true"}}
{{- end }}
{{- if .Values.backends.kubernetes.enabled }}
{{- $configEnabled := dig "Kubernetes" "Enabled" "" .Values.config | printf "%v" | lower }}
{{- if or (eq $configEnabled "false") (eq $configEnabled "0") }}
{{- fail "\n\n`config.Kubernetes.Enabled` is set to false but `backends.kubernetes.enabled` is true. Remove `config.Kubernetes.Enabled` because the chart sets it automatically." }}
{{- end }}
{{- $configNs := dig "Kubernetes" "Namespace" "" .Values.config }}
{{- $chartNs := default $.Release.Namespace .Values.backends.kubernetes.namespace }}
{{- if and $configNs (ne $configNs $chartNs) }}
{{- fail (printf "\n\n`config.Kubernetes.Namespace` (%s) conflicts with `backends.kubernetes.namespace` (%s). Remove `config.Kubernetes.Namespace` because the chart sets it automatically from `backends.kubernetes.namespace`." $configNs $chartNs) }}
{{- end }}
{{- end }}
{{- if and .Values.launcher.useTemplates .Values.launcher.enabled }}
{{- range $k,$v := .Values.launcher.launcherKubernetesProfilesConf }}
{{- if hasKey $v "job-json-overrides" }}
{{- fail "\n\n`launcher.launcherKubernetesProfilesConf` has `job-json-overrides` defined. This cannot be used with `launcher.useTemplates=true`.\n\nPlease move `job-json-overrides` to the corresponding `launcher.templateValues`, or set `launcher.useTemplates=false`" }}
{{- end }}
{{- end }}
{{- end }}
{{- if and .Values.launcher.enabled (and (not .Values.sharedStorage.create) (not .Values.sharedStorage.mount) (not $hasLauncherDataDir) (not $hasLauncherDataDirPVCName) ) }}
{{- fail "\n\nWhen launcher is enabled, persistent storage must be provided.\nThis is usually done via a PersistentVolumeClaim (PVC) with `sharedStorage.create=true`, although there are other options."}}
{{- end }}
{{- if and .Values.backends.kubernetes.enabled (not .Values.sharedStorage.create) (not .Values.sharedStorage.mount) (not (dig "Kubernetes" "DataDirPVCName" "" .Values.config)) }}
{{- fail "\n\nWhen backends.kubernetes is enabled, persistent storage must be provided.\nThis is usually done via a PersistentVolumeClaim (PVC) with `sharedStorage.create=true`, although there are other options."}}
{{- end }}
{{- if .Values.launcher.contentInitContainer }}
{{- fail "\n\n`launcher.contentInitContainer` values are now stored at `launcher.defaultInitContainer`" }}
{{- end }}
{{- if .Values.pod.serviceAccountName }}
{{- fail "\n\n`pod.serviceAccountName` is no longer used. Use `rbac.serviceAccount.name` instead." }}
{{- end }}
{{- if .Values.pod.nodeSelector }}
{{- fail "\n\n`pod.nodeSelector` is no longer used. Use `nodeSelector` instead!\nThis is more consistent with other charts and the community." }}
{{- end }}