Jose Diaz-Gonzalez
882ca8781b
fix: implement scheduler-is-deployed for scheduler-k3s
2025-08-22 01:51:38 -04:00
Jose Diaz-Gonzalez
3edddac0c1
fix: create the data directory
2025-07-23 18:40:43 -04:00
Jose Diaz-Gonzalez
0a86ffe01b
fix: add missing scheduler-k3s directory
2025-07-23 18:40:43 -04:00
Jose Diaz-Gonzalez
563365b712
fix: add name to app-json trigger code and some formatting
2025-07-23 18:40:43 -04:00
Jose Diaz-Gonzalez
b6fdd4511c
fix: add validation to input for common trigger functions
2025-07-23 18:40:43 -04:00
Jose Diaz-Gonzalez
b24035c80a
refactor: use a common implementation to move files into place in golang core-post-deploy implementations
2025-07-23 18:40:43 -04:00
Jose Diaz-Gonzalez
58c6b137b0
refactor: use a common implementation to extract kustomize files
2025-07-23 18:40:43 -04:00
Jose Diaz-Gonzalez
fd6e56cc5f
fix: correct kustomize root path check
2025-07-23 18:40:43 -04:00
Jose Diaz-Gonzalez
d0ffd7d9f9
feat: stub out kustomize renderer
...
The process-specific kustomize root path is not currently set, but will be soon.
2025-07-23 18:40:43 -04:00
Jose Diaz-Gonzalez
04917b72d4
fix: ensure the directories are deleted
2025-07-23 18:40:43 -04:00
Jose Diaz-Gonzalez
e0617b209d
feat: extract kustomize directory from repo during deploys
2025-07-23 18:40:43 -04:00
Jose Diaz-Gonzalez
c472c2a3c7
refactor use chart values directly instead of attempting to template out cron-job and keda files
2025-07-04 04:24:09 -04:00
Jose Diaz-Gonzalez
6da9be2d65
refactor: use chart values directly instead of attempting to template out cron-job and keda files
2025-07-04 04:24:09 -04:00
Jose Diaz-Gonzalez
4ae9cca6f1
feat: implement app-json-is-valid plugin trigger
2025-06-19 02:20:02 -04:00
Jose Diaz-Gonzalez
2dea993804
fix: also stop k8s cron tasks when calling ps:stop
2025-06-10 21:45:08 -04:00
Jose Diaz-Gonzalez
0f4b5d4305
fix: continue including maintenance mode cron tasks in the cron:list subcommand
2025-06-08 22:34:47 -04:00
Jose Diaz-Gonzalez
65dd4bc1e0
feat: set shm-size volume/volumeMounts on kubernetes deployments
2025-03-06 22:59:35 -05:00
Tasos Maschalidis
63182e80e0
Use common.ToBool to check DOKKU_FORCE_TTY
2024-12-17 19:43:16 +02:00
Tasos Maschalidis
f786c8c0bc
Fix k3s run:detached not returning pod name in a similar fashion to docker-local (as described in docs)
2024-12-17 19:11:01 +02:00
Tasos Maschalidis
838beb4db3
Take DOKKU_FORCE_TTY setting into account for run commands with k3s-scheduler
2024-12-17 19:11:01 +02:00
Jose Diaz-Gonzalez
ed0ba7072f
refactor: check to see if a deployment-specific image pull secret exists before utilizing it.
2024-12-11 09:23:44 -05:00
Tasos Maschalidis
aa51c37774
Properly resolve imagePullSecrets from app and deploymentID if relevant property does not exist
2024-12-10 14:29:38 +02:00
Jose Diaz-Gonzalez
b98863b6a7
feat: add support for the keda-http-add-on
...
Externally, it is treated the same as any other scaling trigger, but requires that the chart be installed in order for it to be supported.
2024-11-13 03:29:26 -05:00
Jose Diaz-Gonzalez
fd2cfe8080
fix: correctly pull the deployment id from an app's helm values when executing dokku run under the k3s scheduler
...
- Fix the internal identifier of deployment_id -> deployment_id
- Add tests for both enter and run.
2024-11-04 14:44:25 -05:00
Jose Diaz-Gonzalez
50244bf8ea
chore: drop the pod name from stdout output
...
This adds unexpected output to the command, making parsing more difficult.
2024-11-04 14:42:53 -05:00
Jose Diaz-Gonzalez
ec41dd2e70
refactor: output logs for completed containers
...
Previously, a container that exited immediately would just show an error message, which is probably not what we want.
If the pod has exited, we will display the logs on stdout for the user and then exit appropriately.
This change also refactors how log streaming works so that we respect exiting when the stream has no content (such as when the container has exited). Previously, the container would just hang around forever due to not being properly canceled. Due to this refactor, the prefix is now split out into a separate writer.
2024-11-04 14:41:42 -05:00
Jose Diaz-Gonzalez
adffab13d9
fix: correctly wait for the pod to be ready
2024-11-04 14:38:06 -05:00
Jose Diaz-Gonzalez
c3a573229d
refactor: execute one-off commands with DOKKU_APP_SHELL as the initial command
...
This commit changes the launched pod to use the configured DOKKU_APP_SHELL - default /bin/bash - to launch processes. Without this, if a non-interactive process was executed and did not immediately exit, it was possible for that process to launch twice - once when the pod started, and once when entering the pod. Ideally we know whether the process is interactive or not, but this isn't always possible when running under a tty (non-tty == non-interactive). As such, this also removes the ability to launch one-off containers that do not have a configured shell in the container, but this is better than attempting to run commands twice.
2024-11-04 14:29:34 -05:00
Tasos Maschalidis
774fb546ef
Remove prefixing releaseName with 'dokku-' in UninstallChart and GetValues calls in scheduler-k3s/triggers.go
2024-10-30 11:47:15 +02:00
Jose Diaz-Gonzalez
90e8cac12f
feat: implement nginx:show-config for k3s plugin
...
This allows users to see what nginx configs are in use for their applications.
Closes #7291
2024-10-21 22:09:09 -04:00
Jose Diaz-Gonzalez
51b951643b
fix: respect the exit code and pass flags correctly when tailing nginx logs on k3s
2024-10-21 21:51:37 -04:00
Jose Diaz-Gonzalez
526ea43ae4
fix: tail the correct container in the ingress-nginx pod
2024-10-21 20:37:03 -04:00
Jose Diaz-Gonzalez
611006af73
feat: add support for non-local nginx implementations
...
If the scheduler is not docker-local, we will assume that a separate plugin trigger will pull access/error logs on our behalf. For k3s, the naive implementation is to pull logs from a single container (multiple ingress-nginx pods will be supported in a future release).
Closes #7268
2024-10-17 00:18:24 -04:00
Jose Diaz-Gonzalez
4397533fd7
fix: implement missing scheduler-app-status trigger in k3s scheduler plugin
2024-04-04 22:14:39 -04:00
Jose Diaz-Gonzalez
bb5ab0a777
refactor: use CallPlugnTrigger instead of PlugnTrigger
...
Refs #6422
2024-03-14 03:11:37 -04:00
Jose Diaz-Gonzalez
68a280e0b6
Merge pull request #6712 from dokku/6422-remove-plugin-trigger-output
...
Use CallPlugnTrigger instead of PlugnTriggerOutput
2024-03-14 01:53:38 -04:00
Jose Diaz-Gonzalez
cdff4ae867
refactor: use CallPlugnTrigger instead of PlugnTriggerOutput
...
Refs #6422
2024-03-14 01:18:28 -04:00
Jose Diaz-Gonzalez
f34fd277b3
refactor: use CallPlugnTrigger instead of PlugnTriggerOutputAsString
...
Refs #6422
2024-03-14 00:46:55 -04:00
Jose Diaz-Gonzalez
d2b167d6ad
Merge pull request #6681 from dokku/k3s-ingress-per-domain
...
Migrate to single ingress per app/domain combination
2024-03-12 22:22:45 -04:00
Jose Diaz-Gonzalez
c840fc5f9e
feat: wait until helm charts are installed before marking a deploy as failed or completed
...
This ensures applications are actually up vs giving a false sense of security to users about the state of their applications.
2024-03-12 08:39:22 -04:00
Jose Diaz-Gonzalez
77d9594c09
fix: use annotation to check for ingress method
2024-03-12 07:57:20 -04:00
Jose Diaz-Gonzalez
d4b484a33a
fix: replace existing port-map ingress objects with domain ingress objects
...
Domains cannot be reused across ingress objects, and port maps are a function of a domain, so the inversion here makes most sense (at the cost of some downtime when migrating.
2024-03-12 03:55:40 -04:00
Jose Diaz-Gonzalez
c0f01c58d6
feat: add initial support for interacting with ClusterTriggerAuthentication objects
...
These will be provisioned to the keda namespace and referenced by Triggers if they exist (as a fallback to app-specific values).
2024-03-06 03:39:11 -05:00
Jose Diaz-Gonzalez
f23cdffe49
feat: associate matching authentication info to a given autoscaler
2024-03-06 03:39:11 -05:00
Jose Diaz-Gonzalez
042495bcd6
fix: ensure keda auth secrets are written out
2024-03-06 03:39:11 -05:00
Jose Diaz-Gonzalez
4ddd341184
feat: add initial support for keda authentication
2024-03-06 03:39:11 -05:00
Jose Diaz-Gonzalez
b7ff696507
feat: add initial support for injecting keda addons
2024-03-06 03:39:11 -05:00
Jose Diaz-Gonzalez
5e53207009
fix: ensure we pass global labels
2024-03-01 17:42:24 -05:00
Jose Diaz-Gonzalez
d8946edf91
feat: add support for manipulating labels
...
Closes #6625
2024-03-01 17:42:24 -05:00
Jose Diaz-Gonzalez
7a5bd7ee0f
refactor: use a helper function for printing out both labels and annotations
2024-03-01 17:42:24 -05:00