Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

travis: Add rm of existing pkg dir #329

Merged
merged 2 commits into from
Jun 26, 2018

Conversation

theishshah
Copy link
Member

@theishshah theishshah commented Jun 25, 2018

we need to delete the existing vendored sdk pkg as the ln tool will not create the expected symlink over an existing directory.

.travis.yml Outdated
@@ -38,6 +38,7 @@ script:
- cd $GOPATH/src/github.com/example-inc
- operator-sdk new memcached-operator --api-version=cache.example.com/v1alpha1 --kind=Memcached
- cd memcached-operator
- rm -rf vendor/github.com/operator-framework/operator-sdk/pkg
- ln -sf ${TRAVIS_BUILD_DIR}/pkg vendor/github.com/operator-framework/operator-sdk/pkg
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove the f flag since we don't need to overwrite pkg anymore.

@hasbro17
Copy link
Contributor

LGTM after nit.

@theishshah theishshah merged commit b5c345f into operator-framework:master Jun 26, 2018
camilamacedo86 added a commit that referenced this pull request Jul 7, 2020
…3305)

**Description**
- Just add the KB internal in  internal/kubebuilder
- change hack/check-license.sh to allow kb license

**Motivation**
SDK is in a process to be integrated with KB which means that its project layouts will be aligned. More info : [Integrating Kubebuilder and Operator SDK](https://github.com/kubernetes-sigs/kubebuilder/blob/master/designs/integrating-kubebuilder-and-osdk.md). As the first step, for we getting starting to working on in the Ansible/Helm plugins with the new layout we defined the strategy to just copy these helpers which will allow us to have the same features/utilities required to do the scaffolds.   

Note that these utilities are not exported by kubebuilder, in this way,  since Ansible/Helm will be also plugins that will do similar scaffolds and following a similar design they will be useful in the next steps. For a further understanding see the WIP: #329 and the doc [Extensible CLI and Scaffolding Plugins](https://github.com/kubernetes-sigs/kubebuilder/blob/master/designs/extensible-cli-and-scaffolding-plugins-phase-1.md).
camilamacedo86 added a commit that referenced this pull request Jul 15, 2020
**Description of the change:**
This PR adds the helm plugin scaffolding the files with the new layout and using the current sdk helm pkg implementation (image)

- added e2e tests for helm new layout. See:`/test/e2e-helm-new/e2e_suite.go` and `./hack/tests/e2e-helm-new.sh` 
- centralize the method ReplaceInFile in the test/internal/utils.go since it is useful for all tests
- Impl e2e tests in shell for the new layout. See `hack/tests/e2e-helm.sh` 

**Motivation**

SDK is in a process to be integrated with KB which means that its project layouts will be aligned. More info : [Integrating Kubebuilder and Operator SDK](https://github.com/kubernetes-sigs/kubebuilder/blob/master/designs/integrating-kubebuilder-and-osdk.md). 

This PR adds the Helm Plugin which will provide the Helm project in the new layout by the command `operator-sdk init --plugins=`helm.operator-sdk.io/v1`. For a further understanding see the WIP: #329 and the doc [Extensible CLI and Scaffolding Plugins](https://github.com/kubernetes-sigs/kubebuilder/blob/master/designs/extensible-cli-and-scaffolding-plugins-phase-1.md).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants