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

feat: add libc6-compat to fix dynamic linking issue, add ca-certificates #353

Conversation

ramekris3163
Copy link
Collaborator

add libc6-compat library to fix dynamic linking issue in alpine for provider built with ubuntu. add ca-certificates to add well known cers to the truststore.

… for provider built with ubuntu. add ca-certificates to add well known cers to the truststore.

Signed-off-by: raradhakrishnan <raradhakrishnan@guidewire.com>
@ramekris3163 ramekris3163 force-pushed the feat/fixalpinedynamiclinkingissueforprovider branch from cf4c0c8 to a4f8b26 Compare February 6, 2023 21:44
@codecov
Copy link

codecov bot commented Feb 6, 2023

Codecov Report

Base: 79.31% // Head: 80.36% // Increases project coverage by +1.04% 🎉

Coverage data is based on head (a4f8b26) compared to base (3a96f68).
Patch coverage: 89.84% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #353      +/-   ##
==========================================
+ Coverage   79.31%   80.36%   +1.04%     
==========================================
  Files          23       23              
  Lines        1750     1935     +185     
==========================================
+ Hits         1388     1555     +167     
- Misses        278      290      +12     
- Partials       84       90       +6     
Flag Coverage Δ
e2e ?
unit 80.36% <89.84%> (+1.04%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
controllers/configuration_controller.go 79.55% <89.84%> (+2.19%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

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

@chivalryq
Copy link
Member

chivalryq commented Feb 7, 2023

@ramekris3163 What are the problems the two lib solved? Can you give a more detailed explanation?

@ramekris3163
Copy link
Collaborator Author

@ramekris3163 What are the problems the two lib solved? Can you give a more detailed explanation?

The libc6-compat apk allows alpine to support dynamic linking in libraries. For ex when a provider is built in ubuntu , by default it has dynamic linking of libraries, when we try to use the library in alpine it fails like this hashicorp/terraform-provider-helm#59 and to fix this we need to add libc6-compat library.

The ca-certificates apk adds well known certificates to the trust store of the container so that it will be able to connect to SSL with root CA Certificates.

@chivalryq
Copy link
Member

Got it. LGTM!

@chivalryq chivalryq changed the title feat: add libc6-compat library to fix dynamic linking issue in alpine… feat: add libc6-compat to fix dynamic linking issue, add ca-certificates Feb 7, 2023
@chivalryq chivalryq merged commit 7a102d3 into kubevela:master Feb 7, 2023
chivalryq added a commit that referenced this pull request Feb 8, 2023
chivalryq added a commit that referenced this pull request Feb 8, 2023
…ertificates (#353)"

This reverts commit 7a102d3.

Signed-off-by: Qiaozp <qiaozhongpei.qzp@alibaba-inc.com>
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.

None yet

3 participants