Skip to content

Commit

Permalink
Configurable image repositories (#103)
Browse files Browse the repository at this point in the history
* Added image repository configuration

* Version increment
  • Loading branch information
douglas-gibbons-lark authored Mar 12, 2024
1 parent 1f27298 commit e12a205
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 5 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,7 @@ Once you have completed the above steps you can complete the file values.yaml to
| api.enabled | Yes | true/false |
| api.defaultRedis | No | Enable default Redis using Bitnami helm chart |
| api.defaultDatabase | No | Enable default database using postgresql helm chart |
| api.image | No | API image repository |
| api.version | Yes | Terrakube API version |
| api.replicaCount | Yes | |
| api.serviceAccountName | No | Kubernetes Service Account name |
Expand All @@ -273,6 +274,7 @@ Once you have completed the above steps you can complete the file values.yaml to
| api.securityContext | No | Fill securityContext field |
| api.containerSecurityContext | No | Fill securityContext field in the container spec |
| executor.enabled | Yes | true/false |
| executor.image | No | Executor image repository |
| executor.version | Yes | Terrakube Executor version |
| executor.replicaCount | Yes | |
| executor.serviceAccountName | No | Kubernetes Service Account name |
Expand All @@ -285,6 +287,7 @@ Once you have completed the above steps you can complete the file values.yaml to
| executor.securityContext | No | Fill securityContext field |
| executor.containerSecurityContext | No | Fill securityContext field in the container spec |
| registry.enabled | Yes | |
| registry.image | No | Registry image repository |
| registry.version | Yes | |
| registry.replicaCount | Yes | |
| registry.serviceAccountName | No | Kubernetes Service Account name |
Expand All @@ -295,6 +298,7 @@ Once you have completed the above steps you can complete the file values.yaml to
| registry.securityContext | No | Fill securityContext field |
| registry.containerSecurityContext | No | Fill securityContext field in the container spec |
| ui.enabled | Yes | true/false |
| ui.image | No | UI image repository |
| ui.version | Yes | |
| ui.replicaCount | Yes | |
| ui.serviceAccountName | No | Kubernetes Service Account name |
Expand Down
2 changes: 1 addition & 1 deletion charts/terrakube/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 3.15.1
version: 3.15.2

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
2 changes: 1 addition & 1 deletion charts/terrakube/templates/deployment-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ spec:
spec:
containers:
- name: terrakube-api
image: azbuilder/api-server:{{ default .Chart.AppVersion .Values.api.version }}
image: {{ .Values.api.image }}:{{ default .Chart.AppVersion .Values.api.version }}
{{- if .Values.api.resources }}
resources: {{- toYaml .Values.api.resources | nindent 12 }}
{{- end }}
Expand Down
2 changes: 1 addition & 1 deletion charts/terrakube/templates/deployment-executor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ spec:
spec:
containers:
- name: terrakube-executor
image: azbuilder/executor:{{ default .Chart.AppVersion .Values.executor.version }}
image: {{ .Values.executor.image }}:{{ default .Chart.AppVersion .Values.executor.version }}
{{- if .Values.executor.resources }}
resources: {{- toYaml .Values.executor.resources | nindent 12 }}
{{- end }}
Expand Down
2 changes: 1 addition & 1 deletion charts/terrakube/templates/deployment-registry.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ spec:
spec:
containers:
- name: terrakube-registry
image: azbuilder/open-registry:{{ default .Chart.AppVersion .Values.registry.version }}
image: {{ .Values.registry.image }}:{{ default .Chart.AppVersion .Values.registry.version }}
{{- if .Values.registry.resources }}
resources: {{- toYaml .Values.registry.resources | nindent 12 }}
{{- end }}
Expand Down
2 changes: 1 addition & 1 deletion charts/terrakube/templates/deployment-ui.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ spec:
spec:
containers:
- name: terrakube-ui
image: azbuilder/terrakube-ui:{{ default .Chart.AppVersion .Values.ui.version }}
image: {{ .Values.ui.image }}:{{ default .Chart.AppVersion .Values.ui.version }}
volumeMounts:
- name: ui-config
mountPath: "/app/env-config.js"
Expand Down
4 changes: 4 additions & 0 deletions charts/terrakube/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ redis:
api:
existingSecret: false
enabled: true
image: azbuilder/api-server
version: ""
replicaCount: "1"
serviceType: "ClusterIP"
Expand Down Expand Up @@ -202,6 +203,7 @@ api:
executor:
existingSecret: false
enabled: true
image: "azbuilder/executor"
version: ""
replicaCount: "1"
serviceType: "ClusterIP"
Expand All @@ -217,6 +219,7 @@ executor:
registry:
enabled: true
existingSecret: false
image: azbuilder/open-registry
version: ""
replicaCount: "1"
serviceType: "ClusterIP"
Expand All @@ -230,6 +233,7 @@ registry:
ui:
enabled: true
existingSecret: false
image: azbuilder/terrakube-ui
version: ""
replicaCount: "1"
serviceType: "ClusterIP"
Expand Down

0 comments on commit e12a205

Please sign in to comment.