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

E2E tests for sink: TLS key pair rotation #3395

Merged
merged 8 commits into from
Oct 18, 2023

Conversation

Leo6Leo
Copy link
Contributor

@Leo6Leo Leo6Leo commented Oct 12, 2023

Fixes #3375

Proposed Changes

  • Add the rekt test for keypair rotation for kafka sink

Bugs Found

  • TLS port 8443 is not exposed for https-container

  • In the control-plane/config/eventing-kafka-broker/100-sink/100-kafka-sink.yaml, there is no custom resource definition for the addressable

Backporting

  • Upstream
  • Midstream

Release Note

TLS port 8443 is not exposed for sink https-container (#3395)

In the control-plane/config/eventing-kafka-broker/100-sink/100-kafka-sink.yaml, there is no custom resource definition for the addressable (#3395)

@knative-prow
Copy link

knative-prow bot commented Oct 12, 2023

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@knative-prow knative-prow bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Oct 12, 2023
@knative-prow knative-prow bot requested a review from pierDipi October 12, 2023 19:17
@knative-prow knative-prow bot added area/data-plane area/test size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Oct 12, 2023
@Leo6Leo Leo6Leo changed the title E2E tests for sink: TLS key pair rotation [WIP] E2E tests for sink: TLS key pair rotation Oct 12, 2023
@codecov
Copy link

codecov bot commented Oct 12, 2023

Codecov Report

Merging #3395 (c614e98) into main (204be08) will decrease coverage by 3.09%.
Report is 3 commits behind head on main.
The diff coverage is 100.00%.

@@             Coverage Diff              @@
##               main    #3395      +/-   ##
============================================
- Coverage     61.46%   58.37%   -3.09%     
============================================
  Files           181       91      -90     
  Lines         12356     9285    -3071     
  Branches        265        0     -265     
============================================
- Hits           7594     5420    -2174     
+ Misses         4161     3431     -730     
+ Partials        601      434     -167     
Flag Coverage Δ
java-unittests ?

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
control-plane/pkg/reconciler/sink/controller.go 69.47% <100.00%> (+2.05%) ⬆️

... and 90 files with indirect coverage changes

Leo6Leo and others added 2 commits October 13, 2023 09:51
Co-authored-by: Pierangelo Di Pilato <pierdipi@redhat.com>
Co-authored-by: Pierangelo Di Pilato <pierdipi@redhat.com>
@Leo6Leo Leo6Leo marked this pull request as ready for review October 13, 2023 13:52
@Leo6Leo Leo6Leo changed the title [WIP] E2E tests for sink: TLS key pair rotation E2E tests for sink: TLS key pair rotation Oct 13, 2023
@knative-prow knative-prow bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Oct 13, 2023
@Leo6Leo
Copy link
Contributor Author

Leo6Leo commented Oct 13, 2023

/retest-required

@Leo6Leo Leo6Leo closed this Oct 13, 2023
@Leo6Leo Leo6Leo reopened this Oct 13, 2023
@Leo6Leo
Copy link
Contributor Author

Leo6Leo commented Oct 16, 2023

/retest-required

@Leo6Leo Leo6Leo changed the title E2E tests for sink: TLS key pair rotation [WIP] E2E tests for sink: TLS key pair rotation Oct 16, 2023
@knative-prow knative-prow bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Oct 16, 2023
@Leo6Leo
Copy link
Contributor Author

Leo6Leo commented Oct 18, 2023

/retest-required

@Leo6Leo Leo6Leo requested a review from pierDipi October 18, 2023 05:50
@Leo6Leo
Copy link
Contributor Author

Leo6Leo commented Oct 18, 2023

/retest-required

@Leo6Leo Leo6Leo changed the title [WIP] E2E tests for sink: TLS key pair rotation E2E tests for sink: TLS key pair rotation Oct 18, 2023
@knative-prow knative-prow bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Oct 18, 2023
Copy link
Member

@pierDipi pierDipi left a comment

Choose a reason for hiding this comment

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

/lgtm
/approve

@knative-prow knative-prow bot added lgtm Indicates that a PR is ready to be merged. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Oct 18, 2023
Copy link
Member

@pierDipi pierDipi left a comment

Choose a reason for hiding this comment

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

/lgtm
/approve

@knative-prow
Copy link

knative-prow bot commented Oct 18, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Leo6Leo, pierDipi

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@Leo6Leo
Copy link
Contributor Author

Leo6Leo commented Oct 18, 2023

/retest-required

@pierDipi
Copy link
Member

/test channel-integration-tests-ssl

@Leo6Leo
Copy link
Contributor Author

Leo6Leo commented Oct 18, 2023

/retest-required

@knative-prow knative-prow bot merged commit 660893a into knative-extensions:main Oct 18, 2023
32 of 36 checks passed
@Leo6Leo
Copy link
Contributor Author

Leo6Leo commented Oct 18, 2023

/cherry-pick release-1.11

@knative-prow-robot
Copy link
Contributor

@Leo6Leo: #3395 failed to apply on top of branch "release-1.11":

Applying: Exposing the 8443 port for https
Applying: Add the test implementation
Applying: Fix the custom resource definition
Applying: Fix the custom resource definition
Applying: Go formt and imports
Applying: Adding the configmap watcher feature store
Using index info to reconstruct a base tree...
M	control-plane/pkg/reconciler/sink/controller.go
Falling back to patching base and 3-way merge...
Auto-merging control-plane/pkg/reconciler/sink/controller.go
CONFLICT (content): Merge conflict in control-plane/pkg/reconciler/sink/controller.go
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
Patch failed at 0006 Adding the configmap watcher feature store
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".

In response to this:

/cherry-pick release-1.11

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@Cali0707
Copy link
Member

@Leo6Leo can you cherry pick this manually to release-1.11?

@Leo6Leo
Copy link
Contributor Author

Leo6Leo commented Oct 19, 2023

@Cali0707 There are some issues when merging the broker TLS keypair rotation tickets. @pierDipi mentioned that he has a PR to be merged, and after that the problem will be resolved. Then I will be manually cherry-pick on this PR just to not dealing with the merging conflicts.

Leo6Leo added a commit to Leo6Leo/eventing-kafka-broker that referenced this pull request Dec 5, 2023
* Exposing the 8443 port for https

* Add the test implementation

* Fix the custom resource definition

Co-authored-by: Pierangelo Di Pilato <pierdipi@redhat.com>

* Fix the custom resource definition

Co-authored-by: Pierangelo Di Pilato <pierdipi@redhat.com>

* Go formt and imports

* Adding the configmap watcher feature store

* Formatting issue

---------

Co-authored-by: Pierangelo Di Pilato <pierdipi@redhat.com>
Leo6Leo added a commit to Leo6Leo/eventing-kafka-broker that referenced this pull request Dec 15, 2023
* Exposing the 8443 port for https

* Add the test implementation

* Fix the custom resource definition

Co-authored-by: Pierangelo Di Pilato <pierdipi@redhat.com>

* Fix the custom resource definition

Co-authored-by: Pierangelo Di Pilato <pierdipi@redhat.com>

* Go formt and imports

* Adding the configmap watcher feature store

* Formatting issue

---------

Co-authored-by: Pierangelo Di Pilato <pierdipi@redhat.com>
openshift-merge-bot bot pushed a commit to openshift-knative/eventing-kafka-broker that referenced this pull request Dec 21, 2023
…#925)

* Using the composite prober for the sink (knative-extensions#3267)

* E2E tests for sink: TLS key pair rotation (knative-extensions#3395)

* Exposing the 8443 port for https

* Add the test implementation

* Fix the custom resource definition

Co-authored-by: Pierangelo Di Pilato <pierdipi@redhat.com>

* Fix the custom resource definition

Co-authored-by: Pierangelo Di Pilato <pierdipi@redhat.com>

* Go formt and imports

* Adding the configmap watcher feature store

* Formatting issue

---------

Co-authored-by: Pierangelo Di Pilato <pierdipi@redhat.com>

---------

Co-authored-by: Rahul kumar <68837569+Rahul-Kumar-prog@users.noreply.github.com>
Co-authored-by: Pierangelo Di Pilato <pierdipi@redhat.com>
knative-prow bot pushed a commit that referenced this pull request Jan 8, 2024
…3510)

* Using the composite prober for the sink (#3267)

* E2E tests for sink: TLS key pair rotation (#3395)

* Exposing the 8443 port for https

* Add the test implementation

* Fix the custom resource definition

Co-authored-by: Pierangelo Di Pilato <pierdipi@redhat.com>

* Fix the custom resource definition

Co-authored-by: Pierangelo Di Pilato <pierdipi@redhat.com>

* Go formt and imports

* Adding the configmap watcher feature store

* Formatting issue

---------

Co-authored-by: Pierangelo Di Pilato <pierdipi@redhat.com>

---------

Co-authored-by: Rahul kumar <68837569+Rahul-Kumar-prog@users.noreply.github.com>
Co-authored-by: Pierangelo Di Pilato <pierdipi@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. area/control-plane area/data-plane area/test lgtm Indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Eventing TLS: E2E tests for Sink TLS key pair rotation
4 participants