mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-06 10:43:56 +00:00
New packages added to hack/.linted_packages
This commit is contained in:
parent
a14f8dc346
commit
f2fa2f6dd6
@ -63,7 +63,7 @@ func main() {
|
|||||||
// MountInChroot is to run mount within chroot with the passing root directory
|
// MountInChroot is to run mount within chroot with the passing root directory
|
||||||
func mountInChroot(rootfsPath string, args []string) error {
|
func mountInChroot(rootfsPath string, args []string) error {
|
||||||
if _, err := os.Stat(rootfsPath); os.IsNotExist(err) {
|
if _, err := os.Stat(rootfsPath); os.IsNotExist(err) {
|
||||||
return fmt.Errorf("Path <%s> does not exist.\n", rootfsPath)
|
return fmt.Errorf("path <%s> does not exist", rootfsPath)
|
||||||
}
|
}
|
||||||
args = append([]string{rootfsPath, mountCmd}, args...)
|
args = append([]string{rootfsPath, mountCmd}, args...)
|
||||||
output, err := exec.Command(chrootCmd, args...).CombinedOutput()
|
output, err := exec.Command(chrootCmd, args...).CombinedOutput()
|
||||||
@ -73,7 +73,7 @@ func mountInChroot(rootfsPath string, args []string) error {
|
|||||||
|
|
||||||
if !strings.EqualFold(string(output), nfsRPCBindErrMsg) {
|
if !strings.EqualFold(string(output), nfsRPCBindErrMsg) {
|
||||||
// Mount failed but not because of RPC bind error
|
// Mount failed but not because of RPC bind error
|
||||||
return fmt.Errorf("Mount failed: %v\nMounting command: %s\nMounting arguments: %v\nOutput: %s\n", err, chrootCmd, args, string(output))
|
return fmt.Errorf("mount failed: %v\nMounting command: %s\nMounting arguments: %v\nOutput: %s", err, chrootCmd, args, string(output))
|
||||||
}
|
}
|
||||||
|
|
||||||
// Mount failed because it is NFS V3 and we need to run rpcBind
|
// Mount failed because it is NFS V3 and we need to run rpcBind
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
cluster/addons/fluentd-elasticsearch/es-image
|
cluster/addons/fluentd-elasticsearch/es-image
|
||||||
|
cluster/gce/gci/mounter
|
||||||
cluster/images/etcd/attachlease
|
cluster/images/etcd/attachlease
|
||||||
cluster/images/etcd/rollback
|
cluster/images/etcd/rollback
|
||||||
cmd/clicheck
|
cmd/clicheck
|
||||||
@ -385,6 +386,7 @@ staging/src/k8s.io/kube-aggregator/pkg/client/listers/apiregistration/v1alpha1
|
|||||||
staging/src/k8s.io/sample-apiserver
|
staging/src/k8s.io/sample-apiserver
|
||||||
staging/src/k8s.io/sample-apiserver/pkg/apis/wardle/install
|
staging/src/k8s.io/sample-apiserver/pkg/apis/wardle/install
|
||||||
test/e2e/perftype
|
test/e2e/perftype
|
||||||
|
test/e2e_federation/upgrades
|
||||||
test/e2e_node/runner/local
|
test/e2e_node/runner/local
|
||||||
test/images/clusterapi-tester
|
test/images/clusterapi-tester
|
||||||
test/images/entrypoint-tester
|
test/images/entrypoint-tester
|
||||||
|
Loading…
Reference in New Issue
Block a user