Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/helm-verify.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ jobs:
- name: Install helm-unittest
run: .github/scripts/helm-verify/install-helm-unittest.sh
- name: Run the chart unit tests
run: helm unittest charts/substrate
run: helm unittest charts/substrate charts/substrate-atelet
6 changes: 6 additions & 0 deletions charts/substrate-atelet/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,12 @@ Object storage is set under `objectStore` instead of `rustfs` and
| `objectStore.pathStyle` | `false` | Address buckets by path rather than by virtual host |
| `objectStore.credentialsSecret` | `""` | Secret with `AWS_ACCESS_KEY_ID` and `AWS_SECRET_ACCESS_KEY` keys. Empty uses the SDK's default credential chain |

Set `atelet.serviceAccount.annotations` and `atelet.serviceAccount.labels` to
add metadata to the chart-managed ServiceAccount, for example to configure
workload identity for the node object-store plugin. Restart existing atelet
pods after changing an identity annotation so the identity provider can inject
credentials into newly created pods.

Set `substrateReleaseName` to the substrate release's name. It defaults to
`substrate`. atelet's objects take their names from it, because the substrate
release grants permissions to the atelet ServiceAccount by name. atelet also
Expand Down
8 changes: 8 additions & 0 deletions charts/substrate-atelet/templates/atelet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,14 @@ kind: ServiceAccount
metadata:
name: {{ include "substrate.fullname" (list "atelet" .) }}
namespace: {{ .Release.Namespace }}
{{- with .Values.atelet.serviceAccount.labels }}
labels:
{{- toYaml . | nindent 4 }}
{{- end }}
{{- with .Values.atelet.serviceAccount.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
{{- if .Values.atelet.imageCredentialProviderConfigYAML }}
---
apiVersion: v1
Expand Down
53 changes: 53 additions & 0 deletions charts/substrate-atelet/tests/service_account_test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# Copyright 2026 The Agent Substrate Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

suite: Atelet ServiceAccount metadata
templates:
- atelet.yaml
release:
name: node-agent
namespace: ate-system
tests:
- it: leaves metadata unchanged by default
documentSelector:
path: kind
value: ServiceAccount
asserts:
- notExists:
path: metadata.annotations
- notExists:
path: metadata.labels
- it: adds configured metadata to the existing ServiceAccount
set:
substrateReleaseName: custom
atelet.serviceAccount.labels:
team: agents
atelet.serviceAccount.annotations:
example.com/workload-identity: enabled
documentSelector:
path: kind
value: ServiceAccount
asserts:
- equal:
path: metadata.name
value: custom-atelet
- equal:
path: metadata.namespace
value: ate-system
- equal:
path: metadata.labels.team
value: agents
- equal:
path: metadata.annotations["example.com/workload-identity"]
value: enabled
3 changes: 3 additions & 0 deletions charts/substrate-atelet/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ objectStore:
# extraArgs / extraEnv are appended verbatim for installer-specific knobs
# (e.g. registry replacement for kind).
atelet:
serviceAccount:
labels: {}
annotations: {}
# Host paths for the node's kubelet credential provider. Set both to enable
# private registry authentication (GKE: /etc/srv/kubernetes/cri_auth_config.yaml
# and /home/kubernetes/bin). Leave empty on nodes without a provider, like Kind.
Expand Down