Skip to content

Commit

Permalink
Merge branch 'master' into httprb-update
Browse files Browse the repository at this point in the history
  • Loading branch information
cben committed Oct 31, 2022
2 parents fc02bdf + fb54ef2 commit 5aab60e
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 15 deletions.
22 changes: 21 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,27 @@ Kubeclient release versioning follows [SemVer](https://semver.org/).
### Changed
- `Kubeclient::Client.new` now always requires an api version, use for example: `Kubeclient::Client.new(uri, 'v1')`

## 4.9.3 — 2021-03-23
## 4.10.1 — 2022-10-01

### Removed

- Dropped debug logging about bearer token options that was added in 4.10.0. (#577)

## 4.10.0 — 2022-08-29

### Added

- When using `:bearer_token_file`, re-read the file on every request. (#566 closed #561)

Kubernetes version 1.21 graduated [BoundServiceAccountTokenVolume feature][] to beta
and enabled it by default, so standard in-cluster auth now uses short-lived tokens.

This changes allows a long-lived `Client` object to keep working when the token file gets
rotated. It's not optimized at all, if you feel the performance overhead, please report!

[BoundServiceAccountTokenVolume feature]: https://github.com/kubernetes/enhancements/issues/542

## 4.9.3 — 2022-03-23

### Fixed

Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ client = Kubeclient::Client.new(
### Authentication

If you are using basic authentication or bearer tokens as described
[here](https://github.com/GoogleCloudPlatform/kubernetes/blob/master/docs/authentication.md) then you can specify one
of the following:
[here](https://github.com/GoogleCloudPlatform/kubernetes/blob/master/docs/authentication.md)
then you can specify one of the following:

```ruby
auth_options = {
Expand All @@ -112,7 +112,7 @@ client = Kubeclient::Client.new(
)
```

or
or (fixed token, if it expires it's up to you to create a new `Client` object):

```ruby
auth_options = {
Expand All @@ -123,7 +123,7 @@ client = Kubeclient::Client.new(
)
```

or
or (will automatically re-read the token if file is updated):

```ruby
auth_options = {
Expand Down
16 changes: 8 additions & 8 deletions RELEASING.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@
Kubeclient release versioning follows [SemVer](https://semver.org/).
At some point in time it is decided to release version x.y.z.

```bash
RELEASE_BRANCH="master"
```

## 0. (once) Install gem-release, needed for several commands here:

```bash
Expand All @@ -16,13 +12,17 @@ gem install gem-release

## 1. PR(s) for changelog & bump

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.

Bump `lib/kubeclient/version.rb` manually, or by using:
```bash
RELEASE_BRANCH="master"
RELEASE_VERSION=x.y.z

git checkout -b "release-$RELEASE_VERSION" $RELEASE_BRANCH
```

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.

Bump `lib/kubeclient/version.rb` manually, or by using:
```bash
# Won't work with uncommitted changes, you have to commit the changelog first.
gem bump --version $RELEASE_VERSION
git show # View version bump change.
Expand All @@ -46,7 +46,7 @@ Make sure we're locally after the bump PR *merge commit*:
```bash
git checkout $RELEASE_BRANCH
git status # Make sure there are no local changes
git pull --ff-only https://github.com/abonas/kubeclient $RELEASE_BRANCH
git pull --ff-only https://github.com/ManageIQ/kubeclient $RELEASE_BRANCH
git log -n1
```

Expand Down
2 changes: 1 addition & 1 deletion kubeclient.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Gem::Specification.new do |spec|

spec.add_development_dependency 'bundler', '>= 1.6'
spec.add_development_dependency 'rake', '~> 13.0'
spec.add_development_dependency 'minitest'
spec.add_development_dependency 'minitest', '~> 5.15.0'
spec.add_development_dependency 'minitest-rg'
spec.add_development_dependency 'webmock', '~> 3.0'
spec.add_development_dependency 'rubocop', '~> 1.3.0' # locked to minor so new cops don't slip in
Expand Down
2 changes: 1 addition & 1 deletion lib/kubeclient/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@

# Kubernetes REST-API Client
module Kubeclient
VERSION = '4.9.3'
VERSION = '4.10.1'.freeze
end

0 comments on commit 5aab60e

Please sign in to comment.