Browse Source

fix ca san miss match

Alex Wong 2 months ago
parent
commit
950e9eb065
1 changed files with 3 additions and 3 deletions
  1. 3 3
      catalog/templates/apiregistration.yaml

+ 3 - 3
catalog/templates/apiregistration.yaml View File

@@ -1,7 +1,7 @@
1 1
 {{- $ca := genCA "svc-cat-ca" 3650 }}
2
-{{- $cn := printf "%s-catalog-apiserver" .Release.Name }}
3
-{{- $altName1 := printf "%s-catalog-apiserver.%s" .Release.Name .Release.Namespace }}
4
-{{- $altName2 := printf "%s-catalog-apiserver.%s.svc" .Release.Name .Release.Namespace }}
2
+{{- $cn := printf "%s-apiserver" .Release.Name }}
3
+{{- $altName1 := printf "%s-apiserver.%s" .Release.Name .Release.Namespace }}
4
+{{- $altName2 := printf "%s-apiserver.%s.svc" .Release.Name .Release.Namespace }}
5 5
 {{- $cert := genSignedCert $cn nil (list $altName1 $altName2) 3650 $ca }}
6 6
 {{- if .Values.useAggregator }}
7 7
 {{- if .Capabilities.APIVersions.Has "apiregistration.k8s.io/v1beta1" }}