From e82926a9f6661488cc9e8bcda0b042aaf01d57b5 Mon Sep 17 00:00:00 2001 From: irti Date: Wed, 10 Jul 2019 10:35:20 +0500 Subject: [PATCH 1/3] [update-readme] update README.md file by adding the guideline on how ignore some resource configMaps and secrets --- README.md | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 2c8e600e..2eb8aa00 100644 --- a/README.md +++ b/README.md @@ -114,7 +114,16 @@ You can apply vanilla manifests by running the following command kubectl apply -f https://raw.githubusercontent.com/stakater/Reloader/master/deployments/kubernetes/reloader.yaml ``` -By default Reloader gets deployed in `default` namespace and watches changes `secrets` and `configmaps` in all namespaces. +By default Reloader gets deployed in `default` namespace and watches changes `secrets` and `configmaps` in all namespaces. + +Reloader can be configured to ignore the resources `secrets` and `configmaps` by passing the following args (`spec.template.spec.containers.args`) to its container : + +| Args | Description | +|---|---| +| --resources-to-ignore=configMaps | To ignore configMaps | +| --resources-to-ignore=secrets | To ignore secrets | + + ### Vanilla kustomize @@ -158,6 +167,14 @@ helm install stakater/reloader helm install stakater/reloader --set reloader.watchGlobally=false --namespace test ``` +Reloader can be configured to ignore the resources `secrets` and `configmaps` by using the following parameters of `values.yaml` file: + +| Parameter | Description | +|---|---| +| ignoreSecrets | To ignore secrets | +| ignoreConfigMaps | To ignore configMaps | + + ## Help ### Documentation From 7ae3a4259e45111365bc96b2ab227d01cac2039c Mon Sep 17 00:00:00 2001 From: irti Date: Wed, 10 Jul 2019 11:14:30 +0500 Subject: [PATCH 2/3] [update-readme] update README.md file by adding not about ignore parameters --- README.md | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 2eb8aa00..56a81e28 100644 --- a/README.md +++ b/README.md @@ -123,6 +123,7 @@ Reloader can be configured to ignore the resources `secrets` and `configmaps` by | --resources-to-ignore=configMaps | To ignore configMaps | | --resources-to-ignore=secrets | To ignore secrets | +`Note`: At one time only one of these resource can be ignored, trying to do it will cause error in Reloader. Workaround for ignoring both resources is by scaling down the reloader pods to `0`. ### Vanilla kustomize @@ -169,10 +170,13 @@ helm install stakater/reloader --set reloader.watchGlobally=false --namespace te Reloader can be configured to ignore the resources `secrets` and `configmaps` by using the following parameters of `values.yaml` file: -| Parameter | Description | +| Parameter | Description | Type | |---|---| -| ignoreSecrets | To ignore secrets | -| ignoreConfigMaps | To ignore configMaps | +| ignoreSecrets | To ignore secrets. Valid value are either `true` or `false` | boolean | +| ignoreConfigMaps | To ignore configMaps. Valid value are either `true` or `false` | boolean | + +`Note`: At one time only one of these resource can be ignored, trying to do it will cause error in helm template compilation. + ## Help From cd4a4fb3244266f2a64f352592f3827110a9be58 Mon Sep 17 00:00:00 2001 From: irti Date: Wed, 10 Jul 2019 11:16:09 +0500 Subject: [PATCH 3/3] [update-readme] update README.md file by fixing issue in table template --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 56a81e28..24e5c214 100644 --- a/README.md +++ b/README.md @@ -170,8 +170,8 @@ helm install stakater/reloader --set reloader.watchGlobally=false --namespace te Reloader can be configured to ignore the resources `secrets` and `configmaps` by using the following parameters of `values.yaml` file: -| Parameter | Description | Type | -|---|---| +| Parameter | Description | Type | +|---|---|---| | ignoreSecrets | To ignore secrets. Valid value are either `true` or `false` | boolean | | ignoreConfigMaps | To ignore configMaps. Valid value are either `true` or `false` | boolean |