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

Remove the dependency of openssl library in antrea-controller image #5856

Merged
merged 1 commit into from
Jan 18, 2024

Conversation

jainpulkit22
Copy link
Contributor

TestAntreaApiserverTLSConfig, this e2e test requires the openssl command to be installed in antrea-controller and antrea-agent pod, but adding openssl library to the antrea-controller image unnecessarily increases the size of the antrea-controller image, so I have leveraged the the openssl library which is already installed in the antrea-agent image to perform the e2e test.

test/e2e/tls_test.go Outdated Show resolved Hide resolved
test/e2e/tls_test.go Outdated Show resolved Hide resolved
Copy link
Member

@tnqn tnqn left a comment

Choose a reason for hiding this comment

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

do we install openssl just for the test? If yes, we can also remove it from antrea-agent and deploy a toolbox pod to check both agent and controller API.

test/e2e/tls_test.go Outdated Show resolved Hide resolved
@jainpulkit22
Copy link
Contributor Author

do we install openssl just for the test? If yes, we can also remove it from antrea-agent and deploy a toolbox pod to check both agent and controller API.

No, we are not installing openssl only for test, openssl is getting installed as a part of the ovs image(so, ovs might have some dependency on openssl), and we are using the ovs image when building the antrea-agent image so openssl is already a part of antrea-agent, so for that reason I used the above approach.

test/e2e/tls_test.go Outdated Show resolved Hide resolved
test/e2e/tls_test.go Outdated Show resolved Hide resolved
test/e2e/tls_test.go Outdated Show resolved Hide resolved
test/e2e/tls_test.go Outdated Show resolved Hide resolved
test/e2e/tls_test.go Outdated Show resolved Hide resolved
test/e2e/tls_test.go Outdated Show resolved Hide resolved
test/e2e/tls_test.go Outdated Show resolved Hide resolved
test/e2e/tls_test.go Outdated Show resolved Hide resolved
test/e2e/tls_test.go Outdated Show resolved Hide resolved
test/e2e/tls_test.go Outdated Show resolved Hide resolved
test/e2e/tls_test.go Outdated Show resolved Hide resolved
test/e2e/tls_test.go Outdated Show resolved Hide resolved
test/e2e/tls_test.go Outdated Show resolved Hide resolved
test/e2e/tls_test.go Outdated Show resolved Hide resolved
test/e2e/tls_test.go Outdated Show resolved Hide resolved
test/e2e/tls_test.go Outdated Show resolved Hide resolved
test/e2e/tls_test.go Outdated Show resolved Hide resolved
test/e2e/tls_test.go Outdated Show resolved Hide resolved
test/e2e/tls_test.go Outdated Show resolved Hide resolved
Copy link
Contributor

@antoninbas antoninbas left a comment

Choose a reason for hiding this comment

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

couple more small comments, otherwise LGTM

test/e2e/tls_test.go Outdated Show resolved Hide resolved
test/e2e/tls_test.go Outdated Show resolved Hide resolved
Configured a toolbox pod to run the  e2e test
TestAntreaApiserverTLSConfig.

Signed-off-by: Pulkit Jain <jainpu@vmware.com>
Copy link
Contributor

@antoninbas antoninbas left a comment

Choose a reason for hiding this comment

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

LGTM

@antoninbas
Copy link
Contributor

/test-all

Copy link
Member

@tnqn tnqn left a comment

Choose a reason for hiding this comment

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

LGTM

@tnqn tnqn merged commit a6228c1 into antrea-io:main Jan 18, 2024
48 of 53 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants