Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cmd/thv-operator/pkg/registryapi/deployment.go
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ func getRegistryAPIImageWithEnvGetter(envGetter func(string) string) string {
if img := envGetter("TOOLHIVE_REGISTRY_API_IMAGE"); img != "" {
return img
}
return "ghcr.io/stacklok/thv-registry-api:v0.1.0"
return "ghcr.io/stacklok/thv-registry-api:latest"
}

// findContainerByName finds a container by name in a slice of containers
Expand Down
4 changes: 2 additions & 2 deletions cmd/thv-operator/pkg/registryapi/deployment_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,14 +145,14 @@ func TestGetRegistryAPIImage(t *testing.T) {
{
name: "default image when env not set",
setEnv: false,
expected: "ghcr.io/stacklok/thv-registry-api:v0.1.0",
expected: "ghcr.io/stacklok/thv-registry-api:latest",
description: "Should return default image when environment variable is not set",
},
{
name: "default image when env empty",
envValue: "",
setEnv: true,
expected: "ghcr.io/stacklok/thv-registry-api:v0.1.0",
expected: "ghcr.io/stacklok/thv-registry-api:latest",
description: "Should return default image when environment variable is empty",
},
{
Expand Down
Loading