Skip to content

Commit

Permalink
Use non-Gafaelfawr ingress
Browse files Browse the repository at this point in the history
  • Loading branch information
dhirving committed Nov 20, 2024
1 parent f16b50a commit 14021ee
Showing 1 changed file with 17 additions and 36 deletions.
53 changes: 17 additions & 36 deletions applications/butler/templates/ingress-authenticated.yaml
Original file line number Diff line number Diff line change
@@ -1,40 +1,21 @@
apiVersion: gafaelfawr.lsst.io/v1alpha1
kind: GafaelfawrIngress
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: "butler"
labels:
{{- include "butler.labels" . | nindent 4 }}
config:
baseUrl: {{ .Values.global.baseUrl | quote }}
scopes:
all:
- "read:image"
loginRedirect: false
# Butler needs a delegated token so that we can query Gafaelfawr for the
# user's group membership
delegate:
internal:
service: "butler"
scopes: []

template:
metadata:
name: "butler"
{{- with .Values.ingress.annotations }}
annotations:
{{- toYaml . | nindent 6 }}
{{- end }}
spec:
rules:
- host: {{ required "global.host must be set" .Values.global.host | quote }}
http:
paths:
{{- range $repositoryLabel, $unused := .Values.config.repositories }}
- path: "{{ $.Values.config.pathPrefix }}/repo/{{ $repositoryLabel }}"
pathType: "Prefix"
backend:
service:
name: "butler"
port:
number: 8080
{{- end }}
spec:
ingressClassName: "nginx"
rules:
- host: {{ required "global.host must be set" .Values.global.host | quote }}
http:
paths:
{{- range $repositoryLabel, $unused := .Values.config.repositories }}
- path: "{{ $.Values.config.pathPrefix }}/repo/{{ $repositoryLabel }}"
pathType: "Prefix"
backend:
service:
name: "butler"
port:
number: 8080
{{- end }}

0 comments on commit 14021ee

Please sign in to comment.