Skip to content

Commit 27d5a42

Browse files
chore: Update templated files (fb924df) (#1095)
chore: Generated commit to update templated files since the last template run up to stackabletech/operator-templating@fb924df Reference-to: stackabletech/operator-templating@fb924df (Write operator file logs to an emptyDir under /var/log, and complete the Artifact Hub metadata in Chart.yaml)
1 parent 5fea5d9 commit 27d5a42

4 files changed

Lines changed: 31 additions & 3 deletions

File tree

‎deploy/helm/zookeeper-operator/Chart.yaml‎

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,30 @@ icon: https://raw.githubusercontent.com/stackabletech/zookeeper-operator/main/.r
1212
sources:
1313
- https://github.com/stackabletech/zookeeper-operator
1414
keywords: ["apache-zookeeper", "zookeeper", "coordination", "kubernetes", "operator", "big-data"]
15+
# Artifact Hub drops any maintainer entry that has no email.
1516
maintainers:
16-
- name: Stackable
17+
- name: Stackable GmbH
18+
email: info@stackable.tech
1719
url: https://www.stackable.tech
1820
# Consumed by Artifact Hub, see https://artifacthub.io/docs/topics/annotations/helm/
1921
annotations:
2022
# The chart package ships no LICENSE file, so Artifact Hub cannot detect this itself.
2123
artifacthub.io/license: OSL-3.0
24+
# Artifact Hub currently infers this from "operator" in the chart name but I don't want to rely on the heuristics.
25+
artifacthub.io/operator: "true"
26+
# Unset means Artifact Hub predicts a category from the keywords, which it gets wrong a lot for our stuff
27+
artifacthub.io/category: skip-prediction
28+
artifacthub.io/alternativeName: zookeeper
2229
# A link named "support" is rendered highlighted by Artifact Hub. Keep it lowercase.
2330
artifacthub.io/links: |
2431
- name: Documentation
2532
url: https://docs.stackable.tech/home/stable/zookeeper/
33+
- name: Stackable Hub
34+
url: https://hub.stackable.tech/components/zookeeper
2635
- name: support
2736
url: https://github.com/stackabletech/zookeeper-operator/issues
37+
- name: Operator image on quay.io
38+
url: https://quay.io/repository/stackable/sdp/zookeeper-operator
2839
artifacthub.io/crds: |-
2940
- kind: ZookeeperCluster
3041
version: v1alpha1

‎deploy/helm/zookeeper-operator/templates/_telemetry.tpl‎

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
{{/*
2+
Used by FILE_LOG_DIRECTORY and the log volume mount in deployment.yaml, which have to agree.
3+
*/}}
4+
{{- define "zookeeper-operator.telemetry.fileLogDirectory" -}}
5+
/var/log/{{ include "zookeeper-operator.appname" . }}
6+
{{- end }}
7+
18
{{/*
29
Create a list of telemetry related env vars.
310
*/}}
@@ -17,7 +24,7 @@ Create a list of telemetry related env vars.
1724
{{ end }}
1825
{{- if .fileLog.enabled }}
1926
- name: FILE_LOG_DIRECTORY
20-
value: /stackable/logs/{{ include "zookeeper-operator.appname" $ }}
27+
value: {{ include "zookeeper-operator.telemetry.fileLogDirectory" $ }}
2128
{{- end }}
2229
{{- if and .fileLog.enabled .fileLog.level }}
2330
- name: FILE_LOG_LEVEL

‎deploy/helm/zookeeper-operator/templates/deployment.yaml‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,11 @@ spec:
9292
periodSeconds: 3
9393
failureThreshold: 30
9494
timeoutSeconds: 3
95+
{{- if .Values.telemetry.fileLog.enabled }}
96+
volumeMounts:
97+
- name: log
98+
mountPath: {{ include "zookeeper-operator.telemetry.fileLogDirectory" . }}
99+
{{- end }}
95100
{{- with .Values.nodeSelector }}
96101
nodeSelector:
97102
{{- toYaml . | nindent 8 }}
@@ -107,3 +112,8 @@ spec:
107112
{{- with .Values.priorityClassName }}
108113
priorityClassName: {{ . }}
109114
{{- end }}
115+
{{- if .Values.telemetry.fileLog.enabled }}
116+
volumes:
117+
- name: log
118+
emptyDir: {}
119+
{{- end }}

‎nix/meta.json‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)