更新模板中函数备注信息
This commit is contained in:
@@ -3,9 +3,9 @@
|
||||
调用:
|
||||
{{ include "common.ingress.backend" (dict "serviceName" "backendName" "servicePort" "backendPort" "context" $) }}
|
||||
参数:
|
||||
- serviceName - 字符串。已存在的后端服务名称。
|
||||
- servicePort - 字符串/整数。已存在的后端服务的端口名称(或端口号). 根据数据类型不同,生成不同 YAML。
|
||||
- context - 字典(必须)。模板上下文信息。(`$`: 根上下文; `.`: 当前模板上下文)
|
||||
- serviceName: 字符串。已存在的后端服务名称。
|
||||
- servicePort: 字符串/整数。已存在的后端服务的端口名称(或端口号). 根据数据类型不同,生成不同 YAML。
|
||||
- context: 字典(必须)。父级上下文信息(`$`: 根上下文; `.`: 当前模板上下文)。
|
||||
*/}}
|
||||
{{- define "common.ingress.backend" -}}
|
||||
{{- $apiVersion := (include "common.capabilities.ingress.apiVersion" .context) -}}
|
||||
@@ -25,7 +25,7 @@ service:
|
||||
{{- end -}}
|
||||
|
||||
{{/*
|
||||
返回 pathType 是否支持(true / false)
|
||||
返回是否支持 pathType (true / false)。
|
||||
调用:
|
||||
{{ include "common.ingress.supportsPathType" . }}
|
||||
*/}}
|
||||
@@ -38,7 +38,7 @@ service:
|
||||
{{- end -}}
|
||||
|
||||
{{/*
|
||||
返回 ingressClassname 是否支持(true / false)
|
||||
返回是否支持 ingressClassname (true / false)。
|
||||
调用:
|
||||
{{ include "common.ingress.supportsIngressClassname" . }}
|
||||
*/}}
|
||||
@@ -51,7 +51,7 @@ service:
|
||||
{{- end -}}
|
||||
|
||||
{{/*
|
||||
返回 cert-manager 需要的注解是否存在(true / false)
|
||||
返回 cert-manager 需要的注解(TLS 签名证书)是否存在(true / false)。
|
||||
参考:
|
||||
https://cert-manager.io/docs/usage/ingress/#supported-annotations
|
||||
调用:
|
||||
|
||||
Reference in New Issue
Block a user