Skip to content

Commit

Permalink
Convert netchecker to kubectl_apply_stdin
Browse files Browse the repository at this point in the history
Not that the Apparmor check result is no longer used since the PSP removal.
  • Loading branch information
VannTen committed Nov 10, 2024
1 parent f65aa0d commit 07b3bc9
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 48 deletions.
18 changes: 17 additions & 1 deletion roles/kubernetes-apps/ansible/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,26 @@
- etcd_metrics

- name: Kubernetes Apps | Netchecker
import_tasks: netchecker.yml
command:
cmd: "{{ kubectl_apply_stdin }}"
stdin: "{{ lookup('template', item) }}"
delegate_to: "{{ groups['kube_control_plane'][0] }}"
run_once: true
vars:
namespace: "{{ netcheck_namespace }}"
when: deploy_netchecker
tags:
- netchecker
loop:
- netchecker-ns.yml.j2
- netchecker-agent-sa.yml.j2
- netchecker-agent-ds.yml.j2
- netchecker-agent-hostnet-ds.yml.j2
- netchecker-server-sa.yml.j2
- netchecker-server-clusterrole.yml.j2
- netchecker-server-clusterrolebinding.yml.j2
- netchecker-server-deployment.yml.j2
- netchecker-server-svc.yml.j2

- name: Kubernetes Apps | Dashboard
command:
Expand Down
47 changes: 0 additions & 47 deletions roles/kubernetes-apps/ansible/tasks/netchecker.yml

This file was deleted.

0 comments on commit 07b3bc9

Please sign in to comment.