Phillip Rak
5326eaa8ac
Remove redundant parens
2021-09-13 13:19:00 -07:00
Phillip Rak
ebcf77db3b
Add _type only at a depth of 0
2021-09-13 13:17:34 -07:00
Phillip Rak
dfb4e6d3e7
Only add type when regularFields does not contain _type
2021-09-10 16:55:58 -07:00
Phillip Rak
96e4c7d7eb
Only add _type if regularFields does not inclue type
2021-09-10 16:55:21 -07:00
Phillip Rak
926728718d
Revert change to actively remove 'spec._type'
2021-09-10 16:54:44 -07:00
Phillip Rak
b99107502d
Add spec._type to actively remove
2021-09-09 13:28:24 -07:00
Vincent Fiduccia
96f53674d8
Upgrade jsyaml
2021-08-06 02:06:04 -07:00
Vincent Fiduccia
9d397307d8
Don't show namespace comment on yaml for cluster-level resource
2021-06-08 15:14:44 -07:00
Vincent Fiduccia
c7c15455cc
Configure addon charts when deploying cluster
2021-06-08 15:14:44 -07:00
Richard Cox
0623d2fa5b
Fix create/edit cluster & project roles
...
- This bug exists for any schema where resourceFields is null (like management.cattle.io.roletemplate)
2021-05-07 14:15:47 +01:00
Vincent Fiduccia
6de4934e3f
More cluster options
2021-05-04 18:38:01 -07:00
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