Skip to content

Commit

Permalink
chore(ci): fix TestGetInstallation migrate data dirs (#1786)
Browse files Browse the repository at this point in the history
  • Loading branch information
emosbaugh authored Jan 31, 2025
1 parent 6bdb2d5 commit 2f7229a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/kubeutils/kubeutils.go
Original file line number Diff line number Diff line change
Expand Up @@ -298,8 +298,9 @@ func ListInstallations(ctx context.Context, cli client.Client) ([]ecv1beta1.Inst
return nil, fmt.Errorf("override installation data dirs: %w", err)
}
if didUpdate {
runtimeConfig := install.Spec.RuntimeConfig
err := UpdateInstallation(ctx, cli, &install, func(in *ecv1beta1.Installation) {
in.Spec.RuntimeConfig = install.Spec.RuntimeConfig
in.Spec.RuntimeConfig = runtimeConfig
})
if err != nil {
return nil, fmt.Errorf("update installation with legacy data dirs: %w", err)
Expand Down

0 comments on commit 2f7229a

Please sign in to comment.