knife-google 3.0.0 → 3.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/ISSUE_TEMPLATE.md +21 -0
- data/.rspec +3 -3
- data/.travis.yml +0 -1
- data/CHANGELOG.md +175 -19
- data/Gemfile +7 -0
- data/Rakefile +1 -0
- data/knife-google.gemspec +3 -6
- data/lib/chef/knife/cloud/google_service.rb +4 -1
- data/lib/chef/knife/cloud/google_service_helpers.rb +1 -0
- data/lib/chef/knife/cloud/google_service_options.rb +1 -0
- data/lib/chef/knife/google_disk_create.rb +1 -0
- data/lib/chef/knife/google_disk_delete.rb +1 -0
- data/lib/chef/knife/google_disk_list.rb +1 -0
- data/lib/chef/knife/google_project_quotas.rb +1 -0
- data/lib/chef/knife/google_region_list.rb +1 -0
- data/lib/chef/knife/google_region_quotas.rb +1 -0
- data/lib/chef/knife/google_server_create.rb +1 -0
- data/lib/chef/knife/google_server_delete.rb +1 -0
- data/lib/chef/knife/google_server_list.rb +1 -0
- data/lib/chef/knife/google_server_show.rb +1 -0
- data/lib/chef/knife/google_zone_list.rb +1 -0
- data/lib/knife-google/version.rb +2 -1
- data/spec/cloud/google_service_helpers_spec.rb +1 -0
- data/spec/cloud/google_service_spec.rb +29 -0
- data/spec/google_disk_create_spec.rb +1 -0
- data/spec/google_disk_delete_spec.rb +1 -0
- data/spec/google_disk_list_spec.rb +1 -0
- data/spec/google_project_quotas_spec.rb +1 -0
- data/spec/google_region_list_spec.rb +1 -0
- data/spec/google_region_quotas_spec.rb +1 -0
- data/spec/google_server_create_spec.rb +1 -0
- data/spec/google_server_delete_spec.rb +1 -0
- data/spec/google_server_list_spec.rb +1 -0
- data/spec/google_server_show_spec.rb +1 -0
- data/spec/google_zone_list_spec.rb +1 -0
- metadata +4 -59
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e898029ab85082633f81cd94eafcca433629bbb0
|
4
|
+
data.tar.gz: 39617c24e15ab576173307da545e25e641cc5886
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f9970b9538003f7847b735bc0e7e94916e8668b43c85fdb80f24607347a5cab39088adbb46e803d58153c0850bf144166c79f06459c162f196171409e1bbca65
|
7
|
+
data.tar.gz: cb7117544c79a257f71c5b33b9f5561b69287d9d0a6ac2e62902d8135263466b54a4277051c97df3dc14eed38f97a173dc5f3f8caf3390c6f8fd7c8e3ac05087
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# Version:
|
2
|
+
|
3
|
+
[Version of the project installed]
|
4
|
+
|
5
|
+
# Environment: [Details about the environment such as the Operating System, cookbook details, etc...]
|
6
|
+
|
7
|
+
# Scenario:
|
8
|
+
|
9
|
+
[What you are trying to achieve and you can't?]
|
10
|
+
|
11
|
+
# Steps to Reproduce:
|
12
|
+
|
13
|
+
[If you are filing an issue what are the things we need to do in order to repro your problem?]
|
14
|
+
|
15
|
+
# Expected Result:
|
16
|
+
|
17
|
+
[What are you expecting to happen as the consequence of above reproduction steps?]
|
18
|
+
|
19
|
+
# Actual Result:
|
20
|
+
|
21
|
+
[What actually happens after the reproduction steps?]
|
data/.rspec
CHANGED
@@ -1,3 +1,3 @@
|
|
1
|
-
--color
|
2
|
-
-fdocumentation
|
3
|
-
|
1
|
+
--color
|
2
|
+
-fdocumentation
|
3
|
+
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,28 +1,184 @@
|
|
1
|
-
#
|
1
|
+
# Change Log
|
2
2
|
|
3
|
-
## v3.0.0 (2016-
|
4
|
-
* [pr#111](https://github.com/chef/knife-google/pull/111) Bumped version of Ruby support
|
3
|
+
## [v3.1.0](https://github.com/chef/knife-google/tree/v3.1.0) (2016-11-08)
|
5
4
|
|
6
|
-
|
7
|
-
* [pr#112](https://github.com/chef/knife-google/pull/112) Fixed the zone and region listing
|
8
|
-
* [pr#109](https://github.com/chef/knife-google/pull/109) Add aliases to match image families and add Ubuntu 16.04
|
5
|
+
[Full Changelog](https://github.com/chef/knife-google/compare/v3.0.0...v3.1.0)
|
9
6
|
|
10
|
-
|
11
|
-
* [pr#102](https://github.com/chef/knife-google/pull/102) Added support for preemptible instances
|
12
|
-
* [pr#103](https://github.com/chef/knife-google/pull/103) Added support for deploying instances on subnetworks
|
13
|
-
* [pr#103](https://github.com/chef/knife-google/pull/104) Added gcloud-style image aliases (i.e. image "centos-7" will get you the latest CentOS 7 disk image)
|
7
|
+
**Closed issues:**
|
14
8
|
|
15
|
-
|
16
|
-
* [pr#99](https://github.com/chef/knife-google/pull/99) Support service account scope aliases, similar to the gcloud SDK
|
17
|
-
* [pr#101](https://github.com/chef/knife-google/pull/101) Set the application name and version on the API object for proper user-agent formatting
|
9
|
+
- No support for GCE image family [\#108](https://github.com/chef/knife-google/issues/108)
|
18
10
|
|
19
|
-
|
20
|
-
* [pr#94](https://github.com/chef/knife-google/pull/94) Full rewrite using knife-cloud, newer Google API client library, Windows instance support, and better user feedback.
|
11
|
+
**Merged pull requests:**
|
21
12
|
|
22
|
-
|
13
|
+
- Move deps to the Gemfile [\#114](https://github.com/chef/knife-google/pull/114) ([tas50](https://github.com/tas50))
|
14
|
+
- make public\_ip work for any case 'none' at 'instance\_access\_configs\_for' [\#106](https://github.com/chef/knife-google/pull/106) ([abhishekkr](https://github.com/abhishekkr))
|
23
15
|
|
24
|
-
|
16
|
+
## [v3.0.0](https://github.com/chef/knife-google/tree/v3.0.0) (2016-09-28)
|
17
|
+
[Full Changelog](https://github.com/chef/knife-google/compare/v2.2.1...v3.0.0)
|
25
18
|
|
26
|
-
|
19
|
+
**Merged pull requests:**
|
27
20
|
|
28
|
-
|
21
|
+
- v3.0.0 version [\#113](https://github.com/chef/knife-google/pull/113) ([jjasghar](https://github.com/jjasghar))
|
22
|
+
- Require Ruby 2.2 and add 2.3 testing [\#111](https://github.com/chef/knife-google/pull/111) ([tas50](https://github.com/tas50))
|
23
|
+
|
24
|
+
## [v2.2.1](https://github.com/chef/knife-google/tree/v2.2.1) (2016-09-27)
|
25
|
+
[Full Changelog](https://github.com/chef/knife-google/compare/v2.2.0...v2.2.1)
|
26
|
+
|
27
|
+
**Closed issues:**
|
28
|
+
|
29
|
+
- Google::Apis::ClientError [\#107](https://github.com/chef/knife-google/issues/107)
|
30
|
+
|
31
|
+
**Merged pull requests:**
|
32
|
+
|
33
|
+
- fixed region and zone [\#112](https://github.com/chef/knife-google/pull/112) ([jjasghar](https://github.com/jjasghar))
|
34
|
+
- v2.2.1: Version bump + Travis Update [\#110](https://github.com/chef/knife-google/pull/110) ([cblecker](https://github.com/cblecker))
|
35
|
+
- \[Issue \#108\] Matching public image families and adding Ubuntu 16.04 [\#109](https://github.com/chef/knife-google/pull/109) ([nelsonjr](https://github.com/nelsonjr))
|
36
|
+
|
37
|
+
## [v2.2.0](https://github.com/chef/knife-google/tree/v2.2.0) (2016-03-17)
|
38
|
+
[Full Changelog](https://github.com/chef/knife-google/compare/v2.1.0...v2.2.0)
|
39
|
+
|
40
|
+
**Implemented enhancements:**
|
41
|
+
|
42
|
+
- New Functionality: knife-google unable to spinup servers in subnets [\#89](https://github.com/chef/knife-google/issues/89)
|
43
|
+
- Creating a preemptible instance flag feature [\#72](https://github.com/chef/knife-google/issues/72)
|
44
|
+
|
45
|
+
**Closed issues:**
|
46
|
+
|
47
|
+
- Support an alias for latest public image [\#96](https://github.com/chef/knife-google/issues/96)
|
48
|
+
- knife google command not working [\#87](https://github.com/chef/knife-google/issues/87)
|
49
|
+
- Server create command returns error [\#86](https://github.com/chef/knife-google/issues/86)
|
50
|
+
- Can't execute any command with knife [\#84](https://github.com/chef/knife-google/issues/84)
|
51
|
+
- google-api-client dependency is about to break APIs [\#75](https://github.com/chef/knife-google/issues/75)
|
52
|
+
- Feature Request: lists for additional assets [\#73](https://github.com/chef/knife-google/issues/73)
|
53
|
+
- knife google hides quota errors from GCE [\#71](https://github.com/chef/knife-google/issues/71)
|
54
|
+
- Dependency conflict building from master [\#65](https://github.com/chef/knife-google/issues/65)
|
55
|
+
- knife-google master should be deployed to RubyGems [\#57](https://github.com/chef/knife-google/issues/57)
|
56
|
+
- 400 Error from Google During 'knife google setup' [\#55](https://github.com/chef/knife-google/issues/55)
|
57
|
+
- Documentation for adding a tag to the server [\#53](https://github.com/chef/knife-google/issues/53)
|
58
|
+
|
59
|
+
**Merged pull requests:**
|
60
|
+
|
61
|
+
- Adding support for image aliases [\#104](https://github.com/chef/knife-google/pull/104) ([adamleff](https://github.com/adamleff))
|
62
|
+
- Add support for deploying instance on subnetworks [\#103](https://github.com/chef/knife-google/pull/103) ([adamleff](https://github.com/adamleff))
|
63
|
+
- adding support for preemptible GCE instances [\#102](https://github.com/chef/knife-google/pull/102) ([adamleff](https://github.com/adamleff))
|
64
|
+
|
65
|
+
## [v2.1.0](https://github.com/chef/knife-google/tree/v2.1.0) (2016-03-04)
|
66
|
+
[Full Changelog](https://github.com/chef/knife-google/compare/v2.0.0...v2.1.0)
|
67
|
+
|
68
|
+
**Closed issues:**
|
69
|
+
|
70
|
+
- Set application\_name and application\_version [\#100](https://github.com/chef/knife-google/issues/100)
|
71
|
+
- Support the use of service account scope aliases [\#95](https://github.com/chef/knife-google/issues/95)
|
72
|
+
|
73
|
+
**Merged pull requests:**
|
74
|
+
|
75
|
+
- Adding application name and version when creating the connection [\#101](https://github.com/chef/knife-google/pull/101) ([adamleff](https://github.com/adamleff))
|
76
|
+
- add support for service account scope aliases [\#99](https://github.com/chef/knife-google/pull/99) ([adamleff](https://github.com/adamleff))
|
77
|
+
- README updates, reincorporating changes from \#93 [\#98](https://github.com/chef/knife-google/pull/98) ([adamleff](https://github.com/adamleff))
|
78
|
+
|
79
|
+
## [v2.0.0](https://github.com/chef/knife-google/tree/v2.0.0) (2016-03-01)
|
80
|
+
[Full Changelog](https://github.com/chef/knife-google/compare/1.3.1...v2.0.0)
|
81
|
+
|
82
|
+
**Implemented enhancements:**
|
83
|
+
|
84
|
+
- Complete rewrite of knife-google gem, replacing use of `fog` with `google-api-ruby-client` [\#66](https://github.com/chef/knife-google/pull/66) ([paulrossman](https://github.com/paulrossman))
|
85
|
+
|
86
|
+
**Closed issues:**
|
87
|
+
|
88
|
+
- rake install does not work [\#91](https://github.com/chef/knife-google/issues/91)
|
89
|
+
- Error in metadata parsing while creating a compute instance [\#82](https://github.com/chef/knife-google/issues/82)
|
90
|
+
- Spinning up a GCP instance from an EC2 instance results in an error [\#81](https://github.com/chef/knife-google/issues/81)
|
91
|
+
- GCP Service Accounts [\#79](https://github.com/chef/knife-google/issues/79)
|
92
|
+
- knife-google not setting custom metadata [\#74](https://github.com/chef/knife-google/issues/74)
|
93
|
+
- `--bootstrap-version` flag isn't working [\#67](https://github.com/chef/knife-google/issues/67)
|
94
|
+
- knife google server create is having an error boostraping [\#62](https://github.com/chef/knife-google/issues/62)
|
95
|
+
- no implicit conversion of nil into String on knife google server create [\#61](https://github.com/chef/knife-google/issues/61)
|
96
|
+
- ERROR: Image 'ubuntu-1404-trusty-v20150316' not found [\#59](https://github.com/chef/knife-google/issues/59)
|
97
|
+
- knife-google fails with google-api-client \>0.8 [\#44](https://github.com/chef/knife-google/issues/44)
|
98
|
+
- google-knife and knife dependency versions [\#43](https://github.com/chef/knife-google/issues/43)
|
99
|
+
- For any command "ERROR: ArgumentError: unknown keyword: interval" [\#42](https://github.com/chef/knife-google/issues/42)
|
100
|
+
- Knife google failing to setup [\#40](https://github.com/chef/knife-google/issues/40)
|
101
|
+
- Password prompt each time I run 'knife google server create' or 'knife bootstrap' with GCE instances [\#39](https://github.com/chef/knife-google/issues/39)
|
102
|
+
- Failing to create a server with a custom image [\#38](https://github.com/chef/knife-google/issues/38)
|
103
|
+
- Custom Metadata [\#37](https://github.com/chef/knife-google/issues/37)
|
104
|
+
|
105
|
+
**Merged pull requests:**
|
106
|
+
|
107
|
+
- Rewrite of knife-google using knife-cloud, adding windows support [\#94](https://github.com/chef/knife-google/pull/94) ([adamleff](https://github.com/adamleff))
|
108
|
+
- Google api ruby client [\#93](https://github.com/chef/knife-google/pull/93) ([paulrossman](https://github.com/paulrossman))
|
109
|
+
- Error when installing via `rake install` [\#92](https://github.com/chef/knife-google/pull/92) ([l337ch](https://github.com/l337ch))
|
110
|
+
- Updated ffi and win32-service versions [\#90](https://github.com/chef/knife-google/pull/90) ([adamedx](https://github.com/adamedx))
|
111
|
+
- Updated ffi and win32-service versions [\#88](https://github.com/chef/knife-google/pull/88) ([Vasu1105](https://github.com/Vasu1105))
|
112
|
+
- Changes for fixing the issue with excuting knife google commands. [\#85](https://github.com/chef/knife-google/pull/85) ([Vasu1105](https://github.com/Vasu1105))
|
113
|
+
- Error in metadata parsing while creating a compute instance [\#83](https://github.com/chef/knife-google/pull/83) ([SinisterLight](https://github.com/SinisterLight))
|
114
|
+
- Updated release notes and changelog files [\#80](https://github.com/chef/knife-google/pull/80) ([siddheshwar-more](https://github.com/siddheshwar-more))
|
115
|
+
- Bumping the version to 2.0.0 [\#78](https://github.com/chef/knife-google/pull/78) ([siddheshwar-more](https://github.com/siddheshwar-more))
|
116
|
+
- Changed option names according to the long options and used locate\_config\_value\_method [\#77](https://github.com/chef/knife-google/pull/77) ([siddheshwar-more](https://github.com/siddheshwar-more))
|
117
|
+
- Added support for picking options from knife.rb [\#76](https://github.com/chef/knife-google/pull/76) ([siddheshwar-more](https://github.com/siddheshwar-more))
|
118
|
+
- Fixed --bootstrap-version command line option [\#70](https://github.com/chef/knife-google/pull/70) ([Vasu1105](https://github.com/Vasu1105))
|
119
|
+
- Change homepage to the GitHub repo. [\#69](https://github.com/chef/knife-google/pull/69) ([mbrukman](https://github.com/mbrukman))
|
120
|
+
- Added badges: gem version, build status, and deps. [\#68](https://github.com/chef/knife-google/pull/68) ([mbrukman](https://github.com/mbrukman))
|
121
|
+
- 1.4.3 version bump [\#64](https://github.com/chef/knife-google/pull/64) ([paulrossman](https://github.com/paulrossman))
|
122
|
+
- bootstrap issue with --gce-public-ip set to none resolved [\#63](https://github.com/chef/knife-google/pull/63) ([Vasu1105](https://github.com/Vasu1105))
|
123
|
+
- server create support for additional Linux-based operating systems [\#60](https://github.com/chef/knife-google/pull/60) ([paulrossman](https://github.com/paulrossman))
|
124
|
+
- Fix spec tests [\#58](https://github.com/chef/knife-google/pull/58) ([siddheshwar-more](https://github.com/siddheshwar-more))
|
125
|
+
- Fix "ERROR: TypeError: no implicit conversion of nil into String" [\#56](https://github.com/chef/knife-google/pull/56) ([BrentChapman](https://github.com/BrentChapman))
|
126
|
+
- New pd-ssd option, Gemfile updates [\#54](https://github.com/chef/knife-google/pull/54) ([paulrossman](https://github.com/paulrossman))
|
127
|
+
- fix formatting [\#52](https://github.com/chef/knife-google/pull/52) ([paulrossman](https://github.com/paulrossman))
|
128
|
+
- fix for undefined method 'snake\_case' [\#51](https://github.com/chef/knife-google/pull/51) ([paulrossman](https://github.com/paulrossman))
|
129
|
+
- Formatting and grammar fixes. [\#50](https://github.com/chef/knife-google/pull/50) ([mbrukman](https://github.com/mbrukman))
|
130
|
+
- Fix formatting, spelling, and grammar. [\#49](https://github.com/chef/knife-google/pull/49) ([mbrukman](https://github.com/mbrukman))
|
131
|
+
- Format commands in headings with code font. [\#48](https://github.com/chef/knife-google/pull/48) ([mbrukman](https://github.com/mbrukman))
|
132
|
+
- Remove extra indentation for code blocks and lists. [\#47](https://github.com/chef/knife-google/pull/47) ([mbrukman](https://github.com/mbrukman))
|
133
|
+
- Allow enabling ip forward when creating instance [\#46](https://github.com/chef/knife-google/pull/46) ([luisbosque](https://github.com/luisbosque))
|
134
|
+
- Add instance's boot disk autodelete option [\#41](https://github.com/chef/knife-google/pull/41) ([nullbus](https://github.com/nullbus))
|
135
|
+
- minor typos in setup process [\#36](https://github.com/chef/knife-google/pull/36) ([gmiranda23](https://github.com/gmiranda23))
|
136
|
+
- updated for console UI changes [\#35](https://github.com/chef/knife-google/pull/35) ([gmiranda23](https://github.com/gmiranda23))
|
137
|
+
- Adding the ability to insert additional disks on server creation [\#32](https://github.com/chef/knife-google/pull/32) ([snapsam](https://github.com/snapsam))
|
138
|
+
|
139
|
+
## [1.3.1](https://github.com/chef/knife-google/tree/1.3.1) (2014-04-25)
|
140
|
+
[Full Changelog](https://github.com/chef/knife-google/compare/1.2.0...1.3.1)
|
141
|
+
|
142
|
+
**Merged pull requests:**
|
143
|
+
|
144
|
+
- Update CHANGELOG and release notes for 1.3.1 [\#34](https://github.com/chef/knife-google/pull/34) ([adamedx](https://github.com/adamedx))
|
145
|
+
- updated readme and minor version bump [\#33](https://github.com/chef/knife-google/pull/33) ([paulrossman](https://github.com/paulrossman))
|
146
|
+
- Refresh access token [\#31](https://github.com/chef/knife-google/pull/31) ([erjohnso](https://github.com/erjohnso))
|
147
|
+
- Add release and versioning protocol documentation [\#29](https://github.com/chef/knife-google/pull/29) ([adamedx](https://github.com/adamedx))
|
148
|
+
|
149
|
+
## [1.2.0](https://github.com/chef/knife-google/tree/1.2.0) (2014-02-17)
|
150
|
+
[Full Changelog](https://github.com/chef/knife-google/compare/1.1.0...1.2.0)
|
151
|
+
|
152
|
+
**Merged pull requests:**
|
153
|
+
|
154
|
+
- Get google plugin working for knife bootstrapping on GCE instances. [\#28](https://github.com/chef/knife-google/pull/28) ([anthonyu](https://github.com/anthonyu))
|
155
|
+
- made service accounts easier to use [\#27](https://github.com/chef/knife-google/pull/27) ([paulrossman](https://github.com/paulrossman))
|
156
|
+
- \[KNIFE-417\] knife-google 1.3.1 [\#26](https://github.com/chef/knife-google/pull/26) ([paulrossman](https://github.com/paulrossman))
|
157
|
+
- \[KNIFE-417\] knife-google compatible with GCE API v1 [\#25](https://github.com/chef/knife-google/pull/25) ([paulrossman](https://github.com/paulrossman))
|
158
|
+
- v1beta16 api support [\#24](https://github.com/chef/knife-google/pull/24) ([paulrossman](https://github.com/paulrossman))
|
159
|
+
- OC-9429: Fix rspec deprecation errors for knife-google [\#21](https://github.com/chef/knife-google/pull/21) ([adamedx](https://github.com/adamedx))
|
160
|
+
- OC-9429 Fix rspec deprecation errors for knife-google [\#20](https://github.com/chef/knife-google/pull/20) ([siddheshwar-more](https://github.com/siddheshwar-more))
|
161
|
+
|
162
|
+
## [1.1.0](https://github.com/chef/knife-google/tree/1.1.0) (2013-08-14)
|
163
|
+
**Merged pull requests:**
|
164
|
+
|
165
|
+
- KNIFE-356: Knife google is using deprecated v1beta14 api, should upgrade to v1beta15 [\#19](https://github.com/chef/knife-google/pull/19) ([adamedx](https://github.com/adamedx))
|
166
|
+
- V1beta15 updates [\#18](https://github.com/chef/knife-google/pull/18) ([paulrossman](https://github.com/paulrossman))
|
167
|
+
- \[KNIFE-326\] travis integration validation [\#17](https://github.com/chef/knife-google/pull/17) ([josephrdsmith](https://github.com/josephrdsmith))
|
168
|
+
- Better Error handling when SSL Certificate is not available [\#16](https://github.com/chef/knife-google/pull/16) ([chirag-jog](https://github.com/chirag-jog))
|
169
|
+
- OC-7868: Knife google plug-in does not read cli switches from knife.rb [\#15](https://github.com/chef/knife-google/pull/15) ([adamedx](https://github.com/adamedx))
|
170
|
+
- OC 7869 Knife google does not work on Windows due to REST method failures [\#14](https://github.com/chef/knife-google/pull/14) ([siddheshwar-more](https://github.com/siddheshwar-more))
|
171
|
+
- Oc 7868 - \[ Taking the zone value from knife config file \] [\#13](https://github.com/chef/knife-google/pull/13) ([prabhu-das](https://github.com/prabhu-das))
|
172
|
+
- OC-4667: Merge Google API-based implementation [\#12](https://github.com/chef/knife-google/pull/12) ([adamedx](https://github.com/adamedx))
|
173
|
+
- New implementation using API and updated for v1beta14 [\#11](https://github.com/chef/knife-google/pull/11) ([erjohnso](https://github.com/erjohnso))
|
174
|
+
- Update to the latest 1.5.0 version of gcutils [\#9](https://github.com/chef/knife-google/pull/9) ([chirag-jog](https://github.com/chirag-jog))
|
175
|
+
- Support for gcutils-1.3.4 [\#8](https://github.com/chef/knife-google/pull/8) ([chirag-jog](https://github.com/chirag-jog))
|
176
|
+
- OC-4513: Knife-google Issue with gcutils [\#6](https://github.com/chef/knife-google/pull/6) ([mohitsethi](https://github.com/mohitsethi))
|
177
|
+
- OC-4235: Implement delay loading to reduce load-time [\#4](https://github.com/chef/knife-google/pull/4) ([mohitsethi](https://github.com/mohitsethi))
|
178
|
+
- V1beta12 works [\#3](https://github.com/chef/knife-google/pull/3) ([leopd](https://github.com/leopd))
|
179
|
+
- Updated for clarity. If the PROJECT\_ID is required then it should show i... [\#2](https://github.com/chef/knife-google/pull/2) ([jamescott](https://github.com/jamescott))
|
180
|
+
- Changed --server-name short option to -s [\#1](https://github.com/chef/knife-google/pull/1) ([paulmooring](https://github.com/paulmooring))
|
181
|
+
|
182
|
+
|
183
|
+
|
184
|
+
\* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)*
|
data/Gemfile
CHANGED
data/Rakefile
CHANGED
data/knife-google.gemspec
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
|
+
# frozen_string_literal: true
|
2
3
|
$:.push File.expand_path("../lib", __FILE__)
|
3
4
|
require "knife-google/version"
|
4
5
|
|
@@ -21,11 +22,7 @@ Gem::Specification.new do |s|
|
|
21
22
|
s.add_dependency "google-api-client", "~> 0.9.0"
|
22
23
|
s.add_dependency "gcewinpass", "~> 1.0"
|
23
24
|
|
24
|
-
s.
|
25
|
+
s.add_development_dependency "github_changelog_generator"
|
25
26
|
|
26
|
-
s.
|
27
|
-
s.add_development_dependency "rspec", "~> 3.1"
|
28
|
-
s.add_development_dependency "simplecov", "~> 0.9"
|
29
|
-
s.add_development_dependency "pry"
|
30
|
-
s.add_development_dependency "chefstyle"
|
27
|
+
s.files = `git ls-files -z`.split("\x0")
|
31
28
|
end
|
@@ -1,3 +1,4 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
#
|
2
3
|
# Author:: Chef Partner Engineering (<partnereng@chef.io>)
|
3
4
|
# Copyright:: Copyright (c) 2016 Chef Software, Inc.
|
@@ -408,7 +409,9 @@ class Chef::Knife::Cloud
|
|
408
409
|
end
|
409
410
|
|
410
411
|
def instance_access_configs_for(public_ip)
|
411
|
-
|
412
|
+
public_ip.downcase! if public_ip.respond_to?(:downcase)
|
413
|
+
|
414
|
+
return [] if public_ip.nil? || public_ip == "none"
|
412
415
|
|
413
416
|
access_config = Google::Apis::ComputeV1::AccessConfig.new
|
414
417
|
access_config.name = "External NAT"
|
data/lib/knife-google/version.rb
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Copyright 2015 Google Inc. All Rights Reserved.
|
2
3
|
#
|
3
4
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
@@ -14,7 +15,7 @@
|
|
14
15
|
#
|
15
16
|
module Knife
|
16
17
|
module Google
|
17
|
-
VERSION = "3.
|
18
|
+
VERSION = "3.1.0"
|
18
19
|
MAJOR, MINOR, TINY = VERSION.split(".")
|
19
20
|
end
|
20
21
|
end
|
@@ -1,3 +1,4 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
#
|
2
3
|
# Author:: Chef Partner Engineering (<partnereng@chef.io>)
|
3
4
|
# Copyright:: Copyright (c) 2016 Chef Software, Inc.
|
@@ -677,6 +678,34 @@ describe Chef::Knife::Cloud::GoogleService do
|
|
677
678
|
end
|
678
679
|
end
|
679
680
|
|
681
|
+
describe "#instance_access_configs_for" do
|
682
|
+
let(:interface) { double("interface" ) }
|
683
|
+
|
684
|
+
context "for None public_ip" do
|
685
|
+
it "empty public_ip none|None|NONE|~" do
|
686
|
+
expect(service.instance_access_configs_for("none")).to eq([])
|
687
|
+
|
688
|
+
expect(service.instance_access_configs_for("None")).to eq([])
|
689
|
+
|
690
|
+
expect(service.instance_access_configs_for("NONE")).to eq([])
|
691
|
+
end
|
692
|
+
end
|
693
|
+
|
694
|
+
context "for valid public_ip" do
|
695
|
+
it "valid public_ip" do
|
696
|
+
access_config = service.instance_access_configs_for("8.8.8.8")
|
697
|
+
expect(access_config.first.nat_ip).to eq("8.8.8.8")
|
698
|
+
end
|
699
|
+
end
|
700
|
+
|
701
|
+
context "for invalid public_ip" do
|
702
|
+
it "empty public_ip none|None|NONE|~" do
|
703
|
+
access_config = service.instance_access_configs_for("oh no not a valid IP")
|
704
|
+
expect(access_config.first.nat_ip).to eq(nil)
|
705
|
+
end
|
706
|
+
end
|
707
|
+
end
|
708
|
+
|
680
709
|
describe "#network_url_for" do
|
681
710
|
it "returns a properly-formatted network URL" do
|
682
711
|
expect(service.network_url_for("test_network")).to eq("projects/test_project/global/networks/test_network")
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: knife-google
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chiraq Jog
|
@@ -13,7 +13,7 @@ authors:
|
|
13
13
|
autorequire:
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
|
-
date: 2016-
|
16
|
+
date: 2016-11-08 00:00:00.000000000 Z
|
17
17
|
dependencies:
|
18
18
|
- !ruby/object:Gem::Dependency
|
19
19
|
name: chef
|
@@ -72,63 +72,7 @@ dependencies:
|
|
72
72
|
- !ruby/object:Gem::Version
|
73
73
|
version: '1.0'
|
74
74
|
- !ruby/object:Gem::Dependency
|
75
|
-
name:
|
76
|
-
requirement: !ruby/object:Gem::Requirement
|
77
|
-
requirements:
|
78
|
-
- - "~>"
|
79
|
-
- !ruby/object:Gem::Version
|
80
|
-
version: '11.0'
|
81
|
-
type: :development
|
82
|
-
prerelease: false
|
83
|
-
version_requirements: !ruby/object:Gem::Requirement
|
84
|
-
requirements:
|
85
|
-
- - "~>"
|
86
|
-
- !ruby/object:Gem::Version
|
87
|
-
version: '11.0'
|
88
|
-
- !ruby/object:Gem::Dependency
|
89
|
-
name: rspec
|
90
|
-
requirement: !ruby/object:Gem::Requirement
|
91
|
-
requirements:
|
92
|
-
- - "~>"
|
93
|
-
- !ruby/object:Gem::Version
|
94
|
-
version: '3.1'
|
95
|
-
type: :development
|
96
|
-
prerelease: false
|
97
|
-
version_requirements: !ruby/object:Gem::Requirement
|
98
|
-
requirements:
|
99
|
-
- - "~>"
|
100
|
-
- !ruby/object:Gem::Version
|
101
|
-
version: '3.1'
|
102
|
-
- !ruby/object:Gem::Dependency
|
103
|
-
name: simplecov
|
104
|
-
requirement: !ruby/object:Gem::Requirement
|
105
|
-
requirements:
|
106
|
-
- - "~>"
|
107
|
-
- !ruby/object:Gem::Version
|
108
|
-
version: '0.9'
|
109
|
-
type: :development
|
110
|
-
prerelease: false
|
111
|
-
version_requirements: !ruby/object:Gem::Requirement
|
112
|
-
requirements:
|
113
|
-
- - "~>"
|
114
|
-
- !ruby/object:Gem::Version
|
115
|
-
version: '0.9'
|
116
|
-
- !ruby/object:Gem::Dependency
|
117
|
-
name: pry
|
118
|
-
requirement: !ruby/object:Gem::Requirement
|
119
|
-
requirements:
|
120
|
-
- - ">="
|
121
|
-
- !ruby/object:Gem::Version
|
122
|
-
version: '0'
|
123
|
-
type: :development
|
124
|
-
prerelease: false
|
125
|
-
version_requirements: !ruby/object:Gem::Requirement
|
126
|
-
requirements:
|
127
|
-
- - ">="
|
128
|
-
- !ruby/object:Gem::Version
|
129
|
-
version: '0'
|
130
|
-
- !ruby/object:Gem::Dependency
|
131
|
-
name: chefstyle
|
75
|
+
name: github_changelog_generator
|
132
76
|
requirement: !ruby/object:Gem::Requirement
|
133
77
|
requirements:
|
134
78
|
- - ">="
|
@@ -151,6 +95,7 @@ extra_rdoc_files:
|
|
151
95
|
- README.md
|
152
96
|
- LICENSE
|
153
97
|
files:
|
98
|
+
- ".github/ISSUE_TEMPLATE.md"
|
154
99
|
- ".gitignore"
|
155
100
|
- ".rspec"
|
156
101
|
- ".travis.yml"
|