[AAI] Make AAI helm3 compatible

Helm3 doesn't like empty components with only license headers so we
remove them as much as possible.

Issue-ID: OOM-2562
Signed-off-by: Sylvain Desbureaux <sylvain.desbureaux@orange.com>
Change-Id: I26b790965d2926792f801b87294d15a074de7be6
diff --git a/kubernetes/aai/components/aai-elasticsearch/resources/config/elasticsearch.yml b/kubernetes/aai/components/aai-elasticsearch/resources/config/elasticsearch.yml
index ae12344..1cbe3c4 100644
--- a/kubernetes/aai/components/aai-elasticsearch/resources/config/elasticsearch.yml
+++ b/kubernetes/aai/components/aai-elasticsearch/resources/config/elasticsearch.yml
@@ -1,3 +1,4 @@
+{{/*
 # Copyright © 2018 Amdocs, Bell Canada, AT&T
 #
 # Licensed under the Apache License, Version 2.0 (the "License");
@@ -43,7 +44,7 @@
 # multiple clusters on the same network, make sure you're using unique names.
 #
 # cluster.name: elasticsearch
-
+*/}}
 cluster.name: ES_AAI
 
 #################################### Node #####################################
@@ -52,7 +53,7 @@
 node.master: true
 node.data: true
 
-
+{{/*
 # Use the Cluster Health API [http://localhost:9200/_cluster/health], the
 # Node Info API [http://localhost:9200/_nodes] or GUI tools
 # such as <http://www.elasticsearch.org/overview/marvel/>,
@@ -62,10 +63,10 @@
 
 # By default, multiple nodes are allowed to start from the same installation location
 # to disable it, set the following:
-
+*/}}
 node.max_local_storage_nodes: 1
 
-
+{{/*
 #################################### Index ####################################
 # You can set a number of options (such as shard/replica options, mapping
 # or analyzer definitions, translog settings, ...) for indices globally,
@@ -115,7 +116,7 @@
 
 # Path to directory where to store index data allocated for this node.
 # Use swm auto link to redirect the data directory if necessary.
-
+*/}}
 path.data: /usr/share/elasticsearch/data
 
 # path.data: /path/to/data1,/path/to/data2
@@ -126,7 +127,7 @@
 
 #path.plugins: /opt/app/elasticsearch/plugins
 
-
+{{/*
 #################################### Plugin ###################################
 
 # If a plugin listed here is not installed for current node, the node will not start.
@@ -164,15 +165,16 @@
 # bootstrap.system_call_filter to false.
 # See: https://www.elastic.co/guide/en/elasticsearch/reference/current/system-call-filter-check.html
 #
-# seccomp is found in Linux kernels: 2.6.37–2.6.39, 3.0–3.19, 4.0–4.9,
+# seccomp is found in Linux kernels: 2.6.37�2.6.39, 3.0�3.19, 4.0�4.9,
 # 4.10-rc+HEAD
 #
 # The default setting is to disable the filters assuming an older kernel
 # version where seccomp is not available.
 # See: https://discuss.elastic.co/t/elasticsearch-warn-unable-to-install-syscall-filter/42819
-
+*/}}
 bootstrap.system_call_filter: false
 
+{{/*
 ############################## Network And HTTP ###############################
 # Elasticsearch, by default, binds itself to the 0.0.0.0 address, and listens
 # on port [9200-9300] for HTTP traffic and on port [9300-9400] for node-to-node
@@ -180,8 +182,10 @@
 # try the next port).
 
 # Set the bind address specifically (IPv4 or IPv6):
+*/}}
 network.bind_host: 0.0.0.0
 
+{{/*
 # Set the address other nodes will use to communicate with this node. If not
 # set, it is automatically derived. It must point to an actual IP address.
 
@@ -192,6 +196,7 @@
 
 
 # Set a custom port for the node to node communication (9300 by default):
+*/}}
 transport.tcp.port: {{ .Values.service.internalPort2 }}
 
 # Enable compression for all communication between nodes (disabled by default):
@@ -214,6 +219,7 @@
 http.cors.allow-origin: "/.*/"
 http.cors.allow-headers: X-Requested-With, Content-Type, Content-Length
 http.cors.allow-credentials: false
+{{/*
 ################################### Gateway ###################################
 
 # The gateway allows for persisting the cluster state between full cluster
@@ -235,6 +241,7 @@
 # Allow recovery process after N nodes in a cluster are up:
 #
 # gateway.recover_after_nodes: 1
+*/}}
 gateway.recover_after_nodes: 1
 
 # Set the timeout to initiate the recovery process, once the N nodes
@@ -250,6 +257,7 @@
 # gateway.expected_nodes: 2
 gateway.expected_nodes: 2
 
+{{/*
 ############################# Recovery Throttling #############################
 
 # These settings allow to control the process of shards allocation between
@@ -268,8 +276,10 @@
 
 # Set to throttle throughput when recovering (eg. 100mb, by default 20mb):
 # indices.recovery.max_bytes_per_sec: 20mb
+*/}}
 indices.recovery.max_bytes_per_sec: 20mb
 
+{{/*
 # Set to limit the number of open concurrent streams when
 # recovering a shard from a peer:
 #
@@ -285,15 +295,19 @@
 # operational within the cluster. Its recommended to set it to a higher value
 # than 1 when running more than 2 nodes in the cluster.
 #
+*/}}
 discovery.zen.minimum_master_nodes: 1
 
+{{/*
 # Set the time to wait for ping responses from other nodes when discovering.
 # Set this option to a higher value on a slow or congested network
 # to minimize discovery failures:
 #
 # discovery.zen.ping_timeout: 3s
+*/}}
 discovery.zen.ping_timeout: 3s
 
+{{/*
 # For more information, see
 # <http://elasticsearch.org/guide/en/elasticsearch/reference/current/modules-discovery-zen.html>
 
@@ -310,8 +324,11 @@
 #    to perform discovery when new nodes (master or data) are started:
 #
 # discovery.zen.ping.unicast.hosts: ["host1", "host2:port"]
+
+*/}}
 discovery.zen.ping.unicast.hosts: ["0.0.0.0"]
 
+{{/*
 # EC2 discovery allows to use AWS EC2 API in order to perform discovery.
 #
 # You have to install the cloud-aws plugin for enabling the EC2 discovery.
@@ -366,6 +383,7 @@
 
 
 # x-pack security conflicts with searchguard
+*/}}
 xpack.security.enabled: false
 xpack.ml.enabled: false
 xpack.monitoring.enabled: false