From c0c12b9eeaae71bb58ac5759a9425caa33f23ae1 Mon Sep 17 00:00:00 2001 From: Tom Alexander Date: Mon, 21 Oct 2024 18:09:41 -0400 Subject: [PATCH] Hard-code my wifi regulatory domain to US. --- ansible/roles/framework_laptop/files/wifi_us_modprobe.conf | 1 + ansible/roles/framework_laptop/tasks/linux.yaml | 1 + .../kubernetes/files/k8s_remove_finalizers_pipeline_runs | 7 +++++++ 3 files changed, 9 insertions(+) create mode 100644 ansible/roles/framework_laptop/files/wifi_us_modprobe.conf create mode 100644 ansible/roles/kubernetes/files/k8s_remove_finalizers_pipeline_runs diff --git a/ansible/roles/framework_laptop/files/wifi_us_modprobe.conf b/ansible/roles/framework_laptop/files/wifi_us_modprobe.conf new file mode 100644 index 0000000..d2abd4e --- /dev/null +++ b/ansible/roles/framework_laptop/files/wifi_us_modprobe.conf @@ -0,0 +1 @@ +options cfg80211 ieee80211_regdom=US diff --git a/ansible/roles/framework_laptop/tasks/linux.yaml b/ansible/roles/framework_laptop/tasks/linux.yaml index 10a7233..82a08f8 100644 --- a/ansible/roles/framework_laptop/tasks/linux.yaml +++ b/ansible/roles/framework_laptop/tasks/linux.yaml @@ -30,6 +30,7 @@ - iwlwifi - snd_hda_intel - disable_sp5100_watchdog + - wifi_us - name: Configure kernel command line zfs: diff --git a/ansible/roles/kubernetes/files/k8s_remove_finalizers_pipeline_runs b/ansible/roles/kubernetes/files/k8s_remove_finalizers_pipeline_runs new file mode 100644 index 0000000..403922f --- /dev/null +++ b/ansible/roles/kubernetes/files/k8s_remove_finalizers_pipeline_runs @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +# +set -euo pipefail +IFS=$'\n\t' +DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" + +kubectl get pipelinerun --all-namespaces -o go-template='{{range .items}}{{.metadata.namespace}}/{{.metadata.name}}{{"\n"}}{{end}}' | while read p; do namespace=$(cut -d '/' -f 1 <<<"$p"); name=$(cut -d '/' -f 2 <<<"$p"); kubectl patch pipelinerun -n "$namespace" "$name" -p '{"metadata":{"finalizers":null}}' --type=merge; done