[bitnami/opensearch] fix: ✏️ Move SecurityContext to the proper section

Signed-off-by: Javier Salmeron Garcia <jsalmeron@vmware.com>
This commit is contained in:
Javier Salmeron Garcia
2023-12-13 11:39:04 +01:00
parent f6a203fa43
commit a4f7f61008

View File

@@ -61,12 +61,12 @@ func createJob(ctx context.Context, c kubernetes.Interface, name string, port st
RestartPolicy: "Never",
Containers: []v1.Container{
{
Name: "opensearch",
Image: image,
Command: []string{"curl", "-X", op, fmt.Sprintf("http://%s/%s", releaseName, index)},
Name: "opensearch",
Image: image,
Command: []string{"curl", "-X", op, fmt.Sprintf("http://%s/%s", releaseName, index)},
SecurityContext: securityContext,
},
},
SecurityContext: securityContext,
},
},
},