From ce48b260da9017621f3464f6bf2f7a0a646c1f3e Mon Sep 17 00:00:00 2001 From: ialidzhikov Date: Fri, 9 Feb 2024 16:37:22 +0200 Subject: [PATCH] Address TODO --- pkg/webhook/cache/ensurer.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkg/webhook/cache/ensurer.go b/pkg/webhook/cache/ensurer.go index bd04e9d6..2112b20b 100644 --- a/pkg/webhook/cache/ensurer.go +++ b/pkg/webhook/cache/ensurer.go @@ -135,8 +135,7 @@ Type=simple ExecStart=/opt/bin/configure-containerd-registries.sh ` + strings.Join(scriptArgs, " ")), } - // TODO(ialidzhikov): Use "extensionswebhook.EnsureUnitWithName" when vendoring gardener/gardener that contains https://github.com/gardener/gardener/pull/9121. - appendUniqueUnit(new, unit) + *new = extensionswebhook.EnsureUnitWithName(*new, unit) return nil }