Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow configuring ui custom_message via chart #432

Merged
merged 1 commit into from
Jan 17, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion stable/enterprise/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: enterprise
version: "3.3.1"
version: "3.3.2"
appVersion: "5.13.1"
kubeVersion: 1.23.x - 1.31.x || 1.23.x-x - 1.31.x-x
description: |
Expand Down
5 changes: 5 additions & 0 deletions stable/enterprise/templates/ui_configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ data:
{{- end }}
{{- end }}
{{- end }}
{{- with .Values.anchoreConfig.ui.custom_message }}
custom_message:
title: {{ .title }}
message: {{ .message }}
{{- end }}
{{- with .Values.anchoreConfig.ui.enable_add_repositories }}
enable_add_repositories:
admin: {{ .admin }}
Expand Down
8 changes: 8 additions & 0 deletions stable/enterprise/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -745,6 +745,13 @@ anchoreConfig:
# admin: True
# standard: True

## @param anchoreConfig.ui.custom_message.title A title key, whose string value provides a title for the message
## @param anchoreConfig.ui.custom_message.message A message key, whose string value is the message itself
##
custom_message: {}
Copy link
Member

@holt holt Jan 16, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably best to comment this line out while it's empty because I think our YAML validator will expect the keys to be provided if it's present.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mike, that's a good shout! I just tested it and if custom_message is empty nothing gets rendered in the config map which represents the config-ui.yaml.

# title: "Title goes here..."
# message: "Message goes here..."

## @param anchoreConfig.ui.log_level Descriptive detail of the application log output
## valid values are error, warn, info, http, debug
##
Expand Down Expand Up @@ -1753,6 +1760,7 @@ postgresql:

## @param postgresql.primary.persistence.size Configure size of the persistent volume for PostgreSQL Primary data volume
## @param postgresql.primary.persistence.storageClass PVC Storage Class for PostgreSQL Primary data volume
## NOTE: If your storage class does not allow dynamic resizing then be sure to set the size appropriately!!
##
persistence:
size: 20Gi
Expand Down
Loading