Skip to content
This repository has been archived by the owner on Nov 4, 2020. It is now read-only.

Made changed to ingress controller so that it can take in multiple hosts #135

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

gabatwork
Copy link

Hi guys, I noticed that in the ingress controller for this I wasn't able to add multiple hosts so I made this quick change. Hope it's all alright

Copy link
Contributor

@spirosoik spirosoik left a comment

Choose a reason for hiding this comment

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

A few comments. Thanks for your contribution

@@ -1,6 +1,6 @@
apiVersion: "v1"
description: A chart for Lenses
name: lenses
version: 3.0.6
appVersion: 3.0.6
Copy link
Contributor

Choose a reason for hiding this comment

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

hi @gabatwork , app version reflects Lenses version so it should not be changed

@@ -17,21 +17,25 @@ metadata:
{{- end }}
spec:
rules:
- host: {{ .Values.ingress.host }}
{{- range .Values.ingress.hosts }}
Copy link
Contributor

Choose a reason for hiding this comment

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

what's the goal you are trying to achieve with multiple hosts? Because it's a breaking change and I think we can treat this only with a minor bump of the version and have backward compatible helm charts.

Copy link
Author

Choose a reason for hiding this comment

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

My need was to basically add CNAMEs. I wanted to deploy an API into production and make sure everything was working before replacing the current API. For this I would need two hosts as follows: api.prod.example.com and api.example.com

Copy link
Contributor

Choose a reason for hiding this comment

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

ok got it. let's have this with a backward compatible way then.

Copy link
Author

Choose a reason for hiding this comment

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

sounds good, should be fine now

@spirosoik
Copy link
Contributor

@gabatwork just rebase to have the latest changes and please squash the commits to keep only 1 commit.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants