Skip to content

Commit 5aab0ac

Browse files
authored
udpate to dapr 1.16.0 (#352)
Signed-off-by: Luca Burgazzoli <[email protected]>
1 parent 58595eb commit 5aab0ac

File tree

27 files changed

+206
-36
lines changed

27 files changed

+206
-36
lines changed

.github/workflows/e2e-olm.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,10 @@ jobs:
5959
- "1.28.15"
6060
- "1.29.14"
6161
- "1.30.13"
62-
- "1.31.9"
63-
- "1.32.5"
64-
- "1.33.1"
62+
- "1.31.12"
63+
- "1.32.8"
64+
- "1.33.4"
65+
- "1.34.0"
6566
steps:
6667
- name: "Checkout"
6768
uses: actions/checkout@v5

.github/workflows/e2e-operator.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,10 @@ jobs:
3939
- "1.28.15"
4040
- "1.29.14"
4141
- "1.30.13"
42-
- "1.31.9"
43-
- "1.32.5"
44-
- "1.33.1"
42+
- "1.31.12"
43+
- "1.32.8"
44+
- "1.33.4"
45+
- "1.34.0"
4546
steps:
4647
- name: "Checkout"
4748
uses: actions/checkout@v5

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ LOCALBIN := $(PROJECT_PATH)/bin
2424

2525
HELM_CHART_REPO ?= https://dapr.github.io/helm-charts
2626
HELM_CHART ?= dapr
27-
HELM_CHART_VERSION ?= 1.15.10
27+
HELM_CHART_VERSION ?= 1.16.0
2828
HELM_CHART_URL ?= https://raw.githubusercontent.com/dapr/helm-charts/master/dapr-$(HELM_CHART_VERSION).tgz
2929

3030
OPENSHIFT_VERSIONS ?= v4.12

helm-charts/dapr/Chart.yaml

Lines changed: 26 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,28 @@
1-
apiVersion: v1
2-
appVersion: 1.15.10
1+
apiVersion: v2
2+
appVersion: 1.16.0
3+
dependencies:
4+
- name: dapr_rbac
5+
repository: file://dapr_rbac
6+
version: 1.16.0
7+
- name: dapr_operator
8+
repository: file://dapr_operator
9+
version: 1.16.0
10+
- name: dapr_placement
11+
repository: file://dapr_placement
12+
version: 1.16.0
13+
- name: dapr_sidecar_injector
14+
repository: file://dapr_sidecar_injector
15+
version: 1.16.0
16+
- name: dapr_sentry
17+
repository: file://dapr_sentry
18+
version: 1.16.0
19+
- name: dapr_scheduler
20+
repository: file://dapr_scheduler
21+
version: 1.16.0
22+
- name: dapr_config
23+
repository: file://dapr_config
24+
version: 1.16.0
325
description: A Helm chart for Dapr on Kubernetes
26+
icon: https://dapr.io/images/dapr.svg
427
name: dapr
5-
version: 1.15.10
28+
version: 1.16.0

helm-charts/dapr/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ The Helm chart has the follow configuration options that can be supplied:
119119
| `global.rbac.namespaced` | Removes cluster wide permissions where applicable | `false` |
120120
| `global.argoRolloutServiceReconciler.enabled` | Enable the service reconciler for Dapr-enabled Argo Rollouts | `false` |
121121
| `global.priorityClassName` | Adds `priorityClassName` to Dapr pods | `""` |
122-
| `global.scheduler.enabled` | Enables the Dapr Scheduler building block. When "false", the Dapr Scheduler service is not installed, and attempting to schedule jobs in Dapr will fail. | `true` |
122+
| `global.scheduler.enabled` | Enables the Dapr Scheduler service, which enables the following building blocks: Jobs API, and for both Actors and Workflows APIs to scale. When "false", the Dapr Scheduler service is not installed, and attempting to schedule jobs in Dapr will fail. Additionally, actors and workflows will be limited in scale. | `true` |
123123

124124
### Dapr Operator options:
125125
| Parameter | Description | Default |
@@ -157,6 +157,7 @@ The Helm chart has the follow configuration options that can be supplied:
157157
| `dapr_placement.minActorApiLevel` | Sets the `min-api-level` flag, which enforces a minimum value for the Actor API level in the cluster. | `0` |
158158
| `dapr_placement.scaleZero` | If true, the StatefulSet is deployed with a zero scale, regardless of the values of `global.ha.enabled` or `dapr_placement.ha` | `false` |
159159
| `dapr_placement.runAsNonRoot` | Boolean value for `securityContext.runAsNonRoot`. Does not apply unless `forceInMemoryLog` is set to `true`. You may have to set this to `false` when running in Minikube | `true` |
160+
| `dapr_placement.fsGroup` | Integer value for `fsGroup`. Useful for adding the Placement process to the file system group that can write to the mounted database volume. | `65532`
160161
| `dapr_placement.resources` | Value of `resources` attribute. Can be used to set memory/cpu resources/limits. See the section "Resource configuration" above. Defaults to empty | `{}` |
161162
| `dapr_placement.debug.enabled` | Boolean value for enabling debug mode | `{}` |
162163
| `dapr_placement.metadataEnabled` | Boolean value for enabling placement tables metadata HTTP API | `false` |
@@ -199,6 +200,7 @@ The Helm chart has the follow configuration options that can be supplied:
199200
| `dapr_scheduler.etcdBackendBatchLimit` | Maximum operations before committing the backend transaction | `5000` |
200201
| `dapr_scheduler.etcdBackendBatchInterval` | Maximum time before committing the backend transaction | `50ms` |
201202
| `dapr_scheduler.etcdDefragThresholdMB` | Minimum number of megabytes needed to be freed for etcd to consider running defrag during bootstrap. Needs to be set to non-zero value to take effect | `100` |
203+
| `dapr_scheduler.etcdInitialElectionTickAdvance` | Whether to fast-forward initial election ticks on boot for faster election. When it is true, then local member fast-forwards election ticks to speed up “initial” leader election trigger. This benefits the case of larger election ticks. Disabling this would slow down initial bootstrap process for cross datacenter deployments. Make your own tradeoffs by configuring this flag at the cost of slow initial bootstrap.| `false` |
202204
| `dapr_scheduler.etcdMetrics` | Level of detail for exported metrics, specify ’extensive’ to include histogram metrics | `basic` |
203205

204206

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
apiVersion: v1
1+
apiVersion: v2
22
appVersion: "1.0"
33
description: A Helm chart for Dapr configuration
44
name: dapr_config
5-
version: 1.15.10
5+
version: 1.16.0
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
apiVersion: v1
1+
apiVersion: v2
22
appVersion: "1.0"
33
description: A Helm chart for Dapr Kubernetes Operator
44
name: dapr_operator
5-
version: 1.15.10
5+
version: 1.16.0
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
apiVersion: v1
1+
apiVersion: v2
22
appVersion: "1.0"
33
description: A Helm chart for Dapr Kubernetes placement
44
name: dapr_placement
5-
version: 1.15.10
5+
version: 1.16.0

helm-charts/dapr/charts/dapr_placement/templates/dapr_placement_statefulset.yaml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ spec:
4343
{{ toYaml . | indent 8 }}
4444
{{- end }}
4545
spec:
46+
securityContext:
47+
fsGroup: {{ .Values.fsGroup }}
4648
containers:
4749
- name: dapr-placement-server
4850
livenessProbe:
@@ -131,9 +133,9 @@ spec:
131133
{{- if eq .Values.cluster.forceInMemoryLog false }}
132134
- "--raft-logstore-path"
133135
{{- if eq .Values.global.daprControlPlaneOs "windows" }}
134-
- "{{ .Values.cluster.logStoreWinPath }}\\cluster-v2-$(PLACEMENT_ID)"
136+
- "{{ .Values.cluster.logStoreWinPath }}\\cluster-v2-nonroot-$(PLACEMENT_ID)"
135137
{{- else }}
136-
- "{{ .Values.cluster.logStorePath }}/cluster-v2-$(PLACEMENT_ID)"
138+
- "{{ .Values.cluster.logStorePath }}/cluster-v2-nonroot-$(PLACEMENT_ID)"
137139
{{- end }}
138140
{{- end }}
139141
{{- end }}
@@ -165,12 +167,8 @@ spec:
165167
- "--mode=kubernetes"
166168
{{- if eq .Values.global.daprControlPlaneOs "linux" }}
167169
securityContext:
168-
{{- if eq .Values.cluster.forceInMemoryLog true }}
169170
runAsNonRoot: {{ .Values.runAsNonRoot }}
170171
allowPrivilegeEscalation: false
171-
{{- else }}
172-
runAsUser: 0
173-
{{- end }}
174172
{{- if eq .Values.debug.enabled true }}
175173
capabilities:
176174
add: ["SYS_PTRACE"]

helm-charts/dapr/charts/dapr_placement/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ debug:
5757
initialDelaySeconds: 30000
5858

5959
runAsNonRoot: true
60+
fsGroup: 65532
61+
6062
resources: {}
6163

6264
extraEnvVars: {}

0 commit comments

Comments
 (0)