Skip to content

Commit 106ccba

Browse files
authored
feat(logs): make operator optional (#1238)
* feat(logs): make operator optional * update docs * enable custom CRDs * update deps, move tests * update operator image for test-values * add nameOverride operator * add -operator for tests * start crd versioning with 0.0.1
1 parent b192566 commit 106ccba

17 files changed

+75
-34
lines changed

.github/workflows/ci-pr-build.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
- chartDir: opensearch/chart
4646
chartName: opensearch
4747
- chartDir: logs/charts
48-
chartName: opentelemetry-operator
48+
chartName: logs
4949
- chartDir: perses/charts
5050
chartName: perses
5151
- chartDir: plutono/charts

.github/workflows/helm-release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ jobs:
6161
- chartDir: opensearch/chart
6262
chartName: opensearch
6363
- chartDir: logs/charts
64-
chartName: opentelemetry-operator
64+
chartName: logs
6565
- chartDir: perses/charts
6666
chartName: perses
6767
- chartDir: plutono/charts

logs/README.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ You can install the `Logs` package in your cluster by installing it with [Helm](
5151

5252
**Step 2:**
5353

54-
The package will deploy the OpenTelemetry Operator which works as a manager for the collectors and auto-instrumentation of the workload. By default, the package will include a configuration for collecting metrics and logs. The log-collector is currently processing data from the [preconfigured receivers](#Overview):
54+
You can choose if you want to deploy the OpenTelemetry Operator including the collectors or set `opentelemetry-operator.enabled` to `false` in case you already have an existing Operator deployed in your cluster. The OpenTelemetry Operator works as a manager for the collectors and auto-instrumentation of the workload.
55+
By default, the package will include a configuration for collecting metrics and logs. The log-collector is currently processing data from the [preconfigured receivers](#Overview):
5556
- Files via the Filelog Receiver
5657
- Kubernetes Events from the Kubernetes API server
5758
- Journald events from systemd journal
@@ -80,7 +81,11 @@ The **Logs** Plugin comes with a [Failover Connector](https://github.com/open-te
8081
| Key | Type | Default | Description |
8182
|-----|------|---------|-------------|
8283
| commonLabels | object | `{}` | common labels to apply to all resources. |
84+
| customCRDs.enabled | bool | `true` | The required CRDs used by this dependency are version-controlled in this repository under ./charts/crds. |
8385
| openTelemetry.cluster | string | `nil` | Cluster label for Logging |
86+
| openTelemetry.collectorImage | object | `{"repository":"ghcr.io/cloudoperators/opentelemetry-collector-contrib","tag":"2016982"}` | OpenTelemetry Collector image configuration |
87+
| openTelemetry.collectorImage.repository | string | `"ghcr.io/cloudoperators/opentelemetry-collector-contrib"` | Image repository for OpenTelemetry Collector |
88+
| openTelemetry.collectorImage.tag | string | `"2016982"` | Image tag for OpenTelemetry Collector |
8489
| openTelemetry.customLabels | object | `{}` | custom Labels applied to servicemonitor, secrets and collectors |
8590
| openTelemetry.logsCollector.cephConfig | object | `{"enabled":false}` | Activates the configuration for Ceph logs (requires logsCollector to be enabled). |
8691
| openTelemetry.logsCollector.enabled | bool | `true` | Activates the standard configuration for Logs. |
@@ -107,10 +112,9 @@ The **Logs** Plugin comes with a [Failover Connector](https://github.com/open-te
107112
| opentelemetry-operator.admissionWebhooks.autoGenerateCert.recreate | bool | `false` | Activate to recreate the cert after a defined period (certPeriodDays default is 365). |
108113
| opentelemetry-operator.admissionWebhooks.certManager | object | `{"enabled":false}` | Activate to use the CertManager for generating self-signed certificates. |
109114
| opentelemetry-operator.admissionWebhooks.failurePolicy | string | `"Ignore"` | Defines if the admission webhooks should `Ignore` errors or `Fail` on errors when communicating with the API server. |
110-
| opentelemetry-operator.crds.create | bool | `false` | The required CRDs used by this dependency are version-controlled in this repository under ./crds. If you want to use the upstream CRDs, set this variable to `true``. |
115+
| opentelemetry-operator.crds.create | bool | `false` | If you want to use the upstream CRDs, set this variable to `true``. |
116+
| opentelemetry-operator.enabled | bool | `true` | Set to true to enable the installation of the OpenTelemetry Operator. |
111117
| opentelemetry-operator.kubeRBACProxy | object | `{"enabled":false}` | the kubeRBACProxy can be enabled to allow the operator perform RBAC authorization against the Kubernetes API. |
112-
| opentelemetry-operator.manager.collectorImage.repository | string | `"ghcr.io/cloudoperators/opentelemetry-collector-contrib"` | overrides the default image repository for the OpenTelemetry Collector image. |
113-
| opentelemetry-operator.manager.collectorImage.tag | string | `"2016982"` | overrides the default image tag for the OpenTelemetry Collector image. |
114118
| opentelemetry-operator.manager.image.repository | string | `"ghcr.io/open-telemetry/opentelemetry-operator/opentelemetry-operator"` | overrides the default image repository for the OpenTelemetry Operator image. |
115119
| opentelemetry-operator.manager.image.tag | string | `"v0.131.0"` | overrides the default tag repository for the OpenTelemetry Operator image. |
116120
| opentelemetry-operator.manager.serviceMonitor.enabled | bool | `true` | Enable serviceMonitor for Prometheus metrics scrape |

logs/README.md.gotmpl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ You can install the `Logs` package in your cluster by installing it with [Helm](
5151

5252
**Step 2:**
5353

54-
The package will deploy the OpenTelemetry Operator which works as a manager for the collectors and auto-instrumentation of the workload. By default, the package will include a configuration for collecting metrics and logs. The log-collector is currently processing data from the [preconfigured receivers](#Overview):
54+
You can choose if you want to deploy the OpenTelemetry Operator including the collectors or set `opentelemetry-operator.enabled` to `false` in case you already have an existing Operator deployed in your cluster. The OpenTelemetry Operator works as a manager for the collectors and auto-instrumentation of the workload.
55+
By default, the package will include a configuration for collecting metrics and logs. The log-collector is currently processing data from the [preconfigured receivers](#Overview):
5556
- Files via the Filelog Receiver
5657
- Kubernetes Events from the Kubernetes API server
5758
- Journald events from systemd journal

logs/charts/Chart.lock

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,8 @@ dependencies:
22
- name: opentelemetry-operator
33
repository: https://open-telemetry.github.io/opentelemetry-helm-charts
44
version: 0.93.0
5-
digest: sha256:9b0c09a70eabe6f91c21fd0abb215aa2a4f75b9b1f1f3c1c4fc4f2df1f940e31
6-
generated: "2025-08-26T12:42:03.116014+02:00"
5+
- name: crds
6+
repository: ""
7+
version: 0.0.0
8+
digest: sha256:f1ccc3df203ca775f5314c5e3d9f8edd37e86a11b33bdfe57de45d374a9cbeb3
9+
generated: "2025-10-29T09:09:37.869018+01:00"

logs/charts/Chart.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
# SPDX-License-Identifier: Apache-2.0
33

44
apiVersion: v2
5-
name: opentelemetry-operator
6-
version: 0.11.12
5+
name: logs
6+
version: 0.0.1
77
description: OpenTelemetry Operator Helm chart for Kubernetes
88
icon: https://raw.githubusercontent.com/cncf/artwork/a718fa97fffec1b9fd14147682e9e3ac0c8817cb/projects/opentelemetry/icon/color/opentelemetry-icon-color.png
99
type: application
@@ -17,3 +17,7 @@ dependencies:
1717
- name: opentelemetry-operator
1818
repository: https://open-telemetry.github.io/opentelemetry-helm-charts
1919
version: 0.93.0
20+
condition: opentelemetry-operator.enabled
21+
- name: crds
22+
version: 0.0.1
23+
condition: customCRDs.enabled

logs/charts/charts/crds/Chart.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
apiVersion: v2
2+
name: crds
3+
version: 0.0.1

logs/charts/crds/opentelemetry.io_instrumentations.yaml renamed to logs/charts/charts/crds/crds/opentelemetry.io_instrumentations.yaml

File renamed without changes.

logs/charts/crds/opentelemetry.io_opampbridges.yaml renamed to logs/charts/charts/crds/crds/opentelemetry.io_opampbridges.yaml

File renamed without changes.

logs/charts/crds/opentelemetry.io_opentelemetrycollectors.yaml renamed to logs/charts/charts/crds/crds/opentelemetry.io_opentelemetrycollectors.yaml

File renamed without changes.

0 commit comments

Comments
 (0)