siderolabs / terraform-provider-talos

Mozilla Public License 2.0
123 stars 17 forks source link

talos_machine_configuration ignores talos version >1.5 #146

Closed invin12 closed 9 months ago

invin12 commented 9 months ago

I setup talos_version v1.6 in talos_machine_configuration definition

 <= data "talos_machine_configuration" "controlplane" {
      + cluster_endpoint      = "https://10.189.220.100:6443"
      + cluster_name          = "k8s"
      + id                    = (known after apply)
      + machine_configuration = (sensitive value)
      + machine_secrets       = (known after apply)
      + machine_type          = "controlplane"
      + talos_version         = "v1.6"
    }
output "machineconfig" {
  value     = data.talos_machine_configuration.controlplane.machine_configuration
  sensitive = true
}

But images after apply is still from talos 1.5

 terraform output machineconfig | grep image
        image: ghcr.io/siderolabs/kubelet:v1.28.0 # The `image` field is an optional reference to an alternative kubelet image.
        image: ghcr.io/siderolabs/installer:v1.5.0 # Allows for supplying the image used to perform the installation.
        # # Allows for supplying additional system extension images to install on top of base Talos image.
        #     - image: ghcr.io/siderolabs/gvisor:20220117.0-v1.0.0 # System extension image.
    # Used to configure the machine's container image registry mirrors.
    # # Specifies TLS & auth configuration for HTTPS image registries.
    #             - image: nginx
        image: registry.k8s.io/kube-apiserver:v1.28.0 # The container image used in the API server manifest.
        image: registry.k8s.io/kube-controller-manager:v1.28.0 # The container image used in the controller manager manifest.
        image: registry.k8s.io/kube-proxy:v1.28.0 # The container image used in the kube-proxy manifest.
        image: registry.k8s.io/kube-scheduler:v1.28.0 # The container image used in the scheduler manifest.
        # # The container image used to create the etcd service.
        # image: gcr.io/etcd-development/etcd:v3.5.9
    #     image: registry.k8s.io/coredns/coredns:v1.10.1 # The `image` field is an override to the default coredns image.
invin12 commented 9 months ago

Using old provider version 0.3.2, my fault