Skip to content

Commit b2d4210

Browse files
authored
chore(ci): exit 1 when make fmt is dirty (#110)
1 parent 3b423e3 commit b2d4210

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ fmt: README.md
3838
README.md: README.md.gotmpl values.yaml
3939
@echo "--- Generating documentation"
4040
helm-docs --template-files=$<
41-
@echo "<!-- DO NOT EDIT. THIS IS GENERATED FROM README.md.gotmpl -->\n\n$$(cat README.md)" > README.md
41+
@printf "<!-- DO NOT EDIT. THIS IS GENERATED FROM README.md.gotmpl -->\n\n%s\n" "$$(cat README.md)" > README.md
4242
.PHONY: README.md
4343

4444
clean:

README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,16 @@ View [our docs](https://coder.com/docs/setup/installation) for detailed installa
8888
| postgres.host | string | Host of the external PostgreSQL instance. | `""` |
8989
| postgres.passwordSecret | string | Name of an existing secret in the current namespace with the password of the PostgreSQL instance. The password must be contained in the secret field `password`. This should be set to an empty string if the database does not require a password to connect. | `""` |
9090
| postgres.port | string | Port of the external PostgreSQL instance. | `""` |
91-
| postgres.sslMode | string | Provides variable levels of protection for the PostgreSQL connection. For acceptable values, see: https://www.postgresql.org/docs/9.1/libpq-ssl.html | `"require"` |
91+
| postgres.ssl | object | Options for configuring the SSL cert, key, and root cert when connecting to Postgres. | `{"certSecret":{"key":"","name":""},"keySecret":{"key":"","name":""},"rootCertSecret":{"key":"","name":""}}` |
92+
| postgres.ssl.certSecret | object | Secret containing a PEM encoded cert file. | `{"key":"","name":""}` |
93+
| postgres.ssl.certSecret.key | string | Key pointing to a certificate in the secret. | `""` |
94+
| postgres.ssl.certSecret.name | string | Name of the secret. | `""` |
95+
| postgres.ssl.keySecret | object | Secret containing a PEM encoded key file. | `{"key":"","name":""}` |
96+
| postgres.ssl.keySecret.key | string | Key pointing to a certificate in the secret. | `""` |
97+
| postgres.ssl.rootCertSecret | object | Secret containing a PEM encoded root cert file. | `{"key":"","name":""}` |
98+
| postgres.ssl.rootCertSecret.key | string | Key pointing to a certificate in the secret. | `""` |
99+
| postgres.ssl.rootCertSecret.name | string | Name of the secret. | `""` |
100+
| postgres.sslMode | string | Provides variable levels of protection for the PostgreSQL connection. For acceptable values, see: https://www.postgresql.org/docs/11/libpq-ssl.html | `"require"` |
92101
| postgres.user | string | User of the external PostgreSQL instance. | `""` |
93102
| services | object | Kubernetes Service configuration that applies to Coder services. | `{"annotations":{},"clusterDomainSuffix":".svc.cluster.local","nodeSelector":{"kubernetes.io/arch":"amd64","kubernetes.io/os":"linux"},"tolerations":[],"type":"ClusterIP"}` |
94103
| services.annotations | object | A KV mapping of annotations. See: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/ | `{}` |

scripts/fmt.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,7 @@ pushd "$PROJECT_ROOT" >/dev/null
3535
do
3636
git --no-pager diff "$file"
3737
done
38+
39+
exit 1
3840
fi
3941
popd >/dev/null

0 commit comments

Comments
 (0)