-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(ingress) Experimental Native Ingress #316
Changes from 3 commits
badc232
9136b81
a795d72
bece9d5
018e469
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
rootfs/opt/router/sbin/router | ||
rootfs/opt/router/sbin/router.* | ||
vendor/ | ||
coverage.txt | ||
coverage.txt | ||
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
{{- if not .Values.global.experimental_native_ingress }} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think I may have said something to this effect once before, but I don't think this works... I think this repo probably does not require any changes to support the native ingress initiative. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I added the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ah. I am sorry for a bit of mis-understanding here. I'd forgotten that I understand what you're trying to do here. Regardless of whether someone installs the router chart directly or installs the Workflow chart, which includes the router chart, a value for Although I understand what you're trying to do and agree it would work, I think there are a couple smells here... and I think there's a much cleaner alternative. The smells: The router chart now has the ability, when installed, depending on the value of As I've said before, I think the router requires no changes to support this experiment. (Neither Go nor chart changes are in order.) All that needs to be done is for the Workflow chart to conditionally include or not include the router chart. Until re-reading the Helm documentation this evening, I'd hoped, but hadn't known for sure that was possible... it is... This section of the documentation shows two techniques that could be used to conditionally include or exclude the router chart in its entirety from a Workflow installation: There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Point: @knova I think I misunderstood the context earlier. I see @krancour's point that this makes a change to the router's own chart that allows it to be disabled completely, which seems wrong in the context of the router chart standing alone. We do intend the individual component charts to be useful separate from Workflow itself if at all possible. Counterpoint: changing to use the new tags and conditions in Helm requires Workflow to specify @krancour would you be amenable to allowing this smelly-but-consistent change into router if we follow up with a set of PRs that embrace Helm tags & conditions that remove the currently enclosing There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks @krancour, no worries. We do intend to revert this change at some point in the future in favor of the cleaner tags & conditionals approach. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sorry my code smells |
||
apiVersion: extensions/v1beta1 | ||
kind: Deployment | ||
metadata: | ||
|
@@ -88,3 +89,4 @@ spec: | |
port: 9090 | ||
initialDelaySeconds: 1 | ||
timeoutSeconds: 1 | ||
{{ end }}{{/* if not .Values.global.experimental_native_ingress */}} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
{{- if not .Values.global.experimental_native_ingress }} | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
name: deis-router | ||
labels: | ||
heritage: deis | ||
{{ end }}{{/* if not .Values.global.experimental_native_ingress */}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like this removes the trailing newline in this file. Can we leave that be?