Skip to content

Commit

Permalink
feat: add reloader to autoreload pods when secrets change
Browse files Browse the repository at this point in the history
  • Loading branch information
mrsimonemms committed Nov 10, 2024
1 parent a069c0c commit a9dddd9
Show file tree
Hide file tree
Showing 6 changed files with 104 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ spec:
targetRevision: 8.5.1
helm:
valuesObject:
commonAnnotations:
secret.reloader.stakater.com/reload: cloudflare
provider: cloudflare
cloudflare:
secretName: cloudflare
Expand Down
26 changes: 26 additions & 0 deletions registry/clusters/dev/components/reloader/application.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: reloader
namespace: argocd
annotations:
argocd.argoproj.io/sync-wave: "10"
spec:
project: default
source:
repoURL: https://stakater.github.io/stakater-charts
targetRevision: 1.1.0
helm:
valuesObject:
reloader:
watchGlobally: true
chart: reloader
destination:
server: https://kubernetes.default.svc
namespace: reloader
syncPolicy:
automated:
prune: true
selfHeal: true
syncOptions:
- CreateNamespace=true
24 changes: 24 additions & 0 deletions registry/clusters/dev/reloader.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: reloader-components
namespace: argocd
annotations:
argocd.argoproj.io/sync-wave: "10"
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
project: default
source:
repoURL: https://github.com/mrsimonemms/infrastructure
path: registry/clusters/dev/components/reloader
targetRevision: HEAD
destination:
server: https://kubernetes.default.svc
namespace: reloader
syncPolicy:
automated:
prune: true
selfHeal: true
syncOptions:
- CreateNamespace=true
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ spec:
targetRevision: 8.5.1
helm:
valuesObject:
commonAnnotations:
secret.reloader.stakater.com/reload: cloudflare
provider: cloudflare
cloudflare:
secretName: cloudflare
Expand Down
26 changes: 26 additions & 0 deletions registry/clusters/prod/components/reloader/application.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: reloader
namespace: argocd
annotations:
argocd.argoproj.io/sync-wave: "10"
spec:
project: default
source:
repoURL: https://stakater.github.io/stakater-charts
targetRevision: 1.1.0
helm:
valuesObject:
reloader:
watchGlobally: true
chart: reloader
destination:
server: https://kubernetes.default.svc
namespace: reloader
syncPolicy:
automated:
prune: true
selfHeal: true
syncOptions:
- CreateNamespace=true
24 changes: 24 additions & 0 deletions registry/clusters/prod/reloader.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: reloader-components
namespace: argocd
annotations:
argocd.argoproj.io/sync-wave: "10"
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
project: default
source:
repoURL: https://github.com/mrsimonemms/infrastructure
path: registry/clusters/prod/components/reloader
targetRevision: HEAD
destination:
server: https://kubernetes.default.svc
namespace: reloader
syncPolicy:
automated:
prune: true
selfHeal: true
syncOptions:
- CreateNamespace=true

0 comments on commit a9dddd9

Please sign in to comment.