Skip to content

Commit

Permalink
use system default registry when running cattle-cleanup job on import…
Browse files Browse the repository at this point in the history
…ed clusters
  • Loading branch information
HarrisonWAffel committed Aug 6, 2024
1 parent ca706f1 commit 06ecdd0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/controllers/management/usercontrollers/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (
"github.com/rancher/rancher/pkg/controllers/managementagent/nslabels"
"github.com/rancher/rancher/pkg/controllers/managementuserlegacy/helm"
v3 "github.com/rancher/rancher/pkg/generated/norman/management.cattle.io/v3"
"github.com/rancher/rancher/pkg/image"
"github.com/rancher/rancher/pkg/settings"
"github.com/rancher/rancher/pkg/types/config"
"github.com/sirupsen/logrus"
Expand Down Expand Up @@ -302,7 +303,7 @@ func (c *ClusterLifecycleCleanup) createCleanupJob(userContext *config.UserConte
Containers: []coreV1.Container{
coreV1.Container{
Name: "cleanup-agent",
Image: settings.AgentImage.Get(),
Image: image.Resolve(settings.AgentImage.Get()),
Env: []coreV1.EnvVar{
coreV1.EnvVar{
Name: "CLUSTER_CLEANUP",
Expand Down

0 comments on commit 06ecdd0

Please sign in to comment.