-
Notifications
You must be signed in to change notification settings - Fork 321
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Test: Support
TestConnectInject
on OpenShift + CNI
* When `-enable-openshift` and `-enable-cni` are set, configure the CNI settings correctly for OpenShift, which must look like: ``` connectInject: cni: enabled: true multus: true cniBinDir: /var/lib/cni/bin cniNetDir: /etc/kubernetes/cni/net. ``` * Add `-cni-namespace` flag to support deploying the CNI into a separate namespace. This is needed to testing with the CNI when restricted PSA enforcement is enabled on the namespace where Consul is deployed because the CNI cannot run in a PSA-restricted namespace. * Add `-app-namespace` and `-secondary-app-namespace` flags to support deploying test applications into a specific namespace. This is needed to test with restricted PSA enforcement enabled on the Consul namespace because our test applications require a bit more privilege. * Update the ConnectHelper to configure the NetworkAttachmentDefinition required to be compatible with the CNI on OpenShift. * Add fixtures for static-client and static-server for OpenShift. This is necessary because the deployment configs must reference the network attachment definition when using the CNI on OpenShift. * Update tests in the `acceptance/tests/connect` directory to either run or skip based on -enable-cni and -enable-openshift (all but two cases are skipped for now).
- Loading branch information
Paul Glass
committed
Jul 14, 2023
1 parent
45d3af0
commit cf9715f
Showing
9 changed files
with
136 additions
and
27 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
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
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
Oops, something went wrong.