Skip to content

Commit

Permalink
Fix issue with using null when none expected of app.ingress.type
Browse files Browse the repository at this point in the history
This will mean local traefik will not be linked anymore when "none" used, matching behaviour of helm
  • Loading branch information
andytson-inviqa committed Apr 22, 2020
1 parent 6cd2462 commit b1c7202
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions _twig/docker-compose.yml/application.yml.twig
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
GITHUB_TOKEN: {{ @('github.oauth_token') }}
{% endif %}
labels:
{% if @('app.ingress.type') is null %}
{% if @('app.ingress.type') == "none" %}
- traefik.enable=false
{% else %}
- traefik.backend={{ @('workspace.name') }}
Expand All @@ -23,7 +23,7 @@
private:
aliases:
- {{ @('hostname') }}
{% if @('app.ingress.type') is not null %}
{% if @('app.ingress.type') != "none" %}
shared: {}
{% endif %}
expose:
Expand Down
2 changes: 1 addition & 1 deletion harness/attributes/common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ attributes.default:
name: http
port: 80
ingress:
# possible ingress types are standard, istio, or ~ for none
# possible ingress types are standard, istio, or none
# note istio requires a cluster that has istio configured as the ingress controller
type: standard
protocol: = @('app.default_port.protocol')
Expand Down

0 comments on commit b1c7202

Please sign in to comment.