Skip to content

Commit 30032b0

Browse files
Merge pull request #739 from rackerlabs/otel-collector
feat: Added opentelemetry-operator and otel-collector component
2 parents c5b4cb0 + 721a824 commit 30032b0

File tree

6 files changed

+47
-0
lines changed

6 files changed

+47
-0
lines changed

apps/appsets/argocd-operators-project.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ spec:
2525
# kube-system is used by kube-prometheus-stack
2626
- namespace: 'kube-system'
2727
server: '*'
28+
- namespace: 'opentelemetry-operator'
29+
server: '*'
2830
clusterResourceWhitelist:
2931
- group: '*'
3032
kind: '*'

apps/appsets/components.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,13 @@ spec:
211211
- repoURL: '{{index .metadata.annotations "uc_deploy_git_url"}}'
212212
targetRevision: '{{index .metadata.annotations "uc_deploy_ref"}}'
213213
ref: deploy
214+
- component: otel-collector
215+
componentNamespace: otel-collector
216+
skipComponent: '{{has "otel-collector" ((default "[]" (index .metadata.annotations "uc_skip_components") | fromJson))}}'
217+
sources:
218+
- repoURL: '{{index .metadata.annotations "uc_deploy_git_url"}}'
219+
targetRevision: '{{index .metadata.annotations "uc_deploy_ref"}}'
220+
path: '{{.name}}/manifests/otel-collector'
214221
selector:
215222
# by setting the key in the elements 'skipComponent' to 'true' it will skip installing it
216223
# ArgoCD's templating operates with strings so it's the string "true"

apps/appsets/operators.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,25 @@ spec:
8888
- repoURL: '{{index .metadata.annotations "uc_deploy_git_url"}}'
8989
targetRevision: '{{index .metadata.annotations "uc_deploy_ref"}}'
9090
ref: deploy
91+
- component: opentelemetry-operator
92+
skipComponent: '{{has "opentelemetry-operator" ((default "[]" (index .metadata.annotations "uc_skip_components") | fromJson))}}'
93+
sources:
94+
- repoURL: https://open-telemetry.github.io/opentelemetry-helm-charts
95+
chart: opentelemetry-operator
96+
targetRevision: 0.79.0
97+
helm:
98+
releaseName: opentelemetry-operator
99+
valueFiles:
100+
- $understack/operators/opentelemetry-operator/values.yaml
101+
- $deploy/{{.name}}/helm-configs/opentelemetry-operator.yaml
102+
ignoreMissingValueFiles: true
103+
- repoURL: '{{index .metadata.annotations "uc_repo_git_url"}}'
104+
targetRevision: '{{index .metadata.annotations "uc_repo_ref"}}'
105+
ref: understack
106+
path: 'operators/opentelemetry-operator'
107+
- repoURL: '{{index .metadata.annotations "uc_deploy_git_url"}}'
108+
targetRevision: '{{index .metadata.annotations "uc_deploy_ref"}}'
109+
ref: deploy
91110
selector:
92111
# by setting the key in the elements 'skipComponent' to 'true' it will skip installing it
93112
# ArgoCD's templating operates with strings so it's the string "true"
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
apiVersion: cert-manager.io/v1
2+
kind: Issuer
3+
metadata:
4+
name: cert-manager-issuer
5+
spec:
6+
selfSigned: {}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
apiVersion: kustomize.config.k8s.io/v1beta1
2+
kind: Kustomization
3+
resources:
4+
- cert-manager-issuer.yaml
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
admissionWebhooks:
2+
certManager:
3+
issuerRef:
4+
kind: Issuer
5+
name: cert-manager-issuer
6+
manager:
7+
collectorImage:
8+
# The contrib image contains additional modules (i.e. exporters) that increase the compatibility
9+
repository: "otel/opentelemetry-collector-contrib"

0 commit comments

Comments
 (0)