Skip to content

[grafana] fix: only skip init request on init k8s-sidecar#4088

Merged
jkroepke merged 1 commit intografana:mainfrom
mjnagel:fix-k8s-sidecar-init
Jan 15, 2026
Merged

[grafana] fix: only skip init request on init k8s-sidecar#4088
jkroepke merged 1 commit intografana:mainfrom
mjnagel:fix-k8s-sidecar-init

Conversation

@mjnagel
Copy link
Copy Markdown
Contributor

@mjnagel mjnagel commented Jan 14, 2026

This PR removes REQ_SKIP_INIT from the environment variables when the k8s-sidecar is run as a sidecar (rather than init container) to prevent race conditions around Grafana startup and the k8s-sidecar startup (see here).

REQ_SKIP_INIT can only be safely used if we can guarantee start order of the containers. This is only the case with initContainers, and more specifically if they have proper probes for startup/readiness (to ensure the container has "actually started"). Otherwise you end up with a situation where the request to Grafana is skipped even if the sidecar did not startup/create a datasource/dashboard file first.

Resolves #4031

Signed-off-by: Micah Nagel <micah.nagel@defenseunicorns.com>
Copy link
Copy Markdown
Collaborator

@jkroepke jkroepke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jkroepke jkroepke merged commit 6665978 into grafana:main Jan 15, 2026
11 checks passed
cwrau added a commit to teutonet/teutonet-helm-charts that referenced this pull request Jan 16, 2026
This has been fixed in grafana/helm-charts#4088,
which has been released as 10.5.8, which is in this
kube-prometheus-stack version
renovate Bot added a commit to sdwilsh/ansible-playbooks that referenced this pull request Jan 19, 2026
##### [\`10.5.8\`](https://github.com/grafana/helm-charts/releases/tag/grafana-10.5.8)

The leading tool for querying and visualizing time series and metrics.

#### What's Changed

- \[grafana] fix: only skip init request on init k8s-sidecar by [@mjnagel](https://github.com/mjnagel) in [#4088](grafana/helm-charts#4088)

**Full Changelog**: <grafana/helm-charts@grafana-10.5.7...grafana-10.5.8>

---
##### [\`10.5.7\`](https://github.com/grafana/helm-charts/releases/tag/grafana-10.5.7)

The leading tool for querying and visualizing time series and metrics.

#### What's Changed

- \[grafana] fix: Use PV name when supplied, rather than looking up existing PVC v… by [@aimmac23](https://github.com/aimmac23) in [#4086](grafana/helm-charts#4086)

#### New Contributors

- [@aimmac23](https://github.com/aimmac23) made their first contribution in [#4086](grafana/helm-charts#4086)

**Full Changelog**: <grafana/helm-charts@grafana-10.5.6...grafana-10.5.7>

---
##### [\`10.5.6\`](https://github.com/grafana/helm-charts/releases/tag/grafana-10.5.6)

The leading tool for querying and visualizing time series and metrics.

#### What's Changed

- \[grafana] Allow customization of hostUsers by [@jcpunk](https://github.com/jcpunk) in [#4082](grafana/helm-charts#4082)

**Full Changelog**: <grafana/helm-charts@k8s-monitoring-3.7.2...grafana-10.5.6>

---
##### [\`10.5.5\`](https://github.com/grafana/helm-charts/releases/tag/grafana-10.5.5)

The leading tool for querying and visualizing time series and metrics.

#### What's Changed

- \[grafana] fix(unified): set default index\_path in chart by [@RafaelPaulovic](https://github.com/RafaelPaulovic) in [#4080](grafana/helm-charts#4080)

**Full Changelog**: <grafana/helm-charts@grafana-10.5.4...grafana-10.5.5>
renovate Bot added a commit to sdwilsh/ansible-playbooks that referenced this pull request Jan 19, 2026
##### [\`10.5.8\`](https://github.com/grafana/helm-charts/releases/tag/grafana-10.5.8)

The leading tool for querying and visualizing time series and metrics.

#### What's Changed

- \[grafana] fix: only skip init request on init k8s-sidecar by [@mjnagel](https://github.com/mjnagel) in [#4088](grafana/helm-charts#4088)

**Full Changelog**: <grafana/helm-charts@grafana-10.5.7...grafana-10.5.8>

---
##### [\`10.5.7\`](https://github.com/grafana/helm-charts/releases/tag/grafana-10.5.7)

The leading tool for querying and visualizing time series and metrics.

#### What's Changed

- \[grafana] fix: Use PV name when supplied, rather than looking up existing PVC v… by [@aimmac23](https://github.com/aimmac23) in [#4086](grafana/helm-charts#4086)

#### New Contributors

- [@aimmac23](https://github.com/aimmac23) made their first contribution in [#4086](grafana/helm-charts#4086)

**Full Changelog**: <grafana/helm-charts@grafana-10.5.6...grafana-10.5.7>

---
##### [\`10.5.6\`](https://github.com/grafana/helm-charts/releases/tag/grafana-10.5.6)

The leading tool for querying and visualizing time series and metrics.

#### What's Changed

- \[grafana] Allow customization of hostUsers by [@jcpunk](https://github.com/jcpunk) in [#4082](grafana/helm-charts#4082)

**Full Changelog**: <grafana/helm-charts@k8s-monitoring-3.7.2...grafana-10.5.6>

---
##### [\`10.5.5\`](https://github.com/grafana/helm-charts/releases/tag/grafana-10.5.5)

The leading tool for querying and visualizing time series and metrics.

#### What's Changed

- \[grafana] fix(unified): set default index\_path in chart by [@RafaelPaulovic](https://github.com/RafaelPaulovic) in [#4080](grafana/helm-charts#4080)

**Full Changelog**: <grafana/helm-charts@grafana-10.5.4...grafana-10.5.5>
renovate Bot added a commit to sdwilsh/ansible-playbooks that referenced this pull request Jan 19, 2026
##### [\`10.5.8\`](https://github.com/grafana/helm-charts/releases/tag/grafana-10.5.8)

The leading tool for querying and visualizing time series and metrics.

#### What's Changed

- \[grafana] fix: only skip init request on init k8s-sidecar by [@mjnagel](https://github.com/mjnagel) in [#4088](grafana/helm-charts#4088)

**Full Changelog**: <grafana/helm-charts@grafana-10.5.7...grafana-10.5.8>

---
##### [\`10.5.7\`](https://github.com/grafana/helm-charts/releases/tag/grafana-10.5.7)

The leading tool for querying and visualizing time series and metrics.

#### What's Changed

- \[grafana] fix: Use PV name when supplied, rather than looking up existing PVC v… by [@aimmac23](https://github.com/aimmac23) in [#4086](grafana/helm-charts#4086)

#### New Contributors

- [@aimmac23](https://github.com/aimmac23) made their first contribution in [#4086](grafana/helm-charts#4086)

**Full Changelog**: <grafana/helm-charts@grafana-10.5.6...grafana-10.5.7>

---
##### [\`10.5.6\`](https://github.com/grafana/helm-charts/releases/tag/grafana-10.5.6)

The leading tool for querying and visualizing time series and metrics.

#### What's Changed

- \[grafana] Allow customization of hostUsers by [@jcpunk](https://github.com/jcpunk) in [#4082](grafana/helm-charts#4082)

**Full Changelog**: <grafana/helm-charts@k8s-monitoring-3.7.2...grafana-10.5.6>

---
##### [\`10.5.5\`](https://github.com/grafana/helm-charts/releases/tag/grafana-10.5.5)

The leading tool for querying and visualizing time series and metrics.

#### What's Changed

- \[grafana] fix(unified): set default index\_path in chart by [@RafaelPaulovic](https://github.com/RafaelPaulovic) in [#4080](grafana/helm-charts#4080)

**Full Changelog**: <grafana/helm-charts@grafana-10.5.4...grafana-10.5.5>
renovate Bot added a commit to sdwilsh/ansible-playbooks that referenced this pull request Jan 20, 2026
##### [\`10.5.8\`](https://github.com/grafana/helm-charts/releases/tag/grafana-10.5.8)

The leading tool for querying and visualizing time series and metrics.

#### What's Changed

- \[grafana] fix: only skip init request on init k8s-sidecar by [@mjnagel](https://github.com/mjnagel) in [#4088](grafana/helm-charts#4088)

**Full Changelog**: <grafana/helm-charts@grafana-10.5.7...grafana-10.5.8>

---
##### [\`10.5.7\`](https://github.com/grafana/helm-charts/releases/tag/grafana-10.5.7)

The leading tool for querying and visualizing time series and metrics.

#### What's Changed

- \[grafana] fix: Use PV name when supplied, rather than looking up existing PVC v… by [@aimmac23](https://github.com/aimmac23) in [#4086](grafana/helm-charts#4086)

#### New Contributors

- [@aimmac23](https://github.com/aimmac23) made their first contribution in [#4086](grafana/helm-charts#4086)

**Full Changelog**: <grafana/helm-charts@grafana-10.5.6...grafana-10.5.7>

---
##### [\`10.5.6\`](https://github.com/grafana/helm-charts/releases/tag/grafana-10.5.6)

The leading tool for querying and visualizing time series and metrics.

#### What's Changed

- \[grafana] Allow customization of hostUsers by [@jcpunk](https://github.com/jcpunk) in [#4082](grafana/helm-charts#4082)

**Full Changelog**: <grafana/helm-charts@k8s-monitoring-3.7.2...grafana-10.5.6>

---
##### [\`10.5.5\`](https://github.com/grafana/helm-charts/releases/tag/grafana-10.5.5)

The leading tool for querying and visualizing time series and metrics.

#### What's Changed

- \[grafana] fix(unified): set default index\_path in chart by [@RafaelPaulovic](https://github.com/RafaelPaulovic) in [#4080](grafana/helm-charts#4080)

**Full Changelog**: <grafana/helm-charts@grafana-10.5.4...grafana-10.5.5>
renovate Bot added a commit to sdwilsh/ansible-playbooks that referenced this pull request Jan 20, 2026
##### [\`10.5.8\`](https://github.com/grafana/helm-charts/releases/tag/grafana-10.5.8)

The leading tool for querying and visualizing time series and metrics.

#### What's Changed

- \[grafana] fix: only skip init request on init k8s-sidecar by [@mjnagel](https://github.com/mjnagel) in [#4088](grafana/helm-charts#4088)

**Full Changelog**: <grafana/helm-charts@grafana-10.5.7...grafana-10.5.8>

---
##### [\`10.5.7\`](https://github.com/grafana/helm-charts/releases/tag/grafana-10.5.7)

The leading tool for querying and visualizing time series and metrics.

#### What's Changed

- \[grafana] fix: Use PV name when supplied, rather than looking up existing PVC v… by [@aimmac23](https://github.com/aimmac23) in [#4086](grafana/helm-charts#4086)

#### New Contributors

- [@aimmac23](https://github.com/aimmac23) made their first contribution in [#4086](grafana/helm-charts#4086)

**Full Changelog**: <grafana/helm-charts@grafana-10.5.6...grafana-10.5.7>

---
##### [\`10.5.6\`](https://github.com/grafana/helm-charts/releases/tag/grafana-10.5.6)

The leading tool for querying and visualizing time series and metrics.

#### What's Changed

- \[grafana] Allow customization of hostUsers by [@jcpunk](https://github.com/jcpunk) in [#4082](grafana/helm-charts#4082)

**Full Changelog**: <grafana/helm-charts@k8s-monitoring-3.7.2...grafana-10.5.6>

---
##### [\`10.5.5\`](https://github.com/grafana/helm-charts/releases/tag/grafana-10.5.5)

The leading tool for querying and visualizing time series and metrics.

#### What's Changed

- \[grafana] fix(unified): set default index\_path in chart by [@RafaelPaulovic](https://github.com/RafaelPaulovic) in [#4080](grafana/helm-charts#4080)

**Full Changelog**: <grafana/helm-charts@grafana-10.5.4...grafana-10.5.5>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[grafana] sidecar does not load datasources in version 10.3.0

2 participants