Skip to content

Remove Hortusfox deployment#2313

Merged
claytono merged 1 commit into
mainfrom
remove-hortusfox
Jun 2, 2026
Merged

Remove Hortusfox deployment#2313
claytono merged 1 commit into
mainfrom
remove-hortusfox

Conversation

@claytono

@claytono claytono commented Jun 2, 2026

Copy link
Copy Markdown
Owner

Drop the Hortusfox Kubernetes manifests so the ApplicationSet no longer generates a Hortusfox Argo CD application.

Remove the generated Authentik proxy provider and detach it from the embedded outpost provider list.

Note: the ApplicationSet has preserveResourcesOnDeletion enabled, so this removes Hortusfox from GitOps source but does not by itself delete any live Hortusfox Kubernetes resources that already exist.

Drop the Hortusfox Kubernetes manifests so Argo CD no longer generates the application from the repo.

Remove the generated Authentik proxy provider and detach it from the embedded outpost provider list.
Copilot AI review requested due to automatic review settings June 2, 2026 11:54
@coderabbitai

coderabbitai Bot commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: ef12995e-388f-4947-92c5-05c923c4c348

📥 Commits

Reviewing files that changed from the base of the PR and between eba2e4c and 3025c76.

📒 Files selected for processing (15)
  • kubernetes/hortusfox/app-secret.yaml
  • kubernetes/hortusfox/cronjob.yaml
  • kubernetes/hortusfox/deployment.yaml
  • kubernetes/hortusfox/ingress.yaml
  • kubernetes/hortusfox/kustomization.yaml
  • kubernetes/hortusfox/mariadb-deployment.yaml
  • kubernetes/hortusfox/mariadb-pvc.yaml
  • kubernetes/hortusfox/mariadb-secret.yaml
  • kubernetes/hortusfox/mariadb-service.yaml
  • kubernetes/hortusfox/namespace.yaml
  • kubernetes/hortusfox/password-generators.yaml
  • kubernetes/hortusfox/pvc.yaml
  • kubernetes/hortusfox/service.yaml
  • opentofu/modules/authentik/generated-hortusfox.tf
  • opentofu/modules/authentik/generated-outpost.tf
💤 Files with no reviewable changes (15)
  • kubernetes/hortusfox/mariadb-pvc.yaml
  • kubernetes/hortusfox/mariadb-service.yaml
  • kubernetes/hortusfox/app-secret.yaml
  • kubernetes/hortusfox/password-generators.yaml
  • kubernetes/hortusfox/namespace.yaml
  • kubernetes/hortusfox/mariadb-deployment.yaml
  • kubernetes/hortusfox/kustomization.yaml
  • kubernetes/hortusfox/mariadb-secret.yaml
  • kubernetes/hortusfox/pvc.yaml
  • opentofu/modules/authentik/generated-outpost.tf
  • kubernetes/hortusfox/service.yaml
  • opentofu/modules/authentik/generated-hortusfox.tf
  • kubernetes/hortusfox/ingress.yaml
  • kubernetes/hortusfox/cronjob.yaml
  • kubernetes/hortusfox/deployment.yaml

Walkthrough

This PR decommissions the HortusFox application by removing all associated infrastructure: Kubernetes manifests (namespace, deployments, services, ingress, secrets, persistent volumes), MariaDB database components, password generators, and Authentik SSO configuration. The sole active code change removes the hortusfox proxy provider reference from the Authentik embedded outpost configuration.

Changes

HortusFox Application Removal

