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
0134cd98d0
fix: correct issue where ClusterTriggerAuthentication objects were filtered based on prefix
...
The prefix no longer matters since they are global to the cluster.
2024-03-08 05:23:58 -05:00
Jose Diaz-Gonzalez
f2892208c1
fix: handle case where keda isn't installed properly
...
If keda is not installed, warn the user that it isn't installed and ignore the rest.
Ignoring the error here is fine as it gives the user context but doesn't block a deploy.
2024-03-06 17:55:45 -05:00
Jose Diaz-Gonzalez
7c58bbf792
feat: setup cluster trigger authentication objects
2024-03-06 03:39:11 -05:00
Jose Diaz-Gonzalez
25ad302ed2
refactor: use enum to represent authentication type
2024-03-06 03:39:11 -05: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
14f0e2fb72
refactor: use const for prefix
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
46f11cb239
feat: implement replacements
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
45fbb7546f
fix: pull labels, not annotations
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
f20d08e49e
fix: use correct snippet
2024-02-27 13:49:44 -05:00
Jose Diaz-Gonzalez
b99c25f090
feat: add support for setting underscores-in-headers for nginx, openresty, and k3s
...
Closes #6627
2024-02-27 13:49:44 -05:00
Jose Diaz-Gonzalez
23fe19faaa
fix: bypass deletion error if k3s is the configured scheduler and it isn't installed
2024-02-22 07:42:15 -05:00
Jose Diaz-Gonzalez
72067fcfd2
feat: add ability for users to specify alternative kubeconfig and kubecontext
...
This will provide the possibility for users to talk to existing kubernetes clusters, thereby removing one of the biggest reasons for having the old scheduler-kubernetes plugin around.
2024-02-22 07:42:15 -05:00
Jose Diaz-Gonzalez
93323bd0ff
feat: add ability to clear out default values
...
Also add some tests
2024-02-22 06:55:02 -05:00
Jose Diaz-Gonzalez
193b1d8103
fix: set lower cpu/memory requests
2024-02-21 18:31:46 -05:00
Jose Diaz-Gonzalez
14eb60160c
fix: avoid setting empty cpu/memory requests
2024-02-21 18:30:48 -05:00
Jose Diaz-Gonzalez
05c48430c5
fix: correct issue where resource values were ignored
2024-02-21 18:13:47 -05:00
Jose Diaz-Gonzalez
3c6cc68086
refactor: capture output by default
...
This is almost certainly the correct default for Dokku. While it's a BC break and might cause an increase in memory usage, the api is mostly internal and therefore this is safe to use.
2024-02-12 20:28:31 -05:00
Jose Diaz-Gonzalez
047a3c00f5
chore: remove default false values when calling CallExecCommand
2024-02-12 20:07:43 -05:00
Jose Diaz-Gonzalez
1ae2df52f5
fix: use image pull secrets instead of registries.yaml to reference private repositories
...
While this will now more or less require a local docker login - which can be overridden by setting the image-pull-secrets property - this ensures every deploy has a valid context.
One annoying thing is that the secret is per-app vs global, meaning that if the secret must be rotated, all apps need to be redeployed. A future change can fix that by deploying a global secret, or if folks really desire, this can be done by setting the image-pull-secrets property on the app/globally.
2024-02-12 17:15:37 -05:00
Jose Diaz-Gonzalez
abbc13cb85
fix: ensure the ingress class is properly set for certificate usage
...
Without this, switching to nginx ingress fails as the cluster issuer isn't properly configured
2024-02-12 01:31:39 -05:00
Jose Diaz-Gonzalez
cd4f9db95b
fix: use annotation instead of location snippet
2024-02-07 13:15:16 -05:00
Jose Diaz-Gonzalez
980979ef87
feat: properly handle nginx annotation merging
2024-02-06 22:48:22 -05:00
Jose Diaz-Gonzalez
416a119904
feat: pull nginx properties as ingress annotations
2024-02-06 22:12:54 -05:00
Jose Diaz-Gonzalez
5674a29211
feat: add ability to use ingress-nginx for routing instead of traefik
2024-02-06 21:19:51 -05:00
Jose Diaz-Gonzalez
81286a0673
feat: add ability to install nginx instead of traefik
2024-02-06 21:19:14 -05:00
Jose Diaz-Gonzalez
f5f583b12b
feat: add support for specifying annotations
...
As the command contains a colon, it must be handled in the commands binary as opposed to subcommands.
Also include a simple bats test.
2024-02-06 13:54:53 -05:00
Jose Diaz-Gonzalez
5e1089973e
refactor: use type-specific functions for writing contents to a file
2024-02-06 01:39:44 -05:00
Jose Diaz-Gonzalez
06429a384e
feat: install kubectx and kubens
2024-01-30 08:01:42 -05:00
Jose Diaz-Gonzalez
029e1f5f48
feat: add the dokku logo as the chart icon
2024-01-26 06:55:46 -05:00
Jose Diaz-Gonzalez
1d99e0bc6e
fix: guard against missing healthcheck config
...
Also add support for liveness and readiness probes.
2024-01-24 02:39:39 -05:00
Jose Diaz-Gonzalez
578afc0ef7
fix: use correct name for cluster-issuers
2024-01-24 02:19:21 -05:00
Jose Diaz-Gonzalez
4a7db5ce24
feat: apply the cluster issuers on every app deploy
...
This ensures we can always get certificates regardless of what app gets deployed with whatever configuration.
2024-01-23 07:25:03 -05:00
Jose Diaz-Gonzalez
a9e6e96697
feat: implement scheduler-k3s:report
2024-01-23 05:01:23 -05:00
Jose Diaz-Gonzalez
204517074b
fix: allow setting a custom ip address as the ip pf the dokku server
...
This will provide the ability to override cases where the detected ip address is invalid for whatever reason.
2024-01-23 03:26:32 -05:00
Jose Diaz-Gonzalez
2336063ca2
refactor: move templating into pseudo-generated helm chart
...
The previous mechanism of constructing the helm chart was pretty obnoxious due to needing to have some things in the object and some in template files that were appended afterwards. This change simplifies that by using template files per type with minimal replacements.
2024-01-23 03:00:27 -05:00
Jose Diaz-Gonzalez
001ae3c83b
fix: set default value for rollback-on-failure
2024-01-23 03:00:27 -05:00
Jose Diaz-Gonzalez
62c8cb770e
feat: add support for global properties
2024-01-23 03:00:27 -05:00
Jose Diaz-Gonzalez
01ec08fd79
refactor: simplify port string
2024-01-23 03:00:27 -05:00
Jose Diaz-Gonzalez
2619c3db08
fix: ensure critical addons come up when the node is tainted
...
Rather than taint on `node-role.kubernetes.io/master=true:NoSchedule`, we check for `CriticalAddonsOnly=true:NoSchedule` and taint on that.
2024-01-23 03:00:27 -05:00
Jose Diaz-Gonzalez
0730647af7
feat: implement :cluster-list and :cluster-remove
...
These - and the existing :cluster-add command - do not require root.
2024-01-23 03:00:27 -05:00
Jose Diaz-Gonzalez
69e9511666
feat: implement cluster joining for server and worker nodes
...
Different options get applied to each depending on what is needed for the role.
This also updates how we initialize the cluster to better support how metrics exposure and cross-server networking.
2024-01-23 03:00:27 -05:00
Jose Diaz-Gonzalez
9cd0644883
refactor: fix issues with pod entering
...
- ensure we always wait for the specific pod we want to be ready
- enter the default container if none is specified
2024-01-23 03:00:27 -05:00
Jose Diaz-Gonzalez
7bce908c2d
fix: properly set the command for herokuish apps
2024-01-23 03:00:27 -05:00
Jose Diaz-Gonzalez
297853781f
refactor: move all k8s code behind client
...
Also fix an issue where attaching to pods fails in rare cases
2024-01-23 03:00:27 -05:00