Skip to content

Commit

Permalink
chore: add netpol template for runner sandbox (#125)
Browse files Browse the repository at this point in the history
updates default package config when specifying an internal runner to
support the sandbox namespace communication to the gitlab workhorse.

Release-As: v16.11.1-uds.1
  • Loading branch information
zachariahmiller authored May 7, 2024
1 parent 423687d commit c5ad463
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
11 changes: 10 additions & 1 deletion chart/templates/uds-package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,15 @@ spec:
description: "Runner Ingress Workhorse"
{{- end }}

{{- if and .Values.runner.internal (hasKey .Values.runner "sandboxNamespace") (ne .Values.runner.sandboxNamespace "") }}
- direction: Ingress
selector:
app: webservice
remoteNamespace: {{ .Values.runner.sandboxNamespace | quote }}
port: 8181
description: "Runner Sandbox Ingress Workhorse"
{{- end }}

- direction: Ingress
remoteNamespace: monitoring
remoteSelector:
Expand Down Expand Up @@ -155,7 +164,7 @@ spec:
{{- end }}
description: "Registry Storage"

# Sidekiq Netpols
# Sidekiq Netpols
- direction: Egress
selector:
app: sidekiq
Expand Down
1 change: 1 addition & 0 deletions chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ runner:
selector:
app: gitlab-runner
namespace: gitlab-runner
sandboxNamespace: gitlab-runner-sandbox
# custom:
# # Notice no `remoteGenerated` field here on custom internal rule
# - direction: Ingress
Expand Down

0 comments on commit c5ad463

Please # to comment.