fix: Shorten all secret and config names to max 14 characters #13
Reference in New Issue
Block a user
No description provided.
Delete Branch "eCommons/monitoring-ng:shorter-names"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR solves #12 by shortening all secret and config names to max 14 characters.
Note that this PR is based on #6, which hasn't been merged yet.
I've briefly tested by deploying the current recipe version and upgrading to this PR:
docker config lsstill shows the old config files with longer names, they are not automatically cleaned up.Shortened all the secret and config names to max 14 characters to prevent running into Docker's 64 character limit when STACK_NAME is appended to it.to fix: Shorten all secret and config names to max 14 charactersThanks a lot! This looks good to me :) I also just merge #6
Could you add a note to the release notes (in release/next) that explains what to do when upgrading?
0f4033aa97tocda5c89033Thank you, I really like this PR. I also tried to shorten the secret names of many recipes long ago because we had problems with too long domains.
But changing the secret names is also a huge breaking change, that takes a lot of effort to change all secrets for all deployed apps. I would favor if there is a abra.sh function that can be run with the --local flag, that extracts the actual secrets and automatically inserts them with the new names, before running the update. Just contact if you need help in implementing it.
8cdc3bf744to0ebee51b470ebee51b47to682f30cef1I've added migrate_secret_names to abra.sh. It works for me. Can you review if it would fit your needs?
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.