Switch to go modules
This commit is contained in:
parent
461954facb
commit
1720059244
763 changed files with 24896 additions and 177398 deletions
9
vendor/k8s.io/utils/.travis.yml
generated
vendored
9
vendor/k8s.io/utils/.travis.yml
generated
vendored
|
|
@ -1,9 +0,0 @@
|
|||
language: go
|
||||
dist: xenial
|
||||
go:
|
||||
- 1.9.x
|
||||
- 1.10.x
|
||||
- 1.11.x
|
||||
go_import_path: k8s.io/utils
|
||||
script:
|
||||
- make verify
|
||||
9
vendor/k8s.io/utils/CONTRIBUTING.md
generated
vendored
9
vendor/k8s.io/utils/CONTRIBUTING.md
generated
vendored
|
|
@ -1,9 +0,0 @@
|
|||
# Contributing
|
||||
|
||||
Thanks for taking the time to join our community and start contributing!
|
||||
|
||||
The [Contributor Guide](https://github.com/kubernetes/community/blob/master/contributors/guide/README.md)
|
||||
provides detailed instructions on how to get your ideas and bug fixes seen and accepted.
|
||||
|
||||
Please remember to sign the [CNCF CLA](https://github.com/kubernetes/community/blob/master/CLA.md) and
|
||||
read and observe the [Code of Conduct](https://github.com/cncf/foundation/blob/master/code-of-conduct.md).
|
||||
31
vendor/k8s.io/utils/HOWTOMOVE.md
generated
vendored
31
vendor/k8s.io/utils/HOWTOMOVE.md
generated
vendored
|
|
@ -1,31 +0,0 @@
|
|||
# How to move a utility pkg from other kubernetes repos
|
||||
|
||||
It has 2 steps to move a pkg from other Kubernetes repos to `k8s.io/utils` repo:
|
||||
- copy the pkg to `k8s.io/utils` repo
|
||||
- update the import paths and `vendor/` in the repos that refer this pkg
|
||||
|
||||
## Copy the pkg to `k8s.io/utils` repo
|
||||
|
||||
Copying should preserve all the git history associated with it.
|
||||
[Here](http://gbayer.com/development/moving-files-from-one-git-repository-to-another-preserving-history/) is a working approach.
|
||||
Note: You may need to use `--allow-unrelated-histories` if you get error when running `git pull` following the post above.
|
||||
|
||||
Then, you may need to restructure the package to make sure it has the following structure.
|
||||
|
||||
.
|
||||
├── doc.go # Description for this package
|
||||
├── <utilname1>.go # utility go file
|
||||
├── <utilname>_test.go # go unit tests
|
||||
└── testing # All the testing framework
|
||||
└── fake_<utilname>.go # Testing framework go file
|
||||
|
||||
[#5](https://github.com/kubernetes/utils/pull/5) is an example for this step.
|
||||
|
||||
## Update the repos that refer the pkg
|
||||
|
||||
You should update the import paths.
|
||||
Then follow [this doc](https://github.com/kubernetes/community/blob/master/contributors/devel/godep.md) to update `vendor/` and `Godeps/`.
|
||||
|
||||
You may want to run `make bazel-test` to make sure all new references work.
|
||||
|
||||
[kubernetes/kubernetes#49234](https://github.com/kubernetes/kubernetes/pull/49234) is an example for this step.
|
||||
37
vendor/k8s.io/utils/Makefile
generated
vendored
37
vendor/k8s.io/utils/Makefile
generated
vendored
|
|
@ -1,37 +0,0 @@
|
|||
# Copyright 2018 The Kubernetes Authors.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
.PHONY: verify
|
||||
verify: depend verify-fmt verify-lint vet
|
||||
go test -v -race ./...
|
||||
|
||||
.PHONY: depend
|
||||
depend:
|
||||
go get -t -v ./...
|
||||
|
||||
.PHONY: verify-fmt
|
||||
verify-fmt:
|
||||
./hack/verify-gofmt.sh
|
||||
|
||||
.PHONY: verify-lint
|
||||
verify-lint:
|
||||
./hack/verify-golint.sh
|
||||
|
||||
.PHONY: vet
|
||||
vet:
|
||||
go tool vet .
|
||||
|
||||
.PHONY: update-fmt
|
||||
update-fmt:
|
||||
gofmt -s -w .
|
||||
21
vendor/k8s.io/utils/OWNERS
generated
vendored
21
vendor/k8s.io/utils/OWNERS
generated
vendored
|
|
@ -1,21 +0,0 @@
|
|||
# See the OWNERS docs at https://go.k8s.io/owners
|
||||
|
||||
approvers:
|
||||
- apelisse
|
||||
- dashpole
|
||||
- deads2k
|
||||
- lavalamp
|
||||
- mengqiy
|
||||
- thockin
|
||||
- dims
|
||||
reviewers:
|
||||
- apelisse
|
||||
- dashpole
|
||||
- deads2k
|
||||
- lavalamp
|
||||
- mengqiy
|
||||
- thockin
|
||||
- andrewsykim
|
||||
- cheftako
|
||||
- mcrute
|
||||
- dims
|
||||
69
vendor/k8s.io/utils/README.md
generated
vendored
69
vendor/k8s.io/utils/README.md
generated
vendored
|
|
@ -1,69 +0,0 @@
|
|||
# Utils
|
||||
|
||||
[![Build Status]](https://travis-ci.org/kubernetes/utils) [](https://godoc.org/k8s.io/utils)
|
||||
|
||||
A set of Go libraries that provide low-level,
|
||||
kubernetes-independent packages supplementing the [Go
|
||||
standard libs].
|
||||
|
||||
## Purpose
|
||||
|
||||
As Kubernetes grows and spins functionality out of its
|
||||
[core] and into cooperating repositories like
|
||||
[apiserver], [kubectl], [kubeadm], etc., the need
|
||||
arises for leaf repositories to house shared code and
|
||||
avoid cycles in repository relationships.
|
||||
|
||||
This repository is intended to hold shared utilities
|
||||
with no Kubernetes dependence that may be of interest
|
||||
to any Go project. See these [instructions for moving]
|
||||
an existing package to this repository.
|
||||
|
||||
|
||||
## Criteria for adding code here
|
||||
|
||||
- Used by multiple Kubernetes repositories.
|
||||
|
||||
- Full unit test coverage.
|
||||
|
||||
- Go tools compliant (`go get`, `go test`, etc.).
|
||||
|
||||
- Complex enough to be worth vendoring, rather than copying.
|
||||
|
||||
- Stable, or backward compatible, API.
|
||||
|
||||
- _No dependence on any Kubernetes repository_.
|
||||
|
||||
## Libraries
|
||||
|
||||
- [Exec](/exec) provides an interface for `os/exec`. It makes it easier
|
||||
to mock and replace in tests, especially with
|
||||
the [FakeExec](exec/testing/fake_exec.go) struct.
|
||||
|
||||
- [Temp](/temp) provides an interface to create temporary directories. It also
|
||||
provides a [FakeDir](temp/temptest) implementation to replace in tests.
|
||||
|
||||
- [Clock](/clock) provides an interface for time-based operations. It allows
|
||||
mocking time for testing.
|
||||
|
||||
- [Pointers](/pointers) provides some functions for pointer-based operations.
|
||||
|
||||
- [Io](/io) provides interfaces for working with file IO. Currently it provides
|
||||
functionality for consistently reading a file.
|
||||
|
||||
- [NSEnter](/nsenter) provies interfaces for executing and interacting with
|
||||
processes running within a namespace.
|
||||
|
||||
[Build Status]: https://travis-ci.org/kubernetes/utils.svg?branch=master
|
||||
[Go standard libs]: https://golang.org/pkg/#stdlib
|
||||
[api]: https://github.com/kubernetes/api
|
||||
[apiserver]: https://github.com/kubernetes/apiserver
|
||||
[core]: https://github.com/kubernetes/kubernetes
|
||||
[ingress]: https://github.com/kubernetes/ingress
|
||||
[kubeadm]: https://github.com/kubernetes/kubeadm
|
||||
[kubectl]: https://github.com/kubernetes/kubectl
|
||||
[instructions for moving]: ./HOWTOMOVE.md
|
||||
|
||||
## Contributing
|
||||
|
||||
Please see [CONTRIBUTING.md](CONTRIBUTING.md) for instructions on how to contribute.
|
||||
13
vendor/k8s.io/utils/SECURITY_CONTACTS
generated
vendored
13
vendor/k8s.io/utils/SECURITY_CONTACTS
generated
vendored
|
|
@ -1,13 +0,0 @@
|
|||
# Defined below are the security contacts for this repo.
|
||||
#
|
||||
# They are the contact point for the Product Security Committee to reach out
|
||||
# to for triaging and handling of incoming issues.
|
||||
#
|
||||
# The below names agree to abide by the
|
||||
# [Embargo Policy](https://git.k8s.io/security/private-distributors-list.md#embargo-policy)
|
||||
# and will be removed and replaced if they violate that agreement.
|
||||
#
|
||||
# DO NOT REPORT SECURITY VULNERABILITIES DIRECTLY TO THESE NAMES, FOLLOW THE
|
||||
# INSTRUCTIONS AT https://kubernetes.io/security/
|
||||
|
||||
liggitt
|
||||
3
vendor/k8s.io/utils/code-of-conduct.md
generated
vendored
3
vendor/k8s.io/utils/code-of-conduct.md
generated
vendored
|
|
@ -1,3 +0,0 @@
|
|||
# Kubernetes Community Code of Conduct
|
||||
|
||||
Please refer to our [Kubernetes Community Code of Conduct](https://git.k8s.io/community/code-of-conduct.md)
|
||||
Loading…
Add table
Add a link
Reference in a new issue