This repository was archived by the owner on Oct 16, 2020. It is now read-only.

Description
CoreOS Version
1185.5.0 (bare-metal)
quay.io/coreos/hyperkube:v1.4.6_coreos.0
When parsing JSON data passed in via Kubernetes FlexVolume, I quickly found that jq is not included in the above image.
ref: lizardfs/lizardfs#486 (comment)
An example of what I'm using it for:
/etc/kubernetes/volume-plugins/fq~lizardfs
domount() {
...
FSTYPE=$(echo $3 | jq -r '.["kubernetes.io/fsType"]')
SUBVOL=$(echo $3 | jq -r '.["kubernetes.io/subVolume"]')
...
Though I can tweak the kubelet service file and use volume/mount to drop in the system's jq, it would be nice if this was supported natively within the image for FlexVolume usage.
Also, jq is referenced in the Kubernetes repo for FlexVolume usage:
https://github.com/kubernetes/kubernetes/blob/master/examples/volumes/flexvolume/lvm#L72