From 64b51245957becab8386384f1dbed391a543a4a6 Mon Sep 17 00:00:00 2001 From: Solly Ross Date: Fri, 12 May 2017 17:49:30 -0400 Subject: [PATCH] [update-staging] convert package name in IDL This commit converts the package names in the proto IDL in client-go. This allows third parties (and repositories in staging) who make use of types in client-go to generate proto IDL themselves properly. --- staging/copy.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/staging/copy.sh b/staging/copy.sh index a41ce4c2c12..d6f75f71987 100755 --- a/staging/copy.sh +++ b/staging/copy.sh @@ -161,6 +161,9 @@ grep -Rl "\"${MAIN_REPO_FROM_SRC}" "${CLIENT_REPO_TEMP}" | \ echo "rewrite proto names in proto.RegisterType" find "${CLIENT_REPO_TEMP}" -type f -name "generated.pb.go" -print0 | xargs -0 ${SED} -i "s/k8s\.io\.kubernetes/k8s.io.client-go/g" +echo "rewrite proto IDL package names" +find "${CLIENT_REPO_TEMP}" -type f -name "generated.proto" -print0 | xargs -0 ${SED} -i "s/k8s\.io\.kubernetes/k8s.io.client_go/g" + # strip all generator tags from client-go find "${CLIENT_REPO_TEMP}" -type f -name "*.go" -print0 | xargs -0 ${SED} -i '/^\/\/ +k8s:openapi-gen=true/d' find "${CLIENT_REPO_TEMP}" -type f -name "*.go" -print0 | xargs -0 ${SED} -i '/^\/\/ +k8s:defaulter-gen=/d'