feat: implement mjfilter file for templates (#1244)
* feat: implement mjfilter file for templates Signed-off-by: Devin Buhl <devin@buhl.casa> * fix: use data.get in mjfilters Signed-off-by: Devin Buhl <devin@buhl.casa> --------- Signed-off-by: Devin Buhl <devin@buhl.casa>
This commit is contained in:
1 parent
9d175fcc99
commit
5d849727d8
112 files changed
+81
-184
No files matched your search
@@ -0,0 +1 @@
|
||||
main = lambda data: data.get("bootstrap_distribution") in ['k3s']
|
||||
@@ -1,4 +1,3 @@
|
||||
#% if bootstrap_distribution in ['k3s'] %#
|
||||
---
|
||||
- name: Cilium
|
||||
block:
|
||||
@@ -55,4 +54,3 @@
|
||||
definition:
|
||||
metadata:
|
||||
finalizers: []
|
||||
#% endif %#
|
||||
@@ -1,4 +1,3 @@
|
||||
#% if bootstrap_distribution in ['k3s'] %#
|
||||
---
|
||||
# https://github.com/k3s-io/k3s/issues/1971
|
||||
- name: Cruft
|
||||
@@ -31,4 +30,3 @@
|
||||
namespace: kube-system
|
||||
state: absent
|
||||
loop: "{{ addons_list.resources | selectattr('metadata.name', 'match', '^custom-.*') | list }}"
|
||||
#% endif %#
|
||||
@@ -1,4 +1,3 @@
|
||||
#% if bootstrap_distribution in ['k3s'] %#
|
||||
---
|
||||
- name: Get absolute path to this Git repository # noqa: command-instead-of-module
|
||||
ansible.builtin.command: git rev-parse --show-toplevel
|
||||
@@ -25,4 +24,3 @@
|
||||
path: "{{ repository_path.stdout }}/kubeconfig"
|
||||
regexp: https://127.0.0.1:6443
|
||||
replace: "https://{{ k3s_registration_address }}:6443"
|
||||
#% endif %#
|
||||
Reference in new issue
Block a user