Skip to content

Commit

Permalink
UPSTREAM: <carry>: Compile without KUBECONFIG
Browse files Browse the repository at this point in the history
hack/verify-kustomize reads the current namespace and adds it into
generated / verified manifests.

With KUBECONFIG="", it won't be able to get the namespace and thus it will
generate manifests with namespace: default.
  • Loading branch information
jsafrane committed Sep 23, 2022
1 parent 183557d commit e06cb79
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.

KUBECONFIG=""

VERSION?=v1.11.3

PKG=github.com/kubernetes-sigs/aws-ebs-csi-driver
Expand Down
7 changes: 7 additions & 0 deletions hack/verify-kustomize
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@

set -euo pipefail

set -x

export KUBECONFIG=""

set

echo "Verifying kustomize"
diff=$(git status --porcelain=v1)
if [[ -n "${diff}" ]]; then
Expand All @@ -29,6 +35,7 @@ echo
diff=$(git status --porcelain=v1)
if [[ -n "${diff}" ]]; then
echo "${diff}"
git diff
echo
echo "Please run make generate-kustomize to fix the issue(s)"
exit 1
Expand Down

0 comments on commit e06cb79

Please sign in to comment.