Add basic kube-apiserver policy matching e2e test #18333
Add basic kube-apiserver policy matching e2e test #18333pchaigno merged 3 commits intocilium:masterfrom
Conversation
It was not clear that the Curl*() helpers were expecting the first parameter to be a format string (fmt.Sprintf()) if multiple parameters are passed (for additional args to `curl`). Signed-off-by: Chris Tarazi <chris@isovalent.com>
|
/test Job 'Cilium-PR-K8s-1.21-kernel-5.4' failed and has not been observed before, so may be related to your PR: Click to show.Test NameFailure OutputIf it is a flake, comment Job 'Cilium-PR-K8s-1.23-kernel-net-next' failed and has not been observed before, so may be related to your PR: Click to show.Test NameFailure OutputIf it is a flake, comment |
7547b98 to
7c22439
Compare
|
/test Job 'Cilium-PR-K8s-1.21-kernel-5.4' failed and has not been observed before, so may be related to your PR: Click to show.Test NameFailure OutputIf it is a flake, comment Job 'Cilium-PR-K8s-1.22-kernel-4.19' failed and has not been observed before, so may be related to your PR: Click to show.Test NameFailure OutputIf it is a flake, comment |
7c22439 to
ab7b7d5
Compare
|
/test Job 'Cilium-PR-K8s-GKE' failed and has not been observed before, so may be related to your PR: Click to show.Test NameFailure OutputIf it is a flake, comment Job 'Cilium-PR-K8s-1.23-kernel-net-next' failed and has not been observed before, so may be related to your PR: Click to show.Test NameFailure OutputIf it is a flake, comment |
This commit makes a few changes to the Policies suite which will be useful in the subsequent commit. * Extract common functions from Policies suite to be used outside of the Describe block * Converge existing testCurlFromOutside() usage from the Services suite Signed-off-by: Chris Tarazi <chris@isovalent.com>
ab7b7d5 to
256bb94
Compare
|
/test Job 'Cilium-PR-Runtime-net-next' failed and has not been observed before, so may be related to your PR: Click to show.Test NameFailure OutputIf it is a flake, comment Job 'Cilium-PR-K8s-1.16-kernel-4.9' failed and has not been observed before, so may be related to your PR: Click to show.Test NameFailure OutputIf it is a flake, comment |
256bb94 to
731a78c
Compare
|
/test |
pchaigno
left a comment
There was a problem hiding this comment.
Only minor comments from me.
There was a problem hiding this comment.
Why are those three configs needed?
There was a problem hiding this comment.
I can speak for the last two, but not the first. The last two will help with the sysdump investigation if a test fails. These are the same options configured in the first Describe block as well.
There was a problem hiding this comment.
Not specific to this PR then, but maybe we should enable those options for all tests in helpers/kubectl.go rather than in specific Describes. hubble.enabled=true is already the default there. debug.verbose is sneakily set to flow in the definition of helper function DeployCiliumAndDNS 😬
There was a problem hiding this comment.
Good point, I didn't notice this. I'll followup to clean this up when #18431 is merged. (If that merged before this one, then I'll rebase, otherwise it'll just be another followup PR.)
be1b0a1 to
c9ff7d3
Compare
|
/test Job 'Cilium-PR-K8s-GKE' failed and has not been observed before, so may be related to your PR: Click to show.Test NameFailure OutputIf it is a flake, comment |
|
/mlh new-flake Cilium-PR-K8s-GKE 👍 created #18374 |
jrajahalme
left a comment
There was a problem hiding this comment.
Small nit on a comment only :-)
This test covers both cases where the kube-apiserver is within the cluster or outside of the cluster. This commit adds a second Describe block to the Policies, see comment on top of the second Describe block for why. Signed-off-by: Chris Tarazi <chris@isovalent.com>
c9ff7d3 to
e4b670c
Compare
|
Pushed only a change to the comment as mentioned by #18333 (comment). No need to re-run CI. Marking ready to merge. |
Updates: #17829