Skip to content

Commit

Permalink
feat(chart): Modify NOTES.txt (#1171)
Browse files Browse the repository at this point in the history
Signed-off-by: Javier Rodriguez <[email protected]>
  • Loading branch information
javirln authored Jul 31, 2024
1 parent 742db98 commit b2cd67a
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 27 deletions.
2 changes: 1 addition & 1 deletion deployment/chainloop/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ description: Chainloop is an open source software supply chain control plane, a

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

Expand Down
37 changes: 11 additions & 26 deletions deployment/chainloop/templates/NOTES.txt
Original file line number Diff line number Diff line change
@@ -1,28 +1,9 @@
CHART NAME: {{ .Chart.Name }}
CHART VERSION: {{ .Chart.Version }}
APP VERSION: {{ .Chart.AppVersion }}

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

{{- if .Values.development }}

###########################################################################
DEVELOPMENT MODE
###########################################################################

██████╗ ███████╗██╗ ██╗ █████╗ ██████╗ ███████╗
██╔══██╗██╔════╝██║ ██║██╔══██╗██╔══██╗██╔════╝
██████╔╝█████╗ ██║ █╗ ██║███████║██████╔╝█████╗
██╔══██╗██╔══╝ ██║███╗██║██╔══██║██╔══██╗██╔══╝
██████╔╝███████╗╚███╔███╔╝██║ ██║██║ ██║███████╗
╚═════╝ ╚══════╝ ╚══╝╚══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝

Instance running in development mode!

Development mode, by default

- Runs an insecure, unsealed, non-persistent instance of Vault
- Is configured with development authentication keys

DO NOT USE IT FOR PRODUCTION PURPOSES

###########################################################################
CONFIGURE CLI
###########################################################################
Expand All @@ -34,14 +15,18 @@ Configure the CLI to point to this instance, for example
--artifact-cas cas.acme.com:80

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

###########################################################################
USEFUL LINKS
###########################################################################

- GitHub repository: https://github.com/chainloop-dev/chainloop
- Documentation: https://docs.chainloop.dev
- Documentation: https://docs.chainloop.dev


{{- end }}

{{- include "common.warnings.rollingTag" .Values.controlplane.image }}
{{- include "common.warnings.rollingTag" .Values.cas.image }}
{{- include "common.warnings.rollingTag" .Values.controlplane.migration.image }}
{{- include "chainloop.validateValues" . }}
{{- include "common.warnings.modifiedImages" (dict "images" (list .Values.controlplane.image .Values.cas.image .Values.controlplane.migration.image) "context" $) }}
23 changes: 23 additions & 0 deletions deployment/chainloop/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -394,3 +394,26 @@ NOTE: Load balancer service type is not supported
{{- printf "http://localhost:%s" $service.nodePorts.http }}
{{- end -}}
{{- end -}}

{{/*
Check for Development mode
*/}}
{{- define "chainloop.validateValues.development" -}}
{{- if .Values.development }}
{{- 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" -}}
{{- end -}}
{{- end -}}

{{/*
Compile all warning messages into a single one
*/}}
{{- define "chainloop.validateValues" -}}
{{- $messages := list -}}
{{- $messages := append $messages (include "chainloop.validateValues.development" .) -}}
{{- $messages := without $messages "" -}}
{{- $message := join "\n" $messages -}}

{{- if $message -}}
{{- printf "\n\nVALUES VALIDATION:\n%s" $message -}}
{{- end -}}
{{- end -}}

0 comments on commit b2cd67a

Please sign in to comment.