kubes_google 0.3.4 → 0.3.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/kubes_google.rb +4 -0
- data/lib/kubes_google/secrets/fetcher/sdk.rb +13 -0
- data/lib/kubes_google/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c4940b31e1e64807b1036d0980ab6c1ebe81aa6f05581b1e2d00b3bf915d12c0
|
4
|
+
data.tar.gz: 6761294987f6c33fef1d9764712bab015b7b264fa8e5b84c166a633f03bc44aa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4c09463d4a76e82240502a5779e90a9874b9c91d4f195f91af128fa48a134b44a9485a5c327fad74826834edd57e0137ebd9375558f4253ec0ca5242610061a7
|
7
|
+
data.tar.gz: a7ecffa4255c71544b92fd5df88bac16a5a06eb4e2c8e48eed9d9b1f61a12c98f18c3c6edd8f92aef51ffeb595605a9cccb578a42dbc810b89fc9eeb9a97fe02
|
data/CHANGELOG.md
CHANGED
@@ -3,6 +3,10 @@
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
4
4
|
This project *loosely tries* to adhere to [Semantic Versioning](http://semver.org/), even before v1.0.
|
5
5
|
|
6
|
+
## [0.3.5] - 2020-11-12
|
7
|
+
- add KubesGoogle.cloudbuild? check
|
8
|
+
- fetcher sdk friendly suggestion to use gcloud when vpn errors
|
9
|
+
|
6
10
|
## [0.3.4] - 2020-11-12
|
7
11
|
- fix KubesGoogle.config.secrets.fetcher check
|
8
12
|
|
data/lib/kubes_google.rb
CHANGED
@@ -29,6 +29,19 @@ class KubesGoogle::Secrets::Fetcher
|
|
29
29
|
resp = secret_manager_service.list_secrets(parent: parent) # note: page_size doesnt seem to get respected
|
30
30
|
name = resp.first.name # IE: projects/686010496118/secrets/demo-dev-db_host
|
31
31
|
@@project_number = name.split('/')[1]
|
32
|
+
rescue Google::Cloud::UnavailableError => e
|
33
|
+
logger.error "ERROR: #{e.message}"
|
34
|
+
if e.message.include?("failed to connect")
|
35
|
+
logger.info <<~EOL
|
36
|
+
SSL Handshake failed. This error seems to happen with some VPN setups.
|
37
|
+
Please try the gcloud fetcher instead. To set up see:
|
38
|
+
|
39
|
+
https://kubes.guru/docs/helpers/google/secrets/#fetcher-strategy
|
40
|
+
EOL
|
41
|
+
exit 1
|
42
|
+
else
|
43
|
+
raise
|
44
|
+
end
|
32
45
|
end
|
33
46
|
end
|
34
47
|
end
|
data/lib/kubes_google/version.rb
CHANGED