mirror of
https://github.com/openziti/zrok.git
synced 2026-09-24 07:35:05 -05:00
everything -> dl (#1078)
This commit is contained in:
@@ -3,10 +3,10 @@ package controller
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/michaelquigley/df/dl"
|
||||
"github.com/openziti/zrok/controller/automation"
|
||||
"github.com/openziti/zrok/controller/config"
|
||||
"github.com/openziti/zrok/sdk/golang/sdk"
|
||||
"github.com/sirupsen/logrus"
|
||||
)
|
||||
|
||||
func Unbootstrap(cfg *config.Config) error {
|
||||
@@ -17,13 +17,13 @@ func Unbootstrap(cfg *config.Config) error {
|
||||
|
||||
// cleanup all resources tagged with zrok (this handles most cleanup)
|
||||
if err := ziti.CleanupByTag("zrok", "*"); err != nil {
|
||||
logrus.Errorf("error cleaning up zrok-tagged resources: %v", err)
|
||||
dl.Errorf("error cleaning up zrok-tagged resources: %v", err)
|
||||
}
|
||||
|
||||
// cleanup the specific config type that isn't tagged with zrok
|
||||
configTypeFilter := fmt.Sprintf("name=\"%v\"", sdk.ZrokProxyConfig)
|
||||
if err := ziti.ConfigTypes.DeleteWithFilter(configTypeFilter); err != nil {
|
||||
logrus.Errorf("error unbootstrapping config type: %v", err)
|
||||
dl.Errorf("error unbootstrapping config type: %v", err)
|
||||
}
|
||||
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user