Skip to content

Conversation

@stevekuznetsov
Copy link
Contributor

@stevekuznetsov stevekuznetsov commented Jul 20, 2023

pkg/operator: correctly fetch CA for AWS minter

We just need to read one and only one ConfigMap, so add a Role to
let us and use a live client to just read the thing.

Signed-off-by: Steve Kuznetsov [email protected]


cmd: add pprof endpoint

Signed-off-by: Steve Kuznetsov [email protected]


*: use a global codec

The codec is global and only ever changes at compile-time, so
generally the pattern is to declare it as a package global and
intiialize it in an init() method. 30% of our runtime allocations were
building up the scheme/codec on-demand.

Signed-off-by: Steve Kuznetsov [email protected]


@openshift-ci openshift-ci bot requested review from jstuever and lleshchi July 20, 2023 12:51
@stevekuznetsov stevekuznetsov changed the title cmd: add pprof endpoint *: use a global codec Jul 20, 2023
@stevekuznetsov
Copy link
Contributor Author

Depends on #575

@codecov
Copy link

codecov bot commented Jul 20, 2023

Codecov Report

Merging #576 (7a9354b) into master (b5be125) will increase coverage by 0.19%.
The diff coverage is 76.59%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #576      +/-   ##
==========================================
+ Coverage   47.66%   47.86%   +0.19%     
==========================================
  Files          94       94              
  Lines       11696    11617      -79     
==========================================
- Hits         5575     5560      -15     
+ Misses       5494     5444      -50     
+ Partials      627      613      -14     
Impacted Files Coverage Δ
pkg/aws/utils.go 66.66% <0.00%> (+2.46%) ⬆️
pkg/azure/request.go 0.00% <0.00%> (ø)
.../cmd/provisioning/alibabacloud/create-ram-users.go 38.67% <0.00%> (+0.08%) ⬆️
pkg/cmd/provisioning/aws/create-iam-roles.go 61.72% <0.00%> (+0.40%) ⬆️
...kg/cmd/provisioning/gcp/create_service_accounts.go 55.37% <0.00%> (+0.26%) ⬆️
.../cmd/provisioning/nutanix/create_shared_secrets.go 61.53% <0.00%> (+0.79%) ⬆️
pkg/openstack/actuator.go 0.00% <ø> (ø)
pkg/ovirt/actuator.go 10.06% <ø> (+0.30%) ⬆️
pkg/cmd/provisioning/ibmcloud/service_id.go 83.54% <50.00%> (+1.23%) ⬆️
pkg/azure/actuator.go 54.04% <66.66%> (+1.18%) ⬆️
... and 6 more

Signed-off-by: Steve Kuznetsov <[email protected]>
The codec *is* global and only ever changes at compile-time, so
generally the pattern is to declare it as a package global and
intiialize it in an init() method. 30% of our runtime allocations were
building up the scheme/codec on-demand.

Signed-off-by: Steve Kuznetsov <[email protected]>
@abutcher
Copy link
Member

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Jul 20, 2023
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jul 20, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: abutcher, stevekuznetsov

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

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jul 20, 2023
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jul 20, 2023

@stevekuznetsov: all tests passed!

Full PR test history. Your PR dashboard.

Details

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. I understand the commands that are listed here.

@openshift-merge-robot openshift-merge-robot merged commit a6d615c into openshift:master Jul 20, 2023
ming1013 pushed a commit to ming1013/cloud-credential-operator that referenced this pull request Dec 15, 2025
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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants