Skip to content

Instantly share code, notes, and snippets.

@shpwrck
Last active June 27, 2024 21:01
Show Gist options
  • Save shpwrck/77eacd52d6de66f554ee35ec5728794a to your computer and use it in GitHub Desktop.
Save shpwrck/77eacd52d6de66f554ee35ec5728794a to your computer and use it in GitHub Desktop.
#!/bin/bash
while true; do
cat /etc/machine-config-daemon/currentconfig | jq -c '.metadata.annotations' | awk --field-separator ",|{|}|:|\"" '{print $9"="$12}' > /etc/kubernetes/node-feature-discovery/features.d/node-version;
sleep 1;
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment