Skip to content

Commit

Permalink
Restore works
Browse files Browse the repository at this point in the history
  • Loading branch information
akgalwas committed Dec 31, 2024
1 parent 8b260d4 commit b058e97
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions hack/runtime-migrator/internal/initialisation/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,5 +97,10 @@ func SetupGardenerShootClients(kubeconfigPath, gardenerNamespace string) (garden
Scheme: scheme,
})

err = v1beta1.AddToScheme(dynamicClient.Scheme())
if err != nil {
return nil, nil, err
}

return shootClient, dynamicClient, err
}
3 changes: 3 additions & 0 deletions hack/runtime-migrator/internal/restore/restorer.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,8 @@ func (r Restorer) Do(_ context.Context, runtimeID string, shootName string) (v1b
return v1beta1.Shoot{}, err
}

shoot.Kind = "Shoot"
shoot.APIVersion = "core.gardener.cloud/v1beta1"

return shoot, nil
}

0 comments on commit b058e97

Please sign in to comment.