@@ -74,13 +74,13 @@ tasks:
7474 vars :
7575 KUBECONFIG : ' {{.KUBECONFIG}}'
7676 status :
77- - NS=$(KUBECONFIG={{.KUBECONFIG}} oc get ns openshift-dpu-operator)
77+ - NS=$(KUBECONFIG={{.KUBECONFIG}} kubectl get ns openshift-dpu-operator)
7878 if [[ -n "$NS" ]]; then false else true fi
7979 cmds :
8080 # this will block untill everything is cleaned up and bringing system back into a clean state as if the operator was never installed
81- - KUBECONFIG={{.KUBECONFIG}} oc delete -f examples/config.yaml || true
82- - bin/kustomize build config/default | KUBECONFIG={{.KUBECONFIG}} oc delete --ignore-not-found=true -f -
83- - KUBECONFIG={{.KUBECONFIG}} oc wait --for=delete ns openshift-dpu-operator --timeout=300s
81+ - KUBECONFIG={{.KUBECONFIG}} kubectl delete -f examples/config.yaml || true
82+ - bin/kustomize build config/default | KUBECONFIG={{.KUBECONFIG}} kubectl delete --ignore-not-found=true -f -
83+ - KUBECONFIG={{.KUBECONFIG}} kubectl wait --for=delete ns openshift-dpu-operator --timeout=300s
8484 - echo "Namespace 'openshift-dpu-operator' has been removed."
8585
8686 undeploy :
@@ -126,12 +126,12 @@ tasks:
126126 vars :
127127 KUBECONFIG_DPU : " {{.KUBECONFIG_DPU}}"
128128 KUBECONFIG_HOST : " {{.KUBECONFIG_HOST}}"
129- - bin/kustomize build bin | KUBECONFIG="{{.KUBECONFIG_DPU}}" oc apply -f -
130- - bin/kustomize build bin | KUBECONFIG="{{.KUBECONFIG_HOST}}" oc apply -f -
131- - KUBECONFIG="{{.KUBECONFIG_DPU}}" oc -n openshift-dpu-operator wait --for=condition=Available deployment/dpu-operator-controller-manager --timeout=300s
132- - KUBECONFIG="{{.KUBECONFIG_HOST}}" oc -n openshift-dpu-operator wait --for=condition=Available deployment/dpu-operator-controller-manager --timeout=300s
133- - KUBECONFIG="{{.KUBECONFIG_DPU}}" oc -n openshift-dpu-operator wait --for=condition=ready pod --all --timeout=300s
134- - KUBECONFIG="{{.KUBECONFIG_HOST}}" oc -n openshift-dpu-operator wait --for=condition=ready pod --all --timeout=300s
129+ - bin/kustomize build bin | KUBECONFIG="{{.KUBECONFIG_DPU}}" kubectl apply -f -
130+ - bin/kustomize build bin | KUBECONFIG="{{.KUBECONFIG_HOST}}" kubectl apply -f -
131+ - KUBECONFIG="{{.KUBECONFIG_DPU}}" kubectl -n openshift-dpu-operator wait --for=condition=Available deployment/dpu-operator-controller-manager --timeout=300s
132+ - KUBECONFIG="{{.KUBECONFIG_HOST}}" kubectl -n openshift-dpu-operator wait --for=condition=Available deployment/dpu-operator-controller-manager --timeout=300s
133+ - KUBECONFIG="{{.KUBECONFIG_DPU}}" kubectl -n openshift-dpu-operator wait --for=condition=ready pod --all --timeout=300s
134+ - KUBECONFIG="{{.KUBECONFIG_HOST}}" kubectl -n openshift-dpu-operator wait --for=condition=ready pod --all --timeout=300s
135135 - echo "DPU operator deployment complete - controller manager and webhook are ready"
136136
137137 deploy-1c :
@@ -141,9 +141,9 @@ tasks:
141141 - task : undeploy-1c
142142 vars :
143143 KUBECONFIG_HOST : " {{.KUBECONFIG_HOST}}"
144- - bin/kustomize build bin | KUBECONFIG="{{.KUBECONFIG_HOST}}" oc apply -f -
145- - KUBECONFIG="{{.KUBECONFIG_HOST}}" oc -n openshift-dpu-operator wait --for=condition=Available deployment/dpu-operator-controller-manager --timeout=300s
146- - KUBECONFIG="{{.KUBECONFIG_HOST}}" oc -n openshift-dpu-operator wait --for=condition=ready pod --all --timeout=300s
144+ - bin/kustomize build bin | KUBECONFIG="{{.KUBECONFIG_HOST}}" kubectl apply -f -
145+ - KUBECONFIG="{{.KUBECONFIG_HOST}}" kubectl -n openshift-dpu-operator wait --for=condition=Available deployment/dpu-operator-controller-manager --timeout=300s
146+ - KUBECONFIG="{{.KUBECONFIG_HOST}}" kubectl -n openshift-dpu-operator wait --for=condition=ready pod --all --timeout=300s
147147
148148 prepare-e2e-test :
149149 cmds :
0 commit comments