Skip to content

Commit c7fc379

Browse files
committed
Merge branch 'main' into proposal/auth-filter
2 parents 2f9b951 + a2e2ec1 commit c7fc379

File tree

176 files changed

+2030
-1282
lines changed

Some content is hidden

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

176 files changed

+2030
-1282
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ jobs:
374374
375375
- name: Generate Assertion Document
376376
id: assertiondoc
377-
uses: nginxinc/compliance-rules/.github/actions/assertion@08d220029442f94f6e859863342515e5a7c0f9d5
377+
uses: nginxinc/compliance-rules/.github/actions/assertion@b0bda4baf00b030fd4e365821878b4857078e494
378378
with:
379379
artifact-name: ${{ github.event.repository.name }}_${{ github.sha }}_${{ github.run_number }}_${{ matrix.gateway.os }}_${{ matrix.gateway.arch }}
380380
artifact-digest: ${{ matrix.gateway.digest }}
@@ -393,7 +393,7 @@ jobs:
393393

394394
- name: Sign and Store Assertion Document
395395
id: sign
396-
uses: nginxinc/compliance-rules/.github/actions/sign@08d220029442f94f6e859863342515e5a7c0f9d5
396+
uses: nginxinc/compliance-rules/.github/actions/sign@b0bda4baf00b030fd4e365821878b4857078e494
397397
with:
398398
assertion-doc: ${{ steps.assertiondoc.outputs.assertion-document-path }}
399399

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
uses: golangci/golangci-lint-action@4afd733a84b1f43292c63897423277bb7f4313a9 # v8.0.0
5151
with:
5252
working-directory: ${{ matrix.directory }}
53-
version: v2.6.0 # renovate: datasource=github-tags depName=golangci/golangci-lint
53+
version: v2.6.1 # renovate: datasource=github-tags depName=golangci/golangci-lint
5454

5555
njs-lint:
5656
name: NJS Lint

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ repos:
2626
exclude: (^examples/|^docs/|.*_test.go$)
2727

2828
- repo: https://github.com/gitleaks/gitleaks
29-
rev: v8.28.0
29+
rev: v8.29.0
3030
hooks:
3131
- id: gitleaks
3232

@@ -38,7 +38,7 @@ repos:
3838
- javascript
3939

4040
- repo: https://github.com/golangci/golangci-lint
41-
rev: v2.6.0
41+
rev: v2.6.1
4242
hooks:
4343
- id: golangci-lint-full
4444
name: golangci-lint-root

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ GO_LINKER_FLAGS = $(GO_LINKER_FLAGS_OPTIMIZATIONS) $(GO_LINKER_FlAGS_VARS)
2424

2525
# tools versions
2626
# renovate: datasource=github-tags depName=golangci/golangci-lint
27-
GOLANGCI_LINT_VERSION = v2.6.0
27+
GOLANGCI_LINT_VERSION = v2.6.1
2828
# renovate: datasource=docker depName=kindest/node
2929
KIND_K8S_VERSION = v1.34.0
3030
# renovate: datasource=github-tags depName=norwoodj/helm-docs
@@ -126,6 +126,7 @@ generate: ## Run go generate
126126
.PHONY: generate-crds
127127
generate-crds: ## Generate CRDs and Go types using kubebuilder
128128
go run sigs.k8s.io/controller-tools/cmd/controller-gen@$(CONTROLLER_TOOLS_VERSION) crd object paths=./apis/... output:crd:artifacts:config=config/crd/bases
129+
./scripts/strip-crd-excludes.sh config/crd/bases
129130
kubectl kustomize config/crd >deploy/crds.yaml
130131

131132
.PHONY: install-crds

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ The following table lists the software versions NGINX Gateway Fabric supports.
6868

6969
| NGINX Gateway Fabric | Gateway API | Kubernetes | NGINX OSS | NGINX Plus | NGINX Agent |
7070
|----------------------|-------------|------------|-----------|------------|-------------|
71-
| Edge | 1.3.0 | 1.25+ | 1.29.2 | R35 | v3.4.2 |
71+
| Edge | 1.4.0 | 1.25+ | 1.29.2 | R35 | v3.4.2 |
7272
| 2.2.0 | 1.3.0 | 1.25+ | 1.29.2 | R35 | v3.3.2 |
7373
| 2.1.4 | 1.3.0 | 1.25+ | 1.29.1 | R35 | v3.3.1 |
7474
| 2.1.3 | 1.3.0 | 1.25+ | 1.29.1 | R35 | v3.3.1 |

