From 39997b903da9ee4537106220a6385f9e507d32cb Mon Sep 17 00:00:00 2001 From: ARaiu Date: Fri, 21 Jun 2024 10:43:09 +0300 Subject: [PATCH] Add apache-httpd to schema --- charts/opentelemetry-operator/Chart.yaml | 2 +- .../operator-webhook-with-cert-manager.yaml | 4 +- .../default/rendered/certmanager.yaml | 4 +- .../default/rendered/clusterrole.yaml | 6 +-- .../default/rendered/clusterrolebinding.yaml | 4 +- .../examples/default/rendered/deployment.yaml | 2 +- .../examples/default/rendered/role.yaml | 2 +- .../default/rendered/rolebinding.yaml | 2 +- .../examples/default/rendered/service.yaml | 4 +- .../default/rendered/serviceaccount.yaml | 2 +- .../tests/test-certmanager-connection.yaml | 2 +- .../tests/test-service-connection.yaml | 4 +- .../templates/deployment.yaml | 3 ++ .../opentelemetry-operator/values.schema.json | 48 ++++++++++++++++++- charts/opentelemetry-operator/values.yaml | 3 ++ 15 files changed, 72 insertions(+), 20 deletions(-) diff --git a/charts/opentelemetry-operator/Chart.yaml b/charts/opentelemetry-operator/Chart.yaml index 176c62aec..cd976a4da 100644 --- a/charts/opentelemetry-operator/Chart.yaml +++ b/charts/opentelemetry-operator/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v2 name: opentelemetry-operator -version: 0.62.0 +version: 0.63.0 description: OpenTelemetry Operator Helm chart for Kubernetes type: application home: https://opentelemetry.io/ diff --git a/charts/opentelemetry-operator/examples/default/rendered/admission-webhooks/operator-webhook-with-cert-manager.yaml b/charts/opentelemetry-operator/examples/default/rendered/admission-webhooks/operator-webhook-with-cert-manager.yaml index 10568452e..73736964a 100644 --- a/charts/opentelemetry-operator/examples/default/rendered/admission-webhooks/operator-webhook-with-cert-manager.yaml +++ b/charts/opentelemetry-operator/examples/default/rendered/admission-webhooks/operator-webhook-with-cert-manager.yaml @@ -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.62.0 + helm.sh/chart: opentelemetry-operator-0.63.0 app.kubernetes.io/name: opentelemetry-operator app.kubernetes.io/version: "0.102.0" app.kubernetes.io/managed-by: Helm @@ -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.62.0 + helm.sh/chart: opentelemetry-operator-0.63.0 app.kubernetes.io/name: opentelemetry-operator app.kubernetes.io/version: "0.102.0" app.kubernetes.io/managed-by: Helm diff --git a/charts/opentelemetry-operator/examples/default/rendered/certmanager.yaml b/charts/opentelemetry-operator/examples/default/rendered/certmanager.yaml index 97e07f285..e1c14330e 100644 --- a/charts/opentelemetry-operator/examples/default/rendered/certmanager.yaml +++ b/charts/opentelemetry-operator/examples/default/rendered/certmanager.yaml @@ -4,7 +4,7 @@ apiVersion: cert-manager.io/v1 kind: Certificate metadata: labels: - helm.sh/chart: opentelemetry-operator-0.62.0 + helm.sh/chart: opentelemetry-operator-0.63.0 app.kubernetes.io/name: opentelemetry-operator app.kubernetes.io/version: "0.102.0" app.kubernetes.io/managed-by: Helm @@ -30,7 +30,7 @@ apiVersion: cert-manager.io/v1 kind: Issuer metadata: labels: - helm.sh/chart: opentelemetry-operator-0.62.0 + helm.sh/chart: opentelemetry-operator-0.63.0 app.kubernetes.io/name: opentelemetry-operator app.kubernetes.io/version: "0.102.0" app.kubernetes.io/managed-by: Helm diff --git a/charts/opentelemetry-operator/examples/default/rendered/clusterrole.yaml b/charts/opentelemetry-operator/examples/default/rendered/clusterrole.yaml index 9b4b931d1..fdc50f9e1 100644 --- a/charts/opentelemetry-operator/examples/default/rendered/clusterrole.yaml +++ b/charts/opentelemetry-operator/examples/default/rendered/clusterrole.yaml @@ -4,7 +4,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - helm.sh/chart: opentelemetry-operator-0.62.0 + helm.sh/chart: opentelemetry-operator-0.63.0 app.kubernetes.io/name: opentelemetry-operator app.kubernetes.io/version: "0.102.0" app.kubernetes.io/managed-by: Helm @@ -223,7 +223,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - helm.sh/chart: opentelemetry-operator-0.62.0 + helm.sh/chart: opentelemetry-operator-0.63.0 app.kubernetes.io/name: opentelemetry-operator app.kubernetes.io/version: "0.102.0" app.kubernetes.io/managed-by: Helm @@ -242,7 +242,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - helm.sh/chart: opentelemetry-operator-0.62.0 + helm.sh/chart: opentelemetry-operator-0.63.0 app.kubernetes.io/name: opentelemetry-operator app.kubernetes.io/version: "0.102.0" app.kubernetes.io/managed-by: Helm diff --git a/charts/opentelemetry-operator/examples/default/rendered/clusterrolebinding.yaml b/charts/opentelemetry-operator/examples/default/rendered/clusterrolebinding.yaml index 763d96ae7..30f1033f4 100644 --- a/charts/opentelemetry-operator/examples/default/rendered/clusterrolebinding.yaml +++ b/charts/opentelemetry-operator/examples/default/rendered/clusterrolebinding.yaml @@ -4,7 +4,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: labels: - helm.sh/chart: opentelemetry-operator-0.62.0 + helm.sh/chart: opentelemetry-operator-0.63.0 app.kubernetes.io/name: opentelemetry-operator app.kubernetes.io/version: "0.102.0" app.kubernetes.io/managed-by: Helm @@ -26,7 +26,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: labels: - helm.sh/chart: opentelemetry-operator-0.62.0 + helm.sh/chart: opentelemetry-operator-0.63.0 app.kubernetes.io/name: opentelemetry-operator app.kubernetes.io/version: "0.102.0" app.kubernetes.io/managed-by: Helm diff --git a/charts/opentelemetry-operator/examples/default/rendered/deployment.yaml b/charts/opentelemetry-operator/examples/default/rendered/deployment.yaml index 7a09693e1..5cb12f0d3 100644 --- a/charts/opentelemetry-operator/examples/default/rendered/deployment.yaml +++ b/charts/opentelemetry-operator/examples/default/rendered/deployment.yaml @@ -4,7 +4,7 @@ apiVersion: apps/v1 kind: Deployment metadata: labels: - helm.sh/chart: opentelemetry-operator-0.62.0 + helm.sh/chart: opentelemetry-operator-0.63.0 app.kubernetes.io/name: opentelemetry-operator app.kubernetes.io/version: "0.102.0" app.kubernetes.io/managed-by: Helm diff --git a/charts/opentelemetry-operator/examples/default/rendered/role.yaml b/charts/opentelemetry-operator/examples/default/rendered/role.yaml index b28070c60..a13daa5f6 100644 --- a/charts/opentelemetry-operator/examples/default/rendered/role.yaml +++ b/charts/opentelemetry-operator/examples/default/rendered/role.yaml @@ -4,7 +4,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: Role metadata: labels: - helm.sh/chart: opentelemetry-operator-0.62.0 + helm.sh/chart: opentelemetry-operator-0.63.0 app.kubernetes.io/name: opentelemetry-operator app.kubernetes.io/version: "0.102.0" app.kubernetes.io/managed-by: Helm diff --git a/charts/opentelemetry-operator/examples/default/rendered/rolebinding.yaml b/charts/opentelemetry-operator/examples/default/rendered/rolebinding.yaml index c2f84c8cf..89474dbcc 100644 --- a/charts/opentelemetry-operator/examples/default/rendered/rolebinding.yaml +++ b/charts/opentelemetry-operator/examples/default/rendered/rolebinding.yaml @@ -4,7 +4,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: RoleBinding metadata: labels: - helm.sh/chart: opentelemetry-operator-0.62.0 + helm.sh/chart: opentelemetry-operator-0.63.0 app.kubernetes.io/name: opentelemetry-operator app.kubernetes.io/version: "0.102.0" app.kubernetes.io/managed-by: Helm diff --git a/charts/opentelemetry-operator/examples/default/rendered/service.yaml b/charts/opentelemetry-operator/examples/default/rendered/service.yaml index ed72f7104..e29996c49 100644 --- a/charts/opentelemetry-operator/examples/default/rendered/service.yaml +++ b/charts/opentelemetry-operator/examples/default/rendered/service.yaml @@ -4,7 +4,7 @@ apiVersion: v1 kind: Service metadata: labels: - helm.sh/chart: opentelemetry-operator-0.62.0 + helm.sh/chart: opentelemetry-operator-0.63.0 app.kubernetes.io/name: opentelemetry-operator app.kubernetes.io/version: "0.102.0" app.kubernetes.io/managed-by: Helm @@ -32,7 +32,7 @@ apiVersion: v1 kind: Service metadata: labels: - helm.sh/chart: opentelemetry-operator-0.62.0 + helm.sh/chart: opentelemetry-operator-0.63.0 app.kubernetes.io/name: opentelemetry-operator app.kubernetes.io/version: "0.102.0" app.kubernetes.io/managed-by: Helm diff --git a/charts/opentelemetry-operator/examples/default/rendered/serviceaccount.yaml b/charts/opentelemetry-operator/examples/default/rendered/serviceaccount.yaml index 9282b9580..a8e197b2d 100644 --- a/charts/opentelemetry-operator/examples/default/rendered/serviceaccount.yaml +++ b/charts/opentelemetry-operator/examples/default/rendered/serviceaccount.yaml @@ -6,7 +6,7 @@ metadata: name: opentelemetry-operator namespace: default labels: - helm.sh/chart: opentelemetry-operator-0.62.0 + helm.sh/chart: opentelemetry-operator-0.63.0 app.kubernetes.io/name: opentelemetry-operator app.kubernetes.io/version: "0.102.0" app.kubernetes.io/managed-by: Helm diff --git a/charts/opentelemetry-operator/examples/default/rendered/tests/test-certmanager-connection.yaml b/charts/opentelemetry-operator/examples/default/rendered/tests/test-certmanager-connection.yaml index 5b3411a20..dcebc9a80 100644 --- a/charts/opentelemetry-operator/examples/default/rendered/tests/test-certmanager-connection.yaml +++ b/charts/opentelemetry-operator/examples/default/rendered/tests/test-certmanager-connection.yaml @@ -6,7 +6,7 @@ metadata: name: "example-opentelemetry-operator-cert-manager" namespace: default labels: - helm.sh/chart: opentelemetry-operator-0.62.0 + helm.sh/chart: opentelemetry-operator-0.63.0 app.kubernetes.io/name: opentelemetry-operator app.kubernetes.io/version: "0.102.0" app.kubernetes.io/managed-by: Helm diff --git a/charts/opentelemetry-operator/examples/default/rendered/tests/test-service-connection.yaml b/charts/opentelemetry-operator/examples/default/rendered/tests/test-service-connection.yaml index abe83812b..d1485c62a 100644 --- a/charts/opentelemetry-operator/examples/default/rendered/tests/test-service-connection.yaml +++ b/charts/opentelemetry-operator/examples/default/rendered/tests/test-service-connection.yaml @@ -6,7 +6,7 @@ metadata: name: "example-opentelemetry-operator-metrics" namespace: default labels: - helm.sh/chart: opentelemetry-operator-0.62.0 + helm.sh/chart: opentelemetry-operator-0.63.0 app.kubernetes.io/name: opentelemetry-operator app.kubernetes.io/version: "0.102.0" app.kubernetes.io/managed-by: Helm @@ -44,7 +44,7 @@ metadata: name: "example-opentelemetry-operator-webhook" namespace: default labels: - helm.sh/chart: opentelemetry-operator-0.62.0 + helm.sh/chart: opentelemetry-operator-0.63.0 app.kubernetes.io/name: opentelemetry-operator app.kubernetes.io/version: "0.102.0" app.kubernetes.io/managed-by: Helm diff --git a/charts/opentelemetry-operator/templates/deployment.yaml b/charts/opentelemetry-operator/templates/deployment.yaml index 28a425137..0acf820aa 100644 --- a/charts/opentelemetry-operator/templates/deployment.yaml +++ b/charts/opentelemetry-operator/templates/deployment.yaml @@ -71,6 +71,9 @@ spec: {{- if and .Values.manager.autoInstrumentationImage.go.repository .Values.manager.autoInstrumentationImage.go.tag }} - --auto-instrumentation-go-image={{ .Values.manager.autoInstrumentationImage.go.repository }}:{{ .Values.manager.autoInstrumentationImage.go.tag }} {{- end }} + {{- if and .Values.manager.autoInstrumentationImage.apacheHttpd.repository .Values.manager.autoInstrumentationImage.apacheHttpd.tag }} + - --auto-instrumentation-apache-httpd-image={{ .Values.manager.autoInstrumentationImage.apacheHttpd.repository }}:{{ .Values.manager.autoInstrumentationImage.apacheHttpd.tag }} + {{- end }} {{- if .Values.manager.featureGates }} - --feature-gates={{ .Values.manager.featureGates }} {{- end }} diff --git a/charts/opentelemetry-operator/values.schema.json b/charts/opentelemetry-operator/values.schema.json index a4e065587..aefd1f227 100644 --- a/charts/opentelemetry-operator/values.schema.json +++ b/charts/opentelemetry-operator/values.schema.json @@ -285,7 +285,8 @@ "nodejs", "python", "dotnet", - "go" + "go", + "apacheHttpd" ], "additionalProperties": false, "properties": { @@ -448,6 +449,38 @@ "repository": "", "tag": "" }] + }, + "apacheHttpd": { + "type": "object", + "default": {}, + "title": "The apache-httpd Schema", + "required": [ + "repository", + "tag" + ], + "additionalProperties": false, + "properties": { + "repository": { + "type": "string", + "default": "", + "title": "The repository Schema", + "examples": [ + "" + ] + }, + "tag": { + "type": "string", + "default": "", + "title": "The tag Schema", + "examples": [ + "" + ] + } + }, + "examples": [{ + "repository": "", + "tag": "" + }] } }, "examples": [{ @@ -470,6 +503,10 @@ "go": { "repository": "", "tag": "" + }, + "apacheHttpd": { + "repository": "", + "tag": "" } }] }, @@ -1044,6 +1081,10 @@ "go": { "repository": "", "tag": "" + }, + "apacheHttpd": { + "repository": "", + "tag": "" } }, "featureGates": "", @@ -1805,6 +1846,11 @@ "go": { "repository": "", "tag": "" + }, + "apacheHttpd": + { + "repository": "", + "tag": "" } }, "featureGates": "", diff --git a/charts/opentelemetry-operator/values.yaml b/charts/opentelemetry-operator/values.yaml index e9cb1b5dc..491799e4c 100644 --- a/charts/opentelemetry-operator/values.yaml +++ b/charts/opentelemetry-operator/values.yaml @@ -62,6 +62,9 @@ manager: dotnet: repository: "" tag: "" + apacheHttpd: + repository: "" + tag: "" # The Go instrumentation support in the operator is disabled by default. # To enable it, use the operator.autoinstrumentation.go feature gate. go: