This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Run this by copying to your machine, changing the URL variable and running using `node parse-html-table.mjs` | |
import fetch from 'node-fetch'; | |
import parse from 'parse-apache-directory-index'; | |
const URL = '' | |
fetch(URL) | |
.then(response => response.text()) | |
.then(text => console.log(parse(text))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -eEuo pipefail | |
ns= # deployment namespace | |
name= # deployment name | |
# shellcheck disable=SC2016 | |
deploy_pod_labels_raw=$(kubectl get --namespace "${ns}" deployments.apps/"${name}" --output go-template='{{ range $k, $v :=.spec.selector.matchLabels }}{{$k}}={{$v}},{{ end }}') |