Adding Singleuser extraContainer removes double dash from container arguments

I am trying to add, a side car to the single user pod. For this i have configured “singleuser.extraContainers” according to the k8s specs.

An example as below

extraContainers:

  • name: alpine
    image: alpine
    args: [“touch”, “–” “, myfile”]

Problem:
When kubespwaner reads the args, it strips the “–” and replaces with “” value in args.

  alpine:
    Container ID:  docker://13639077730bf998773f5d2c0dbc71ae035a6e15b38afa3d7ca421148be4bc99
    Image:         alpine
    Image ID:      docker-pullable://alpine@sha256:7144f7bab3d4c2648d7e59409f15ec52a18006a128c733fcff20d3a4a54ba44a
    Port:          <none>
    Host Port:     <none>
    Args:
      touch

      myfile

Expected:

  alpine:
    Container ID:  docker://13639077730bf998773f5d2c0dbc71ae035a6e15b38afa3d7ca421148be4bc99
    Image:         alpine
    Image ID:      docker-pullable://alpine@sha256:7144f7bab3d4c2648d7e59409f15ec52a18006a128c733fcff20d3a4a54ba44a
    Port:          <none>
    Host Port:     <none>
    Args:
      touch
      -- 
      myfile

The above is sample.
Any ways to make kubespawner accept “–” as args values?

This should be fixed by

1 Like

Any idea when this fix will be part of a release?