Skip to content

feat(chart): manage Traefik Middleware CRs from values (v0.4.0) - #6

Merged
flaccid merged 3 commits into
mainfrom
feat/chart-middlewares
Aug 29, 2026
Merged

feat(chart): manage Traefik Middleware CRs from values (v0.4.0)#6
flaccid merged 3 commits into
mainfrom
feat/chart-middlewares

Conversation

@flaccid

@flaccid flaccid commented Aug 29, 2026

Copy link
Copy Markdown
Member

Renders Middleware CRs from a generic ingress.middlewares list so users no longer need a separate manifests Application for the Traefik strip-prefix middleware.

  • templates/middlewares.yaml: renders traefik.io/v1alpha1 Middleware per entry (name+spec required, spec passed through verbatim)
  • values.yaml: ingress.middlewares: [] with a strip-prefix example
  • tests/middlewares_test.yaml: 8 new helm-unittest cases
  • tests/rbac_test.yaml: fixes the pre-existing cross-namespace suite for helm-unittest v1.1.2 (containsDocument any: true)
  • scripts/validate.sh + scripts/schemas/middleware.json: kubeconform validation for the new render case
  • Chart 0.3.3 → 0.4.0 (new capability; appVersion stays 0.3.0), README + docs updated

…v0.4.0)

Allow the chart to manage Traefik Middleware CRs via a generic ingress.middlewares list instead of requiring a separate manifests Application. Includes helm-unittest coverage and a chart version bump to 0.4.0.
Rework the cross-namespace Role/RoleBinding test: containsDocument with any: true for namespace-scoped existence, assertion-level documentSelector (kind=Role, matchMany) for verb checks. Fixes the pre-existing failure under helm-unittest v1.1.2 semantics.
Document ingress.middlewares in the chart README and docs/domains.md; vendor the Traefik Middleware schema and add an ingress-traefik render case to scripts/validate.sh.
@flaccid
flaccid merged commit 9c81fdc into main Aug 29, 2026
6 checks passed
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.

1 participant