From ae068f47666ff574cf80cc720f9dfd165f75ac0a Mon Sep 17 00:00:00 2001 From: Stacky McStackface <95074132+stackable-bot@users.noreply.github.com> Date: Mon, 3 Feb 2025 14:41:43 +0100 Subject: [PATCH] chore: Update templated files (d64a1bb) (#703) chore: Generated commit to update templated files since the last template run up to stackabletech/operator-templating@d64a1bbab0dd73cf2772142181d20e0816830d25 Reference-to: stackabletech/operator-templating@d64a1bb (try to update upload-artifacts action) --- .pre-commit-config.yaml | 2 ++ deploy/helm/trino-operator/templates/deployment.yaml | 2 +- rustfmt.toml | 5 +++++ 3 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 rustfmt.toml diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 3c59d32e..a36fdcb7 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -18,6 +18,8 @@ repos: rev: eeee35a89e69d5772bdee97db1a6a898467b686e # 1.0 hooks: - id: fmt + # Pinning to a specific rustc version, so that we get consistent formatting + entry: RUSTUP_TOOLCHAIN=nightly-2025-01-15 cargo fmt args: ["--all", "--", "--check"] - id: clippy args: ["--all-targets", "--", "-D", "warnings"] diff --git a/deploy/helm/trino-operator/templates/deployment.yaml b/deploy/helm/trino-operator/templates/deployment.yaml index 39a90322..9562e490 100644 --- a/deploy/helm/trino-operator/templates/deployment.yaml +++ b/deploy/helm/trino-operator/templates/deployment.yaml @@ -16,8 +16,8 @@ spec: metadata: annotations: internal.stackable.tech/image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" - {{- with .Values.podAnnotations }} checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }} + {{- with .Values.podAnnotations }} {{- toYaml . | nindent 8 }} {{- end }} labels: diff --git a/rustfmt.toml b/rustfmt.toml new file mode 100644 index 00000000..e25d3967 --- /dev/null +++ b/rustfmt.toml @@ -0,0 +1,5 @@ +# This file includes unstable features, so you need to run "cargo +nightly fmt" to format your code. +# It's also ok to use the stable toolchain by simple running "cargo fmt", but using the nigthly formatter is prefered. + +imports_granularity = "Crate" +group_imports = "StdExternalCrate"