Skip to content

Commit c3ccc27

Browse files
committed
tuf: Support deployment resources customization
This commit adds support for customizing the following values in the tuf deployment: - Container resources - Container security context - Deployment security context Signed-off-by: Stephen Fox <[email protected]>
1 parent 466dfe0 commit c3ccc27

File tree

5 files changed

+31
-5
lines changed

5 files changed

+31
-5
lines changed

charts/tuf/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
name: tuf
33
description: A framework for securing software update systems - the scaffolding implementation
44
type: application
5-
version: 0.1.20
5+
version: 0.1.21
66
appVersion: 0.7.15
77

88
home: https://sigstore.dev/

charts/tuf/README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# tuf
22

3-
![Version: 0.1.20](https://img.shields.io/badge/Version-0.1.20-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.7.15](https://img.shields.io/badge/AppVersion-0.7.15-informational?style=flat-square)
3+
![Version: 0.1.21](https://img.shields.io/badge/Version-0.1.21-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.7.15](https://img.shields.io/badge/AppVersion-0.7.15-informational?style=flat-square)
44

55
A framework for securing software update systems - the scaffolding implementation
66

@@ -21,13 +21,16 @@ A framework for securing software update systems - the scaffolding implementatio
2121
| Key | Type | Default | Description |
2222
|-----|------|---------|-------------|
2323
| deployment.affinity | object | `{}` | |
24+
| deployment.containerSecurityContext | object | `{}` | |
2425
| deployment.imagePullPolicy | string | `"IfNotPresent"` | |
2526
| deployment.name | string | `"tuf"` | |
2627
| deployment.nodeSelector | object | `{}` | |
2728
| deployment.port | int | `8080` | |
2829
| deployment.registry | string | `"ghcr.io"` | |
2930
| deployment.replicas | int | `1` | |
3031
| deployment.repository | string | `"sigstore/scaffolding/server"` | |
32+
| deployment.resources | object | `{}` | |
33+
| deployment.securityContext | object | `{}` | |
3134
| deployment.tolerations | list | `[]` | |
3235
| deployment.version | string | `"sha256:982c6173b6f2f976fd9f58eb543ca9ec5f0d1b7c1a6f7bb0c4b96cff1618c62e"` | |
3336
| enabled | bool | `true` | |
@@ -68,5 +71,3 @@ A framework for securing software update systems - the scaffolding implementatio
6871
| service.port | int | `80` | |
6972
| serviceAccountName | string | `"tuf"` | |
7073

71-
----------------------------------------------
72-
Autogenerated from chart metadata using [helm-docs v1.14.2](https://github.com/norwoodj/helm-docs/releases/v1.14.2)

charts/tuf/templates/deployment.yaml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,22 @@ spec:
3939
valueFrom:
4040
fieldRef:
4141
fieldPath: metadata.namespace
42-
4342
volumeMounts:
4443
- name: tuf-secrets
4544
mountPath: "/var/run/tuf-secrets"
4645
readOnly: true
46+
{{- if .Values.deployment.resources }}
47+
resources:
48+
{{ toYaml .Values.deployment.resources | indent 10 }}
49+
{{- end }}
50+
{{- if .Values.deployment.containerSecurityContext }}
51+
securityContext:
52+
{{ toYaml .Values.deployment.containerSecurityContext | indent 10 }}
53+
{{- end }}
54+
{{- if .Values.deployment.securityContext }}
55+
securityContext:
56+
{{ toYaml .Values.deployment.securityContext | indent 8 }}
57+
{{- end }}
4758
volumes:
4859
- name: tuf-secrets
4960
projected:

charts/tuf/values.schema.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@
77
"properties": {},
88
"type": "object"
99
},
10+
"containerSecurityContext": {
11+
"properties": {},
12+
"type": "object"
13+
},
1014
"imagePullPolicy": {
1115
"type": "string"
1216
},
@@ -29,6 +33,13 @@
2933
"repository": {
3034
"type": "string"
3135
},
36+
"resources": {
37+
"type": "object"
38+
},
39+
"securityContext": {
40+
"properties": {},
41+
"type": "object"
42+
},
3243
"tolerations": {
3344
"type": "array"
3445
},

charts/tuf/values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ deployment:
1515
version: sha256:982c6173b6f2f976fd9f58eb543ca9ec5f0d1b7c1a6f7bb0c4b96cff1618c62e
1616
imagePullPolicy: IfNotPresent
1717
port: 8080
18+
resources: {}
19+
containerSecurityContext: {}
20+
securityContext: {}
1821
tolerations: []
1922
nodeSelector: {}
2023
affinity: {}

0 commit comments

Comments
 (0)