feat: use ports-clear plugn trigger to manage clearing the port map

This removes any access to the underlying implementation for port map clearing, which will make it easier to refactor the actual clearing.
This commit is contained in:
Jose Diaz-Gonzalez committed 2023-08-05 10:58:57 -04:00
1 parent fb9d77878d
commit 1431724b85
12 files changed
+45 -8

No files matched your search

+5
View File
@@ -19,6 +19,11 @@ func TriggerPortsGet(appName string) error {
return nil
}
// TriggerPortsClear removes all ports for the specified app
func TriggerPortsClear(appName string) error {
return clearPorts(appName)
}
// TriggerPostCertsRemove unsets port config vars after SSL cert is added
func TriggerPostCertsRemove(appName string) error {
keys := []string{"DOKKU_PROXY_SSL_PORT"}