Skip to content

Commit e612e4b

Browse files
authored
feat: add k8s integration for tutor paragon static hosting (#45)
* feat: add k8s integration for tutor paragon static hosting * feat: update paragon k8s integration with tutor-mfe * feat: remove conditional for MFE_HOST_EXTRA_FILES in k8s volume configuration
1 parent 9cf22b7 commit e612e4b

File tree

3 files changed

+24
-0
lines changed

3 files changed

+24
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{% if MFE_HOST_EXTRA_FILES %}
2+
{% if not PARAGON_ENABLED_THEMES %} {% set PARAGON_ENABLED_THEMES = ['light'] %} {% endif %}
3+
- name: paragon-static-files
4+
files:
5+
- core.min.css=../{{ PARAGON_COMPILED_THEMES_PATH }}/core/core.min.css {% for theme in PARAGON_ENABLED_THEMES %}
6+
- {{ theme }}.min.css=../{{ PARAGON_COMPILED_THEMES_PATH }}/themes/{{ theme }}/{{ theme }}.min.css {% endfor %}
7+
options:
8+
labels:
9+
app.kubernetes.io/name: paragon-static-files
10+
{% endif %}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
- mountPath: /paragon-statics
2+
name: static-files
3+
readOnly: true
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{% if not PARAGON_ENABLED_THEMES %} {% set PARAGON_ENABLED_THEMES = ['light'] %} {% endif %}
2+
- name: static-files
3+
configMap:
4+
name: paragon-static-files
5+
items:
6+
- key: core.min.css
7+
path: core/core.min.css
8+
{% for theme in PARAGON_ENABLED_THEMES %}
9+
- key: {{ theme }}.min.css
10+
path: themes/{{ theme }}/{{ theme }}.min.css
11+
{% endfor %}

0 commit comments

Comments
 (0)