From e8854000cbad9cf50756f48c9884337b25589b9b Mon Sep 17 00:00:00 2001 From: faizanahmad055 Date: Mon, 8 Oct 2018 12:22:04 +0500 Subject: [PATCH 1/2] Update readme about how to define multiple configmaps and secrets Signed-off-by: faizanahmad055 --- README.md | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 7f67943ae..02bda79fb 100644 --- a/README.md +++ b/README.md @@ -21,6 +21,8 @@ Reloader can watch changes in `ConfigMap` and `Secret` and do rolling upgrades o ## How to use Reloader +### Configmap + For a `Deployment` called `foo` have a `ConfigMap` called `foo-configmap`. Then add this annotation to your `Deployment` ```yaml @@ -29,7 +31,15 @@ metadata: configmap.reloader.stakater.com/reload: "foo-configmap" ``` -OR +Use comma separated list to define multiple configmaps. + +```yaml +metadata: + annotations: + configmap.reloader.stakater.com/reload: "foo-configmap, bar-configmap, baz-configmap" +``` + +### Secret For a `Deployment` called `foo` have a `Secret` called `foo-secret`. Then add this annotation to your `Deployment` @@ -39,6 +49,14 @@ metadata: secret.reloader.stakater.com/reload: "foo-secret" ``` +Use comma separated list to define multiple secrets. + +```yaml +metadata: + annotations: + secret.reloader.stakater.com/reload: "foo-secret, bar-secret, baz-secret" +``` + ## Deploying to Kubernetes You can deploy Reloader by following methods: From 1cfa75617842d70dcf85cf1a8060a139b86ef6b5 Mon Sep 17 00:00:00 2001 From: faizanahmad055 Date: Mon, 8 Oct 2018 14:08:13 +0500 Subject: [PATCH 2/2] Remove spaces from comma seperated list in readme Signed-off-by: faizanahmad055 --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 02bda79fb..04b28fc1e 100644 --- a/README.md +++ b/README.md @@ -36,7 +36,7 @@ Use comma separated list to define multiple configmaps. ```yaml metadata: annotations: - configmap.reloader.stakater.com/reload: "foo-configmap, bar-configmap, baz-configmap" + configmap.reloader.stakater.com/reload: "foo-configmap,bar-configmap,baz-configmap" ``` ### Secret @@ -54,7 +54,7 @@ Use comma separated list to define multiple secrets. ```yaml metadata: annotations: - secret.reloader.stakater.com/reload: "foo-secret, bar-secret, baz-secret" + secret.reloader.stakater.com/reload: "foo-secret,bar-secret,baz-secret" ``` ## Deploying to Kubernetes