remove init container from create

This commit is contained in:
nicktrn
2024-03-21 11:21:37 +00:00
parent 5017a8a808
commit 001bd97b63
-24
View File
@@ -159,30 +159,6 @@ class KubernetesTaskOperations implements TaskOperations {
name: "registry-trigger",
},
],
initContainers: [
{
name: "populate-taskinfo",
image: "busybox",
command: ["/bin/sh", "-c"],
args: ["printenv COORDINATOR_HOST | tee /etc/taskinfo/coordinator-host"],
env: [
{
name: "COORDINATOR_HOST",
valueFrom: {
fieldRef: {
fieldPath: "status.hostIP",
},
},
},
],
volumeMounts: [
{
name: "taskinfo",
mountPath: "/etc/taskinfo",
},
],
},
],
containers: [
{
name: this.#getRunContainerName(opts.attemptId),