From 2f29da34674c64c9e9d6d23583e269bd3555cbda Mon Sep 17 00:00:00 2001 From: Stacky McStackface Date: Fri, 9 Oct 2026 15:54:47 +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/nifi-operator/Chart.yaml | 13 ++++++++++++- deploy/helm/nifi-operator/templates/_telemetry.tpl | 9 ++++++++- deploy/helm/nifi-operator/templates/deployment.yaml | 10 ++++++++++ nix/meta.json | 2 +- 4 files changed, 31 insertions(+), 3 deletions(-) diff --git a/deploy/helm/nifi-operator/Chart.yaml b/deploy/helm/nifi-operator/Chart.yaml index 02c5a5be..3f9cd89b 100644 --- a/deploy/helm/nifi-operator/Chart.yaml +++ b/deploy/helm/nifi-operator/Chart.yaml @@ -12,19 +12,30 @@ icon: https://raw.githubusercontent.com/stackabletech/nifi-operator/main/.readme sources: - https://github.com/stackabletech/nifi-operator keywords: ["apache-nifi", "nifi", "dataflow", "etl", "kubernetes", "operator", "big-data"] +# 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: integration-delivery + artifacthub.io/alternativeName: nifi # 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/nifi/ + - name: Stackable Hub + url: https://hub.stackable.tech/components/nifi - name: support url: https://github.com/stackabletech/nifi-operator/issues + - name: Operator image on quay.io + url: https://quay.io/repository/stackable/sdp/nifi-operator artifacthub.io/crds: |- - kind: NifiCluster version: v1alpha1 diff --git a/deploy/helm/nifi-operator/templates/_telemetry.tpl b/deploy/helm/nifi-operator/templates/_telemetry.tpl index 02142696..297bb535 100644 --- a/deploy/helm/nifi-operator/templates/_telemetry.tpl +++ b/deploy/helm/nifi-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 "nifi-operator.telemetry.fileLogDirectory" -}} +/var/log/{{ include "nifi-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 "nifi-operator.appname" $ }} + value: {{ include "nifi-operator.telemetry.fileLogDirectory" $ }} {{- end }} {{- if and .fileLog.enabled .fileLog.level }} - name: FILE_LOG_LEVEL diff --git a/deploy/helm/nifi-operator/templates/deployment.yaml b/deploy/helm/nifi-operator/templates/deployment.yaml index 58e68d8c..d13397cd 100644 --- a/deploy/helm/nifi-operator/templates/deployment.yaml +++ b/deploy/helm/nifi-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 "nifi-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 00630a8a..1cfdb2c4 100644 --- a/nix/meta.json +++ b/nix/meta.json @@ -1 +1 @@ -{"operator": {"name": "nifi-operator", "pretty_string": "Apache NiFi", "product_string": "nifi", "url": "stackabletech/nifi-operator.git", "artifacthub_repository_id": "e0f40fc2-895b-4bbf-9446-91a47035d858", "chart_description": "Kubernetes operator for Apache NiFi. Deploy and run NiFi clusters with the Stackable Data Platform (SDP).", "keywords": ["apache-nifi", "nifi", "dataflow", "etl", "kubernetes", "operator", "big-data"]}} +{"operator": {"name": "nifi-operator", "pretty_string": "Apache NiFi", "product_string": "nifi", "url": "stackabletech/nifi-operator.git", "artifacthub_repository_id": "e0f40fc2-895b-4bbf-9446-91a47035d858", "chart_description": "Kubernetes operator for Apache NiFi. Deploy and run NiFi clusters with the Stackable Data Platform (SDP).", "artifacthub_category": "integration-delivery", "artifacthub_alternative_name": "nifi", "keywords": ["apache-nifi", "nifi", "dataflow", "etl", "kubernetes", "operator", "big-data"]}}