Skip to content

Commit cead1c3

Browse files
authored
pins register server image for use in operator (#2565)
* pins register server image for use in operator Signed-off-by: ChrisJBurns <[email protected]> * bumps helm chart Signed-off-by: ChrisJBurns <[email protected]> --------- Signed-off-by: ChrisJBurns <[email protected]>
1 parent 4571696 commit cead1c3

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

cmd/thv-operator/pkg/registryapi/deployment.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ func getRegistryAPIImageWithEnvGetter(envGetter func(string) string) string {
249249
if img := envGetter("TOOLHIVE_REGISTRY_API_IMAGE"); img != "" {
250250
return img
251251
}
252-
return "ghcr.io/stacklok/thv-registry-api:latest"
252+
return "ghcr.io/stacklok/thv-registry-api:v0.1.0"
253253
}
254254

255255
// findContainerByName finds a container by name in a slice of containers

cmd/thv-operator/pkg/registryapi/deployment_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,14 +208,14 @@ func TestGetRegistryAPIImage(t *testing.T) {
208208
{
209209
name: "default image when env not set",
210210
setEnv: false,
211-
expected: "ghcr.io/stacklok/thv-registry-api:latest",
211+
expected: "ghcr.io/stacklok/thv-registry-api:v0.1.0",
212212
description: "Should return default image when environment variable is not set",
213213
},
214214
{
215215
name: "default image when env empty",
216216
envValue: "",
217217
setEnv: true,
218-
expected: "ghcr.io/stacklok/thv-registry-api:latest",
218+
expected: "ghcr.io/stacklok/thv-registry-api:v0.1.0",
219219
description: "Should return default image when environment variable is empty",
220220
},
221221
{

deploy/charts/operator/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ apiVersion: v2
22
name: toolhive-operator
33
description: A Helm chart for deploying the ToolHive Operator into Kubernetes.
44
type: application
5-
version: 0.5.0
5+
version: 0.5.1
66
appVersion: "v0.6.2"

deploy/charts/operator/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
# ToolHive Operator Helm Chart
33

4-
![Version: 0.5.0](https://img.shields.io/badge/Version-0.5.0-informational?style=flat-square)
4+
![Version: 0.5.1](https://img.shields.io/badge/Version-0.5.1-informational?style=flat-square)
55
![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)
66

77
A Helm chart for deploying the ToolHive Operator into Kubernetes.
@@ -95,8 +95,8 @@ The command removes all the Kubernetes components associated with the chart and
9595
| operator.toolhiveRunnerImage | string | `"ghcr.io/stacklok/toolhive/proxyrunner:v0.6.2"` | Image to use for Toolhive runners |
9696
| operator.volumeMounts | list | `[]` | Additional volume mounts on the operator container |
9797
| operator.volumes | list | `[]` | Additional volumes to mount on the operator pod |
98-
| registryAPI | object | `{"image":"ghcr.io/stacklok/thv-registry-api:0.1.0","serviceAccount":{"annotations":{},"automountServiceAccountToken":true,"labels":{},"name":"toolhive-registry-api"}}` | All values for the registry API deployment and associated resources |
99-
| registryAPI.image | string | `"ghcr.io/stacklok/thv-registry-api:0.1.0"` | Container image for the registry API |
98+
| registryAPI | object | `{"image":"ghcr.io/stacklok/thv-registry-api:v0.1.0","serviceAccount":{"annotations":{},"automountServiceAccountToken":true,"labels":{},"name":"toolhive-registry-api"}}` | All values for the registry API deployment and associated resources |
99+
| registryAPI.image | string | `"ghcr.io/stacklok/thv-registry-api:v0.1.0"` | Container image for the registry API |
100100
| registryAPI.serviceAccount | object | `{"annotations":{},"automountServiceAccountToken":true,"labels":{},"name":"toolhive-registry-api"}` | Service account configuration for the registry API |
101101
| registryAPI.serviceAccount.annotations | object | `{}` | Annotations to add to the registry API service account |
102102
| registryAPI.serviceAccount.automountServiceAccountToken | bool | `true` | Automatically mount a ServiceAccount's API credentials |

deploy/charts/operator/values-openshift.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ operator:
191191
# -- All values for the registry API deployment and associated resources
192192
registryAPI:
193193
# -- Container image for the registry API
194-
image: "ghcr.io/stacklok/thv-registry-api:0.1.0"
194+
image: "ghcr.io/stacklok/thv-registry-api:v0.1.0"
195195
# -- Service account configuration for the registry API
196196
serviceAccount:
197197
# -- Automatically mount a ServiceAccount's API credentials

deploy/charts/operator/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ operator:
191191
# -- All values for the registry API deployment and associated resources
192192
registryAPI:
193193
# -- Container image for the registry API
194-
image: "ghcr.io/stacklok/thv-registry-api:0.1.0"
194+
image: "ghcr.io/stacklok/thv-registry-api:v0.1.0"
195195
# -- Service account configuration for the registry API
196196
serviceAccount:
197197
# -- Automatically mount a ServiceAccount's API credentials

0 commit comments

Comments
 (0)