search_dir=/home/ubuntu/Desktop/test
for entry in "$search_dir"/*
do
kubectl convert -f "$entry" --local -o json > "$entry"".json"
echo "$entry"
done
cat CKV_K8S_72.yaml.json | jq .spec.containers[].command
search_dir=/home/ubuntu/Desktop/test
for entry in "$search_dir"/*
do
kubectl convert -f "$entry" --local -o json > "$entry"".json"
echo "$entry"
done
cat CKV_K8S_72.yaml.json | jq .spec.containers[].command