Skip to content

Commit

Permalink
feat: update newtwork configuraions in helm chart
Browse files Browse the repository at this point in the history
  • Loading branch information
rjones18 committed Jul 11, 2024
1 parent 5dfdc5b commit 05089da
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
16 changes: 16 additions & 0 deletions chart/templates/uds-package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,19 @@ spec:
podLabels:
app.kubernetes.io/name: jira
remoteGenerated: Anywhere

# Custom rules for unanticipated scenarios
{{- range .Values.custom }}
- direction: {{ .direction }}
selector:
{{ .selector | toYaml | nindent 10 }}
{{- if not .remoteGenerated }}
remoteNamespace: {{ .remoteNamespace }}
remoteSelector:
{{ .remoteSelector | toYaml | nindent 10 }}
port: {{ .port }}
{{- else }}
remoteGenerated: {{ .remoteGenerated }}
{{- end }}
description: {{ .description }}
{{- end }}
16 changes: 16 additions & 0 deletions chart/values.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1,18 @@
domain: "###ZARF_VAR_DOMAIN###"
sso: true
# custom:
# # Notice no `remoteGenerated` field here on custom internal rule
# - direction: Ingress
# selector:
# app: jenkins
# remoteNamespace: jenkins
# remoteSelector:
# app: jenkins
# port: 8180
# description: "Ingress from Jenkins"
# # No `remoteNamespace`, `remoteSelector`, or `port` fields on rule to `remoteGenerated`
# - direction: Egress
# selector:
# app: webservice
# remoteGenerated: Anywhere
# description: "Egress from Mattermost"

Check failure on line 18 in chart/values.yaml

View workflow job for this annotation

GitHub Actions / Lint

18:44 [new-line-at-end-of-file] no new line character at the end of file

0 comments on commit 05089da

Please sign in to comment.