From 6201dafe3038207ab1a18dc191582af2ec687688 Mon Sep 17 00:00:00 2001 From: Vipul Agarwal Date: Tue, 10 Jan 2023 00:30:48 +0000 Subject: [PATCH 1/2] Add ability to configure resources in tuf * add resources to tuf via `deployment.resources` * update readme Signed-off-by: Vipul Agarwal --- charts/tuf/README.md | 1 + charts/tuf/templates/deployment.yaml | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/charts/tuf/README.md b/charts/tuf/README.md index 46e91c65..d5378f3b 100644 --- a/charts/tuf/README.md +++ b/charts/tuf/README.md @@ -26,6 +26,7 @@ A framework for securing software update systems - the scaffolding implementatio | deployment.registry | string | `"ghcr.io"` | | | deployment.replicas | int | `1` | | | deployment.repository | string | `"sigstore/scaffolding/server"` | | +| deployment.resources | string | `""` | | | deployment.version | string | `"sha256:719ea3fe44c52af5a5fedab2168429872e37e97b9f063977fc164d60a5a14b53"` | | | enabled | bool | `true` | | | forceNamespace | string | `""` | | diff --git a/charts/tuf/templates/deployment.yaml b/charts/tuf/templates/deployment.yaml index 88595740..5f06de4c 100644 --- a/charts/tuf/templates/deployment.yaml +++ b/charts/tuf/templates/deployment.yaml @@ -44,6 +44,10 @@ spec: - name: tuf-secrets mountPath: "/var/run/tuf-secrets" readOnly: true + {{- if .Values.deployment.resources }} + resources: +{{ toYaml .Values.deployment.resources | indent 10 }} + {{- end }} volumes: - name: tuf-secrets projected: From e4bc5ebae2ff40c451f82e106d58c40397557e99 Mon Sep 17 00:00:00 2001 From: Vipul Agarwal Date: Tue, 17 Jan 2023 12:27:58 +0000 Subject: [PATCH 2/2] Bump tuf chart version Signed-off-by: Vipul Agarwal --- charts/tuf/Chart.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/tuf/Chart.yaml b/charts/tuf/Chart.yaml index 7657b678..b47286d1 100644 --- a/charts/tuf/Chart.yaml +++ b/charts/tuf/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: tuf description: A framework for securing software update systems - the scaffolding implementation type: application -version: 0.1.4 +version: 0.1.5 appVersion: "0.4.6" home: https://sigstore.dev/