Skip to content

Commit bcc2d18

Browse files
committed
Move the helm chart to charts (nginx#1862)
Problem: The helm chart is not in a known path and it's hard to find. Solution: Move the helm chart to the standard charts directory
1 parent 04785d3 commit bcc2d18

File tree

24 files changed

+23
-23
lines changed

24 files changed

+23
-23
lines changed

.github/labeler.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,4 @@ tests:
2929
helm-chart:
3030
- head-branch: ['^helm/', '^helm-chart/']
3131
- changed-files:
32-
- any-glob-to-any-file: ['deploy/helm-chart/**/*']
32+
- any-glob-to-any-file: ['charts/**/*']

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ jobs:
299299
- name: Deploy Kubernetes
300300
id: k8s
301301
run: |
302-
kube_config=${{ github.workspace }}/deploy/helm-chart/kube-${{ github.run_id }}-helm
302+
kube_config=${{ github.workspace }}/kube-${{ github.run_id }}-helm
303303
make create-kind-cluster KIND_KUBE_CONFIG=${kube_config}
304304
echo "KUBECONFIG=${kube_config}" >> "$GITHUB_ENV"
305305
kind load docker-image ghcr.io/nginxinc/nginx-gateway-fabric:${{ steps.ngf-meta.outputs.version }} ghcr.io/nginxinc/nginx-gateway-fabric/nginx:${{ steps.nginx-meta.outputs.version }}
@@ -321,7 +321,7 @@ jobs:
321321
--set nginx.image.pullPolicy=Never
322322
--set service.type=NodePort
323323
-n nginx-gateway
324-
working-directory: ${{ github.workspace }}/deploy/helm-chart
324+
working-directory: ${{ github.workspace }}/charts/nginx-gateway-fabric
325325

326326
publish-helm:
327327
name: Package and Publish Helm Chart
@@ -345,7 +345,7 @@ jobs:
345345
- name: Package
346346
id: package
347347
run: |
348-
output=$(helm package ${{ github.ref_type != 'tag' && '--app-version edge --version 0.0.0-edge' || '' }} deploy/helm-chart)
348+
output=$(helm package ${{ github.ref_type != 'tag' && '--app-version edge --version 0.0.0-edge' || '' }} charts/nginx-gateway-fabric)
349349
echo "path=$(basename -- $(echo $output | cut -d: -f2))" >> $GITHUB_OUTPUT
350350
351351
- name: Push to GitHub Container Registry

.github/workflows/release-pr.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
id: vars
3636
run: |
3737
# TODO(lucacome): improve this and maybe use appVersion instead of version if we switch to tags
38-
echo "current_version=$(yq '.version' <deploy/helm-chart/Chart.yaml)" >> $GITHUB_OUTPUT
38+
echo "current_version=$(yq '.version' <charts/nginx-gateway-fabric/Chart.yaml)" >> $GITHUB_OUTPUT
3939
4040
- name: Find and Replace
4141
uses: jacobtomlinson/gha-find-replace@a51bbcd94d000df9ca0fcb54ec8be69aad8374b0 # v3.0.2
@@ -50,23 +50,23 @@ jobs:
5050
with:
5151
find: "edge"
5252
replace: ${{ inputs.version }}
53-
include: "deploy/helm-chart/*.yaml"
53+
include: "charts/nginx-gateway-fabric/*.yaml"
5454
regex: false
5555

5656
- name: Find and Replace
5757
uses: jacobtomlinson/gha-find-replace@a51bbcd94d000df9ca0fcb54ec8be69aad8374b0 # v3.0.2
5858
with:
5959
find: ${{ steps.vars.outputs.current_version }}
6060
replace: ${{ inputs.version }}
61-
include: "deploy/helm-chart/*.yaml"
61+
include: "charts/nginx-gateway-fabric/*.yaml"
6262
regex: false
6363

6464
- name: Find and Replace
6565
uses: jacobtomlinson/gha-find-replace@a51bbcd94d000df9ca0fcb54ec8be69aad8374b0 # v3.0.2
6666
with:
6767
find: "Always"
6868
replace: "IfNotPresent"
69-
include: "deploy/helm-chart/*.yaml"
69+
include: "charts/nginx-gateway-fabric/*.yaml"
7070
regex: false
7171

7272
- name: Generate manifests and changelog

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ repos:
99
- id: end-of-file-fixer
1010
- id: check-yaml
1111
args: [--allow-multiple-documents]
12-
exclude: (^deploy/helm-chart/templates)
12+
exclude: (^charts/nginx-gateway-fabric/templates)
1313
- id: check-added-large-files
1414
- id: check-merge-conflict
1515
- id: check-case-conflict

.yamllint.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ yaml-files:
44
- "*.yml"
55

66
ignore:
7-
- deploy/helm-chart/templates/
7+
- charts/nginx-gateway-fabric
88
- config/crd/bases/
99
- .github/workflows/
1010

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ VERSION = edge
33
GIT_COMMIT = $(shell git rev-parse HEAD || echo "unknown")
44
DATE = $(shell date -u +"%Y-%m-%dT%H:%M:%SZ")
55
MANIFEST_DIR = $(CURDIR)/deploy/manifests
6-
CHART_DIR = $(CURDIR)/deploy/helm-chart
6+
CHART_DIR = $(CURDIR)/charts/nginx-gateway-fabric
77
NGINX_CONF_DIR = internal/mode/static/nginx/conf
88
NJS_DIR = internal/mode/static/nginx/modules/src
99
NGINX_DOCKER_BUILD_PLUS_ARGS = --secret id=nginx-repo.crt,src=nginx-repo.crt --secret id=nginx-repo.key,src=nginx-repo.key
@@ -194,12 +194,12 @@ install-ngf-local-build-with-plus: build-images-with-plus load-images-with-plus
194194
.PHONY: helm-install-local
195195
helm-install-local: ## Helm install NGF on configured kind cluster with local images. To build, load, and install with helm run make install-ngf-local-build.
196196
./conformance/scripts/install-gateway.sh $(GW_API_VERSION) $(INSTALL_WEBHOOK)
197-
helm install dev ./deploy/helm-chart --create-namespace --wait --set service.type=NodePort --set nginxGateway.image.repository=$(PREFIX) --set nginxGateway.image.tag=$(TAG) --set nginxGateway.image.pullPolicy=Never --set nginx.image.repository=$(NGINX_PREFIX) --set nginx.image.tag=$(TAG) --set nginx.image.pullPolicy=Never -n nginx-gateway
197+
helm install dev $(CHART_DIR) --create-namespace --wait --set service.type=NodePort --set nginxGateway.image.repository=$(PREFIX) --set nginxGateway.image.tag=$(TAG) --set nginxGateway.image.pullPolicy=Never --set nginx.image.repository=$(NGINX_PREFIX) --set nginx.image.tag=$(TAG) --set nginx.image.pullPolicy=Never -n nginx-gateway
198198

199199
.PHONY: helm-install-local-with-plus
200200
helm-install-local-with-plus: ## Helm install NGF with NGINX Plus on configured kind cluster with local images. To build, load, and install with helm run make install-ngf-local-build-with-plus.
201201
./conformance/scripts/install-gateway.sh $(GW_API_VERSION) $(INSTALL_WEBHOOK)
202-
helm install dev ./deploy/helm-chart --create-namespace --wait --set service.type=NodePort --set nginxGateway.image.repository=$(PREFIX) --set nginxGateway.image.tag=$(TAG) --set nginxGateway.image.pullPolicy=Never --set nginx.image.repository=$(NGINX_PLUS_PREFIX) --set nginx.image.tag=$(TAG) --set nginx.image.pullPolicy=Never --set nginx.plus=true -n nginx-gateway
202+
helm install dev $(CHART_DIR) --create-namespace --wait --set service.type=NodePort --set nginxGateway.image.repository=$(PREFIX) --set nginxGateway.image.tag=$(TAG) --set nginxGateway.image.pullPolicy=Never --set nginx.image.repository=$(NGINX_PLUS_PREFIX) --set nginx.image.tag=$(TAG) --set nginx.image.pullPolicy=Never --set nginx.plus=true -n nginx-gateway
203203

204204
# Debug Targets
205205
.PHONY: debug-build

deploy/helm-chart/Chart.yaml renamed to charts/nginx-gateway-fabric/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ type: application
55
version: 1.2.0
66
appVersion: "edge"
77
home: https://github.com/nginxinc/nginx-gateway-fabric
8-
icon: https://raw.githubusercontent.com/nginxinc/nginx-gateway-fabric/main/deploy/helm-chart/chart-icon.png
8+
icon: https://raw.githubusercontent.com/nginxinc/nginx-gateway-fabric/main/charts/nginx-gateway-fabric/chart-icon.png
99
sources:
10-
- https://github.com/nginxinc/nginx-gateway-fabric/tree/main/deploy/helm-chart
10+
- https://github.com/nginxinc/nginx-gateway-fabric/tree/main/charts/nginx-gateway-fabric
1111
keywords:
1212
- kubernetes
1313
- gateway
File renamed without changes.

0 commit comments

Comments
 (0)