Skip to content

Commit

Permalink
[opentelemetry-operator] remove default limits for cpu and memory (#970)
Browse files Browse the repository at this point in the history
* [opentelemetry-operator] remove default limits for cpu and memory

* adjusted schema and ran make commands

* Updated documentation

Signed-off-by: Pieter van der Giessen <pieter@pionative.com>

---------

Signed-off-by: Pieter van der Giessen <pieter@pionative.com>
  • Loading branch information
Pionerd authored Dec 15, 2023
1 parent e65ca18 commit 764920a
Show file tree
Hide file tree
Showing 14 changed files with 23 additions and 27 deletions.
2 changes: 1 addition & 1 deletion charts/opentelemetry-operator/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: opentelemetry-operator
version: 0.44.1
version: 0.44.2
description: OpenTelemetry Operator Helm chart for Kubernetes
type: application
home: https://opentelemetry.io/
Expand Down
2 changes: 2 additions & 0 deletions charts/opentelemetry-operator/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ The following command will show all the configurable options with detailed comme
$ helm show values open-telemetry/opentelemetry-operator
```

When using this chart as a subchart, you may want to unset certain default values. Since Helm v3.13 values handling is improved and null can now consistently be used to remove values (e.g. to remove the default CPU limits).

## Install OpenTelemetry Collector

_See [OpenTelemetry website](https://opentelemetry.io/docs/collector/) for more details about the Collector_
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ metadata:
annotations:
cert-manager.io/inject-ca-from: default/example-opentelemetry-operator-serving-cert
labels:
helm.sh/chart: opentelemetry-operator-0.44.1
helm.sh/chart: opentelemetry-operator-0.44.2
app.kubernetes.io/name: opentelemetry-operator
app.kubernetes.io/version: "0.90.0"
app.kubernetes.io/managed-by: Helm
Expand Down Expand Up @@ -91,7 +91,7 @@ metadata:
annotations:
cert-manager.io/inject-ca-from: default/example-opentelemetry-operator-serving-cert
labels:
helm.sh/chart: opentelemetry-operator-0.44.1
helm.sh/chart: opentelemetry-operator-0.44.2
app.kubernetes.io/name: opentelemetry-operator
app.kubernetes.io/version: "0.90.0"
app.kubernetes.io/managed-by: Helm
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
labels:
helm.sh/chart: opentelemetry-operator-0.44.1
helm.sh/chart: opentelemetry-operator-0.44.2
app.kubernetes.io/name: opentelemetry-operator
app.kubernetes.io/version: "0.90.0"
app.kubernetes.io/managed-by: Helm
Expand All @@ -29,7 +29,7 @@ apiVersion: cert-manager.io/v1
kind: Issuer
metadata:
labels:
helm.sh/chart: opentelemetry-operator-0.44.1
helm.sh/chart: opentelemetry-operator-0.44.2
app.kubernetes.io/name: opentelemetry-operator
app.kubernetes.io/version: "0.90.0"
app.kubernetes.io/managed-by: Helm
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
labels:
helm.sh/chart: opentelemetry-operator-0.44.1
helm.sh/chart: opentelemetry-operator-0.44.2
app.kubernetes.io/name: opentelemetry-operator
app.kubernetes.io/version: "0.90.0"
app.kubernetes.io/managed-by: Helm
Expand Down Expand Up @@ -253,7 +253,7 @@ apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
labels:
helm.sh/chart: opentelemetry-operator-0.44.1
helm.sh/chart: opentelemetry-operator-0.44.2
app.kubernetes.io/name: opentelemetry-operator
app.kubernetes.io/version: "0.90.0"
app.kubernetes.io/managed-by: Helm
Expand All @@ -271,7 +271,7 @@ apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
labels:
helm.sh/chart: opentelemetry-operator-0.44.1
helm.sh/chart: opentelemetry-operator-0.44.2
app.kubernetes.io/name: opentelemetry-operator
app.kubernetes.io/version: "0.90.0"
app.kubernetes.io/managed-by: Helm
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
labels:
helm.sh/chart: opentelemetry-operator-0.44.1
helm.sh/chart: opentelemetry-operator-0.44.2
app.kubernetes.io/name: opentelemetry-operator
app.kubernetes.io/version: "0.90.0"
app.kubernetes.io/managed-by: Helm
Expand All @@ -25,7 +25,7 @@ apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
labels:
helm.sh/chart: opentelemetry-operator-0.44.1
helm.sh/chart: opentelemetry-operator-0.44.2
app.kubernetes.io/name: opentelemetry-operator
app.kubernetes.io/version: "0.90.0"
app.kubernetes.io/managed-by: Helm
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ apiVersion: apps/v1
kind: Deployment
metadata:
labels:
helm.sh/chart: opentelemetry-operator-0.44.1
helm.sh/chart: opentelemetry-operator-0.44.2
app.kubernetes.io/name: opentelemetry-operator
app.kubernetes.io/version: "0.90.0"
app.kubernetes.io/managed-by: Helm
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
labels:
helm.sh/chart: opentelemetry-operator-0.44.1
helm.sh/chart: opentelemetry-operator-0.44.2
app.kubernetes.io/name: opentelemetry-operator
app.kubernetes.io/version: "0.90.0"
app.kubernetes.io/managed-by: Helm
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
labels:
helm.sh/chart: opentelemetry-operator-0.44.1
helm.sh/chart: opentelemetry-operator-0.44.2
app.kubernetes.io/name: opentelemetry-operator
app.kubernetes.io/version: "0.90.0"
app.kubernetes.io/managed-by: Helm
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ apiVersion: v1
kind: Service
metadata:
labels:
helm.sh/chart: opentelemetry-operator-0.44.1
helm.sh/chart: opentelemetry-operator-0.44.2
app.kubernetes.io/name: opentelemetry-operator
app.kubernetes.io/version: "0.90.0"
app.kubernetes.io/managed-by: Helm
Expand All @@ -31,7 +31,7 @@ apiVersion: v1
kind: Service
metadata:
labels:
helm.sh/chart: opentelemetry-operator-0.44.1
helm.sh/chart: opentelemetry-operator-0.44.2
app.kubernetes.io/name: opentelemetry-operator
app.kubernetes.io/version: "0.90.0"
app.kubernetes.io/managed-by: Helm
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ metadata:
name: opentelemetry-operator
namespace: default
labels:
helm.sh/chart: opentelemetry-operator-0.44.1
helm.sh/chart: opentelemetry-operator-0.44.2
app.kubernetes.io/name: opentelemetry-operator
app.kubernetes.io/version: "0.90.0"
app.kubernetes.io/managed-by: Helm
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ metadata:
name: "example-opentelemetry-operator-cert-manager"
namespace: default
labels:
helm.sh/chart: opentelemetry-operator-0.44.1
helm.sh/chart: opentelemetry-operator-0.44.2
app.kubernetes.io/name: opentelemetry-operator
app.kubernetes.io/version: "0.90.0"
app.kubernetes.io/managed-by: Helm
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ metadata:
name: "example-opentelemetry-operator-metrics"
namespace: default
labels:
helm.sh/chart: opentelemetry-operator-0.44.1
helm.sh/chart: opentelemetry-operator-0.44.2
app.kubernetes.io/name: opentelemetry-operator
app.kubernetes.io/version: "0.90.0"
app.kubernetes.io/managed-by: Helm
Expand Down Expand Up @@ -43,7 +43,7 @@ metadata:
name: "example-opentelemetry-operator-webhook"
namespace: default
labels:
helm.sh/chart: opentelemetry-operator-0.44.1
helm.sh/chart: opentelemetry-operator-0.44.2
app.kubernetes.io/name: opentelemetry-operator
app.kubernetes.io/version: "0.90.0"
app.kubernetes.io/managed-by: Helm
Expand Down
10 changes: 2 additions & 8 deletions charts/opentelemetry-operator/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -497,10 +497,7 @@
"type": "object",
"default": {},
"title": "The limits Schema",
"required": [
"cpu",
"memory"
],
"required": [],
"properties": {
"cpu": {
"type": "string",
Expand Down Expand Up @@ -1108,10 +1105,7 @@
"type": "object",
"default": {},
"title": "The limits Schema",
"required": [
"cpu",
"memory"
],
"required": [],
"properties": {
"cpu": {
"type": "string",
Expand Down

0 comments on commit 764920a

Please sign in to comment.