Commit Graph

7 Commits

Author SHA1 Message Date
Vincent Fiduccia 96f53674d8
Upgrade jsyaml 2021-08-06 02:06:04 -07:00
Cody Jackson 3acec621d3 Prefixing the alertmanager secretId with the appropraite namespace
When alertManager.spec.configSecret was present it didn't include the namespace which caused subsequent lookups of the secret to fail. This corrects the id by prefixing the namespace to it.

rancher/dashboard#1845
rancher/dashboard#1805
2020-12-04 17:30:33 -07:00
Vincent Fiduccia 604cfccfc1
Remove the rest of resourceDetail asyncData, fetch fixes
- parentOverrides now part of type-map/configureType to set and  type-map/optionsFor to get.
- Remove asyncData from resourceDetail flow
- Rehydrate fetch() data
2020-12-02 03:31:25 -07:00
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