Skip to content

Commit

Permalink
feat: add pre-commit hooks, fix new-lines at end of files
Browse files Browse the repository at this point in the history
  • Loading branch information
davepoltorak committed Jul 21, 2023
1 parent c709ec2 commit 0edf8ea
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 3 deletions.
10 changes: 10 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-added-large-files
2 changes: 1 addition & 1 deletion infrastructure/charts/mediator/templates/apisixroute.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,4 @@ spec:
config:
regex_uri: ["^/docs/mediator/api/(.*)","/api/$1"]
{{ template "cors" . }}
{{- end -}}
{{- end -}}
2 changes: 1 addition & 1 deletion infrastructure/charts/mediator/templates/apisixtls.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ spec:
secret:
name: "prism-mediator-base-path-secret"
namespace: "{{ .Release.Namespace }}"
{{- end }}
{{- end }}
2 changes: 1 addition & 1 deletion infrastructure/charts/mediator/templates/certificate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ spec:
{{- range .Values.ingress.applicationUrls }}
- {{ . }}
{{- end }}
{{- end }}
{{- end }}

0 comments on commit 0edf8ea

Please sign in to comment.