Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add lifecycle hooks for Trillian #505

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion charts/trillian/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description: |

type: application

version: 0.2.3
version: 0.2.4

keywords:
- security
Expand Down
4 changes: 3 additions & 1 deletion charts/trillian/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<!-- This README.md is generated. Please edit README.md.gotmpl -->

![Version: 0.2.2](https://img.shields.io/badge/Version-0.2.2-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)
![Version: 0.2.4](https://img.shields.io/badge/Version-0.2.4-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)

Trillian is a log that stores an accurate, immutable and verifiable history of activity.

Expand Down Expand Up @@ -68,6 +68,7 @@ helm uninstall [RELEASE_NAME]
| logServer.image.registry | string | `"gcr.io"` | |
| logServer.image.repository | string | `"projectsigstore/trillian_log_server"` | |
| logServer.image.version | string | `"sha256:75dbbfc4c0b64334b985c4971fe58c30b9dd73d7aa54b15cee61223ff92aebf3"` | v0.9.1 |
| logServer.lifecycle | object | `{}` | |
| logServer.livenessProbe | object | `{}` | |
| logServer.name | string | `"log-server"` | |
| logServer.nodeSelector | object | `{"kubernetes.io/arch":"amd64"}` | Trillian images currently only support amd64 due to the toolbelt/netcat container |
Expand Down Expand Up @@ -95,6 +96,7 @@ helm uninstall [RELEASE_NAME]
| logSigner.image.registry | string | `"gcr.io"` | |
| logSigner.image.repository | string | `"projectsigstore/trillian_log_signer"` | |
| logSigner.image.version | string | `"sha256:b56ed0b7b5e9813c91b208ba6041c9342f9a53162d96943374e59b5289090f1f"` | v0.9.1 |
| logSigner.lifecycle | object | `{}` | |
| logSigner.livenessProbe | object | `{}` | |
| logSigner.name | string | `"log-signer"` | |
| logSigner.nodeSelector | object | `{"kubernetes.io/arch":"amd64"}` | Trillian images currently only support amd64 due to the toolbelt/netcat container |
Expand Down
4 changes: 4 additions & 0 deletions charts/trillian/templates/trillian-log-server/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@ spec:
{{- include "trillian.storageSystem.envCredentials" . | indent 12}}
ports:
{{- include "trillian.containerPorts" .Values.logServer.service.ports | indent 12 }}
{{- if .Values.logServer.lifecycle }}
lifecycle:
{{ toYaml .Values.logServer.lifecycle | indent 12 }}
{{- end }}
{{- if .Values.logServer.livenessProbe }}
livenessProbe:
{{ toYaml .Values.logServer.livenessProbe | indent 12 }}
Expand Down
4 changes: 4 additions & 0 deletions charts/trillian/templates/trillian-log-signer/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@ spec:
{{- include "trillian.storageSystem.envCredentials" . | indent 12}}
ports:
{{- include "trillian.containerPorts" .Values.logSigner.service.ports | indent 12 }}
{{- if .Values.logSigner.lifecycle }}
lifecycle:
{{ toYaml .Values.logSigner.lifecycle | indent 12 }}
{{- end }}
{{- if .Values.logSigner.livenessProbe }}
livenessProbe:
{{ toYaml .Values.logSigner.livenessProbe | indent 12 }}
Expand Down
2 changes: 2 additions & 0 deletions charts/trillian/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@
}
]
},
"lifecycle": {},
"livenessProbe": {},
"readinessProbe": {},
"resources": {},
Expand Down Expand Up @@ -176,6 +177,7 @@
}
]
},
"lifecycle": {},
"livenessProbe": {},
"readinessProbe": {},
"resources": {},
Expand Down
2 changes: 2 additions & 0 deletions charts/trillian/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ logServer:
port: 8090
protocol: TCP
targetPort: 8090
lifecycle: {}
livenessProbe: {}
readinessProbe: {}
resources: {}
Expand Down Expand Up @@ -184,6 +185,7 @@ logSigner:
port: 8091
protocol: TCP
targetPort: 8091
lifecycle: {}
livenessProbe: {}
readinessProbe: {}
resources: {}
Expand Down