Skip to content

Commit 7db2b4a

Browse files
Missxiaoguoopenshift-cherrypick-robot
authored andcommitted
ztp: disable OLM pprof collection on SNO
OLM collect-profiles Cron job is triggered every 15min to collect performance profiles, which causes huge CPU bursts. Add a source cr to disable it via PGT. Signed-off-by: Angie Wang <angwang@redhat.com>
1 parent 662e0a0 commit 7db2b4a

2 files changed

Lines changed: 12 additions & 0 deletions

File tree

ztp/gitops-subscriptions/argocd/example/policygentemplates/group-du-sno-ranGen.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ spec:
1111
group-du-sno: ""
1212
mcp: "master"
1313
sourceFiles:
14+
- fileName: DisableOLMPprof.yaml
15+
policyName: "config-policy"
1416
# Set ClusterLogForwarder & ClusterLogging as example might be better to create another policyTemp-Group
1517
- fileName: ClusterLogForwarder.yaml
1618
policyName: "config-policy"
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
apiVersion: v1
2+
kind: ConfigMap
3+
metadata:
4+
name: collect-profiles-config
5+
namespace: openshift-operator-lifecycle-manager
6+
annotations:
7+
ran.openshift.io/ztp-deploy-wave: "10"
8+
data:
9+
pprof-config.yaml: |
10+
disabled: True

0 commit comments

Comments
 (0)