Skip to content

Commit

Permalink
replaced .fulname with .name to shorten for raft #40
Browse files Browse the repository at this point in the history
  • Loading branch information
akyriako committed Dec 12, 2024
1 parent 2ff93ab commit 03e2ef6
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions charts/docusaurus/templates/deployment-docusaurus.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
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==
---
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
Expand All @@ -21,17 +21,17 @@ 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 }}
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "docusaurus.fullname" . }}-docusaurus
name: {{ include "docusaurus.name" . }}-docusaurus
labels:
app: docusaurus
{{- include "docusaurus.labels" . | nindent 4 }}
Expand All @@ -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:
Expand All @@ -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:
Expand All @@ -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: /
Expand Down

0 comments on commit 03e2ef6

Please sign in to comment.