Skip to content

Cert rotation test does not use specific ingress namespace - #15331

Merged
knative-prow[bot] merged 1 commit into
knative:mainfrom
mgencur:internal_tls_fix
Jun 17, 2024
Merged

knative-prow[bot] merged 1 commit into
knative:mainfrom
mgencur:internal_tls_fix

Conversation

@mgencur

@mgencur mgencur commented Jun 17, 2024

Copy link
Copy Markdown
Contributor

Fixes #15276

Proposed Changes

  • The routing-serving-certs are deployed in system namespace. This is where both Serving and Kourier controller expects them. The Serving components and Kourier might be possibly deployed in different system namespaces (like downstream) but in upstream it's the same namespace.

Release Note


@knative-prow knative-prow Bot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Jun 17, 2024
@knative-prow
knative-prow Bot requested review from ReToCode and skonto June 17, 2024 06:33
@codecov

codecov Bot commented Jun 17, 2024

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.79%. Comparing base (1f7cc48) to head (2f5bb44).

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #15331      +/-   ##
==========================================
+ Coverage   84.78%   84.79%   +0.01%     
==========================================
  Files         218      218              
  Lines       13504    13504              
==========================================
+ Hits        11449    11451       +2     
+ Misses       1688     1687       -1     
+ Partials      367      366       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

checkEndpointState(t, clients, url)

t.Log("Deleting secret in ingress namespace")
if err := clients.KubeClient.CoreV1().Secrets(ingressNS).Delete(context.Background(), config.ServingRoutingCertName, v1.DeleteOptions{}); err != nil {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

It seems the error is: system_internal_tls_test.go:231: Failed to delete secret routing-serving-certs in ingress namespace: secrets "routing-serving-certs" not found. We could skip that error with if apierrs.IsNotFound(err) but I guess we want to keep upstream clean from the downstream assumptions.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Right. I wanted to keep upstream clean. Thanks

@skonto

skonto commented Jun 17, 2024

Copy link
Copy Markdown
Contributor

/test ?

@knative-prow

knative-prow Bot commented Jun 17, 2024

Copy link
Copy Markdown

@skonto: The following commands are available to trigger required jobs:

  • /test build-tests
  • /test contour-latest
  • /test contour-tls
  • /test gateway-api-latest
  • /test istio-latest-no-mesh
  • /test istio-latest-no-mesh-tls
  • /test kourier-stable
  • /test kourier-stable-tls
  • /test unit-tests
  • /test upgrade-tests

The following commands are available to trigger optional jobs:

  • /test gateway-api-latest-and-contour
  • /test https
  • /test istio-latest-mesh
  • /test istio-latest-mesh-short
  • /test istio-latest-mesh-tls
  • /test performance-tests

Use /test all to run the following jobs that were automatically triggered:

  • build-tests_serving_main
  • istio-latest-no-mesh-tls_serving_main
  • istio-latest-no-mesh_serving_main
  • unit-tests_serving_main
  • upgrade-tests_serving_main
Details

In response to this:

/test ?

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-sigs/prow repository.

@skonto

skonto commented Jun 17, 2024

Copy link
Copy Markdown
Contributor

/test kourier-stable

@skonto

skonto commented Jun 17, 2024

Copy link
Copy Markdown
Contributor

/test kourier-stable-tls

@skonto

skonto commented Jun 17, 2024

Copy link
Copy Markdown
Contributor

/lgtm
/approve

@knative-prow knative-prow Bot added the lgtm Indicates that a PR is ready to be merged. label Jun 17, 2024
@knative-prow

knative-prow Bot commented Jun 17, 2024

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: mgencur, skonto

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

The pull request process is described here

Details 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

@knative-prow knative-prow Bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jun 17, 2024
@skonto

skonto commented Jun 17, 2024

Copy link
Copy Markdown
Contributor

/hold for tests

@knative-prow knative-prow Bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jun 17, 2024
@mgencur

mgencur commented Jun 17, 2024

Copy link
Copy Markdown
Contributor Author

/test kourier-stable

Unrelated error.

@mgencur

mgencur commented Jun 17, 2024

Copy link
Copy Markdown
Contributor Author

/unhold

@knative-prow knative-prow Bot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jun 17, 2024
@knative-prow
knative-prow Bot merged commit 8d768f5 into knative:main Jun 17, 2024
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. lgtm Indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TestTLSCertificateRotation is flakey

2 participants