Skip to content

Commit d356550

Browse files
scotwellsclaude
andcommitted
feat: mount the quota credential as cert files plus a static kubeconfig
Change the compute-manager quota-credentials volume from a single opaque secret to a projected volume that combines the Milo client certificate (compute-edge-milo-client-cert) with a static kubeconfig ConfigMap (compute-quota-kubeconfig), both supplied by the cluster environment. compute-manager now loads a kubeconfig that references the mounted cert files by path instead of one with the client key embedded, so cert rotation is a plain file refresh and no secret carries an assembled kubeconfig. Both sources are optional, so the manager still starts where quota is not wired. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 9457279 commit d356550

1 file changed

Lines changed: 14 additions & 3 deletions

File tree

config/components/quota-credentials/kustomization.yaml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# Mounts the quota credential for compute-manager at /etc/quota-credentials:
2+
# the Milo client certificate (ca.crt/tls.crt/tls.key) and a static kubeconfig
3+
# that references those cert files by path, combined into one directory via a
4+
# projected volume. The cluster environment supplies both sources
5+
# (compute-edge-milo-client-cert Secret + compute-quota-kubeconfig ConfigMap);
6+
# they are optional so compute-manager still starts where quota is not wired.
17
apiVersion: kustomize.config.k8s.io/v1alpha1
28
kind: Component
39

@@ -21,6 +27,11 @@ patches:
2127
readOnly: true
2228
volumes:
2329
- name: quota-credentials
24-
secret:
25-
secretName: compute-quota-credentials
26-
optional: true
30+
projected:
31+
sources:
32+
- secret:
33+
name: compute-edge-milo-client-cert
34+
optional: true
35+
- configMap:
36+
name: compute-quota-kubeconfig
37+
optional: true

0 commit comments

Comments
 (0)