Skip to content

Commit

Permalink
[Helm] Don't try to install Traefik Middleware when Traefik is disabl…
Browse files Browse the repository at this point in the history
…ed (cvat-ai#7184)

This PR is complementary to cvat-ai#7132. 

cvat-ai#7132 updated ingress templates to work with `traefik.enabled=false` and
`ingress.enabled=true` values.

However the templates in `templates/analytics/middlewares` path lead to
creation of resources of kind `Middleware`, which is a Traefik CRD. Helm
install fails if Traefik is not installed on the cluster.

Changing the top-level conditional from `ingress.enabled` to
`traefik.enabled` solves the issue.
  • Loading branch information
ozen authored and amjadsaadeh committed Dec 14, 2023
1 parent b3974ae commit 290a2fc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
### Fixed

- \[Helm\] Fixed installing Traefik Middleware even if Traefik is disabled in the values (<https://github.com/opencv/cvat/pull/7184>)
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if and .Values.ingress.enabled .Values.analytics.enabled }}
{{- if and .Values.traefik.enabled .Values.analytics.enabled }}

apiVersion: traefik.containo.us/v1alpha1
kind: Middleware
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if and .Values.ingress.enabled .Values.analytics.enabled }}
{{- if and .Values.traefik.enabled .Values.analytics.enabled }}

apiVersion: traefik.containo.us/v1alpha1
kind: Middleware
Expand Down

0 comments on commit 290a2fc

Please sign in to comment.