mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-11 17:12:51 +00:00
Move pluginator to kustomize Go API v3.3.0
This commit is contained in:
@@ -190,9 +190,9 @@ requires.
|
||||
# Update the following as needed, obviously.
|
||||
|
||||
if [ "$module" != "api" ]; then
|
||||
go mod edit -dropreplace=sigs.k8s.io/kustomize/v3 $module/go.mod
|
||||
go mod edit -require=sigs.k8s.io/kustomize/v4@v4.0.1 $module/go.mod
|
||||
git commit -a -m "Drop API module replacement"
|
||||
# go mod edit -dropreplace=sigs.k8s.io/kustomize/v3 $module/go.mod
|
||||
# go mod edit -require=sigs.k8s.io/kustomize/v4@v4.0.1 $module/go.mod
|
||||
# git commit -a -m "Drop API module replacement"
|
||||
fi
|
||||
```
|
||||
|
||||
@@ -222,7 +222,7 @@ git ls-remote --tags upstream
|
||||
### define the release tag
|
||||
|
||||
```
|
||||
tag="v${major}.v${minor}.${patch}"
|
||||
tag="v${major}.${minor}.${patch}"
|
||||
if [ "$module" != "api" ]; then
|
||||
# must prefix the tag with submodule name
|
||||
tag="${module}/${tag}"
|
||||
|
||||
@@ -56,16 +56,13 @@ EOF
|
||||
pluginator)
|
||||
cat <<EOF >>$config
|
||||
builds:
|
||||
- main: ./main.go
|
||||
binary: pluginator
|
||||
- binary: pluginator
|
||||
goos:
|
||||
- linux
|
||||
- darwin
|
||||
- windows
|
||||
goarch:
|
||||
- amd64
|
||||
archive:
|
||||
format: binary
|
||||
EOF
|
||||
;;
|
||||
*)
|
||||
|
||||
@@ -74,5 +74,5 @@ cloud-build-local \
|
||||
echo " "
|
||||
echo "Result of local build:"
|
||||
echo "##########################################"
|
||||
tree ./kustomize/dist
|
||||
tree ./$module/dist
|
||||
echo "##########################################"
|
||||
|
||||
Reference in New Issue
Block a user