dataiku / dss-plugin-eks-clusters

Apache License 2.0
4 stars 6 forks source link

Bug/dss11 sc 127914 eks apiversion incompatibility with kubectl #43

Closed jules-casoli closed 1 year ago

jules-casoli commented 1 year ago

kubectl deprecated the "alpha" apiVersion in version 1.24 This selectively update the kube_config file to use the new apiVersion, depending on the installed versions of kubectl and aws-iam-authenticator (which needs to be > 0.5.4 to support the "beta" apiVersion)

shortcut-integration[bot] commented 1 year ago

This pull request has been linked to Shortcut Story #127914: [EKS] apiVersion incompatibility with kubectl 1.26.

jules-casoli commented 1 year ago

the warning is not very visible. Should we add a warning sign or some color?

Indeed, changed the class to error:

image

error is raised and is not very explicit

Added a check on start/attach. Not pretty, but good enough ?

image

⚠️ there is a remaining tag in the cluster data: "eksctl.cluster.k8s.io/v1alpha1/cluster-name": "asouilleux-cluster" ⚠️ there are additional tags mentioning the alpha too

Actually, I started a cluster on 1.26/0.5.9, and they are still there. We don't have any alpha in our code, so I guess these come from eksctl, so, probably not an issue