Skip to content

Commit

Permalink
fix(watchers): increase default watcher timeout to 3600 seconds
Browse files Browse the repository at this point in the history
- Updated the default watcher timeout from 1800 to 3600 seconds for improved resource monitoring.
- Cleaned up Helm chart by removing unnecessary volume and volumeMount configurations.

No breaking changes.
  • Loading branch information
winromulus committed Feb 23, 2025
1 parent 7861013 commit d95bf4f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public abstract class WatcherBackgroundService<TResource, TResourceList>(
protected readonly ILogger Logger = logger;
protected readonly IMediator Mediator = mediator;

protected int WatcherTimeout => options.CurrentValue.Watcher?.Timeout ?? 1800;
protected int WatcherTimeout => options.CurrentValue.Watcher?.Timeout ?? 3600;

protected override async Task ExecuteAsync(CancellationToken stoppingToken)
{
Expand Down
2 changes: 1 addition & 1 deletion src/helm/reflector/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ spec:
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
{{ - with .Values.volumes }}
{{- with .Values.volumes }}
volumes:
{{- toYaml . | nindent 8}}
{{- end }}
Expand Down
11 changes: 3 additions & 8 deletions src/helm/reflector/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -117,11 +117,6 @@ topologySpreadConstraints: []

priorityClassName: ""

#mount external persistent/ephemeral storage to required locations if readOnlyRootFileSystem=true
volumes:
- name: tmp
emptyDir: {}

volumeMounts:
- name: tmp
mountPath: /tmp
volumes: []

volumeMounts: []

0 comments on commit d95bf4f

Please sign in to comment.