From bda9581f8565fe74890093b44e0aafe82a6004ee Mon Sep 17 00:00:00 2001 From: Derek F Date: Sat, 21 Sep 2024 10:00:43 -0700 Subject: [PATCH] fix(chart-readme): Use correct indentation in lifecyce examples https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/ https://kubernetes.io/docs/tasks/configure-pod-container/attach-handler-lifecycle-event/#define-poststart-and-prestop-handlers --- charts/nginx-gateway-fabric/README.md | 30 ++++++++++---------- charts/nginx-gateway-fabric/README.md.gotmpl | 30 ++++++++++---------- 2 files changed, 30 insertions(+), 30 deletions(-) diff --git a/charts/nginx-gateway-fabric/README.md b/charts/nginx-gateway-fabric/README.md index 9ca6cb9073..11497d608a 100644 --- a/charts/nginx-gateway-fabric/README.md +++ b/charts/nginx-gateway-fabric/README.md @@ -191,23 +191,23 @@ being performed on NGF), you may need to configure delayed termination on the NG ```yaml nginxGateway: - <...> - lifecycle: - preStop: - exec: - command: - - /usr/bin/gateway - - sleep - - --duration=40s # This flag is optional, the default is 30s + <...> + lifecycle: + preStop: + exec: + command: + - /usr/bin/gateway + - sleep + - --duration=40s # This flag is optional, the default is 30s nginx: - <...> - lifecycle: - preStop: - exec: - command: - - /bin/sleep - - "40" + <...> + lifecycle: + preStop: + exec: + command: + - /bin/sleep + - "40" ``` 2. Ensure the `terminationGracePeriodSeconds` matches or exceeds the `sleep` value from the `preStopHook` (the default diff --git a/charts/nginx-gateway-fabric/README.md.gotmpl b/charts/nginx-gateway-fabric/README.md.gotmpl index 438fa67db6..04aac3eaf7 100644 --- a/charts/nginx-gateway-fabric/README.md.gotmpl +++ b/charts/nginx-gateway-fabric/README.md.gotmpl @@ -189,23 +189,23 @@ being performed on NGF), you may need to configure delayed termination on the NG ```yaml nginxGateway: - <...> - lifecycle: - preStop: - exec: - command: - - /usr/bin/gateway - - sleep - - --duration=40s # This flag is optional, the default is 30s + <...> + lifecycle: + preStop: + exec: + command: + - /usr/bin/gateway + - sleep + - --duration=40s # This flag is optional, the default is 30s nginx: - <...> - lifecycle: - preStop: - exec: - command: - - /bin/sleep - - "40" + <...> + lifecycle: + preStop: + exec: + command: + - /bin/sleep + - "40" ``` 2. Ensure the `terminationGracePeriodSeconds` matches or exceeds the `sleep` value from the `preStopHook` (the default