Skip to content

Commit 8fdf3a4

Browse files
committed
Language fixups
1 parent ce229e2 commit 8fdf3a4

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

internal/mode/static/nginx/config/policies/generator.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ func (g *CompositeGenerator) GenerateForServer(policies []Policy, server http.Se
4646
return compositeResult
4747
}
4848

49-
// GenerateForServer calls all policy generators for a normal location block.
49+
// GenerateForLocation calls all policy generators for a normal location block.
5050
func (g *CompositeGenerator) GenerateForLocation(policies []Policy, location http.Location) GenerateResultFiles {
5151
var compositeResult GenerateResultFiles
5252

internal/mode/static/nginx/config/policies/observability/generator.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ func NewGenerator(telemetry dataplane.Telemetry) *Generator {
7272
return &Generator{telemetryConf: telemetry}
7373
}
7474

75-
// GenerateForServer generates policy configuration for a normal location block.
75+
// GenerateForLocation generates policy configuration for a normal location block.
7676
// For a normal location, all directives are applied.
7777
// When the configuration involves a normal location redirecting to an internal location,
7878
// only otel_trace and otel_trace_context are applied to the normal location.

internal/mode/static/nginx/config/policies/validator.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ type Validator interface {
2121
Conflicts(a, b Policy) bool
2222
}
2323

24-
// CompositeValidator manages the validators and generators for NGF Policies.
24+
// CompositeValidator manages the validators for NGF Policies.
2525
type CompositeValidator struct {
2626
validators map[schema.GroupVersionKind]Validator
2727
mustExtractGVK kinds.MustExtractGVK
@@ -36,7 +36,7 @@ type ManagerConfig struct {
3636
}
3737

3838
// NewManager returns a new CompositeValidator.
39-
// Implements dataplane.ConfigGenerator and validation.PolicyValidator.
39+
// Implements validation.PolicyValidator.
4040
func NewManager(
4141
mustExtractGVK kinds.MustExtractGVK,
4242
configs ...ManagerConfig,

0 commit comments

Comments
 (0)