mirror of
https://github.com/dokku/dokku.git
synced 2026-07-10 20:40:43 +02:00
The apps plugin accepted `apps:set --global deploy-source` and `apps:set --global deploy-source-metadata` even though nothing reads those properties globally, accepted `apps:set <app> disable-autocreation` even though only the global form is consulted by `maybeCreateApp`, and never emitted `disable-autocreation` in `apps:report` for either scope. Drop the global `deploy-source*` writes from `GlobalProperties`, reject per-app `disable-autocreation` writes at the plugin level, and surface `--app-global-disable-autocreation` in both the per-app and `--global` reports so the property the runtime actually reads is round-trippable.
16 lines
403 B
Go
16 lines
403 B
Go
package apps
|
|
|
|
var (
|
|
// DefaultProperties is a map of all valid apps properties with corresponding default property values
|
|
DefaultProperties = map[string]string{
|
|
"deploy-source": "",
|
|
"deploy-source-metadata": "",
|
|
"disable-autocreation": "",
|
|
}
|
|
|
|
// GlobalProperties is a map of all valid global apps properties
|
|
GlobalProperties = map[string]bool{
|
|
"disable-autocreation": true,
|
|
}
|
|
)
|