diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 5025549..345df48 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -4,6 +4,8 @@ All PRs that require modifications to the `README.md` or `values.schema.json` fi The `brand.sh` script should then be executed using the upstream properties, i.e. `./brand.sh infinispan.conf`, and all modified `*.tpl`, `*.md` and `*.json` files added to the commit. +All PRs that require modifications to the `values.yaml` or `test/tls_values.yaml.yq` must run `./build_examples.sh` to rebuild all the examples. + # Creating a Release 1. Update `Chart.yaml` - `.version` should be set to the version of the chart released diff --git a/README-tls.md b/README-tls.md index 460e787..6bc5dac 100644 --- a/README-tls.md +++ b/README-tls.md @@ -1,4 +1,5 @@ -## Deploy a TLS cluster with HELM +## Quickstart: deploy a TLS cluster with HELM -kubectl apply -f tls_secret.yaml
-helm install -f values-tls.yaml infinispan . +kubectl apply -f test/tls_secret.yaml
+kubectl apply -f test/transport_tls_secret.yaml
+helm install -f test/tls_values.yaml infinispan . diff --git a/build_examples.sh b/build_examples.sh new file mode 100755 index 0000000..bf327fe --- /dev/null +++ b/build_examples.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +yq --version | grep "yq (https://github.com/mikefarah/yq/) version v4.35.1" + +if [ $? -eq 0 ] +then + yq ea 'select(fileIndex == 0) * select(fileIndex == 1)' values.yaml test/tls_values.yaml.yq > test/tls_values.yaml +else + echo "ERROR: yq behaviour is strongly depended from version" + echo " yq --version must match 'yq (https://github.com/mikefarah/yq/) version v4.35.1'" + fi \ No newline at end of file