Skip to content

Commit

Permalink
Forgot var renaming.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerrit91 committed May 7, 2024
1 parent cf227b1 commit 5d848ec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion controllers/update/reconcile.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ func (c *controller) autoUpdateOS(r *controllers.Ctx[*v2.FirewallDeployment]) er
}

refetched.Annotations[v2.RollSetAnnotation] = strconv.FormatBool(true)
if !isFullyQualifiedImageNotation {
if isFullyQualifiedImageNotation {
refetched.Spec.Template.Spec.Image = *image.ID
}

Expand Down
2 changes: 1 addition & 1 deletion controllers/update/reconcile_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (
"sigs.k8s.io/controller-runtime/pkg/client/fake"
)

func Test_controller_osImageHasChanged(t *testing.T) {
func Test_controller_autoUpdateOS(t *testing.T) {
ctx := context.Background()
scheme := runtime.NewScheme()
err := v2.AddToScheme(scheme)
Expand Down

0 comments on commit 5d848ec

Please sign in to comment.