Skip to content

Commit 7a7cf4a

Browse files
chore: Generated commit to update templated files since the last template run up to stackabletech/operator-templating@fb924df (#900)
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 6dae8c4 commit 7a7cf4a

4 files changed

Lines changed: 31 additions & 3 deletions

File tree

‎deploy/helm/opa-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/opa-operator/main/.readme/
1212
sources:
1313
- https://github.com/stackabletech/opa-operator
1414
keywords: ["open-policy-agent", "opa", "authorization", "policy", "rego", "kubernetes", "operator"]
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: security
28+
artifacthub.io/alternativeName: opa
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/opa/
33+
- name: Stackable Hub
34+
url: https://hub.stackable.tech/components/opa
2635
- name: support
2736
url: https://github.com/stackabletech/opa-operator/issues
37+
- name: Operator image on quay.io
38+
url: https://quay.io/repository/stackable/sdp/opa-operator
2839
artifacthub.io/crds: |-
2940
- kind: OpaCluster
3041
version: v1alpha2

‎deploy/helm/opa-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 "opa-operator.telemetry.fileLogDirectory" -}}
5+
/var/log/{{ include "opa-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 "opa-operator.appname" $ }}
27+
value: {{ include "opa-operator.telemetry.fileLogDirectory" $ }}
2128
{{- end }}
2229
{{- if and .fileLog.enabled .fileLog.level }}
2330
- name: FILE_LOG_LEVEL

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,11 @@ spec:
9494
periodSeconds: 3
9595
failureThreshold: 30
9696
timeoutSeconds: 3
97+
{{- if .Values.telemetry.fileLog.enabled }}
98+
volumeMounts:
99+
- name: log
100+
mountPath: {{ include "opa-operator.telemetry.fileLogDirectory" . }}
101+
{{- end }}
97102
{{- with .Values.nodeSelector }}
98103
nodeSelector:
99104
{{- toYaml . | nindent 8 }}
@@ -109,3 +114,8 @@ spec:
109114
{{- with .Values.priorityClassName }}
110115
priorityClassName: {{ . }}
111116
{{- end }}
117+
{{- if .Values.telemetry.fileLog.enabled }}
118+
volumes:
119+
- name: log
120+
emptyDir: {}
121+
{{- 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)