Skip to content

Commit

Permalink
Add local service object (#10907)
Browse files Browse the repository at this point in the history
**What this PR does / why we need it**:

Otherwise the jsonnet is invalid

**Special notes for your reviewer**:

**Checklist**
- [X] Reviewed the
[`CONTRIBUTING.md`](https://github.com/grafana/loki/blob/main/CONTRIBUTING.md)
guide (**required**)
- [ ] Documentation added
- [ ] Tests updated
- [ ] `CHANGELOG.md` updated
- [ ] If the change is worth mentioning in the release notes, add
`add-to-release-notes` label
- [ ] Changes that require user attention or interaction to upgrade are
documented in `docs/sources/setup/upgrade/_index.md`
- [ ] For Helm chart changes bump the Helm chart version in
`production/helm/loki/Chart.yaml` and update
`production/helm/loki/CHANGELOG.md` and
`production/helm/loki/README.md`. [Example
PR](d10549e)

Signed-off-by: Michel Hollands <[email protected]>
  • Loading branch information
MichelHollands authored Oct 16, 2023
1 parent 7d54755 commit 1ac7410
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions production/ksonnet/loki/index-gateway.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@
else {},

index_gateway_headless_service: if $._config.use_index_gateway then
local service = k.core.v1.service;
k.util.serviceFor($.index_gateway_statefulset, $._config.service_ignored_labels) +
service.mixin.metadata.withName('index-gateway-headless') +
service.mixin.spec.withClusterIp('None')
Expand Down

0 comments on commit 1ac7410

Please sign in to comment.