Skip to content
This repository was archived by the owner on Aug 16, 2023. It is now read-only.

Commit f4603d0

Browse files
Append operators.coreos.com to tasks deploying GPU operator from catalog
Signed-off-by: Carlos Eduardo Arango Gutierrez <[email protected]>
1 parent 23d2ddd commit f4603d0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

roles/gpu_operator_deploy_from_operatorhub/tasks/deploy_from_catalog.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@
116116
# TODO: use 'oc get installplan -loperators.coreos.com/gpu-operator-certified.openshift-operators'
117117
# when we get rid of OCP 4.5 support
118118
command:
119-
oc get Subscription/gpu-operator-certified
119+
oc get subscriptions.operators.coreos.com/gpu-operator-certified
120120
-n openshift-operators
121121
-ojsonpath={@.status.installPlanRef.name}
122122
register: gpu_operator_installplan_name

roles/gpu_operator_undeploy_from_operatorhub/tasks/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
failed_when: false
1111

1212
- name: Delete the OperatorHub subscription for the GPU Operator
13-
command: oc --ignore-not-found=true delete Subscription/gpu-operator-certified -n openshift-operators
13+
command: oc --ignore-not-found=true delete subscriptions.operators.coreos.com/gpu-operator-certified -n openshift-operators
1414
failed_when: false
1515

1616
- name: Get the name of the GPU Operator ClusterServiceVersion

0 commit comments

Comments
 (0)