GetUnsupportedProperties returns the list of any unsupported properties that are used in the Compose files.
(configDicts ...map[string]any)
| 218 | // GetUnsupportedProperties returns the list of any unsupported properties that are |
| 219 | // used in the Compose files. |
| 220 | func GetUnsupportedProperties(configDicts ...map[string]any) []string { |
| 221 | unsupported := map[string]bool{} |
| 222 | |
| 223 | for _, configDict := range configDicts { |
| 224 | for _, service := range getServices(configDict) { |
| 225 | serviceDict := service.(map[string]any) |
| 226 | for _, property := range types.UnsupportedProperties { |
| 227 | if _, isSet := serviceDict[property]; isSet { |
| 228 | unsupported[property] = true |
| 229 | } |
| 230 | } |
| 231 | } |
| 232 | } |
| 233 | |
| 234 | return sortedKeys(unsupported) |
| 235 | } |
| 236 | |
| 237 | func sortedKeys(set map[string]bool) []string { |
| 238 | keys := make([]string, 0, len(set)) |
searching dependent graphs…