mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-26 21:17:23 +00:00
Merge pull request #87181 from tanjunchen/add-comment-hack-update
add comment in hack/update-*.sh
This commit is contained in:
commit
47475c69d1
@ -14,6 +14,12 @@
|
|||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
|
# Usage:
|
||||||
|
# hack/pin-dependency.sh $MODULE $SHA-OR-TAG
|
||||||
|
#
|
||||||
|
# Example:
|
||||||
|
# hack/pin-dependency.sh github.com/docker/docker 501cb131a7b7
|
||||||
|
|
||||||
set -o errexit
|
set -o errexit
|
||||||
set -o nounset
|
set -o nounset
|
||||||
set -o pipefail
|
set -o pipefail
|
||||||
@ -21,12 +27,6 @@ set -o pipefail
|
|||||||
KUBE_ROOT=$(dirname "${BASH_SOURCE[0]}")/..
|
KUBE_ROOT=$(dirname "${BASH_SOURCE[0]}")/..
|
||||||
source "${KUBE_ROOT}/hack/lib/init.sh"
|
source "${KUBE_ROOT}/hack/lib/init.sh"
|
||||||
|
|
||||||
# Usage:
|
|
||||||
# hack/pin-dependency.sh $MODULE $SHA-OR-TAG
|
|
||||||
#
|
|
||||||
# Example:
|
|
||||||
# hack/pin-dependency.sh github.com/docker/docker 501cb131a7b7
|
|
||||||
|
|
||||||
# Explicitly opt into go modules, even though we're inside a GOPATH directory
|
# Explicitly opt into go modules, even though we're inside a GOPATH directory
|
||||||
export GO111MODULE=on
|
export GO111MODULE=on
|
||||||
# Explicitly clear GOFLAGS, since GOFLAGS=-mod=vendor breaks dependency resolution while rebuilding vendor
|
# Explicitly clear GOFLAGS, since GOFLAGS=-mod=vendor breaks dependency resolution while rebuilding vendor
|
||||||
|
@ -16,6 +16,9 @@
|
|||||||
|
|
||||||
# This script is a vestigial redirection. Please do not add "real" logic.
|
# This script is a vestigial redirection. Please do not add "real" logic.
|
||||||
# The "true" target of this makerule is `hack/make-rules/update.sh`.
|
# The "true" target of this makerule is `hack/make-rules/update.sh`.
|
||||||
|
# We should run `hack/update-all.sh` if anything fails after
|
||||||
|
# running `hack/verify-all.sh`. It is equivalent to `make update`.
|
||||||
|
# Usage: `hack/update-all.sh` or `make update`.
|
||||||
|
|
||||||
set -o errexit
|
set -o errexit
|
||||||
set -o nounset
|
set -o nounset
|
||||||
|
@ -14,6 +14,9 @@
|
|||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
|
# Please do not add any logic to this shell script. Add logic to the go code
|
||||||
|
# that generates the set-gen program.
|
||||||
|
|
||||||
set -o errexit
|
set -o errexit
|
||||||
set -o nounset
|
set -o nounset
|
||||||
set -o pipefail
|
set -o pipefail
|
||||||
@ -34,10 +37,6 @@ clientgen=$(kube::util::find-binary "client-gen")
|
|||||||
listergen=$(kube::util::find-binary "lister-gen")
|
listergen=$(kube::util::find-binary "lister-gen")
|
||||||
informergen=$(kube::util::find-binary "informer-gen")
|
informergen=$(kube::util::find-binary "informer-gen")
|
||||||
|
|
||||||
# Please do not add any logic to this shell script. Add logic to the go code
|
|
||||||
# that generates the set-gen program.
|
|
||||||
#
|
|
||||||
|
|
||||||
IFS=" " read -r -a GROUP_VERSIONS <<< "${KUBE_AVAILABLE_GROUP_VERSIONS}"
|
IFS=" " read -r -a GROUP_VERSIONS <<< "${KUBE_AVAILABLE_GROUP_VERSIONS}"
|
||||||
GV_DIRS=()
|
GV_DIRS=()
|
||||||
for gv in "${GROUP_VERSIONS[@]}"; do
|
for gv in "${GROUP_VERSIONS[@]}"; do
|
||||||
|
@ -14,6 +14,10 @@
|
|||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
|
# This script generates `*/api.pb.go` from the protobuf file `*/api.proto`.
|
||||||
|
# Example:
|
||||||
|
# kube::protoc::generate_proto "${DEVICE_PLUGIN_ALPHA}"
|
||||||
|
|
||||||
set -o errexit
|
set -o errexit
|
||||||
set -o nounset
|
set -o nounset
|
||||||
set -o pipefail
|
set -o pipefail
|
||||||
|
@ -14,6 +14,10 @@
|
|||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
|
# This script generates `*/api.pb.go` from the protobuf file `*/api.proto`.
|
||||||
|
# Example:
|
||||||
|
# kube::protoc::generate_proto "${KUBELET_PLUGIN_REGISTRATION_V1ALPHA}"
|
||||||
|
|
||||||
set -o errexit
|
set -o errexit
|
||||||
set -o nounset
|
set -o nounset
|
||||||
set -o pipefail
|
set -o pipefail
|
||||||
|
@ -14,6 +14,10 @@
|
|||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
|
# This script generates `*/api.pb.go` from the protobuf file `*/api.proto`.
|
||||||
|
# Example:
|
||||||
|
# kube::protoc::generate_proto "${POD_RESOURCES_ALPHA}"
|
||||||
|
|
||||||
set -o errexit
|
set -o errexit
|
||||||
set -o nounset
|
set -o nounset
|
||||||
set -o pipefail
|
set -o pipefail
|
||||||
|
@ -14,6 +14,10 @@
|
|||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
|
# This script fixes imports programmatically according to
|
||||||
|
# all the imports that we have our preferred alias(es).
|
||||||
|
# Usage: `hack/update-import-aliases.sh`.
|
||||||
|
|
||||||
set -o errexit
|
set -o errexit
|
||||||
set -o nounset
|
set -o nounset
|
||||||
set -o pipefail
|
set -o pipefail
|
||||||
|
@ -14,6 +14,10 @@
|
|||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
|
# This script updates `translations/kubectl/template.pot` for
|
||||||
|
# `pkg/kubectl/cmd/*.go pkg/kubectl/cmd/*/*.go`.
|
||||||
|
# Usage: `update-translations.sh`.
|
||||||
|
|
||||||
KUBE_ROOT=$(dirname "${BASH_SOURCE[0]}")/..
|
KUBE_ROOT=$(dirname "${BASH_SOURCE[0]}")/..
|
||||||
source "${KUBE_ROOT}/hack/lib/util.sh"
|
source "${KUBE_ROOT}/hack/lib/util.sh"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user