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

feat(k8s): add test and task support for kubernetes module type #1530

Merged
merged 4 commits into from
Jan 27, 2020

Conversation

edvald
Copy link
Collaborator

@edvald edvald commented Jan 21, 2020

What this PR does / why we need it:

I basically re-used the same functionality from the helm module type.
Nice and simple.

Note: We may want to revisit that schema at some point, but I figured
the sane approach would be to keep it consistent for now.

Which issue(s) this PR fixes:

Closes #1529

@thsig thsig self-assigned this Jan 21, 2020
@eysi09 eysi09 assigned 10ko and eysi09 and unassigned thsig and 10ko Jan 22, 2020
Copy link
Collaborator

@eysi09 eysi09 left a comment

Choose a reason for hiding this comment

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

Had a few minor comments.

Also wondering if we should add a guide similar to this one https://docs.garden.io/guides/using-helm-charts for the Kubernetes module type. Or merge the two into a single generic guide. These concepts are a little complicated IMO and the Helm charts guide does a really good job of explaining them.

We might also want to show this functionality in an example project. The current kubernetes-module example only uses remote container images. (It would also showcase how to reference the deployment image under the manifests field). We could in turn skip the redis service.

I'm fine with updating the guide in a follow-up PR but updating the example should be straightforward.

garden-service/src/plugins/kubernetes/config.ts Outdated Show resolved Hide resolved
garden-service/src/plugins/kubernetes/config.ts Outdated Show resolved Hide resolved
garden-service/src/plugins/kubernetes/config.ts Outdated Show resolved Hide resolved
garden-service/src/plugins/kubernetes/util.ts Outdated Show resolved Hide resolved
garden-service/src/plugins/kubernetes/util.ts Outdated Show resolved Hide resolved
@edvald edvald force-pushed the kubernetes-module-tests branch 4 times, most recently from 25c8d5b to 0b0f9b6 Compare January 22, 2020 17:20
edvald and others added 3 commits January 27, 2020 13:47
I basically re-used the same functionality from the `helm` module type.
Nice and simple.

Note: We may want to revisit that schema at some point, but I figured
the sane approach would be to keep it consistent for now.

Closes #1529
Added integ tests for the basic failing cases for Kubernetes module
tests and tasks.

Also added missing imports for the getTestResult and getTaskResult
handlers to the kubernetes module type.
@edvald edvald force-pushed the kubernetes-module-tests branch from 0ac1dab to c5f20c4 Compare January 27, 2020 12:49
@edvald edvald force-pushed the kubernetes-module-tests branch from c5f20c4 to 2f1ecc0 Compare January 27, 2020 14:06
@edvald edvald merged commit 469453e into master Jan 27, 2020
@edvald edvald deleted the kubernetes-module-tests branch January 27, 2020 14:41
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.

[FEATURE]: Allow to specify tests and tasks in kubernetes modules
4 participants