Skip to content

Commit

Permalink
Merge pull request #39 from Cray-HPE/CASMPET-6876-release-1.5
Browse files Browse the repository at this point in the history
Casmpet 6876 release 1.5
  • Loading branch information
mtupitsyn authored Dec 20, 2023
2 parents f36886c + d7403d3 commit a5d926c
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/cray-etcd-base/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#
apiVersion: v2
name: cray-etcd-base
version: 1.0.11
version: 1.0.12
description: This chart should never be installed directly, instead it is intended to be a sub-chart.
home: https://github.com/Cray-HPE/cray-etcd
dependencies:
Expand Down
20 changes: 19 additions & 1 deletion charts/cray-etcd-base/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,25 @@ etcd:
command:
- "sh"
- "-c"
- "cp /csm/etcd.conf.yml /opt/bitnami/etcd/conf/etcd.yaml; sed -i s/POD_NAME/${MY_POD_NAME}/ /opt/bitnami/etcd/conf/etcd.yaml; /opt/bitnami/scripts/etcd/entrypoint.sh /opt/bitnami/scripts/etcd/run.sh"
- |
cp /csm/etcd.conf.yml /opt/bitnami/etcd/conf/etcd.yaml
sed -i s/POD_NAME/${MY_POD_NAME}/ /opt/bitnami/etcd/conf/etcd.yaml
for opt in $(etcd --help 2>&1 | grep '^ *--' | sed -e 's/^ *--//' -e 's/ .*$//')
do
env_name=$(echo "${opt}" | sed -e 's/^/ETCD_/' -e 's/-/_/g' | tr '[:lower:]' '[:upper:]')
env_val="$(eval echo "\${${env_name}}")"
if [ -n "${env_val}" ]
then
if ! grep -q "${opt}:" /opt/bitnami/etcd/conf/etcd.yaml
then
if [ "${opt}" = auto-compaction-retention ]; then
env_val="\"${env_val}\""
fi
echo "${opt}: ${env_val}" >> /opt/bitnami/etcd/conf/etcd.yaml
fi
fi
done
/opt/bitnami/scripts/etcd/entrypoint.sh /opt/bitnami/scripts/etcd/run.sh
enabled: true
clusterDomain: cluster.local
Expand Down

0 comments on commit a5d926c

Please sign in to comment.