Skip to content

Commit

Permalink
feat(base-cluster/nginx): add toggle for snippets (#599)
Browse files Browse the repository at this point in the history
As per customer request.
  • Loading branch information
marvinWolff authored Oct 6, 2023
1 parent c5d822a commit be13b6a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions charts/base-cluster/templates/ingress/nginx.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ spec:
{{- end }}
values:
controller:
allowSnippetAnnotations: {{ .Values.ingress.snippets }}
priorityClassName: system-cluster-critical
watchIngressWithoutClass: true
metrics:
Expand Down
8 changes: 5 additions & 3 deletions charts/base-cluster/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -930,9 +930,11 @@
"$ref": "#/$defs/resourceRequirements"
},
"enabled": {
"type": [
"boolean"
]
"type": "boolean"
},
"allowNginxConfigurationSnippets": {
"type": "boolean",
"description": "Please don't do it if not absolutely necessary, it goes against all best practices. Ref.: https://docs.nginx.com/nginx-ingress-controller/configuration/global-configuration/command-line-arguments#cmdoption-enable-snippets"
},
"IP": {
"type": [
Expand Down
1 change: 1 addition & 0 deletions charts/base-cluster/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,7 @@ flux:

ingress:
enabled: true
allowNginxConfigurationSnippets: false
replicas: 2
resources:
requests:
Expand Down

0 comments on commit be13b6a

Please sign in to comment.