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
Cluster Type (Local/Downstream): Downstream, Infrastructure Provider: AWS/EC2
User Information
What is the role of the user logged in? Admin/Cluster
Provider Information
What is the version of the Rancher v2 Terraform Provider in use? 6.0.0
What is the version of Terraform in use? opentofu 1.8.6
Describe the bug
setting rolling_update arguments max_unavailable and max_surge are considered strings instead of in as per the following error message:
Failed to update fleet-default/testjs2-controlplane cluster.x-k8s.io/v1beta1, Kind=MachineDeployment for rke-cluster fleet-default/testjs2: admission webhook "validation.machinedeployment.cluster.x-k8s.io" denied the request: MachineDeployment.cluster.x-k8s.io "testjs2-controlplane" is invalid: [spec.strategy.rollingUpdate.maxSurge: Invalid value: intstr.IntOrString{Type:1, IntVal:0, StrVal:"1"}: must be either an int or a percentage: invalid value for IntOrString: invalid type: string is not a percentage, spec.strategy.rollingUpdate.maxUnavailable: Invalid value: intstr.IntOrString{Type:1, IntVal:0, StrVal:"1"}: must be either an int or a percentage: invalid value for IntOrString: invalid type: string is not a percentage]
Rancher Server Setup
Information about the Cluster
User Information
Provider Information
Describe the bug
setting
rolling_update
argumentsmax_unavailable
andmax_surge
are considered strings instead of in as per the following error message:Failed to update fleet-default/testjs2-controlplane cluster.x-k8s.io/v1beta1, Kind=MachineDeployment for rke-cluster fleet-default/testjs2: admission webhook "validation.machinedeployment.cluster.x-k8s.io" denied the request: MachineDeployment.cluster.x-k8s.io "testjs2-controlplane" is invalid: [spec.strategy.rollingUpdate.maxSurge: Invalid value: intstr.IntOrString{Type:1, IntVal:0, StrVal:"1"}: must be either an int or a percentage: invalid value for IntOrString: invalid type: string is not a percentage, spec.strategy.rollingUpdate.maxUnavailable: Invalid value: intstr.IntOrString{Type:1, IntVal:0, StrVal:"1"}: must be either an int or a percentage: invalid value for IntOrString: invalid type: string is not a percentage]
The configuration used
Updating the cluster configuration yaml we can see it's a string:
Manually changing the yaml to the following works
The text was updated successfully, but these errors were encountered: