Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Fetch correct label from kubernetes version datasource for talos cluster #366

Open
Praveen005 opened this issue Jan 27, 2025 · 0 comments · May be fixed by #367
Open

[BUG] Fetch correct label from kubernetes version datasource for talos cluster #366

Praveen005 opened this issue Jan 27, 2025 · 0 comments · May be fixed by #367
Assignees
Labels
bug Something isn't working

Comments

@Praveen005
Copy link
Contributor

Description

When you output the version for talos cluster type, the label is printed as v1.27.0 instead of talos-v1.5.0.

Image




Steps to Reproduce:

Apply the following configuration:

resource "civo_firewall" "example" {
    name = "example-firewall"
    create_default_rules = true
    network_id = civo_network.custom_net.id

}

resource "civo_network" "custom_net" {
    label = "test_network"
}

resource "civo_kubernetes_cluster" "cluster" {
    name = var.cluster_name
    
    # Connect to the network & firewall
    firewall_id = civo_firewall.example.id
    network_id  = civo_network.custom_net.id
    
    # Cluster type must be talos for GPU support
    cluster_type = "talos"
    kubernetes_version = "talos-v1.5.0"
    
    write_kubeconfig = true
    
    # attach one 
    pools {
        size = var.cluster_node_size
        node_count = var.cluster_node_count
    }

    # specify a timeout for the cluster creation
    timeouts {
        create = "10m"
    }
} 

data "civo_kubernetes_version" "example" {
  filter {
    key    = "type"
    values = ["talos"]
  }
  filter {
    key    = "default"
    values = ["true"]
  }
  sort {
    key       = "label"
    direction = "desc"
  }
}

output "version_name" {
  value = data.civo_kubernetes_version.example.versions
}

Acceptance Criteria

  1. Print the correct label.
@Praveen005 Praveen005 added the bug Something isn't working label Jan 27, 2025
@Praveen005 Praveen005 self-assigned this Jan 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
1 participant