getting worker image from registry

This commit is contained in:
dhaval055
2023-10-10 11:34:01 +00:00
parent 7a71b1e31d
commit a3967b7631
3 changed files with 9 additions and 1 deletions
@@ -55,6 +55,7 @@ data:
IS_KUBERNETES: "true"
REGISTRY_URL: "172.17.14.71:5000"
#REGISTRY_AUTH: ""
SHUFFLE_KUBERNETES_WORKER: "dhavald055/shuffle-k8s:shuffle-worker-kubernetes"
kind: ConfigMap
metadata:
creationTimestamp: null
@@ -52,6 +52,11 @@ spec:
configMapKeyRef:
key: REGISTRY_URL
name: env
- name: SHUFFLE_KUBERNETES_WORKER
valueFrom:
configMapKeyRef:
key: SHUFFLE_KUBERNETES_WORKER
name: env
image: dhavald055/shuffle-k8s:shuffle-orborus-kubernetes
#imagePullPolicy: Never
+3 -1
View File
@@ -589,7 +589,9 @@ func deployWorker(image string, identifier string, env []string, executionReques
env = append(env, fmt.Sprintf("IS_KUBERNETES=%s", os.Getenv("IS_KUBERNETES")))
}
image = "shuffle-worker:v1" //hard coded image name to test locally
image = os.Getenv("SHUFFLE_KUBERNETES_WORKER")
log.Printf("[DEBUG] using worker image:", image)
// image = "shuffle-worker:v1" //hard coded image name to test locally
envMap := make(map[string]string)
for _, envStr := range env {