Skip to content

Commit

Permalink
Add k8s labels to session expiration purge and rotate provider token …
Browse files Browse the repository at this point in the history
…jobs (#4051)

This makes it easier for us to find the logs (or filter for them) in our
infrastructure.

Signed-off-by: Juan Antonio Osorio <ozz@stacklok.com>
  • Loading branch information
JAORMX authored Jul 31, 2024
1 parent 18fd69b commit 84efc7e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion deployment/helm/templates/rotate_provider_tokens.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ spec:
jobTemplate:
spec:
template:
metadata:
labels:
app: rotate-provider-tokens
spec:
serviceAccountName: {{ .Values.serviceAccounts.rotateProviderTokensJob | default "minder" }}
containers:
Expand Down Expand Up @@ -82,4 +85,4 @@ spec:
secretName: {{ .Values.deploymentSettings.secrets.authSecretName }}
{{- if .Values.rotateProviderTokensJobSettings.extraVolumes }}
{{- toYaml .Values.rotateProviderTokensJobSettings.extraVolumes | nindent 10 }}
{{- end }}
{{- end }}
5 changes: 4 additions & 1 deletion deployment/helm/templates/session_expiration_purge_job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ spec:
jobTemplate:
spec:
template:
metadata:
labels:
app: session-expiration-purge
spec:
serviceAccountName: {{ .Values.serviceAccounts.sessionExpirationPurgeJob | default "minder" }}
containers:
Expand Down Expand Up @@ -75,4 +78,4 @@ spec:
path: overrides.yaml
{{- if .Values.sessionExpirationPurgeJobSettings.extraVolumes }}
{{- toYaml .Values.sessionExpirationPurgeJobSettings.extraVolumes | nindent 10 }}
{{- end }}
{{- end }}

0 comments on commit 84efc7e

Please sign in to comment.