Cian Johnston
6781b0fc87
fix(helm/provisioner): prefer provisioner key if both psk and key are set ( #15417 )
...
Relates to https://github.com/coder/coder/pull/15416
This PR modifies the provisioner helm chart logic:
- Previously, when both provisionerDaemon.keySecretName and provisionerDaemon.pskSecretName
were both set, we would fail to install the chart. This required users to have an obnoxious workaround
in place where setting provisionerDaemon.pskSecretName="" was required in order to use provisioner
keys. We now check for pskSecretName being set to the default value when keySecretName is also specified,
and switch to provisioner key authentication instead of PSK. The previous workaround is still supported.
- We also had omitted to check for provisionerd.Tags being set along with provisionerDaemon.keySecretName.
This would result in a crashlooping provisioner deployment, as setting both of these configuration options is
not allowed. We now fast-fail the Helm deployment if we detect this scenario.
2024-11-07 12:33:58 +00:00
Eric Paulsen
b62f3e6af5
feat(helm): add topologySpreadConstraints value ( #15168 )
2024-10-25 09:14:39 +01:00
Cian Johnston
fed70bdeb8
fix(helm/coder): set serviceAccount.disableCreate=false by default, add tests ( #15197 )
...
* Sets `serviceaccount.disableCreate=false` by default (accidentally
changed by #14817 )
* Reverts changes made in https://github.com/coder/coder/pull/15196
2024-10-23 21:11:02 +01:00
Ethan
57386ed677
fix: make helm golden files to fix ci ( #15196 )
...
The go tests that would have checked for the outdated golden files
didn't get run as part of https://github.com/coder/coder/pull/14817
because only `helm/**` files were modified.
2024-10-23 08:38:52 -07:00
MaxTNielsen
cd92220ab8
feat(helm): add setting to disable service account creation ( #14817 )
...
Add a setting to disable service account creation
2024-10-23 13:25:57 +01:00
Cian Johnston
c42f487668
fix(helm/provisioner): fail if psk and key are both set ( #15157 )
...
Relates to https://github.com/coder/coder/issues/14985
Context:
https://github.com/coder/coder/pull/15122#discussion_r1808458819
Specifying both `provisionerDaemon.pskSecretName` and
`provisionerDaemon.keySecretName` will now result in an error.
This prevents a potential `CrashLoopBackoff` debug session due to the
following error:
```
error: cannot provide both provisioner key --key and pre-shared key --psk
```
2024-10-22 08:38:47 +01:00
Cian Johnston
413928b57a
feat(helm/provisioner): add support for provisioner keys, add note re psk ( #15122 )
...
- Adds `provisionerDaemon.keySecretName` and
`provisionerDaemon.keySecretKey`
- Omitting `provisionerDaemon.pskSecretName` will now cause the PSK
secret to no longer be created.
- Adds a note in `NOTES.txt` regarding provisioner PSKs.
- Adds validation that either `provisionerDaemon.keySecretName` or
`provisionerDaemon.pskSecretName` is specified, and will fail the
install in this case.
2024-10-18 11:33:33 +01:00
Yahya
d1db11ab21
fix(helm): use list instead of dict for tolerations ( #14604 )
...
Fixes #14603
2024-09-10 01:02:57 +01:00
Muhammad Atif Ali
cba6e93176
chore: update docs links ( #14221 )
2024-08-17 11:51:13 +00:00
Muhammad Atif Ali
0787de88a9
chore: update documentation links to the new format ( #13797 )
2024-07-10 21:31:37 +03:00
Steven Masley
00283d1f8b
chore: helm golden file test log output on failure ( #12661 )
...
Debugging this is hard without the actual helm error
2024-03-19 16:01:54 +00:00
Cian Johnston
c62a8b0bee
fix(helm)!: remove prometheus-http port declaration from coderd service spec ( #12214 )
...
This PR removes the prometheus-http port entirely from the coder service specification (originally added in #10448 ). It also removes the Helm value coder.service.prometheusNodePort.
Rationale: some cloud providers will helpfully expose all ports on a LoadBalancer service for you. The net effect of this is that setting CODER_PROMETHEUS_ENABLE will end up exposing port 2112 on your coderd service to the internet, which is likely undesired behaviour.
2024-02-20 11:36:17 +00:00
Kayla Washburn-Love
80eac73ed1
chore: remove useLocalStorage hook ( #11712 )
2024-01-19 16:04:19 -07:00
Spike Curtis
387723a596
fix: close pg PubSub listener to avoid race ( #11640 )
...
Fixes flake as seen here: https://github.com/coder/coder/runs/20528529187
2024-01-18 09:18:59 +04:00
Cian Johnston
04fd96a014
feat(coderd): add provisioner_daemons to /debug/health endpoint ( #11393 )
...
Adds a healthcheck for provisioner daemons to /debug/health endpoint.
2024-01-08 09:29:04 +00:00
Kayla Washburn
3ab4800a18
chore: clean up lint ( #11270 )
2023-12-18 14:59:39 -07:00
Dean Sheather and Spike Curtis
e46431078c
feat: add AgentAPI using DRPC ( #10811 )
...
Co-authored-by: Spike Curtis <spike@coder.com >
2023-12-18 22:53:28 +10:00
Spike Curtis
211e59bf65
feat: add tailnet v2 API support to coordinate endpoint ( #11228 )
...
closes #10532
Adds v2 support to the /coordinate endpoint via a query parameter.
v1 already has test cases, and we haven't implemented v2 at the client yet, so the only new test case is an unsupported version.
2023-12-15 14:10:24 +04:00
Spike Curtis
dca8125263
fix: update tailscale to include fix to prevent race ( #11032 )
...
fixes #10876
2023-12-05 14:30:19 +04:00
Spike Curtis
dbadae5a9c
Revert "chore(helm): gitignore and rm helm chart tarballs from vcs ( #10951 )" ( #11009 )
...
This reverts commit 7f62085a02 .
2023-12-04 06:59:06 +00:00
Cian Johnston
9ad96288b2
fix(helm/provisioner): run helm dependency update ( #10982 )
2023-12-01 10:30:00 +00:00
Cian Johnston
7f62085a02
chore(helm): gitignore and rm helm chart tarballs from vcs ( #10951 )
2023-12-01 09:52:54 +00:00
7029ccfbdf
feat: add support for custom permissions in Helm chart rbac.yaml file ( #10590 )
...
Co-authored-by: Dean Sheather <dean@deansheather.com >
Co-authored-by: Atif Ali <atif@coder.com >
2023-11-27 14:12:46 +10:00
JounQin and Muhammad Atif Ali
148eb90bda
docs: migrate all deprecated CODER_ADDRESS to CODER_HTTP_ADDRESS ( #10780 )
...
Co-authored-by: Muhammad Atif Ali <me@matifali.dev >
2023-11-19 17:54:02 +00:00
Patrick McKee and Dean Sheather
ddaf913088
feat: expose prometheus port in helm chart ( #10448 )
...
Co-authored-by: Dean Sheather <dean@deansheather.com >
2023-11-06 14:47:28 +00:00
Cian Johnston
1be24dcb5c
feat(helm/provisioner): add extraTemplates ( #10256 )
...
Adds support for extraTemplates to the coder-provisioner chart to bring it in line with the coder chart.
2023-10-16 12:17:05 +01:00
Kyle Carberry
c1cd93da30
chore: update helm golden files ( #9959 )
2023-09-30 18:36:34 +00:00
Ammar Bandukwala
3d21872230
chore: set sessionAffinity to None in helm chart ( #9918 )
2023-09-30 12:33:20 -05:00
Eric Paulsen and Dean Sheather
e9c183d0dc
feat: add envFrom value to Helm chart ( #9587 )
...
* feat: add envFrom value to Helm chart
* add envUseClusterAccessURL
* add tests
---------
Co-authored-by: Dean Sheather <dean@deansheather.com >
2023-09-19 16:03:13 +04:00
Muhammad Atif Ali
d37f6d80f7
chore(docs): update docs for correct use of shell and console and enforce linewidth ( #9245 )
2023-08-23 12:27:57 +03:00
Kyle Carberry
22e781eced
chore: add /v2 to import module path ( #9072 )
...
* chore: add /v2 to import module path
go mod requires semantic versioning with versions greater than 1.x
This was a mechanical update by running:
```
go install github.com/marwan-at-work/mod/cmd/mod@latest
mod upgrade
```
Migrate generated files to import /v2
* Fix gen
2023-08-18 18:55:43 +00:00
ff9252c706
feat: add provisioner chart to release and docs ( #9050 )
...
* Add provisioner chart to release and docs
Signed-off-by: Spike Curtis <spike@coder.com >
* Update docs/admin/provisioners.md
Co-authored-by: Muhammad Atif Ali <atif@coder.com >
* Prettier
Signed-off-by: Spike Curtis <spike@coder.com >
* spell out PSK first time per section
Co-authored-by: Cian Johnston <cian@coder.com >
---------
Signed-off-by: Spike Curtis <spike@coder.com >
Co-authored-by: Muhammad Atif Ali <atif@coder.com >
Co-authored-by: Cian Johnston <cian@coder.com >
2023-08-16 16:26:38 +04:00
Spike Curtis
41433cd1ec
feat: add terminationGracePeriodSeconds to provisioner chart ( #9048 )
...
* feat: add terminationGracePeriodSeconds to provisioner chart
Signed-off-by: Spike Curtis <spike@coder.com >
* Remove hardcoded 1 minute graceful timeout
Signed-off-by: Spike Curtis <spike@coder.com >
---------
Signed-off-by: Spike Curtis <spike@coder.com >
2023-08-15 08:38:58 +00:00
ffais and Eric
6fd5344d0a
feat: add support for NodePort service type in Helm chart ( #8993 )
...
* add support for NodePort service type in Helm chart
* fix nodeport values
* formatting & make update-golden-files
* update-golden-files
---------
Co-authored-by: Eric <ericpaulsen@coder.com >
2023-08-10 20:57:59 -04:00
Spike Curtis
21af020386
feat: add external provisioner daemon helm chart ( #8939 )
...
* Refactor helm to extract common templates to libcoder
Signed-off-by: Spike Curtis <spike@coder.com >
* Remove comment from libcoder Chart.yaml
Signed-off-by: Spike Curtis <spike@coder.com >
* Add provisioner helm chart
* Fix prettier, linting, docs
Signed-off-by: Spike Curtis <spike@coder.com >
* Log at INFO when provisionerd connects to coderd
Signed-off-by: Spike Curtis <spike@coder.com >
* remove unnecessary exports in helm tests
Signed-off-by: Spike Curtis <spike@coder.com >
---------
Signed-off-by: Spike Curtis <spike@coder.com >
2023-08-10 13:59:43 +04:00
Eric Paulsen
2e45a0ffd7
fix(helm): set correct prom port in helm notes ( #8888 )
2023-08-04 07:52:59 +03:00
Cian Johnston
5c9167df36
chore(helm): update sample resource requests/limits ( #8773 )
...
The sample resource requests/limits are undersized.
2023-07-27 13:28:06 -04:00
Ammar Bandukwala
b8e792bf8a
chore: make update-golden-files ( #8711 )
...
One of the recent helm changes snuck in CI breakage.
2023-07-25 01:18:53 +00:00
Eric Paulsen
29963433ee
feat(helm)!: set enableDeployments default to true ( #8704 )
2023-07-24 17:13:28 -05:00
Eric Paulsen
164b816679
feat(helm): add commandArgs for custom entrypoint ( #8567 )
2023-07-19 00:50:52 +00:00
Eric Paulsen
df95cf7ab2
feat: helm rbac perms for deployments ( #8233 )
2023-06-27 15:14:39 -04:00
Colin Adler
4a431b6eb8
feat(helm): add coder.command to control pod command ( #8116 )
2023-06-20 22:59:01 +00:00
Kyle Carberry
f3b2009499
chore: reorder helm chart to improve ux ( #8108 )
...
It makes no sense that the primary option `env` was so far
below infrequently used options.
2023-06-20 16:23:56 +00:00
Cian Johnston
b1588fa596
fix(helm): use /healthz for liveness and readiness probes instead of /api/v2/buildinfo ( #8035 )
2023-06-15 10:08:48 +01:00
Eric Paulsen
0e6361383c
fix(helm): change proxy to wsproxy ( #7499 )
2023-05-11 17:55:04 +00:00
Eric Paulsen
503e94a5c2
docs: fix proxy cmd ref ( #7460 )
2023-05-08 19:22:35 -04:00
Cian Johnston
a172e073e3
chore(ci): update golden files ( #7431 )
2023-05-05 09:05:45 +00:00
Dean Sheather
667d9a7557
chore: add workspaceProxy to helm chart ( #7398 )
2023-05-05 07:07:49 +10:00
Cian Johnston
b4d913e24f
fix(helm): explode verbs instead of wildcarding ( #7405 )
...
Updates the Helm chart role specification for Coder to explicitly list required verbs instead of requesting wildcard.
2023-05-04 10:45:51 +00:00
Cian Johnston
25c1e45930
chore(helm): add unit tests for setting labels / annotations on serviceaccount / deployment / pod ( #7156 )
...
* chore(helm): add unit tests for setting sa annotations
* chore(cli): also add test for labels / annotations / podLabels / podAnnotations
2023-04-17 16:49:25 +01:00