Skip to content

Commit 09a132b

Browse files
committed
Add comments in several hack/verify-generated-*.sh
1 parent 02ac661 commit 09a132b

10 files changed

+49
-0
lines changed

hack/verify-generated-device-plugin.sh

+5
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@
1414
# See the License for the specific language governing permissions and
1515
# limitations under the License.
1616

17+
# This script checks whether updating of device plugin API is needed or not. We
18+
# should run `hack/update-generated-device-plugin.sh` if device plugin API is
19+
# out of date.
20+
# Usage: `hack/verify-generated-device-plugin.sh`.
21+
1722
set -o errexit
1823
set -o nounset
1924
set -o pipefail

hack/verify-generated-docs.sh

+4
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@
1414
# See the License for the specific language governing permissions and
1515
# limitations under the License.
1616

17+
# This script checks that various type of documents(* .md, * .yaml and man
18+
# files) are generated correctly(just verifies the generation process).
19+
# Usage: `hack/verify-generated-docs.sh`.
20+
1721
set -o errexit
1822
set -o nounset
1923
set -o pipefail

hack/verify-generated-files-remake.sh

+6
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@
1414
# See the License for the specific language governing permissions and
1515
# limitations under the License.
1616

17+
# This script verifies that the expected results are obtained when creating each
18+
# type of file(e.g. codegen tool itself, a file in a package that needs codegen,
19+
# and etc.) for verification and then generating the code(executes
20+
# `make generated_files`).
21+
# Usage: `hack/verify-generated-files-remake.sh`.
22+
1723
set -o errexit
1824
set -o nounset
1925
set -o pipefail

hack/verify-generated-files.sh

+4
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@
1414
# See the License for the specific language governing permissions and
1515
# limitations under the License.
1616

17+
# This script checks whether updating of generated code is needed or not. We
18+
# should run `make generated_files` if generated code is out of date.
19+
# Usage: `hack/verify-generated-files.sh`.
20+
1721
set -o errexit
1822
set -o nounset
1923
set -o pipefail

hack/verify-generated-kms.sh

+4
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@
1414
# See the License for the specific language governing permissions and
1515
# limitations under the License.
1616

17+
# This script checks whether updating of KMS gRPC is needed or not. We should
18+
# run `hack/update-generated-kms.sh` if KMS gRPC is out of date.
19+
# Usage: `hack/verify-generated-kms.sh`.
20+
1721
set -o errexit
1822
set -o nounset
1923
set -o pipefail

hack/verify-generated-kubelet-plugin-registration.sh

+6
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@
1414
# See the License for the specific language governing permissions and
1515
# limitations under the License.
1616

17+
# This script checks whether updating of kubelet plugin registration API is
18+
# needed or not. We should run
19+
# `hack/update-generated-kubelet-plugin-registration.sh` if kubelet plugin
20+
# registration API is out of date.
21+
# Usage: `hack/verify-generated-kubelet-plugin-registration.sh`.
22+
1723
set -o errexit
1824
set -o nounset
1925
set -o pipefail

hack/verify-generated-pod-resources.sh

+5
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@
1414
# See the License for the specific language governing permissions and
1515
# limitations under the License.
1616

17+
# This script checks whether updating of Pod resources API is needed or not. We
18+
# should run `hack/update-generated-pod-resources.sh` if Pod resources API is
19+
# out of date.
20+
# Usage: `hack/verify-generated-pod-resources.sh`.
21+
1722
set -o errexit
1823
set -o nounset
1924
set -o pipefail

hack/verify-generated-protobuf.sh

+5
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@
1414
# See the License for the specific language governing permissions and
1515
# limitations under the License.
1616

17+
# This script checks whether updating of the packages which explicitly
18+
# requesting generation is needed or not. We should run
19+
# `hack/update-generated-protobuf.sh` if those packages are out of date.
20+
# Usage: `hack/verify-generated-protobuf.sh`.
21+
1722
set -o errexit
1823
set -o nounset
1924
set -o pipefail

hack/verify-generated-runtime.sh

+5
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@
1414
# See the License for the specific language governing permissions and
1515
# limitations under the License.
1616

17+
# This script checks whether updating of container runtime API is needed or not.
18+
# We should run `hack/update-generated-runtime.sh` if container runtime API is
19+
# out of date.
20+
# Usage: `hack/verify-generated-runtime.sh`.
21+
1722
set -o errexit
1823
set -o nounset
1924
set -o pipefail

hack/verify-generated-swagger-docs.sh

+5
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@
1414
# See the License for the specific language governing permissions and
1515
# limitations under the License.
1616

17+
# This script checks whether updating of swagger type documentation is needed or
18+
# not. We should run `hack/update-generated-swagger-docs.sh` if swagger type
19+
# documentation is out of date.
20+
# Usage: `hack/verify-generated-swagger-docs.sh`.
21+
1722
set -o errexit
1823
set -o nounset
1924
set -o pipefail

0 commit comments

Comments
 (0)