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 node addr type to pod to host test #2028

Merged
merged 1 commit into from
Nov 10, 2023

Conversation

darox
Copy link
Contributor

@darox darox commented Oct 11, 2023

This commit changes the output format of
the pod-to-host test cases.

From:

Action [allow-all-except-world/pod-to-host/ping-ipv4-1

to:

Action [allow-all-except-world/pod-to-host/ping-ipv4-internal-ip

by utilizing the field Type v1.NodeAddressType

With this change, a user can immediately see if the ping to the ExternalIP or InternalIP of the node is failing. Without the need to run kubectl get po -o wide separately.

@darox darox requested a review from a team as a code owner October 11, 2023 15:19
@darox darox requested a review from thorn3r October 11, 2023 15:19
@darox darox temporarily deployed to ci October 11, 2023 15:19 — with GitHub Actions Inactive
@squeed
Copy link
Contributor

squeed commented Nov 8, 2023

@darox there's a golang-ci lint failure; can you take a look?

@darox
Copy link
Contributor Author

darox commented Nov 8, 2023

@darox there's a golang-ci lint failure; can you take a look?

Sure. I will have a look.

@darox darox force-pushed the add-node-addr-type-to-pod-to-host-test branch from 807df7c to 739180d Compare November 9, 2023 09:26
@darox
Copy link
Contributor Author

darox commented Nov 9, 2023

@darox there's a golang-ci lint failure; can you take a look?

fixed

connectivity/tests/host.go Outdated Show resolved Hide resolved
This commit changes the output format of
the `pod-to-host` test cases.

From:
```
Action [allow-all-except-world/pod-to-host/ping-ipv4-1
```
to:
```
Action [allow-all-except-world/pod-to-host/ping-ipv4-internal-ip
```

by utilizing the `field Type v1.NodeAddressType`

With this change, a user can immediately see if the
ping to the ExternalIP or InternalIP of the node is failing.
Without the need to run `kubectl get po -o wide` separately.

Signed-off-by: darox <[email protected]>
@darox darox force-pushed the add-node-addr-type-to-pod-to-host-test branch from a196023 to 741b502 Compare November 10, 2023 11:23
Copy link
Member

@tklauser tklauser left a comment

Choose a reason for hiding this comment

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

Thanks @darox!

@tklauser tklauser merged commit 8a2621a into cilium:main Nov 10, 2023
19 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.

4 participants