Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
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
0
Merge Requests
0
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
k3s
Commits
088141ca
Commit
088141ca
authored
Jul 20, 2017
by
Kubernetes Submit Queue
Committed by
GitHub
Jul 20, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #49298 from shyamjvs/fix-log-dump
Automatic merge from submit-queue Fix bug with sed in log-dump script /cc @wojtek-t
parents
c2dd291e
ba716796
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
log-dump.sh
cluster/log-dump/log-dump.sh
+5
-5
No files found.
cluster/log-dump/log-dump.sh
View file @
088141ca
...
...
@@ -270,16 +270,16 @@ function dump_nodes_with_logexporter() {
fi
# Obtain parameters required by logexporter.
local
-r
service_account_credentials
=
"
$(
cat
${
GOOGLE_APPLICATION_CREDENTIALS
}
|
base64
)
"
local
-r
service_account_credentials
=
"
$(
cat
${
GOOGLE_APPLICATION_CREDENTIALS
}
|
base64
|
tr
-d
'\n'
)
"
local
-r
cloud_provider
=
"
${
KUBERNETES_PROVIDER
}
"
local
-r
enable_hollow_node_logs
=
"
${
ENABLE_HOLLOW_NODE_LOGS
:-
false
}
"
local
-r
logexport_timeout_seconds
=
"
$((
30
+
NUM_NODES
/
10
))
"
# Fill in the parameters in the logexporter daemonset template.
sed
-i
''
-e
"s
/{{.ServiceAccountCredentials}}/
${
service_account_credentials
}
/
g"
"
${
KUBE_ROOT
}
/cluster/log-dump/logexporter-daemonset.yaml"
sed
-i
''
-e
"s
/{{.CloudProvider}}/
${
cloud_provider
}
/
g"
"
${
KUBE_ROOT
}
/cluster/log-dump/logexporter-daemonset.yaml"
sed
-i
''
-e
"s
/{{.GCSPath}}/
${
gcs_artifacts_dir
}
/
g"
"
${
KUBE_ROOT
}
/cluster/log-dump/logexporter-daemonset.yaml"
sed
-i
''
-e
"s
/{{.EnableHollowNodeLogs}}/
${
enable_hollow_node_logs
}
/
g"
"
${
KUBE_ROOT
}
/cluster/log-dump/logexporter-daemonset.yaml"
sed
-i
''
-e
"s
@{{.ServiceAccountCredentials}}@
${
service_account_credentials
}
@
g"
"
${
KUBE_ROOT
}
/cluster/log-dump/logexporter-daemonset.yaml"
sed
-i
''
-e
"s
@{{.CloudProvider}}@
${
cloud_provider
}
@
g"
"
${
KUBE_ROOT
}
/cluster/log-dump/logexporter-daemonset.yaml"
sed
-i
''
-e
"s
@{{.GCSPath}}@
${
gcs_artifacts_dir
}
@
g"
"
${
KUBE_ROOT
}
/cluster/log-dump/logexporter-daemonset.yaml"
sed
-i
''
-e
"s
@{{.EnableHollowNodeLogs}}@
${
enable_hollow_node_logs
}
@
g"
"
${
KUBE_ROOT
}
/cluster/log-dump/logexporter-daemonset.yaml"
# Create the logexporter namespace, service-account secret and the logexporter daemonset within that namespace.
KUBECTL
=
"
${
KUBECTL
:-${
KUBE_ROOT
}
/cluster/kubectl.sh
}
"
...
...
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