Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Helm: remove ruler.enabled condition in networkpolicies which lead to linting errors #11305

Merged

Conversation

QuantumEnigmaa
Copy link
Contributor

What this PR does / why we need it:

This PR removes the if .Values.ruler.enabled condition from the loki-egress-alertmanager networkpolicy as this was causing linting issues (i.e nil pointer) whenever enabling the networkpolicies since the ruler field is not present in the values.

From what I know, the ruler is now part of the backend, thus I also replaced the rulerSelectorLabels by the backendSelectorLabels.

Special notes for your reviewer:

Checklist

  • Reviewed the 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
  • If the change is deprecating or removing a configuration option, update the deprecated-config.yaml and deleted-config.yaml files respectively in the tools/deprecated-config-checker directory. Example PR

… linting errors

Signed-off-by: QuantumEnigmaa <thibaud@giantswarm.io>
Copy link
Contributor

github-actions bot commented Nov 23, 2023

Trivy scan found the following vulnerabilities:

@QuantumEnigmaa
Copy link
Contributor Author

@ashwanthgoli @paul1r if you have time

@JStickler
Copy link
Contributor

Could you please also update the version on the production/helm/loki/README.md?

Signed-off-by: QuantumEnigmaa <thibaud@giantswarm.io>
@QuantumEnigmaa
Copy link
Contributor Author

Done @JStickler

@QuantumEnigmaa
Copy link
Contributor Author

@JStickler Is everything ok for you ?

@MichelHollands MichelHollands merged commit ee008cf into grafana:main Dec 8, 2023
9 checks passed
rhnasc pushed a commit to inloco/loki that referenced this pull request Apr 12, 2024
… linting errors (grafana#11305)

**What this PR does / why we need it**:

This PR removes the `if .Values.ruler.enabled` condition from the
`loki-egress-alertmanager` networkpolicy as this was causing linting
issues (i.e nil pointer) whenever enabling the networkpolicies since the
`ruler` field is not present in the values.

From what I know, the ruler is now part of the backend, thus I also
replaced the `rulerSelectorLabels` by the `backendSelectorLabels`.

**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
- [x] `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`
- [x] 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](grafana@d10549e)
- [ ] If the change is deprecating or removing a configuration option,
update the `deprecated-config.yaml` and `deleted-config.yaml` files
respectively in the `tools/deprecated-config-checker` directory.
[Example
PR](grafana@0d4416a)

---------

Signed-off-by: QuantumEnigmaa <thibaud@giantswarm.io>
Co-authored-by: Michel Hollands <42814411+MichelHollands@users.noreply.github.com>
mraboosk pushed a commit to mraboosk/loki that referenced this pull request Oct 7, 2024
… linting errors (grafana#11305)

**What this PR does / why we need it**:

This PR removes the `if .Values.ruler.enabled` condition from the
`loki-egress-alertmanager` networkpolicy as this was causing linting
issues (i.e nil pointer) whenever enabling the networkpolicies since the
`ruler` field is not present in the values.

From what I know, the ruler is now part of the backend, thus I also
replaced the `rulerSelectorLabels` by the `backendSelectorLabels`.

**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
- [x] `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`
- [x] 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](grafana@2cef71e)
- [ ] If the change is deprecating or removing a configuration option,
update the `deprecated-config.yaml` and `deleted-config.yaml` files
respectively in the `tools/deprecated-config-checker` directory.
[Example
PR](grafana@0d4416a)

---------

Signed-off-by: QuantumEnigmaa <thibaud@giantswarm.io>
Co-authored-by: Michel Hollands <42814411+MichelHollands@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants