if disp.Client.Insecure {
os.Setenv("ARVADOS_API_HOST_INSECURE", "1")
}
- ks := ""
- if length(disp.cluster.Containers.SLURM.KeepServices) > 0 {
- for _, svc := range disp.cluster.Containers.SLURM.KeepServices {
- for k, _ := range svc.InternalURLs {
- ks += k
- ks += " "
- }
- }
- }
- os.Setenv("ARVADOS_KEEP_SERVICES", ks)
os.Setenv("ARVADOS_EXTERNAL_CLIENT", "")
+ for k, v := range disp.cluster.Containers.SLURM.SbatchEnvironmentVariables {
+ os.Setenv(k, v)
+ }
} else {
disp.logger.Warnf("Client credentials missing from config, so falling back on environment variables (deprecated).")
}