canonical / kyuubi-k8s-operator

Charmed K8s operator for Apache Kyuubi for to be deployed and managed by juju
Apache License 2.0
1 stars 2 forks source link

[DPE-4472] Fix failing CI #17

Closed theoctober19th closed 3 months ago

theoctober19th commented 3 months ago

Oh, I see. Thanks for the fix @theoctober19th !

So, if I understand the code correctly, what was happening is that now the latest edge and the one we pin in the charm do not coincide anymore, therefore it was taking long time to download the image, right? I'm wondering whether we should actually use the same image that we use for kyuubi (for which we pin the hash) also in the pod template.

I wouldn't block this PR, as this already fix the problem (here the approve!). Also maybe we could factor in the point above when we will also refactor kyuubi tests to use the spark-k8s-bundle fixtures

I am not exactly sure why the image pulling process is taking a bit longer than it used to before, but the reason you mentioned is definitely very plausible. However, since kubectl apply returns immediately while the container is still being created, I added the wait step to handle cases where it would take more time.

I agree with using the same image pinned everywhere we use our rock image (unless we explicitly need pod image to be different from the charm image). We might need to hardcode this hash at multiple places (eg, pod spec, metadata.yaml of charm, etc.) but at the moment I don't see a workaround for that.