From aa67cd984be92bfafe502e61a2e76446c7d3d6d7 Mon Sep 17 00:00:00 2001 From: marcsello Date: Tue, 14 Dec 2021 17:23:55 +0100 Subject: [PATCH] Federated the controller configmap --- Chart.yaml | 4 ++-- templates/job_orchestrator_deployment.yaml | 21 ++++++++++++++------- 2 files changed, 16 insertions(+), 9 deletions(-) diff --git a/Chart.yaml b/Chart.yaml index 8c3e574..2333c5e 100644 --- a/Chart.yaml +++ b/Chart.yaml @@ -14,8 +14,8 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. -version: 0.1.4 +version: 0.1.5 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. -appVersion: 0.1.0 +appVersion: 0.1.1 diff --git a/templates/job_orchestrator_deployment.yaml b/templates/job_orchestrator_deployment.yaml index 048305c..8326a5e 100644 --- a/templates/job_orchestrator_deployment.yaml +++ b/templates/job_orchestrator_deployment.yaml @@ -48,12 +48,19 @@ data: URSIM_CONTROL_IMAGE: "registry.kmlabz.com/universalrobots/single_ursim_control:latest" URSIM_CONTROL_CONFIGMAP: "single-ursim-controller-config" --- -apiVersion: v1 -kind: ConfigMap +apiVersion: types.kubefed.io/v1beta1 +kind: FederatedConfigMap metadata: name: single-ursim-controller-config -data: - DRY_RUN: "{{ .Values.singleURSimControl.dry_run }}" - REDIS_URL: "redis://controller-redis/0" - SENTRY_DSN: "{{ .Values.singleURSimControl.sentry_dsn }}" - DEBUG: "{{ .Values.singleURSimControl.debug }}" +spec: + template: + data: + DRY_RUN: "{{ .Values.singleURSimControl.dry_run }}" + REDIS_URL: "redis://controller-redis/0" + SENTRY_DSN: "{{ .Values.singleURSimControl.sentry_dsn }}" + DEBUG: "{{ .Values.singleURSimControl.debug }}" + placement: + clusters: + - name: cloud + - name: edge-1 + - name: edge-2 \ No newline at end of file