iac: localize configmap scripts
This commit is contained in:
parent
6da576a707
commit
3fc9f7bbdb
@ -20,7 +20,13 @@ def load_sync_module(monkeypatch):
|
||||
}
|
||||
for k, v in env.items():
|
||||
monkeypatch.setenv(k, v)
|
||||
module_path = pathlib.Path(__file__).resolve().parents[1] / "mailu_sync.py"
|
||||
module_path = (
|
||||
pathlib.Path(__file__).resolve().parents[2]
|
||||
/ "services"
|
||||
/ "mailu"
|
||||
/ "scripts"
|
||||
/ "mailu_sync.py"
|
||||
)
|
||||
spec = importlib.util.spec_from_file_location("mailu_sync_testmod", module_path)
|
||||
module = importlib.util.module_from_spec(spec)
|
||||
assert spec.loader is not None
|
||||
|
||||
@ -26,8 +26,8 @@ generatorOptions:
|
||||
configMapGenerator:
|
||||
- name: portal-e2e-tests
|
||||
files:
|
||||
- test_portal_token_exchange.py=../../scripts/tests/test_portal_token_exchange.py
|
||||
- test_keycloak_execute_actions_email.py=../../scripts/tests/test_keycloak_execute_actions_email.py
|
||||
- test_portal_token_exchange.py=scripts/tests/test_portal_token_exchange.py
|
||||
- test_keycloak_execute_actions_email.py=scripts/tests/test_keycloak_execute_actions_email.py
|
||||
- name: portal-e2e-client-secret-sync-script
|
||||
files:
|
||||
- sso_portal_e2e_client_secret_sync.sh=../../scripts/sso_portal_e2e_client_secret_sync.sh
|
||||
- sso_portal_e2e_client_secret_sync.sh=scripts/sso_portal_e2e_client_secret_sync.sh
|
||||
|
||||
@ -19,10 +19,10 @@ configMapGenerator:
|
||||
- name: mailu-sync-script
|
||||
namespace: mailu-mailserver
|
||||
files:
|
||||
- sync.py=../../scripts/mailu_sync.py
|
||||
- sync.py=scripts/mailu_sync.py
|
||||
options:
|
||||
disableNameSuffixHash: true
|
||||
- name: mailu-sync-listener
|
||||
namespace: mailu-mailserver
|
||||
files:
|
||||
- listener.py=../../scripts/mailu_sync_listener.py
|
||||
- listener.py=scripts/mailu_sync_listener.py
|
||||
|
||||
@ -8,6 +8,6 @@ resources:
|
||||
configMapGenerator:
|
||||
- name: nextcloud-mail-sync-script
|
||||
files:
|
||||
- sync.sh=../../scripts/nextcloud-mail-sync.sh
|
||||
- sync.sh=scripts/nextcloud-mail-sync.sh
|
||||
options:
|
||||
disableNameSuffixHash: true
|
||||
|
||||
@ -15,6 +15,6 @@ resources:
|
||||
configMapGenerator:
|
||||
- name: nextcloud-maintenance-script
|
||||
files:
|
||||
- maintenance.sh=../../scripts/nextcloud-maintenance.sh
|
||||
- maintenance.sh=scripts/nextcloud-maintenance.sh
|
||||
options:
|
||||
disableNameSuffixHash: true
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user