Comment 1 for bug 2052694

Revision history for this message
Alexander Litvinov (alitvinov) wrote (last edit ):

trying to adjust the file manually to what i assume it expects, but no luck yet, sometimes getting a different error.
Might be a separate issue, or same as the line seems to be the same

$ juju clouds --controller localhost-localhost

Clouds available on the controller:
Cloud Regions Default Type
localhost 1 localhost lxd
microk8s-local 1 localhost k8s

ubuntu@ip-172-31-82-122:~$ cat cloud-fixed.yaml
clouds:
  microk8s-local:
    type: k8s
    auth-types: [certificate, clientcertificate, oauth2, oauth2withcert, userpass]
    endpoint: https://172.31.86.143:16443
    regions:
      localhost: {}

$ juju update-cloud microk8s-local --controller localhost-localhost -f cloud-fixed.yaml
ERROR could not read cloud definition from provided file: no registered provider for "k8s"
no registered provider for "k8s"
github.com/juju/juju/cmd/juju/cloud.(*CloudFileReader).ReadCloudFromFile:747:
github.com/juju/juju/cmd/juju/cloud.(*updateCloudCommand).Run:138: could not read cloud definition from provided file