Skip to content

Commit

Permalink
Adapt to the breaking change in the OperatingSystemConfig spec
Browse files Browse the repository at this point in the history
  • Loading branch information
ialidzhikov committed Nov 17, 2023
1 parent d3d92d2 commit 3e3286c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/webhook/operatingsystemconfig/ensurer.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ func (e *ensurer) EnsureAdditionalUnits(ctx context.Context, gctx gcontext.Garde

unit := extensionsv1alpha1.Unit{
Name: "configure-containerd-registries.service",
Command: pointer.String("start"),
Command: extensionsv1alpha1.UnitCommandPtr(extensionsv1alpha1.CommandStart),
Enable: pointer.Bool(true),
Content: pointer.String(`[Unit]
Description=Configures containerd registries
Expand Down
2 changes: 1 addition & 1 deletion pkg/webhook/operatingsystemconfig/ensurer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ func configureContainerdRegistriesFile(script string) extensionsv1alpha1.File {
func configureContainerdRegistriesUnit(args string) extensionsv1alpha1.Unit {
return extensionsv1alpha1.Unit{
Name: "configure-containerd-registries.service",
Command: pointer.String("start"),
Command: extensionsv1alpha1.UnitCommandPtr(extensionsv1alpha1.CommandStart),
Enable: pointer.Bool(true),
Content: pointer.String(`[Unit]
Description=Configures containerd registries
Expand Down

0 comments on commit 3e3286c

Please sign in to comment.