GetDeprecatedProperties returns the list of any deprecated properties that are used in the compose files.
(configDicts ...map[string]any)
| 246 | // GetDeprecatedProperties returns the list of any deprecated properties that |
| 247 | // are used in the compose files. |
| 248 | func GetDeprecatedProperties(configDicts ...map[string]any) map[string]string { |
| 249 | deprecated := map[string]string{} |
| 250 | |
| 251 | for _, configDict := range configDicts { |
| 252 | deprecatedProperties := getProperties(getServices(configDict), types.DeprecatedProperties) |
| 253 | maps.Copy(deprecated, deprecatedProperties) |
| 254 | } |
| 255 | |
| 256 | return deprecated |
| 257 | } |
| 258 | |
| 259 | func getProperties(services map[string]any, propertyMap map[string]string) map[string]string { |
| 260 | output := map[string]string{} |
searching dependent graphs…