This repository was archived by the owner on Apr 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +11
-8
lines changed Expand file tree Collapse file tree 1 file changed +11
-8
lines changed Original file line number Diff line number Diff line change 29
29
} +
30
30
(if hasFallbackConfig then {
31
31
'alertmanager.configs.fallback' : '/configs/alertmanager_fallback_config.yaml' ,
32
- } else {}) +
33
- (if isHA then {
34
- 'alertmanager.cluster.listen-address' : '[$(POD_IP)]:%s' % $._config.alertmanager.gossip_port,
35
- 'alertmanager.cluster.peers' : std.join (',' , peers),
36
- } else {
37
- 'alertmanager.cluster.listen-address' : '' ,
38
- }),
32
+ } else {}),
39
33
40
34
alertmanager_fallback_config_map:
41
35
if hasFallbackConfig then
66
60
else [],
67
61
) +
68
62
container.withEnvMixin([container.envType.fromFieldPath('POD_IP' , 'status.podIP' )]) +
69
- container.withArgsMixin($.util.mapToFlags($.alertmanager_args)) +
63
+ container.withArgsMixin(
64
+ $.util.mapToFlags($.alertmanager_args) +
65
+ (
66
+ if isHA then
67
+ ['--alertmanager.cluster.listen-address=[$(POD_IP)]:%s' % $._config.alertmanager.gossip_port] +
68
+ ['--alertmanager.cluster.peers=%s' % std.join (',' , peers)]
69
+ else
70
+ ['-alertmanager.cluster.listen-address=""' ]
71
+ )
72
+ ) +
70
73
container.withVolumeMountsMixin(
71
74
[volumeMount.new('alertmanager-data' , '/data' )] +
72
75
if hasFallbackConfig then
You can’t perform that action at this time.
0 commit comments