Skip to content
This repository has been archived by the owner on Feb 28, 2025. It is now read-only.

N21-2333 Update tasks regarding WITH_SHD_CLIENT #41

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions ansible/roles/shd-client-core/defaults/main.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
SHD_CLIENT_IMAGE: quay.io/schulcloudverbund/shd-client
SHD_CLIENT_PREFIX: superhero.
WITH_SHD_CLIENT: false
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

8 changes: 8 additions & 0 deletions ansible/roles/shd-client-core/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
kubeconfig: ~/.kube/config
namespace: "{{ NAMESPACE }}"
template: svc.yml.j2
state: absent
when: WITH_SHD_CLIENT is not defined or not WITH_SHD_CLIENT | bool
tags:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the solution for it

Suggested change
template: svc.yml.j2
state: absent
when: WITH_SHD_CLIENT is not defined or not WITH_SHD_CLIENT | bool
tags:
template: svc.yml.j2
state: "{{ 'present' if WITH_SHD_CLIENT else 'absent'}}"
tags:

- service

Expand All @@ -12,6 +14,8 @@
namespace: "{{ NAMESPACE }}"
template: configmap.yml.j2
apply: yes
state: absent
when: WITH_SHD_CLIENT is not defined or not WITH_SHD_CLIENT | bool
tags:
- configmap

Expand All @@ -20,6 +24,8 @@
kubeconfig: ~/.kube/config
namespace: "{{ NAMESPACE }}"
template: deployment.yml.j2
state: absent
when: WITH_SHD_CLIENT is not defined or not WITH_SHD_CLIENT | bool
tags:
- deployment

Expand All @@ -28,5 +34,7 @@
kubeconfig: ~/.kube/config
namespace: "{{ NAMESPACE }}"
template: ingress.yml.j2
state: absent
when: WITH_SHD_CLIENT is not defined or not WITH_SHD_CLIENT | bool
tags:
- ingress
Loading