add checksync.sh
This commit is contained in:
@@ -70,12 +70,3 @@ _This page is referenced by wiki [front page](https://wiki.k-space.ee) as **the*
|
|||||||
- etherpad NB! probably NOT using kspace_etherpad_kube NB! does not take DNS likely due to netpol, hardcoded to 172.20.36.1
|
- etherpad NB! probably NOT using kspace_etherpad_kube NB! does not take DNS likely due to netpol, hardcoded to 172.20.36.1
|
||||||
- grafana
|
- grafana
|
||||||
- woodpecker
|
- woodpecker
|
||||||
|
|
||||||
# manual sync
|
|
||||||
```sh
|
|
||||||
kubectl g ns -o name | cut -d/ -f2- | grep -v \
|
|
||||||
-e calico-apiserver -e calico-system `# by tigera-operator` \
|
|
||||||
-e kube-node-lease -e kube-public -e node-feature-discovery `# generated by kube` \
|
|
||||||
| sort > namespaces.swp
|
|
||||||
find -mindepth 1 -maxdepth 1 -type d | cut -d/ -f2- | grep -v -e _disabled -e .git | sort > dirs.swp
|
|
||||||
ls argocd/applications | exteat > argo.swp # exteat from github.com/jtagcat/jtagcat
|
|
||||||
|
20
checksync.sh
Executable file
20
checksync.sh
Executable file
@@ -0,0 +1,20 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
set -euo pipefail
|
||||||
|
|
||||||
|
kubectl g ns -o name | cut -d/ -f2- | grep -v \
|
||||||
|
-e calico-apiserver -e calico-system `# by tigera-operator` \
|
||||||
|
-e kube-node-lease -e kube-public -e node-feature-discovery `# generated by kube` \
|
||||||
|
| sort > ns.swp
|
||||||
|
|
||||||
|
find -mindepth 1 -maxdepth 1 -type d | cut -d/ -f2- | grep -v -e _disabled -e .git | sort > dirs.swp
|
||||||
|
|
||||||
|
ls argocd/applications | exteat > argo.swp # exteat from github.com/jtagcat/jtagcat
|
||||||
|
|
||||||
|
echo 'ns <-> dirs'
|
||||||
|
diff ns.swp dirs.swp
|
||||||
|
|
||||||
|
echo 'dirs <-> argo'
|
||||||
|
diff dirs.swp argo.swp
|
||||||
|
|
||||||
|
rm ns.swp dirs.swp argo.swp
|
Reference in New Issue
Block a user