latest
This commit is contained in:
1 parent
7e847dd4ab
commit
1cb62df487
28 files changed
+348
-504
No files matched your search
@@ -0,0 +1,18 @@
|
||||
|
||||
def k8s-namespaces [] {
|
||||
kubectl get namespaces -o jsonpath='{.items}' | from json | select metadata.name | rename value
|
||||
}
|
||||
|
||||
def k8s-secrets [namespace: string@k8s-namespaces = ""] {
|
||||
if not ($namespace | is-empty) {
|
||||
kubectl -n $namespace get secrets -o jsonpath='{.items}' | from json | select metadata.name | rename value
|
||||
} else {
|
||||
kubectl get secrets -o jsonpath='{.items}' | from json | select metadata.name | rename value
|
||||
}
|
||||
}
|
||||
def decode-secret [name: string@k8s-secrets] {
|
||||
kubectl get secret $name -o jsonpath='{.data}' |
|
||||
from json |
|
||||
transpose key value |
|
||||
update value { |r| $r.value | decode base64 | decode}
|
||||
}
|
||||
Executable
+15
@@ -0,0 +1,15 @@
|
||||
function start-windows() {
|
||||
quickemu --vm /mnt/Data/vms/windows-11.conf --display spice --viewer remote-viewer
|
||||
}
|
||||
|
||||
function clean-file() {
|
||||
grep -v '^\s*#' | grep -v '^$'
|
||||
}
|
||||
|
||||
function clean-k8s-install() {
|
||||
sudo rm -rf /var/lib/kubernetes/ /var/lib/etcd/ /var/lib/cfssl/ /var/lib/kubelet/ /etc/kube-flannel/ /etc/kubernetes/
|
||||
}
|
||||
|
||||
function fix-nix-store() {
|
||||
sudo nix-store --verify --check-contents --repair
|
||||
}
|
||||
Reference in new issue
Block a user