Docker image not available when using python libjuju for a kubernetes bundle
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Triaged
|
Low
|
Unassigned |
Bug Description
I'm trying to deploy a local kubernetes bundle with python-libjuju, I'm getting an error that the resource is not found, In this case the resource is the docker image from dockerhub that I need to deploy my kubernetes workload.
Nevertheless when I deploy it manually from the console I don't have this problem. When checking the libjuju code I found a comment that said that support for local resources was pending, so I thought that it might be related to that.
Im using the following bundle:
bundle: kubernetes
applications:
k8scharm:
charm: '../charms/
scale: 1
resources:
ubuntu-image: 'ubuntu:latest'
series: kubernetes
The charm that is being used is also attached to this bug.
The deploy function is called the following way:
await model.deploy(
where model is a newly with libjuju created model and bundle the direct path to the bundle (with local: in front).
The resources work for local resources won't effect this. The issue is that the code here doesn't understand oci-image resource type. I'm not sure if it's the bundle code or the specific python-libjuju bits that need updating though.