Skip to content

Commit b2cd67a

Browse files
authored
feat(chart): Modify NOTES.txt (#1171)
Signed-off-by: Javier Rodriguez <[email protected]>
1 parent 742db98 commit b2cd67a

File tree

3 files changed

+35
-27
lines changed

3 files changed

+35
-27
lines changed

deployment/chainloop/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ description: Chainloop is an open source software supply chain control plane, a
77

88
type: application
99
# Bump the patch (not minor, not major) version on each change in the Chart Source code
10-
version: 1.85.0
10+
version: 1.85.1
1111
# Do not update appVersion, this is handled automatically by the release process
1212
appVersion: v0.95.2
1313

Lines changed: 11 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,9 @@
1+
CHART NAME: {{ .Chart.Name }}
2+
CHART VERSION: {{ .Chart.Version }}
3+
APP VERSION: {{ .Chart.AppVersion }}
14

25
** Please be patient while the chart is being deployed **
36

4-
{{- if .Values.development }}
5-
6-
###########################################################################
7-
DEVELOPMENT MODE
8-
###########################################################################
9-
10-
██████╗ ███████╗██╗ ██╗ █████╗ ██████╗ ███████╗
11-
██╔══██╗██╔════╝██║ ██║██╔══██╗██╔══██╗██╔════╝
12-
██████╔╝█████╗ ██║ █╗ ██║███████║██████╔╝█████╗
13-
██╔══██╗██╔══╝ ██║███╗██║██╔══██║██╔══██╗██╔══╝
14-
██████╔╝███████╗╚███╔███╔╝██║ ██║██║ ██║███████╗
15-
╚═════╝ ╚══════╝ ╚══╝╚══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝
16-
17-
Instance running in development mode!
18-
19-
Development mode, by default
20-
21-
- Runs an insecure, unsealed, non-persistent instance of Vault
22-
- Is configured with development authentication keys
23-
24-
DO NOT USE IT FOR PRODUCTION PURPOSES
25-
267
###########################################################################
278
CONFIGURE CLI
289
###########################################################################
@@ -34,14 +15,18 @@ Configure the CLI to point to this instance, for example
3415
--artifact-cas cas.acme.com:80
3516

3617
Refer to this link for more information
37-
https://docs.chainloop.dev/getting-started/installation#configure-cli-optional
18+
https://docs.chainloop.dev/getting-started/installation#configure-cli-optional
3819

3920
###########################################################################
4021
USEFUL LINKS
4122
###########################################################################
4223

4324
- GitHub repository: https://github.com/chainloop-dev/chainloop
44-
- Documentation: https://docs.chainloop.dev
25+
- Documentation: https://docs.chainloop.dev
26+
4527

46-
{{- end }}
47-
28+
{{- include "common.warnings.rollingTag" .Values.controlplane.image }}
29+
{{- include "common.warnings.rollingTag" .Values.cas.image }}
30+
{{- include "common.warnings.rollingTag" .Values.controlplane.migration.image }}
31+
{{- include "chainloop.validateValues" . }}
32+
{{- include "common.warnings.modifiedImages" (dict "images" (list .Values.controlplane.image .Values.cas.image .Values.controlplane.migration.image) "context" $) }}

deployment/chainloop/templates/_helpers.tpl

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -394,3 +394,26 @@ NOTE: Load balancer service type is not supported
394394
{{- printf "http://localhost:%s" $service.nodePorts.http }}
395395
{{- end -}}
396396
{{- end -}}
397+
398+
{{/*
399+
Check for Development mode
400+
*/}}
401+
{{- define "chainloop.validateValues.development" -}}
402+
{{- if .Values.development }}
403+
{{- printf "\n###########################################################################\n DEVELOPMENT MODE\n###########################################################################\n\n██████╗ ███████╗██╗ ██╗ █████╗ ██████╗ ███████╗\n██╔══██╗██╔════╝██║ ██║██╔══██╗██╔══██╗██╔════╝\n██████╔╝█████╗ ██║ █╗ ██║███████║██████╔╝█████╗\n██╔══██╗██╔══╝ ██║███╗██║██╔══██║██╔══██╗██╔══╝\n██████╔╝███████╗╚███╔███╔╝██║ ██║██║ ██║███████╗\n╚═════╝ ╚══════╝ ╚══╝╚══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝\n\nInstance running in development mode!\n\nDevelopment mode, by default\n\n- Runs an insecure, unsealed, non-persistent instance of Vault\n- Is configured with development authentication keys\n\nDO NOT USE IT FOR PRODUCTION PURPOSES" -}}
404+
{{- end -}}
405+
{{- end -}}
406+
407+
{{/*
408+
Compile all warning messages into a single one
409+
*/}}
410+
{{- define "chainloop.validateValues" -}}
411+
{{- $messages := list -}}
412+
{{- $messages := append $messages (include "chainloop.validateValues.development" .) -}}
413+
{{- $messages := without $messages "" -}}
414+
{{- $message := join "\n" $messages -}}
415+
416+
{{- if $message -}}
417+
{{- printf "\n\nVALUES VALIDATION:\n%s" $message -}}
418+
{{- end -}}
419+
{{- end -}}

0 commit comments

Comments
 (0)