Skip to content
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

Add command line argument to manually disable IPV6 listeners for unsupported clusters #3040

Merged
merged 13 commits into from
Sep 22, 2022

Conversation

haywoodsh
Copy link
Contributor

@haywoodsh haywoodsh commented Sep 15, 2022

Proposed changes

Add command line argument to manually disable IPV6 listeners for clusters that support IPV4 only.

Checklist

Before creating a PR, run through this checklist and mark each as complete.

  • I have read the CONTRIBUTING doc
  • I have added tests that prove my fix is effective or that my feature works
  • I have checked that all unit tests pass after adding my changes
  • I have updated necessary documentation
  • I have rebased my branch onto main
  • I will ensure my PR is targeting the main branch and pulling from my branch from my own fork

@github-actions github-actions bot added enhancement Pull requests for new features/feature enhancements documentation Pull requests/issues for documentation labels Sep 15, 2022
@haywoodsh haywoodsh force-pushed the feat/option-disabling-ipv6 branch 3 times, most recently from 1a7fba6 to 1b6fa61 Compare September 19, 2022 17:25
@@ -243,6 +243,7 @@ Parameter | Description | Default
`controller.enableLatencyMetrics` | Enable collection of latency metrics for upstreams. Requires `prometheus.create`. | false
`controller.minReadySeconds` | Specifies the minimum number of seconds for which a newly created Pod should be ready without any of its containers crashing, for it to be considered available. [docs](https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#min-ready-seconds) | 0
`controller.strategy` | Specifies the strategy used to replace old Pods by new ones. [docs](https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#strategy) | {}
`controller.disableIPV6` | Disable IPV6 listeners explicitly for nodes that do not support the IPV6 stack. | false
Copy link
Member

Choose a reason for hiding this comment

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

This entry needs to go into docs/content/installation/installation-with-helm.md also

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Documentation updated.

Comment on lines 5 to 6
{{if $upstream.LBMethod }}{{$upstream.LBMethod}};{{end}}
{{range $server := $upstream.UpstreamServers}}
Copy link
Member

Choose a reason for hiding this comment

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

Why is this indentation being changed? It was correct the way it was (it should be inline with the upstream block opened on line 3)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This was caused by the linter in my IDE. Will revert the change.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed

Comment on lines 5 to 9
{{ if $u.LoadBalancingMethod }}
{{ $u.LoadBalancingMethod }};
{{ end }}

{{ range $s := $u.Servers }}
{{ range $s := $u.Servers }}
Copy link
Member

Choose a reason for hiding this comment

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

Same comment as above - this indentation should not be changed.

Comment on lines 5 to 11
{{ if $u.LoadBalancingMethod }}
{{ $u.LoadBalancingMethod }};
{{ end }}

{{ range $s := $u.Servers }}
{{ range $s := $u.Servers }}
server {{ $s.Address }} max_fails={{ $s.MaxFails }} fail_timeout={{ $s.FailTimeout }} max_conns={{ $s.MaxConnections }};
{{ end }}
{{ end }}
Copy link
Member

Choose a reason for hiding this comment

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

Ditto re: indentation

@haywoodsh haywoodsh force-pushed the feat/option-disabling-ipv6 branch from 1b6fa61 to e99b551 Compare September 21, 2022 10:45
@codecov-commenter
Copy link

codecov-commenter commented Sep 21, 2022

Codecov Report

Merging #3040 (85facf5) into main (fcd9808) will decrease coverage by 0.00%.
The diff coverage is 45.45%.

@@            Coverage Diff             @@
##             main    #3040      +/-   ##
==========================================
- Coverage   52.31%   52.31%   -0.01%     
==========================================
  Files          58       58              
  Lines       15995    16006      +11     
==========================================
+ Hits         8368     8373       +5     
- Misses       7350     7356       +6     
  Partials      277      277              
Impacted Files Coverage Δ
cmd/nginx-ingress/flags.go 34.42% <ø> (ø)
cmd/nginx-ingress/main.go 0.00% <0.00%> (ø)
internal/configs/config_params.go 76.74% <ø> (ø)
internal/configs/version1/config.go 0.00% <ø> (ø)
internal/configs/version2/http.go 0.00% <ø> (ø)
internal/k8s/controller.go 11.10% <0.00%> (-0.02%) ⬇️
internal/configs/configmaps.go 20.37% <100.00%> (+0.16%) ⬆️
internal/configs/transportserver.go 93.81% <100.00%> (+0.03%) ⬆️
internal/configs/virtualserver.go 95.22% <100.00%> (+<0.01%) ⬆️
internal/k8s/configuration.go 95.76% <100.00%> (+<0.01%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@haywoodsh haywoodsh force-pushed the feat/option-disabling-ipv6 branch from e99b551 to ad42eb5 Compare September 21, 2022 10:54
@haywoodsh haywoodsh force-pushed the feat/option-disabling-ipv6 branch from ad42eb5 to 2fc0064 Compare September 21, 2022 10:57
@haywoodsh haywoodsh force-pushed the feat/option-disabling-ipv6 branch from a8eab57 to 23ee4e5 Compare September 21, 2022 11:26
@github-actions github-actions bot added the tests Pull requests that update tests label Sep 21, 2022
@haywoodsh haywoodsh marked this pull request as ready for review September 22, 2022 14:01
Copy link
Contributor

@vepatel vepatel left a comment

Choose a reason for hiding this comment

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

👍🏼

@haywoodsh haywoodsh enabled auto-merge (squash) September 22, 2022 16:09
Copy link
Contributor

@jjngx jjngx left a comment

Choose a reason for hiding this comment

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

👍🏻

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Pull requests/issues for documentation enhancement Pull requests for new features/feature enhancements tests Pull requests that update tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants