everything -> dl (#1078)

This commit is contained in:
Michael Quigley
2025-09-25 13:25:46 -04:00
parent a8a13f1c83
commit d00e4a5290
199 changed files with 1433 additions and 1366 deletions
+3 -3
View File
@@ -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