Skip to content

Commit db5fe9c

Browse files
Merge pull request #175 from appuio/feat/config-workaround
Support selectivly enable/disable workarounds
2 parents 130678e + 17d4445 commit db5fe9c

File tree

4 files changed

+12
-14
lines changed

4 files changed

+12
-14
lines changed

class/defaults.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,12 @@ parameters:
9191
tag: v4.17
9292

9393
workaround:
94+
missing_metrics_token:
95+
enabled: true
96+
app_logs_reader:
97+
enabled: true
9498
ingester_fix:
99+
enabled: true
95100
schedule: '*/10 * * * *'
96101
sleep_time: 2m
97102

component/log_workaround.libsonnet

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -150,9 +150,9 @@ local ingester_stuck = [
150150
// Define outputs below
151151
if lokiEnabled then
152152
{
153-
'50_fix_missing_metrics_token': missing_metrics_token,
154-
'50_fix_ingester_stuck': ingester_stuck,
155-
'50_fix_app_logs_reader': app_logs_reader,
153+
[if params.workaround.missing_metrics_token.enabled then '50_fix_missing_metrics_token']: missing_metrics_token,
154+
[if params.workaround.ingester_fix.enabled then '50_fix_ingester_stuck']: ingester_stuck,
155+
[if params.workaround.app_logs_reader.enabled then '50_fix_app_logs_reader']: app_logs_reader,
156156
}
157157
else
158158
std.trace(

tests/golden/master/openshift4-logging/openshift4-logging/50_fix_missing_metrics_token.yaml

Lines changed: 0 additions & 11 deletions
This file was deleted.

tests/master.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,3 +71,7 @@ parameters:
7171
-----BEGIN CERTIFICATE-----
7272
...
7373
-----END CERTIFICATE-----
74+
75+
workaround:
76+
missing_metrics_token:
77+
enabled: false

0 commit comments

Comments
 (0)