-
Notifications
You must be signed in to change notification settings - Fork 30
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
Tidy up /template APIs #3646
base: main
Are you sure you want to change the base?
Tidy up /template APIs #3646
Conversation
- `default` looks a bit more consistent for now
- Remove /profiles and /params endpoints - They just return a post-filtered subset of /templates/{name} - Align preview and create-pull-request endpoints, they had differing param names - createpullrequest.values -> profiles (aligned w/ preview.profiles) - preview.values -> parameter_values (aligned w/ createpullrequest.parameter_values)
- Hopefully we can just use the OSS one
Also external_secret_name -> name
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested, LGTM 🥳 Unrelated to the changes in this PR (already on https://demo-01.eng-sandbox.weave.works/) I've noticed that when you click PR Preview in Secret Creation, if there are missing params, it doesn't flag the missing field (there's no feedback to the user). The other sections seem ok. Will log a ticket for it
What changed?
Tidy up the templates APIs
createpullrequest.values
->profiles
(aligned w/preview.profiles
)preview.values
->parameter_values
(aligned w/createpullrequest.parameter_values
)Small fix to secrets param in the path:
external_secret_name
->name