Skip to content

Commit fd8ccaf

Browse files
committed
Update directory structure
Problem: Now that the original provisioner mode has been removed, we don't need the nested `mode/static` directory structure. The naming no longer makes sense. Solution: Updated `mode/static` directory to `controller`, and moved some of the `framework` packages into `controller`. Other packages in `framework` were left alone since many of them are general enough for "controller building" use.
1 parent b7c7c2d commit fd8ccaf

File tree

291 files changed

+1298
-1371
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

291 files changed

+1298
-1371
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,8 @@ jobs:
149149
sbom: true
150150
provenance: mode=max
151151
build-args: |
152-
NJS_DIR=internal/mode/static/nginx/modules/src
153-
NGINX_CONF_DIR=internal/mode/static/nginx/conf
152+
NJS_DIR=internal/controller/nginx/modules/src
153+
NGINX_CONF_DIR=internal/controller/nginx/conf
154154
BUILD_AGENT=gha
155155
secrets: |
156156
${{ contains(inputs.image, 'plus') && format('"nginx-repo.crt={0}"', secrets.NGINX_CRT) || '' }}

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ jobs:
119119
node-version-file: .nvmrc
120120

121121
- name: Run tests
122-
run: npm --prefix ${{ github.workspace }}/internal/mode/static/nginx/modules install-ci-test
122+
run: npm --prefix ${{ github.workspace }}/internal/controller/nginx/modules install-ci-test
123123

124124
- name: Upload coverage reports to Codecov
125125
uses: codecov/codecov-action@18283e04ce6e62d37312384ff67231eb8fd56d24 # v5.4.3

.github/workflows/conformance.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,8 @@ jobs:
106106
cache-from: type=gha,scope=${{ inputs.image }}
107107
pull: true
108108
build-args: |
109-
NJS_DIR=internal/mode/static/nginx/modules/src
110-
NGINX_CONF_DIR=internal/mode/static/nginx/conf
109+
NJS_DIR=internal/controller/nginx/modules/src
110+
NGINX_CONF_DIR=internal/controller/nginx/conf
111111
BUILD_AGENT=gha
112112
113113
- name: Update Go Modules

.github/workflows/functional.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,8 @@ jobs:
100100
cache-from: type=gha,scope=${{ inputs.image }}
101101
pull: true
102102
build-args: |
103-
NJS_DIR=internal/mode/static/nginx/modules/src
104-
NGINX_CONF_DIR=internal/mode/static/nginx/conf
103+
NJS_DIR=internal/controller/nginx/modules/src
104+
NGINX_CONF_DIR=internal/controller/nginx/conf
105105
BUILD_AGENT=gha
106106
107107
- name: Setup license file for plus

.github/workflows/helm.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ jobs:
8080
cache-from: type=gha,scope=${{ inputs.image }}
8181
pull: true
8282
build-args: |
83-
NJS_DIR=internal/mode/static/nginx/modules/src
84-
NGINX_CONF_DIR=internal/mode/static/nginx/conf
83+
NJS_DIR=internal/controller/nginx/modules/src
84+
NGINX_CONF_DIR=internal/controller/nginx/conf
8585
BUILD_AGENT=gha
8686
8787
- name: Install cloud-provider-kind

.github/workflows/lint.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ jobs:
5858
id: prettier-run
5959
uses: rutajdash/prettier-cli-action@d42c4325a3b344f3bd4be482bc34de521998d557 # v1.0.2
6060
with:
61-
config_path: ${{ github.workspace }}/internal/mode/static/nginx/modules/.prettierrc
62-
file_pattern: ${{ github.workspace }}/internal/mode/static/nginx/modules/**/*.js
61+
config_path: ${{ github.workspace }}/internal/controller/nginx/modules/.prettierrc
62+
file_pattern: ${{ github.workspace }}/internal/controller/nginx/modules/**/*.js
6363
prettier_version: 3.3.3 # renovate: datasource=npm depName=prettier
6464

6565
- name: Prettier Output

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ tests/**/*.csv
3737
node_modules/
3838

3939
# JS test coverage
40-
internal/mode/static/nginx/modules/coverage
40+
internal/controller/nginx/modules/coverage
4141

4242
# MacOS Finder
4343
.DS_Store

.gitleaksignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
68d1f6eb80d23c8650c11629459dd6a06c986ca1:internal/state/graph/graph_test.go:private-key:44
44
890fddb787ff3560b9b743647a36b649d498ae51:internal/state/graph/secret_test.go:private-key:35
55
890fddb787ff3560b9b743647a36b649d498ae51:internal/state/change_processor_test.go:private-key:211
6-
internal/mode/static/state/graph/config_maps_test.go:private-key:35
6+
internal/controller/state/graph/config_maps_test.go:private-key:35

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
VERSION = edge
33
SELF_DIR := $(dir $(abspath $(lastword $(MAKEFILE_LIST))))
44
CHART_DIR = $(SELF_DIR)charts/nginx-gateway-fabric
5-
NGINX_CONF_DIR = internal/mode/static/nginx/conf
6-
NJS_DIR = internal/mode/static/nginx/modules/src
5+
NGINX_CONF_DIR = internal/controller/nginx/conf
6+
NJS_DIR = internal/controller/nginx/modules/src
77
KIND_CONFIG_FILE = $(SELF_DIR)config/cluster/kind-cluster.yaml
88
NGINX_DOCKER_BUILD_PLUS_ARGS = --secret id=nginx-repo.crt,src=$(SELF_DIR)nginx-repo.crt --secret id=nginx-repo.key,src=$(SELF_DIR)nginx-repo.key
99
BUILD_AGENT = local
@@ -202,7 +202,7 @@ unit-test: ## Run unit tests for the go code
202202
.PHONY: njs-unit-test
203203
njs-unit-test: ## Run unit tests for the njs httpmatches module
204204
docker run --rm -w /modules \
205-
-v $(CURDIR)/internal/mode/static/nginx/modules:/modules/ \
205+
-v $(CURDIR)/internal/controller/nginx/modules:/modules/ \
206206
node:${NODE_VERSION} \
207207
/bin/bash -c "npm ci && npm test && npm run clean"
208208

cmd/gateway/commands.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ import (
2020
"sigs.k8s.io/controller-runtime/pkg/log"
2121
ctlrZap "sigs.k8s.io/controller-runtime/pkg/log/zap"
2222

23+
"github.com/nginx/nginx-gateway-fabric/internal/controller"
24+
"github.com/nginx/nginx-gateway-fabric/internal/controller/config"
25+
"github.com/nginx/nginx-gateway-fabric/internal/controller/licensing"
26+
ngxConfig "github.com/nginx/nginx-gateway-fabric/internal/controller/nginx/config"
2327
"github.com/nginx/nginx-gateway-fabric/internal/framework/file"
24-
"github.com/nginx/nginx-gateway-fabric/internal/mode/static"
25-
"github.com/nginx/nginx-gateway-fabric/internal/mode/static/config"
26-
"github.com/nginx/nginx-gateway-fabric/internal/mode/static/licensing"
27-
ngxConfig "github.com/nginx/nginx-gateway-fabric/internal/mode/static/nginx/config"
2828
)
2929

3030
// These flags are shared by multiple commands.
@@ -259,7 +259,7 @@ func createControllerCommand() *cobra.Command {
259259
NGINXSCCName: nginxSCCName.value,
260260
}
261261

262-
if err := static.StartManager(conf); err != nil {
262+
if err := controller.StartManager(conf); err != nil {
263263
return fmt.Errorf("failed to start control loop: %w", err)
264264
}
265265

cmd/gateway/commands_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
"github.com/spf13/cobra"
1111
"github.com/spf13/pflag"
1212

13-
"github.com/nginx/nginx-gateway-fabric/internal/mode/static/config"
13+
"github.com/nginx/nginx-gateway-fabric/internal/controller/config"
1414
)
1515

