Working with the bundled NGINX
以下を希望される場合:
- コードの貢献を提出する
- バグの報告または修正
- 機能や改善の提案
- ドキュメントへの貢献
これらのページの英語版のガイドラインに従ってください。
このページの英語版にアクセスしてください。
NGINX
We provide a fork of NGINX with this chart that we maintain via patch files. This approach was choosen to easier upgrade NGINX chart versions and have a better overview of changes that we made.
Add a new patch
Edit the NGINX manifests like you normally would.
Create a new patch file based on the diff:
git diff charts/nginx-ingress/ > scripts/nginx-patches/00_new.patchMultiple patch files can change the same NGINX manifest files. That’s why patches need to be sorted. When adding a new patch, make sure to increment the
00_above to a number greater than the last patch we have.Commit the new changes and the patchfile.
Run
scripts/update-nginx-chart.shto validate all patches apply without any uncommited changes.
Changing an existing patch
Apply the patches that are applied before the patch you want to change. For example if you want to edit patch 05:
scripts/update-nginx-chart.sh 05Commit the current status.
git add charts/nginx-ingress git commit -m "WiP"Apply the change you want to edit.
git apply ./scripts/nginx-updates/05_*.patchEdit the NGINX manifests.
Update the patch file:
git diff charts/nginx-ingress/ > scripts/nginx-patches/05_updated.patchCommit the updated manifest and patch files.
git add charts/nginx-ingress/ scripts/ git commit --amend -m "Update patch 05"Run
scripts/update-nginx-chart.shto validate all patches apply.Commit the updated manifest and patch files.
git commit --amend --no-edit
Update the NGINX chart version
- Edit the version in
update-nginx-chart.sh. - Run
scripts/update-nginx-chart.shto validate all patches apply without any uncommited changes.