mirror of https://github.com/kubernetes/kops.git
Merge pull request #10364 from johngmyers/custom-account-issuer
Use custom-configured ServiceAccountIssuer when present
This commit is contained in:
commit
2f6c67e92c
|
|
@ -82,6 +82,9 @@ func BuildNodeRoleSubject(igRole kops.InstanceGroupRole) (Subject, error) {
|
|||
|
||||
// ServiceAccountIssuer determines the issuer in the ServiceAccount JWTs
|
||||
func ServiceAccountIssuer(clusterName string, clusterSpec *kops.ClusterSpec) string {
|
||||
if clusterSpec.KubeAPIServer != nil && clusterSpec.KubeAPIServer.ServiceAccountIssuer != nil {
|
||||
return *clusterSpec.KubeAPIServer.ServiceAccountIssuer
|
||||
}
|
||||
return "https://api." + clusterName
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue