-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: see-quick <[email protected]>
- Loading branch information
Showing
3 changed files
with
22 additions
and
7 deletions.
There are no files selected for viewing
25 changes: 19 additions & 6 deletions
25
install/roles/automation-hub/tasks/scenario-deployment/tekton/chaos-tkn-pipelines.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,25 @@ | ||
--- | ||
- name: Deploy chaos engineering resources for Tekton | ||
- name: Deploy chaos engineering resources for Tekton from Jinja2 templates | ||
kubernetes.core.k8s: | ||
kubeconfig: "{{ kubeconfig_path }}/{{ infra_context_name }}" | ||
namespace: "{{ infra_ci_namespace }}" | ||
state: present | ||
definition: "{{ lookup('file', item) }}" | ||
definition: "{{ lookup('template', item) }}" | ||
verify_ssl: no | ||
apply: true | ||
loop: | ||
- chaos/chaos-trigger.yaml.j2 | ||
- chaos/chaos-cron-job.yaml | ||
with_fileglob: | ||
- "templates/tekton/pipelines/chaos/*.j2" # Only match Jinja2 template files | ||
tags: | ||
- chaos | ||
|
||
- name: Deploy non-template chaos engineering cron-jobs for Tekton | ||
kubernetes.core.k8s: | ||
kubeconfig: "{{ kubeconfig_path }}/{{ infra_context_name }}" | ||
namespace: "{{ infra_ci_namespace }}" | ||
state: present | ||
definition: "{{ lookup('file', item) }}" # No Jinja2 processing needed | ||
verify_ssl: no | ||
apply: true | ||
with_fileglob: | ||
- "templates/tekton/pipelines/chaos/cron-jobs/*.yaml" | ||
tags: | ||
- chaos |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters