Skip to content

Commit a66267b

Browse files
bjee19sjberman
authored andcommitted
Remove unused service annotations (#3362)
* Remove unused service annotations * Remove files for aws-nlb that rely on service annotations
1 parent 34094d5 commit a66267b

File tree

10 files changed

+2
-464
lines changed

10 files changed

+2
-464
lines changed

apis/v1alpha2/nginxproxy_types.go

-5
Original file line numberDiff line numberDiff line change
@@ -523,11 +523,6 @@ type ServiceSpec struct {
523523
// +optional
524524
LoadBalancerClass *string `json:"loadBalancerClass,omitempty"`
525525

526-
// Annotations contain any Service-specific annotations.
527-
//
528-
// +optional
529-
Annotations map[string]string `json:"annotations,omitempty"`
530-
531526
// LoadBalancerSourceRanges are the IP ranges (CIDR) that are allowed to access the load balancer.
532527
// Requires service type to be LoadBalancer.
533528
//

apis/v1alpha2/zz_generated.deepcopy.go

-7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

charts/nginx-gateway-fabric/README.md

+2-3
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ The following table lists the configurable parameters of the NGINX Gateway Fabri
258258
| `certGenerator.overwrite` | Overwrite existing TLS Secrets on startup. | bool | `false` |
259259
| `certGenerator.serverTLSSecretName` | The name of the Secret containing TLS CA, certificate, and key for the NGINX Gateway Fabric control plane to securely communicate with the NGINX Agent. Must exist in the same namespace that the NGINX Gateway Fabric control plane is running in (default namespace: nginx-gateway). | string | `"server-tls"` |
260260
| `clusterDomain` | The DNS cluster domain of your Kubernetes cluster. | string | `"cluster.local"` |
261-
| `nginx` | The nginx section contains the configuration for all NGINX data plane deployments installed by the NGINX Gateway Fabric control plane. | object | `{"config":{},"container":{},"debug":false,"image":{"pullPolicy":"Always","repository":"ghcr.io/nginx/nginx-gateway-fabric/nginx","tag":"edge"},"imagePullSecret":"","imagePullSecrets":[],"kind":"deployment","plus":false,"pod":{},"replicas":1,"service":{"annotations":{},"externalTrafficPolicy":"Local","loadBalancerClass":"","loadBalancerIP":"","loadBalancerSourceRanges":[],"nodePorts":[],"type":"LoadBalancer"},"usage":{"caSecretName":"","clientSSLSecretName":"","endpoint":"","resolver":"","secretName":"nplus-license","skipVerify":false}}` |
261+
| `nginx` | The nginx section contains the configuration for all NGINX data plane deployments installed by the NGINX Gateway Fabric control plane. | object | `{"config":{},"container":{},"debug":false,"image":{"pullPolicy":"Always","repository":"ghcr.io/nginx/nginx-gateway-fabric/nginx","tag":"edge"},"imagePullSecret":"","imagePullSecrets":[],"kind":"deployment","plus":false,"pod":{},"replicas":1,"service":{"externalTrafficPolicy":"Local","loadBalancerClass":"","loadBalancerIP":"","loadBalancerSourceRanges":[],"nodePorts":[],"type":"LoadBalancer"},"usage":{"caSecretName":"","clientSSLSecretName":"","endpoint":"","resolver":"","secretName":"nplus-license","skipVerify":false}}` |
262262
| `nginx.config` | The configuration for the data plane that is contained in the NginxProxy resource. This is applied globally to all Gateways managed by this instance of NGINX Gateway Fabric. | object | `{}` |
263263
| `nginx.container` | The container configuration for the NGINX container. This is applied globally to all Gateways managed by this instance of NGINX Gateway Fabric. | object | `{}` |
264264
| `nginx.debug` | Enable debugging for NGINX. Uses the nginx-debug binary. The NGINX error log level should be set to debug in the NginxProxy resource. | bool | `false` |
@@ -269,8 +269,7 @@ The following table lists the configurable parameters of the NGINX Gateway Fabri
269269
| `nginx.plus` | Is NGINX Plus image being used. | bool | `false` |
270270
| `nginx.pod` | The pod configuration for the NGINX data plane pod. This is applied globally to all Gateways managed by this instance of NGINX Gateway Fabric. | object | `{}` |
271271
| `nginx.replicas` | The number of replicas of the NGINX Deployment. | int | `1` |
272-
| `nginx.service` | The service configuration for the NGINX data plane. This is applied globally to all Gateways managed by this instance of NGINX Gateway Fabric. | object | `{"annotations":{},"externalTrafficPolicy":"Local","loadBalancerClass":"","loadBalancerIP":"","loadBalancerSourceRanges":[],"nodePorts":[],"type":"LoadBalancer"}` |
273-
| `nginx.service.annotations` | The annotations of the NGINX data plane service. | object | `{}` |
272+
| `nginx.service` | The service configuration for the NGINX data plane. This is applied globally to all Gateways managed by this instance of NGINX Gateway Fabric. | object | `{"externalTrafficPolicy":"Local","loadBalancerClass":"","loadBalancerIP":"","loadBalancerSourceRanges":[],"nodePorts":[],"type":"LoadBalancer"}` |
274273
| `nginx.service.externalTrafficPolicy` | The externalTrafficPolicy of the service. The value Local preserves the client source IP. | string | `"Local"` |
275274
| `nginx.service.loadBalancerClass` | LoadBalancerClass is the class of the load balancer implementation this Service belongs to. Requires nginx.service.type set to LoadBalancer. | string | `""` |
276275
| `nginx.service.loadBalancerIP` | The static IP address for the load balancer. Requires nginx.service.type set to LoadBalancer. | string | `""` |

charts/nginx-gateway-fabric/values.schema.json

-6
Original file line numberDiff line numberDiff line change
@@ -356,12 +356,6 @@
356356
"service": {
357357
"description": "The service configuration for the NGINX data plane. This is applied globally to all Gateways managed by this\ninstance of NGINX Gateway Fabric.",
358358
"properties": {
359-
"annotations": {
360-
"description": "The annotations of the NGINX data plane service.",
361-
"required": [],
362-
"title": "annotations",
363-
"type": "object"
364-
},
365359
"externalTrafficPolicy": {
366360
"default": "Local",
367361
"description": "The externalTrafficPolicy of the service. The value Local preserves the client source IP.",

charts/nginx-gateway-fabric/values.yaml

-3
Original file line numberDiff line numberDiff line change
@@ -425,9 +425,6 @@ nginx:
425425
# -- The externalTrafficPolicy of the service. The value Local preserves the client source IP.
426426
externalTrafficPolicy: Local
427427

428-
# -- The annotations of the NGINX data plane service.
429-
annotations: {}
430-
431428
# -- The static IP address for the load balancer. Requires nginx.service.type set to LoadBalancer.
432429
loadBalancerIP: ""
433430

config/crd/bases/gateway.nginx.org_nginxproxies.yaml

-5
Original file line numberDiff line numberDiff line change
@@ -3467,11 +3467,6 @@ spec:
34673467
service:
34683468
description: Service is the configuration for the NGINX Service.
34693469
properties:
3470-
annotations:
3471-
additionalProperties:
3472-
type: string
3473-
description: Annotations contain any Service-specific annotations.
3474-
type: object
34753470
externalTrafficPolicy:
34763471
default: Local
34773472
description: |-

0 commit comments

Comments
 (0)