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 +4 -4
- data/CHANGELOG.md +8 -1
- data/lib/ood_core/job/adapters/kubernetes/batch.rb +3 -3
- data/lib/ood_core/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: a110306c66de3f349e7a5569cedc3ea02dfedd5dfaa360b352f8689af113f98b
|
4
|
+
data.tar.gz: ae608343e63bb98e6383fea71af53943d7136bdf72d8bf46b653f0c19801fcec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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,
|
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
|
|
data/lib/ood_core/version.rb
CHANGED