kuberun 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: da5d548aede020fab4769a2a45582b3f414ce86245b3d50dc970703ca6ab4f24
4
+ data.tar.gz: 5f772f24c91a560370e6acd080da010a2bfc4c2212d5373378f2d1b9fc94dfde
5
+ SHA512:
6
+ metadata.gz: a22538c40dbf5188836b1814f3a214e3ce3eb6e83ba75e999f35e91d4cc036e5892c2629bb92dfc8a2839e87fb44948a333a440db0f5cbefab4d9ab8ff1eaae5
7
+ data.tar.gz: 41cc9a3d8ad0f05208cfc841f7ddb07130e6e30d2c525945489c6246b3e79d7bbcf8d0bf6c6a613ec4a947405144bea7cc9ce9bf00fb6bcf4b4c8e20184511f9
data/.codeclimate.yml ADDED
@@ -0,0 +1,4 @@
1
+ plugins:
2
+ rubocop:
3
+ enabled: true
4
+ channel: rubocop-0-58
data/.gitignore ADDED
@@ -0,0 +1,68 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
9
+
10
+ # rspec failure tracking
11
+ .rspec_status
12
+ .idea
13
+
14
+ # Created by https://www.gitignore.io/api/ruby
15
+
16
+ ### Ruby ###
17
+ *.gem
18
+ *.rbc
19
+ /.config
20
+ /coverage/
21
+ /InstalledFiles
22
+ /pkg/
23
+ /spec/reports/
24
+ /spec/examples.txt
25
+ /test/tmp/
26
+ /test/version_tmp/
27
+ /tmp/
28
+
29
+ # Used by dotenv library to load environment variables.
30
+ # .env
31
+
32
+ ## Specific to RubyMotion:
33
+ .dat*
34
+ .repl_history
35
+ build/
36
+ *.bridgesupport
37
+ build-iPhoneOS/
38
+ build-iPhoneSimulator/
39
+
40
+ ## Specific to RubyMotion (use of CocoaPods):
41
+ #
42
+ # We recommend against adding the Pods directory to your .gitignore. However
43
+ # you should judge for yourself, the pros and cons are mentioned at:
44
+ # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
45
+ #
46
+ # vendor/Pods/
47
+
48
+ ## Documentation cache and generated files:
49
+ /.yardoc/
50
+ /_yardoc/
51
+ /doc/
52
+ /rdoc/
53
+
54
+ ## Environment normalization:
55
+ /.bundle/
56
+ /vendor/bundle
57
+ /lib/bundler/man/
58
+
59
+ # for a library or gem, you might want to ignore these files since the code is
60
+ # intended to run in multiple environments; otherwise, check them in:
61
+ # Gemfile.lock
62
+ # .ruby-version
63
+ # .ruby-gemset
64
+
65
+ # unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
66
+ .rvmrc
67
+
68
+ # End of https://www.gitignore.io/api/ruby
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
data/.rubocop.yml ADDED
@@ -0,0 +1,15 @@
1
+ inherit_from: .rubocop_todo.yml
2
+
3
+ AllCops:
4
+ Exclude:
5
+ - 'vendor/**/*'
6
+ - 'spec/fixtures/**/*'
7
+ - 'tmp/**/*'
8
+ TargetRubyVersion: 2.5
9
+
10
+ Metrics/LineLength:
11
+ Max: 120
12
+
13
+ Metrics/BlockLength:
14
+ Exclude:
15
+ - 'kuberun.gemspec'
data/.rubocop_todo.yml ADDED
@@ -0,0 +1,24 @@
1
+ # This configuration was generated by
2
+ # `rubocop --auto-gen-config`
3
+ # on 2018-08-08 09:31:50 +0200 using RuboCop version 0.58.2.
4
+ # The point is for the user to remove these configuration records
5
+ # one by one as the offenses are removed from the code base.
6
+ # Note that changes in the inspected code, or installation of new
7
+ # versions of RuboCop, may require this file to be generated again.
8
+
9
+ # Offense count: 1
10
+ # Cop supports --auto-correct.
11
+ # Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods.
12
+ Lint/UnusedMethodArgument:
13
+ Exclude:
14
+ - 'lib/kuberun/commands/start.rb'
15
+
16
+ # Offense count: 4
17
+ Style/Documentation:
18
+ Exclude:
19
+ - 'spec/**/*'
20
+ - 'test/**/*'
21
+ - 'lib/kuberun.rb'
22
+ - 'lib/kuberun/command.rb'
23
+ - 'lib/kuberun/commands/start.rb'
24
+ - 'lib/kuberun/lib/kubectl.rb'
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ 2.5.1
data/.travis.yml ADDED
@@ -0,0 +1,5 @@
1
+ sudo: false
2
+ language: ruby
3
+ rvm:
4
+ - 2.5.1
5
+ before_install: gem install bundler -N
@@ -0,0 +1,74 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to making participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, gender identity and expression, level of experience,
9
+ nationality, personal appearance, race, religion, or sexual identity and
10
+ orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
17
+ * Using welcoming and inclusive language
18
+ * Being respectful of differing viewpoints and experiences
19
+ * Gracefully accepting constructive criticism
20
+ * Focusing on what is best for the community
21
+ * Showing empathy towards other community members
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ * The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ * Trolling, insulting/derogatory comments, and personal or political attacks
28
+ * Public or private harassment
29
+ * Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ * Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies both within project spaces and in public spaces
49
+ when an individual is representing the project or its community. Examples of
50
+ representing a project or community include using an official project e-mail
51
+ address, posting via an official social media account, or acting as an appointed
52
+ representative at an online or offline event. Representation of a project may be
53
+ further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported by contacting the project team at jakub.kruczek@boostcom.no. All
59
+ complaints will be reviewed and investigated and will result in a response that
60
+ is deemed necessary and appropriate to the circumstances. The project team is
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ ## Attribution
69
+
70
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
+ available at [http://contributor-covenant.org/version/1/4][version]
72
+
73
+ [homepage]: http://contributor-covenant.org
74
+ [version]: http://contributor-covenant.org/version/1/4/
data/Gemfile ADDED
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ source 'https://rubygems.org'
4
+
5
+ git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
6
+
7
+ # Specify your gem's dependencies in kuberun.gemspec
8
+ gemspec
data/Gemfile.lock ADDED
@@ -0,0 +1,149 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ kuberun (0.1.0)
5
+ pastel (~> 0.7.2)
6
+ thor (~> 0.20.0)
7
+ tty-color (~> 0.4.2)
8
+ tty-command (~> 0.8.0)
9
+ tty-config (~> 0.2.0)
10
+ tty-cursor (~> 0.5.0)
11
+ tty-editor (~> 0.4.0)
12
+ tty-file (~> 0.6.0)
13
+ tty-font (~> 0.2.0)
14
+ tty-markdown (~> 0.4.0)
15
+ tty-pager (~> 0.11.0)
16
+ tty-platform (~> 0.1.0)
17
+ tty-progressbar (~> 0.15.0)
18
+ tty-prompt (~> 0.16.1)
19
+ tty-screen (~> 0.6.4)
20
+ tty-spinner (~> 0.8.0)
21
+ tty-table (~> 0.10.0)
22
+ tty-tree (~> 0.1.0)
23
+ tty-which (~> 0.3.0)
24
+
25
+ GEM
26
+ remote: https://rubygems.org/
27
+ specs:
28
+ ast (2.4.0)
29
+ byebug (10.0.2)
30
+ coderay (1.1.2)
31
+ diff-lcs (1.3)
32
+ equatable (0.5.0)
33
+ hitimes (1.3.0)
34
+ jaro_winkler (1.5.1)
35
+ kramdown (1.16.2)
36
+ method_source (0.9.0)
37
+ necromancer (0.4.0)
38
+ parallel (1.12.1)
39
+ parser (2.5.1.2)
40
+ ast (~> 2.4.0)
41
+ pastel (0.7.2)
42
+ equatable (~> 0.5.0)
43
+ tty-color (~> 0.4.0)
44
+ powerpack (0.1.2)
45
+ pry (0.11.3)
46
+ coderay (~> 1.1.0)
47
+ method_source (~> 0.9.0)
48
+ pry-byebug (3.6.0)
49
+ byebug (~> 10.0)
50
+ pry (~> 0.10)
51
+ rainbow (3.0.0)
52
+ rake (10.5.0)
53
+ rouge (3.1.1)
54
+ rspec (3.7.0)
55
+ rspec-core (~> 3.7.0)
56
+ rspec-expectations (~> 3.7.0)
57
+ rspec-mocks (~> 3.7.0)
58
+ rspec-core (3.7.1)
59
+ rspec-support (~> 3.7.0)
60
+ rspec-expectations (3.7.0)
61
+ diff-lcs (>= 1.2.0, < 2.0)
62
+ rspec-support (~> 3.7.0)
63
+ rspec-mocks (3.7.0)
64
+ diff-lcs (>= 1.2.0, < 2.0)
65
+ rspec-support (~> 3.7.0)
66
+ rspec-support (3.7.1)
67
+ rubocop (0.58.2)
68
+ jaro_winkler (~> 1.5.1)
69
+ parallel (~> 1.10)
70
+ parser (>= 2.5, != 2.5.1.1)
71
+ powerpack (~> 0.1)
72
+ rainbow (>= 2.2.2, < 4.0)
73
+ ruby-progressbar (~> 1.7)
74
+ unicode-display_width (~> 1.0, >= 1.0.1)
75
+ ruby-progressbar (1.10.0)
76
+ strings (0.1.1)
77
+ unicode-display_width (~> 1.3.0)
78
+ unicode_utils (~> 1.4.0)
79
+ thor (0.20.0)
80
+ timers (4.1.2)
81
+ hitimes
82
+ tty-color (0.4.3)
83
+ tty-command (0.8.1)
84
+ pastel (~> 0.7.0)
85
+ tty-config (0.2.0)
86
+ tty-cursor (0.5.0)
87
+ tty-editor (0.4.0)
88
+ tty-prompt (~> 0.16.0)
89
+ tty-which (~> 0.3.0)
90
+ tty-file (0.6.0)
91
+ diff-lcs (~> 1.3.0)
92
+ pastel (~> 0.7.2)
93
+ tty-prompt (~> 0.16.1)
94
+ tty-font (0.2.0)
95
+ tty-markdown (0.4.0)
96
+ kramdown (~> 1.16.2)
97
+ pastel (~> 0.7.2)
98
+ rouge (~> 3.1.0)
99
+ strings (~> 0.1.0)
100
+ tty-color (~> 0.4.2)
101
+ tty-screen (~> 0.6.4)
102
+ tty-pager (0.11.0)
103
+ strings (~> 0.1.0)
104
+ tty-screen (~> 0.6.4)
105
+ tty-which (~> 0.3.0)
106
+ tty-platform (0.1.0)
107
+ tty-progressbar (0.15.1)
108
+ tty-cursor (~> 0.5.0)
109
+ tty-screen (~> 0.6.4)
110
+ unicode-display_width (~> 1.3)
111
+ tty-prompt (0.16.1)
112
+ necromancer (~> 0.4.0)
113
+ pastel (~> 0.7.0)
114
+ timers (~> 4.0)
115
+ tty-cursor (~> 0.5.0)
116
+ tty-reader (~> 0.3.0)
117
+ tty-reader (0.3.0)
118
+ tty-cursor (~> 0.5.0)
119
+ tty-screen (~> 0.6.4)
120
+ wisper (~> 2.0.0)
121
+ tty-screen (0.6.5)
122
+ tty-spinner (0.8.0)
123
+ tty-cursor (>= 0.5.0)
124
+ tty-table (0.10.0)
125
+ equatable (~> 0.5.0)
126
+ necromancer (~> 0.4.0)
127
+ pastel (~> 0.7.2)
128
+ strings (~> 0.1.0)
129
+ tty-screen (~> 0.6.4)
130
+ tty-tree (0.1.0)
131
+ tty-which (0.3.0)
132
+ unicode-display_width (1.3.0)
133
+ unicode_utils (1.4.0)
134
+ wisper (2.0.0)
135
+
136
+ PLATFORMS
137
+ ruby
138
+
139
+ DEPENDENCIES
140
+ bundler (~> 1.16)
141
+ kuberun!
142
+ pry
143
+ pry-byebug
144
+ rake (~> 10.0)
145
+ rspec (~> 3.0)
146
+ rubocop (~> 0.58.0)
147
+
148
+ BUNDLED WITH
149
+ 1.16.3
data/LICENSE.txt ADDED
@@ -0,0 +1,20 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2018 Boostcom
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
6
+ this software and associated documentation files (the "Software"), to deal in
7
+ the Software without restriction, including without limitation the rights to
8
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9
+ the Software, and to permit persons to whom the Software is furnished to do so,
10
+ subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17
+ FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18
+ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19
+ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,49 @@
1
+ # Kuberun
2
+
3
+ How many time you had to run long running, resource exhausting command on Kubernetes pod and afterwards it was killed by autoscaling/memory limit or deployment made by someone?
4
+
5
+ This CLI tool aims to create completely separate pod for those commands without having to manually code its configuration.
6
+
7
+ Uses `kubectl` inside.
8
+
9
+ ## Installation
10
+
11
+ Dependencies:
12
+ * Ruby >= 2.4
13
+ * kubectl in `$PATH`
14
+
15
+ Add this line to your application's Gemfile:
16
+
17
+ ```ruby
18
+ gem 'kuberun'
19
+ ```
20
+
21
+ And then execute:
22
+
23
+ $ bundle
24
+
25
+ Or install it yourself as:
26
+
27
+ $ gem install kuberun
28
+
29
+ ## Usage
30
+
31
+ TODO: Write usage instructions here
32
+
33
+ ## Development
34
+
35
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
36
+
37
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
38
+
39
+ ## Contributing
40
+
41
+ Bug reports and pull requests are welcome on GitHub at https://github.com/Boostcom/kuberun. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
42
+
43
+ ## Code of Conduct
44
+
45
+ Everyone interacting in the Kuberun project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/Boostcom/kuberun/blob/master/CODE_OF_CONDUCT.md).
46
+
47
+ ## Copyright
48
+
49
+ Copyright (c) 2018 Boostcom. See [MIT License](LICENSE.txt) for further details.