bundle-kubeflow
bundle-kubeflow copied to clipboard
New major version of juju Terraform provider introduces breaking changes
Bug Description
It seems that the new 1.0.0 version of the juju provider for Terraform introduced breaking changes.
We should update our modules to be compatible with with this new version. There is a convienent page for how to update our modules, but we should ensure it works without issues.
Here is an example of a failed run.
To Reproduce
Raise any PR against the main branch of any of our repos, for example admission-webhook.
Environment
Relevant Log Output
Initializing the backend...
Initializing provider plugins...
- Finding juju/juju versions matching ">= 0.14.0"...
- Installing juju/juju v1.0.0...
- Installed juju/juju v1.0.0 (self-signed, key ID B836F54C10C569E2)
Partner and community providers are signed by their developers.
If you'd like to know more about provider signing, you can read about it here:
https://developer.hashicorp.com/terraform/cli/plugins/signing
Terraform has created a lock file .terraform.lock.hcl to record the provider
selections it made above. Include this file in your version control repository
so that Terraform can guarantee to make the same selections by default when
you run "terraform init" in the future.
Terraform has been successfully initialized!
You may now begin working with Terraform. Try running "terraform plan" to see
any changes that are required for your infrastructure. All Terraform commands
should now work.
If you ever set or change modules or backend configuration for Terraform,
rerun this command to reinitialize your working directory. If you forget, other
commands will detect it and remind you to do so if necessary.
Arguments to be fed to apply command: -var model_name=tf-testing
╷
│ Error: Missing required argument
│
│ on main.tf line 1, in resource "juju_application" "kserve_controller":
│ 1: resource "juju_application" "kserve_controller" {
│
│ The argument "model_uuid" is required, but no definition was found.
╵
╷
│ Error: Unsupported argument
│
│ on main.tf line 9, in resource "juju_application" "kserve_controller":
│ 9: model = var.model_name
│
│ An argument named "model" is not expected here.
╵
Error: Process completed with exit code 1.
Additional Context
No response