Skip to content
Permalink
Browse files

Merge pull request #703 from DirectXMan12/feature/default-to-scaffold-v2

⚠️ Switch default project version to v2
  • Loading branch information...
k8s-ci-robot committed May 16, 2019
2 parents 3bbbf65 + 8493612 commit 41e0cc9de5fe41bd579a0b25362734179e4a7d92
Showing with 4 additions and 4 deletions.
  1. +2 −2 build/test.sh
  2. +1 −1 cmd/init_project.go
  3. +1 −1 test.sh
@@ -29,7 +29,7 @@ export TEST_ASSET_KUBE_APISERVER=/tmp/kubebuilder/bin/kube-apiserver
export TEST_ASSET_ETCD=/tmp/kubebuilder/bin/etcd

# Run the commands
kubebuilder init repo --domain sample.kubernetes.io
kubebuilder init --project-version 1 repo --domain sample.kubernetes.io
kubebuilder create resource --group insect --version v1beta1 --kind Bee
kubebuilder create resource --group insect --version v1beta1 --kind Wasp
kubebuilder create controller --group apps --version v1beta2 --kind Deployment --core-type
@@ -40,4 +40,4 @@ go build ./pkg/...
go test ./cmd/...
go test ./pkg/...

fi
fi
@@ -106,7 +106,7 @@ func (o *projectOptions) bindCmdlineFlags(cmd *cobra.Command) {
cmd.Flags().StringVar(&o.project.Repo, "repo", util.Repo, "name of the github repo. "+
"defaults to the go package of the current working directory.")
cmd.Flags().StringVar(&o.project.Domain, "domain", "k8s.io", "domain for groups")
cmd.Flags().StringVar(&o.project.Version, "project-version", project.Version1, "project version")
cmd.Flags().StringVar(&o.project.Version, "project-version", project.Version2, "project version")
}

func (o *projectOptions) initializeProject() {
@@ -21,7 +21,7 @@ source common.sh

function test_init_project {
header_text "performing init project"
kubebuilder init --domain example.com <<< "n"
kubebuilder init --project-version 1 --domain example.com <<< "n"
}

function test_make_project {

0 comments on commit 41e0cc9

Please sign in to comment.
You can’t perform that action at this time.