From 03e2ef68c01048bdc8d659d056efb43578df9391 Mon Sep 17 00:00:00 2001 From: Kyriakos Akriotis Date: Thu, 12 Dec 2024 09:21:26 +0100 Subject: [PATCH] replaced .fulname with .name to shorten for raft #40 --- .../templates/deployment-docusaurus.yaml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/charts/docusaurus/templates/deployment-docusaurus.yaml b/charts/docusaurus/templates/deployment-docusaurus.yaml index 1e8f682..c3c9b1c 100644 --- a/charts/docusaurus/templates/deployment-docusaurus.yaml +++ b/charts/docusaurus/templates/deployment-docusaurus.yaml @@ -1,7 +1,7 @@ apiVersion: v1 kind: Secret metadata: - name: {{ include "docusaurus.fullname" . }}-typesense-api-key + name: {{ include "docusaurus.name" . }}-typesense-api-key type: Opaque data: typesense-api-key: SXdpVG9CcnFYTHZYeTJNMG1TS1hPaGt0dlFUY3VWUloxc1M5REtsRUNtMFFwQU93R1hoanVIVWJLQnE2ejdlSQ== @@ -9,7 +9,7 @@ data: apiVersion: ts.opentelekomcloud.com/v1alpha1 kind: TypesenseCluster metadata: - name: {{ include "docusaurus.fullname" . }} + name: {{ include "docusaurus.name" . }}-ts spec: image: typesense/typesense:27.1 replicas: 3 @@ -21,9 +21,9 @@ spec: ingressClassName: nginx clusterIssuer: {{ required "typesense.ingress.clusterIssuer is required" .Values.typesense.ingress.clusterIssuer }} adminApiKey: - name: {{ include "docusaurus.fullname" . }}-typesense-api-key + name: {{ include "docusaurus.name" . }}-typesense-api-key scrapers: - - name: {{ include "docusaurus.fullname" . }}-scraper + - name: {{ include "docusaurus.name" . }}-scraper image: typesense/docsearch-scraper:0.11.0 config: "{\"index_name\":\"docs-next\",\"start_urls\":[\"https://{{ required "ingress.host is required" .Values.ingress.host }}/\"],\"sitemap_urls\":[\"https://{{ required "ingress.host is required" .Values.ingress.host }}/sitemap.xml\"],\"sitemap_alternate_links\":true,\"stop_urls\":[\"/tests\"],\"selectors\":{\"lvl0\":{\"selector\":\"(//ul[contains(@class,'menu__list')]//a[contains(@class, 'menu__link menu__link--sublist menu__link--active')]/text() | //nav[contains(@class, 'navbar')]//a[contains(@class, 'navbar__link--active')]/text())[last()]\",\"type\":\"xpath\",\"global\":true,\"default_value\":\"Documentation\"},\"lvl1\":\"header h1\",\"lvl2\":\"article h2\",\"lvl3\":\"article h3\",\"lvl4\":\"article h4\",\"lvl5\":\"article h5, article td:first-child\",\"lvl6\":\"article h6\",\"text\":\"article p, article li, article td:last-child\"},\"strip_chars\":\" .,;:#\",\"custom_settings\":{\"separatorsToIndex\":\"_\",\"attributesForFaceting\":[\"language\",\"version\",\"type\",\"docusaurus_tag\"],\"attributesToRetrieve\":[\"hierarchy\",\"content\",\"anchor\",\"url\",\"url_without_anchor\",\"type\"]},\"conversation_id\":[\"833762294\"],\"nb_hits\":46250}" schedule: {{ required "typesense.scraper.schedule is required" .Values.typesense.scraper.schedule }} @@ -31,7 +31,7 @@ spec: apiVersion: apps/v1 kind: Deployment metadata: - name: {{ include "docusaurus.fullname" . }}-docusaurus + name: {{ include "docusaurus.name" . }}-docusaurus labels: app: docusaurus {{- include "docusaurus.labels" . | nindent 4 }} @@ -55,7 +55,7 @@ spec: apiVersion: v1 kind: Service metadata: - name: {{ include "docusaurus.fullname" . }}-docusaurus + name: {{ include "docusaurus.name" . }}-docusaurus labels: {{- include "docusaurus.labels" . | nindent 4 }} spec: @@ -71,7 +71,7 @@ spec: apiVersion: networking.k8s.io/v1 kind: Ingress metadata: - name: {{ include "docusaurus.fullname" . }}-docusaurus + name: {{ include "docusaurus.name" . }}-docusaurus labels: {{- include "docusaurus.labels" . | nindent 4 }} annotations: @@ -82,14 +82,14 @@ spec: tls: - hosts: - {{ required "ingress.host is required" .Values.ingress.host }} - secretName: {{ include "docusaurus.fullname" . }}-docusaurus-{{ required "ingress.clusterIssuer is required" .Values.ingress.clusterIssuer }}-certificate-tls + secretName: {{ include "docusaurus.name" . }}-docusaurus-{{ required "ingress.clusterIssuer is required" .Values.ingress.clusterIssuer }}-certificate-tls rules: - host: {{ required "ingress.host is required" .Values.ingress.host }} http: paths: - backend: service: - name: '{{ include "docusaurus.fullname" . }}-docusaurus' + name: '{{ include "docusaurus.name" . }}-docusaurus' port: number: 80 path: /