Skip to content

Conversation

sei-bstein
Copy link
Contributor

This rolls back a change that supplied some defaults to settingsYaml for GBUI. The issue is that if this value is specified, any downstream apps that are using settings to configure their apps will have them overridden by the default settingsYaml from our values.

Changed this value to null in the greater GB chart and the GB UI chart, and added a note explaining this until we find a better way forward for settings more generally.

…terfering with installations using settings.
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.5.7
version: 0.5.8

Choose a reason for hiding this comment

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

Have any changes been made to the gameboard-api chart? I'm not sure that this version needs to be bumped.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I was told to increment all the charts for a single app at once, regardless if one half doesn't have chart changes - I'm happy to not do this if that's preferable. #helmczart?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Pushed a commit to this PR to roll this change back.

appname: Gameboard
## NOTE: If specified here, will override the generated settings.json for installations that are using
## the `settings` key. Change with caution.
settingsYaml: null

Choose a reason for hiding this comment

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

Can this be changed to settingsYaml: {} to match other empty dictionary values? It's also more descriptive when someone needs to override with actual values.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is where it's clear that I'm playing out of my depth, but the answer to this is "I'm not sure" 🤣 I discovered the hard way this morning that there are some layers here I wasn't familiar with.

The config map for this settings file is here. It checks whether settingsYaml is defined and uses that if present, but falls back to settings if not. Since an empty dictionary is a truthy value (according to my brief research), this check would pass, and the value of settingsYaml will be used over anything in settings. I saw this in vivo today, where we changed an existing installation's settingsYaml to {}, but that empty value was still being used over a fully defined settings key.

I think there's something there I'm still not getting, because before I started monkeying with this, this key was set to {} in this repo's values file. I'm very willing to change this back to {}, but do we know if that would cause problems for installations which don't define a settingsYaml value at all and instead rely on settings?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Update: It looks like I misunderstood - in a Helm template, {} is a falsey value, so that should work. I'll reach out offline, but I've updated the PR based on this feedback.

appname: Gameboard
## NOTE: If specified here, will override the generated settings.json for installations that are using
## the `settings` key. Change with caution.
settingsYaml: null

Choose a reason for hiding this comment

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

Same comment as the UI settingsYaml value.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Changed to {}

@sei-mpriest
Copy link
Collaborator

I think we need to bump the appVersion of both charts to 3.35.0. I assume that is the version of GB that we are targeting for the oidc changes. If so, then we should also bump the chart version for the api chart.

@sei-bstein
Copy link
Contributor Author

Version 3.35.0 was released after this PR. I plan to PR new chart/app versions for that separately, but I wanted to resolve this question first, as it's a separate issue.

Would you rather I add the changes for GB 3.35.0 and TM 2.5.0 to this PR?

@sei-mpriest sei-mpriest merged commit f22842f into cmu-sei:main Oct 6, 2025
@sei-bstein sei-bstein deleted the gb-settings-yaml-rollback branch October 6, 2025 16:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants