[bitnami/solr] Adjust the naming style for resources (#11855)

* adjust the naming style for resources' name to make them not pass the length limit

Signed-off-by: Gang Liu <gang.liu@daocloud.io>

* upgrade the patch version

Signed-off-by: Gang Liu <gang.liu@daocloud.io>

Signed-off-by: Gang Liu <gang.liu@daocloud.io>
This commit is contained in:
izturn
2022-08-23 16:17:57 +08:00
committed by GitHub
parent 18d2171d66
commit 1923666bfd
8 changed files with 8 additions and 8 deletions

View File

@@ -27,4 +27,4 @@ name: solr
sources:
- https://github.com/bitnami/containers/tree/main/bitnami/solr
- https://lucene.apache.org/solr/
version: 6.1.1
version: 6.1.2

View File

@@ -26,7 +26,7 @@ data:
apiVersion: v1
kind: Secret
metadata:
name: {{ printf "%s-tls" .Values.ingress.hostname }}
name: {{ printf "%s-tls" .Values.ingress.hostname | trunc 63 | trimSuffix "-" }}
namespace: {{ .Release.Namespace | quote }}
labels: {{- include "common.labels.standard" . | nindent 4 }}
{{- if .Values.commonLabels }}

View File

@@ -51,7 +51,7 @@ spec:
{{- if and .Values.ingress.tls (or (include "common.ingress.certManagerRequest" ( dict "annotations" .Values.ingress.annotations )) .Values.ingress.selfSigned) }}
- hosts:
- {{ .Values.ingress.hostname | quote }}
secretName: {{ printf "%s-tls" .Values.ingress.hostname }}
secretName: {{ printf "%s-tls" .Values.ingress.hostname | trunc 63 | trimSuffix "-" }}
{{- end }}
{{- if .Values.ingress.extraTls }}
{{- include "common.tplvalues.render" (dict "value" .Values.ingress.extraTls "context" $) | nindent 4 }}

View File

@@ -2,7 +2,7 @@
apiVersion: {{ include "common.capabilities.deployment.apiVersion" . }}
kind: Deployment
metadata:
name: {{ printf "%s-exporter" (include "common.names.fullname" .) }}
name: {{ printf "%s-exporter" (include "common.names.fullname" .) | trunc 63 | trimSuffix "-" }}
namespace: {{ .Release.Namespace | quote }}
labels: {{- include "common.labels.standard" . | nindent 4 }}
app.kubernetes.io/component: solr-exporter

View File

@@ -1,7 +1,7 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ printf "%s-scripts" (include "common.names.fullname" .) }}
name: {{ printf "%s-scripts" (include "common.names.fullname" .) | trunc 63 | trimSuffix "-" }}
namespace: {{ .Release.Namespace | quote }}
labels: {{- include "common.labels.standard" . | nindent 4 }}
app.kubernetes.io/component: solr

View File

@@ -21,7 +21,7 @@ data:
apiVersion: v1
kind: Secret
metadata:
name: {{ printf "%s-tls-pass" (include "common.names.fullname" .) }}
name: {{ printf "%s-tls-pass" (include "common.names.fullname" .)| trunc 63 | trimSuffix "-" }}
labels: {{- include "common.labels.standard" . | nindent 4 }}
app.kubernetes.io/component: solr
{{- if .Values.commonLabels }}

View File

@@ -354,7 +354,7 @@ spec:
volumes:
- name: scripts
configMap:
name: {{ printf "%s-scripts" (include "common.names.fullname" .) }}
name: {{ printf "%s-scripts" (include "common.names.fullname" .) | trunc 63 | trimSuffix "-" }}
defaultMode: 0755
{{- if and .Values.persistence.enabled .Values.persistence.existingClaim }}
- name: data

View File

@@ -9,7 +9,7 @@
apiVersion: v1
kind: Secret
metadata:
name: {{ include "common.names.fullname" . }}-crt
name: {{ printf "%s-crt" (include "common.names.fullname" .) | trunc 63 | trimSuffix "-" }}
labels: {{- include "common.labels.standard" . | nindent 4 }}
app.kubernetes.io/component: solr
{{- if .Values.commonLabels }}