github.com/1aal/kubeblocks@v0.0.0-20231107070852-e1c03e598921/deploy/helm/templates/addons/apecloud-otel-collector-addon.yaml (about)

     1  apiVersion: extensions.kubeblocks.io/v1alpha1
     2  kind: Addon
     3  metadata:
     4    name: apecloud-otel-collector
     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: apecloud-otel-collector is a high-performance data collection agent with luxuriant function, which inspired by OpenTelemetry.
    14    type: Helm
    15  
    16    helm:
    17      {{- include "kubeblocks.addonChartLocationURL" ( dict "name" "apecloud-otel-collector" "version" "0.1.2-beta.3" "values" .Values) | indent 4 }}
    18      {{- include "kubeblocks.addonChartsImage" . | indent 4 }}
    19  
    20      installOptions:
    21        {{- if hasPrefix "oci://" .Values.addonChartLocationBase }}
    22        version: 0.1.2-beta.3
    23        {{- end }}
    24  
    25      installValues:
    26        configMapRefs:
    27          - name: {{ include "addon.apecloud-otel-collector.name" . }}-chart-kubeblocks-values
    28            key: values-kubeblocks-override.yaml
    29  
    30      valuesMapping:
    31        valueMap:
    32  
    33        jsonMap:
    34          tolerations: tolerations
    35  
    36        resources:
    37          cpu:
    38            requests: resources.requests.cpu
    39            limits: resources.limits.cpu
    40          memory:
    41            requests: resources.requests.memory
    42            limits: resources.limits.memory
    43  
    44    defaultInstallValues:
    45      - enabled: true
    46        {{- $tolerations := .Values.tolerations }}
    47        {{- $dataPlaneTolerations := .Values.dataPlane.tolerations }}
    48        {{- $mergedTolerations := concat $tolerations $dataPlaneTolerations }}
    49        {{- with $mergedTolerations }}
    50        tolerations: {{ toJson . | quote }}
    51        {{- end }}
    52  
    53    installable:
    54      autoInstall: {{ .Values.agamotto.enabled }}
    55  
    56