apis/v1alpha1/clientsettingspolicy_types.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package v1alpha1
22

33
import (
44
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
5-
gatewayv1alpha2 "sigs.k8s.io/gateway-api/apis/v1alpha2"
5+
gatewayv1 "sigs.k8s.io/gateway-api/apis/v1"
66
)
77

88
// +genclient
@@ -23,7 +23,7 @@ type ClientSettingsPolicy struct {
2323
Spec ClientSettingsPolicySpec `json:"spec"`
2424

2525
// Status defines the state of the ClientSettingsPolicy.
26-
Status gatewayv1alpha2.PolicyStatus `json:"status,omitempty"`
26+
Status gatewayv1.PolicyStatus `json:"status,omitempty"`
2727
}
2828

2929
// +kubebuilder:object:root=true
@@ -54,7 +54,7 @@ type ClientSettingsPolicySpec struct {
5454
// +kubebuilder:validation:XValidation:message="TargetRef Kind must be one of: Gateway, HTTPRoute, or GRPCRoute",rule="(self.kind=='Gateway' || self.kind=='HTTPRoute' || self.kind=='GRPCRoute')"
5555
// +kubebuilder:validation:XValidation:message="TargetRef Group must be gateway.networking.k8s.io.",rule="(self.group=='gateway.networking.k8s.io')"
5656
//nolint:lll
57-
TargetRef gatewayv1alpha2.LocalPolicyTargetReference `json:"targetRef"`
57+
TargetRef gatewayv1.LocalPolicyTargetReference `json:"targetRef"`
5858
}
5959

6060
// ClientBody contains the settings for the client request body.

apis/v1alpha1/observabilitypolicy_types.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package v1alpha1
22

33
import (
44
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
5-
gatewayv1alpha2 "sigs.k8s.io/gateway-api/apis/v1alpha2"
5+
gatewayv1 "sigs.k8s.io/gateway-api/apis/v1"
66
)
77

88
// +genclient
@@ -25,7 +25,7 @@ type ObservabilityPolicy struct {
2525
Spec ObservabilityPolicySpec `json:"spec"`
2626

2727
// Status defines the state of the ObservabilityPolicy.
28-
Status gatewayv1alpha2.PolicyStatus `json:"status,omitempty"`
28+
Status gatewayv1.PolicyStatus `json:"status,omitempty"`
2929
}
3030

3131
// +kubebuilder:object:root=true
@@ -53,7 +53,7 @@ type ObservabilityPolicySpec struct {
5353
// +kubebuilder:validation:XValidation:message="TargetRef Kind must be: HTTPRoute or GRPCRoute",rule="(self.exists(t, t.kind=='HTTPRoute') || self.exists(t, t.kind=='GRPCRoute'))"
5454
// +kubebuilder:validation:XValidation:message="TargetRef Group must be gateway.networking.k8s.io",rule="self.all(t, t.group=='gateway.networking.k8s.io')"
5555
//nolint:lll
56-
TargetRefs []gatewayv1alpha2.LocalPolicyTargetReference `json:"targetRefs"`
56+
TargetRefs []gatewayv1.LocalPolicyTargetReference `json:"targetRefs"`
5757
}
5858

5959
// Tracing allows for enabling and configuring OpenTelemetry tracing.

apis/v1alpha1/policy_methods.go

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,45 @@
11
package v1alpha1
22

33
import (
4-
"sigs.k8s.io/gateway-api/apis/v1alpha2"
4+
gatewayv1 "sigs.k8s.io/gateway-api/apis/v1"
55
)
66

77
// FIXME(kate-osborn): https://github.com/nginx/nginx-gateway-fabric/issues/1939.
88
// Figure out a way to generate these methods for all our policies.
99
// These methods implement the policies.Policy interface which extends client.Object to add the following methods.
1010

