Skip to content

Commit

Permalink
Merge pull request #3937 from lsst-sqre/tickets/DM-47837
Browse files Browse the repository at this point in the history
DM-47837: Tag every GafaelfawrIngress with a service
  • Loading branch information
rra authored Dec 2, 2024
2 parents 1d824ac + 8e060e1 commit 384693b
Show file tree
Hide file tree
Showing 53 changed files with 98 additions and 35 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ config:
scopes:
all:
- "read:alertdb"
service: "alert-stream-broker"
template:
metadata:
name: {{ template "alertDatabase.fullname" . }}
Expand Down
3 changes: 2 additions & 1 deletion applications/argo-workflows/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ metadata:
name: argo-workflows
config:
baseUrl: {{ .Values.global.baseUrl | quote }}
loginRedirect: true
scopes:
all: {{ .Values.ingress.scopes }}
loginRedirect: true
service: "argo-workflows"
template:
metadata:
name: argo-workflows
Expand Down
1 change: 1 addition & 0 deletions applications/butler/templates/ingress-authenticated.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ config:
internal:
service: "butler"
scopes: []
service: "butler"

template:
metadata:
Expand Down
1 change: 1 addition & 0 deletions applications/checkerboard/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ config:
scopes:
all:
- "read:checkerboard"
service: "checkerboard"
template:
metadata:
name: {{ template "checkerboard.fullname" . }}
Expand Down
1 change: 1 addition & 0 deletions applications/cm-service/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ config:
scopes:
all:
- "exec:internal-tools"
service: "cm-service"
template:
metadata:
name: "cm-service"
Expand Down
1 change: 1 addition & 0 deletions applications/consdb/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ config:
scopes:
all:
- "read:image"
service: "consdb"
template:
metadata:
name: "consdb-pq"
Expand Down
1 change: 1 addition & 0 deletions applications/datalinker/templates/ingress-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ config:
scopes:
all:
- "read:image"
service: "datalinker"
# Request a delegated token to use for making calls to Butler server with the
# end-user's credentials.
delegate:
Expand Down
1 change: 1 addition & 0 deletions applications/datalinker/templates/ingress-tap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ config:
scopes:
all:
- "read:tap"
service: "datalinker"
template:
metadata:
name: {{ include "datalinker.fullname" . }}-tap
Expand Down
1 change: 1 addition & 0 deletions applications/exposurelog/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ config:
scopes:
all:
- "exec:internal-tools"
service: "exposurelog"
{{- else }}
scopes:
anonymous: true
Expand Down
1 change: 1 addition & 0 deletions applications/fastapi-bootcamp/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ config:
scopes:
all:
- "read:image"
service: "fastapi-bootcamp"
template:
metadata:
name: "fastapi-bootcamp"
Expand Down
1 change: 1 addition & 0 deletions applications/ghostwriter/templates/ingress-toplevel.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ config:
scopes:
all:
- "read:image"
service: "ghostwriter"
delegate:
notebook: {}
template:
Expand Down
1 change: 1 addition & 0 deletions applications/ghostwriter/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ config:
scopes:
all:
- "read:image"
service: "ghostwriter"
delegate:
notebook: {}
template:
Expand Down
1 change: 1 addition & 0 deletions applications/giftless/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ config:
scopes:
all:
- "write:git-lfs"
service: "giftless"
template:
metadata:
name: {{ template "giftless.fullname" . }}-rw
Expand Down
1 change: 1 addition & 0 deletions applications/hips/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ config:
scopes:
all:
- "read:image"
service: "hips"
template:
metadata:
name: "hips"
Expand Down
3 changes: 2 additions & 1 deletion applications/jira-data-proxy/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@ metadata:
{{- include "jira-data-proxy.labels" . | nindent 4 }}
config:
baseUrl: {{ .Values.global.baseUrl | quote }}
loginRedirect: false # endpoint is for API use only
scopes:
all:
- "exec:notebook"
loginRedirect: false # endpoint is for API use only
service: "jira-data-proxy"
template:
metadata:
name: "jira-data-proxy"
Expand Down
3 changes: 2 additions & 1 deletion applications/livetap/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ IVOA TAP service
| cadc-tap.config.pg.host | string | `"mock-pg:5432"` (the mock pg) | Postgres hostname:port to connect to |
| cadc-tap.config.pg.username | string | `"rubin"` | Postgres username to use to connect |
| cadc-tap.config.vaultSecretName | string | `"livetap"` | Vault secret name: the final key in the vault path |
| cadc-tap.ingress.path | string | `"live"` | |
| cadc-tap.ingress.path | string | `"live"` | Ingress path that should be routed to this service |
| cadc-tap.service | string | `"livetap"` | Name of the service from Gafaelfawr's perspective |
| global.baseUrl | string | Set by Argo CD | Base URL for the environment |
| global.host | string | Set by Argo CD | Host name for ingress |
| global.vaultSecretsPath | string | Set by Argo CD | Base path for Vault secrets |
5 changes: 4 additions & 1 deletion applications/livetap/values.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cadc-tap:
# Settings for the ingress rules.
ingress:
# -- Ingress path that should be routed to this service
path: "live"