Layer / File(s) Summary
Authentik outpost provider cleanup
opentofu/modules/authentik/generated-outpost.tf
The authentik_outpost.embedded resource's protocol_providers list removes the authentik_provider_proxy.hortusfox.id reference.
HortusFox Kubernetes infrastructure deletion
kubernetes/hortusfox/*
Removes all HortusFox Kubernetes manifests: namespace definition, application deployment with environment variables and volume mounts, MariaDB database deployment and storage, external secrets for credential management, password generators, services, and ingress routing. Associated Kustomization manifest is also deleted.
HortusFox Authentik provider deletion
opentofu/modules/authentik/generated-hortusfox.tf
Removes the Authentik proxy provider and application resources that integrated HortusFox with the Authentik identity platform.

Estimated Code Review Effort

🎯 2 (Simple) | ⏱️ ~8 minutes

Possibly Related PRs

  • claytono/infra#1729: Adds the complete HortusFox infrastructure that this PR removes (inverse operation).
  • claytono/infra#1531: Updates the same outpost configuration to remove the hortusfox provider reference.
  • claytono/infra#2001: Similar pattern of removing an application's infrastructure and corresponding Authentik outpost provider reference (Frigate).
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title 'Remove Hortusfox deployment' accurately and clearly summarizes the primary change in the changeset: removing all Hortusfox-related Kubernetes manifests and Authentik configuration.
Description check ✅ Passed The description is clearly related to the changeset, explaining the removal of Hortusfox Kubernetes manifests and Authentik configuration with context about ApplicationSet behavior.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch remove-hortusfox

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Removes the Hortusfox application from GitOps by deleting its Kubernetes manifests and removing the corresponding Authentik proxy provider/application from the embedded outpost configuration, so Argo CD/ApplicationSet no longer generates or manages Hortusfox.

Changes:

  • Removed authentik_provider_proxy.hortusfox from the embedded outpost protocol_providers list.
  • Deleted the auto-generated Authentik Hortusfox proxy provider + application Terraform resources.
  • Deleted the Hortusfox Kubernetes kustomization and all associated manifests (namespace, app, DB, secrets, ingress, cronjob, PVCs, services).

Reviewed changes

Copilot reviewed 15 out of 15 changed files in this pull request and generated no comments.

Show a summary per file
File Description
opentofu/modules/authentik/generated-outpost.tf Drops Hortusfox from the embedded outpost provider attachment list.
opentofu/modules/authentik/generated-hortusfox.tf Removes the Authentik proxy provider + application resources for Hortusfox.
kubernetes/hortusfox/kustomization.yaml Removes Hortusfox from Kustomize/Argo-managed resources.
kubernetes/hortusfox/namespace.yaml Removes the Hortusfox namespace definition from GitOps source.
kubernetes/hortusfox/deployment.yaml Removes the Hortusfox app deployment manifest.
kubernetes/hortusfox/service.yaml Removes the Hortusfox service manifest.
kubernetes/hortusfox/ingress.yaml Removes the Hortusfox ingress (and related homepage/traefik/authentik annotations).
kubernetes/hortusfox/pvc.yaml Removes the app PVC manifest.
kubernetes/hortusfox/mariadb-deployment.yaml Removes the MariaDB deployment backing Hortusfox.
kubernetes/hortusfox/mariadb-service.yaml Removes the MariaDB service manifest.
kubernetes/hortusfox/mariadb-pvc.yaml Removes the MariaDB PVC manifest.
kubernetes/hortusfox/password-generators.yaml Removes External Secrets password generator resources for Hortusfox.
kubernetes/hortusfox/mariadb-secret.yaml Removes the ExternalSecret for MariaDB credentials.
kubernetes/hortusfox/app-secret.yaml Removes the ExternalSecrets for app admin/cron password and SMTP relay secret.
kubernetes/hortusfox/cronjob.yaml Removes the CronJob that triggers Hortusfox scheduled endpoints.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 3025c76162

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@@ -1,22 +0,0 @@
---

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Delete live resources before dropping ApplicationSet input

Deleting this kustomization.yaml removes Hortusfox from the ApplicationSet git generator (kubernetes/argocd/appset.yaml matches kubernetes/*/kustomization.yaml), but that same ApplicationSet has spec.syncPolicy.preserveResourcesOnDeletion: true, so when the generated hortusfox Application disappears Argo CD preserves the resources instead of pruning them. In this cluster context the Deployment/Services/PVCs/Ingress remain orphaned and Hortusfox keeps running rather than being removed; retire the resources while the Application still exists or temporarily disable preservation for this app.

Useful? React with 👍 / 👎.

@claytono claytono merged commit 7f8ca10 into main Jun 2, 2026
21 checks passed
@claytono claytono deleted the remove-hortusfox branch June 2, 2026 12:04
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.

2 participants