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

[FEATURE] Update MKS cluster to the LATEST_PATCH #712

Open
rverchere opened this issue Aug 30, 2024 · 0 comments
Open

[FEATURE] Update MKS cluster to the LATEST_PATCH #712

rverchere opened this issue Aug 30, 2024 · 0 comments
Assignees

Comments

@rverchere
Copy link

rverchere commented Aug 30, 2024

Description

When using the ovh_cloud_project_kube, I can update it to the next minor version, i.e 1.28 to 1.29.

But there is no way to update the cluster to the last patch version.

Affected Resource(s) and/or Data Source(s)

  • ovh_cloud_project_kube

Potential Terraform Configuration

I see here

that the code allow only NEXT_MINOR when upgrading, but the strategy allows LATEST_PATCH.

When performing a terraform state, the is_up_to_dateis false, so we know there is a new version:

❯ terraform state show module.kubernetes-ovh-cluster.ovh_cloud_project_kube.k8s_cluster
# module.kubernetes-ovh-cluster.ovh_cloud_project_kube.k8s_cluster:
resource "ovh_cloud_project_kube" "k8s_cluster" {
    control_plane_is_up_to_date = false
    id                          = "redacted"
    is_up_to_date               = false
    kube_proxy_mode             = "iptables"
    kubeconfig                  = (sensitive value)
    kubeconfig_attributes       = (sensitive value)
    load_balancers_subnet_id    = null
    name                        = "redacted"
    next_upgrade_versions       = [
        "1.29",
        "1.30",
    ]
    nodes_subnet_id             = null
    nodes_url                   = "redacted.nodes.c3.gra.k8s.ovh.net"
    private_network_id          = null
    region                      = "GRA5"
    service_name                = "redacted"
    status                      = "READY"
    update_policy               = "NEVER_UPDATE"
    url                         = "redacted.c3.gra.k8s.ovh.net"
    version                     = "1.28"

    customization {
        apiserver {
            admissionplugins {
                disabled = []
                enabled  = [
                    "AlwaysPullImages",
                    "NodeRestriction",
                ]
            }
        }
    }

    timeouts {
        create = "30m"
        delete = "30m"
        update = "1h"
    }
}

❯ terraform plan -out="tfplan.out"
module.kubernetes-ovh-cluster.ovh_cloud_project_kube.k8s_cluster: Refreshing state... [id=redacted]

No changes. Your infrastructure matches the configuration.

Terraform has compared your real infrastructure against your configuration and found no differences, so no changes are needed.

Remarks

Note that I want to manage myself the update of the cluster, so keep update_policy to NEVER_UPDATE.

@nicolaslacroux nicolaslacroux self-assigned this Aug 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants