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

hyperkube: request for /usr/bin/jq to be included #1706

@TerraTech

Description

@TerraTech

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions