From 38758ff30f5a117b4abc5e1bea47cb11311dadc9 Mon Sep 17 00:00:00 2001 From: Arian van Putten Date: Wed, 12 Aug 2020 14:56:43 +0200 Subject: [PATCH 1/2] Remove metadata.name from podTemplate makes it more in-line with a normal Kubernetes deployment example --- examples/deployment.dhall | 1 - 1 file changed, 1 deletion(-) diff --git a/examples/deployment.dhall b/examples/deployment.dhall index f47f7999..cb4e7f41 100644 --- a/examples/deployment.dhall +++ b/examples/deployment.dhall @@ -22,7 +22,6 @@ let deployment = } , template = kubernetes.PodTemplateSpec::{ , metadata = kubernetes.ObjectMeta::{ - , name = Some "nginx" , labels = Some (toMap { app = "nginx" }) } , spec = Some kubernetes.PodSpec::{ From edf4ee7823118fbea701eb3d171519fbeae0311e Mon Sep 17 00:00:00 2001 From: Arian van Putten Date: Wed, 12 Aug 2020 14:58:13 +0200 Subject: [PATCH 2/2] Update deploymentSimple.dhall --- examples/deploymentSimple.dhall | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/deploymentSimple.dhall b/examples/deploymentSimple.dhall index 528ead99..ba7f8d93 100644 --- a/examples/deploymentSimple.dhall +++ b/examples/deploymentSimple.dhall @@ -10,7 +10,9 @@ let deployment = } , replicas = Some 2 , template = kubernetes.PodTemplateSpec::{ - , metadata = kubernetes.ObjectMeta::{ name = Some "nginx" } + , metadata = kubernetes.ObjectMeta::{ + , labels = Some (toMap { name = "nginx" }) + } , spec = Some kubernetes.PodSpec::{ , containers = [ kubernetes.Container::{