Skip to content

Commit

Permalink
fix(ws): fix PodConfig desired value
Browse files Browse the repository at this point in the history
  • Loading branch information
mohamedch7 committed Dec 19, 2024
1 parent f242079 commit bdf4ada
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion workspaces/backend/api/workspaces_handler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ var _ = Describe("Workspaces Handler", func() {
},
ImageConfig: &models.ImageConfig{
Current: "WorkspaceKind",
Desired: "WorkspaceKind",
Desired: "", // Status is coming with empty value
RedirectChain: []*models.RedirectChain{},
},
PodConfig: &models.PodConfig{
Expand Down
2 changes: 1 addition & 1 deletion workspaces/backend/internal/models/workspaces.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ func NewWorkspaceModelFromWorkspace(ctx context.Context, cl client.Client, item
},
ImageConfig: &ImageConfig{
Current: item.Spec.PodTemplate.Options.ImageConfig,
Desired: item.Spec.PodTemplate.Options.ImageConfig,
Desired: item.Status.PodTemplateOptions.ImageConfig.Desired,
RedirectChain: imageConfigRedirectChain,
},
PodConfig: &PodConfig{
Expand Down

0 comments on commit bdf4ada

Please sign in to comment.