mirror of https://github.com/kubernetes/kops.git
remove validation for additionalServiceAccountIssuers
This commit is contained in:
parent
e60531d2a5
commit
496b7f5ea0
|
|
@ -829,9 +829,6 @@ func validateKubeAPIServer(v *kops.KubeAPIServerConfig, c *kops.Cluster, fldPath
|
|||
}
|
||||
}
|
||||
|
||||
if c.IsKubernetesLT("1.22") && len(v.AdditionalServiceAccountIssuers) > 0 {
|
||||
allErrs = append(allErrs, field.Forbidden(fldPath.Child("additionalServiceAccountIssuers"), "additionalServiceAccountIssuers requires Kubernetes 1.22+"))
|
||||
}
|
||||
return allErrs
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -310,23 +310,6 @@ func TestValidateKubeAPIServer(t *testing.T) {
|
|||
},
|
||||
ExpectedErrors: []string{"Unsupported value::KubeAPIServer.logFormat"},
|
||||
},
|
||||
{
|
||||
Input: kops.KubeAPIServerConfig{
|
||||
AdditionalServiceAccountIssuers: []string{"https://foo.bar"},
|
||||
},
|
||||
Cluster: &kops.Cluster{
|
||||
Spec: kops.ClusterSpec{
|
||||
Authorization: &kops.AuthorizationSpec{
|
||||
RBAC: &kops.RBACAuthorizationSpec{},
|
||||
},
|
||||
KubernetesVersion: "1.21.0",
|
||||
CloudProvider: kops.CloudProviderSpec{
|
||||
AWS: &kops.AWSSpec{},
|
||||
},
|
||||
},
|
||||
},
|
||||
ExpectedErrors: []string{"Forbidden::KubeAPIServer.additionalServiceAccountIssuers"},
|
||||
},
|
||||
}
|
||||
for _, g := range grid {
|
||||
if g.Cluster == nil {
|
||||
|
|
|
|||
Loading…
Reference in New Issue