Skip to content

Commit

Permalink
Custom website images (#1158)
Browse files Browse the repository at this point in the history
* add pp website image

* update

* fix

* up

* fix

* revert values changes
  • Loading branch information
theosanderson authored Feb 28, 2024
1 parent 5372e33 commit 8498bee
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
20 changes: 20 additions & 0 deletions kubernetes/loculus/templates/ghcr-secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,25 @@ spec:
name: ghcr-secret
type: kubernetes.io/dockerconfigjson

{{ if .Values.customWebsiteSealedSecret }}
---
apiVersion: bitnami.com/v1alpha1
kind: SealedSecret
metadata:
annotations:
sealedsecrets.bitnami.com/cluster-wide: "true"
creationTimestamp: null
name: custom-website-sealed-secret
spec:
encryptedData:
.dockerconfigjson: {{ $.Values.customWebsiteSealedSecret }}
template:
metadata:
annotations:
sealedsecrets.bitnami.com/cluster-wide: "true"
creationTimestamp: null
name: custom-website-sealed-secret
type: kubernetes.io/dockerconfigjson
{{- end }}

{{- end }}
3 changes: 2 additions & 1 deletion kubernetes/loculus/templates/loculus-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ spec:
containers:
{{- if not .Values.disableWebsite }}
- name: website
image: "ghcr.io/loculus-project/website:{{ $dockerTag }}"
image: "{{ if $.Values.customWebsiteImage }}{{ $.Values.customWebsiteImage }}{{ else }}ghcr.io/loculus-project/website:{{ $dockerTag }}{{ end }}"
imagePullPolicy: Always
resources:
requests:
Expand Down Expand Up @@ -95,6 +95,7 @@ spec:

imagePullSecrets:
- name: ghcr-secret
- name: custom-website-sealed-secret
volumes:
{{ include "loculus.configVolume" (dict "name" "loculus-website-config") | nindent 8 }}
{{ include "loculus.configVolume" (dict "name" "loculus-backend-config") | nindent 8 }}

0 comments on commit 8498bee

Please sign in to comment.