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

Added Support for K_CA_CERTS in the heartbeats #6920

Merged
merged 4 commits into from
May 5, 2023

Conversation

vishal-chdhry
Copy link
Member

Signed-off-by: Vishal Choudhary sendtovishalchoudhary@gmail.com
Fixes #6917

The cmd/heartbeats component now supports Eventing TLS by using the K_CA_CERTS environment variable in client.

Proposed Changes

  • 🧹 Update or clean up current behavior
  • Added K_CA_CERTS env variable support
  • Added support for eventingtls in heartbeats

Pre-review Checklist

  • At least 80% unit test coverage
  • E2E tests for any new behavior
  • Docs PR for any user-facing impact
  • Spec PR for any new API feature
  • Conformance test for any change to the spec

Release Note

The ApiServerSource controller now sets the K_CA_CERTS environment variable when creating the adapter and the sink has CACerts defined.

Docs

Signed-off-by: Vishal Choudhary <sendtovishalchoudhary@gmail.com>
@knative-prow knative-prow bot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label May 5, 2023
@knative-prow knative-prow bot requested review from lberk and lionelvillard May 5, 2023 10:53
Signed-off-by: Vishal Choudhary <sendtovishalchoudhary@gmail.com>
@vishal-chdhry
Copy link
Member Author

/cc @pierDipi

@knative-prow knative-prow bot requested a review from pierDipi May 5, 2023 10:55
@codecov
Copy link

codecov bot commented May 5, 2023

Codecov Report

Patch coverage has no change and project coverage change: -0.06 ⚠️

Comparison is base (6cf9397) 79.79% compared to head (3279ae0) 79.74%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6920      +/-   ##
==========================================
- Coverage   79.79%   79.74%   -0.06%     
==========================================
  Files         244      244              
  Lines       12702    12706       +4     
==========================================
- Hits        10136    10132       -4     
- Misses       2065     2071       +6     
- Partials      501      503       +2     

see 1 file with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

cmd/heartbeats/main.go Outdated Show resolved Hide resolved
cmd/heartbeats/main.go Outdated Show resolved Hide resolved
cmd/heartbeats/main.go Outdated Show resolved Hide resolved
Signed-off-by: Vishal Choudhary <sendtovishalchoudhary@gmail.com>
@vishal-chdhry
Copy link
Member Author

@pierDipi are these errors related?

cmd/heartbeats/main.go Outdated Show resolved Hide resolved
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 the lgtm Indicates that a PR is ready to be merged. label May 5, 2023
@knative-prow
Copy link

knative-prow bot commented May 5, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: pierDipi, Vishal-Chdhry

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

@knative-prow knative-prow bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label May 5, 2023
@knative-prow knative-prow bot merged commit f92a05b into knative:main May 5, 2023
34 of 36 checks passed
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/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Eventing TLS: support K_CA_CERTS in heartbeats
2 participants