kubeclient 4.10.0 → 4.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/README.md +4 -4
- data/RELEASING.md +8 -8
- data/lib/kubeclient/common.rb +0 -7
- data/lib/kubeclient/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 287033950a2bdc37a0d5829270cffa4c6db6802e315cd54db01d91a98961964b
|
|
4
|
+
data.tar.gz: c469d2d8a274bafb576f876d9f62a6e8384ef20943a0aa1b93f4f05dbeb721e2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ccb85f7481dc3b20db30c919a94182e92fdab97e70e5f14f621449006d40a7626ff87351fbcb97e5affa5a1fab9207c7b6401c37d6c5b1cb1c4f68dc12ed25ce
|
|
7
|
+
data.tar.gz: 04fe6ad1089bc48590923fcae56274733c1063d5ece677bca85d97c1602c252c86bed15d067099ef1a618e475f95a387fcf58a75f58f70fe1152b4181bf43127
|
data/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,12 @@ Notable changes to this project will be documented in this file.
|
|
|
4
4
|
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
|
|
5
5
|
Kubeclient release versioning follows [SemVer](https://semver.org/).
|
|
6
6
|
|
|
7
|
+
## 4.10.1 — 2022-10-01
|
|
8
|
+
|
|
9
|
+
### Removed
|
|
10
|
+
|
|
11
|
+
- Dropped debug logging about bearer token options that was added in 4.10.0. (#577)
|
|
12
|
+
|
|
7
13
|
## 4.10.0 — 2022-08-29
|
|
8
14
|
|
|
9
15
|
### Added
|
data/README.md
CHANGED
|
@@ -104,8 +104,8 @@ client = Kubeclient::Client.new(
|
|
|
104
104
|
### Authentication
|
|
105
105
|
|
|
106
106
|
If you are using basic authentication or bearer tokens as described
|
|
107
|
-
[here](https://github.com/GoogleCloudPlatform/kubernetes/blob/master/docs/authentication.md)
|
|
108
|
-
of the following:
|
|
107
|
+
[here](https://github.com/GoogleCloudPlatform/kubernetes/blob/master/docs/authentication.md)
|
|
108
|
+
then you can specify one of the following:
|
|
109
109
|
|
|
110
110
|
```ruby
|
|
111
111
|
auth_options = {
|
|
@@ -117,7 +117,7 @@ client = Kubeclient::Client.new(
|
|
|
117
117
|
)
|
|
118
118
|
```
|
|
119
119
|
|
|
120
|
-
or
|
|
120
|
+
or (fixed token, if it expires it's up to you to create a new `Client` object):
|
|
121
121
|
|
|
122
122
|
```ruby
|
|
123
123
|
auth_options = {
|
|
@@ -128,7 +128,7 @@ client = Kubeclient::Client.new(
|
|
|
128
128
|
)
|
|
129
129
|
```
|
|
130
130
|
|
|
131
|
-
or
|
|
131
|
+
or (will automatically re-read the token if file is updated):
|
|
132
132
|
|
|
133
133
|
```ruby
|
|
134
134
|
auth_options = {
|
data/RELEASING.md
CHANGED
|
@@ -4,10 +4,6 @@
|
|
|
4
4
|
Kubeclient release versioning follows [SemVer](https://semver.org/).
|
|
5
5
|
At some point in time it is decided to release version x.y.z.
|
|
6
6
|
|
|
7
|
-
```bash
|
|
8
|
-
RELEASE_BRANCH="master"
|
|
9
|
-
```
|
|
10
|
-
|
|
11
7
|
## 0. (once) Install gem-release, needed for several commands here:
|
|
12
8
|
|
|
13
9
|
```bash
|
|
@@ -16,13 +12,17 @@ gem install gem-release
|
|
|
16
12
|
|
|
17
13
|
## 1. PR(s) for changelog & bump
|
|
18
14
|
|
|
19
|
-
Edit `CHANGELOG.md` as necessary. Even if all included changes remembered to update it, you should replace "Unreleased" section header with appropriate "x.y.z — 20yy-mm-dd" header.
|
|
20
|
-
|
|
21
|
-
Bump `lib/kubeclient/version.rb` manually, or by using:
|
|
22
15
|
```bash
|
|
16
|
+
RELEASE_BRANCH="master"
|
|
23
17
|
RELEASE_VERSION=x.y.z
|
|
24
18
|
|
|
25
19
|
git checkout -b "release-$RELEASE_VERSION" $RELEASE_BRANCH
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
Edit `CHANGELOG.md` as necessary. Even if all included changes remembered to update it, you should replace "Unreleased" section header with appropriate "x.y.z — 20yy-mm-dd" header.
|
|
23
|
+
|
|
24
|
+
Bump `lib/kubeclient/version.rb` manually, or by using:
|
|
25
|
+
```bash
|
|
26
26
|
# Won't work with uncommitted changes, you have to commit the changelog first.
|
|
27
27
|
gem bump --version $RELEASE_VERSION
|
|
28
28
|
git show # View version bump change.
|
|
@@ -46,7 +46,7 @@ Make sure we're locally after the bump PR *merge commit*:
|
|
|
46
46
|
```bash
|
|
47
47
|
git checkout $RELEASE_BRANCH
|
|
48
48
|
git status # Make sure there are no local changes
|
|
49
|
-
git pull --ff-only https://github.com/
|
|
49
|
+
git pull --ff-only https://github.com/ManageIQ/kubeclient $RELEASE_BRANCH
|
|
50
50
|
git log -n1
|
|
51
51
|
```
|
|
52
52
|
|
data/lib/kubeclient/common.rb
CHANGED
|
@@ -87,18 +87,11 @@ module Kubeclient
|
|
|
87
87
|
@http_max_redirects = http_max_redirects
|
|
88
88
|
@as = as
|
|
89
89
|
|
|
90
|
-
@log = Logger.new(STDOUT)
|
|
91
|
-
@log.formatter = proc do |severity, datetime, progname, msg|
|
|
92
|
-
"#{datetime} [#{severity}]: #{msg}\n"
|
|
93
|
-
end
|
|
94
|
-
|
|
95
90
|
if auth_options[:bearer_token_file]
|
|
96
91
|
validate_bearer_token_file
|
|
97
|
-
@log.info("Reading bearer token from #{@auth_options[:bearer_token_file]}")
|
|
98
92
|
bearer_token(File.read(@auth_options[:bearer_token_file]))
|
|
99
93
|
elsif auth_options[:bearer_token]
|
|
100
94
|
bearer_token(@auth_options[:bearer_token])
|
|
101
|
-
@log.info("bearer_token_file path not provided. Kubeclient will not be able to refresh the token if it expires")
|
|
102
95
|
end
|
|
103
96
|
end
|
|
104
97
|
|
data/lib/kubeclient/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: kubeclient
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 4.10.
|
|
4
|
+
version: 4.10.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Alissa Bonas
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2022-
|
|
11
|
+
date: 2022-10-01 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|