Skip to content

Add functionality to allow configuring the loglevel the operator is deployed with in the Helm chart #489

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
2 changes: 2 additions & 0 deletions template/Tiltfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# If tilt_options.json exists read it and load the default_registry value from it
settings = read_json('tilt_options.json', default={})
registry = settings.get('default_registry', 'oci.stackable.tech/sandbox')
loglevel = settings.get('loglevel', '')

# Configure default registry either read from config file above, or with default value of "oci.stackable.tech/sandbox"
default_registry(registry)
Expand Down Expand Up @@ -35,6 +36,7 @@ helm_crds, helm_non_crds = filter_yaml(
namespace="stackable-operators",
set=[
'image.repository=' + registry + '/' + operator_name,
'logLevel=' + loglevel
],
),
api_version = "^apiextensions\\.k8s\\.io/.*$",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ spec:
- name: KUBERNETES_CLUSTER_DOMAIN
value: {{ .Values.kubernetesClusterDomain | quote }}
{{- end }}
{{- if .Values.logLevel }}
- name: {[ operator.product_string | upper }]_OPERATOR_LOG
value: {{ .Values.logLevel | quote }}
{{- end }}
{[% if operator.product_string in ['kafka'] %}]
- name: KAFKA_BROKER_CLUSTERROLE
value: {{ include "operator.fullname" . }}-kafka-broker-clusterrole
Expand Down