Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 all 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.

4 changes: 4 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,7 @@
kubeconfig: ~/.kube/config
namespace: "{{ NAMESPACE }}"
template: svc.yml.j2
state: "{{ 'present' if WITH_SHD_CLIENT else 'absent'}}"
tags:
- service

Expand All @@ -12,6 +13,7 @@
namespace: "{{ NAMESPACE }}"
template: configmap.yml.j2
apply: yes
state: "{{ 'present' if WITH_SHD_CLIENT else 'absent'}}"
tags:
- configmap

Expand All @@ -20,6 +22,7 @@
kubeconfig: ~/.kube/config
namespace: "{{ NAMESPACE }}"
template: deployment.yml.j2
state: "{{ 'present' if WITH_SHD_CLIENT else 'absent'}}"
tags:
- deployment

Expand All @@ -28,5 +31,6 @@
kubeconfig: ~/.kube/config
namespace: "{{ NAMESPACE }}"
template: ingress.yml.j2
state: "{{ 'present' if WITH_SHD_CLIENT else 'absent'}}"
tags:
- ingress
Loading