Commit Graph

4 Commits

Author SHA1 Message Date
Cody Jackson dcad01a17a Moving gatekeeper-constraint to be a spoofedType 2020-11-17 23:14:40 -07:00
Cody Jackson 5772341855 Change how we handle nameless routes and how we save yaml
- We just filtered out nameless routes which caused problems with default routes and manually created routes. This now gives a default name of `route-${i}` which if saved will add the name to the route.
- We remove the names before saving and prever the user from setting the name.
- Made the yamlSaveOverride consistent with receivers since it wasn't working when going to edit as yaml from the create page.

rancher/dsahboard#1239
2020-11-03 17:23:34 -07:00
Cody Jackson cf83a76900 Switch alertmanagerconfig to use dispatch with { root:true }
The utility was broken in prod due to the function names changing. Instead of trying to differentiate the dispatch method being used we just set the { root:true } config so we can always use the 'cluster/action'.

https://github.com/rancher/dashboard/issues/1238#issuecomment-719730626
2020-10-30 15:54:05 -07:00
Cody Jackson 0118e0c984 Adding the route alertmanager route type
- Extracted code that could be shared between route and receiver into an alertmanagerconfig util
- Added some more support code to allow users to dynamically add/remove uncreatableTypes

rancher/dashboard#1239
2020-10-27 16:10:01 -07:00