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
6ebe874d
Unverified
Commit
6ebe874d
authored
Jan 29, 2019
by
Kubernetes Prow Robot
Committed by
GitHub
Jan 29, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #73212 from danielqsj/samplecontroller
fix shellcheck in sample-controller
parents
5262dba0
078115a6
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
9 deletions
+7
-9
.shellcheck_failures
hack/.shellcheck_failures
+0
-2
update-codegen.sh
staging/src/k8s.io/sample-controller/hack/update-codegen.sh
+6
-6
verify-codegen.sh
staging/src/k8s.io/sample-controller/hack/verify-codegen.sh
+1
-1
No files found.
hack/.shellcheck_failures
View file @
6ebe874d
...
@@ -186,8 +186,6 @@
...
@@ -186,8 +186,6 @@
./staging/src/k8s.io/sample-apiserver/hack/build-image.sh
./staging/src/k8s.io/sample-apiserver/hack/build-image.sh
./staging/src/k8s.io/sample-apiserver/hack/update-codegen.sh
./staging/src/k8s.io/sample-apiserver/hack/update-codegen.sh
./staging/src/k8s.io/sample-apiserver/hack/verify-codegen.sh
./staging/src/k8s.io/sample-apiserver/hack/verify-codegen.sh
./staging/src/k8s.io/sample-controller/hack/update-codegen.sh
./staging/src/k8s.io/sample-controller/hack/verify-codegen.sh
./test/cmd/apply.sh
./test/cmd/apply.sh
./test/cmd/apps.sh
./test/cmd/apps.sh
./test/cmd/authorization.sh
./test/cmd/authorization.sh
...
...
staging/src/k8s.io/sample-controller/hack/update-codegen.sh
View file @
6ebe874d
...
@@ -18,18 +18,18 @@ set -o errexit
...
@@ -18,18 +18,18 @@ set -o errexit
set
-o
nounset
set
-o
nounset
set
-o
pipefail
set
-o
pipefail
SCRIPT_ROOT
=
$(
dirname
${
BASH_SOURCE
}
)
/..
SCRIPT_ROOT
=
$(
dirname
"
${
BASH_SOURCE
[0]
}
"
)
/..
CODEGEN_PKG
=
${
CODEGEN_PKG
:-$(
cd
${
SCRIPT_ROOT
}
;
ls
-d
-1
./vendor/k8s.io/code-generator 2>/dev/null
||
echo
../code-generator
)}
CODEGEN_PKG
=
${
CODEGEN_PKG
:-$(
cd
"
${
SCRIPT_ROOT
}
"
;
ls
-d
-1
./vendor/k8s.io/code-generator 2>/dev/null
||
echo
../code-generator
)}
# generate the code with:
# generate the code with:
# --output-base because this script should also be able to run inside the vendor dir of
# --output-base because this script should also be able to run inside the vendor dir of
# k8s.io/kubernetes. The output-base is needed for the generators to output into the vendor dir
# k8s.io/kubernetes. The output-base is needed for the generators to output into the vendor dir
# instead of the $GOPATH directly. For normal projects this can be dropped.
# instead of the $GOPATH directly. For normal projects this can be dropped.
${
CODEGEN_PKG
}
/generate-groups.sh
"deepcopy,client,informer,lister"
\
"
${
CODEGEN_PKG
}
"
/generate-groups.sh
"deepcopy,client,informer,lister"
\
k8s.io/sample-controller/pkg/client k8s.io/sample-controller/pkg/apis
\
k8s.io/sample-controller/pkg/client k8s.io/sample-controller/pkg/apis
\
samplecontroller:v1alpha1
\
samplecontroller:v1alpha1
\
--output-base
"
$(
dirname
${
BASH_SOURCE
}
)
/../../.."
\
--output-base
"
$(
dirname
"
${
BASH_SOURCE
[0]
}
"
)
/../../.."
\
--go-header-file
${
SCRIPT_ROOT
}
/hack/boilerplate.go.txt
--go-header-file
"
${
SCRIPT_ROOT
}
"
/hack/boilerplate.go.txt
# To use your own boilerplate text use:
# To use your own boilerplate text use:
# --go-header-file
${SCRIPT_ROOT}
/hack/custom-boilerplate.go.txt
# --go-header-file
"${SCRIPT_ROOT}"
/hack/custom-boilerplate.go.txt
staging/src/k8s.io/sample-controller/hack/verify-codegen.sh
View file @
6ebe874d
...
@@ -18,7 +18,7 @@ set -o errexit
...
@@ -18,7 +18,7 @@ set -o errexit
set
-o
nounset
set
-o
nounset
set
-o
pipefail
set
-o
pipefail
SCRIPT_ROOT
=
$(
dirname
"
${
BASH_SOURCE
}
"
)
/..
SCRIPT_ROOT
=
$(
dirname
"
${
BASH_SOURCE
[0]
}
"
)
/..
DIFFROOT
=
"
${
SCRIPT_ROOT
}
/pkg"
DIFFROOT
=
"
${
SCRIPT_ROOT
}
/pkg"
TMP_DIFFROOT
=
"
${
SCRIPT_ROOT
}
/_tmp/pkg"
TMP_DIFFROOT
=
"
${
SCRIPT_ROOT
}
/_tmp/pkg"
...
...
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