Skip to content

Commit

Permalink
fix secondary resources
Browse files Browse the repository at this point in the history
  • Loading branch information
gionn committed Jan 5, 2024
1 parent 89e0df6 commit 99ffc36
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
5 changes: 2 additions & 3 deletions charts/alfresco-search-service/templates/ingress.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
{{- if .Values.ingress.enabled }}
{{- $serviceName := printf "%s-%s" (include "alfresco-search-service.fullname" .) "solr" -}}
{{- $servicePort := .Values.service.name | default (include "alfresco-search.svcPort" .) -}}
{{- $backendSvc := dict "serviceName" $serviceName "servicePort" $servicePort "context" $ -}}
{{- $backendSvc := dict "serviceName" (include "alfresco-search-service.deployment.name" .) "servicePort" $servicePort "context" $ -}}

apiVersion: {{ template "common.capabilities.ingress.apiVersion" . }}
kind: Ingress
metadata:
name: {{ template "alfresco-search-service.fullname" . }}-solr
name: {{ template "alfresco-search-service.deployment.name" . }}
annotations:
kubernetes.io/ingress.class: "nginx"
nginx.ingress.kubernetes.io/auth-secret: {{ $.Values.ingress.existingSecretName | default (printf "%s-ingress-secret" (include "alfresco-search-service.fullname" $)) }}
Expand Down
3 changes: 1 addition & 2 deletions charts/alfresco-search-service/templates/secret-ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ kind: Secret
metadata:
name: {{ template "alfresco-search-service.fullname" . }}-ingress-secret
labels:
app: {{ template "alfresco-search-service.fullname" . }}-solr
release: {{ .Release.Name }}
{{- include "alfresco-search-service.labels" . | nindent 4 }}
type: Opaque
data:
auth: {{ .Values.ingress.basicAuth | quote }}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
{{- if (not .Values.repository.existingSecret.name) }}
{{- if and (eq "secret" .Values.repository.securecomms) (not .Values.repository.existingConfigMap.name) }}
{{- if and (not .Values.repository.existingSecret.name) (eq "secret" .Values.repository.securecomms) }}
apiVersion: v1
kind: Secret
metadata: {{- $ctx := dict "Values" (dict "nameOverride" (printf "%s-repository" $.Chart.Name )) "Chart" $.Chart "Release" $.Release }}
name: {{ template "alfresco-search-service.fullname" $ctx }}
metadata:
name: {{ template "alfresco-search-service.repository-config.name" . }}
labels:
{{ template "alfresco-search-service.labels" . }}
type: Opaque
Expand All @@ -12,4 +11,3 @@ data:
{{- $shared_secret := required $reqmsg (index .Values.repository "sharedSecret") }}
SOLR_ALFRESCO_SECURECOMMS_SECRET: {{ $shared_secret | b64enc | quote }}
{{- end }}
{{- end }}

0 comments on commit 99ffc36

Please sign in to comment.