Skip to content

Commit

Permalink
chore: add helm lint to otel solutions
Browse files Browse the repository at this point in the history
  • Loading branch information
povilasv committed Oct 10, 2023
1 parent 46fe918 commit 2eb2e5a
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/otel-agent-helm-test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Otel Agent Helm Install Test
name: Otel Agent Helm Lint and Install Test

on:
pull_request:
Expand All @@ -18,5 +18,5 @@ jobs:
with:
create-kind-cluster: "true"
- name: Run chart-testing (install)
run: ct install --charts otel-agent/k8s-helm
run: ct lint-and-install --charts otel-agent/k8s-helm

4 changes: 2 additions & 2 deletions .github/workflows/otel-infra-helm-test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Otel Infrastructure Collector Helm Install Test
name: Otel Infrastructure Collector Helm Lint and Install Test

on:
pull_request:
Expand All @@ -20,5 +20,5 @@ jobs:
- name: Setup Secret
run: kubectl create secret generic coralogix-keys --from-literal=PRIVATE_KEY=123
- name: Run chart-testing (install)
run: ct install --namespace default --charts otel-infrastructure-collector/k8s-helm
run: ct lint-and-install --namespace default --charts otel-infrastructure-collector/k8s-helm

4 changes: 2 additions & 2 deletions .github/workflows/otel-integration-helm-test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Otel Integration Helm Install Test
name: Otel Integration Helm Lint And Install Test

on:
pull_request:
Expand All @@ -20,4 +20,4 @@ jobs:
- name: Setup Secret
run: kubectl create secret generic coralogix-keys --from-literal=PRIVATE_KEY=123
- name: Run chart-testing (install)
run: ct install --namespace default --charts otel-integration/k8s-helm
run: ct lint-and-install --namespace default --charts otel-integration/k8s-helm
3 changes: 2 additions & 1 deletion otel-agent/k8s-helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,8 @@ opentelemetry-collector:
- "k8s.job.name"
- "k8s.pod.name"
- "k8s.node.name"
memory_limiter: null # Will get the k8s resource limits
# Will get the k8s resource limits
memory_limiter: null
resourcedetection/env:
detectors: ["system","env"]

Check failure on line 115 in otel-agent/k8s-helm/values.yaml

View workflow job for this annotation

GitHub Actions / collector-test

115:30 [commas] too few spaces after comma
timeout: 2s
Expand Down
3 changes: 2 additions & 1 deletion otel-infrastructure-collector/k8s-helm/ci/ci-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@ opentelemetry-collector:
application_name: "{{.Values.global.defaultApplicationName }}"
subsystem_name: "{{.Values.global.defaultSubsystemName }}"
processors:
memory_limiter: null # Will get the k8s resource limits
# Will get the k8s resource limits
memory_limiter: null
transform/kube-events:
log_statements:
- context: log
Expand Down
3 changes: 2 additions & 1 deletion otel-infrastructure-collector/k8s-helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@ opentelemetry-collector:
application_name: "{{.Values.global.defaultApplicationName }}"
subsystem_name: "{{.Values.global.defaultSubsystemName }}"
processors:
memory_limiter: null # Will get the k8s resource limits
# Will get the k8s resource limits
memory_limiter: null
transform/kube-events:
log_statements:
- context: log
Expand Down
3 changes: 2 additions & 1 deletion otel-integration/k8s-helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,8 @@ opentelemetry-agent:
- name: "k8s.container.name"
- name: "k8s.node.name"
- name: "k8s.namespace.name"

Check failure on line 167 in otel-integration/k8s-helm/values.yaml

View workflow job for this annotation

GitHub Actions / collector-test

167:39 [trailing-spaces] trailing spaces
memory_limiter: null # Will get the k8s resource limits
# Will get the k8s resource limits
memory_limiter: null

exporters:
coralogix:
Expand Down

0 comments on commit 2eb2e5a

Please sign in to comment.