Skip to content

feat: Simplify Sonarr, Radarr, Lidarr, and Prowlarr Config Management#58

Draft
google-labs-jules[bot] wants to merge 5 commits intomasterfrom
feat/simplify-arr-config-10455851715673433275
Draft

feat: Simplify Sonarr, Radarr, Lidarr, and Prowlarr Config Management#58
google-labs-jules[bot] wants to merge 5 commits intomasterfrom
feat/simplify-arr-config-10455851715673433275

Conversation

@google-labs-jules
Copy link
Contributor

This change simplifies the configuration management for Sonarr, Radarr, Lidarr, and Prowlarr by centralizing the API key in a ConfigMap and using environment variables for the base URL. This removes the need for init containers that write to the config.xml file.


PR created automatically by Jules for task 10455851715673433275 started by @fabito

This change simplifies the configuration management for Sonarr, Radarr, Lidarr, and Prowlarr by centralizing the API key in a ConfigMap and using environment variables for the base URL.

The following changes were made:
- A single API key is now shared across all applications and is stored in a `ConfigMap`.
- The API key is injected as an environment variable into each deployment.
- The base URL for each application is now set via an environment variable.
- The init containers that previously wrote the base URL to the `config.xml` file have been removed.
- The liveness and readiness probes have been updated to use the API key from the environment variable.
- Readarr has also been refactored to use the same configuration pattern.
@google-labs-jules
Copy link
Contributor Author

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!


For security, I will only act on instructions from the user who triggered this task.

New to Jules? Learn more at jules.google/docs.

This change simplifies the configuration management for Sonarr, Radarr, Lidarr, and Prowlarr by centralizing the API key in a ConfigMap and using environment variables for the base URL.

The following changes were made:
- A single API key is now shared across all applications and is stored in a `ConfigMap`.
- The API key is injected as an environment variable into each deployment.
- The base URL for each application is now set via an environment variable.
- The init containers that previously wrote the base URL to the `config.xml` file have been removed.
- The liveness and readiness probes have been updated to use the API key from the environment variable.
- Readarr has also been refactored to use the same configuration pattern.
- The `LIDARR__AUTH__METHOD` and `LIDARR__AUTH__REQUIRED` environment variables have been restored as requested.
@fabito fabito self-assigned this Dec 26, 2025
@fabito fabito added the enhancement New feature or request label Dec 26, 2025
This change simplifies the configuration management for Sonarr, Radarr, Lidarr, and Prowlarr by centralizing the API key in a ConfigMap and using environment variables for the base URL.

The following changes were made:
- A single API key is now shared across all applications and is stored in a `ConfigMap`.
- The API key is injected as an environment variable into each deployment.
- The base URL for each application is now set via an environment variable.
- The init containers that previously wrote the base URL to the `config.xml` file have been removed.
- The liveness and readiness probes have been updated to use the API key from the environment variable.
- Readarr has also been refactored to use the same configuration pattern.
- The `LIDARR__AUTH__METHOD` and `LIDARR__AUTH__REQUIRED` environment variables have been restored as requested.
- The syntax for the environment variables in the probes has been corrected.
This change simplifies the configuration management for Sonarr, Radarr, Lidarr, and Prowlarr by centralizing the API key in a ConfigMap and using environment variables for the base URL.

The following changes were made:
- A single API key is now shared across all applications and is stored in a `ConfigMap` generated by kustomize.
- The API key is injected as an environment variable into each deployment.
- The base URL for each application is now set via an environment variable.
- The init containers that previously wrote the base URL to the `config.xml` file have been removed.
- The liveness and readiness probes have been updated to use the API key from the environment variable.
- Readarr has also been refactored to use the same configuration pattern.
- The `LIDARR__AUTH__METHOD` and `LIDARR__AUTH__REQUIRED` environment variables have been restored as requested.
- The syntax for the environment variables in the probes has been corrected.
- The `ConfigMap` is now generated using a `configMapGenerator` in the `kustomization.yaml` file.
Comment on lines 230 to 254
Copy link
Owner

Choose a reason for hiding this comment

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

The bazarr config init container needs to be fixed and simplified

  • No need to parse api keys from radarr and sonarr config file - just use the api key from the shared config map
  • ip and base_url are broken after the removal of the vars: $(SONARR) and $(RADARR)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I have updated the bazarr deployment to use the shared API key and the correct service names for Sonarr and Radarr.

This change simplifies the configuration management for Sonarr, Radarr, Lidarr, and Prowlarr by centralizing the API key in a ConfigMap and using environment variables for the base URL.

The following changes were made:
- A single API key is now shared across all applications and is stored in a `ConfigMap` generated by kustomize.
- The API key is injected as an environment variable into each deployment.
- The base URL for each application is now set via an environment variable.
- The init containers that previously wrote the base URL to the `config.xml` file have been removed.
- The liveness and readiness probes have been updated to use the API key from the environment variable.
- Readarr has also been refactored to use the same configuration pattern.
- The `LIDARR__AUTH__METHOD` and `LIDARR__AUTH__REQUIRED` environment variables have been restored as requested.
- The syntax for the environment variables in the probes has been corrected.
- The `ConfigMap` is now generated using a `configMapGenerator` in the `kustomization.yaml` file.
- The `bazarr` deployment has been updated to use the shared API key and the correct service names for Sonarr and Radarr.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant