pass in coordinator host via volume

This commit is contained in:
nicktrn
2024-03-20 21:56:44 +00:00
parent 27ad6574c3
commit e0507a9598
+42 -31
View File
@@ -221,6 +221,27 @@ class KubernetesTaskOperations implements TaskOperations {
},
},
],
volumeMounts: [
{
name: "dapi",
mountPath: "/etc/dapi",
},
],
},
],
volumes: [
{
name: "dapi",
downwardAPI: {
items: [
{
path: "coordinator-host",
fieldRef: {
fieldPath: "status.hostIP",
},
},
],
},
},
],
},
@@ -269,37 +290,27 @@ class KubernetesTaskOperations implements TaskOperations {
// },
// },
// },
// TODO: check we definitely don't need to specify these again
// env: [
// {
// name: "DEBUG",
// value: "true",
// },
// {
// name: "POD_NAME",
// valueFrom: {
// fieldRef: {
// fieldPath: "metadata.name",
// },
// },
// },
// {
// name: "COORDINATOR_HOST",
// valueFrom: {
// fieldRef: {
// fieldPath: "status.hostIP",
// },
// },
// },
// {
// name: "NODE_NAME",
// valueFrom: {
// fieldRef: {
// fieldPath: "spec.nodeName",
// },
// },
// },
// ],
volumeMounts: [
{
name: "dapi",
mountPath: "/etc/dapi",
},
],
},
],
volumes: [
{
name: "dapi",
downwardAPI: {
items: [
{
path: "coordinator-host",
fieldRef: {
fieldPath: "status.hostIP",
},
},
],
},
},
],
},