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
d065dd28
Commit
d065dd28
authored
Jan 23, 2019
by
danielqsj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix shellcheck in k8s.io/metrics
parent
2de487c9
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
13 deletions
+10
-13
.shellcheck_failures
hack/.shellcheck_failures
+0
-2
update-codegen.sh
staging/src/k8s.io/metrics/hack/update-codegen.sh
+9
-9
verify-codegen.sh
staging/src/k8s.io/metrics/hack/verify-codegen.sh
+1
-2
No files found.
hack/.shellcheck_failures
View file @
d065dd28
...
...
@@ -155,8 +155,6 @@
./pkg/kubectl/cmd/edit/testdata/record_testcase.sh
./pkg/util/verify-util-pkg.sh
./plugin/pkg/admission/imagepolicy/gencerts.sh
./staging/src/k8s.io/metrics/hack/update-codegen.sh
./staging/src/k8s.io/metrics/hack/verify-codegen.sh
./test/cmd/apply.sh
./test/cmd/apps.sh
./test/cmd/authorization.sh
...
...
staging/src/k8s.io/metrics/hack/update-codegen.sh
View file @
d065dd28
...
...
@@ -18,8 +18,8 @@ set -o errexit
set
-o
nounset
set
-o
pipefail
SCRIPT_ROOT
=
$(
dirname
${
BASH_SOURCE
}
)
/..
CODEGEN_PKG
=
${
CODEGEN_PKG
:-$(
cd
${
SCRIPT_ROOT
}
;
ls
-d
-1
./vendor/k8s.io/code-generator 2>/dev/null
||
echo
../code-generator
)}
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
)}
# generate the code with:
# --output-base because this script should also be able to run inside the vendor dir of
...
...
@@ -28,13 +28,13 @@ CODEGEN_PKG=${CODEGEN_PKG:-$(cd ${SCRIPT_ROOT}; ls -d -1 ./vendor/k8s.io/code-ge
#
# we skip informers and listers for metrics, because we don't quite support the requisite operations yet
# we skip generating the internal clientset as it's not really needed
${
CODEGEN_PKG
}
/generate-internal-groups.sh
deepcopy,conversion
\
"
${
CODEGEN_PKG
}
/generate-internal-groups.sh"
deepcopy,conversion
\
k8s.io/metrics/pkg/client k8s.io/metrics/pkg/apis k8s.io/metrics/pkg/apis
\
"metrics:v1alpha1,v1beta1 custom_metrics:v1beta1 external_metrics:v1beta1"
\
--output-base
"
$(
dirname
${
BASH_SOURCE
}
)
/../../.."
\
--go-header-file
${
SCRIPT_ROOT
}
/hack/boilerplate.go.txt
${
CODEGEN_PKG
}
/generate-groups.sh
client
\
--output-base
"
$(
dirname
"
${
BASH_SOURCE
[0]
}
"
)
/../../.."
\
--go-header-file
"
${
SCRIPT_ROOT
}
/hack/boilerplate.go.txt"
"
${
CODEGEN_PKG
}
/generate-groups.sh"
client
\
k8s.io/metrics/pkg/client k8s.io/metrics/pkg/apis
\
"metrics:v1alpha1,v1beta1"
\
--output-base
"
$(
dirname
${
BASH_SOURCE
})
/../../.."
\
--go-header-file
${
SCRIPT_ROOT
}
/hack/boilerplate.go.txt
\ No newline at end of file
--output-base
"
$(
dirname
"
${
BASH_SOURCE
[0]
}
"
)
/../../.."
\
--go-header-file
"
${
SCRIPT_ROOT
}
/hack/boilerplate.go.txt"
\ No newline at end of file
staging/src/k8s.io/metrics/hack/verify-codegen.sh
View file @
d065dd28
...
...
@@ -18,8 +18,7 @@ set -o errexit
set
-o
nounset
set
-o
pipefail
SCRIPT_ROOT
=
$(
dirname
"
${
BASH_SOURCE
}
"
)
/..
SCRIPT_BASE
=
${
SCRIPT_ROOT
}
/../..
SCRIPT_ROOT
=
$(
dirname
"
${
BASH_SOURCE
[0]
}
"
)
/..
DIFFROOT
=
"
${
SCRIPT_ROOT
}
/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