1616
type flagTestCase struct {

cmd/gateway/initialize.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ import (
99

1010
"github.com/go-logr/logr"
1111

12+
"github.com/nginx/nginx-gateway-fabric/internal/controller/licensing"
13+
"github.com/nginx/nginx-gateway-fabric/internal/controller/nginx/config"
1214
"github.com/nginx/nginx-gateway-fabric/internal/framework/file"
13-
"github.com/nginx/nginx-gateway-fabric/internal/mode/static/licensing"
14-
"github.com/nginx/nginx-gateway-fabric/internal/mode/static/nginx/config"
1515
)
1616

1717
const (

cmd/gateway/initialize_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ import (
1111
"github.com/go-logr/logr"
1212
. "github.com/onsi/gomega"
1313

14+
"github.com/nginx/nginx-gateway-fabric/internal/controller/licensing/licensingfakes"
15+
"github.com/nginx/nginx-gateway-fabric/internal/controller/nginx/config/configfakes"
16+
"github.com/nginx/nginx-gateway-fabric/internal/controller/state/dataplane"
1417
"github.com/nginx/nginx-gateway-fabric/internal/framework/file"
1518
"github.com/nginx/nginx-gateway-fabric/internal/framework/file/filefakes"
1619
"github.com/nginx/nginx-gateway-fabric/internal/framework/helpers"
17-
"github.com/nginx/nginx-gateway-fabric/internal/mode/static/licensing/licensingfakes"
18-
"github.com/nginx/nginx-gateway-fabric/internal/mode/static/nginx/config/configfakes"
19-
"github.com/nginx/nginx-gateway-fabric/internal/mode/static/state/dataplane"
2020
)
2121

2222
func TestInitialize_OSS(t *testing.T) {

internal/mode/static/config_updater.go renamed to internal/controller/config_updater.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package static
1+
package controller
22

33
import (
44
"encoding/json"

internal/mode/static/config_updater_test.go renamed to internal/controller/config_updater_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package static
1+
package controller
22

33
import (
44
"errors"
@@ -11,8 +11,8 @@ import (
1111
"k8s.io/client-go/tools/record"
1212

1313
ngfAPI "github.com/nginx/nginx-gateway-fabric/apis/v1alpha1"
14+
"github.com/nginx/nginx-gateway-fabric/internal/controller/controllerfakes"
1415
"github.com/nginx/nginx-gateway-fabric/internal/framework/helpers"
15-
"github.com/nginx/nginx-gateway-fabric/internal/mode/static/staticfakes"
1616
)
1717

1818
func TestUpdateControlPlane(t *testing.T) {
@@ -75,7 +75,7 @@ func TestUpdateControlPlane(t *testing.T) {
7575
t.Parallel()
7676
g := NewWithT(t)
7777

78-
fakeLogSetter := &staticfakes.FakeLogLevelSetter{
78+
fakeLogSetter := &controllerfakes.FakeLogLevelSetter{
7979
SetLevelStub: func(_ string) error {
8080
return test.setLevelErr
8181
},
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package static_test
1+
package controller_test
22

33
import (
44
"testing"
@@ -7,8 +7,8 @@ import (
77
. "github.com/onsi/gomega"
88
)
99

10-
func TestStatic(t *testing.T) {
10+
func TestController(t *testing.T) {
1111
t.Parallel()
1212
RegisterFailHandler(Fail)
13-
RunSpecs(t, "Static Suite")
13+
RunSpecs(t, "Controller Suite")
1414
}

internal/mode/static/staticfakes/fake_log_level_setter.go renamed to internal/controller/controllerfakes/fake_log_level_setter.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

internal/controller/doc.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/*
2+
Package controller contains all the packages that relate to the controller implementation of NGF.
3+
*/
4+
package controller

internal/mode/static/handler.go renamed to internal/controller/handler.go

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package static
1+
package controller
22

33
import (
44
"context"
@@ -18,20 +18,19 @@ import (
1818
gatewayv1 "sigs.k8s.io/gateway-api/apis/v1"
1919

2020
ngfAPI "github.com/nginx/nginx-gateway-fabric/apis/v1alpha1"
21+
ngfConfig "github.com/nginx/nginx-gateway-fabric/internal/controller/config"
22+
"github.com/nginx/nginx-gateway-fabric/internal/controller/licensing"
23+
"github.com/nginx/nginx-gateway-fabric/internal/controller/nginx/agent"
24+
ngxConfig "github.com/nginx/nginx-gateway-fabric/internal/controller/nginx/config"
25+
"github.com/nginx/nginx-gateway-fabric/internal/controller/provisioner"
26+
"github.com/nginx/nginx-gateway-fabric/internal/controller/state"
27+
"github.com/nginx/nginx-gateway-fabric/internal/controller/state/dataplane"
28+
"github.com/nginx/nginx-gateway-fabric/internal/controller/state/graph"
29+
"github.com/nginx/nginx-gateway-fabric/internal/controller/state/resolver"
30+
"github.com/nginx/nginx-gateway-fabric/internal/controller/status"
2131
"github.com/nginx/nginx-gateway-fabric/internal/framework/controller"
2232
"github.com/nginx/nginx-gateway-fabric/internal/framework/events"
2333
"github.com/nginx/nginx-gateway-fabric/internal/framework/helpers"
24-
frameworkStatus "github.com/nginx/nginx-gateway-fabric/internal/framework/status"
25-
ngfConfig "github.com/nginx/nginx-gateway-fabric/internal/mode/static/config"
26-
"github.com/nginx/nginx-gateway-fabric/internal/mode/static/licensing"
27-
"github.com/nginx/nginx-gateway-fabric/internal/mode/static/nginx/agent"
28-
ngxConfig "github.com/nginx/nginx-gateway-fabric/internal/mode/static/nginx/config"
29-
"github.com/nginx/nginx-gateway-fabric/internal/mode/static/provisioner"
30-
"github.com/nginx/nginx-gateway-fabric/internal/mode/static/state"
31-
"github.com/nginx/nginx-gateway-fabric/internal/mode/static/state/dataplane"
32-
"github.com/nginx/nginx-gateway-fabric/internal/mode/static/state/graph"
33-
"github.com/nginx/nginx-gateway-fabric/internal/mode/static/state/resolver"
34-
"github.com/nginx/nginx-gateway-fabric/internal/mode/static/status"
3534
)
3635

3736
type handlerMetricsCollector interface {
@@ -48,7 +47,7 @@ type eventHandlerConfig struct {
4847
// metricsCollector collects metrics for this controller.
4948
metricsCollector handlerMetricsCollector
5049
// statusUpdater updates statuses on Kubernetes resources.
51-
statusUpdater frameworkStatus.GroupUpdater
50+
statusUpdater status.GroupUpdater
5251
// processor is the state ChangeProcessor.
5352
processor state.ChangeProcessor
5453
// serviceResolver resolves Services to Endpoints.
@@ -351,7 +350,7 @@ func (h *eventHandlerImpl) updateStatuses(ctx context.Context, gr *graph.Graph,
351350
)
352351

353352
reqs := make(
354-
[]frameworkStatus.UpdateRequest,
353+
[]status.UpdateRequest,
355354
0,
356355
len(gcReqs)+len(routeReqs)+len(polReqs)+len(ngfPolReqs)+len(snippetsFilterReqs),
357356
)
@@ -445,7 +444,7 @@ func (h *eventHandlerImpl) updateControlPlaneAndSetStatus(
445444
cpUpdateRes.Error = err
446445
}
447446

448-
var reqs []frameworkStatus.UpdateRequest
447+
var reqs []status.UpdateRequest
449448

450449
req := status.PrepareNginxGatewayStatus(cfg, metav1.Now(), cpUpdateRes)
451450
if req != nil {

internal/mode/static/handler_test.go renamed to internal/controller/handler_test.go

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package static
1+
package controller
22

33
import (
44
"context"
@@ -20,22 +20,22 @@ import (
2020
gatewayv1 "sigs.k8s.io/gateway-api/apis/v1"
2121

2222
ngfAPI "github.com/nginx/nginx-gateway-fabric/apis/v1alpha1"
23+
"github.com/nginx/nginx-gateway-fabric/internal/controller/config"
24+
"github.com/nginx/nginx-gateway-fabric/internal/controller/licensing/licensingfakes"
25+
"github.com/nginx/nginx-gateway-fabric/internal/controller/metrics/collectors"
26+
"github.com/nginx/nginx-gateway-fabric/internal/controller/nginx/agent"
27+
"github.com/nginx/nginx-gateway-fabric/internal/controller/nginx/agent/agentfakes"
28+
agentgrpcfakes "github.com/nginx/nginx-gateway-fabric/internal/controller/nginx/agent/grpc/grpcfakes"
29+
"github.com/nginx/nginx-gateway-fabric/internal/controller/nginx/config/configfakes"
30+
"github.com/nginx/nginx-gateway-fabric/internal/controller/provisioner/provisionerfakes"
31+
"github.com/nginx/nginx-gateway-fabric/internal/controller/state/dataplane"
32+
"github.com/nginx/nginx-gateway-fabric/internal/controller/state/graph"
33+
"github.com/nginx/nginx-gateway-fabric/internal/controller/state/statefakes"
34+
"github.com/nginx/nginx-gateway-fabric/internal/controller/status"
35+
"github.com/nginx/nginx-gateway-fabric/internal/controller/status/statusfakes"
2336
"github.com/nginx/nginx-gateway-fabric/internal/framework/controller"
2437
"github.com/nginx/nginx-gateway-fabric/internal/framework/events"
2538
"github.com/nginx/nginx-gateway-fabric/internal/framework/helpers"
26-
"github.com/nginx/nginx-gateway-fabric/internal/framework/status/statusfakes"
27-
"github.com/nginx/nginx-gateway-fabric/internal/mode/static/config"
28-
"github.com/nginx/nginx-gateway-fabric/internal/mode/static/licensing/licensingfakes"
29-
"github.com/nginx/nginx-gateway-fabric/internal/mode/static/metrics/collectors"
30-
"github.com/nginx/nginx-gateway-fabric/internal/mode/static/nginx/agent"
31-
"github.com/nginx/nginx-gateway-fabric/internal/mode/static/nginx/agent/agentfakes"
32-
agentgrpcfakes "github.com/nginx/nginx-gateway-fabric/internal/mode/static/nginx/agent/grpc/grpcfakes"
33-
"github.com/nginx/nginx-gateway-fabric/internal/mode/static/nginx/config/configfakes"
34-
"github.com/nginx/nginx-gateway-fabric/internal/mode/static/provisioner/provisionerfakes"
35-
"github.com/nginx/nginx-gateway-fabric/internal/mode/static/state/dataplane"
36-
"github.com/nginx/nginx-gateway-fabric/internal/mode/static/state/graph"
37-
"github.com/nginx/nginx-gateway-fabric/internal/mode/static/state/statefakes"
38-
"github.com/nginx/nginx-gateway-fabric/internal/mode/static/status"
3939
)
4040

4141
var _ = Describe("eventHandler", func() {

internal/mode/static/health.go renamed to internal/controller/health.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package static
1+
package controller
22

33
import (
44
"errors"

internal/mode/static/health_test.go renamed to internal/controller/health_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package static
1+
package controller
22

33
import (
44
"testing"

internal/mode/static/licensing/collector.go renamed to internal/controller/licensing/collector.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import (
77
"github.com/go-logr/logr"
88
"sigs.k8s.io/controller-runtime/pkg/client"
99

10-
"github.com/nginx/nginx-gateway-fabric/internal/mode/static/state/dataplane"
11-
"github.com/nginx/nginx-gateway-fabric/internal/mode/static/telemetry"
10+
"github.com/nginx/nginx-gateway-fabric/internal/controller/state/dataplane"
11+
"github.com/nginx/nginx-gateway-fabric/internal/controller/telemetry"
1212
)
1313

1414
//go:generate go tool counterfeiter -generate

internal/mode/static/licensing/collector_test.go renamed to internal/controller/licensing/collector_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ import (
99
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
1010
"sigs.k8s.io/controller-runtime/pkg/client/fake"
1111

12+
"github.com/nginx/nginx-gateway-fabric/internal/controller/licensing"
13+
"github.com/nginx/nginx-gateway-fabric/internal/controller/state/dataplane"
1214
"github.com/nginx/nginx-gateway-fabric/internal/framework/helpers"
13-
"github.com/nginx/nginx-gateway-fabric/internal/mode/static/licensing"
14-
"github.com/nginx/nginx-gateway-fabric/internal/mode/static/state/dataplane"
1515
)
1616

1717
var _ = Describe("DeploymentContextCollector", func() {

internal/mode/static/licensing/licensingfakes/fake_collector.go renamed to internal/controller/licensing/licensingfakes/fake_collector.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

internal/mode/static/log_level_setters.go renamed to internal/controller/log_level_setters.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package static
1+
package controller
22

33
import (
44
"errors"
@@ -7,6 +7,8 @@ import (
77
"go.uber.org/zap/zapcore"
88
)
99

10+
//go:generate go tool counterfeiter -generate
11+
1012
//counterfeiter:generate . logLevelSetter
1113

1214
// logLevelSetter defines an interface for setting the logging level of a logger.

0 commit comments

Comments
 (0)