Skip to content

Commit 394affb

Browse files
committed
Bump chart versions for custom config support
1 parent 1423323 commit 394affb

Some content is hidden

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

45 files changed

+474
-12
lines changed

charts/atlassian/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ type: application
1313

1414
# Bump this chart version whenever the chart or its templates change.
1515
# Versions are expected to follow Semantic Versioning (https://semver.org/).
16-
version: 0.2.28
16+
version: 0.2.29
1717

1818
# This is the application version. Bump it whenever the app itself changes.
1919
# It does not need to follow Semantic Versioning. Quotes are recommended.

charts/atlassian/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ A Helm chart for Kubernetes
4848
| resources.requests.cpu | string | `"200m"` | |
4949
| resources.requests.memory | string | `"256Mi"` | |
5050
| secretEnv | object | `{}` | Create secret with environment data; keys must be valid secret keys and values cannot be empty |
51+
| customConfig | object | `{}` | Custom configuration mounted as a single file inside the container |
5152
| securityContext | object | `{}` | |
5253
| service.port | int | `8000` | |
5354
| service.type | string | `"ClusterIP"` | |
@@ -60,5 +61,10 @@ A Helm chart for Kubernetes
6061
| envSecrets | object | `{}` | Environment variables from secrets |
6162
| secretEnv.data | object | `{}` | Key-value pairs to include in the generated secret |
6263
| secretEnv.name | string | `""` | Name of the generated secret when `secretEnv.data` is set |
64+
| customConfig.data | string | `""` | Custom configuration content stored in the ConfigMap |
65+
| customConfig.enabled | bool | `false` | Enable the custom ConfigMap and mount it as a file |
66+
| customConfig.key | string | `"custom-config.yaml"` | ConfigMap key (file name) to mount |
67+
| customConfig.mountPath | string | `"/etc/mcp/custom-config.yaml"` | Target file path inside the container |
68+
| customConfig.name | string | `""` | Override name of the custom ConfigMap |
6369

6470
When `ingress.path` is not `/`, the annotation `nginx.ingress.kubernetes.io/use-regex: "true"` is automatically added.
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{{- if .Values.customConfig.enabled -}}
2+
{{- $customConfigName := default (printf "%s-custom-config" (include "mcp-atlassian-helm.fullname" .)) .Values.customConfig.name -}}
3+
{{- $customConfigKey := default "custom-config.yaml" .Values.customConfig.key -}}
4+
{{- if eq (trim .Values.customConfig.data) "" -}}
5+
{{- fail "customConfig.data must be set when customConfig.enabled is true" -}}
6+
{{- end -}}
7+
apiVersion: v1
8+
kind: ConfigMap
9+
metadata:
10+
name: {{ $customConfigName }}
11+
labels:
12+
{{- include "mcp-atlassian-helm.labels" . | nindent 4 }}
13+
data:
14+
{{ $customConfigKey }}: |
15+
{{- .Values.customConfig.data | nindent 4 }}
16+
{{- end }}

charts/atlassian/templates/deployment.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
{{- $customConfigKey := default "custom-config.yaml" .Values.customConfig.key -}}
2+
{{- $customConfigName := default (printf "%s-custom-config" (include "mcp-atlassian-helm.fullname" .)) .Values.customConfig.name -}}
13
apiVersion: apps/v1
24
kind: Deployment
35
metadata:
@@ -72,6 +74,13 @@ spec:
7274
- name: http
7375
containerPort: {{ $servicePort }}
7476
protocol: TCP
77+
{{- if .Values.customConfig.enabled }}
78+
volumeMounts:
79+
- name: custom-config
80+
mountPath: {{ .Values.customConfig.mountPath }}
81+
subPath: {{ $customConfigKey }}
82+
readOnly: true
83+
{{- end }}
7584
{{- $livenessPort := default $servicePort .Values.livenessProbe.port }}
7685
{{- if .Values.livenessProbe.enabled }}
7786
livenessProbe:
@@ -96,6 +105,15 @@ spec:
96105
{{- end }}
97106
resources:
98107
{{- toYaml .Values.resources | nindent 12 }}
108+
{{- if .Values.customConfig.enabled }}
109+
volumes:
110+
- name: custom-config
111+
configMap:
112+
name: {{ $customConfigName }}
113+
items:
114+
- key: {{ $customConfigKey }}
115+
path: {{ $customConfigKey }}
116+
{{- end }}
99117
{{- if .Values.sidecars }}
100118
{{- include "mcp-library.tplvalues.render" (list . .Values.sidecars) | nindent 8 }}
101119
{{- end }}

charts/atlassian/values.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,14 @@ envSecrets: {}
136136
# Keys must follow RFC 1123 naming rules and values cannot be empty.
137137
secretEnv: {}
138138

