Skip to content

Commit

Permalink
[artemiscloud-operator] add support to set operator log level
Browse files Browse the repository at this point in the history
Signed-off-by: Tiago Bueno <[email protected]>
  • Loading branch information
tlbueno committed Jun 6, 2024
1 parent b71192e commit cc4ef0c
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 7 deletions.
4 changes: 2 additions & 2 deletions charts/artemiscloud-operator/Chart.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ dependencies:
- name: artemiscloud-operator-crds
repository: https://tlbueno.github.io/helm-charts
version: 0.2.2
digest: sha256:c51abf03688c2a1f018959657f3869f8e326cfeb19ad0f4dbac9f9692ec5f634
generated: "2024-06-06T12:45:25.863254927-03:00"
digest: sha256:575800269e3e9fbd6c4e28c9c335c59cedee2b7fd84f016e7f461819f2562ea4
generated: "2024-06-06T14:21:13.254313129-03:00"
4 changes: 2 additions & 2 deletions charts/artemiscloud-operator/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.2.3
version: 0.2.4

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand All @@ -35,5 +35,5 @@ dependencies:
# This is needed because it must be a match of the operator CRD
version: "0.2.2"
repository: https://tlbueno.github.io/helm-charts
condition: install_crds
condition: installCrds

5 changes: 4 additions & 1 deletion charts/artemiscloud-operator/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,12 @@ Default values:
# as the CRDs have backward compatibility and you installed the latest one,
# you can have multiple operator versions at the same time but you need to ensure they are
# watching specific namespaces otherwise it can have unexpected behavior
install_crds: true
installCrds: true

operator:
# Operator log level
logLevel: info

watch:
# operator watch namespace mode
# expected one of the values:
Expand Down
2 changes: 1 addition & 1 deletion charts/artemiscloud-operator/templates/operator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ spec:
spec:
containers:
- args:
- --zap-log-level=info
- --zap-log-level={{ .Values.operator.logLevel }}
- --zap-encoder=console
- --zap-time-encoding=iso8601
- --leader-elect
Expand Down
5 changes: 4 additions & 1 deletion charts/artemiscloud-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,12 @@
# as the CRDs have backward compatibility and you installed the latest one,
# you can have multiple operator versions at the same time but you need to ensure they are
# watching specific namespaces otherwise it can have unexpected behavior
install_crds: true
installCrds: true

operator:
# Operator log level
logLevel: info

watch:
# operator watch namespace mode
# expected one of the values:
Expand Down

0 comments on commit cc4ef0c

Please sign in to comment.