Skip to content

Commit

Permalink
Adapt to the breaking changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ialidzhikov committed Feb 9, 2024
1 parent 9ff3151 commit 03c7ab5
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pkg/webhook/cache/ensurer.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ func (e *ensurer) EnsureAdditionalUnits(ctx context.Context, gctx gcontext.Garde

unit := extensionsv1alpha1.Unit{
Name: "configure-containerd-registries.service",
Command: extensionsv1alpha1.UnitCommandPtr(extensionsv1alpha1.CommandStart),
Command: ptr.To(extensionsv1alpha1.CommandStart),
Enable: ptr.To(true),
Content: ptr.To(`[Unit]
Description=Configures containerd registries
Expand Down
2 changes: 1 addition & 1 deletion pkg/webhook/cache/ensurer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ func configureContainerdRegistriesFile(script string) extensionsv1alpha1.File {
func configureContainerdRegistriesUnit(args string) extensionsv1alpha1.Unit {
return extensionsv1alpha1.Unit{
Name: "configure-containerd-registries.service",
Command: extensionsv1alpha1.UnitCommandPtr(extensionsv1alpha1.CommandStart),
Command: ptr.To(extensionsv1alpha1.CommandStart),
Enable: ptr.To(true),
Content: ptr.To(`[Unit]
Description=Configures containerd registries
Expand Down
2 changes: 1 addition & 1 deletion pkg/webhook/cache/webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ func New(mgr manager.Manager) (*extensionswebhook.Webhook, error) {
Target: extensionswebhook.TargetSeed,
Path: "/webhooks/registry-cache",
Webhook: &admission.Webhook{Handler: handler},
Selector: &metav1.LabelSelector{
NamespaceSelector: &metav1.LabelSelector{
MatchLabels: map[string]string{v1beta1constants.LabelExtensionPrefix + "registry-cache": "true"},
},
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/webhook/mirror/webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ func New(mgr manager.Manager) (*extensionswebhook.Webhook, error) {
Target: extensionswebhook.TargetSeed,
Path: "/webhooks/registry-mirror",
Webhook: &admission.Webhook{Handler: handler},
Selector: &metav1.LabelSelector{
NamespaceSelector: &metav1.LabelSelector{
MatchLabels: map[string]string{v1beta1constants.LabelExtensionPrefix + "registry-mirror": "true"},
},
}
Expand Down

0 comments on commit 03c7ab5

Please sign in to comment.