-
Notifications
You must be signed in to change notification settings - Fork 5
Add mediawiki configmap into the api deployment #204
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -216,15 +216,24 @@ spec: | |
| name: {{ template "api.fullname" . }}-app-passport-keys | ||
| {{- end }} | ||
| key: oauth-private.key | ||
| {{- if .Values.app.gce.serviceAccountSecret }} | ||
| volumeMounts: | ||
| {{- if .values.app.gce.serviceAccountSecret }} | ||
| - name: "service-account-wbstack-api" | ||
| mountPath: "/var/run/secret/cloud.google.com" | ||
| {{- end }} | ||
|
|
||
| - name: "mediawiki-configMap" | ||
| mountPath: "/config" | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think probably this wants to go somewhere specific but I'm stalling a little on exactly where. Perhaps into the Laravel config directory? (/var/www/html/config). And it should definitely have a more meaningful name than
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yes, I agree. this was a temporary location but I am also not yet sure where to place it. |
||
| volumes: | ||
| {{- if .values.app.gce.serviceAccountSecret }} | ||
| - name: "service-account-wbstack-api" | ||
| secret: | ||
| secretName: {{ .Values.app.gce.serviceAccountSecret | quote }} | ||
| {{- end }} | ||
| {{- end }} | ||
|
|
||
| - name: "mediawiki-configMap" | ||
| configMap: | ||
| name: "mediawiki-version-map" | ||
|
|
||
| {{- with .Values.nodeSelector }} | ||
| nodeSelector: | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| apiVersion: v1 | ||
| kind: ConfigMap | ||
| metadata: | ||
| name: mediawiki-version-map | ||
| data: | ||
| {{- .Values.mediawikiVersionConfigMap | toYaml | nindent 2 }} |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -214,6 +214,10 @@ service: | |
| ingress: | ||
| enabled: false | ||
|
|
||
| mediawikiVersionConfigMap: | | ||
| mw1.39-wbs1: 139-app | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm now wondering what this file should look like; all the laravel config files are actually This is yaml right now but that or json seems a bit off. In general I struggled to find evidence with my googling of people loading whole config files at run (not build) time into laravel. Mostly they just seem to use environment variables. I guess a php file in the config folder might not be the worst solution though. |
||
| mw1.43-wbs1: 143-app | ||
|
|
||
| resources: | ||
| backend: {} | ||
| web: {} | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is it ok that this is now always present even if
.values.app.gce.serviceAccountSecretevaluates to false? I guess in this case it's just blank?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not sure I understand
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
by swapping this line (219) with the one below (220) now the
volumeMounts:key line will always be present