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

add informer client code to instance manager generated by codegen #448

Merged
merged 7 commits into from
Sep 10, 2024

Conversation

yuxuanzhu0214
Copy link
Contributor

@yuxuanzhu0214 yuxuanzhu0214 commented Sep 9, 2024

Added informer client code using codegen so component can import client informer code from instance manager.

fixes: #445

@yuxuanzhu0214 yuxuanzhu0214 requested review from a team as code owners September 9, 2024 23:11
Copy link

codecov bot commented Sep 9, 2024

Codecov Report

Attention: Patch coverage is 0% with 2 lines in your changes missing coverage. Please review.

Project coverage is 50.36%. Comparing base (8c0eeab) to head (e3a6b34).
Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
api/instancemgr/v1alpha1/groupversion_info.go 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #448      +/-   ##
==========================================
- Coverage   50.38%   50.36%   -0.02%     
==========================================
  Files          33       34       +1     
  Lines        5216     5218       +2     
==========================================
  Hits         2628     2628              
- Misses       2439     2441       +2     
  Partials      149      149              

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

dependabot bot and others added 6 commits September 9, 2024 17:06
Signed-off-by: Yuxuan Zhu <yuxuan_zhu@intuit.com>
Signed-off-by: Yuxuan Zhu <yuxuan_zhu@intuit.com>
Signed-off-by: Yuxuan Zhu <yuxuan_zhu@intuit.com>
…rate

Signed-off-by: Yuxuan Zhu <yuxuan_zhu@intuit.com>
Signed-off-by: Yuxuan Zhu <yuxuan_zhu@intuit.com>
@@ -1,7 +1,7 @@
package controllers

import (
v1alpha "github.com/keikoproj/instance-manager/api/v1alpha1"
v1alpha "github.com/keikoproj/instance-manager/api/instancemgr/v1alpha1"
Copy link
Contributor

Choose a reason for hiding this comment

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

why change the directory structure?

Copy link
Member

@ZihanJiang96 ZihanJiang96 Sep 10, 2024

Choose a reason for hiding this comment

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

because we are using the open source code generator to generate the clientset/informer, and they are expecting the apis should have the following directory structure:
api(s)/$group/$version

Copy link
Member

@ZihanJiang96 ZihanJiang96 left a comment

Choose a reason for hiding this comment

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

lgtm

@yuxuanzhu0214 yuxuanzhu0214 merged commit 3d4b6db into keikoproj:master Sep 10, 2024
3 of 5 checks passed
@yuxuanzhu0214 yuxuanzhu0214 deleted the informer-client branch September 10, 2024 18:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create an informer in instance manager to cache custom resources changes
3 participants