Created
January 26, 2023 03:58
-
-
Save mbigras/ac303f920c8c9663137411188d353ff5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cd $(mktemp -d) | |
$ git clone [email protected]:kubernetes-sigs/kustomize.git | |
Cloning into 'kustomize'... | |
remote: Enumerating objects: 80611, done. | |
remote: Counting objects: 100% (100/100), done. | |
remote: Compressing objects: 100% (65/65), done. | |
remote: Total 80611 (delta 52), reused 75 (delta 35), pack-reused 80511 | |
Receiving objects: 100% (80611/80611), 91.58 MiB | 1.98 MiB/s, done. | |
Resolving deltas: 100% (47788/47788), done. | |
$ cd kustomize | |
$ git checkout daf81df437a2d875e92b83d970288db970be377a | |
Note: switching to 'daf81df437a2d875e92b83d970288db970be377a'. | |
You are in 'detached HEAD' state. You can look around, make experimental | |
changes and commit them, and you can discard any commits you make in this | |
state without impacting any branches by switching back to a branch. | |
If you want to create a new branch to retain commits you create, you may | |
do so (now or later) by using -c with the switch command. Example: | |
git switch -c <new-branch-name> | |
Or undo this operation with: | |
git switch - | |
Turn off this advice by setting config variable advice.detachedHead to false | |
HEAD is now at daf81df43 Merge pull request #4654 from aabouzaid/fix-krm-exec-function | |
$ mkdir -p build | |
$ GOBIN=$PWD/build make clean | |
./hack/buildExternalGoPlugins.sh ./plugin clean | |
rm -f /var/folders/_r/52tr69g54qvbxtg8fx7548tm0000gq/T/tmp.s8VZdqFW/kustomize/build/gorepomod | |
rm -f /var/folders/_r/52tr69g54qvbxtg8fx7548tm0000gq/T/tmp.s8VZdqFW/kustomize/build/k8scopy | |
rm -f /var/folders/_r/52tr69g54qvbxtg8fx7548tm0000gq/T/tmp.s8VZdqFW/kustomize/build/pluginator | |
rm -f /var/folders/_r/52tr69g54qvbxtg8fx7548tm0000gq/T/tmp.s8VZdqFW/kustomize/build/goimports | |
rm -f /var/folders/_r/52tr69g54qvbxtg8fx7548tm0000gq/T/tmp.s8VZdqFW/kustomize/build/golangci-lint | |
rm -f /var/folders/_r/52tr69g54qvbxtg8fx7548tm0000gq/T/tmp.s8VZdqFW/kustomize/build/helmV3 | |
rm -f /var/folders/_r/52tr69g54qvbxtg8fx7548tm0000gq/T/tmp.s8VZdqFW/kustomize/build/mdrip | |
rm -f /var/folders/_r/52tr69g54qvbxtg8fx7548tm0000gq/T/tmp.s8VZdqFW/kustomize/build/stringer | |
go clean --cache | |
rm -f api/internal/builtins/AnnotationsTransformer.go api/internal/builtins/ConfigMapGenerator.go api/internal/builtins/IAMPolicyGenerator.go api/internal/builtins/HashTransformer.go api/internal/builtins/ImageTagTransformer.go api/internal/builtins/LabelTransformer.go api/internal/builtins/LegacyOrderTransformer.go api/internal/builtins/NamespaceTransformer.go api/internal/builtins/PatchJson6902Transformer.go api/internal/builtins/PatchStrategicMergeTransformer.go api/internal/builtins/PatchTransformer.go api/internal/builtins/PrefixTransformer.go api/internal/builtins/SuffixTransformer.go api/internal/builtins/ReplacementTransformer.go api/internal/builtins/ReplicaCountTransformer.go api/internal/builtins/SecretGenerator.go api/internal/builtins/ValueAddTransformer.go api/internal/builtins/HelmChartInflationGenerator.go | |
rm -f /var/folders/_r/52tr69g54qvbxtg8fx7548tm0000gq/T/tmp.s8VZdqFW/kustomize/build/kustomize | |
$ GOBIN=$PWD/build make kustomize | |
go install golang.org/x/tools/cmd/goimports@latest | |
cd cmd/pluginator; \ | |
go install . | |
generating AnnotationsTransformer | |
( \ | |
set -e; \ | |
cd plugin/builtin/annotationstransformer; \ | |
go generate .; \ | |
cd ../../../api/internal/builtins; \ | |
/var/folders/_r/52tr69g54qvbxtg8fx7548tm0000gq/T/tmp.s8VZdqFW/kustomize/build/goimports -w AnnotationsTransformer.go \ | |
) | |
generating ConfigMapGenerator | |
( \ | |
set -e; \ | |
cd plugin/builtin/configmapgenerator; \ | |
go generate .; \ | |
cd ../../../api/internal/builtins; \ | |
/var/folders/_r/52tr69g54qvbxtg8fx7548tm0000gq/T/tmp.s8VZdqFW/kustomize/build/goimports -w ConfigMapGenerator.go \ | |
) | |
generating IAMPolicyGenerator | |
( \ | |
set -e; \ | |
cd plugin/builtin/iampolicygenerator; \ | |
go generate .; \ | |
cd ../../../api/internal/builtins; \ | |
/var/folders/_r/52tr69g54qvbxtg8fx7548tm0000gq/T/tmp.s8VZdqFW/kustomize/build/goimports -w IAMPolicyGenerator.go \ | |
) | |
generating HashTransformer | |
( \ | |
set -e; \ | |
cd plugin/builtin/hashtransformer; \ | |
go generate .; \ | |
cd ../../../api/internal/builtins; \ | |
/var/folders/_r/52tr69g54qvbxtg8fx7548tm0000gq/T/tmp.s8VZdqFW/kustomize/build/goimports -w HashTransformer.go \ | |
) | |
generating ImageTagTransformer | |
( \ | |
set -e; \ | |
cd plugin/builtin/imagetagtransformer; \ | |
go generate .; \ | |
cd ../../../api/internal/builtins; \ | |
/var/folders/_r/52tr69g54qvbxtg8fx7548tm0000gq/T/tmp.s8VZdqFW/kustomize/build/goimports -w ImageTagTransformer.go \ | |
) | |
generating LabelTransformer | |
( \ | |
set -e; \ | |
cd plugin/builtin/labeltransformer; \ | |
go generate .; \ | |
cd ../../../api/internal/builtins; \ | |
/var/folders/_r/52tr69g54qvbxtg8fx7548tm0000gq/T/tmp.s8VZdqFW/kustomize/build/goimports -w LabelTransformer.go \ | |
) | |
generating LegacyOrderTransformer | |
( \ | |
set -e; \ | |
cd plugin/builtin/legacyordertransformer; \ | |
go generate .; \ | |
cd ../../../api/internal/builtins; \ | |
/var/folders/_r/52tr69g54qvbxtg8fx7548tm0000gq/T/tmp.s8VZdqFW/kustomize/build/goimports -w LegacyOrderTransformer.go \ | |
) | |
generating NamespaceTransformer | |
( \ | |
set -e; \ | |
cd plugin/builtin/namespacetransformer; \ | |
go generate .; \ | |
cd ../../../api/internal/builtins; \ | |
/var/folders/_r/52tr69g54qvbxtg8fx7548tm0000gq/T/tmp.s8VZdqFW/kustomize/build/goimports -w NamespaceTransformer.go \ | |
) | |
generating PatchJson6902Transformer | |
( \ | |
set -e; \ | |
cd plugin/builtin/patchjson6902transformer; \ | |
go generate .; \ | |
cd ../../../api/internal/builtins; \ | |
/var/folders/_r/52tr69g54qvbxtg8fx7548tm0000gq/T/tmp.s8VZdqFW/kustomize/build/goimports -w PatchJson6902Transformer.go \ | |
) | |
generating PatchStrategicMergeTransformer | |
( \ | |
set -e; \ | |
cd plugin/builtin/patchstrategicmergetransformer; \ | |
go generate .; \ | |
cd ../../../api/internal/builtins; \ | |
/var/folders/_r/52tr69g54qvbxtg8fx7548tm0000gq/T/tmp.s8VZdqFW/kustomize/build/goimports -w PatchStrategicMergeTransformer.go \ | |
) | |
generating PatchTransformer | |
( \ | |
set -e; \ | |
cd plugin/builtin/patchtransformer; \ | |
go generate .; \ | |
cd ../../../api/internal/builtins; \ | |
/var/folders/_r/52tr69g54qvbxtg8fx7548tm0000gq/T/tmp.s8VZdqFW/kustomize/build/goimports -w PatchTransformer.go \ | |
) | |
generating PrefixTransformer | |
( \ | |
set -e; \ | |
cd plugin/builtin/prefixtransformer; \ | |
go generate .; \ | |
cd ../../../api/internal/builtins; \ | |
/var/folders/_r/52tr69g54qvbxtg8fx7548tm0000gq/T/tmp.s8VZdqFW/kustomize/build/goimports -w PrefixTransformer.go \ | |
) | |
generating SuffixTransformer | |
( \ | |
set -e; \ | |
cd plugin/builtin/suffixtransformer; \ | |
go generate .; \ | |
cd ../../../api/internal/builtins; \ | |
/var/folders/_r/52tr69g54qvbxtg8fx7548tm0000gq/T/tmp.s8VZdqFW/kustomize/build/goimports -w SuffixTransformer.go \ | |
) | |
generating ReplacementTransformer | |
( \ | |
set -e; \ | |
cd plugin/builtin/replacementtransformer; \ | |
go generate .; \ | |
cd ../../../api/internal/builtins; \ | |
/var/folders/_r/52tr69g54qvbxtg8fx7548tm0000gq/T/tmp.s8VZdqFW/kustomize/build/goimports -w ReplacementTransformer.go \ | |
) | |
generating ReplicaCountTransformer | |
( \ | |
set -e; \ | |
cd plugin/builtin/replicacounttransformer; \ | |
go generate .; \ | |
cd ../../../api/internal/builtins; \ | |
/var/folders/_r/52tr69g54qvbxtg8fx7548tm0000gq/T/tmp.s8VZdqFW/kustomize/build/goimports -w ReplicaCountTransformer.go \ | |
) | |
generating SecretGenerator | |
( \ | |
set -e; \ | |
cd plugin/builtin/secretgenerator; \ | |
go generate .; \ | |
cd ../../../api/internal/builtins; \ | |
/var/folders/_r/52tr69g54qvbxtg8fx7548tm0000gq/T/tmp.s8VZdqFW/kustomize/build/goimports -w SecretGenerator.go \ | |
) | |
generating ValueAddTransformer | |
( \ | |
set -e; \ | |
cd plugin/builtin/valueaddtransformer; \ | |
go generate .; \ | |
cd ../../../api/internal/builtins; \ | |
/var/folders/_r/52tr69g54qvbxtg8fx7548tm0000gq/T/tmp.s8VZdqFW/kustomize/build/goimports -w ValueAddTransformer.go \ | |
) | |
generating HelmChartInflationGenerator | |
( \ | |
set -e; \ | |
cd plugin/builtin/helmchartinflationgenerator; \ | |
go generate .; \ | |
cd ../../../api/internal/builtins; \ | |
/var/folders/_r/52tr69g54qvbxtg8fx7548tm0000gq/T/tmp.s8VZdqFW/kustomize/build/goimports -w HelmChartInflationGenerator.go \ | |
) | |
cd api; /Library/Developer/CommandLineTools/usr/bin/make build | |
Makefile:7: warning: overriding commands for target `test' | |
../Makefile-modules.mk:23: warning: ignoring old commands for target `test' | |
Makefile:10: warning: overriding commands for target `build' | |
../Makefile-modules.mk:38: warning: ignoring old commands for target `build' | |
go build -ldflags "-X sigs.k8s.io/kustomize/api/provenance.version=v444.333.222" ./... | |
cd kustomize; \ | |
go install . | |
$ $PWD/build/kustomize build [email protected]:bc7947cb727d7f9217e7862d961a1ffd.git | |
apiVersion: v1 | |
data: | |
hello: world | |
kind: ConfigMap | |
metadata: | |
name: hello-dc6fm46dhm | |
$ pbpaste | gh gist create --public --filename kustomize-working-session2.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Note: This gist is for the kubernetes-sigs/kustomize#4998 (comment) comment.