Skip to content

Commit

Permalink
Move GEN_COMMIT and USERNAME to settings
Browse files Browse the repository at this point in the history
  • Loading branch information
Silas Boyd-Wickizer committed Aug 19, 2019
1 parent 83cef3e commit 780e9b7
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 2 additions & 0 deletions generate-client.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ set -o errexit
set -o nounset
set -o pipefail

. settings

if [[ -z ${GEN_ROOT:-} ]]; then
TEMP_FOLDER=$(mktemp -d)
trap "rm -rf ${TEMP_FOLDER}" EXIT SIGINT
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"lint": "tslint --project \".\" && prettier --check './src/**/*.ts' && tslint --project \"./examples/typescript\"",
"clean": "rm -Rf node_modules/ dist/",
"build": "tsc",
"generate": "USERNAME=kubernetes GEN_COMMIT=7959939 ./generate-client.sh",
"generate": "./generate-client.sh",
"watch": "tsc --watch",
"test": "nyc mocha",
"prepare": "npm run build"
Expand Down
6 changes: 6 additions & 0 deletions settings
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# kubernetes-client/gen commit to use for code generation.
export GEN_COMMIT=7959939

# GitHub username/organization to clone kubernetes repo from.
export USERNAME=kubernetes

# Kubernetes branch to get the OpenAPI spec from.
export KUBERNETES_BRANCH="release-1.13"

Expand Down

0 comments on commit 780e9b7

Please sign in to comment.