/srv/irclogs.ubuntu.com/2020/10/08/#smooth-operator.txt

facubatista¡Muy buenos días a todos!10:31
bthomasनमस्ते facubatista10:59
facubatistahola bthomas10:59
bthomasfacubatista: Do you know if version 3 pod spec is supported by Operator Framework 0.9 ? I am getting and error 'Unknown key "file"' if I use version 3 method of specifying files. AFAIK this method uses "volumeConfig" key which contains a "file" key.11:04
facubatistabthomas, I don't know11:11
facubatistabthomas, you're getting or setting?11:12
bthomasfacubatista: setting pod spec.11:13
facubatistabthomas, ah, nevermind11:13
facubatistabthomas, can you show me the traceback?11:14
bthomasfacubatista: https://pastebin.canonical.com/p/Ydnct4wnQD/11:16
facubatistabthomas, IIUC, the OF is calling juju's pod-spec-set passing a --file parameter to the spec you provided (line 8), which results in the "unknown field "file"" error...11:20
facubatistabthomas, so, it looks a lower level issue11:20
facubatistabthomas, which Juju version are you using?11:21
facubatistabthomas, mmm.... you sure there's a "file" in volume config? https://discourse.juju.is/t/k8s-spec-v3-changes/269811:21
bthomasThanks. I am using Juju 2.8.4. Let me dig a bit further. Found some examples on discourse. Could be a syntax error in my spec.11:21
facubatistabthomas, it looks there's a "files"11:22
bthomasfound example here https://discourse.juju.is/t/k8s-spec-v3-changes/2698. I am using list of dict as value for file.11:22
facubatistabthomas, you gave me the same URL I gave you two lines above11:23
bthomas:-)11:24
facubatistabthomas, did you understand what I said above about "file"/"files" issue?11:24
facubatistas/issue/detail/?11:24
bthomasfacubatista: I think you may be right. I was using this link https://discourse.juju.is/t/k8s-spec-reference/3495 which has "file" not "files"11:26
facubatistathis one, maybe is not v3?11:27
facubatistaor have a bug there?11:28
facubatistabthomas, anyway, what happens if you try with "files"?11:28
bthomasdoing that now11:29
bthomasfacubatista: "files" works.11:32
bthomasat least it fixes that error :-)11:32
facubatistabthomas, please verify if that doc is talking about v3 or not; if it's v3, it should be fixed11:40
bthomasspec problem is fixed now.11:47
bthomasthank you for your help.11:47
* facubatista bbl18:54
* facubatista eods23:29

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!