Skip to content

Commit fac3177

Browse files
authored
feat(jsonnet): Allow to name prefix zoned ingesters (#14260)
1 parent 6143a54 commit fac3177

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

production/ksonnet/loki/multi-zone.libsonnet

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,8 @@ local rolloutOperator = import 'rollout-operator.libsonnet';
100100
},
101101
)),
102102

103-
newIngesterZoneStatefulSet(zone, container)::
104-
local name = '%(prefix)s-%(zone)s' % { prefix: $._config.multi_zone_ingester_name_prefix, zone: zone };
103+
newIngesterZoneStatefulSet(zone, container, name_prefix='')::
104+
local name = '%(prefix)s-%(zone)s' % { prefix: if name_prefix == '' then $._config.multi_zone_ingester_name_prefix else name_prefix, zone: zone };
105105

106106
self.newIngesterStatefulSet(name, container, with_anti_affinity=false) +
107107
statefulSet.mixin.metadata.withLabels({ 'rollout-group': 'ingester' }) +

0 commit comments

Comments
 (0)