Im trying to escape single quotes in the k8s resource like so: (
resource "kubernetes_deployment" "k8-deploy" {
// Some other code....
volume_mount {
name = "a-volume"
mount_path = "/some_service/abc/\'target folder\'"
}
}
But its giving me this output after the volume mount gets created in the pod:
root@apod-5f44945c55-xvsf8:/some_service/abc# ls -la
total 72
drwxr-xr-x 3 root root 4096 Sep 26 01:46 “‘target folder’”/
What I want is to have the target folder be just single quotes (i know its a weird way to name a directory but thats the director name i was given), but it always wraps double quotes around it when the directory gets created.
drwxr-xr-x 3 root root 4096 Sep 26 01:46 ‘target folder’/