Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pin gem dependency versions; Fix metadata version string #221

Merged
merged 1 commit into from
Sep 27, 2019

Conversation

rvmiller89
Copy link
Contributor

Description

Root issue for the problem:

ERROR:  Could not find a valid gem 'kubeclient' (~> 4.4.0) (required by 'fluent-plugin-enhance-k8s-metadata' (>= 0)) in any repository

was that in our metadata plugin we were defining required version as ~>4.4.0 which only applies to >= 4.4.0 and < 4.5. Overnight kubeclient released a 4.5.0 version which now fails the required version check.

This PR fixes that issue, and also pins our external gem dependency versions to avoid surprises since otherwise our CI could randomly start failing at any time as projects release new major versions.

Testing performed
  • ci/build.sh
  • Redeploy fluentd and fluentd-events pods
  • Confirm events, logs, and metrics are coming in

@@ -21,7 +21,7 @@ Gem::Specification.new do |spec|

spec.add_runtime_dependency 'concurrent-ruby', '~> 1.1'
spec.add_runtime_dependency 'fluentd', ['>= 0.14.10', '< 2']
spec.add_runtime_dependency 'kubeclient', '~> 4.4.0'
spec.add_runtime_dependency 'kubeclient', '~> 4.4'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what does this file do after pinning a static version?

Copy link
Contributor Author

@rvmiller89 rvmiller89 Sep 27, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this allows >= 4.4 and < 5.0

@rvmiller89 rvmiller89 merged commit 1af149e into master Sep 27, 2019
@rvmiller89 rvmiller89 deleted the rmiller-pin-gem-deps-fix-version branch September 27, 2019 17:55
psaia pushed a commit to psaia/sumologic-kubernetes-collection that referenced this pull request May 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants