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

AGENT-909: Restructure gencrypto package #6272

Conversation

pawanpinjarkar
Copy link
Contributor

The agent installer is implementing a new auth type and could reuse the existing functionality of generating the public/private keys and JWT tokens. This change restructures the existing code for agent installer to be able to import it.

List all the issues related to this PR

  • New Feature
  • Enhancement
  • Bug fix
  • Tests
  • Documentation
  • CI/CD

What environments does this code impact?

  • Automation (CI, tools, etc)
  • Cloud
  • Operator Managed Deployments
  • None

How was this code tested?

  • assisted-test-infra environment
  • dev-scripts environment
  • Reviewer's test appreciated
  • Waiting for CI to do a full test run
  • Manual (Elaborate on how it was tested)
  • No tests needed

Checklist

  • Title and description added to both, commit and PR.
  • Relevant issues have been associated (see CONTRIBUTING guide)
  • This change does not require a documentation update (docstring, docs, README, etc)
  • Does this change include unit-tests (note that code changes require unit-tests)

Reviewers Checklist

  • Are the title and description (in both PR and commit) meaningful and clear?
  • Is there a bug required (and linked) for this change?
  • Should this PR be backported?

@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label May 6, 2024
@openshift-ci-robot
Copy link

openshift-ci-robot commented May 6, 2024

@pawanpinjarkar: This pull request references AGENT-909 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the task to target the "4.16.0" version, but no target version was set.

In response to this:

The agent installer is implementing a new auth type and could reuse the existing functionality of generating the public/private keys and JWT tokens. This change restructures the existing code for agent installer to be able to import it.

List all the issues related to this PR

  • New Feature
  • Enhancement
  • Bug fix
  • Tests
  • Documentation
  • CI/CD

What environments does this code impact?

  • Automation (CI, tools, etc)
  • Cloud
  • Operator Managed Deployments
  • None

How was this code tested?

  • assisted-test-infra environment
  • dev-scripts environment
  • Reviewer's test appreciated
  • Waiting for CI to do a full test run
  • Manual (Elaborate on how it was tested)
  • No tests needed

Checklist

  • Title and description added to both, commit and PR.
  • Relevant issues have been associated (see CONTRIBUTING guide)
  • This change does not require a documentation update (docstring, docs, README, etc)
  • Does this change include unit-tests (note that code changes require unit-tests)

Reviewers Checklist

  • Are the title and description (in both PR and commit) meaningful and clear?
  • Is there a bug required (and linked) for this change?
  • Should this PR be backported?

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 openshift-eng/jira-lifecycle-plugin repository.

@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label May 6, 2024
Copy link

openshift-ci bot commented May 6, 2024

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

@openshift-ci openshift-ci bot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label May 6, 2024
Copy link

openshift-ci bot commented May 6, 2024

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: pawanpinjarkar
Once this PR has been reviewed and has the lgtm label, please assign javipolo for approval. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found 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

@pawanpinjarkar pawanpinjarkar marked this pull request as ready for review May 6, 2024 23:23
@openshift-ci openshift-ci bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label May 6, 2024
@openshift-ci openshift-ci bot requested review from danmanor and eranco74 May 6, 2024 23:24
@pawanpinjarkar
Copy link
Contributor Author

/cc @carbonin

@openshift-ci openshift-ci bot requested a review from carbonin May 6, 2024 23:31
@pawanpinjarkar pawanpinjarkar force-pushed the restructure-gencrypto-package branch from 5b036d1 to 688f2a4 Compare May 6, 2024 23:49
Copy link

codecov bot commented May 7, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 68.27%. Comparing base (4577ef6) to head (752c749).
Report is 3 commits behind head on master.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #6272      +/-   ##
==========================================
- Coverage   68.28%   68.27%   -0.02%     
==========================================
  Files         241      241              
  Lines       35855    35855              
==========================================
- Hits        24484    24479       -5     
- Misses       9211     9213       +2     
- Partials     2160     2163       +3     
Files Coverage Δ
internal/bminventory/inventory.go 71.29% <ø> (ø)
internal/bminventory/inventory_v2_handlers.go 56.60% <ø> (ø)
internal/cluster/auth.go 78.12% <ø> (ø)
internal/common/db.go 7.14% <ø> (ø)
...nternal/controller/controllers/agent_controller.go 74.54% <ø> (ø)
internal/controller/controllers/agent_reclaimer.go 96.92% <ø> (ø)
...oller/controllers/agentserviceconfig_controller.go 85.20% <ø> (ø)
...oller/controllers/clusterdeployments_controller.go 71.93% <ø> (ø)
internal/controller/controllers/common.go 79.50% <ø> (ø)
...rnal/controller/controllers/infraenv_controller.go 64.13% <ø> (ø)
... and 4 more

... and 1 file with indirect coverage changes

@pawanpinjarkar pawanpinjarkar force-pushed the restructure-gencrypto-package branch 2 times, most recently from 2ce5a52 to be09343 Compare May 7, 2024 00:33
@pawanpinjarkar pawanpinjarkar force-pushed the restructure-gencrypto-package branch from be09343 to 752c749 Compare May 7, 2024 01:07
Copy link

openshift-ci bot commented May 7, 2024

@pawanpinjarkar: all tests passed!

Full PR test history. Your PR dashboard.

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.

@pawanpinjarkar pawanpinjarkar marked this pull request as draft May 7, 2024 04:54
@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label May 7, 2024
@pawanpinjarkar
Copy link
Contributor Author

Moving the code in pkg is not useful for installer because it can only access api, models and client packages.

@danmanor
Copy link
Contributor

danmanor commented May 8, 2024

@carbonin As continue of our talk, I think it would be best placing this pkg in a separate repository inside openshift-assisted. WDYT ?

@carbonin
Copy link
Member

carbonin commented May 8, 2024

Yes, I think breaking it out into its own repo would be best so we don't have to deal with more local modules and so that it can be easily shared with the installer folks.

@openshift-merge-robot openshift-merge-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label May 8, 2024
@openshift-merge-robot
Copy link

PR needs rebase.

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.

@danmanor
Copy link
Contributor

danmanor commented May 9, 2024

@carbonin I have created - https://issues.redhat.com/browse/MGMT-17779 to address this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. 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.

None yet

5 participants