(item config.PluginInstanceConfig, enabled bool)
| 75 | } |
| 76 | |
| 77 | func runtimeConfigYAML(item config.PluginInstanceConfig, enabled bool) []byte { |
| 78 | rawNode := normalizedConfigNode(item, enabled) |
| 79 | rawYAML := bytes.TrimSpace(mustMarshalYAML(rawNode)) |
| 80 | if len(rawYAML) == 0 { |
| 81 | return append([]byte(nil), defaultRuntimeConfigYAML...) |
| 82 | } |
| 83 | return append(append([]byte(nil), rawYAML...), '\n') |
| 84 | } |
| 85 | |
| 86 | func desiredPluginVersions(items map[string]runtimeItemConfig) map[string]string { |
| 87 | if len(items) == 0 { |