Add release scripts for modules and binaries

This commit is contained in:
Phillip Wittrock
2019-12-14 14:52:27 -08:00
parent e0ba78f292
commit ae8143a9be
7 changed files with 279 additions and 0 deletions

12
cmd/kubectl/fixgomod.sh Executable file
View File

@@ -0,0 +1,12 @@
#!/bin/bash
# Copyright 2019 The Kubernetes Authors.
# SPDX-License-Identifier: Apache-2.0
set -e
: "${kyaml_major?Need to source VERSIONS}"
: "${kyaml_minor?Need to source VERSIONS}"
: "${kyaml_patch?Need to source VERSIONS}"
go mod edit -dropreplace=sigs.k8s.io/kustomize/kyaml@v0.0.0
go mod edit -require=sigs.k8s.io/kustomize/kyaml@v$kyaml_major.$kyaml_minor.$kyaml_patch