Skip to content

Commit

Permalink
chore: fix ops portal and kommander charts
Browse files Browse the repository at this point in the history
Fix the traefik related annotations. Some traefik forward auth related
configurations should be moved to kubeaddons-configs.
  • Loading branch information
jieyu committed Jul 19, 2019
1 parent 556709a commit 59dd4f0
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 9 deletions.
2 changes: 1 addition & 1 deletion stable/kommander/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ name: kommander
home: https://github.com/mesosphere/kommander
appVersion: "1.47.2"
description: Kommander
version: 0.1.11
version: 0.1.12
maintainers:
- name: hectorj2f
7 changes: 0 additions & 7 deletions stable/kommander/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,6 @@ metadata:
heritage: "{{ .Release.Service }}"
annotations:
kubernetes.io/ingress.class: traefik
{{- if (eq "konvoy" .Values.mode) }}
traefik.ingress.kubernetes.io/priority: "1"
traefik.ingress.kubernetes.io/redirect-permanent: "true"
traefik.ingress.kubernetes.io/redirect-regex: ^https://([^/]*)/ops/portal$
traefik.ingress.kubernetes.io/redirect-replacement: https://$1/ops/portal/
traefik.ingress.kubernetes.io/request-modifier: 'ReplacePathRegex: ^/ops/portal/(.*) /$1'
{{- else }}
traefik.frontend.rule.type: {{ .Values.ingress.traefikFrontendRuleType }}
{{- with .Values.ingress.extraAnnotations }}
{{- toYaml . | nindent 4 }}
Expand Down
2 changes: 1 addition & 1 deletion stable/opsportal/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ appVersion: "1.0.0"
home: https://github.com/mesosphere/charts
description: OpsPortal Chart
name: opsportal
version: 0.0.4
version: 0.0.5
maintainers:
- name: hectorj2f
3 changes: 3 additions & 0 deletions stable/opsportal/templates/ingress-opsportal.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ metadata:
kubernetes.io/ingress.class: traefik
traefik.frontend.rule.type: PathPrefixStrip
traefik.ingress.kubernetes.io/priority: "2"
traefik.ingress.kubernetes.io/auth-type: forward
traefik.ingress.kubernetes.io/auth-url: http://traefik-forward-auth-kubeaddons.kubeaddons.svc.cluster.local:4181/
traefik.ingress.kubernetes.io/auth-response-headers: X-Forwarded-User
name: {{ template "opsportal.fullname" . }}-addons
namespace: {{ .Release.Namespace }}
spec:
Expand Down

0 comments on commit 59dd4f0

Please sign in to comment.