Skip to content

Commit

Permalink
feat(jsonnet): Allow to name prefix zoned ingesters (#14260)
Browse files Browse the repository at this point in the history
  • Loading branch information
cyriltovena authored Sep 26, 2024
1 parent 6143a54 commit fac3177
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions production/ksonnet/loki/multi-zone.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@ local rolloutOperator = import 'rollout-operator.libsonnet';
},
)),

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

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

0 comments on commit fac3177

Please sign in to comment.