config:
Expand All @@ -21,6 +21,9 @@ cadc-tap:
# -- Vault secret name: the final key in the vault path
vaultSecretName: "livetap"

# -- Name of the service from Gafaelfawr's perspective
service: "livetap"

# The following will be set by parameters injected by Argo CD and should not
# be set in the individual environment values files.
global:
Expand Down
3 changes: 2 additions & 1 deletion applications/mobu/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@ metadata:
{{- include "mobu.labels" . | nindent 4 }}
config:
baseUrl: {{ .Values.global.baseUrl | quote }}
loginRedirect: true
scopes:
all:
- "exec:admin"
loginRedirect: true
service: "mobu"
template:
metadata:
name: {{ template "mobu.fullname" . }}
Expand Down
1 change: 1 addition & 0 deletions applications/narrativelog/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ config:
scopes:
all:
- "exec:internal-tools"
service: "narrativelog"
{{- else }}
scopes:
anonymous: true
Expand Down
1 change: 1 addition & 0 deletions applications/nightreport/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ config:
scopes:
all:
- "exec:internal-tools"
service: "nightreport"
{{- else }}
scopes:
anonymous: true
Expand Down
3 changes: 2 additions & 1 deletion applications/noteburst/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@ metadata:
{{- include "noteburst.labels" . | nindent 4 }}
config:
baseUrl: {{ .Values.global.baseUrl | quote }}
loginRedirect: true
scopes:
all:
- "exec:notebook"
loginRedirect: true
service: "noteburst"
template:
metadata:
name: {{ template "noteburst.fullname" . }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ config:
scopes:
all:
- "exec:admin"
service: "nublado-controller"
template:
metadata:
name: "controller-admin"
Expand Down
3 changes: 2 additions & 1 deletion applications/nublado/templates/controller-ingress-files.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@ config:
scopes:
all:
- "write:files"
service: "nublado-files"
delegate:
internal:
service: "nublado"
service: "nublado-files"
scopes: []
template:
metadata:
Expand Down
1 change: 1 addition & 0 deletions applications/nublado/templates/controller-ingress-hub.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ config:
scopes:
all:
- "admin:jupyterlab"
service: "nublado-controller"
template:
metadata:
name: "controller-hub"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ config:
scopes:
all:
- "exec:notebook"
service: "nublado-controller"
delegate:
notebook: {}
template:
Expand Down
3 changes: 2 additions & 1 deletion applications/nublado/templates/proxy-ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@ metadata:
config:
baseUrl: {{ .Values.global.baseUrl | quote }}
authCacheDuration: "5m"
loginRedirect: true
scopes:
all:
- "exec:notebook"
loginRedirect: true
service: "nublado"
delegate:
notebook: {}
template:
Expand Down
3 changes: 2 additions & 1 deletion applications/nublado/templates/proxy-spawn-ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@ metadata:
{{- include "nublado.labels" . | nindent 4 }}
config:
baseUrl: {{ .Values.global.baseUrl | quote }}
loginRedirect: true
scopes:
all:
- "exec:notebook"
loginRedirect: true
service: "nublado"
delegate:
{{- if .Values.hub.minimumTokenLifetime }}
minimumLifetime: {{ .Values.hub.minimumTokenLifetime }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@ config:
scopes:
all:
- "exec:internal-tools"
service: "obsenv-ui"
delegate:
internal:
service: "obsenv-api"
service: "obsenv-ui"
scopes: []
template:
metadata:
Expand Down
3 changes: 2 additions & 1 deletion applications/ook/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@ metadata:
{{- include "ook.labels" . | nindent 4 }}
config:
baseUrl: {{ .Values.global.baseUrl | quote }}
loginRedirect: true
scopes:
all:
- "exec:admin"
loginRedirect: true
service: "ook"
template:
metadata:
name: {{ template "ook.fullname" . }}
Expand Down
3 changes: 2 additions & 1 deletion applications/plot-navigator/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@ metadata:
{{- include "plot-navigator.labels" . | nindent 4 }}
config:
baseUrl: {{ .Values.global.baseUrl | quote }}
loginRedirect: true
scopes:
all:
- "exec:portal"
loginRedirect: true
service: "plot-navigator"
delegate:
internal:
scopes: []
Expand Down
3 changes: 2 additions & 1 deletion applications/portal/templates/ingress-admin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@ metadata:
{{- include "portal.labels" . | nindent 4 }}
config:
baseUrl: {{ .Values.global.baseUrl | quote }}
loginRedirect: true
scopes:
all:
- "exec:admin"
loginRedirect: true
service: "portal"
template:
metadata:
name: {{ include "portal.fullname" . }}-admin
Expand Down
3 changes: 2 additions & 1 deletion applications/portal/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@ metadata:
config:
baseUrl: {{ .Values.global.baseUrl | quote }}
authCacheDuration: "5m"
loginRedirect: true
scopes:
all:
- "exec:portal"
loginRedirect: true
service: "portal"
delegate:
internal:
service: "portal"
Expand Down
1 change: 1 addition & 0 deletions applications/ppdb-replication/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ config:
scopes:
all:
- "read:image"
service: "ppdb-replication"
template:
metadata:
name: "ppdb-replication"
Expand Down
3 changes: 2 additions & 1 deletion applications/production-tools/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@ metadata:
{{- include "production-tools.labels" . | nindent 4 }}
config:
baseUrl: {{ .Values.global.baseUrl | quote }}
loginRedirect: true
scopes:
all:
- "exec:portal"
loginRedirect: true
service: "production-tools"
template:
metadata:
name: {{ template "production-tools.fullname" . }}
Expand Down
1 change: 1 addition & 0 deletions applications/s3proxy/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ config:
scopes:
all:
- "read:image"
service: "s3proxy"
template:
metadata:
name: "s3proxy"
Expand Down
3 changes: 2 additions & 1 deletion applications/schedview-snapshot/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@ metadata:
{{- include "schedview-snapshot.labels" . | nindent 4 }}
config:
baseUrl: {{ .Values.global.baseUrl | quote }}
loginRedirect: true
scopes:
all:
- "exec:portal"
loginRedirect: true
service: "schedview-snapshot"
template:
metadata:
name: "schedview-snapshot"
Expand Down
1 change: 1 addition & 0 deletions applications/sia/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ config:
scopes:
all:
- "read:image"
service: "sia"
delegate:
internal:
service: "sia"
Expand Down
11 changes: 6 additions & 5 deletions applications/siav2/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,17 @@ metadata:
config:
authType: "basic"
baseUrl: {{ .Values.global.baseUrl | quote }}
loginRedirect: false
scopes:
all:
- "read:image"
service: "siav2"
delegate:
internal:
scopes:
- read:tap
- "read:tap"
service: "siav2"
useAuthorization: true
loginRedirect: false
scopes:
all:
- read:image
template:
metadata:
name: "siav2-authenticated"
Expand Down
Loading

0 comments on commit 384693b

Please sign in to comment.