From 8820ae2182812901a6b7b2bc900fafdb9439383f Mon Sep 17 00:00:00 2001 From: Tyler Helmuth <12352919+TylerHelmuth@users.noreply.github.com> Date: Tue, 15 Mar 2022 10:42:17 -0600 Subject: [PATCH] Add more ci scenarios (#147) * add more ci scenarios * bump chart version * removing agent and standalone for now * added back both collectors * testing only both collector values * lowered resource limit * unblocking other scenarios * added metric example * updated metrics examples * blocking agent metrics for now * Pivoted to only enabling metrics endpoint * added clusterrole scenario * updated examples * added log scenario * added another scenario * added config override example * remove metric scenario --- charts/opentelemetry-collector/Chart.yaml | 2 +- ...agent-collector-conatiner-logs-values.yaml | 6 ++++++ .../ci/agent-collector-values.yaml | 4 ++++ .../ci/clusterrole-values.yaml | 20 +++++++++++++++++++ .../ci/config-override-values.yaml | 16 +++++++++++++++ .../ci/disabling-protocols-values.yaml | 14 +++++++++++++ ...tandalone-and-agent-collectors-values.yaml | 8 ++++++++ 7 files changed, 69 insertions(+), 1 deletion(-) create mode 100644 charts/opentelemetry-collector/ci/agent-collector-conatiner-logs-values.yaml create mode 100644 charts/opentelemetry-collector/ci/agent-collector-values.yaml create mode 100644 charts/opentelemetry-collector/ci/clusterrole-values.yaml create mode 100644 charts/opentelemetry-collector/ci/config-override-values.yaml create mode 100644 charts/opentelemetry-collector/ci/disabling-protocols-values.yaml create mode 100644 charts/opentelemetry-collector/ci/standalone-and-agent-collectors-values.yaml diff --git a/charts/opentelemetry-collector/Chart.yaml b/charts/opentelemetry-collector/Chart.yaml index 60537b926..56494f8ef 100644 --- a/charts/opentelemetry-collector/Chart.yaml +++ b/charts/opentelemetry-collector/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v2 name: opentelemetry-collector -version: 0.9.5 +version: 0.9.6 description: OpenTelemetry Collector Helm chart for Kubernetes type: application home: https://opentelemetry.io/ diff --git a/charts/opentelemetry-collector/ci/agent-collector-conatiner-logs-values.yaml b/charts/opentelemetry-collector/ci/agent-collector-conatiner-logs-values.yaml new file mode 100644 index 000000000..507693a27 --- /dev/null +++ b/charts/opentelemetry-collector/ci/agent-collector-conatiner-logs-values.yaml @@ -0,0 +1,6 @@ +agentCollector: + enabled: true + containerLogs: + enabled: true +standaloneCollector: + enabled: false diff --git a/charts/opentelemetry-collector/ci/agent-collector-values.yaml b/charts/opentelemetry-collector/ci/agent-collector-values.yaml new file mode 100644 index 000000000..1ea45a8ad --- /dev/null +++ b/charts/opentelemetry-collector/ci/agent-collector-values.yaml @@ -0,0 +1,4 @@ +agentCollector: + enabled: true +standaloneCollector: + enabled: false diff --git a/charts/opentelemetry-collector/ci/clusterrole-values.yaml b/charts/opentelemetry-collector/ci/clusterrole-values.yaml new file mode 100644 index 000000000..ac1751398 --- /dev/null +++ b/charts/opentelemetry-collector/ci/clusterrole-values.yaml @@ -0,0 +1,20 @@ +clusterRole: + create: true + name: "testing-clusterrole" + rules: + - apiGroups: + - '' + resources: + - 'pods' + - 'nodes' + verbs: + - 'get' + - 'list' + - 'watch' + clusterRoleBinding: + name: "testing-clusterrolebinding" + +agentCollector: + enabled: true +standaloneCollector: + enabled: false diff --git a/charts/opentelemetry-collector/ci/config-override-values.yaml b/charts/opentelemetry-collector/ci/config-override-values.yaml new file mode 100644 index 000000000..8f23ee657 --- /dev/null +++ b/charts/opentelemetry-collector/ci/config-override-values.yaml @@ -0,0 +1,16 @@ +agentCollector: + enabled: true + configOverride: + receivers: + hostmetrics: + scrapers: + cpu: + disk: + filesystem: + service: + pipelines: + metrics: + receivers: [prometheus, hostmetrics] + +standaloneCollector: + enabled: false diff --git a/charts/opentelemetry-collector/ci/disabling-protocols-values.yaml b/charts/opentelemetry-collector/ci/disabling-protocols-values.yaml new file mode 100644 index 000000000..ba151c22f --- /dev/null +++ b/charts/opentelemetry-collector/ci/disabling-protocols-values.yaml @@ -0,0 +1,14 @@ +ports: + jaeger-compact: + enabled: false + jaeger-thrift: + enabled: false + jaeger-grpc: + enabled: false + zipkin: + enabled: false + +agentCollector: + enabled: true +standaloneCollector: + enabled: false diff --git a/charts/opentelemetry-collector/ci/standalone-and-agent-collectors-values.yaml b/charts/opentelemetry-collector/ci/standalone-and-agent-collectors-values.yaml new file mode 100644 index 000000000..e60a44686 --- /dev/null +++ b/charts/opentelemetry-collector/ci/standalone-and-agent-collectors-values.yaml @@ -0,0 +1,8 @@ +agentCollector: + enabled: true +standaloneCollector: + enabled: true + # Needed to lower from default so that both can run in the Kind cluster + resources: + limits: + cpu: 256m