Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit21af020

Browse files
authored
feat: add external provisioner daemon helm chart (#8939)
* Refactor helm to extract common templates to libcoderSigned-off-by: Spike Curtis <spike@coder.com>* Remove comment from libcoder Chart.yamlSigned-off-by: Spike Curtis <spike@coder.com>* Add provisioner helm chart* Fix prettier, linting, docsSigned-off-by: Spike Curtis <spike@coder.com>* Log at INFO when provisionerd connects to coderdSigned-off-by: Spike Curtis <spike@coder.com>* remove unnecessary exports in helm testsSigned-off-by: Spike Curtis <spike@coder.com>---------Signed-off-by: Spike Curtis <spike@coder.com>
1 parentcdb0890 commit21af020

File tree

71 files changed

+2616
-981
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+2616
-981
lines changed

‎.prettierignore‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ scaletest/terraform/secrets.tfvars
6767
# .prettierignore.include:
6868
# Helm templates contain variables that are invalid YAML and can't be formatted
6969
# by Prettier.
70-
helm/templates/*.yaml
70+
helm/**/templates/*.yaml
7171

7272
# Terraform state files used in tests, these are automatically generated.
7373
# Example: provisioner/terraform/testdata/instance-id/instance-id.tfstate.json

‎.prettierignore.include‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Helm templates contain variables that are invalid YAML and can't be formatted
22
# by Prettier.
3-
helm/templates/*.yaml
3+
helm/**/templates/*.yaml
44

55
# Terraform state files used in tests, these are automatically generated.
66
# Example: provisioner/terraform/testdata/instance-id/instance-id.tfstate.json

‎Makefile‎

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,7 @@ coderd/apidoc/swagger.json: $(shell find ./scripts/apidocgen $(FIND_EXCLUSIONS)
553553
./scripts/apidocgen/generate.sh
554554
pnpm run format:write:only ./docs/api ./docs/manifest.json ./coderd/apidoc/swagger.json
555555

556-
update-golden-files: cli/testdata/.gen-golden helm/tests/testdata/.gen-golden scripts/ci-report/testdata/.gen-golden enterprise/cli/testdata/.gen-golden
556+
update-golden-files: cli/testdata/.gen-golden helm/coder/tests/testdata/.gen-golden helm/provisioner/tests/testdata/.gen-golden scripts/ci-report/testdata/.gen-golden enterprise/cli/testdata/.gen-golden
557557
.PHONY: update-golden-files
558558

559559
cli/testdata/.gen-golden:$(wildcard cli/testdata/*.golden)$(wildcard cli/*.tpl)$(GO_SRC_FILES)$(wildcard cli/*_test.go)
@@ -564,8 +564,12 @@ enterprise/cli/testdata/.gen-golden: $(wildcard enterprise/cli/testdata/*.golden
564564
gotest ./enterprise/cli -run="TestEnterpriseCommandHelp" -update
565565
touch"$@"
566566

567-
helm/tests/testdata/.gen-golden:$(wildcard helm/tests/testdata/*.yaml)$(wildcard helm/tests/testdata/*.golden)$(GO_SRC_FILES)$(wildcard helm/tests/*_test.go)
568-
gotest ./helm/tests -run=TestUpdateGoldenFiles -update
567+
helm/coder/tests/testdata/.gen-golden:$(wildcard helm/coder/tests/testdata/*.yaml)$(wildcard helm/coder/tests/testdata/*.golden)$(GO_SRC_FILES)$(wildcard helm/coder/tests/*_test.go)
568+
gotest ./helm/coder/tests -run=TestUpdateGoldenFiles -update
569+
touch"$@"
570+
571+
helm/provisioner/tests/testdata/.gen-golden:$(wildcard helm/provisioner/tests/testdata/*.yaml)$(wildcard helm/provisioner/tests/testdata/*.golden)$(GO_SRC_FILES)$(wildcard helm/provisioner/tests/*_test.go)
572+
gotest ./helm/provisioner/tests -run=TestUpdateGoldenFiles -update
569573
touch"$@"
570574

571575
scripts/ci-report/testdata/.gen-golden:$(wildcard scripts/ci-report/testdata/*)$(wildcard scripts/ci-report/*.go)

‎docs/admin/configure.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ If you are providing TLS certificates directly to the Coder server, either
4242

4343
1. Use a single certificate and key for both the root and wildcard domains.
4444
2. Configure multiple certificates and keys via
45-
[`coder.tls.secretNames`](https://github.com/coder/coder/blob/main/helm/values.yaml) in the Helm Chart, or
45+
[`coder.tls.secretNames`](https://github.com/coder/coder/blob/main/helm/coder/values.yaml) in the Helm Chart, or
4646
[`--tls-cert-file`](../cli/server.md#--tls-cert-file) and[`--tls-key-file`](../cli/server.md#--tls-key-file) command
4747
line options (these both take a comma separated list of files; list certificates and their respective keys in the
4848
same order).

‎docs/admin/scale.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Users accessing workspaces via SSH will consume fewer resources, as SSH connecti
4242

4343
Workspace builds are CPU-intensive, as it relies on Terraform. Various[Terraform providers](https://registry.terraform.io/browse/providers) have different resource requirements.
4444
When tested with our[kubernetes](https://github.com/coder/coder/tree/main/examples/templates/kubernetes) template,`coderd` will consume roughly 0.25 cores per concurrent workspace build.
45-
For effective provisioning, our helm chart prefers to schedule[one coderd replica per-node](https://github.com/coder/coder/blob/main/helm/values.yaml#L188-L202).
45+
For effective provisioning, our helm chart prefers to schedule[one coderd replica per-node](https://github.com/coder/coder/blob/main/helm/coder/values.yaml#L188-L202).
4646

4747
We recommend:
4848

‎docs/install/kubernetes.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ to log in and manage templates.
105105
>You can view our
106106
>[Helm README](https://github.com/coder/coder/blob/main/helm#readme) for
107107
>details on the values that are available, or you can view the
108-
>[values.yaml](https://github.com/coder/coder/blob/main/helm/values.yaml)
108+
>[values.yaml](https://github.com/coder/coder/blob/main/helm/coder/values.yaml)
109109
>file directly.
110110
111111
1. Run the following command to install the chart in your cluster.

‎helm/Makefile‎

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,13 @@ all: lint
1313
lint: lint/helm
1414
.PHONY: lint
1515

16-
lint/helm:
17-
helm lint --strict --set coder.image.tag=v0.0.1.
16+
lint/helm: lint/helm/coder lint/helm/provisioner
1817
.PHONY: lint/helm
18+
19+
lint/helm/coder:
20+
helm lint --strict --set coder.image.tag=v0.0.1 coder/
21+
.PHONY: lint/helm/coder
22+
23+
lint/helm/provisioner:
24+
helm lint --strict --set coder.image.tag=v0.0.1 provisioner/
25+
.PHONY: lint/helm/provisioner
File renamed without changes.

‎helm/coder/Chart.lock‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
dependencies:
2+
- name: libcoder
3+
repository: file://../libcoder
4+
version: 0.1.0
5+
digest: sha256:5c9a99109258073b590a9f98268490ef387fde24c0c7c7ade9c1a8c7ef5e6e10
6+
generated: "2023-08-08T07:27:19.677972411Z"

‎helm/Chart.yaml‎renamed to ‎helm/coder/Chart.yaml‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,14 @@ keywords:
2121
-coder
2222
-terraform
2323
sources:
24-
-https://github.com/coder/coder/tree/main/helm
24+
-https://github.com/coder/coder/tree/main/helm/coder
2525
icon:https://helm.coder.com/coder_logo_black.png
2626
maintainers:
2727
-name:Coder Technologies, Inc.
2828
email:support@coder.com
2929
url:https://coder.com/contact
30+
31+
dependencies:
32+
-name:libcoder
33+
version:0.1.0
34+
repository:file://../libcoder

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp