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

include lua-upstream-nginx-module in Nginx build #2163

Merged
merged 1 commit into from
Mar 3, 2018

Conversation

ElvinEfendi
Copy link
Member

What this PR does / why we need it:
This is a follow up for #2155. We need lua-ngx-upstream-module to expose related Nginx C API to Lua land. This lets us implement any custom load balancing algorithm using Lua.

Which issue this PR fixes:
n/a

Special notes for your reviewer:
Here is https://github.com/Shopify/ingress/pull/16/files#diff-b00d77a6df9c8c05a483044b08e6bc50R2 how I use this API.

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Mar 3, 2018
@k8s-reviewable
Copy link

This change is Reviewable

@k8s-ci-robot k8s-ci-robot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Mar 3, 2018
@ElvinEfendi
Copy link
Member Author

/assign @aledbf

@k8s-ci-robot k8s-ci-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Mar 3, 2018
libperl-dev \
cmake \
util-linux \
lua5.1 liblua5.1-0 liblua5.1-dev \
Copy link
Member Author

Choose a reason for hiding this comment

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

As we are using Luajit now these are not needed. I moved to the rest of the packages to Dockerfile so that it is cached.

Copy link
Member

Choose a reason for hiding this comment

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

Please don't remove this because luajit is not available in ppc64le and s390x

lua-cjson \
|| exit 1

ln -s /usr/lib/x86_64-linux-gnu/liblua5.1.so /usr/lib/liblua.so
Copy link
Member Author

Choose a reason for hiding this comment

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

I deleted this as well because if the same reason as above

@codecov-io
Copy link

codecov-io commented Mar 3, 2018

Codecov Report

Merging #2163 into master will increase coverage by <.01%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2163      +/-   ##
==========================================
+ Coverage   36.44%   36.45%   +<.01%     
==========================================
  Files          69       69              
  Lines        4862     4861       -1     
==========================================
  Hits         1772     1772              
+ Misses       2820     2819       -1     
  Partials      270      270
Impacted Files Coverage Δ
internal/ingress/controller/nginx.go 3.95% <0%> (+0.01%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3e07e06...add6041. Read the comment docs.

@aledbf
Copy link
Member

aledbf commented Mar 3, 2018

@ElvinEfendi please don't change the package installation from the build.sh to the Dockerfile. We always want the latest packages and moving the files only increases the size of the image.

@k8s-ci-robot k8s-ci-robot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Mar 3, 2018
@ElvinEfendi
Copy link
Member Author

@aledbf I reverted the extra changes and The PR is now only about adding lua-ngx-upstream-module.

@aledbf
Copy link
Member

aledbf commented Mar 3, 2018

@ElvinEfendi I think you also removed the lua-upstream-nginx-module make install.

@ElvinEfendi ElvinEfendi force-pushed the lua-ngx-upstream-module branch from add6041 to 898aac5 Compare March 3, 2018 16:31
@ElvinEfendi
Copy link
Member Author

@aledbf should be good now :)

@aledbf
Copy link
Member

aledbf commented Mar 3, 2018

/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: aledbf, ElvinEfendi

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

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Mar 3, 2018
@aledbf
Copy link
Member

aledbf commented Mar 3, 2018

@ElvinEfendi thanks!

@aledbf aledbf merged commit 164bb7b into kubernetes:master Mar 3, 2018
@ElvinEfendi ElvinEfendi deleted the lua-ngx-upstream-module branch March 3, 2018 16:45
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. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants