Skip to content

Commit

Permalink
[opsportal] allow posting to /ops/portal/graphql (#405)
Browse files Browse the repository at this point in the history
update kube-oidc-proxy to 0.2.0
  • Loading branch information
jr0d authored Feb 5, 2020
1 parent bb48a78 commit 1b9a4b3
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 7 deletions.
2 changes: 1 addition & 1 deletion stable/opsportal/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ appVersion: 1.0.0
home: https://github.com/mesosphere/charts
description: OpsPortal Chart
name: opsportal
version: 0.2.0
version: 0.2.1
maintainers:
- name: hectorj2f
- name: alejandroEsc
Expand Down
8 changes: 8 additions & 0 deletions stable/opsportal/templates/ingress-opsportal-roles.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,17 @@ rules:
- nonResourceURLs:
- {{ .Values.opsportalRBAC.path | trimSuffix "/"}}
- {{ .Values.opsportalRBAC.path | trimSuffix "/" }}/*
- {{ .Values.opsportalRBAC.graphqlPath | trimSuffix "/"}}
verbs:
- get
- head
# Posting to graphql is required for ops portal viewing
- nonResourceURLs:
- {{ .Values.opsportalRBAC.graphqlPath | trimSuffix "/"}}
verbs:
- get
- head
- post

---
apiVersion: rbac.authorization.k8s.io/v1
Expand Down
1 change: 1 addition & 0 deletions stable/opsportal/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ kommander-ui:
opsportalRBAC:
enabled: true
path: /ops/portal
graphqlPath: /ops/portal/graphql

kibanaRBAC:
enabled: true
Expand Down
4 changes: 2 additions & 2 deletions staging/kube-oidc-proxy/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
apiVersion: v1
appVersion: "v0.1.1"
appVersion: "v0.2.0"
description: A Helm chart for kube-oidc-proxy
home: https://github.com/mesosphere/charts
name: kube-oidc-proxy
version: 0.1.8
version: 0.1.9
sources:
- https://github.com/jetstack/kube-oidc-proxy
maintainers:
Expand Down
21 changes: 18 additions & 3 deletions staging/kube-oidc-proxy/templates/clusterrole.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,23 @@ rules:
- "userextras/scopes"
verbs:
- "impersonate"
- apiGroups:
- "authentication.k8s.io"
resources:
- "tokenreviews"
verbs:
- "create"
- "get"
- "list"
- "watch"
- "update"
# kube-oidc-proxy init container requires to list services in order to get
# load balancer hostname
- apiGroups: [""]
resources: ["services"]
verbs: ["get", "list", "watch"]
- apiGroups:
- ""
resources:
- "services"
verbs:
- "get"
- "list"
- "watch"
2 changes: 1 addition & 1 deletion staging/kube-oidc-proxy/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ replicaCount: 1

image:
repository: quay.io/jetstack/kube-oidc-proxy
tag: v0.1.1
tag: v0.2.0
pullPolicy: IfNotPresent

imagePullSecrets: []
Expand Down

0 comments on commit 1b9a4b3

Please sign in to comment.