From ffcf810dc23b9014952769c0e11afc018592f0af Mon Sep 17 00:00:00 2001 From: Yakov Date: Wed, 7 Sep 2022 16:33:46 -0400 Subject: [PATCH] adds space before closing parenthesis When deploying to kubernetes locally, the pods are crashlooping. Looking at the logs the error was: Error: While parsing config: yaml It seems like the config file we create in initContainers is failing to be parsed by the cobra package. Adding the extra space seems to have fixed it --- DeployLocally/deploy/proglog/templates/statefulset.yaml | 2 +- DeployToCloud/deploy/proglog/templates/statefulset.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/DeployLocally/deploy/proglog/templates/statefulset.yaml b/DeployLocally/deploy/proglog/templates/statefulset.yaml index 96bd44b..24b63b6 100644 --- a/DeployLocally/deploy/proglog/templates/statefulset.yaml +++ b/DeployLocally/deploy/proglog/templates/statefulset.yaml @@ -35,7 +35,7 @@ spec: {{.Values.serfPort}}" $([ $ID != 0 ] && echo 'start-join-addrs: \ "proglog-0.proglog.{{.Release.Namespace}}.svc.cluster.local:\ - {{.Values.serfPort}}"') + {{.Values.serfPort}}"' ) bootstrap: $([ $ID = 0 ] && echo true || echo false ) EOD volumeMounts: diff --git a/DeployToCloud/deploy/proglog/templates/statefulset.yaml b/DeployToCloud/deploy/proglog/templates/statefulset.yaml index 284350c..53d2986 100644 --- a/DeployToCloud/deploy/proglog/templates/statefulset.yaml +++ b/DeployToCloud/deploy/proglog/templates/statefulset.yaml @@ -36,7 +36,7 @@ spec: rpc-port: {{.Values.rpcPort}} bind-addr: "$HOSTNAME.proglog.{{.Release.Namespace}}.svc.cluster.local:{{.Values.serfPort}}" bootstrap: $([ $ID = 0 ] && echo true || echo false ) - $([ $ID != 0 ] && echo 'start-join-addrs: "proglog-0.proglog.{{.Release.Namespace}}.svc.cluster.local:{{.Values.serfPort}}"') + $([ $ID != 0 ] && echo 'start-join-addrs: "proglog-0.proglog.{{.Release.Namespace}}.svc.cluster.local:{{.Values.serfPort}}"' ) EOD volumeMounts: - name: datadir