Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion deploy/helm/nifi-operator/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 8 additions & 1 deletion deploy/helm/nifi-operator/templates/_telemetry.tpl
Original file line number Diff line number Diff line change
@@ -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.
*/}}
Expand All @@ -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
Expand Down
10 changes: 10 additions & 0 deletions deploy/helm/nifi-operator/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -107,3 +112,8 @@ spec:
{{- with .Values.priorityClassName }}
priorityClassName: {{ . }}
{{- end }}
{{- if .Values.telemetry.fileLog.enabled }}
volumes:
- name: log
emptyDir: {}
{{- end }}
2 changes: 1 addition & 1 deletion nix/meta.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading