Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
influxdb
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
influxdb
Commits
21c78bc2
Unverified
Commit
21c78bc2
authored
May 21, 2020
by
David McKay
Committed by
GitHub
May 21, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #65 from kristinnardal2/kristinnardal2/generic-oidc
Kristinnardal2/generic oidc
parents
6f68a67f
599d5d95
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
98 additions
and
10 deletions
+98
-10
Chart.yaml
charts/chronograf/Chart.yaml
+1
-1
deployment.yaml
charts/chronograf/templates/deployment.yaml
+59
-0
secret.yaml
charts/chronograf/templates/secret.yaml
+14
-2
values.yaml
charts/chronograf/values.yaml
+24
-7
No files found.
charts/chronograf/Chart.yaml
View file @
21c78bc2
apiVersion
:
v1
apiVersion
:
v1
name
:
chronograf
name
:
chronograf
version
:
1.1.1
2
version
:
1.1.1
3
appVersion
:
1.8.0
appVersion
:
1.8.0
description
:
Open-source web application written in Go and React.js that provides
description
:
Open-source web application written in Go and React.js that provides
the tools to visualize your monitoring data and easily create alerting and automation
the tools to visualize your monitoring data and easily create alerting and automation
...
...
charts/chronograf/templates/deployment.yaml
View file @
21c78bc2
...
@@ -32,6 +32,15 @@ spec:
...
@@ -32,6 +32,15 @@ spec:
secretKeyRef
:
secretKeyRef
:
name
:
{{
template "chronograf.fullname" .
}}
name
:
{{
template "chronograf.fullname" .
}}
key
:
token_secret
key
:
token_secret
{{
- if .Values.oauth.use_id_token
}}
-
name
:
USE_ID_TOKEN
value
:
"
true"
-
name
:
JWKS_URL
valueFrom
:
secretKeyRef
:
name
:
{{
template "chronograf.fullname" .
}}
key
:
jwks_url
{{
- end
}}
{{
- if .Values.oauth.github.enabled
}}
{{
- if .Values.oauth.github.enabled
}}
-
name
:
GH_CLIENT_ID
-
name
:
GH_CLIENT_ID
valueFrom
:
valueFrom
:
...
@@ -88,6 +97,56 @@ spec:
...
@@ -88,6 +97,56 @@ spec:
name
:
{{
template "chronograf.fullname" .
}}
name
:
{{
template "chronograf.fullname" .
}}
key
:
go_public_url
key
:
go_public_url
{{
- end
}}
{{
- end
}}
{{
- if .Values.oauth.generic.enabled
}}
{{
- if .Values.oauth.generic.name
}}
-
name
:
GENERIC_NAME
value
:
{{
quote .Values.oauth.generic.name
}}
{{
- end
}}
{{
- if .Values.oauth.generic.domains
}}
-
name
:
GENERIC_DOMAINS
value
:
{{
quote .Values.oauth.generic.domains
}}
{{
- end
}}
-
name
:
GENERIC_CLIENT_ID
valueFrom
:
secretKeyRef
:
name
:
{{
template "chronograf.fullname" .
}}
key
:
gen_client_id
-
name
:
GENERIC_CLIENT_SECRET
valueFrom
:
secretKeyRef
:
name
:
{{
template "chronograf.fullname" .
}}
key
:
gen_client_secret
-
name
:
GENERIC_API_KEY
valueFrom
:
secretKeyRef
:
name
:
{{
template "chronograf.fullname" .
}}
key
:
gen_api_key
-
name
:
GENERIC_SCOPES
valueFrom
:
secretKeyRef
:
name
:
{{
template "chronograf.fullname" .
}}
key
:
gen_scopes
-
name
:
PUBLIC_URL
valueFrom
:
secretKeyRef
:
name
:
{{
template "chronograf.fullname" .
}}
key
:
gen_public_url
-
name
:
GENERIC_AUTH_URL
valueFrom
:
secretKeyRef
:
name
:
{{
template "chronograf.fullname" .
}}
key
:
gen_auth_url
-
name
:
GENERIC_TOKEN_URL
valueFrom
:
secretKeyRef
:
name
:
{{
template "chronograf.fullname" .
}}
key
:
gen_token_url
-
name
:
GENERIC_API_URL
valueFrom
:
secretKeyRef
:
name
:
{{
template "chronograf.fullname" .
}}
key
:
gen_api_url
{{
- end
}}
{{
- end
}}
{{
- end
}}
{{
- if .Values.envFromSecret
}}
{{
- if .Values.envFromSecret
}}
envFrom
:
envFrom
:
...
...
charts/chronograf/templates/secret.yaml
View file @
21c78bc2
...
@@ -6,6 +6,9 @@ metadata:
...
@@ -6,6 +6,9 @@ metadata:
type
:
Opaque
type
:
Opaque
data
:
data
:
token_secret
:
{{
.Values.oauth.token_secret | b64enc | quote
}}
token_secret
:
{{
.Values.oauth.token_secret | b64enc | quote
}}
{{
- if .Values.oauth.jwks_url
}}
jwks_url
:
{{
.Values.oauth.jwks_url | b64enc | quote
}}
{{
- end
}}
{{
- if .Values.oauth.github.enabled
}}
{{
- if .Values.oauth.github.enabled
}}
gh_client_id
:
{{
.Values.oauth.github.client_id | b64enc | quote
}}
gh_client_id
:
{{
.Values.oauth.github.client_id | b64enc | quote
}}
gh_client_secret
:
{{
.Values.oauth.github.client_secret | b64enc | quote
}}
gh_client_secret
:
{{
.Values.oauth.github.client_secret | b64enc | quote
}}
...
@@ -22,4 +25,14 @@ data:
...
@@ -22,4 +25,14 @@ data:
he_client_secret
:
{{
.Values.oauth.heroku.client_secret | b64enc | quote
}}
he_client_secret
:
{{
.Values.oauth.heroku.client_secret | b64enc | quote
}}
he_orgs
:
{{
.Values.oauth.heroku.heroku_orgs | b64enc | quote
}}
he_orgs
:
{{
.Values.oauth.heroku.heroku_orgs | b64enc | quote
}}
{{
- end
}}
{{
- end
}}
{{
- end
}}
{{
- if .Values.oauth.generic.enabled
}}
\ No newline at end of file
gen_client_id
:
{{
.Values.oauth.generic.client_id | b64enc | quote
}}
gen_client_secret
:
{{
.Values.oauth.generic.client_secret | b64enc | quote
}}
gen_api_key
:
{{
.Values.oauth.generic.api_key | b64enc | quote
}}
gen_scopes
:
{{
.Values.oauth.generic.scopes | b64enc | quote
}}
gen_public_url
:
{{
.Values.oauth.generic.public_url | b64enc | quote
}}
gen_auth_url
:
{{
.Values.oauth.generic.auth_url | b64enc | quote
}}
gen_token_url
:
{{
.Values.oauth.generic.token_url | b64enc | quote
}}
gen_api_url
:
{{
.Values.oauth.generic.api_url | b64enc | quote
}}
{{
- end
}}
{{
- end
}}
charts/chronograf/values.yaml
View file @
21c78bc2
...
@@ -75,27 +75,44 @@ oauth:
...
@@ -75,27 +75,44 @@ oauth:
# Need to set to true to use any of the oauth options
# Need to set to true to use any of the oauth options
enabled
:
false
enabled
:
false
# Used for JWT to support running multiple copies of Chronograf
# Used for JWT to support running multiple copies of Chronograf
token_secret
:
CHANGE_ME
# token_secret: CHANGE_ME
# Set if the OAuth provider implements oidc with RS256 signature
# use_id_token: true
# jwks_url: ""
github
:
github
:
enabled
:
false
enabled
:
false
client_id
:
CHANGE_ME
#
client_id: CHANGE_ME
client_secret
:
CHANGE_ME
#
client_secret: CHANGE_ME
# This is a comma separated list of GH organizations (OPTIONAL)
# This is a comma separated list of GH organizations (OPTIONAL)
gh_orgs
:
"
"
gh_orgs
:
"
"
google
:
google
:
enabled
:
false
enabled
:
false
client_id
:
CHANGE_ME
#
client_id: CHANGE_ME
client_secret
:
CHANGE_ME
#
client_secret: CHANGE_ME
# eg. http://chronograf.foobar.com
# eg. http://chronograf.foobar.com
public_url
:
"
"
public_url
:
"
"
# This is a comma separated list of Google Apps domains (OPTIONAL)
# This is a comma separated list of Google Apps domains (OPTIONAL)
domains
:
"
"
domains
:
"
"
heroku
:
heroku
:
enabled
:
false
enabled
:
false
client_id
:
CHANGE_ME
#
client_id: CHANGE_ME
client_secret
:
CHANGE_ME
#
client_secret: CHANGE_ME
# This is a comma separated list of Heroku organizations (OPTIONAL)
# This is a comma separated list of Heroku organizations (OPTIONAL)
he_orgs
:
"
"
he_orgs
:
"
"
generic
:
enabled
:
false
# client_id: CHANGE_ME
# client_secret: CHANGE_ME
api_key
:
"
"
scopes
:
"
"
# eg. http://chronograf.foobar.com
public_url
:
"
"
auth_url
:
"
"
token_url
:
"
"
api_url
:
"
"
# optional
# name: "generic"
# domains: ""
## Extra environment variables that will be passed onto deployment pods
## Extra environment variables that will be passed onto deployment pods
env
:
env
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment