-
Notifications
You must be signed in to change notification settings - Fork 42
TT-7086 - feat(helm): Add hostNetwork option #537
Conversation
@rdcwaldrop1 thank you for this great contribution. It looks great but we need to change the approach for this problem a bit. Let me briefly talk about how we generate helm manifests.
What we do for creating a helm manifest is to run For example, in order to update Let me be clear, assume you want to add an option to the helm chart to configure {"CONTROLLER_MANAGER_HEALTH_PROBE_BINDING_ADDR", healthProbe}, to replace occurrences of const healthProbe = `:{{ .Values.healthProbePort }}` in the same pre_helm.go file. So that the apiVersion: v1
data:
controller_manager_config.yaml: |
apiVersion: controller-runtime.sigs.k8s.io/v1alpha1
kind: ControllerManagerConfig
health:
healthProbeBindAddress: CONTROLLER_MANAGER_HEALTH_PROBE_BINDING_ADDR
#rest of the file ... and pre_helm.go script will replace all occurrences of I hope I am clear about how to approach the solution. Please let me know if you need further help. I am happy to help. Again, thank you for coming up with this PR 🙏 |
a78e1fa
to
f9339f5
Compare
Sorry, for the slow turnaround on this one @buraksekili. I believe I have made the changes you suggested in order to render the |
no worries @rdcwaldrop1 :) you can mark the PR whenever you feel it is ready for review - that's fine for me. Also, I skim through your changes and I see lots of changes in helm/crds/crds.yaml and most of the changes seem to be related to formatting. $ kustomize version
{Version:kustomize/v4.4.1 GitCommit:b2d65ddc98e09187a8e38adc27c30bab078c1dbf BuildDate:2021-11-11T23:27:14Z GoOs:darwin GoArch:arm64}
$ go version
go version go1.17.5 darwin/arm64 |
Cool, I'll mark as ready for review and try regenerating with a matching version of kustomize. |
I've bumped my tool versions and still seem to be getting the same formatting issues. Would it be best to just remove |
i appreciate if you can. sorry for confusion. |
hi @rdcwaldrop1, do you need some guidance on the PR? I am more than happy to help if you need it. |
Hi! In speaking with our solutions engineer he mentioned that this was something that was fixed in the next release. Maybe I misunderstood. If this is still something needed by the project I'm happy to finish this out. |
hi again @rdcwaldrop1 , sorry for the back and forth. We, as a team, want to enable this feature on Tyk Operator. |
Thats fantastic! I can absolutely finish this out. Glad to have the opportunity. I'll make the updates mentioned above today. |
8feed60
to
a22229a
Compare
Add the option to turn host networking on. With the host networking option on it is likely users will also want to control port selection so as not to collide with other pods running with hostNetwork mode enabled. To accomodate port selection the ports have been parameterized in the template as well
This file has been removed |
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.
LGTM!
thank you for your contribution @rdcwaldrop1! we really appreciate your time and effort. Your changes will be available in v0.14.0 :) |
Thanks! It was great working with you. I look forward to contributing more in the future. |
Add the option to turn host networking on. With the host networking option on it is likely users will also want to control port selection so as not to collide with other pods running with hostNetwork mode enabled. To accomodate port selection the ports have been parameterized in the template as well Co-authored-by: Pranshu <104971506+singhpr@users.noreply.github.com> Co-authored-by: Burak Sekili <buraksekili@gmail.com>
Description
Add the option to turn host networking on. With the host networking option on it is likely users will also want to control port selection so as not to collide with other pods running with hostNetwork mode enabled. To accomodate port selection the ports have been parameterized in the template as well.
Related Issue
Resolves #532 - TT-7086
Test Coverage For This Change
Screenshots (if appropriate)
Types of changes
Checklist
master
!master
branch (left side). Also, it would be best if you started your change off our latestmaster
.make manifests
make helm
gofmt -s -w .
go vet ./...
golangci-lint run