You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not quite sure, but it affects terraform import of a juju_application resource.
Terraform Configuration Files
resource "juju_application" "redis_cache" {
name = "redis-cache2"
model = juju_model.staging.name
charm {
name = "redis-k8s"
channel = "edge"
}
units = 1
}
Debug Output
Here's my juju status output confirming the redis-cache2 application is using the edge channel already:
$ juju status redis-cache2
Model Controller Cloud/Region Version SLA Timestamp
stg-events microk8s-localhost microk8s/localhost 2.9.34 unsupported 11:27:21+02:00
App Version Status Scale Charm Channel Rev Address Exposed Message
redis-cache2 7.0.4 active 1 redis-k8s edge 18 10.152.183.133 no
Unit Workload Agent Address Ports Message
redis-cache2/0* active idle 10.1.129.145
I've also noticed that charm config isn't imported/recognised. Let me know if I should file a separate issue for this. I confirmed this by applying juju config similar to how it's defined in my terraform plan, and then doing a terraform state rm $juju_application, re-running a terraform import of the same juju application and confirming that terraform plan was still reporting that it would change that config item.
Terraform Version
Affected Resource(s)
I'm not quite sure, but it affects
terraform import
of ajuju_application
resource.Terraform Configuration Files
Debug Output
Here's my
juju status
output confirming the redis-cache2 application is using the edge channel already:I ran the following:
This reported a successful output. However, when running
terraform plan
I see:Panic Output
N/A
Expected Behavior
This should recognise something is deployed with the channel specified in the terraform configs.
Actual Behavior
It says it's going to switch it from the stable channel to the edge channel.
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
juju deploy redis-k8s --channel=edge
terraform import
(with relevant application name)terraform plan
.Important Factoids
N/A
References
N/A
The text was updated successfully, but these errors were encountered: