Skip to content
This repository has been archived by the owner on May 16, 2023. It is now read-only.

Commit

Permalink
[elasticsearch] Move the yaml separator inside the condition (#1538)
Browse files Browse the repository at this point in the history
* Move the yaml separator inside the condition

The chomp "{{-" removes newline also - so we end up with a resource yaml which looks like:

```
---kind: Service
apiVersion: v1
...
```
This causes errors in ArgoCD: "error unmarshaling JSON: while decoding JSON: Object 'Kind' is missing in ..."

* Update poddisruptionbudget.yaml

* Update test-elasticsearch-health.yaml
  • Loading branch information
chetanv-oi authored Feb 2, 2022
1 parent bed0a71 commit fbd1ac5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion elasticsearch/templates/poddisruptionbudget.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
{{- if .Values.maxUnavailable }}
---
apiVersion: policy/v1beta1
kind: PodDisruptionBudget
metadata:
Expand Down
2 changes: 1 addition & 1 deletion elasticsearch/templates/service.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
{{- if .Values.service.enabled -}}
---
kind: Service
apiVersion: v1
metadata:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
{{- if .Values.tests.enabled -}}
---
apiVersion: v1
kind: Pod
metadata:
Expand Down

0 comments on commit fbd1ac5

Please sign in to comment.