Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
system-charts
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Rancher商店
system-charts
Commits
86d8abd7
Commit
86d8abd7
authored
Feb 13, 2019
by
Frank Mai
Committed by
Craig Jellick
Feb 14, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't print any credential info to log
parent
b7cebf42
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
3 deletions
+0
-3
hooks-configmap.yaml
...ring/v0.0.2/charts/grafana/templates/hooks-configmap.yaml
+0
-2
hooks-configmap.yaml
...g/v0.0.2/charts/prometheus/templates/hooks-configmap.yaml
+0
-1
No files found.
charts/rancher-monitoring/v0.0.2/charts/grafana/templates/hooks-configmap.yaml
View file @
86d8abd7
...
...
@@ -17,7 +17,6 @@ data:
if [[ -f $srcpath ]] && [[ -d /host ]]; then
mkdir -p /host/grafana
cp -f $srcpath $dstpath
cat $srcpath
exit 0
fi
...
...
@@ -36,7 +35,6 @@ data:
token=$(cat /var/run/secrets/kubernetes.io/serviceaccount/token)
cat $srcpath | K8S_BEARERTOKEN="Bearer $token" jq 'to_entries | . + [{"key":"routes","value":[{"path":"api/v1","url":"{{ .Values.prometheusDatasourceURL }}/api/v1","headers":[{"name":"Authorization","content":env.K8S_BEARERTOKEN}]}]}] | from_entries' > $dstpath
cat $dstpath
exit 0
fi
...
...
charts/rancher-monitoring/v0.0.2/charts/prometheus/templates/hooks-configmap.yaml
View file @
86d8abd7
...
...
@@ -18,7 +18,6 @@ data:
token=$(cat /var/run/secrets/kubernetes.io/serviceaccount/token)
sed "s/REPLACE_PARAM_AUTHORIZATION/Bearer ${token}/g" $srcpath > $dstpath
cat $dstpath
exit 0
fi
...
...
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