Skip to content

Commit

Permalink
fix: go samples after v3 addtional (#4286)
Browse files Browse the repository at this point in the history
  • Loading branch information
camilamacedo86 committed Dec 7, 2020
1 parent 1ad6ff3 commit e4efaa6
Show file tree
Hide file tree
Showing 65 changed files with 6 additions and 4 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@ website/node_modules/
website/tech-doc-hugo

# Ensure that will not commit the bin gen in the go sample
testdata/go/memcached-operator/bin/*
testdata/go/v2/memcached-operator/bin/*
testdata/go/v3/memcached-operator/bin/*
testdata/ansible/memcached-operator/bin/*
testdata/helm/memcached-operator/bin/*

# Ignore molecule samples testdata if it be generated in the testdata/ diretory
testdata/ansible/memcached-molecule-operator
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ func (mh *MemcachedGoWithWebhooks) implementingAPI() {
// Note that it should NOT be called in the e2e tests.
func GenerateMemcachedGoWithWebhooksSample(samplesPath string) {
log.Infof("starting to generate Go memcached sample with webhooks")
ctx, err := pkg.NewSampleContext(testutils.BinaryName, filepath.Join(samplesPath, "go/memcached-operator"), "GO111MODULE=on")
ctx, err := pkg.NewSampleContext(testutils.BinaryName, filepath.Join(samplesPath, "memcached-operator"), "GO111MODULE=on")
pkg.CheckError("generating Go memcached with webhooks context", err)

memcached := NewMemcachedGoWithWebhooks(&ctx)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -250,8 +250,7 @@ func (mh *MemcachedGoWithWebhooks) implementingAPI() {
// Note that it should NOT be called in the e2e tests.
func GenerateMemcachedGoWithWebhooksSample(samplesPath string) {
log.Infof("starting to generate Go memcached sample with webhooks")
path := filepath.Join(samplesPath, "memcached-operator")
ctx, err := pkg.NewSampleContext(testutils.BinaryName, path, "GO111MODULE=on")
ctx, err := pkg.NewSampleContext(testutils.BinaryName, filepath.Join(samplesPath, "memcached-operator"), "GO111MODULE=on")
pkg.CheckError("generating Go memcached with webhooks context", err)

memcached := NewMemcachedGoWithWebhooks(&ctx)
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit e4efaa6

Please sign in to comment.