Skip to content
New issue

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

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

Already on GitHub? # to your account

operator: Replace deprecated ctrl-runtime cfg with custom package #11678

Merged
merged 11 commits into from
Jan 18, 2024

Conversation

periklis
Copy link
Collaborator

@periklis periklis commented Jan 15, 2024

What this PR does / why we need it:
The following PR removes the dependency to controller-runtime's deprecated v1alpha1.ControllerManagerConfigurationSpec and accompanying file loading and setup code. As per controller-runtime#895 issue the SIG intends to remove the controller config package and in fact does not maintain it anymore.

This is a long due task since the last controller-runtime update in the Loki Operator (See #11232) code base. However, the upcoming k8s and controller-runtime bumps render this task more imminent because controller-runtime v0.16.x:

  • Requires refactoring our registerProfiler() in main.go as per AddMetricsExtraHandler removed.
  • Requires k8s v0.28.x

Which issue(s) this PR fixes:
Fixes #

Special notes for your reviewer:

Please consider this as of now as a soft prerequisite for the following PR because we should align with CCO on release-4.15 at minimum but this requires to bump k8s to v0.28.0:

In fact this will be a mandatory prerequisite once we implement the Azure CCO automation because the require CCO types exist only in release-4.15.

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

@periklis periklis self-assigned this Jan 15, 2024
@periklis periklis requested review from xperimental and a team as code owners January 15, 2024 09:47
operator/config/docs/config.json Outdated Show resolved Hide resolved
operator/apis/config/v1/doc.go Outdated Show resolved Hide resolved
@periklis periklis merged commit 28a4135 into grafana:main Jan 18, 2024
14 checks passed
periklis added a commit to periklis/loki that referenced this pull request Jan 22, 2024
…afana#11678)

Co-authored-by: Robert Jacob <rojacob@redhat.com>
Co-authored-by: Robert Jacob <xperimental@solidproject.de>
periklis added a commit to periklis/loki that referenced this pull request Jan 22, 2024
periklis added a commit to periklis/loki that referenced this pull request Jan 22, 2024
periklis added a commit to openshift/loki that referenced this pull request Jan 30, 2024
periklis added a commit to openshift/loki that referenced this pull request Jan 30, 2024
periklis added a commit to openshift/loki that referenced this pull request Jan 30, 2024
rhnasc pushed a commit to inloco/loki that referenced this pull request Apr 12, 2024
…afana#11678)

Co-authored-by: Robert Jacob <rojacob@redhat.com>
Co-authored-by: Robert Jacob <xperimental@solidproject.de>
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants