Commit 6b48a4c
Integrate task resource (#237)
* Integrate task resource
Integrate main.go
Migrate testing repositories
Format code
* Restyled by prettier-markdown
* Apply suggestions from code review
Co-authored-by: Casper da Costa-Luis <casper.dcl@physics.org>
* Apply suggestions from code review
Co-authored-by: Casper da Costa-Luis <casper.dcl@physics.org>
* Apply suggestions from code review
Co-authored-by: Casper da Costa-Luis <casper.dcl@physics.org>
* Restyled by prettier-markdown
* Simplify `switch` statement.
* Replace `switch` by `if`
Co-Authored-By: DavidGOrtega <g.ortega.david@gmail.com>
* Fix bad character in variable
* Restyled by gofmt
* Add az/k8s aliases on the machine resource
* Adjust timeouts
* Add machine resource compatibility for instance+accelerator notation
* Simplify verbose conditional
Co-Authored-By: DavidGOrtega <g.ortega.david@gmail.com>
* Simplify conditional
* Finish k8s user–friendly storage support
Works like the other providers except for two “insignificant” details:
1. Users need to specify an existing StorageClass and storage capacity
to allocate with a slightly different syntax: `directory = "sc:1:/path"`
would create a PersistentVolumeClaim from the StorageClass `sc` with `1`
GB of capacity, and synchronize `/path` from the user's computer back
and forth. The used StorageClass should support the ReadWriteOnce access
mode for `parallelism = 1` or ReadWriteMany for `parallelism > 1` in
order to be accessed by different pods at the same time. In the first
case, rancher/local-path-provisioner can be used for testing purposes.
2. There is a “feature” (read: bug) pulling files that creates nested
directories. Solving it is trivial, but we need to implement on our own
some of the `kubectl cp` logic.
* Rename cloud providers to use abbreviations
* Reverse AWS image arch/owner fields
* Clarify environment behavior
* Replace results with shared
* Simplify task resource description
Worse yet
* Restyled by prettier-markdown
* Improve Kubernetes destroy handling
* Improve environment variable behavior description
Co-authored-by: Casper da Costa-Luis <casper.dcl@physics.org>
* Update generic instance documentation to “at least”
* Remove `default` on switch
* Remove else
* Remove redundant d.SetId("")
* Remove redundant nil return
* Remove redundant nil return
* Remove stray parenthesis
Co-authored-by: Jorge Orpinel <jorgeorpinel@users.noreply.github.com>
* Replace “declaring” with “defining”
Co-authored-by: Jorge Orpinel <jorgeorpinel@users.noreply.github.com>
* Add colon and period to callout
Co-authored-by: Jorge Orpinel <jorgeorpinel@users.noreply.github.com>
* Remove irrelevant “just”
Co-authored-by: Jorge Orpinel <jorgeorpinel@users.noreply.github.com>
* Reword callout
Co-authored-by: Jorge Orpinel <jorgeorpinel@users.noreply.github.com>
* Add more colons to callouts
Co-authored-by: Jorge Orpinel <jorgeorpinel@users.noreply.github.com>
* Add even mor colons to callouts
Co-authored-by: Jorge Orpinel <jorgeorpinel@users.noreply.github.com>
* Link environment variables on index.md
Co-authored-by: Jorge Orpinel <jorgeorpinel@users.noreply.github.com>
* Add colon and period to callout
Co-authored-by: Jorge Orpinel <jorgeorpinel@users.noreply.github.com>
* Add link to the #cloud-regions section
Co-authored-by: Jorge Orpinel <jorgeorpinel@users.noreply.github.com>
* Add link to the #machine-images section
Co-authored-by: Jorge Orpinel <jorgeorpinel@users.noreply.github.com>
* Add link to the #machine-types section
Co-authored-by: Jorge Orpinel <jorgeorpinel@users.noreply.github.com>
* Remove top–level argument reference
Co-authored-by: Jorge Orpinel <jorgeorpinel@users.noreply.github.com>
* Restyled by prettier-markdown
* Improve result description
Co-authored-by: Jorge Orpinel <jorgeorpinel@users.noreply.github.com>
* Add callout with link to Getting Started
* Restyled by prettier-markdown
* Add note on different ways of specifying script
* Specify Terracorm CLI version constraint
Co-authored-by: Jorge Orpinel <jorgeorpinel@users.noreply.github.com>
* Move machine–specific code to a separate package
* Restyled by gofmt
* Add glob support for environment variables
* fixup! Link environment variables on index.md
* Rename log path to prefix
@dmpetrov cosmetic recommendation
* Replace sizes by types
Co-authored-by: Casper da Costa-Luis <casper.dcl@physics.org>
* Add ASCII tree of project layout
Co-authored-by: Casper da Costa-Luis <casper.dcl@physics.org>
* Restyled by prettier-markdown
* Introduce idempotent identifiers
Now normalized names can be used to import resources. N(N(S)) == N(S)
where N is the normalization function and S the name string.
* Rename universal to common
Less pretentious, despite being sorted between az and gcp
* Rename NewTask to New
* Iron out some bugs and add automated tests
* Improve tests and add Kubernetes
* Add optional StorageClass and requires for k8s
* Simplify task schema code
* Add sweep for smoke tests
Named after the sweep code on official Terraform providers, but also
because... well, it sweeps the soot left by smoke. See also Britten's
The Little Sweep.
* Fix typo 🙈
* Remove Push(unsafe) API wart
* Improve start/stop support
* Allow infinity timeout on machines
* Remove extra log messages and fix `gcp` tests
* Prepare tests for parallel matrix
* Restyled by gofmt
* Fix smoke.yml workflow after testing
* Rename test to enabled
* Relocate hardcoded environment variable on smoke.yml
* minor wording update
Co-authored-by: Restyled.io <commits@restyled.io>
Co-authored-by: Casper da Costa-Luis <casper.dcl@physics.org>
Co-authored-by: DavidGOrtega <g.ortega.david@gmail.com>
Co-authored-by: Jorge Orpinel <jorgeorpinel@users.noreply.github.com>1 parent 8121c66 commit 6b48a4c
File tree
64 files changed
+7718
-225
lines changed- .github/workflows
- docs
- guides
- resources
- iterative
- aws
- azure
- gcp
- kubernetes
- task
- aws
- client
- resources
- az
- client
- resources
- common
- machine
- ssh
- gcp
- client
- resources
- k8s
- client
- resources
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
64 files changed
+7718
-225
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | 1 | | |
5 | 2 | | |
6 | 3 | | |
| |||
24 | 21 | | |
25 | 22 | | |
26 | 23 | | |
27 | | - | |
| 24 | + | |
| 25 | + | |
28 | 26 | | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
| 33 | + | |
| 34 | + | |
32 | 35 | | |
33 | 36 | | |
34 | 37 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
19 | 25 | | |
20 | 26 | | |
21 | 27 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
| 24 | + | |
23 | 25 | | |
24 | 26 | | |
25 | 27 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
0 commit comments