2018-04-16 16:31:44 +00:00
|
|
|
#!/usr/bin/env bash
|
2015-07-20 13:24:20 +00:00
|
|
|
|
2016-06-03 00:25:58 +00:00
|
|
|
# Copyright 2014 The Kubernetes Authors.
|
2015-07-20 13:24:20 +00:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
|
|
|
set -o errexit
|
|
|
|
set -o nounset
|
|
|
|
set -o pipefail
|
|
|
|
|
2019-02-21 14:45:06 +00:00
|
|
|
KUBE_ROOT=$(dirname "${BASH_SOURCE[0]}")/..
|
2015-07-20 13:24:20 +00:00
|
|
|
source "${KUBE_ROOT}/hack/lib/init.sh"
|
|
|
|
|
|
|
|
kube::golang::setup_env
|
|
|
|
|
2016-05-24 15:40:44 +00:00
|
|
|
BINS=(
|
|
|
|
cmd/gendocs
|
|
|
|
cmd/genkubedocs
|
|
|
|
cmd/genman
|
|
|
|
cmd/genyaml
|
|
|
|
)
|
|
|
|
make -C "${KUBE_ROOT}" WHAT="${BINS[*]}"
|
2016-05-04 05:00:27 +00:00
|
|
|
|
|
|
|
kube::util::ensure-temp-dir
|
|
|
|
|
2018-10-20 18:15:03 +00:00
|
|
|
# just verify the generation process
|
2016-05-04 05:00:27 +00:00
|
|
|
kube::util::gen-docs "${KUBE_TEMP}"
|