Skip to content

Commit

Permalink
Add support of priorityClassName to the operator chart (open-telemetr…
Browse files Browse the repository at this point in the history
  • Loading branch information
avadhut123pisal authored Oct 17, 2022
1 parent 9cc38f3 commit 77fd275
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 3 deletions.
2 changes: 1 addition & 1 deletion charts/opentelemetry-operator/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: opentelemetry-operator
version: 0.14.2
version: 0.15.0
description: OpenTelemetry Operator Helm chart for Kubernetes
type: application
home: https://opentelemetry.io/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ apiVersion: v1
kind: Service
metadata:
labels:
helm.sh/chart: opentelemetry-operator-0.14.2
helm.sh/chart: opentelemetry-operator-0.15.0
app.kubernetes.io/name: opentelemetry-operator
app.kubernetes.io/instance: example
app.kubernetes.io/version: "0.60.0"
Expand Down
3 changes: 3 additions & 0 deletions charts/opentelemetry-operator/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ spec:
control-plane: controller-manager
spec:
hostNetwork: {{ .Values.hostNetwork }}
{{- if .Values.priorityClassName }}
priorityClassName: {{ .Values.priorityClassName | quote }}
{{- end }}
containers:
- args:
- --metrics-addr=0.0.0.0:{{ .Values.manager.ports.metricsPort }}
Expand Down
13 changes: 12 additions & 1 deletion charts/opentelemetry-operator/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
"nodeSelector",
"hostNetwork",
"securityContext",
"testFramework"
"testFramework",
"priorityClassName"
],
"properties": {
"replicaCount": {
Expand Down Expand Up @@ -864,6 +865,15 @@
false
]
},
"priorityClassName": {
"type": "string",
"default": "",
"title": "The priorityClassName Schema",
"examples": [
"system-node-critical",
"system-cluster-critical"
]
},
"securityContext": {
"type": "object",
"default": {},
Expand Down Expand Up @@ -1059,6 +1069,7 @@
"tolerations": [],
"nodeSelector": {},
"hostNetwork": false,
"priorityClassName": "",
"securityContext": {
"runAsGroup": 65534,
"runAsNonRoot": true,
Expand Down
3 changes: 3 additions & 0 deletions charts/opentelemetry-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,9 @@ tolerations: []
nodeSelector: {}
hostNetwork: false

# Allows for pod scheduler prioritisation
priorityClassName: ""

## SecurityContext holds pod-level security attributes and common container settings.
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
securityContext:
Expand Down

0 comments on commit 77fd275

Please sign in to comment.