-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(observability-pipeline): add opampsupervisor support (#415)
## Which problem is this PR solving? Allows the chart to install an opamp-managed collector (implemented via the opampsupervisor) that communicates with the control plane ## Short description of the changes - update test to not install an opamp-managed collector - update control-plane helper templates to be namespaced with `controlPlane` - add template files for installing an opampsupervisor deployment. - update NOTES.txt to enforce specifying an image for the opampsupervisor ## How to verify that this has the expected result Tested locally in kind. --------- Co-authored-by: Alex Boten <[email protected]>
- Loading branch information
1 parent
35365fb
commit 9ed8204
Showing
13 changed files
with
203 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
refinery: | ||
enabled: false | ||
|
||
collector: | ||
enabled: false | ||
|
||
otelcol-deployment: | ||
enabled: true | ||
extraEnvs: [] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
charts/observability-pipeline/templates/collector-configmap.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{{- if and .Values.collector.enabled }} | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: {{ include "honeycomb-observability-pipeline.fullname" . }}-collector | ||
namespace: {{ .Release.Namespace }} | ||
labels: | ||
{{- include "honeycomb-observability-pipeline.collector.labels" . | nindent 4 }} | ||
app.kubernetes.io/component: collector | ||
data: | ||
config: | | ||
{{- include "honeycomb-observability-pipeline.collectorConfig" . | nindent 4 -}} | ||
{{- end }} |
45 changes: 45 additions & 0 deletions
45
charts/observability-pipeline/templates/collector-deployment.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
{{- if .Values.collector.enabled }} | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: {{ include "honeycomb-observability-pipeline.fullname" . }}-collector | ||
namespace: {{ .Release.Namespace }} | ||
labels: | ||
{{- include "honeycomb-observability-pipeline.collector.labels" . | nindent 4 }} | ||
app.kubernetes.io/component: collector | ||
spec: | ||
replicas: {{ .Values.collector.replicaCount }} | ||
selector: | ||
matchLabels: | ||
{{- include "honeycomb-observability-pipeline.collector.selectorLabels" . | nindent 6 }} | ||
strategy: | ||
type: RollingUpdate | ||
template: | ||
metadata: | ||
labels: | ||
{{- include "honeycomb-observability-pipeline.collector.selectorLabels" . | nindent 8 }} | ||
app.kubernetes.io/component: collector | ||
spec: | ||
serviceAccountName: {{ include "honeycomb-observability-pipeline.collector.serviceAccountName" . }} | ||
containers: | ||
- name: {{ .Chart.Name }} | ||
image: "{{ .Values.collector.image.repository }}:{{ .Values.collector.image.tag }}" | ||
imagePullPolicy: {{ .Values.collector.image.pullPolicy }} | ||
args: | ||
- --config | ||
- /etc/opampsupervisor/config.yaml | ||
{{- with .Values.collector.resources }} | ||
resources: | ||
{{- toYaml . | nindent 12 }} | ||
{{- end }} | ||
volumeMounts: | ||
- name: config | ||
mountPath: /etc/opampsupervisor | ||
volumes: | ||
- name: config | ||
configMap: | ||
name: {{ include "honeycomb-observability-pipeline.fullname" . }}-collector | ||
items: | ||
- key: config | ||
path: config.yaml | ||
{{- end }} |
16 changes: 16 additions & 0 deletions
16
charts/observability-pipeline/templates/collector-service.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{{- if and .Values.collector.enabled .Values.collector.service.enabled }} | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: {{ include "honeycomb-observability-pipeline.fullname" . }}-collector | ||
namespace: {{ .Release.Namespace }} | ||
labels: | ||
{{- include "honeycomb-observability-pipeline.collector.labels" . | nindent 4 }} | ||
app.kubernetes.io/component: collector | ||
spec: | ||
type: ClusterIP | ||
ports: | ||
{{- toYaml .Values.collector.service.ports | nindent 4 }} | ||
selector: | ||
{{- include "honeycomb-observability-pipeline.collector.selectorLabels" . | nindent 4 }} | ||
{{- end }} |
10 changes: 10 additions & 0 deletions
10
charts/observability-pipeline/templates/collector-serviceaccount.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{{- if and .Values.collector.enabled .Values.collector.serviceAccount.create -}} | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
name: {{ include "honeycomb-observability-pipeline.collector.serviceAccountName" . }} | ||
namespace: {{ .Release.Namespace }} | ||
labels: | ||
{{- include "honeycomb-observability-pipeline.collector.labels" . | nindent 4 }} | ||
app.kubernetes.io/component: collector | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters