-
Notifications
You must be signed in to change notification settings - Fork 181
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Configure the router deployment to enable IPv4, IPv6, or both in accordance with the cluster network config. * manifests/00-cluster-role.yaml: Allow the operator to get the networks config resource. * pkg/manifests/bindata.go: Regenerate. * pkg/operator/controller/ingress/controller.go (Reconcile): Get the cluster network config and pass it to ensureIngressController. (ensureIngressController): Add parameter for network config. Pass the network config to ensureRouterDeployment. * pkg/operator/controller/ingress/deployment.go (ensureRouterDeployment): Add parameter for network config. Pass the network config to desiredRouterDeployment. (desiredRouterDeployment): Add parameter for network config. Use the network config to determine whether the cluster network uses IPv4, IPv6, or both, and set the ROUTER_IP_V4_V6_MODE environment variable accordingly. * pkg/operator/controller/ingress/deployment_test.go (TestDesiredRouterDeployment): Define a network config for the test input, and verify that desiredRouterDeployment sets ROUTER_IP_V4_V6_MODE as appropriate.
- Loading branch information
Showing
5 changed files
with
95 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -79,6 +79,7 @@ rules: | |
- ingresses | ||
- dnses | ||
- apiservers | ||
- networks | ||
verbs: | ||
- get | ||
|
||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters