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 2929 } +
3030 (if hasFallbackConfig then {
3131 '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 {}),
3933
4034 alertmanager_fallback_config_map:
4135 if hasFallbackConfig then
6660 else [],
6761 ) +
6862 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+ ) +
7073 container.withVolumeMountsMixin(
7174 [volumeMount.new('alertmanager-data' , '/data' )] +
7275 if hasFallbackConfig then
You can’t perform that action at this time.
0 commit comments