Skip to content

Rework the provider configuration #233

@stgraber

Description

@stgraber

Currently the provider configuration includes:

  • config_dir [default=~/.config/incus/]
  • generate_client_certificate [default=false]
  • accept_remote_certificates [default=false]
  • remote (list of remotes)

I think we should make a couple of changes:

  • Add a "default_remote" key in the main configuration (and remove the per-remote "default" boolean)
  • Rework the remote to line up with a cliconfig remote definition, so having the following fields instead:
    • name
    • address
    • protocol
    • auth_type (only for "incus" protocol)
    • default_project (only for "incus" protocol)
    • public

This would then allow us to for example add:

remote {
  name = "docker"
  address = "https://docker.io"
  protocol = "oci"
  public = true
}

Which we'd then be able to make use to create OCI containers from within the provider without requiring the user to first go mess with their Incus remotes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    EasyGood for new contributors

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions