Ensure that kubegenerator scripts are executable

This commit is contained in:
Joshua Casey 2023-08-17 22:16:21 -05:00
parent c51722a121
commit dfd3d5075d

View File

@ -1,6 +1,6 @@
#!/usr/bin/env bash #!/usr/bin/env bash
# Copyright 2020-2022 the Pinniped contributors. All Rights Reserved. # Copyright 2020-2023 the Pinniped contributors. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
set -euo pipefail set -euo pipefail
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)" ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)"
@ -119,6 +119,7 @@ echo "running go mod download in ${OUTPUT_DIR}/client/go.mod to generate a go.su
# Generate API-related code for our public API groups # Generate API-related code for our public API groups
echo "generating API-related code for our public API groups..." echo "generating API-related code for our public API groups..."
chmod -R +x "${GOPATH}/src/k8s.io/code-generator/"
(cd apis && (cd apis &&
bash "${GOPATH}/src/k8s.io/code-generator/generate-groups.sh" \ bash "${GOPATH}/src/k8s.io/code-generator/generate-groups.sh" \
"deepcopy" \ "deepcopy" \