-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(RHIDP-4537): Ensure framework and MVP scenario works with RHDH v…
…1.4 (#109) Signed-off-by: Pavel Macík <[email protected]>
- Loading branch information
Showing
2 changed files
with
64 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
61 changes: 61 additions & 0 deletions
61
ci-scripts/rhdh-setup/template/backstage/helm/extravolume-patch-1.4.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
--- | ||
extraVolumeMounts: | ||
- name: dynamic-plugins-root | ||
mountPath: /opt/app-root/src/dynamic-plugins-root | ||
- name: diststatic | ||
mountPath: /opt/app-root/src/packages/app/dist/static | ||
- name: rbac-policy | ||
mountPath: /opt/app-root/src/rbac | ||
extraVolumes: | ||
- name: dynamic-plugins-root | ||
ephemeral: | ||
volumeClaimTemplate: | ||
spec: | ||
accessModes: | ||
- ReadWriteOnce | ||
resources: | ||
requests: | ||
# -- Size of the volume that will contain the dynamic plugins. It should be large enough to contain all the plugins. | ||
storage: 2Gi | ||
- name: dynamic-plugins | ||
configMap: | ||
defaultMode: 420 | ||
name: '{{ printf "%s-dynamic-plugins" .Release.Name }}' | ||
optional: true | ||
- name: rbac-policy | ||
configMap: | ||
defaultMode: 420 | ||
name: rbac-policy | ||
- name: dynamic-plugins-npmrc | ||
secret: | ||
defaultMode: 420 | ||
optional: true | ||
secretName: dynamic-plugins-npmrc | ||
- name: npmcacache | ||
emptyDir: {} | ||
- name: diststatic | ||
emptyDir: {} | ||
initContainers: | ||
- name: install-dynamic-plugins | ||
image: '{{ include "backstage.image" . }}' | ||
command: | ||
- ./install-dynamic-plugins.sh | ||
- /dynamic-plugins-root | ||
env: | ||
- name: NPM_CONFIG_USERCONFIG | ||
value: /opt/app-root/src/.npmrc.dynamic-plugins | ||
imagePullPolicy: Always | ||
volumeMounts: | ||
- mountPath: /dynamic-plugins-root | ||
name: dynamic-plugins-root | ||
- mountPath: /opt/app-root/src/dynamic-plugins.yaml | ||
name: dynamic-plugins | ||
readOnly: true | ||
subPath: dynamic-plugins.yaml | ||
- mountPath: /opt/app-root/src/.npmrc.dynamic-plugins | ||
name: dynamic-plugins-npmrc | ||
readOnly: true | ||
subPath: .npmrc | ||
- mountPath: /opt/app-root/src/.npm/_cacache | ||
name: npmcacache | ||
workingDir: /opt/app-root/src |