139+
# Custom configuration mounted as a single file inside the container.
140+
customConfig:
141+
enabled: false
142+
name: ""
143+
key: custom-config.yaml
144+
mountPath: /etc/mcp/custom-config.yaml
145+
data: ""
146+
139147
# Additional sidecar containers to run alongside the main container.
140148
# Each list item must include `name` and `image` and may specify any other
141149
# fields allowed in the Kubernetes `Container` spec such as `command`, `args`,

charts/claude-code-api/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ icon: https://raw.githubusercontent.com/modelcontextprotocol/docs/main/logo/ligh
55

66
type: application
77

8-
version: 0.1.1
8+
version: 0.1.2
99
dependencies:
1010
- name: mcp-library
1111
version: 0.1.4

charts/claude-code-api/README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,16 @@ helm delete claude-code-api
112112
| `envSecrets` | Environment variables sourced from external secrets | `{}` |
113113
| `secretEnv.data` | Additional key/value pairs stored in a dedicated secret and exposed as environment variables | `{}` |
114114

115+
### Custom config parameters
116+
117+
| Name | Description | Value |
118+
| --- | --- | --- |
119+
| `customConfig.enabled` | Enable the custom ConfigMap and mount it as a file | `false` |
120+
| `customConfig.name` | Override name of the custom ConfigMap | `""` |
121+
| `customConfig.key` | ConfigMap key (file name) to mount | `custom-config.yaml` |
122+
| `customConfig.mountPath` | Target file path inside the container | `/etc/mcp/custom-config.yaml` |
123+
| `customConfig.data` | Custom configuration content stored in the ConfigMap | `""` |
124+
115125
### Autoscaling parameters
116126

117127
| Name | Description | Value |
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{{- if .Values.customConfig.enabled -}}
2+
{{- $customConfigName := default (printf "%s-custom-config" (include "claude-code-api-helm.fullname" .)) .Values.customConfig.name -}}
3+
{{- $customConfigKey := default "custom-config.yaml" .Values.customConfig.key -}}
4+
{{- if eq (trim .Values.customConfig.data) "" -}}
5+
{{- fail "customConfig.data must be set when customConfig.enabled is true" -}}
6+
{{- end -}}
7+
apiVersion: v1
8+
kind: ConfigMap
9+
metadata:
10+
name: {{ $customConfigName }}
11+
labels:
12+
{{- include "claude-code-api-helm.labels" . | nindent 4 }}
13+
data:
14+
{{ $customConfigKey }}: |
15+
{{- .Values.customConfig.data | nindent 4 }}
16+
{{- end }}

charts/claude-code-api/templates/deployment.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
{{- $tokenFromExisting := ne (trim .Values.auth.claudeOAuthToken.existingSecret) "" -}}
2+
{{- $customConfigKey := default "custom-config.yaml" .Values.customConfig.key -}}
3+
{{- $customConfigName := default (printf "%s-custom-config" (include "claude-code-api-helm.fullname" .)) .Values.customConfig.name -}}
24
{{- $tokenValueProvided := or (ne (trim .Values.auth.claudeOAuthToken.value) "") (ne (trim .Values.auth.claudeOAuthToken.valueBase64) "") -}}
35
{{- if and (not $tokenValueProvided) (not $tokenFromExisting) -}}
46
{{- fail "Provide Claude OAuth token via auth.claudeOAuthToken.value, valueBase64, or existingSecret" -}}
@@ -104,6 +106,13 @@ spec:
104106
containerPort: {{ .Values.service.ports.https.targetPort | default .Values.app.httpsPort }}
105107
protocol: TCP
106108
{{- end }}
109+
{{- if .Values.customConfig.enabled }}
110+
volumeMounts:
111+
- name: custom-config
112+
mountPath: {{ .Values.customConfig.mountPath }}
113+
subPath: {{ $customConfigKey }}
114+
readOnly: true
115+
{{- end }}
107116
livenessProbe:
108117
httpGet:
109118
path: /v1/health
@@ -118,6 +127,15 @@ spec:
118127
periodSeconds: 5
119128
resources:
120129
{{- toYaml .Values.resources | nindent 12 }}
130+
{{- if .Values.customConfig.enabled }}
131+
volumes:
132+
- name: custom-config
133+
configMap:
134+
name: {{ $customConfigName }}
135+
items:
136+
- key: {{ $customConfigKey }}
137+
path: {{ $customConfigKey }}
138+
{{- end }}
121139
{{- with .Values.nodeSelector }}
122140
nodeSelector:
123141
{{- toYaml . | nindent 8 }}

charts/claude-code-api/values.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,3 +90,10 @@ envSecrets: {}
9090

9191
secretEnv:
9292
data: {}
93+
94+
customConfig:
95+
enabled: false
96+
name: ""
97+
key: custom-config.yaml
98+
mountPath: /etc/mcp/custom-config.yaml
99+
data: ""

0 commit comments

Comments
 (0)