Skip to content

Commit

Permalink
chore: no rbac on kind (#11714)
Browse files Browse the repository at this point in the history
- save a few minutes
- allow kind tests in parallel
- dont need to clean this up between kind tests
  • Loading branch information
ludamad authored Feb 4, 2025
1 parent 9dc8158 commit 7a142af
Show file tree
Hide file tree
Showing 11 changed files with 15 additions and 9 deletions.
2 changes: 1 addition & 1 deletion spartan/aztec-network/templates/boot-node.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ spec:
dnsPolicy: ClusterFirstWithHostNet
{{- if .Values.network.public }}
hostNetwork: true
serviceAccountName: {{ include "aztec-network.fullname" . }}-node
{{- include "aztec-network.publicAntiAffinity" . | nindent 6 }}
{{- end }}
serviceAccountName: {{ include "aztec-network.fullname" . }}-node
initContainers:
{{- include "aztec-network.p2pSetupContainer" . | nindent 8 }}
{{- include "aztec-network.serviceAddressSetupContainer" . | nindent 8 }}
Expand Down
2 changes: 2 additions & 0 deletions spartan/aztec-network/templates/deploy-l1-verifier.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ spec:
app: deploy-l1-verifier
spec:
restartPolicy: OnFailure
{{- if .Values.network.public }}
serviceAccountName: {{ include "aztec-network.fullname" . }}-node
{{- end }}
volumes:
- name: config
emptyDir: {}
Expand Down
2 changes: 1 addition & 1 deletion spartan/aztec-network/templates/faucet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ spec:
{{- include "aztec-network.selectorLabels" . | nindent 8 }}
app: faucet
spec:
serviceAccountName: {{ include "aztec-network.fullname" . }}-node
{{- if .Values.network.gke }}
nodeSelector:
node-type: network
{{- end }}
{{- if .Values.network.public }}
serviceAccountName: {{ include "aztec-network.fullname" . }}-node
hostNetwork: true
dnsPolicy: ClusterFirstWithHostNet
{{- end }}
Expand Down
2 changes: 1 addition & 1 deletion spartan/aztec-network/templates/prover-agent.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ spec:
value: "true"
effect: "NoSchedule"
{{- end }}
serviceAccountName: {{ include "aztec-network.fullname" . }}-node
{{- if .Values.network.public }}
hostNetwork: true
dnsPolicy: ClusterFirstWithHostNet
serviceAccountName: {{ include "aztec-network.fullname" . }}-node
{{- end }}
volumes:
- name: config
Expand Down
2 changes: 1 addition & 1 deletion spartan/aztec-network/templates/prover-broker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ spec:
{{- include "aztec-network.selectorLabels" . | nindent 8 }}
app: prover-broker
spec:
serviceAccountName: {{ include "aztec-network.fullname" . }}-node
{{- if .Values.network.gke }}
nodeSelector:
local-ssd: "{{ .Values.storage.localSsd }}"
node-type: network
{{- end }}
{{- if .Values.network.public }}
serviceAccountName: {{ include "aztec-network.fullname" . }}-node
hostNetwork: true
dnsPolicy: ClusterFirstWithHostNet
{{- include "aztec-network.publicAntiAffinity" . | nindent 6 }}
Expand Down
2 changes: 1 addition & 1 deletion spartan/aztec-network/templates/prover-node.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ spec:
node-type: network
{{- end }}
{{- if .Values.network.public }}
serviceAccountName: {{ include "aztec-network.fullname" . }}-node
hostNetwork: true
dnsPolicy: ClusterFirstWithHostNet
{{- include "aztec-network.publicAntiAffinity" . | nindent 6 }}
{{- end }}
serviceAccountName: {{ include "aztec-network.fullname" . }}-node
initContainers:
{{- include "aztec-network.serviceAddressSetupContainer" . | nindent 8 }}
{{- include "aztec-network.p2pSetupContainer" . | nindent 8 }}
Expand Down
2 changes: 1 addition & 1 deletion spartan/aztec-network/templates/pxe.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ spec:
local-ssd: "{{ .Values.storage.localSsd }}"
node-type: network
{{- end }}
serviceAccountName: {{ include "aztec-network.fullname" . }}-node
{{- if .Values.network.public }}
serviceAccountName: {{ include "aztec-network.fullname" . }}-node
hostNetwork: true
dnsPolicy: ClusterFirstWithHostNet
{{- end }}
Expand Down
4 changes: 3 additions & 1 deletion spartan/aztec-network/templates/rbac.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if .Values.network.public }}
---
apiVersion: v1
kind: ServiceAccount
Expand Down Expand Up @@ -55,4 +56,5 @@ roleRef:
subjects:
- kind: ServiceAccount
name: {{ include "aztec-network.fullname" . }}-node
namespace: {{ .Release.Namespace }}
namespace: {{ .Release.Namespace }}
{{- end }}
2 changes: 2 additions & 0 deletions spartan/aztec-network/templates/setup-l2-contracts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ spec:
app: setup-l2-contracts
spec:
restartPolicy: OnFailure
{{- if .Values.network.public }}
serviceAccountName: {{ include "aztec-network.fullname" . }}-node
{{- end }}
volumes:
- name: scripts
configMap:
Expand Down
2 changes: 1 addition & 1 deletion spartan/aztec-network/templates/transaction-bot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ spec:
effect: "NoSchedule"
{{- end }}
{{- if .Values.network.public }}
serviceAccountName: {{ include "aztec-network.fullname" . }}-node
hostNetwork: true
{{- end }}
serviceAccountName: {{ include "aztec-network.fullname" . }}-node
volumes:
- name: config
emptyDir: {}
Expand Down
2 changes: 1 addition & 1 deletion spartan/aztec-network/templates/validator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ spec:
{{- end }}

{{- if .Values.network.public }}
serviceAccountName: {{ include "aztec-network.fullname" . }}-node
hostNetwork: true
dnsPolicy: ClusterFirstWithHostNet
{{- include "aztec-network.publicAntiAffinity" . | nindent 6 }}
{{- end }}
serviceAccountName: {{ include "aztec-network.fullname" . }}-node
initContainers:
{{- include "aztec-network.p2pSetupContainer" . | nindent 8 }}
{{- include "aztec-network.serviceAddressSetupContainer" . | nindent 8 }}
Expand Down

0 comments on commit 7a142af

Please sign in to comment.