Skip to content

Commit d416674

Browse files
committed
feat: update paragon k8s integration with tutor-mfe
1 parent 469b8e2 commit d416674

File tree

5 files changed

+19
-56
lines changed

5 files changed

+19
-56
lines changed

plugins/tutor-contrib-paragon/tutorparagon/patches/k8s-deployments

Lines changed: 0 additions & 39 deletions
This file was deleted.

plugins/tutor-contrib-paragon/tutorparagon/patches/k8s-services

Lines changed: 0 additions & 14 deletions
This file was deleted.

plugins/tutor-contrib-paragon/tutorparagon/patches/kustomization-configmapgenerator

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
{% if PARAGON_SERVE_COMPILED_THEMES %}
1+
{% if MFE_HOST_EXTRA_FILES %}
22
{% if not PARAGON_ENABLED_THEMES %} {% set PARAGON_ENABLED_THEMES = ['light'] %} {% endif %}
33
- name: paragon-static-files
44
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 %}
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 %}
77
options:
88
labels:
99
app.kubernetes.io/name: paragon-static-files
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: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{% if MFE_HOST_EXTRA_FILES %}
2+
{% if not PARAGON_ENABLED_THEMES %} {% set PARAGON_ENABLED_THEMES = ['light'] %} {% endif %}
3+
- name: static-files
4+
configMap:
5+
name: paragon-static-files
6+
items:
7+
- key: core.min.css
8+
path: core/core.min.css
9+
{% for theme in PARAGON_ENABLED_THEMES %}
10+
- key: {{ theme }}.min.css
11+
path: themes/{{ theme }}/{{ theme }}.min.css
12+
{% endfor %}
13+
{% endif %}

0 commit comments

Comments
 (0)