Skip to content

Commit

Permalink
reverted docusaurus chart #40
Browse files Browse the repository at this point in the history
  • Loading branch information
akyriako committed Dec 12, 2024
1 parent 2ee86f3 commit e4273e6
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 65 deletions.
2 changes: 1 addition & 1 deletion charts/docusaurus/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.3.4
version: 0.4.0
# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
Expand Down
30 changes: 0 additions & 30 deletions charts/docusaurus/templates/deployment-docusaurus.yaml
Original file line number Diff line number Diff line change
@@ -1,33 +1,3 @@
apiVersion: v1
kind: Secret
metadata:
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.name" . }}
spec:
image: typesense/typesense:27.1
replicas: 3
storage:
size: {{ required "typesense.storage.size is required" .Values.typesense.storage.size }}
storageClassName: {{ required "typesense.storage.storageClassName is required" .Values.typesense.storage.storageClassName }}
ingress:
host: {{ required "typesense.ingress.host is required" .Values.typesense.ingress.host }}
ingressClassName: nginx
clusterIssuer: {{ required "typesense.ingress.clusterIssuer is required" .Values.typesense.ingress.clusterIssuer }}
adminApiKey:
name: {{ include "docusaurus.name" . }}-typesense-api-key
scrapers:
- 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:
Expand Down
12 changes: 1 addition & 11 deletions charts/docusaurus/values-prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,4 @@ image: quay.io/opentelekomcloud/docs-next
tag: v0.0.4
ingress:
host:
clusterIssuer: letsencrypt-prod
typesense:
api-key:
storage:
size: 40Gi
storageClassName: csi-disk
ingress:
host:
clusterIssuer: letsencrypt-prod
scraper:
schedule: '*/5 * * * *'
clusterIssuer: letsencrypt-prod
12 changes: 1 addition & 11 deletions charts/docusaurus/values-stg.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,4 @@ image: quay.io/opentelekomcloud/docs-next
tag: 20241205.14.0-932a3d4
ingress:
host:
clusterIssuer: letsencrypt-prod
typesense:
api-key:
storage:
size: 40Gi
storageClassName: csi-disk
ingress:
host:
clusterIssuer: letsencrypt-prod
scraper:
schedule: '*/5 * * * *'
clusterIssuer: letsencrypt-prod
14 changes: 2 additions & 12 deletions charts/docusaurus/values.yaml
Original file line number Diff line number Diff line change
@@ -1,16 +1,6 @@
replicas: 5
image: quay.io/opentelekomcloud/docs-next
tag: v0.0.1
tag: v0.0.4
ingress:
host:
clusterIssuer: opentelekomcloud-letsencrypt
typesense:
api-key:
storage:
size: 1Gi
storageClassName: csi-disk
ingress:
host:
clusterIssuer: opentelekomcloud-letsencrypt
scraper:
schedule: '*/2 * * * *'
clusterIssuer: opentelekomcloud-letsencrypt

0 comments on commit e4273e6

Please sign in to comment.