From 3e6d0a50e8ab0d6fa8280e43b3c6078938257739 Mon Sep 17 00:00:00 2001
From: Erwan Miran <mirwan@users.noreply.github.com>
Date: Thu, 15 Nov 2018 19:37:57 +0100
Subject: [PATCH] Addition of the missing patch file
 hostnameOverride-patch.json from PR#3708 (#3714)

---
 .../files/hostnameOverride-patch.json         | 22 +++++++++++++++++++
 1 file changed, 22 insertions(+)
 create mode 100644 roles/win_nodes/kubernetes_patch/files/hostnameOverride-patch.json

diff --git a/roles/win_nodes/kubernetes_patch/files/hostnameOverride-patch.json b/roles/win_nodes/kubernetes_patch/files/hostnameOverride-patch.json
new file mode 100644
index 000000000..0e99a5af9
--- /dev/null
+++ b/roles/win_nodes/kubernetes_patch/files/hostnameOverride-patch.json
@@ -0,0 +1,22 @@
+[
+    {
+        "op": "add",
+        "path": "/spec/template/spec/containers/0/env",
+        "value": [
+            {
+                "name": "NODE_NAME",
+                "valueFrom": {
+                    "fieldRef": {
+                        "apiVersion": "v1",
+                        "fieldPath": "spec.nodeName"
+                    }
+                }
+            }
+        ]
+    },
+    {
+        "op": "add",
+        "path": "/spec/template/spec/containers/0/command/-",
+        "value": "--hostname-override=${NODE_NAME}"
+    }
+]
-- 
GitLab