Skip to content

Commit

Permalink
generate: resulting files in source tree
Browse files Browse the repository at this point in the history
No automatic generation of files but we checkin the resulting
artifacts when there is a need to regenerate them.
  • Loading branch information
dahankzter authored and Henrik Johansson committed Sep 26, 2019
1 parent 10465e2 commit 967e5f5
Show file tree
Hide file tree
Showing 4 changed files with 291 additions and 9 deletions.
5 changes: 0 additions & 5 deletions .gitignore
Expand Up @@ -13,11 +13,6 @@ bin
# Output of the go coverage tool, specifically when used with LiteIDE
*.out

# Kubernetes Generated files - skip generated files, except for vendored files

zz_generated.*
!vendor/**/zz_generated.*

# editor and IDE paraphernalia
.idea
*.swp
Expand Down
6 changes: 3 additions & 3 deletions Makefile
Expand Up @@ -7,15 +7,15 @@ IMG ?= "${REPO}:${TAG}"
all: test local-build

# Run tests
test: generate fmt vet manifests vendor
test: fmt vet manifests vendor
go test ./pkg/... ./cmd/... -coverprofile cover.out

# Build local-build binary
local-build: generate fmt vet vendor
local-build: fmt vet vendor
go build -o bin/manager github.com/scylladb/scylla-operator/cmd

# Run against the configured Kubernetes cluster in ~/.kube/config
run: generate fmt vet vendor
run: fmt vet vendor
go run ./cmd operator --image="${IMG}" --enable-admission-webhook=false

# Install CRDs into a cluster
Expand Down
2 changes: 1 addition & 1 deletion pkg/apis/apis.go
Expand Up @@ -14,7 +14,7 @@ limitations under the License.
*/

// Generate deepcopy for apis
//go:generate go run ../../vendor/k8s.io/code-generator/cmd/deepcopy-gen/main.go -O zz_generated.deepcopy -i ./... -h ../../hack/boilerplate.go.txt
//go:generate go run ../../vendor/k8s.io/code-generator/cmd/deepcopy-gen/main.go -o ./../../../../../ -O zz_generated.deepcopy -i ./... -h ../../hack/boilerplate.go.txt

// Package apis contains Kubernetes API groups.
package apis
Expand Down
287 changes: 287 additions & 0 deletions pkg/apis/scylla/v1alpha1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 967e5f5

Please sign in to comment.