Skip to content

Commit 4862f7c

Browse files
temp chart
1 parent 66a9771 commit 4862f7c

10 files changed

+443
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
apiVersion: v2
2+
description: Projector is a technology to run and access Swing GUI applications remotely
3+
name: jetbrains-projector
4+
version: 1.0.0
5+
kubeVersion: ">=1.16.0-0"
6+
keywords:
7+
- jetbrains
8+
- projector
9+
- jetbrains-projector
10+
home: https://github.com/k8s-at-home/charts/tree/master/charts/stable/jetbrains-projector
11+
icon: https://pbs.twimg.com/profile_images/1369990348580216834/dorDbokA_400x400.png
12+
sources:
13+
- https://github.com/JetBrains/projector-docker
14+
maintainers:
15+
- name: DirtyCajunRice
16+
17+
dependencies:
18+
- name: common
19+
repository: https://library-charts.k8s-at-home.com
20+
version: 2.2.0
+130
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,130 @@
1+
# jetbrains-projector
2+
3+
![Version: 1.0.0](https://img.shields.io/badge/Version-1.0.0-informational?style=flat-square)
4+
5+
Projector is a technology to run and access Swing GUI applications remotely
6+
7+
**This chart is not maintained by the upstream project and any issues with the chart should be
8+
raised [here](https://github.com/k8s-at-home/charts/issues/new/choose)**
9+
10+
## Source Code
11+
12+
* <https://github.com/JetBrains/projector-docker>
13+
14+
## Requirements
15+
16+
Kubernetes: `>=1.16.0-0`
17+
18+
## Dependencies
19+
20+
| Repository | Name | Version |
21+
|------------|------|---------|
22+
| https://library-charts.k8s-at-home.com | common | 2.2.0 |
23+
24+
## TL;DR
25+
26+
```console
27+
helm repo add k8s-at-home https://k8s-at-home.com/charts/
28+
helm repo update
29+
helm install jetbrains-projector k8s-at-home/jetbrains-projector
30+
```
31+
32+
## Installing the Chart
33+
34+
To install the chart with the release name `jetbrains-projector`
35+
36+
```console
37+
helm install jetbrains-projector k8s-at-home/jetbrains-projector
38+
```
39+
40+
## Uninstalling the Chart
41+
42+
To uninstall the `jetbrains-projector` deployment
43+
44+
```console
45+
helm uninstall jetbrains-projector
46+
```
47+
48+
The command removes all the Kubernetes components associated with the chart **including persistent volumes** and deletes
49+
the release.
50+
51+
## Configuration
52+
53+
Read through the [values.yaml](./values.yaml) file. It has several commented out suggested values. Other values may be
54+
used from the [values.yaml](https://github.com/k8s-at-home/library-charts/tree/main/charts/stable/common/values.yaml)
55+
from the [common library](https://github.com/k8s-at-home/library-charts/tree/main/charts/stable/common).
56+
57+
Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`.
58+
59+
```console
60+
helm install jetbrains-projector \
61+
--set env.TZ="America/New York" \
62+
k8s-at-home/jetbrains-projector
63+
```
64+
65+
Alternatively, a YAML file that specifies the values for the above parameters can be provided while installing the
66+
chart.
67+
68+
```console
69+
helm install jetbrains-projector k8s-at-home/jetbrains-projector -f values.yaml
70+
```
71+
72+
## Custom configuration
73+
74+
N/A
75+
76+
## Values
77+
78+
**Important**: When deploying an application Helm chart you can add more values from our common library
79+
chart [here](https://github.com/k8s-at-home/library-charts/tree/main/charts/stable/common)
80+
81+
| Key | Type | Default | Description |
82+
|-----|------|---------|-------------|
83+
| env | object | `{}` | |
84+
| idea.config.path | string | `"/data/config"` | |
85+
| idea.log.path | string | `"/data/plugins"` | |
86+
| idea.plugins.path | string | `"/data/plugins"` | |
87+
| idea.system.path | string | `"/data/system"` | |
88+
| image.pullPolicy | string | `"IfNotPresent"` | |
89+
| image.registry | string | `"registry.jetbrains.team/p/prj/containers"` | See list of available images [here](https://github.com/JetBrains/projector-docker) |
90+
| image.repository | string | `"projector-pycharm-c"` | |
91+
| image.tag | string | `"latest"` | |
92+
| ingress.enabled | bool | `false` | |
93+
| persistence.data.emptyDir.enabled | bool | `false` | |
94+
| persistence.data.enabled | bool | `false` | |
95+
| persistence.data.mountPath | string | `"/data"` | |
96+
| service.port.port | int | `8887` | |
97+
| strategy.type | string | `"Recreate"` | |
98+
99+
## Changelog
100+
101+
All notable changes to this application Helm chart will be documented in this file but does not include changes from our
102+
common library. To read those
103+
click [here](https://github.com/k8s-at-home/library-charts/tree/main/charts/stable/common#changelog).
104+
105+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres
106+
to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
107+
108+
### [1.0.0]
109+
110+
#### Added
111+
112+
- N/A
113+
114+
#### Changed
115+
116+
- N/A
117+
118+
#### Removed
119+
120+
- N/A
121+
122+
[1.0.0]: #1.0.0
123+
124+
## Support
125+
126+
- See the [Docs](https://docs.k8s-at-home.com/our-helm-charts/getting-started/)
127+
- Open an [issue](https://github.com/k8s-at-home/charts/issues/new/choose)
128+
- Ask a [question](https://github.com/k8s-at-home/organization/discussions)
129+
- Join our [Discord](https://discord.gg/sTMX7Vh) community
130+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,145 @@
1+
{{- define "custom.repository.organization" -}}
2+
k8s-at-home
3+
{{- end -}}
4+
5+
{{- define "custom.repository.url" -}}
6+
https://github.com/k8s-at-home/charts
7+
{{- end -}}
8+
9+
{{- define "custom.helm.url" -}}
10+
https://k8s-at-home.com/charts/
11+
{{- end -}}
12+
13+
{{- define "custom.helm.path" -}}
14+
{{ template "custom.repository.organization" . }}/{{ template "chart.name" . }}
15+
{{- end -}}
16+
17+
{{- define "custom.notes" -}}
18+
**This chart is not maintained by the upstream project and any issues with the chart should be raised [here](https://github.com/k8s-at-home/charts/issues/new/choose)**
19+
{{- end -}}
20+
21+
{{- define "custom.requirements" -}}
22+
## Requirements
23+
24+
{{ template "chart.kubeVersionLine" . }}
25+
{{- end -}}
26+
27+
{{- define "custom.dependencies" -}}
28+
## Dependencies
29+
30+
{{ template "chart.requirementsTable" . }}
31+
{{- end -}}
32+
33+
{{- define "custom.install.tldr" -}}
34+
## TL;DR
35+
36+
```console
37+
helm repo add {{ template "custom.repository.organization" . }} {{ template "custom.helm.url" . }}
38+
helm repo update
39+
helm install {{ template "chart.name" . }} {{ template "custom.helm.path" . }}
40+
```
41+
{{- end -}}
42+
43+
{{- define "custom.install" -}}
44+
## Installing the Chart
45+
46+
To install the chart with the release name `{{ template "chart.name" . }}`
47+
48+
```console
49+
helm install {{ template "chart.name" . }} {{ template "custom.helm.path" . }}
50+
```
51+
{{- end -}}
52+
53+
{{- define "custom.uninstall" -}}
54+
## Uninstalling the Chart
55+
56+
To uninstall the `{{ template "chart.name" . }}` deployment
57+
58+
```console
59+
helm uninstall {{ template "chart.name" . }}
60+
```
61+
62+
The command removes all the Kubernetes components associated with the chart **including persistent volumes** and deletes the release.
63+
{{- end -}}
64+
65+
{{- define "custom.configuration.header" -}}
66+
## Configuration
67+
{{- end -}}
68+
69+
{{- define "custom.configuration.readValues" -}}
70+
Read through the [values.yaml](./values.yaml) file. It has several commented out suggested values.
71+
Other values may be used from the [values.yaml](https://github.com/k8s-at-home/library-charts/tree/main/charts/stable/common/values.yaml) from the [common library](https://github.com/k8s-at-home/library-charts/tree/main/charts/stable/common).
72+
{{- end -}}
73+
74+
{{- define "custom.configuration.example.set" -}}
75+
Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`.
76+
77+
```console
78+
helm install {{ template "chart.name" . }} \
79+
--set env.TZ="America/New York" \
80+
{{ template "custom.helm.path" . }}
81+
```
82+
{{- end -}}
83+
84+
{{- define "custom.configuration.example.file" -}}
85+
Alternatively, a YAML file that specifies the values for the above parameters can be provided while installing the chart.
86+
87+
```console
88+
helm install {{ template "chart.name" . }} {{ template "custom.helm.path" . }} -f values.yaml
89+
```
90+
{{- end -}}
91+
92+
{{- define "custom.valuesSection" -}}
93+
## Values
94+
95+
**Important**: When deploying an application Helm chart you can add more values from our common library chart [here](https://github.com/k8s-at-home/library-charts/tree/main/charts/stable/common)
96+
97+
{{ template "chart.valuesTable" . }}
98+
{{- end -}}
99+
100+
{{- define "custom.support" -}}
101+
## Support
102+
103+
- See the [Docs](https://docs.k8s-at-home.com/our-helm-charts/getting-started/)
104+
- Open an [issue](https://github.com/k8s-at-home/charts/issues/new/choose)
105+
- Ask a [question](https://github.com/k8s-at-home/organization/discussions)
106+
- Join our [Discord](https://discord.gg/sTMX7Vh) community
107+
{{- end -}}
108+
109+
{{ template "chart.header" . }}
110+
111+
{{ template "chart.versionBadge" . }}{{ template "chart.typeBadge" . }}{{ template "chart.appVersionBadge" . }}
112+
113+
{{ template "chart.description" . }}
114+
115+
{{ template "custom.notes" . }}
116+
117+
{{ template "chart.sourcesSection" . }}
118+
119+
{{ template "custom.requirements" . }}
120+
121+
{{ template "custom.dependencies" . }}
122+
123+
{{ template "custom.install.tldr" . }}
124+
125+
{{ template "custom.install" . }}
126+
127+
{{ template "custom.uninstall" . }}
128+
129+
{{ template "custom.configuration.header" . }}
130+
131+
{{ template "custom.configuration.readValues" . }}
132+
133+
{{ template "custom.configuration.example.set" . }}
134+
135+
{{ template "custom.configuration.example.file" . }}
136+
137+
{{ template "custom.custom.configuration" . }}
138+
139+
{{ template "custom.valuesSection" . }}
140+
141+
{{ template "custom.changelog" . }}
142+
143+
{{ template "custom.support" . }}
144+
145+
{{ template "helm-docs.versionFooter" . }}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{{- define "custom.changelog.header" -}}
2+
## Changelog
3+
{{- end -}}
4+
5+
{{- define "custom.changelog" -}}
6+
{{ template "custom.changelog.header" . }}
7+
8+
All notable changes to this application Helm chart will be documented in this file but does not include changes from our common library. To read those click [here](https://github.com/k8s-at-home/library-charts/tree/main/charts/stable/common#changelog).
9+
10+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
11+
12+
### [1.0.0]
13+
14+
#### Added
15+
16+
- N/A
17+
18+
#### Changed
19+
20+
- N/A
21+
22+
#### Removed
23+
24+
- N/A
25+
26+
[1.0.0]: #1.0.0
27+
{{- end -}}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{{- define "custom.custom.configuration.header" -}}
2+
## Custom configuration
3+
{{- end -}}
4+
5+
{{- define "custom.custom.configuration" -}}
6+
{{ template "custom.custom.configuration.header" . }}
7+
8+
N/A
9+
{{- end -}}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{{- include "common.notes.defaultNotes" . -}}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{{- define "print-or-recurse" -}}
2+
{{- if and (kindIs "string" .value) .value -}}
3+
{{- printf "%s=%s" .key .value | nindent 0 -}}
4+
{{- else if and (kindIs "map" .value) .value -}}
5+
{{- $key := .key -}}
6+
{{- range $subKey, $value := .value -}}
7+
{{- template "print-or-recurse" (dict "key" (printf "%s.%s" $key $subKey) "value" $value) -}}
8+
{{- end -}}
9+
{{- end -}}
10+
{{- end -}}
11+
12+
{{- define "jetbrains-projector.configmap.volume" -}}
13+
name: jetbrains-projector-config
14+
configMap:
15+
name: {{ template "common.names.fullname" . }}-config
16+
{{- end -}}
17+
18+
{{- define "jetbrains-projector.configmap.volumeMount" -}}
19+
name: jetbrains-projector-config
20+
mountPath: /tmp/idea.properties
21+
subPath: idea.properties
22+
{{- end -}}
23+
24+
{{- define "jetbrains-projector.ide" -}}
25+
{{- $ide := without (splitList "-" (last (splitList "/" .Values.image.repository))) "projector" "c" "u" "p" | first -}}
26+
{{- if eq $ide "webstorm" -}}
27+
{{- $ide = "webide" -}}
28+
{{- end -}}
29+
{{- $ide -}}
30+
{{- end -}}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{{/* Make sure all variables are set properly */}}
2+
{{- include "common.values.setup" . }}
3+
4+
{{/* Append the configMap to the additionalVolumes */}}
5+
{{- $volume := include "jetbrains-projector.configmap.volume" . | fromYaml -}}
6+
{{- $additionalVolumes := append .Values.additionalVolumes $volume -}}
7+
{{- $_ := set .Values "additionalVolumes" (deepCopy $additionalVolumes) -}}
8+
9+
{{/* Append the configMap volume to the additionalVolumeMounts */}}
10+
{{- $volumeMount := include "jetbrains-projector.configmap.volumeMount" . | fromYaml -}}
11+
{{- $additionalVolumeMounts := append .Values.additionalVolumeMounts $volumeMount -}}
12+
{{- $_ := set .Values "additionalVolumeMounts" (deepCopy $additionalVolumeMounts) -}}
13+
14+
{{/* Use .Values.image.registry if it exists because of jetbrains extremely long registry */}}
15+
{{- if .Values.image.registry -}}
16+
{{- $_ := set .Values.image "repository" (printf "%s/%s" .Values.image.registry .Values.image.repository) -}}
17+
{{- end -}}
18+
19+
{{/* Add the *_PROPERTIES environment variable */}}
20+
{{- $ide := include "jetbrains-projector.ide" . }}
21+
{{- $_ := set .Values.env (printf "%s_PROPERTIES" (upper $ide)) "/tmp/idea.properties" -}}
22+
23+
{{/* Render the templates */}}
24+
{{ include "common.all" . }}

0 commit comments

Comments
 (0)