-
Notifications
You must be signed in to change notification settings - Fork 47
feat(update): Introduce user-specific config files to prevent merge conflicts #34
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
Merged
rm3l
merged 25 commits into
redhat-developer:main
from
Fortune-Ndlovu:user-config-sample-files
Apr 25, 2025
Merged
Changes from all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
a686f54
feat(config): Introduce user-specific config files to prevent merge c…
Fortune-Ndlovu 92351d9
fix(ci): Ensure sample config files are copied in CI/CD
Fortune-Ndlovu cbf8824
fix(ci): Improve Podman Compose debugging and startup checks
Fortune-Ndlovu e6287e1
Revert CI workflow to only include config file setup
Fortune-Ndlovu 6575818
Update README to clearly mark setting up configuration files as Requi…
Fortune-Ndlovu 4232230
refactor(config): support automatic local config overrides using stru…
Fortune-Ndlovu 3a9f1d8
fix(compose): remove obsolete dynamic-plugins.yaml mount causing CI f…
Fortune-Ndlovu 6fac27c
fixup: Added app-config first in the list and its the first file in t…
39d8ebf
Update: Ignore any *.local.yaml files (and any *-credentials.yaml) si…
2cbd8ec
delete: dynamic-plugins.local.yaml because users would provide a dyna…
2ffc9f6
Updates: Keep 'configs/extra-files/github-app-credentials.example.yam…
abcd4a0
Update: Add an elif in a backward compatible way so we dont break exi…
c491f48
Update: Also add another elif in a backward compatible way so we dont…
bc002a2
Merge branch 'main' into user-config-sample-files
Fortune-Ndlovu 3393f44
Update README to mention new path AND mention that the configs/dynami…
66d795c
fixup(config): Remove quotes around because this allows the shell to…
c5f93be
Add comments on config files To make sure that even if someone accid…
2f3f87a
Update Read me to improve onboarding
1419541
Cleanup
3576b66
update(README): Users can still copy existing default files and renam…
c17b72c
Merge branch 'main' into user-config-sample-files
Fortune-Ndlovu a2df71d
update README
b0db050
Update(docs): add example config files for app-config and dynamic plu…
150ec8f
refactor: update example configs to use include-based GitHub App cred…
eab4929
chore(format): Ensure that the format in dynamic-plugins.yaml and dyn…
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,17 @@ | ||
.env | ||
configs/github-app-credentials.yaml | ||
/tmp | ||
/tmp | ||
|
||
# User-specific local configuration files | ||
*.local.yaml | ||
*-credentials.yaml | ||
/configs/dynamic-plugins/dynamic-plugins.override.yaml | ||
|
||
# Extra-files | ||
/configs/extra-files/* | ||
!/configs/extra-files/github-app-credentials.example.yaml | ||
|
||
# Kept for backward compatibility, but now Git-ignored | ||
/configs/app-config.local.yaml | ||
/configs/dynamic-plugins.yaml | ||
/configs/github-app-credentials.example.yaml |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Copy this file to app-config.local.yaml to override default app settings. | ||
# Example with GitHub integration referencing external secrets file. | ||
|
||
integrations: | ||
github: | ||
- host: github.com | ||
apps: | ||
- $include: ../extra-files/github-app-credentials.yaml |
1 change: 1 addition & 0 deletions
1
configs/app-config.local.yaml → configs/app-config/app-config.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
configs/dynamic-plugins/dynamic-plugins.override.example.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Example dynamic plugin override config. | ||
# Copy to dynamic-plugins.override.yaml to activate local plugins. | ||
|
||
includes: | ||
- dynamic-plugins.default.yaml | ||
|
||
# Below you can add custom dynamic plugins, including local ones. | ||
plugins: | ||
- package: local-plugins/example-plugin | ||
disabled: false | ||
pluginConfig: | ||
# Optional: Configuration passed to your plugin | ||
message: "Hello from local plugin" |
1 change: 1 addition & 0 deletions
1
configs/dynamic-plugins.yaml → configs/dynamic-plugins/dynamic-plugins.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# This file defines GitHub App credentials used by Backstage/RHDH. | ||
# It is included from app-config.local.yaml using: | ||
# $include: ../extra-files/github-app-credentials.yaml | ||
# | ||
# You can generate the values using: | ||
# npx @backstage/cli create-github-app <github-org-name> | ||
# Then rename this file to github-app-credentials.yaml | ||
|
||
appId: ${GITHUB_APP_APP_ID} | ||
clientId: ${GITHUB_APP_CLIENT_ID} | ||
clientSecret: ${GITHUB_APP_CLIENT_SECRET} | ||
webhookSecret: ${GITHUB_APP_WEBHOOK_SECRET} | ||
privateKey: ${GITHUB_APP_PRIVATE_KEY} |
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.