正式なドキュメントは英語版であり、この日本語訳はAI支援翻訳により作成された参考用のものです。日本語訳の一部の内容は人間によるレビューがまだ行われていないため、翻訳のタイミングにより英語版との間に差異が生じることがあります。最新かつ正確な情報については、英語版をご参照ください。

Working with the bundled NGINX

一貫した開発プロセスとドキュメントを確保するため、GitLabへのすべての貢献は英語で提出する必要があります。そのため、GitLabへの貢献に関するドキュメント(https://docs.gitlab.com/development/に掲載)も英語でのみ提供されています。

以下を希望される場合:

  • コードの貢献を提出する
  • バグの報告または修正
  • 機能や改善の提案
  • ドキュメントへの貢献

これらのページの英語版のガイドラインに従ってください。

このページの英語版にアクセスしてください。

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

  1. Edit the NGINX manifests like you normally would.

  2. Create a new patch file based on the diff:

    git diff charts/nginx-ingress/ > scripts/nginx-patches/00_new.patch

    Multiple 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.

  3. Commit the new changes and the patchfile.

  4. Run scripts/update-nginx-chart.sh to validate all patches apply without any uncommited changes.

Changing an existing patch

  1. 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 05
  2. Commit the current status.

    git add charts/nginx-ingress
    git commit -m "WiP"
  3. Apply the change you want to edit.

    git apply ./scripts/nginx-updates/05_*.patch
  4. Edit the NGINX manifests.

  5. Update the patch file:

    git diff charts/nginx-ingress/ > scripts/nginx-patches/05_updated.patch
  6. Commit the updated manifest and patch files.

    git add charts/nginx-ingress/ scripts/
    git commit --amend -m "Update patch 05"
  7. Run scripts/update-nginx-chart.sh to validate all patches apply.

  8. Commit the updated manifest and patch files.

    git commit --amend --no-edit

Update the NGINX chart version

  1. Edit the version in update-nginx-chart.sh.
  2. Run scripts/update-nginx-chart.sh to validate all patches apply without any uncommited changes.