Commit Graph

16 Commits

Author SHA1 Message Date
Vincent Fiduccia 75ec34c756
Define and create pools 2021-03-17 23:02:49 -07:00
Cody Jackson 5e45a4d00a Resolving several issues around role template
- edit yaml didn't show yaml because a schema wasn't defined
- edit yaml didn't save because the update link wasn't correct
- saving yaml didn't update the models in the stores
- not all input elements were passed the mode when looking at the config view
- the select and array list components had visual issues in view mode (didn't show the values and the buttons didn't line up well)
- cloning failed due to cleanForNew not accounting for the template property

https://github.com/rancher/dashboard/issues/2111#issuecomment-777066167
2021-02-23 15:10:51 -07:00
Westly Wright dbd216ff32
Add new prop to createYaml NEVER_ADD
This particular property contains a cyclical reference in the allOf property which is of the type io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps and has its own allOf of the same type.

rancher/dashboard#1843
2020-12-17 15:52:24 -07:00
Vincent Fiduccia 119687c842
Fix yaml edit from form 2020-12-10 00:16:39 -07:00
Cody Jackson 4893a97668 Switched to modifying this.value directly
CruResource needs to take the modified value in
order to display the appropriate yaml.

Also the Output and ClusterOutput spec has a
type of `.spec` so I had to put an exception in
create-yaml.

rancher/dashboard#1420
rancher/dashboard#1421
2020-09-29 13:47:57 -07:00
Westly Wright 75953fd893
Do not process always add for array types create yaml
rancher/dashboard#1008
2020-09-23 10:23:45 -07:00
Nancy Butler a4f847bc67 create-yaml error 2020-09-21 14:57:34 -07:00
Vincent Fiduccia 5fbd9526f5
Fleet ClusterGroups 2020-09-10 03:00:18 -07:00
Cody Jackson fb3c440d04 Fixing opa constraint bitrot issues
There's been significant changes to a number of our base components that didn't get carried over to constraints since it's an exceptional type.

- This migrated over to cru-resource
- Updated all of the helper components to handle the lack of tables in arraylist
- Updated how create-edit-view is used
- Properly saves now
- Can edit parameters as yaml
- Can edit yaml

https://github.com/rancher/dashboard/issues/1100
https://github.com/rancher/dashboard/issues/1099
https://github.com/rancher/dashboard/issues/1011
https://github.com/rancher/dashboard/issues/622
2020-09-02 17:38:57 -07:00
Westly Wright 584fb35596
Don't loop and process always add for preview yaml 2020-08-25 09:50:51 -07:00
Westly Wright 15c36d709f
during create yaml dont parse undefinied values
this causes the yaml parser to blow up. I added some extra error handling and logs as well

rancher/dashboard#1008
2020-08-25 09:50:50 -07:00
Westly Wright 70e0632859
Update createYaml to use data passed in as default 2020-08-13 10:21:19 -07:00
Nancy Butler a26f61b904 use js-yaml parsing and resource proxy obj for yaml edit/clone
map _type->type in create-yaml

use link for yaml instead of parsing JSON
2020-05-14 12:52:01 -07:00
Nancy Butler 2ecc94b9e2 . 2020-05-14 12:51:28 -07:00
Vincent Fiduccia 2237bef8ef
Form components 2019-09-24 00:17:02 -07:00
Vincent Fiduccia f3d824a9fd
Yaml create 2019-08-28 23:16:46 -07:00