github.com/1aal/kubeblocks@v0.0.0-20231107070852-e1c03e598921/deploy/helm/templates/addons/nyancat-addon.yaml (about) 1 apiVersion: extensions.kubeblocks.io/v1alpha1 2 kind: Addon 3 metadata: 4 name: nyancat 5 labels: 6 {{- include "kubeblocks.labels" . | nindent 4 }} 7 "kubeblocks.io/provider": apecloud 8 {{- if .Values.keepAddons }} 9 annotations: 10 helm.sh/resource-policy: keep 11 {{- end }} 12 spec: 13 description: 'Deploys a nyancat application in a cluster. 14 Nyancat is a demo application for showing database cluster availability.' 15 type: Helm 16 17 helm: 18 {{- include "kubeblocks.addonChartLocationURL" ( dict "name" "nyancat" "version" (default .Chart.Version .Values.versionOverride) "values" .Values) | indent 4 }} 19 {{- include "kubeblocks.addonChartsImage" . | indent 4 }} 20 21 installOptions: 22 {{- if hasPrefix "oci://" .Values.addonChartLocationBase }} 23 version: {{ default .Chart.Version .Values.versionOverride }} 24 {{- end }} 25 26 valuesMapping: 27 valueMap: 28 replicaCount: replicaCount 29 30 jsonMap: 31 tolerations: tolerations 32 33 resources: 34 cpu: 35 requests: resources.requests.cpu 36 limits: resources.limits.cpu 37 memory: 38 requests: resources.requests.memory 39 limits: resources.limits.memory 40 41 defaultInstallValues: 42 - replicas: 1 43 {{- with .Values.tolerations }} 44 tolerations: {{ toJson . | quote }} 45 {{- end }} 46 47 installable: 48 autoInstall: false 49