Skip to content

Commit

Permalink
Merge pull request #91 from imgproxy/v0.8.20
Browse files Browse the repository at this point in the history
v0.8.20
  • Loading branch information
nepalez authored Sep 20, 2022
2 parents b2896bd + 5edf0ed commit e5fa077
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.8.20 (2022-09-20)

* Add new setting `features.ingress.pathSuffix`

## 0.8.19 (2022-07-31)

* Fix broken env variables for imgproxy formats
Expand Down
1 change: 1 addition & 0 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,7 @@ Deployment specific options.
|**resources.ingress.enabled**|When true, enables ingress resource for imgproxy|`false`|
|**resources.ingress.health.whitelist**|Comma separated string of CIDR addresses that are allowed to access `/health` url of imgproxy||
|**resources.ingress.hosts**|Hostnames for the ingress resource to use|`["example.com"]`|
|**resources.ingress.pathSuffix**|Suffix to be added to path prefix, for example wildcard '*' for AWS balancer||
|**resources.ingress.tls**|TLS config array||
|**resources.ingress.tls[].hosts**|Hostnames this tls secret is used for|`["example.com"]`|
|**resources.ingress.tls[].secretName**|Name of the k8s Secret resource which stores crt & key for the ingress resource||
Expand Down
2 changes: 1 addition & 1 deletion imgproxy/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v1
description: A fast and secure standalone server for resizing and converting remote images. The main principles of imgproxy are simplicity, speed, and security.
name: imgproxy
icon: https://cdn.rawgit.com/imgproxy/imgproxy/master/logo.svg
version: 0.8.19
version: 0.8.20
appVersion: 3.7.0
keywords:
- imgproxy
Expand Down
1 change: 1 addition & 0 deletions imgproxy/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,7 @@ Deployment specific options.
|**resources.ingress.enabled**|When true, enables ingress resource for imgproxy|`false`|
|**resources.ingress.health.whitelist**|Comma separated string of CIDR addresses that are allowed to access `/health` url of imgproxy||
|**resources.ingress.hosts**|Hostnames for the ingress resource to use|`["example.com"]`|
|**resources.ingress.pathSuffix**|Suffix to be added to path prefix, for example wildcard '*' for AWS balancer||
|**resources.ingress.pathType**|Set the pathType for ingress rules explicitly (use `Prefix` for AWS ELB Controllers)|`ImplementationSpecific`|
|**resources.ingress.tls**|TLS config array||
|**resources.ingress.tls[].hosts**|Hostnames this tls secret is used for|`["example.com"]`|
Expand Down
7 changes: 7 additions & 0 deletions imgproxy/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -102,3 +102,10 @@ https://docs.aws.amazon.com/eks/latest/userguide/specify-service-account-role.ht
{{- $custom := $.Values.resources.deployment.resources | default dict -}}
{{- merge $custom $default | toYaml -}}
{{- end -}}

{{/* Combine ingress path from server.pathPrefix and ingress.pathSuffix */}}
{{- define "imgproxy.ingressPath" -}}
{{- $prefix := ($.Values.features.server.pathPrefix | default "" | trimSuffix "/") -}}
{{- $suffix := ($.Values.resources.ingress.pathSuffix | default "" | trimPrefix "/") -}}
{{- printf "%s/%s" $prefix $suffix -}}
{{- end -}}
2 changes: 1 addition & 1 deletion imgproxy/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ spec:
http:
paths:
{{- $name := include "imgproxy.fullname" $ }}
{{- $path := default "/" $.Values.features.server.pathPrefix }}
{{- $path := include "imgproxy.ingressPath" $ }}
{{- if eq $apiVersion "networking.k8s.io/v1" }}
- path: {{ $path | quote }}
pathType: {{ $pathType | quote }}
Expand Down
3 changes: 3 additions & 0 deletions imgproxy/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,9 @@ resources:

ingress:
enabled: false
# Add this suffix to ingress host paths. For example, use '*' for AWS load balancer
# This is a shortcut for the issue: https://github.com/kubernetes-sigs/aws-load-balancer-controller/issues/667
pathSuffix:
# the custom name for the ingress resource
className:
health:
Expand Down

0 comments on commit e5fa077

Please sign in to comment.