mirror of
https://github.com/stakater/Reloader.git
synced 2026-08-27 14:37:17 +00:00
resolved comments and updated readme
This commit is contained in:
@@ -10,13 +10,13 @@ helm repo add stakater https://stakater.github.io/stakater-charts
|
||||
|
||||
helm repo update
|
||||
|
||||
helm install stakater/reloader # For helm3 add --generate-name flag or set the release name
|
||||
helm install stakater/reloader-v2 # For helm3 add --generate-name flag or set the release name
|
||||
|
||||
helm install {{RELEASE_NAME}} stakater/reloader -n {{NAMESPACE}} --set reloader.watchGlobally=false # By default, Reloader watches in all namespaces. To watch in single namespace, set watchGlobally=false
|
||||
helm install {{RELEASE_NAME}} stakater/reloader-v2 -n {{NAMESPACE}} --set reloader.watchGlobally=false # By default, Reloader watches in all namespaces. To watch in single namespace, set watchGlobally=false
|
||||
|
||||
helm install stakater/reloader --set reloader.watchGlobally=false --namespace test --generate-name # Install Reloader in `test` namespace which will only watch `Deployments`, `Daemonsets` `Statefulsets` and `Rollouts` in `test` namespace.
|
||||
helm install stakater/reloader-v2 --set reloader.watchGlobally=false --namespace test --generate-name # Install Reloader in `test` namespace which will only watch `Deployments`, `Daemonsets` `Statefulsets` and `Rollouts` in `test` namespace.
|
||||
|
||||
helm install stakater/reloader --set reloader.ignoreJobs=true --set reloader.ignoreCronJobs=true --generate-name # Install Reloader ignoring Jobs and CronJobs from reload monitoring
|
||||
helm install stakater/reloader-v2 --set reloader.ignoreJobs=true --set reloader.ignoreCronJobs=true --generate-name # Install Reloader ignoring Jobs and CronJobs from reload monitoring
|
||||
```
|
||||
|
||||
## Uninstalling
|
||||
@@ -192,9 +192,16 @@ Enabling it requires **four** changes, because the operator image is swapped man
|
||||
```yaml
|
||||
image:
|
||||
repository: ghcr.io/stakater/reloader-enterprise
|
||||
tag: v0.1.0
|
||||
tag: v0.0.43 # enterprise operator image tag (v-prefixed); use the latest release
|
||||
```
|
||||
|
||||
> **Version note:** three different numbers are in play here, don't mix them up:
|
||||
> - `image.tag` above is the **enterprise operator image** tag (e.g. `v0.0.43`).
|
||||
> - the `reloader-enterprise` **subchart** version (`0.1.0`, in `Chart.yaml`
|
||||
> dependencies) is the Helm chart version, not an image tag.
|
||||
> - the console and gateway images have their own tags again, set under
|
||||
> `enterprise.console.*` / `enterprise.gateway.*`.
|
||||
|
||||
3. Provide an image pull secret — the enterprise operator, console, and gateway
|
||||
images are in **private GHCR**:
|
||||
|
||||
|
||||
@@ -5,3 +5,13 @@
|
||||
{{ .Values.reloader.custom_annotations.secret | default "secret.reloader.stakater.com/reload" }}: "foo-secret"
|
||||
|
||||
- After successful installation, your pods will get rolling updates when a change in data of configmap or secret will happen.
|
||||
{{- if .Values.enterprise.enabled }}
|
||||
{{- $usingCommunityImage := ternary (eq .Values.image.name "stakater/reloader") (eq .Values.image.repository "ghcr.io/stakater/reloader") (not (empty .Values.global.imageRegistry)) }}
|
||||
{{- if $usingCommunityImage }}
|
||||
|
||||
WARNING: enterprise.enabled=true but the operator image still points at the
|
||||
community image. The operator will run, but without enterprise features. To use
|
||||
the enterprise operator, override {{ if .Values.global.imageRegistry }}image.name{{ else }}image.repository{{ end }}/image.tag — see the
|
||||
chart README "Enterprise mode".
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
||||
@@ -7,14 +7,22 @@ tests:
|
||||
- equal:
|
||||
path: spec.template.spec.containers[0].image
|
||||
value: ghcr.io/stakater/reloader:v2.0.0
|
||||
- it: uses the enterprise image when the image block is overridden
|
||||
# The operator image is swapped manually via image.*; enterprise.enabled only
|
||||
# toggles the subchart and must NOT change the operator image on its own.
|
||||
- it: enterprise.enabled alone does not change the operator image
|
||||
set:
|
||||
enterprise:
|
||||
enabled: true
|
||||
image:
|
||||
repository: ghcr.io/stakater/reloader-enterprise
|
||||
tag: v2.0.0
|
||||
asserts:
|
||||
- equal:
|
||||
path: spec.template.spec.containers[0].image
|
||||
value: ghcr.io/stakater/reloader-enterprise:v2.0.0
|
||||
value: ghcr.io/stakater/reloader:v2.0.0
|
||||
- it: uses the enterprise image when the image block is overridden
|
||||
set:
|
||||
image:
|
||||
repository: ghcr.io/stakater/reloader-enterprise
|
||||
tag: test-tag
|
||||
asserts:
|
||||
- equal:
|
||||
path: spec.template.spec.containers[0].image
|
||||
value: ghcr.io/stakater/reloader-enterprise:test-tag
|
||||
|
||||
@@ -29,8 +29,11 @@ image:
|
||||
pullPolicy: IfNotPresent
|
||||
|
||||
# Reloader Enterprise components (console + gateway + dragonfly cache).
|
||||
# When enabled, ALSO set image.repository/image.tag to the enterprise operator
|
||||
# image and provide global.imagePullSecrets — see the chart README "Enterprise mode".
|
||||
# When enabled, ALSO swap the operator image to the enterprise image and provide
|
||||
# global.imagePullSecrets — see the chart README "Enterprise mode".
|
||||
# NOTE: if global.imageRegistry is set, the operator image resolves from
|
||||
# global.imageRegistry + image.name (image.repository is ignored); in that mode
|
||||
# override image.name, not image.repository.
|
||||
enterprise:
|
||||
enabled: false
|
||||
console:
|
||||
|
||||
Reference in New Issue
Block a user