Skip to content

Commit

Permalink
feat(jsonnet): Allow to name prefix zoned ingesters (grafana#14260)
Browse files Browse the repository at this point in the history
  • Loading branch information
cyriltovena authored and jeschkies committed Oct 1, 2024
1 parent 251ca5b commit 0a72aaa
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 0a72aaa

Please sign in to comment.