Skip to content

Commit 1c2fab7

Browse files
authored
Merge branch 'main' into feature/chat-mcp-ui-widgets
2 parents 6717aa1 + a766d22 commit 1c2fab7

39 files changed

Lines changed: 336 additions & 69 deletions

File tree

Makefile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,10 @@ init-git-hooks: ## Use the tracked version of Git hooks from this repo
136136
KMCP_ENABLED ?= true
137137
KMCP_VERSION ?= $(shell $(AWK) '/github\.com\/kagent-dev\/kmcp/ { print substr($$2, 2) }' go/go.mod) # KMCP version defaults to what's referenced in go.mod
138138

139+
# Substrate
140+
SUBSTRATE_ENABLED ?= false
141+
SUBSTRATE_VERSION ?= $(shell $(AWK) '/github\.com\/kagent-dev\/substrate/ { print substr($$5, 2) }' go/go.mod) # Substrate version defaults to the replace target in go.mod
142+
139143
HELM_ACTION=upgrade --install
140144

141145
# Helm chart variables
@@ -394,8 +398,8 @@ helm-tools: ## Package all tool Helm charts into the dist folder
394398
.PHONY: helm-version
395399
helm-version: ## Stamp chart versions, update dependencies, and package kagent + kagent-crds
396400
helm-version: helm-cleanup helm-agents helm-tools
397-
VERSION=$(VERSION) KMCP_VERSION=$(KMCP_VERSION) envsubst < helm/kagent-crds/Chart-template.yaml > helm/kagent-crds/Chart.yaml
398-
VERSION=$(VERSION) KMCP_VERSION=$(KMCP_VERSION) envsubst < helm/kagent/Chart-template.yaml > helm/kagent/Chart.yaml
401+
VERSION=$(VERSION) KMCP_VERSION=$(KMCP_VERSION) SUBSTRATE_VERSION=$(SUBSTRATE_VERSION) envsubst < helm/kagent-crds/Chart-template.yaml > helm/kagent-crds/Chart.yaml
402+
VERSION=$(VERSION) KMCP_VERSION=$(KMCP_VERSION) SUBSTRATE_VERSION=$(SUBSTRATE_VERSION) envsubst < helm/kagent/Chart-template.yaml > helm/kagent/Chart.yaml
399403
helm dependency update helm/kagent
400404
helm dependency update helm/kagent-crds
401405
helm package -d $(HELM_DIST_FOLDER) helm/kagent-crds
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{{- define "agent.deploymentSpec" -}}
2+
{{- with coalesce (empty .Values.imagePullSecrets | ternary nil .Values.imagePullSecrets) .Values.global.imagePullSecrets }}
3+
imagePullSecrets:
4+
{{- toYaml . | nindent 2 }}
5+
{{- end }}
6+
{{- with .Values.podSecurityContext }}
7+
podSecurityContext:
8+
{{- toYaml . | nindent 2 }}
9+
{{- end }}
10+
{{- with .Values.securityContext }}
11+
securityContext:
12+
{{- toYaml . | nindent 2 }}
13+
{{- end }}
14+
resources:
15+
{{- toYaml .Values.resources | nindent 2 }}
16+
{{- end }}

helm/agents/argo-rollouts/templates/agent.yaml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -187,9 +187,4 @@ spec:
187187
compaction: {{- toYaml .Values.compaction | nindent 8 }}
188188
{{- end }}
189189
deployment:
190-
{{- with coalesce (empty .Values.imagePullSecrets | ternary nil .Values.imagePullSecrets) .Values.global.imagePullSecrets }}
191-
imagePullSecrets:
192-
{{- toYaml . | nindent 8 }}
193-
{{- end }}
194-
resources:
195-
{{- toYaml .Values.resources | nindent 8 }}
190+
{{- include "agent.deploymentSpec" . | nindent 6 }}

helm/agents/argo-rollouts/values.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,7 @@ resources:
1616

1717

1818
compaction: {}
19+
20+
podSecurityContext: {}
21+
22+
securityContext: {}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{{- define "agent.deploymentSpec" -}}
2+
{{- with coalesce (empty .Values.imagePullSecrets | ternary nil .Values.imagePullSecrets) .Values.global.imagePullSecrets }}
3+
imagePullSecrets:
4+
{{- toYaml . | nindent 2 }}
5+
{{- end }}
6+
{{- with .Values.podSecurityContext }}
7+
podSecurityContext:
8+
{{- toYaml . | nindent 2 }}
9+
{{- end }}
10+
{{- with .Values.securityContext }}
11+
securityContext:
12+
{{- toYaml . | nindent 2 }}
13+
{{- end }}
14+
resources:
15+
{{- toYaml .Values.resources | nindent 2 }}
16+
{{- end }}

helm/agents/cilium-debug/templates/agent.yaml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -160,9 +160,4 @@ spec:
160160
compaction: {{- toYaml .Values.compaction | nindent 8 }}
161161
{{- end }}
162162
deployment:
163-
{{- with coalesce (empty .Values.imagePullSecrets | ternary nil .Values.imagePullSecrets) .Values.global.imagePullSecrets }}
164-
imagePullSecrets:
165-
{{- toYaml . | nindent 8 }}
166-
{{- end }}
167-
resources:
168-
{{- toYaml .Values.resources | nindent 8 }}
163+
{{- include "agent.deploymentSpec" . | nindent 6 }}

helm/agents/cilium-debug/values.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,7 @@ resources:
1515
memory: 1Gi
1616

1717
compaction: {}
18+
19+
podSecurityContext: {}
20+
21+
securityContext: {}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{{- define "agent.deploymentSpec" -}}
2+
{{- with coalesce (empty .Values.imagePullSecrets | ternary nil .Values.imagePullSecrets) .Values.global.imagePullSecrets }}
3+
imagePullSecrets:
4+
{{- toYaml . | nindent 2 }}
5+
{{- end }}
6+
{{- with .Values.podSecurityContext }}
7+
podSecurityContext:
8+
{{- toYaml . | nindent 2 }}
9+
{{- end }}
10+
{{- with .Values.securityContext }}
11+
securityContext:
12+
{{- toYaml . | nindent 2 }}
13+
{{- end }}
14+
resources:
15+
{{- toYaml .Values.resources | nindent 2 }}
16+
{{- end }}

helm/agents/cilium-manager/templates/agent.yaml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -432,9 +432,4 @@ spec:
432432
compaction: {{- toYaml .Values.compaction | nindent 8 }}
433433
{{- end }}
434434
deployment:
435-
{{- with coalesce (empty .Values.imagePullSecrets | ternary nil .Values.imagePullSecrets) .Values.global.imagePullSecrets }}
436-
imagePullSecrets:
437-
{{- toYaml . | nindent 8 }}
438-
{{- end }}
439-
resources:
440-
{{- toYaml .Values.resources | nindent 8 }}
435+
{{- include "agent.deploymentSpec" . | nindent 6 }}

helm/agents/cilium-manager/values.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,7 @@ resources:
1515
memory: 1Gi
1616

1717
compaction: {}
18+
19+
podSecurityContext: {}
20+
21+
securityContext: {}

0 commit comments

Comments
 (0)