(item config.PluginInstanceConfig)
| 103 | } |
| 104 | |
| 105 | func pluginConfigDesiredVersion(item config.PluginInstanceConfig) string { |
| 106 | storeNode := yamlMappingValue(&item.Raw, "store") |
| 107 | if storeNode == nil { |
| 108 | return "" |
| 109 | } |
| 110 | if version := normalizePluginDesiredVersion(yamlScalarString(yamlMappingValue(storeNode, "version"))); version != "" { |
| 111 | return version |
| 112 | } |
| 113 | return normalizePluginDesiredVersion(yamlScalarString(yamlMappingValue(storeNode, "release-tag"))) |
| 114 | } |
| 115 | |
| 116 | func normalizePluginDesiredVersion(version string) string { |
| 117 | version = strings.TrimSpace(version) |
no test coverage detected