Skip to content

Commit c62693a

Browse files
Added tag controller for tags reconciliation
1 parent 8b4ddd0 commit c62693a

File tree

4 files changed

+834
-0
lines changed

4 files changed

+834
-0
lines changed

pkg/driver/aws-ebs/aws_ebs.go

+4
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,10 @@ func GetAWSEBSOperatorControllerConfig(ctx context.Context, flavour generator.Cl
163163
cfg.ExtraControlPlaneControllers = append(cfg.ExtraControlPlaneControllers, ctrl)
164164
}
165165

166+
volumeTagController := NewEBSVolumeTagsController(ctx, cfg.GetControllerName("EBSVolumeTagsController"), c, c.EventRecorder)
167+
cfg.ExtraControlPlaneControllers = append(cfg.ExtraControlPlaneControllers, volumeTagController)
168+
cfg.DeploymentInformers = append(cfg.DeploymentInformers, c.KubeInformers.InformersFor("").Core().V1().PersistentVolumes().Informer())
169+
166170
return cfg, nil
167171
}
168172

0 commit comments

Comments
 (0)