diff --git a/functions/kubernetes/shuffle-opensearch.yaml b/functions/kubernetes/shuffle-opensearch.yaml index 75ee74da..09a7c03c 100644 --- a/functions/kubernetes/shuffle-opensearch.yaml +++ b/functions/kubernetes/shuffle-opensearch.yaml @@ -64,6 +64,13 @@ spec: # fsGroup: 1000 # GID # nodeSelector: # node: worker1 + initContainers: + - name: volume-permissions + image: busybox + command: ["sh", "-c", "chown -R 1000:1000 /usr/share/opensearch/data"] + volumeMounts: + - name: opensearch-claim0 + mountPath: /usr/share/opensearch/data containers: - env: - name: OPENSEARCH_JAVA_OPTS diff --git a/functions/onprem/worker/worker.go b/functions/onprem/worker/worker.go index 9221a2fd..57851e8a 100755 --- a/functions/onprem/worker/worker.go +++ b/functions/onprem/worker/worker.go @@ -261,7 +261,7 @@ func deployApp(cli *dockerclient.Client, image string, identifier string, env [] appName := strings.Join(appDetailsSplit[:len(appDetailsSplit)-1], "_") appVersion := appDetailsSplit[len(appDetailsSplit)-1] - log.Printf("APP VERSION IS: %s", appVersion) + // log.Printf("APP VERSION IS: %s", appVersion) for _, app := range workflowExecution.Workflow.Actions { // log.Printf("[DEBUG] App: %s, Version: %s", appName, appVersion) @@ -294,9 +294,10 @@ func deployApp(cli *dockerclient.Client, image string, identifier string, env [] RestartPolicy: "Never", Containers: []corev1.Container{ { - Name: value, - Image: image, - Env: buildEnvVars(envMap), + Name: value, + Image: image, + Env: buildEnvVars(envMap), + // ImagePullPolicy: corev1.PullAlways, }, }, },