Skip to content
This repository has been archived by the owner on Dec 15, 2024. It is now read-only.

Commit

Permalink
Merge pull request #22 from esara/hooks
Browse files Browse the repository at this point in the history
helm hook for odigos configuration and namespace readme
  • Loading branch information
blumamir authored Jan 31, 2024
2 parents f482d80 + 796ac3f commit 41ff0b0
Show file tree
Hide file tree
Showing 9 changed files with 59 additions and 59 deletions.
60 changes: 6 additions & 54 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,68 +11,20 @@ Add helm repository:
helm repo add odigos https://keyval-dev.github.io/odigos-charts/
```

Install chart:
Install helm release:
```console
helm repo update
helm upgrade --install odigos odigos/odigos --namespace odigos-system --create-namespace
kubectl label namespace odigos-system odigos.io/system-object="true"
```

Create community configuration:
Uninstall helm release:
```console
#!/usr/bin/env bash

cat <<EOF | kubectl create --namespace odigos-system -f -
apiVersion: odigos.io/v1alpha1
kind: OdigosConfiguration
metadata:
name: odigos-config
spec:
autoscalerImage: keyval/odigos-autoscaler
configVersion: 1
defaultSDKs:
dotnet:
sdkTier: community
sdkType: native
go:
sdkTier: community
sdkType: ebpf
java:
sdkTier: community
sdkType: native
javascript:
sdkTier: community
sdkType: native
python:
sdkTier: community
sdkType: native
ignoredNamespaces:
- odigos-system
- kube-system
- local-path-storage
- istio-system
- linkerd
instrumentorImage: keyval/odigos-instrumentor
odigosVersion: v1.0.22
supportedSDKs:
dotnet:
- sdkTier: community
sdkType: native
go:
- sdkTier: community
sdkType: ebpf
java:
- sdkTier: community
sdkType: native
javascript:
- sdkTier: community
sdkType: native
python:
- sdkTier: community
sdkType: native
telemetryEnabled: true
EOF
helm delete odigos -n odigos-system
kubectl delete ns odigos-system
```


## License

[Apache 2.0 License](https://github.com/prometheus-community/helm-charts/blob/main/LICENSE).
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.2.40
version: 0.2.41

# 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
5 changes: 3 additions & 2 deletions charts/odigos/templates/NOTES.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
Odigos installed successfully. For getting started go to the UI by running:

kubectl port-forward svc/odigos-ui 3000:3000 -n {{ .Release.Namespace }}
brew install keyval-dev/homebrew-odigos-cli/odigos
odigos ui

Then, go to: http://localhost:3000
Then, go to: http://localhost:3000
47 changes: 47 additions & 0 deletions charts/odigos/templates/odigos-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
apiVersion: odigos.io/v1alpha1
kind: OdigosConfiguration
metadata:
name: odigos-config
namespace: {{ .Release.Namespace }}
annotations:
"helm.sh/hook": post-install,post-upgrade
spec:
configVersion: 1
autoscalerImage: {{ .Values.autoscaler.image.repository }}
instrumentorImage: {{ .Values.instrumentor.image.repository }}
odigosVersion: {{ .Values.image.tag }}
telemetryEnabled: {{ .Values.telemetry.enabled }}
ignoredNamespaces:
{{- toYaml .Values.instrumentor.ignoredNamespaces | nindent 8 }}
defaultSDKs:
dotnet:
sdkTier: community
sdkType: native
go:
sdkTier: community
sdkType: ebpf
java:
sdkTier: community
sdkType: native
javascript:
sdkTier: community
sdkType: native
python:
sdkTier: community
sdkType: native
supportedSDKs:
dotnet:
- sdkTier: community
sdkType: native
go:
- sdkTier: community
sdkType: ebpf
java:
- sdkTier: community
sdkType: native
javascript:
- sdkTier: community
sdkType: native
python:
- sdkTier: community
sdkType: native
4 changes: 2 additions & 2 deletions charts/odigos/values.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
image:
tag: v1.0.22
tag: v1.0.27

autoscaler:
image:
Expand All @@ -11,7 +11,7 @@ scheduler:

instrumentor:
deleteLangDetectionPods: true
# Ignored namespaces won't show up in odigos-ui
# Ignored namespaces won't show up in odigos-ui
ignoredNamespaces:
- odigos-system
- kube-system
Expand Down

0 comments on commit 41ff0b0

Please sign in to comment.