Skip to content

Commit

Permalink
Merge pull request #4717 from hawwwdi/main
Browse files Browse the repository at this point in the history
Set `GOMAXPROCS` and `GOMEMLIMIT` to all Flux controllers
  • Loading branch information
stefanprodan authored Apr 12, 2024
2 parents f93da6f + 26168b1 commit e573800
Show file tree
Hide file tree
Showing 6 changed files with 96 additions and 0 deletions.
16 changes: 16 additions & 0 deletions manifests/bases/helm-controller/patch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,19 @@
- op: add
path: /spec/template/spec/priorityClassName
value: system-cluster-critical
- op: add
path: /spec/template/spec/containers/0/env/-
value:
name: GOMAXPROCS
valueFrom:
resourceFieldRef:
containerName: manager
resource: limits.cpu
- op: add
path: /spec/template/spec/containers/0/env/-
value:
name: GOMEMLIMIT
valueFrom:
resourceFieldRef:
containerName: manager
resource: limits.memory
16 changes: 16 additions & 0 deletions manifests/bases/image-automation-controller/patch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,19 @@
- op: add
path: /spec/template/spec/serviceAccountName
value: image-automation-controller
- op: add
path: /spec/template/spec/containers/0/env/-
value:
name: GOMAXPROCS
valueFrom:
resourceFieldRef:
containerName: manager
resource: limits.cpu
- op: add
path: /spec/template/spec/containers/0/env/-
value:
name: GOMEMLIMIT
valueFrom:
resourceFieldRef:
containerName: manager
resource: limits.memory
16 changes: 16 additions & 0 deletions manifests/bases/image-reflector-controller/patch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,19 @@
- op: add
path: /spec/template/spec/serviceAccountName
value: image-reflector-controller
- op: add
path: /spec/template/spec/containers/0/env/-
value:
name: GOMAXPROCS
valueFrom:
resourceFieldRef:
containerName: manager
resource: limits.cpu
- op: add
path: /spec/template/spec/containers/0/env/-
value:
name: GOMEMLIMIT
valueFrom:
resourceFieldRef:
containerName: manager
resource: limits.memory
16 changes: 16 additions & 0 deletions manifests/bases/kustomize-controller/patch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,19 @@
- op: add
path: /spec/template/spec/priorityClassName
value: system-cluster-critical
- op: add
path: /spec/template/spec/containers/0/env/-
value:
name: GOMAXPROCS
valueFrom:
resourceFieldRef:
containerName: manager
resource: limits.cpu
- op: add
path: /spec/template/spec/containers/0/env/-
value:
name: GOMEMLIMIT
valueFrom:
resourceFieldRef:
containerName: manager
resource: limits.memory
16 changes: 16 additions & 0 deletions manifests/bases/notification-controller/patch.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
- op: add
path: /spec/template/spec/serviceAccountName
value: notification-controller
- op: add
path: /spec/template/spec/containers/0/env/-
value:
name: GOMAXPROCS
valueFrom:
resourceFieldRef:
containerName: manager
resource: limits.cpu
- op: add
path: /spec/template/spec/containers/0/env/-
value:
name: GOMEMLIMIT
valueFrom:
resourceFieldRef:
containerName: manager
resource: limits.memory
16 changes: 16 additions & 0 deletions manifests/bases/source-controller/patch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,19 @@
- op: add
path: /spec/template/spec/priorityClassName
value: system-cluster-critical
- op: add
path: /spec/template/spec/containers/0/env/-
value:
name: GOMAXPROCS
valueFrom:
resourceFieldRef:
containerName: manager
resource: limits.cpu
- op: add
path: /spec/template/spec/containers/0/env/-
value:
name: GOMEMLIMIT
valueFrom:
resourceFieldRef:
containerName: manager
resource: limits.memory

0 comments on commit e573800

Please sign in to comment.