Skip to content

Commit

Permalink
Add lifecycle hooks for Trillian
Browse files Browse the repository at this point in the history
Signed-off-by: Cody Soyland <[email protected]>
  • Loading branch information
codysoyland committed Apr 11, 2023
1 parent 220b721 commit 58f198b
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 0 deletions.
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

0 comments on commit 58f198b

Please sign in to comment.