Skip to content

Commit 462aa25

Browse files
authored
Add a task target to deploy operator from OCP internal registry (#1324)
1 parent accf167 commit 462aa25

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

cmd/thv-operator/Taskfile.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,3 +234,14 @@ tasks:
234234
- oc describe is thv-operator -n {{.OCP_PROJECT}} || echo "thv-operator image stream not found"
235235
- echo "Describing thv-proxyrunner image stream..."
236236
- oc describe is thv-proxyrunner -n {{.OCP_PROJECT}} || echo "thv-proxyrunner image stream not found"
237+
238+
ocp-deploy-operator:
239+
desc: Deploy ToolHive Operator to OpenShift using locally built images
240+
cmds:
241+
- |
242+
helm upgrade --install toolhive-operator deploy/charts/operator \
243+
--set operator.image=image-registry.openshift-image-registry.svc:5000/{{.OCP_PROJECT}}/thv-operator:latest \
244+
--set operator.toolhiveRunnerImage=image-registry.openshift-image-registry.svc:5000/{{.OCP_PROJECT}}/thv-proxyrunner:latest \
245+
--namespace {{.OCP_PROJECT}} \
246+
--create-namespace \
247+
{{ .CLI_ARGS }}

0 commit comments

Comments
 (0)