ood_core 0.18.0 → 0.18.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8564931d7e160d2b23c383d60c8001de98a1a211cd7f0418a442dd99b0c48f78
4
- data.tar.gz: af7585fe95630e9e6aa04a004c0650ad671d36894bf1d82554bf75e87056faca
3
+ metadata.gz: a110306c66de3f349e7a5569cedc3ea02dfedd5dfaa360b352f8689af113f98b
4
+ data.tar.gz: ae608343e63bb98e6383fea71af53943d7136bdf72d8bf46b653f0c19801fcec
5
5
  SHA512:
6
- metadata.gz: bd40c9483ee3c7a3bf036c9442c7e0e5f96d819b99c63248252050ecceb7a933f8636d1e55176c3271db7503ecc65a7c29f5d0add3f4dfe85accf1a35e25949e
7
- data.tar.gz: 3c8a28b6623b388ea75a5bc418a5d6fcb1738ee2c45f0ae78b0a54d56305ed19ccce26e9b183674633c0c67d03e93fff002438e3c750c674fe4781e948d58d90
6
+ metadata.gz: 8a6b9928561a6dba1b84cbb2ac58d389b84e8317589648c483382c166c81982859fb74f68f76297a25319faed06712c6256abdf1c6a5e0175be939aa0392f283
7
+ data.tar.gz: 21396c77e39329f9d7b6112c7900dd7ffa51d695b137d15089c487799ed16e3f74aea1f1dfab9958e2928fb98f49db098f865906c53abf667a8ed64ceda5dc53
data/CHANGELOG.md CHANGED
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.18.1] - 10-18-2021
11
+
12
+ ### Fixed
13
+
14
+ - Fixed kubernetes initialization in [331](https://github.com/OSC/ood_core/pull/331).
15
+
10
16
  ## [0.18.0] - 10-18-2021
11
17
 
12
18
  ### Fixed
@@ -405,7 +411,8 @@ Functionally the same as [0.17.3] but with some CI updates.
405
411
  ### Added
406
412
  - Initial release!
407
413
 
408
- [Unreleased]: https://github.com/OSC/ood_core/compare/v0.18.0...HEAD
414
+ [Unreleased]: https://github.com/OSC/ood_core/compare/v0.18.1...HEAD
415
+ [0.18.1]: https://github.com/OSC/ood_core/compare/v0.18.0...v0.18.1
409
416
  [0.18.0]: https://github.com/OSC/ood_core/compare/v0.17.8...v0.18.0
410
417
  [0.17.6]: https://github.com/OSC/ood_core/compare/v0.17.5...v0.17.6
411
418
  [0.17.5]: https://github.com/OSC/ood_core/compare/v0.17.4...v0.17.5
@@ -19,7 +19,7 @@ class OodCore::Job::Adapters::Kubernetes::Batch
19
19
  def initialize(options = {})
20
20
  options = options.to_h.symbolize_keys
21
21
 
22
- @config_file = options.fetch(:config_file, Batch.default_config_file)
22
+ @config_file = options.fetch(:config_file, self.class.default_config_file)
23
23
  @bin = options.fetch(:bin, '/usr/bin/kubectl')
24
24
  @cluster = options.fetch(:cluster, 'open-ondemand')
25
25
  @mounts = options.fetch(:mounts, []).map { |m| m.to_h.symbolize_keys }
@@ -29,7 +29,7 @@ class OodCore::Job::Adapters::Kubernetes::Batch
29
29
  @auto_supplemental_groups = options.fetch(:auto_supplemental_groups, false)
30
30
 
31
31
  tmp_ctx = options.fetch(:context, nil)
32
- @context = tmp_ctx.nil? && oidc_auth?(options.fetch(:auth, {})) ? @cluster : tmp_ctx
32
+ @context = tmp_ctx.nil? && oidc_auth?(options.fetch(:auth, {}).symbolize_keys) ? @cluster : tmp_ctx
33
33
 
34
34
  @helper = OodCore::Job::Adapters::Kubernetes::Helper.new
35
35
  end
@@ -316,7 +316,7 @@ class OodCore::Job::Adapters::Kubernetes::Batch
316
316
  elsif gke_auth?(auth)
317
317
  set_gke_config(auth)
318
318
  elsif oidc_auth?(auth)
319
- set_context
319
+ set_context if context?
320
320
  end
321
321
  end
322
322
 
@@ -1,4 +1,4 @@
1
1
  module OodCore
2
2
  # The current version of {OodCore}
3
- VERSION = "0.18.0"
3
+ VERSION = "0.18.1"
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ood_core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.18.0
4
+ version: 0.18.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Franz