From 53e87f35bfd4835c684e40671e6989541e0ed1dd Mon Sep 17 00:00:00 2001 From: mamutmk5 <3045922+mamutmk5@users.noreply.github.com> Date: Fri, 16 Aug 2024 14:28:58 +0200 Subject: [PATCH] BC-7854 - add ansible tags --- .github/workflows/push.yml | 2 +- ansible/roles/common-cartridge/tasks/main.yml | 10 +++ .../h5p-library-management/tasks/main.yml | 6 ++ ansible/roles/moin-schule-sync/tasks/main.yml | 10 +++ .../schulcloud-server-core/tasks/main.yml | 86 +++++++++++++++++++ .../schulcloud-server-h5p/tasks/main.yml | 6 ++ .../schulcloud-server-init/tasks/main.yml | 20 ++++- .../schulcloud-server-ldapsync/tasks/main.yml | 6 ++ .../tasks/main.yml | 6 ++ .../schulcloud-server-tspsync/tasks/main.yml | 16 ++++ 10 files changed, 166 insertions(+), 2 deletions(-) diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 32a20eac108..8853de3fa22 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -140,7 +140,7 @@ jobs: needs: - build_and_push - branch_meta - uses: hpi-schul-cloud/dof_app_deploy/.github/workflows/deploy.yml@main + uses: hpi-schul-cloud/dof_app_deploy/.github/workflows/deploy.yml@BC-7854-ansible-tags with: branch: ${{ needs.branch_meta.outputs.branch }} secrets: diff --git a/ansible/roles/common-cartridge/tasks/main.yml b/ansible/roles/common-cartridge/tasks/main.yml index aa8ca9b8e70..c1908988884 100644 --- a/ansible/roles/common-cartridge/tasks/main.yml +++ b/ansible/roles/common-cartridge/tasks/main.yml @@ -5,6 +5,8 @@ namespace: "{{ NAMESPACE }}" template: configmap.yml.j2 when: WITH_COMMON_CARTRIDGE is defined and WITH_COMMON_CARTRIDGE|bool + tags: + - configmap - name: 1Password kubernetes.core.k8s: @@ -14,6 +16,8 @@ when: - ONEPASSWORD_OPERATOR is defined and ONEPASSWORD_OPERATOR|bool - WITH_COMMON_CARTRIDGE is defined and WITH_COMMON_CARTRIDGE|bool + tags: + - 1password - name: Deployment kubernetes.core.k8s: @@ -21,6 +25,8 @@ namespace: "{{ NAMESPACE }}" template: deployment.yml.j2 when: WITH_COMMON_CARTRIDGE is defined and WITH_COMMON_CARTRIDGE|bool + tags: + - deployment - name: Service kubernetes.core.k8s: @@ -28,6 +34,8 @@ namespace: "{{ NAMESPACE }}" template: svc.yml.j2 when: WITH_COMMON_CARTRIDGE is defined and WITH_COMMON_CARTRIDGE|bool + tags: + - service # This is a testing route and will not be deployed # - name: Ingress @@ -36,3 +44,5 @@ # namespace: "{{ NAMESPACE }}" # template: ingress.yml.j2 # when: WITH_COMMON_CARTRIDGE is defined and WITH_COMMON_CARTRIDGE|bool +# tags: +# - ingress diff --git a/ansible/roles/h5p-library-management/tasks/main.yml b/ansible/roles/h5p-library-management/tasks/main.yml index 695c1448ee9..d3fa4c370df 100644 --- a/ansible/roles/h5p-library-management/tasks/main.yml +++ b/ansible/roles/h5p-library-management/tasks/main.yml @@ -4,6 +4,8 @@ namespace: "{{ NAMESPACE }}" template: api-h5p-library-management-onepassword.yml.j2 when: ONEPASSWORD_OPERATOR is defined and ONEPASSWORD_OPERATOR|bool and WITH_H5P_LIBRARY_MANAGEMENT is defined and WITH_H5P_LIBRARY_MANAGEMENT|bool == true + tags: + - 1password - name: H5pLibraryManagement ConfigMap when: WITH_H5P_LIBRARY_MANAGEMENT is defined and WITH_H5P_LIBRARY_MANAGEMENT|bool == true @@ -11,6 +13,8 @@ kubeconfig: ~/.kube/config namespace: "{{ NAMESPACE }}" template: api-h5p-library-management-configmap.yml.j2 + tags: + - configmap - name: H5pLibraryManagement CronJob when: WITH_H5P_LIBRARY_MANAGEMENT is defined and WITH_H5P_LIBRARY_MANAGEMENT|bool == true @@ -18,3 +22,5 @@ kubeconfig: ~/.kube/config namespace: "{{ NAMESPACE }}" template: api-h5p-library-management-cronjob.yml.j2 + tags: + - cronjob diff --git a/ansible/roles/moin-schule-sync/tasks/main.yml b/ansible/roles/moin-schule-sync/tasks/main.yml index ec9bd313d8a..edec98100d7 100644 --- a/ansible/roles/moin-schule-sync/tasks/main.yml +++ b/ansible/roles/moin-schule-sync/tasks/main.yml @@ -4,6 +4,8 @@ kubeconfig: ~/.kube/config namespace: "{{ NAMESPACE }}" template: moin-schule-sync-onepassword.yml.j2 + tags: + - 1password - name: moin.schule users sync CronJob when: WITH_MOIN_SCHULE is defined and WITH_MOIN_SCHULE|bool == true @@ -11,6 +13,8 @@ kubeconfig: ~/.kube/config namespace: "{{ NAMESPACE }}" template: moin-schule-users-sync-cronjob.yml.j2 + tags: + - cronjob - name: moin.schule users sync CronJob ConfigMap when: WITH_MOIN_SCHULE is defined and WITH_MOIN_SCHULE|bool == true @@ -18,6 +22,8 @@ kubeconfig: ~/.kube/config namespace: "{{ NAMESPACE }}" template: moin-schule-users-sync-cronjob-configmap.yml.j2 + tags: + - configmap - name: unsynced moin.schule users deletion queueing CronJob when: WITH_MOIN_SCHULE is defined and WITH_MOIN_SCHULE|bool == true and WITH_UNSYNCED_ENTITIES_DELETION is defined and WITH_UNSYNCED_ENTITIES_DELETION|bool == true @@ -25,6 +31,8 @@ kubeconfig: ~/.kube/config namespace: "{{ NAMESPACE }}" template: moin-schule-users-deletion-queueing-cronjob.yml.j2 + tags: + - cronjob - name: unsynced moin.schule users deletion queueing CronJob ConfigMap when: WITH_MOIN_SCHULE is defined and WITH_MOIN_SCHULE|bool == true and WITH_UNSYNCED_ENTITIES_DELETION is defined and WITH_UNSYNCED_ENTITIES_DELETION|bool == true @@ -32,3 +40,5 @@ kubeconfig: ~/.kube/config namespace: "{{ NAMESPACE }}" template: moin-schule-users-deletion-queueing-cronjob-configmap.yml.j2 + tags: + - configmap diff --git a/ansible/roles/schulcloud-server-core/tasks/main.yml b/ansible/roles/schulcloud-server-core/tasks/main.yml index 89df6d56d44..25b0880786c 100644 --- a/ansible/roles/schulcloud-server-core/tasks/main.yml +++ b/ansible/roles/schulcloud-server-core/tasks/main.yml @@ -3,18 +3,24 @@ kubeconfig: ~/.kube/config namespace: "{{ NAMESPACE }}" template: svc.yml.j2 + tags: + - service - name: ServiceMonitor kubernetes.core.k8s: kubeconfig: ~/.kube/config namespace: "{{ NAMESPACE }}" template: svc-monitor.yml.j2 + tags: + - prometheus - name: FileStorageService kubernetes.core.k8s: kubeconfig: ~/.kube/config namespace: "{{ NAMESPACE }}" template: api-files-svc.yml.j2 + tags: + - service - name: FwuLearningContentsService kubernetes.core.k8s: @@ -22,6 +28,8 @@ namespace: "{{ NAMESPACE }}" template: api-fwu-svc.yml.j2 when: FEATURE_FWU_CONTENT_ENABLED is defined and FEATURE_FWU_CONTENT_ENABLED|bool + tags: + - service - name: Configmap kubernetes.core.k8s: @@ -29,6 +37,8 @@ namespace: "{{ NAMESPACE }}" template: configmap.yml.j2 apply: yes + tags: + - configmap - name: Secret by 1Password kubernetes.core.k8s: @@ -36,6 +46,8 @@ namespace: "{{ NAMESPACE }}" template: onepassword.yml.j2 when: ONEPASSWORD_OPERATOR is defined and ONEPASSWORD_OPERATOR|bool + tags: + - 1password - name: File Storage Secret by 1Password kubernetes.core.k8s: @@ -43,6 +55,8 @@ namespace: "{{ NAMESPACE }}" template: api-files-onepassword.yml.j2 when: ONEPASSWORD_OPERATOR is defined and ONEPASSWORD_OPERATOR|bool + tags: + - 1password - name: Admin Api ingress kubernetes.core.k8s: @@ -51,6 +65,8 @@ template: admin-api-ingress.yml.j2 apply: yes when: WITH_API_ADMIN is defined and WITH_API_ADMIN|bool + tags: + - ingress - name: Admin API server ConfigMap kubernetes.core.k8s: @@ -59,6 +75,8 @@ template: admin-api-server-configmap.yml.j2 apply: yes when: WITH_API_ADMIN is defined and WITH_API_ADMIN|bool + tags: + - configmap - name: Admin API server Secret (from 1Password) kubernetes.core.k8s: @@ -68,6 +86,8 @@ when: - ONEPASSWORD_OPERATOR is defined and ONEPASSWORD_OPERATOR|bool - WITH_API_ADMIN is defined and WITH_API_ADMIN|bool + tags: + - 1password - name: Admin API client secret (from 1Password) kubernetes.core.k8s: @@ -77,6 +97,8 @@ when: - ONEPASSWORD_OPERATOR is defined and ONEPASSWORD_OPERATOR|bool - WITH_API_ADMIN is defined and WITH_API_ADMIN|bool + tags: + - 1password - name: remove old migration Job kubernetes.core.k8s: @@ -87,18 +109,24 @@ name: api-migration-job state: absent wait: yes + tags: + - job - name: migration Job kubernetes.core.k8s: kubeconfig: ~/.kube/config namespace: "{{ NAMESPACE }}" template: migration-job.yml.j2 + tags: + - job - name: Deployment kubernetes.core.k8s: kubeconfig: ~/.kube/config namespace: "{{ NAMESPACE }}" template: deployment.yml.j2 + tags: + - deployment - name: Ingress kubernetes.core.k8s: @@ -106,12 +134,16 @@ namespace: "{{ NAMESPACE }}" template: ingress.yml.j2 apply: yes + tags: + - ingress - name: FileStorageDeployment kubernetes.core.k8s: kubeconfig: ~/.kube/config namespace: "{{ NAMESPACE }}" template: api-files-deployment.yml.j2 + tags: + - deployment - name: File Storage Ingress kubernetes.core.k8s: @@ -119,6 +151,8 @@ namespace: "{{ NAMESPACE }}" template: api-files-ingress.yml.j2 apply: yes + tags: + - ingress - name: FwuLearningContentsDeployment kubernetes.core.k8s: @@ -126,6 +160,8 @@ namespace: "{{ NAMESPACE }}" template: api-fwu-deployment.yml.j2 when: FEATURE_FWU_CONTENT_ENABLED is defined and FEATURE_FWU_CONTENT_ENABLED|bool + tags: + - deployment - name: Fwu Learning Contents Ingress Remove kubernetes.core.k8s: @@ -136,12 +172,16 @@ kind: Ingress name: "{{ NAMESPACE }}-api-fwu-ingress" when: FEATURE_FWU_CONTENT_ENABLED is defined and FEATURE_FWU_CONTENT_ENABLED|bool + tags: + - ingress - name: Delete Files CronJob kubernetes.core.k8s: kubeconfig: ~/.kube/config namespace: "{{ NAMESPACE }}" template: api-delete-s3-files-cronjob.yml.j2 + tags: + - cronjob - name: Delete Tldraw Files CronJob kubernetes.core.k8s: @@ -149,6 +189,8 @@ namespace: "{{ NAMESPACE }}" template: tldraw-delete-files-cronjob.yml.j2 when: WITH_TLDRAW is defined and WITH_TLDRAW|bool + tags: + - cronjob - name: Data deletion trigger CronJob kubernetes.core.k8s: @@ -156,6 +198,8 @@ namespace: "{{ NAMESPACE }}" template: data-deletion-trigger-cronjob.yml.j2 when: WITH_API_ADMIN is defined and WITH_API_ADMIN|bool + tags: + - cronjob - name: Data deletion trigger CronJob ConfigMap kubernetes.core.k8s: @@ -163,18 +207,24 @@ namespace: "{{ NAMESPACE }}" template: data-deletion-trigger-cronjob-configmap.yml.j2 when: WITH_API_ADMIN is defined and WITH_API_ADMIN|bool + tags: + - configmap - name: amqp files storage Deployment kubernetes.core.k8s: kubeconfig: ~/.kube/config namespace: "{{ NAMESPACE }}" template: amqp-files-deployment.yml.j2 + tags: + - deployment - name: amqp files storage configmap kubernetes.core.k8s: kubeconfig: ~/.kube/config namespace: "{{ NAMESPACE }}" template: amqp-files-configmap.yml.j2 + tags: + - configmap - name: amqp files storage Secret by 1Password kubernetes.core.k8s: @@ -182,12 +232,16 @@ namespace: "{{ NAMESPACE }}" template: amqp-files-onepassword.yml.j2 when: ONEPASSWORD_OPERATOR is defined and ONEPASSWORD_OPERATOR|bool + tags: + - 1password - name: Preview Generator Deployment kubernetes.core.k8s: kubeconfig: ~/.kube/config namespace: "{{ NAMESPACE }}" template: preview-generator-deployment.yml.j2 + tags: + - deployment - name: preview generator configmap kubernetes.core.k8s: @@ -195,6 +249,8 @@ namespace: "{{ NAMESPACE }}" template: preview-generator-configmap.yml.j2 apply: yes + tags: + - configmap - name: preview generator Secret by 1Password kubernetes.core.k8s: @@ -202,6 +258,8 @@ namespace: "{{ NAMESPACE }}" template: preview-generator-onepassword.yml.j2 when: ONEPASSWORD_OPERATOR is defined and ONEPASSWORD_OPERATOR|bool + tags: + - 1password - name: preview generator scaled object kubernetes.core.k8s: @@ -211,6 +269,8 @@ when: - KEDA_ENABLED is defined and KEDA_ENABLED|bool - SCALED_PREVIEW_GENERATOR_ENABLED is defined and SCALED_PREVIEW_GENERATOR_ENABLED|bool + tags: + - keda - name: admin api server deployment kubernetes.core.k8s: @@ -218,6 +278,8 @@ namespace: "{{ NAMESPACE }}" template: admin-api-server-deployment.yml.j2 when: WITH_API_ADMIN is defined and WITH_API_ADMIN|bool + tags: + - deployment - name: admin api server service kubernetes.core.k8s: @@ -225,6 +287,8 @@ namespace: "{{ NAMESPACE }}" template: admin-api-server-svc.yml.j2 when: WITH_API_ADMIN is defined and WITH_API_ADMIN|bool + tags: + - service - name: admin api server service monitor kubernetes.core.k8s: @@ -232,6 +296,8 @@ namespace: "{{ NAMESPACE }}" template: admin-api-server-svc-monitor.yml.j2 when: WITH_API_ADMIN is defined and WITH_API_ADMIN|bool + tags: + - prometheus - name: TlDraw server Secret (from 1Password) kubernetes.core.k8s: @@ -241,6 +307,8 @@ when: - ONEPASSWORD_OPERATOR is defined and ONEPASSWORD_OPERATOR|bool - WITH_TLDRAW is defined and WITH_TLDRAW|bool + tags: + - 1password - name: TlDraw server deployment kubernetes.core.k8s: @@ -248,6 +316,8 @@ namespace: "{{ NAMESPACE }}" template: tldraw-deployment.yml.j2 when: WITH_TLDRAW is defined and WITH_TLDRAW|bool + tags: + - deployment - name: TlDraw server service kubernetes.core.k8s: @@ -255,6 +325,8 @@ namespace: "{{ NAMESPACE }}" template: tldraw-server-svc.yml.j2 when: WITH_TLDRAW is defined and WITH_TLDRAW|bool + tags: + - service - name: Tldraw ingress kubernetes.core.k8s: @@ -263,6 +335,8 @@ template: tldraw-ingress.yml.j2 apply: yes when: WITH_TLDRAW is defined and WITH_TLDRAW|bool + tags: + - ingress - name: TldrawServiceMonitor kubernetes.core.k8s: @@ -270,6 +344,8 @@ namespace: "{{ NAMESPACE }}" template: tldraw-svc-monitor.yml.j2 when: WITH_TLDRAW is defined and WITH_TLDRAW|bool + tags: + - prometheus - name: BoardCollaboration configmap kubernetes.core.k8s: @@ -277,6 +353,8 @@ namespace: "{{ NAMESPACE }}" template: board-collaboration-configmap.yml.j2 state: "{{ 'present' if WITH_BOARD_COLLABORATION else 'absent'}}" + tags: + - configmap - name: BoardCollaboration deployment kubernetes.core.k8s: @@ -284,6 +362,8 @@ namespace: "{{ NAMESPACE }}" template: board-collaboration-deployment.yml.j2 state: "{{ 'present' if WITH_BOARD_COLLABORATION else 'absent'}}" + tags: + - deployment - name: BoardCollaboration service kubernetes.core.k8s: @@ -291,6 +371,8 @@ namespace: "{{ NAMESPACE }}" template: board-collaboration-service.yml.j2 state: "{{ 'present' if WITH_BOARD_COLLABORATION else 'absent'}}" + tags: + - service - name: BoardCollaboration ingress kubernetes.core.k8s: @@ -299,6 +381,8 @@ template: board-collaboration-ingress.yml.j2 apply: yes state: "{{ 'present' if WITH_BOARD_COLLABORATION else 'absent'}}" + tags: + - ingress - name: BoardCollaborationServiceMonitor kubernetes.core.k8s: @@ -306,3 +390,5 @@ namespace: '{{ NAMESPACE }}' template: board-collaboration-svc-monitor.yml.j2 state: "{{ 'present' if WITH_BOARD_COLLABORATION else 'absent'}}" + tags: + - prometheus diff --git a/ansible/roles/schulcloud-server-h5p/tasks/main.yml b/ansible/roles/schulcloud-server-h5p/tasks/main.yml index 1063f5e098d..370d66cff07 100644 --- a/ansible/roles/schulcloud-server-h5p/tasks/main.yml +++ b/ansible/roles/schulcloud-server-h5p/tasks/main.yml @@ -4,6 +4,8 @@ namespace: "{{ NAMESPACE }}" template: api-h5p-onepassword.yml.j2 when: ONEPASSWORD_OPERATOR is defined and ONEPASSWORD_OPERATOR|bool and WITH_H5P_EDITOR is defined and WITH_H5P_EDITOR|bool + tags: + - 1password - name: H5PEditorProvider kubernetes.core.k8s: @@ -11,6 +13,8 @@ namespace: "{{ NAMESPACE }}" template: api-h5p-svc.yml.j2 when: WITH_H5P_EDITOR is defined and WITH_H5P_EDITOR|bool + tags: + - service - name: H5pEditorDeployment kubernetes.core.k8s: @@ -18,3 +22,5 @@ namespace: "{{ NAMESPACE }}" template: api-h5p-deployment.yml.j2 when: WITH_H5P_EDITOR is defined and WITH_H5P_EDITOR|bool + tags: + - deployment diff --git a/ansible/roles/schulcloud-server-init/tasks/main.yml b/ansible/roles/schulcloud-server-init/tasks/main.yml index 6993bb3448a..9051679e0ce 100644 --- a/ansible/roles/schulcloud-server-init/tasks/main.yml +++ b/ansible/roles/schulcloud-server-init/tasks/main.yml @@ -5,6 +5,8 @@ namespace: "{{ NAMESPACE }}" template: configmap_file_init.yml.j2 when: WITH_SCHULCLOUD_INIT + tags: + - configmap - name: Remove Init Configmap File kubernetes.core.k8s: @@ -15,6 +17,8 @@ kind: ConfigMap name: api-init-file when: not WITH_SCHULCLOUD_INIT + tags: + - configmap - name: Management Deployment kubernetes.core.k8s: @@ -22,6 +26,8 @@ namespace: "{{ NAMESPACE }}" template: management-deployment.yml.j2 when: WITH_SCHULCLOUD_INIT + tags: + - deployment - name: Remove management Deployment kubernetes.core.k8s: @@ -32,6 +38,8 @@ kind: Deployment name: management-deployment when: not WITH_SCHULCLOUD_INIT + tags: + - deployment - name: Management Service kubernetes.core.k8s: @@ -39,6 +47,8 @@ namespace: "{{ NAMESPACE }}" template: management-svc.yml.j2 when: WITH_SCHULCLOUD_INIT + tags: + - service - name: Remove management Service kubernetes.core.k8s: @@ -49,6 +59,8 @@ kind: Service name: mgmt-svc when: not WITH_SCHULCLOUD_INIT + tags: + - service - name: Check Init Job kubernetes.core.k8s_info: @@ -59,6 +71,8 @@ name: api-init-job register: init_job_exists ignore_errors: yes + tags: + - job - name: Init Job kubernetes.core.k8s: @@ -66,6 +80,8 @@ namespace: "{{ NAMESPACE }}" template: job_init.yml.j2 when: WITH_SCHULCLOUD_INIT and init_job_exists.resources|length == 0 + tags: + - job - name: Remove Init Job kubernetes.core.k8s: @@ -75,4 +91,6 @@ api_version: batch/v1 kind: Job name: api-init-job - when: not WITH_SCHULCLOUD_INIT \ No newline at end of file + when: not WITH_SCHULCLOUD_INIT + tags: + - job \ No newline at end of file diff --git a/ansible/roles/schulcloud-server-ldapsync/tasks/main.yml b/ansible/roles/schulcloud-server-ldapsync/tasks/main.yml index b23c1ad9b74..0a80b7e06f8 100644 --- a/ansible/roles/schulcloud-server-ldapsync/tasks/main.yml +++ b/ansible/roles/schulcloud-server-ldapsync/tasks/main.yml @@ -5,6 +5,8 @@ kubeconfig: ~/.kube/config namespace: "{{ NAMESPACE }}" template: api-ldap-sync-full-cronjob.yml.j2 + tags: + - cronjob - name: Ldap Worker Deployment when: WITH_LDAP is defined and WITH_LDAP|bool == true @@ -12,6 +14,8 @@ kubeconfig: ~/.kube/config namespace: "{{ NAMESPACE }}" template: api-ldap-worker-deployment.yml.j2 + tags: + - deployment - name: api worker scaled object kubernetes.core.k8s: @@ -22,4 +26,6 @@ - WITH_LDAP is defined and WITH_LDAP|bool - KEDA_ENABLED is defined and KEDA_ENABLED|bool - SCALED_API_WORKER_ENABLED is defined and SCALED_API_WORKER_ENABLED|bool + tags: + - keda diff --git a/ansible/roles/schulcloud-server-migration-system/tasks/main.yml b/ansible/roles/schulcloud-server-migration-system/tasks/main.yml index 21255d57e29..51d009417a1 100644 --- a/ansible/roles/schulcloud-server-migration-system/tasks/main.yml +++ b/ansible/roles/schulcloud-server-migration-system/tasks/main.yml @@ -4,6 +4,8 @@ namespace: "{{ NAMESPACE }}" template: svc.yml.j2 state: "{{ 'present' if WITH_MIGRATION_SYSTEMS else 'absent'}}" + tags: + - service - name: Deployment kubernetes.core.k8s: @@ -11,6 +13,8 @@ namespace: "{{ NAMESPACE }}" template: deployment.yml.j2 state: "{{ 'present' if WITH_MIGRATION_SYSTEMS else 'absent'}}" + tags: + - deployment - name: Ingress kubernetes.core.k8s: @@ -19,4 +23,6 @@ template: ingress.yml.j2 apply: yes state: "{{ 'present' if WITH_MIGRATION_SYSTEMS else 'absent'}}" + tags: + - ingress diff --git a/ansible/roles/schulcloud-server-tspsync/tasks/main.yml b/ansible/roles/schulcloud-server-tspsync/tasks/main.yml index b87cf00e0f0..3f323efb681 100644 --- a/ansible/roles/schulcloud-server-tspsync/tasks/main.yml +++ b/ansible/roles/schulcloud-server-tspsync/tasks/main.yml @@ -4,6 +4,8 @@ namespace: "{{ NAMESPACE }}" template: api-tsp-sync-svc.yml.j2 when: WITH_TSP + tags: + - service - name: remove API TSP Sync Service kubernetes.core.k8s: @@ -14,6 +16,8 @@ kind: Service name: api-tsp-sync-svc when: not WITH_TSP + tags: + - service - name: API TSP Sync Deployment kubernetes.core.k8s: @@ -21,6 +25,8 @@ namespace: "{{ NAMESPACE }}" template: api-tsp-sync-deployment.yml.j2 when: WITH_TSP + tags: + - deployment - name: remove API TSP Sync Deployment kubernetes.core.k8s: @@ -31,6 +37,8 @@ namespace: "{{ NAMESPACE }}" name: api-tsp-sync-deployment when: not WITH_TSP + tags: + - deployment - name: API TSP Sync Base CronJob kubernetes.core.k8s: @@ -38,6 +46,8 @@ namespace: "{{ NAMESPACE }}" template: api-tsp-sync-base-cronjob.yml.j2 when: WITH_TSP + tags: + - cronjob - name: remove API TSP Sync Base CronJob kubernetes.core.k8s: @@ -48,6 +58,8 @@ namespace: "{{ NAMESPACE }}" name: api-tsp-sync-base-cronjob when: not WITH_TSP + tags: + - cronjob - name: API TSP Sync School CronJob kubernetes.core.k8s: @@ -55,6 +67,8 @@ namespace: "{{ NAMESPACE }}" template: api-tsp-sync-school-cronjob.yml.j2 when: WITH_TSP + tags: + - cronjob - name: remove API TSP Sync School CronJob kubernetes.core.k8s: @@ -65,3 +79,5 @@ namespace: "{{ NAMESPACE }}" name: api-tsp-sync-school-cronjob when: not WITH_TSP + tags: + - cronjob