File tree Expand file tree Collapse file tree
pkg/controller/configuration Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -56,9 +56,14 @@ type valueManager struct {
5656 formatConfigs map [string ]parametersv1alpha1.FileFormatConfig
5757}
5858
59+ func needValueTransformer (formatter parametersv1alpha1.CfgFileFormat ) bool {
60+ return formatter == parametersv1alpha1 .JSON ||
61+ formatter == parametersv1alpha1 .YAML
62+ }
63+
5964func (v * valueManager ) buildValueTransformer (key string ) core.ValueTransformerFunc {
6065 // NODE: The JSON format requires distinguishing value types, and encode/decode will not perform automatic conversion.
61- if format , ok := v .formatConfigs [key ]; ! ok || format .Format != parametersv1alpha1 . JSON {
66+ if format , ok := v .formatConfigs [key ]; ! ok || ! needValueTransformer ( format .Format ) {
6267 return nil
6368 }
6469 index := generics .FindFirstFunc (v .paramsDefs , func (paramDef * parametersv1alpha1.ParametersDefinition ) bool {
You can’t perform that action at this time.
0 commit comments