* use non-deprecated flags in List operation (#1478)
Signed-off-by: yaron2 <schneider.yaron@live.com>
* Scheduler: set broadcast address to localhost:50006 in selfhosted (#1480)
* Scheduler: set broadcast address to localhost:50006 in selfhosted
Signed-off-by: joshvanl <me@joshvanl.dev>
* Set schedulder override flag for edge and dev
Signed-off-by: joshvanl <me@joshvanl.dev>
---------
Signed-off-by: joshvanl <me@joshvanl.dev>
* Fix scheduler broadcast address for windows (#1481)
Signed-off-by: Anton Troshin <anton@diagrid.io>
* Remove deprecated flags (#1482)
* remove deprecated flags
Signed-off-by: yaron2 <schneider.yaron@live.com>
* update Dapr version in tests
Signed-off-by: yaron2 <schneider.yaron@live.com>
---------
Signed-off-by: yaron2 <schneider.yaron@live.com>
* Fix daprsystem configuration retrieval when renewing certificates (#1486)
The issue found when similar resource were installed in k8s that use the name "configurations".
In this case the knative's "configurations.serving.knative.dev/v1" was the last in the list and the command returned the error
`Error from server (NotFound): configurations.serving.knative.dev "daprsystem" not found`
Signed-off-by: Anton Troshin <anton@diagrid.io>
* fix: arguments accept units (#1490)
* fix: arguments accept units
`max-body-size` and `read-buffer-size` now accept units as defined in the docs.
Fixes#1489
Signed-off-by: Mike Nguyen <hey@mike.ee>
* chore: gofumpt
Signed-off-by: Mike Nguyen <hey@mike.ee>
* refactor: modify logic to comply with vetting
Signed-off-by: Mike Nguyen <hey@mike.ee>
* chore: gofumpt -w .
Signed-off-by: Mike Nguyen <hey@mike.ee>
* refactor: set defaults
`max-body-size` is defaulted to 4Mi
`request-buffer-size` is defaulted to 4Ki
This is inline with the runtime.
Signed-off-by: Mike Nguyen <hey@mike.ee>
* fix: set defaults in run and annotate
Signed-off-by: Mike Nguyen <hey@mike.ee>
* chore: gofumpt
Signed-off-by: Mike Nguyen <hey@mike.ee>
* refactor: exit with error rather than panic
Co-authored-by: Anton Troshin <troll.sic@gmail.com>
Signed-off-by: Mike Nguyen <hey@mike.ee>
---------
Signed-off-by: Mike Nguyen <hey@mike.ee>
Co-authored-by: Anton Troshin <troll.sic@gmail.com>
* Fix scheduler pod count for 1.15 version when testing master and latest (#1492)
Signed-off-by: Anton Troshin <anton@diagrid.io>
* Fix podman CI (#1493)
* Fix podman CI
Update to podman 5.4.0
Signed-off-by: Anton Troshin <anton@diagrid.io>
* fix --cpus flag
Signed-off-by: Anton Troshin <anton@diagrid.io>
---------
Signed-off-by: Anton Troshin <anton@diagrid.io>
* Fix dapr upgrade command incorrectly detecting HA mode for new version 1.15 (#1494)
* Fix dapr upgrade command detecting HA mode for new version 1.15
The issue is that the scheduler by default uses 3 replicas, which incorrectly identified non-HA install as HA.
Signed-off-by: Anton Troshin <anton@diagrid.io>
* Fix e2e
Signed-off-by: Anton Troshin <anton@diagrid.io>
---------
Signed-off-by: Anton Troshin <anton@diagrid.io>
* Fix scheduler address for dapr run with file on Windows (#1497)
Signed-off-by: Anton Troshin <anton@diagrid.io>
* release: test upgrade/downgrade for 1.13/1.14/1.15 + mariner (#1491)
* release: test upgrade/downgrade for 1.13/1.14/1.15 + mariner
Signed-off-by: Mike Nguyen <hey@mike.ee>
* fix: version skews
Co-authored-by: Anton Troshin <troll.sic@gmail.com>
Signed-off-by: Mike Nguyen <hey@mike.ee>
* Update tests/e2e/upgrade/upgrade_test.go
Accepted
Co-authored-by: Anton Troshin <troll.sic@gmail.com>
Signed-off-by: Yaron Schneider <schneider.yaron@live.com>
* Update tests/e2e/upgrade/upgrade_test.go
Co-authored-by: Anton Troshin <troll.sic@gmail.com>
Signed-off-by: Yaron Schneider <schneider.yaron@live.com>
* Fix downgrade issue from 1.15 by deleting previous version scheduler pods
Update 1.15 RC to latest RC.18
Signed-off-by: Anton Troshin <anton@diagrid.io>
* Fix downgrade 1.15 to 1.13 scenario with 0 scheduler pods
Signed-off-by: Anton Troshin <anton@diagrid.io>
* increase update test timeout to 60m and update latest version to 1.15
Signed-off-by: Anton Troshin <anton@diagrid.io>
* fix httpendpoint tests cleanup and checks
Signed-off-by: Anton Troshin <anton@diagrid.io>
* make sure matrix runs appropriate tests, every matrix ran the same tests
Signed-off-by: Anton Troshin <anton@diagrid.io>
* skip TestKubernetesRunFile on HA
Signed-off-by: Anton Troshin <anton@diagrid.io>
* fix skip TestKubernetesRunFile on HA
Signed-off-by: Anton Troshin <anton@diagrid.io>
* update to latest dapr 1.15.2
Signed-off-by: Anton Troshin <anton@diagrid.io>
* add logs when waiting for pod deletion
Signed-off-by: Anton Troshin <anton@diagrid.io>
---------
Signed-off-by: Mike Nguyen <hey@mike.ee>
Signed-off-by: Yaron Schneider <schneider.yaron@live.com>
Signed-off-by: Anton Troshin <anton@diagrid.io>
Co-authored-by: Anton Troshin <anton@diagrid.io>
Co-authored-by: Yaron Schneider <schneider.yaron@live.com>
Co-authored-by: Anton Troshin <troll.sic@gmail.com>
* Fix dapr init test latest version retrieval (#1500)
Lint
Signed-off-by: Anton Troshin <anton@diagrid.io>
* Fix downgrade stuck (#1501)
* Fix goroutine channel leaks and ensure proper cleanup in tests
Signed-off-by: Anton Troshin <anton@diagrid.io>
* Add artificial delay before deleting scheduler pods during downgrade
Signed-off-by: Anton Troshin <anton@diagrid.io>
* Add timeout to helm upgrade tests, they are being stuck sometime for 5+ minutes
Signed-off-by: Anton Troshin <anton@diagrid.io>
* bump helm.sh/helm/v3 to v3.17.1
Signed-off-by: Anton Troshin <anton@diagrid.io>
---------
Signed-off-by: Anton Troshin <anton@diagrid.io>
---------
Signed-off-by: yaron2 <schneider.yaron@live.com>
Signed-off-by: joshvanl <me@joshvanl.dev>
Signed-off-by: Anton Troshin <anton@diagrid.io>
Signed-off-by: Mike Nguyen <hey@mike.ee>
Signed-off-by: Yaron Schneider <schneider.yaron@live.com>
Co-authored-by: Yaron Schneider <schneider.yaron@live.com>
Co-authored-by: Josh van Leeuwen <me@joshvanl.dev>
Co-authored-by: Mike Nguyen <hey@mike.ee>
* Fix goroutine channel leaks and ensure proper cleanup in tests
Signed-off-by: Anton Troshin <anton@diagrid.io>
* Add artificial delay before deleting scheduler pods during downgrade
Signed-off-by: Anton Troshin <anton@diagrid.io>
* Add timeout to helm upgrade tests, they are being stuck sometime for 5+ minutes
Signed-off-by: Anton Troshin <anton@diagrid.io>
* bump helm.sh/helm/v3 to v3.17.1
Signed-off-by: Anton Troshin <anton@diagrid.io>
---------
Signed-off-by: Anton Troshin <anton@diagrid.io>
* release: test upgrade/downgrade for 1.13/1.14/1.15 + mariner
Signed-off-by: Mike Nguyen <hey@mike.ee>
* fix: version skews
Co-authored-by: Anton Troshin <troll.sic@gmail.com>
Signed-off-by: Mike Nguyen <hey@mike.ee>
* Update tests/e2e/upgrade/upgrade_test.go
Accepted
Co-authored-by: Anton Troshin <troll.sic@gmail.com>
Signed-off-by: Yaron Schneider <schneider.yaron@live.com>
* Update tests/e2e/upgrade/upgrade_test.go
Co-authored-by: Anton Troshin <troll.sic@gmail.com>
Signed-off-by: Yaron Schneider <schneider.yaron@live.com>
* Fix downgrade issue from 1.15 by deleting previous version scheduler pods
Update 1.15 RC to latest RC.18
Signed-off-by: Anton Troshin <anton@diagrid.io>
* Fix downgrade 1.15 to 1.13 scenario with 0 scheduler pods
Signed-off-by: Anton Troshin <anton@diagrid.io>
* increase update test timeout to 60m and update latest version to 1.15
Signed-off-by: Anton Troshin <anton@diagrid.io>
* fix httpendpoint tests cleanup and checks
Signed-off-by: Anton Troshin <anton@diagrid.io>
* make sure matrix runs appropriate tests, every matrix ran the same tests
Signed-off-by: Anton Troshin <anton@diagrid.io>
* skip TestKubernetesRunFile on HA
Signed-off-by: Anton Troshin <anton@diagrid.io>
* fix skip TestKubernetesRunFile on HA
Signed-off-by: Anton Troshin <anton@diagrid.io>
* update to latest dapr 1.15.2
Signed-off-by: Anton Troshin <anton@diagrid.io>
* add logs when waiting for pod deletion
Signed-off-by: Anton Troshin <anton@diagrid.io>
---------
Signed-off-by: Mike Nguyen <hey@mike.ee>
Signed-off-by: Yaron Schneider <schneider.yaron@live.com>
Signed-off-by: Anton Troshin <anton@diagrid.io>
Co-authored-by: Anton Troshin <anton@diagrid.io>
Co-authored-by: Yaron Schneider <schneider.yaron@live.com>
Co-authored-by: Anton Troshin <troll.sic@gmail.com>
* Fix dapr upgrade command detecting HA mode for new version 1.15
The issue is that the scheduler by default uses 3 replicas, which incorrectly identified non-HA install as HA.
Signed-off-by: Anton Troshin <anton@diagrid.io>
* Fix e2e
Signed-off-by: Anton Troshin <anton@diagrid.io>
---------
Signed-off-by: Anton Troshin <anton@diagrid.io>
* Fix podman CI
Update to podman 5.4.0
Signed-off-by: Anton Troshin <anton@diagrid.io>
* fix --cpus flag
Signed-off-by: Anton Troshin <anton@diagrid.io>
---------
Signed-off-by: Anton Troshin <anton@diagrid.io>
* fix: arguments accept units
`max-body-size` and `read-buffer-size` now accept units as defined in the docs.
Fixes#1489
Signed-off-by: Mike Nguyen <hey@mike.ee>
* chore: gofumpt
Signed-off-by: Mike Nguyen <hey@mike.ee>
* refactor: modify logic to comply with vetting
Signed-off-by: Mike Nguyen <hey@mike.ee>
* chore: gofumpt -w .
Signed-off-by: Mike Nguyen <hey@mike.ee>
* refactor: set defaults
`max-body-size` is defaulted to 4Mi
`request-buffer-size` is defaulted to 4Ki
This is inline with the runtime.
Signed-off-by: Mike Nguyen <hey@mike.ee>
* fix: set defaults in run and annotate
Signed-off-by: Mike Nguyen <hey@mike.ee>
* chore: gofumpt
Signed-off-by: Mike Nguyen <hey@mike.ee>
* refactor: exit with error rather than panic
Co-authored-by: Anton Troshin <troll.sic@gmail.com>
Signed-off-by: Mike Nguyen <hey@mike.ee>
---------
Signed-off-by: Mike Nguyen <hey@mike.ee>
Co-authored-by: Anton Troshin <troll.sic@gmail.com>
The issue found when similar resource were installed in k8s that use the name "configurations".
In this case the knative's "configurations.serving.knative.dev/v1" was the last in the list and the command returned the error
`Error from server (NotFound): configurations.serving.knative.dev "daprsystem" not found`
Signed-off-by: Anton Troshin <anton@diagrid.io>
* Scheduler: set broadcast address to localhost:50006 in selfhosted
Signed-off-by: joshvanl <me@joshvanl.dev>
* Set schedulder override flag for edge and dev
Signed-off-by: joshvanl <me@joshvanl.dev>
---------
Signed-off-by: joshvanl <me@joshvanl.dev>
* fix: population of the schedulerhostaddress in self-hosted mode
The scheduler host address is pre-populated when using the self-hosted mode multi-app run similarly to the single app run.
Kubernetes multi-app run is not affected and you will still need to specify a scheduler host address.
Signed-off-by: mikeee <hey@mike.ee>
* chore: lint
Signed-off-by: mikeee <hey@mike.ee>
---------
Signed-off-by: mikeee <hey@mike.ee>
Co-authored-by: Yaron Schneider <schneider.yaron@live.com>
* Update dependencies, Go version and address CVEs
Signed-off-by: Anton Troshin <anton@diagrid.io>
* update golangci-lint version and list of disabled linters form dapr/dapr
Signed-off-by: Anton Troshin <anton@diagrid.io>
* adjust golangci-lint settings and fix lint issues
Signed-off-by: Anton Troshin <anton@diagrid.io>
* fix test
Signed-off-by: Anton Troshin <anton@diagrid.io>
---------
Signed-off-by: Anton Troshin <anton@diagrid.io>
* add image pull policy
Signed-off-by: Filinto Duran <filinto@diagrid.io>
* add allowed values
Signed-off-by: Filinto Duran <filinto@diagrid.io>
* feedback refactor allowed values name
Signed-off-by: Filinto Duran <filinto@diagrid.io>
* add unit tests
Signed-off-by: Filinto Duran <filinto@diagrid.io>
* lint
Signed-off-by: Filinto Duran <filinto@diagrid.io>
* lint
Signed-off-by: Filinto Duran <filinto@diagrid.io>
* more lint
Signed-off-by: Filinto Duran <filinto@diagrid.io>
* more lint
Signed-off-by: Filinto Duran <filinto@diagrid.io>
---------
Signed-off-by: Filinto Duran <filinto@diagrid.io>
Co-authored-by: Anton Troshin <anton@diagrid.io>
Co-authored-by: Mike Nguyen <hey@mike.ee>
* Add version parsing check skip malformed versions and avoid panic
Signed-off-by: Anton Troshin <anton@diagrid.io>
* lint
Signed-off-by: Anton Troshin <anton@diagrid.io>
* do not return error on nil, skip bad versions
Signed-off-by: Anton Troshin <anton@diagrid.io>
* simplify condition to skip prerelease and versions with metadata
print warning on error and non-semver version tag
Signed-off-by: Anton Troshin <anton@diagrid.io>
---------
Signed-off-by: Anton Troshin <anton@diagrid.io>
* Fix tests running master in CI with specific dapr version
Signed-off-by: Anton Troshin <anton@diagrid.io>
* move env version load into common
Signed-off-by: Anton Troshin <anton@diagrid.io>
* fix k8s test files
Signed-off-by: Anton Troshin <anton@diagrid.io>
* Revert "fix k8s test files"
This reverts commit 344867d19ca4b38e5a83a82a2a00bb04c1775bab.
Signed-off-by: Anton Troshin <anton@diagrid.io>
* Revert "move env version load into common"
This reverts commit 39e8c8caf54a157464bb44dffe448fc75727487f.
Signed-off-by: Anton Troshin <anton@diagrid.io>
* Revert "Fix tests running master in CI with specific dapr version"
This reverts commit a02c81f7e25a6bbdb8e3b172a8e215dae60d321f.
Signed-off-by: Anton Troshin <anton@diagrid.io>
* Add GetRuntimeVersion to be able to compare semver dapr versions for conditional tests
Use GetRuntimeVersion in test
Signed-off-by: Anton Troshin <anton@diagrid.io>
---------
Signed-off-by: Anton Troshin <anton@diagrid.io>
* Give scheduler a default volume, making it resilient to restarts by
default
Signed-off-by: joshvanl <me@joshvanl.dev>
* Remove dapr_scheduler volume on uninstall, gated by `--all`
Signed-off-by: joshvanl <me@joshvanl.dev>
* Fix containerErrs in standaone.go
Signed-off-by: joshvanl <me@joshvanl.dev>
* Do not attempt to delete scheduler volume if no container runtime
Signed-off-by: joshvanl <me@joshvanl.dev>
* Increase upgrade test timeout to 40m
Signed-off-by: joshvanl <me@joshvanl.dev>
---------
Signed-off-by: joshvanl <me@joshvanl.dev>
Co-authored-by: Artur Souza <artursouza.ms@outlook.com>