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
a73f8b17
Commit
a73f8b17
authored
Nov 12, 2019
by
Erik Wilson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update check-config.sh for k3s
parent
b0d1ca9c
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
30 additions
and
0 deletions
+30
-0
main.go
cmd/k3s/main.go
+1
-0
check-config.sh
contrib/util/check-config.sh
+0
-0
check-config.go
pkg/cli/cmds/check-config.go
+15
-0
package-cli
scripts/package-cli
+13
-0
sonobuoy
scripts/sonobuoy
+1
-0
No files found.
cmd/k3s/main.go
View file @
a73f8b17
...
...
@@ -29,6 +29,7 @@ func main() {
cmds
.
NewKubectlCommand
(
externalCLIAction
(
"kubectl"
)),
cmds
.
NewCRICTL
(
externalCLIAction
(
"crictl"
)),
cmds
.
NewCtrCommand
(
externalCLIAction
(
"ctr"
)),
cmds
.
NewCheckConfigCommand
(
externalCLIAction
(
"check-config"
)),
}
err
:=
app
.
Run
(
os
.
Args
)
...
...
contrib/util/check-config.sh
View file @
a73f8b17
This diff is collapsed.
Click to expand it.
pkg/cli/cmds/check-config.go
0 → 100644
View file @
a73f8b17
package
cmds
import
(
"github.com/urfave/cli"
)
func
NewCheckConfigCommand
(
action
func
(
*
cli
.
Context
)
error
)
cli
.
Command
{
return
cli
.
Command
{
Name
:
"check-config"
,
Usage
:
"Run config check"
,
SkipFlagParsing
:
true
,
SkipArgReorder
:
true
,
Action
:
action
,
}
}
scripts/package-cli
View file @
a73f8b17
...
...
@@ -17,11 +17,24 @@ for i in bridge flannel host-local loopback portmap; do
ln
-s
cni ./bin/
$i
done
cp
contrib/util/check-config.sh bin/check-config
rm
-rf
build/data
mkdir
-p
build/data build/out
mkdir
-p
dist/artifacts
(
set
+x
cd
bin
find
.
-not
-path
'*/\.*'
-type
f
-exec
sha256sum
{}
\;
|
sed
-e
's| \./| |'
|
sort
-k2
>
.sha256sums
(
for
f
in
$(
find
.
-type
l
)
;
do
echo
$f
$(
readlink
$f
)
done
)
|
sed
-e
's|^\./||'
|
sort
>
.links
set
-x
)
tar
cvzf ./build/out/data.tar.gz
--exclude
./bin/hyperkube ./bin ./etc
HASH
=
$(
sha256sum
./build/out/data.tar.gz |
awk
'{print $1}'
)
...
...
scripts/sonobuoy
View file @
a73f8b17
...
...
@@ -55,6 +55,7 @@ docker run -d --name ${K3S_SERVER} --privileged \
K3S_IP
=
$(
docker inspect
--format
'{{ .NetworkSettings.IPAddress }}'
${
K3S_SERVER
})
echo
"Started
${
K3S_SERVER
}
@
${
K3S_IP
}
:
${
K3S_PORT
}
"
docker
exec
${
K3S_SERVER
}
check-config
||
true
timeout
--foreground
1m bash
-c
wait-for-kubeconfig
verify-valid-versions
${
K3S_SERVER
}
...
...
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