11-
func (p *ClientSettingsPolicy) GetTargetRefs() []v1alpha2.LocalPolicyTargetReference {
12-
return []v1alpha2.LocalPolicyTargetReference{p.Spec.TargetRef}
11+
func (p *ClientSettingsPolicy) GetTargetRefs() []gatewayv1.LocalPolicyTargetReference {
12+
return []gatewayv1.LocalPolicyTargetReference{p.Spec.TargetRef}
1313
}
1414

15-
func (p *ClientSettingsPolicy) GetPolicyStatus() v1alpha2.PolicyStatus {
15+
func (p *ClientSettingsPolicy) GetPolicyStatus() gatewayv1.PolicyStatus {
1616
return p.Status
1717
}
1818

19-
func (p *ClientSettingsPolicy) SetPolicyStatus(status v1alpha2.PolicyStatus) {
19+
func (p *ClientSettingsPolicy) SetPolicyStatus(status gatewayv1.PolicyStatus) {
2020
p.Status = status
2121
}
2222

23-
func (p *ObservabilityPolicy) GetTargetRefs() []v1alpha2.LocalPolicyTargetReference {
23+
func (p *ObservabilityPolicy) GetTargetRefs() []gatewayv1.LocalPolicyTargetReference {
2424
return p.Spec.TargetRefs
2525
}
2626

27-
func (p *ObservabilityPolicy) GetPolicyStatus() v1alpha2.PolicyStatus {
27+
func (p *ObservabilityPolicy) GetPolicyStatus() gatewayv1.PolicyStatus {
2828
return p.Status
2929
}
3030

31-
func (p *ObservabilityPolicy) SetPolicyStatus(status v1alpha2.PolicyStatus) {
31+
func (p *ObservabilityPolicy) SetPolicyStatus(status gatewayv1.PolicyStatus) {
3232
p.Status = status
3333
}
3434

35-
func (p *UpstreamSettingsPolicy) GetTargetRefs() []v1alpha2.LocalPolicyTargetReference {
35+
func (p *UpstreamSettingsPolicy) GetTargetRefs() []gatewayv1.LocalPolicyTargetReference {
3636
return p.Spec.TargetRefs
3737
}
3838

39-
func (p *UpstreamSettingsPolicy) GetPolicyStatus() v1alpha2.PolicyStatus {
39+
func (p *UpstreamSettingsPolicy) GetPolicyStatus() gatewayv1.PolicyStatus {
4040
return p.Status
4141
}
4242

43-
func (p *UpstreamSettingsPolicy) SetPolicyStatus(status v1alpha2.PolicyStatus) {
43+
func (p *UpstreamSettingsPolicy) SetPolicyStatus(status gatewayv1.PolicyStatus) {
4444
p.Status = status
4545
}

apis/v1alpha1/upstreamsettingspolicy_types.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package v1alpha1
22

33
import (
44
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
5-
gatewayv1alpha2 "sigs.k8s.io/gateway-api/apis/v1alpha2"
5+
gatewayv1 "sigs.k8s.io/gateway-api/apis/v1"
66
)
77

88
// +genclient
@@ -23,7 +23,7 @@ type UpstreamSettingsPolicy struct {
2323
Spec UpstreamSettingsPolicySpec `json:"spec"`
2424

2525
// Status defines the state of the UpstreamSettingsPolicy.
26-
Status gatewayv1alpha2.PolicyStatus `json:"status,omitempty"`
26+
Status gatewayv1.PolicyStatus `json:"status,omitempty"`
2727
}
2828

2929
// +kubebuilder:object:root=true
@@ -63,7 +63,7 @@ type UpstreamSettingsPolicySpec struct {
6363
// +kubebuilder:validation:XValidation:message="TargetRefs Group must be core",rule="self.exists(t, t.group=='') || self.exists(t, t.group=='core')"
6464
// +kubebuilder:validation:XValidation:message="TargetRef Name must be unique",rule="self.all(p1, self.exists_one(p2, p1.name == p2.name))"
6565
//nolint:lll
66-
TargetRefs []gatewayv1alpha2.LocalPolicyTargetReference `json:"targetRefs"`
66+
TargetRefs []gatewayv1.LocalPolicyTargetReference `json:"targetRefs"`
6767
}
6868

6969
// UpstreamKeepAlive defines the keep-alive settings for upstreams.

apis/v1alpha1/zz_generated.deepcopy.go

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

0 commit comments

Comments
 (0)