Skip to content

Commit

Permalink
Add psp and imagePrefix support (#41)
Browse files Browse the repository at this point in the history
* add psp and imagePrefix support

* change chart version
  • Loading branch information
edeNFed authored May 5, 2024
1 parent a683661 commit a3a6811
Show file tree
Hide file tree
Showing 9 changed files with 34 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# Odigos Helm Chart

[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) [![Release Charts](https://github.com/keyval-dev/odigos-charts/actions/workflows/release.yml/badge.svg?branch=master)](https://github.com/keyval-dev/odigos-charts/actions/workflows/release.yml)
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) [![Release Charts](https://github.com/odigos-io/odigos-charts/actions/workflows/release.yml/badge.svg?branch=master)](https://github.com/odigos-io/odigos-charts/actions/workflows/release.yml)

This repository contains the helm chart for Odigos - the observability control plane.

## Usage

Add helm repository:
```console
helm repo add odigos https://keyval-dev.github.io/odigos-charts/
helm repo add odigos https://odigos-io.github.io/odigos-charts/
```

### Install Odigos
Expand Down
2 changes: 1 addition & 1 deletion charts/odigos/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.3.11
version: 0.3.12

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
2 changes: 1 addition & 1 deletion charts/odigos/templates/NOTES.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Odigos installed successfully. For getting started go to the UI by running:

brew install keyval-dev/homebrew-odigos-cli/odigos
brew install odigos-io/homebrew-odigos-cli/odigos
odigos ui

Then, go to: http://localhost:3000
4 changes: 4 additions & 0 deletions charts/odigos/templates/autoscaler/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,11 @@ spec:
{{ end }}
command:
- /app
{{- if .Values.imagePrefix }}
image: "{{ .Values.imagePrefix }}/{{ .Values.autoscaler.image.repository }}:{{ .Values.image.tag }}"
{{- else }}
image: "{{ .Values.autoscaler.image.repository }}:{{ .Values.image.tag }}"
{{- end }}
env:
- name: OTEL_SERVICE_NAME
value: auto-scaler
Expand Down
4 changes: 4 additions & 0 deletions charts/odigos/templates/instrumentor/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,11 @@ spec:
- --leader-elect
command:
- /app
{{- if .Values.imagePrefix }}
image: "{{ .Values.imagePrefix }}/{{ .Values.instrumentor.image.repository }}:{{ .Values.image.tag }}"
{{- else }}
image: "{{ .Values.instrumentor.image.repository }}:{{ .Values.image.tag }}"
{{- end }}
env:
- name: OTEL_SERVICE_NAME
value: instrumentor
Expand Down
10 changes: 10 additions & 0 deletions charts/odigos/templates/odiglet/clusterrole.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,13 @@ rules:
- patch
- update
- watch
{{ if .Values.psp.enabled }}
- apiGroups:
- policy
resourceNames:
- privileged
resources:
- podsecuritypolicies
verbs:
- use
{{ end }}
4 changes: 4 additions & 0 deletions charts/odigos/templates/odiglet/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,11 @@ spec:
spec:
containers:
- name: odiglet
{{- if .Values.imagePrefix }}
image: "{{ .Values.imagePrefix }}/{{ .Values.odiglet.image.repository }}:{{ .Values.image.tag }}"
{{- else }}
image: "{{ .Values.odiglet.image.repository }}:{{ .Values.image.tag }}"
{{- end }}
env:
- name: NODE_NAME
valueFrom:
Expand Down
4 changes: 4 additions & 0 deletions charts/odigos/templates/odigos-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ metadata:
spec:
configVersion: 1
autoscalerImage: {{ .Values.autoscaler.image.repository }}
{{- if .Values.imagePrefix }}
imagePrefix: {{ .Values.imagePrefix }}
{{- end }}
{{- if .Values.collectorGateway }}
collectorGateway:
{{- with .Values.collectorGateway.requestMemoryMiB }}
Expand All @@ -26,6 +29,7 @@ spec:
instrumentorImage: {{ .Values.instrumentor.image.repository }}
odigosVersion: {{ .Values.image.tag }}
telemetryEnabled: {{ .Values.telemetry.enabled }}
psp: {{ .Values.psp.enabled }}
ignoredNamespaces:
{{- toYaml .Values.instrumentor.ignoredNamespaces | nindent 8 }}
defaultSDKs:
Expand Down
4 changes: 4 additions & 0 deletions charts/odigos/templates/scheduler/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,11 @@ spec:
- --leader-elect
command:
- /app
{{- if .Values.imagePrefix }}
image: "{{ .Values.imagePrefix }}/{{ .Values.scheduler.image.repository }}:{{ .Values.image.tag }}"
{{- else }}
image: "{{ .Values.scheduler.image.repository }}:{{ .Values.image.tag }}"
{{- end }}
env:
- name: OTEL_SERVICE_NAME
value: scheduler
Expand Down

0 comments on commit a3a6811

Please sign in to comment.