Skip to content
This repository has been archived by the owner on Oct 1, 2024. It is now read-only.

Commit

Permalink
[TT-10382] Make bootstrap jobs image and tag configurable (#293)
Browse files Browse the repository at this point in the history
* Make bootstrap image configurable

* Update Changelog

* Fix container name
  • Loading branch information
komalsukhani authored Nov 2, 2023
1 parent f69b39b commit e2f3cea
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 5 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
## [Unreleased](https://github.com/TykTechnologies/tyk-helm-chart/tree/HEAD)
[Full unreleased Changelog](https://github.com/TykTechnologies/tyk-helm-chart/compare/v0.14.1...HEAD)

**Updated**
- Make bootstrap job image and tag configurable

## [v0.14.1](https://github.com/TykTechnologies/tyk-helm-chart/tree/v0.14.1)
[Full Changelog](https://github.com/TykTechnologies/tyk-helm-chart/compare/v0.14.0...v0.14.1)

Expand Down
4 changes: 2 additions & 2 deletions tyk-pro/templates/bootstrap-post-install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
apiVersion: batch/v1
kind: Job
metadata:
name: {{ .Values.jobs.bootstrapJobName }}
name: {{ .Values.jobs.bootstrapPostInstallJob.name }}
labels:
app.kubernetes.io/managed-by: {{ .Release.Service | quote }}
app.kubernetes.io/instance: {{ .Release.Name | quote }}
Expand All @@ -28,7 +28,7 @@ spec:
serviceAccountName: k8s-bootstrap-role
containers:
- name: bootstrap-tyk-post-install
image: tykio/tyk-k8s-bootstrap-post:latest
image: "{{ .Values.jobs.bootstrapPostInstallJob.image.repository }}:{{ .Values.jobs.bootstrapPostInstallJob.image.tag }}"
command: [ './app/bin/bootstrap-app-post' ]
imagePullPolicy: IfNotPresent
env:
Expand Down
4 changes: 2 additions & 2 deletions tyk-pro/templates/bootstrap-pre-delete.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ spec:
serviceAccountName: k8s-bootstrap-role
containers:
- name: bootstrap-tyk-pre-delete
image: tykio/tyk-k8s-bootstrap-pre-delete:latest
image: "{{ .Values.jobs.bootstrapPreDeleteJob.image.repository }}:{{ .Values.jobs.bootstrapPreDeleteJob.image.tag }}"
command: [ './app/bin/bootstrap-app-pre-delete' ]
imagePullPolicy: IfNotPresent
env:
Expand All @@ -42,7 +42,7 @@ spec:
fieldRef:
fieldPath: metadata.namespace
- name: BOOTSTRAP_JOB_NAME
value: {{ .Values.jobs.bootstrapJobName }}
value: {{ .Values.jobs.bootstrapPostInstallJob.name }}
terminationGracePeriodSeconds: 0
restartPolicy: Never
{{- end }}
10 changes: 9 additions & 1 deletion tyk-pro/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,15 @@ bootstrap: true

# Settings related to k8s that are ran when installing the tyk stack
jobs:
bootstrapJobName: bootstrap-post-install
bootstrapPostInstallJob:
name: bootstrap-post-install
image:
repository: tykio/tyk-k8s-bootstrap-post
tag: v1.5.1
bootstrapPreDeleteJob:
image:
repository: tykio/tyk-k8s-bootstrap-pre-delete
tag: v1.5.1


# These are your Tyk stack secrets will directly map to the following
Expand Down

0 comments on commit e2f3cea

Please sign in to comment.