diff --git a/README.md b/README.md index 528ed22f..3174b588 100644 --- a/README.md +++ b/README.md @@ -339,7 +339,7 @@ Flags: | `namespaces` | List of namespaces to operate on. Empty means all namespaces | `[]` | | `interval` | How often to check for config changes (seconds) | `45` | | `meta.key` | The metadata key (optional) | `""` | -| `meta.values` | Comma-separated key-values string (k1=v1,k2=v2,..) | Metadata to use for the key | +| `meta.values` | Metadata to use for the key | `{}` | `fluentdResources` | Resource definitions for the fluentd container | `{}`| | `reloaderResources` | Resource definitions for the reloader container | `{}` | | `tolerations` | Pod tolerations | `[]` | diff --git a/config-reloader/Makefile b/config-reloader/Makefile index ddc78282..7f40b03c 100644 --- a/config-reloader/Makefile +++ b/config-reloader/Makefile @@ -40,7 +40,7 @@ push-image: build-image create-test-ns: - envsubst '$$LOGGLY_TOKEN' < examples/manifests/kfo-test.yaml | kubectl apply -f - + LOGGLY_TOKEN=$(LOGGLY_TOKEN) envsubst '$$LOGGLY_TOKEN' < examples/manifests/kfo-test.yaml | kubectl apply -f - delete-test-ns: kubectl delete -f examples/manifests/kfo-test.yaml diff --git a/config-reloader/examples/manifests/kfo-test.yaml b/config-reloader/examples/manifests/kfo-test.yaml index 0797078b..75dca741 100644 --- a/config-reloader/examples/manifests/kfo-test.yaml +++ b/config-reloader/examples/manifests/kfo-test.yaml @@ -34,7 +34,7 @@ spec: command: - bash - -c - - while true; do echo `date -R` [INFO] "Random hello number $((var++)) to file"; sleep 2; [[ $(($var % 100)) == 0 ]] && :> /var/log/hello.log ;done > /var/log/hello.log + - while true; do echo `date -R` [INFO] "Random hello number $((var++)) to file"; sleep 2; [[ $(($var % 100)) == 0 ]] && rm -fr /var/log/hello.log ;done > /var/log/hello.log volumeMounts: - mountPath: /var/log name: logs @@ -63,7 +63,7 @@ spec: command: - bash - -c - - while true; do echo `date -R` [INFO] "Random welcome number $((var++)) to file"; sleep 2; [[ $(($var % 100)) == 0 ]] && :> /var/log/welcome.log ;done > /var/log/welcome.log + - while true; do echo `date -R` [INFO] "Random welcome number $((var++)) to file"; sleep 2; [[ $(($var % 100)) == 0 ]] && rm -fr /var/log/welcome.log ;done > /var/log/welcome.log volumeMounts: - mountPath: /var/log name: logs