From e9a106065c8cc5f3862ffdfd18cc5a39857ca4ea Mon Sep 17 00:00:00 2001 From: Stacky McStackface Date: Fri, 9 Oct 2026 15:53:54 +0000 Subject: [PATCH] chore: Generated commit to update templated files since the last template run up to stackabletech/operator-templating@fb924df5c043cc95473cd38e6edb187b6e675b0e 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) --- deploy/helm/commons-operator/Chart.yaml | 10 +++++++++- deploy/helm/commons-operator/templates/_telemetry.tpl | 9 ++++++++- deploy/helm/commons-operator/templates/deployment.yaml | 10 ++++++++++ nix/meta.json | 2 +- 4 files changed, 28 insertions(+), 3 deletions(-) diff --git a/deploy/helm/commons-operator/Chart.yaml b/deploy/helm/commons-operator/Chart.yaml index 7b63a99..e47e43e 100644 --- a/deploy/helm/commons-operator/Chart.yaml +++ b/deploy/helm/commons-operator/Chart.yaml @@ -12,19 +12,27 @@ icon: https://raw.githubusercontent.com/stackabletech/commons-operator/main/.rea sources: - https://github.com/stackabletech/commons-operator keywords: ["stackable", "data-platform", "kubernetes", "operator"] +# Artifact Hub drops any maintainer entry that has no email. maintainers: - - name: Stackable + - name: Stackable GmbH + email: info@stackable.tech url: https://www.stackable.tech # Consumed by Artifact Hub, see https://artifacthub.io/docs/topics/annotations/helm/ annotations: # The chart package ships no LICENSE file, so Artifact Hub cannot detect this itself. artifacthub.io/license: OSL-3.0 + # Artifact Hub currently infers this from "operator" in the chart name but I don't want to rely on the heuristics. + artifacthub.io/operator: "true" + # Unset means Artifact Hub predicts a category from the keywords, which it gets wrong a lot for our stuff + artifacthub.io/category: skip-prediction # A link named "support" is rendered highlighted by Artifact Hub. Keep it lowercase. artifacthub.io/links: | - name: Documentation url: https://docs.stackable.tech/home/stable/commons-operator/ - name: support url: https://github.com/stackabletech/commons-operator/issues + - name: Operator image on quay.io + url: https://quay.io/repository/stackable/sdp/commons-operator artifacthub.io/crds: |- - kind: AuthenticationClass version: v1alpha1 diff --git a/deploy/helm/commons-operator/templates/_telemetry.tpl b/deploy/helm/commons-operator/templates/_telemetry.tpl index 6974a99..6268cd4 100644 --- a/deploy/helm/commons-operator/templates/_telemetry.tpl +++ b/deploy/helm/commons-operator/templates/_telemetry.tpl @@ -1,3 +1,10 @@ +{{/* +Used by FILE_LOG_DIRECTORY and the log volume mount in deployment.yaml, which have to agree. +*/}} +{{- define "commons-operator.telemetry.fileLogDirectory" -}} +/var/log/{{ include "commons-operator.appname" . }} +{{- end }} + {{/* Create a list of telemetry related env vars. */}} @@ -17,7 +24,7 @@ Create a list of telemetry related env vars. {{ end }} {{- if .fileLog.enabled }} - name: FILE_LOG_DIRECTORY - value: /stackable/logs/{{ include "commons-operator.appname" $ }} + value: {{ include "commons-operator.telemetry.fileLogDirectory" $ }} {{- end }} {{- if and .fileLog.enabled .fileLog.level }} - name: FILE_LOG_LEVEL diff --git a/deploy/helm/commons-operator/templates/deployment.yaml b/deploy/helm/commons-operator/templates/deployment.yaml index f0a95eb..0e2a72e 100644 --- a/deploy/helm/commons-operator/templates/deployment.yaml +++ b/deploy/helm/commons-operator/templates/deployment.yaml @@ -92,6 +92,11 @@ spec: periodSeconds: 3 failureThreshold: 30 timeoutSeconds: 3 + {{- if .Values.telemetry.fileLog.enabled }} + volumeMounts: + - name: log + mountPath: {{ include "commons-operator.telemetry.fileLogDirectory" . }} + {{- end }} {{- with .Values.nodeSelector }} nodeSelector: {{- toYaml . | nindent 8 }} @@ -107,3 +112,8 @@ spec: {{- with .Values.priorityClassName }} priorityClassName: {{ . }} {{- end }} + {{- if .Values.telemetry.fileLog.enabled }} + volumes: + - name: log + emptyDir: {} + {{- end }} diff --git a/nix/meta.json b/nix/meta.json index 741f907..98530a9 100644 --- a/nix/meta.json +++ b/nix/meta.json @@ -1 +1 @@ -{"operator": {"name": "commons-operator", "pretty_string": "Stackable Commons", "chart_title": "Stackable Commons Operator", "product_string": "commons-operator", "url": "stackabletech/commons-operator.git", "artifacthub_repository_id": "1a53cf2b-a870-4b19-b3cc-e914d02c2076", "chart_description": "Kubernetes operator for common resources shared across the Stackable Data Platform (SDP).", "keywords": ["stackable", "data-platform", "kubernetes", "operator"], "config": {"has_product": false}}} +{"operator": {"name": "commons-operator", "pretty_string": "Stackable Commons", "chart_title": "Stackable Commons Operator", "product_string": "commons-operator", "url": "stackabletech/commons-operator.git", "artifacthub_repository_id": "1a53cf2b-a870-4b19-b3cc-e914d02c2076", "chart_description": "Kubernetes operator for common resources shared across the Stackable Data Platform (SDP).", "artifacthub_category": "skip-prediction", "keywords": ["stackable", "data-platform", "kubernetes", "operator"], "config": {"has_product": false}}}