Skip to content

Commit

Permalink
Break out migration logic into a bunch of smaller files
Browse files Browse the repository at this point in the history
  • Loading branch information
nflynt committed Aug 14, 2023
1 parent c110ae9 commit a3e85de
Show file tree
Hide file tree
Showing 8 changed files with 1,150 additions and 1,103 deletions.
3 changes: 2 additions & 1 deletion cmd/agent/main.go
Expand Up @@ -25,6 +25,7 @@ import (
"github.com/hashicorp/go-multierror"
"github.com/mattn/go-colorable"
"github.com/rancher/rancher/pkg/agent/clean"
"github.com/rancher/rancher/pkg/agent/clean/ad_unmigration"
"github.com/rancher/rancher/pkg/agent/cluster"
"github.com/rancher/rancher/pkg/agent/node"
"github.com/rancher/rancher/pkg/agent/rancher"
Expand Down Expand Up @@ -83,7 +84,7 @@ func main() {
} else if os.Getenv("AD_GUID_CLEANUP") == "true" {
dryrun := os.Getenv("DRY_RUN") == "true"
deleteMissingUsers := os.Getenv("AD_DELETE_MISSING_GUID_USERS") == "true"
err = clean.UnmigrateAdGUIDUsers(nil, dryrun, deleteMissingUsers)
err = ad_unmigration.UnmigrateAdGUIDUsers(nil, dryrun, deleteMissingUsers)
} else {
err = run(ctx)
}
Expand Down

0 comments on commit a3e85de

Please sign in to comment.