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

WIP: Add app labels where applicable for redis #292

Merged
merged 3 commits into from
Jun 18, 2024

Conversation

Reasonable-Solutions
Copy link
Contributor

@Reasonable-Solutions Reasonable-Solutions commented Jun 3, 2024

To populate the app row for costs that are redis in the bigquery costs table we need to set the app label to the app that owns the redis. First I just need to do some dependabot chores. The Kube-core library that we depend on depends on json-patch 1.4 as we used to and we have bumped to 2.0 which means that we are waiting on an upstream pr to kube core. Said pr exists and will most likely be merged shortly tho.

kube-rs/kube#1507
^ That pr

@Reasonable-Solutions Reasonable-Solutions requested a review from a team as a code owner June 3, 2024 08:58
}

fn replace_patch(path: String, value: Value) -> PatchOperation {
PatchOperation::Replace(json_patch::ReplaceOperation { path, value })
PatchOperation::Replace(json_patch::ReplaceOperation {
path: Pointer::from_str(&path).unwrap(),
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Carl, come on..

Copy link
Contributor

@x10an14-nav x10an14-nav Jun 14, 2024

Choose a reason for hiding this comment

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

Suggested change
path: Pointer::from_str(&path).unwrap(),
path: Pointer::new(path.split("/").skip(1).collect::<Vec<_>>()),

If it's the unwrap() you wanna get rid of =)
EDIT: Forgot to skip the first ["", "foo", "bar"], if one "/foo/bar".split().

Copy link

github-actions bot commented Jun 13, 2024

Test Results

22 tests  ±0   22 ✅ ±0   0s ⏱️ ±0s
 1 suites ±0    0 💤 ±0 
 1 files   ±0    0 ❌ ±0 

Results for commit a3e0c69. ± Comparison against base commit 6217041.

♻️ This comment has been updated with latest results.

dependabot bot and others added 3 commits June 18, 2024 13:50
Bumps [json-patch](https://github.com/idubrov/json-patch) from 1.2.0 to 2.0.0.
- [Changelog](https://github.com/idubrov/json-patch/blob/main/CHANGELOG.md)
- [Commits](idubrov/json-patch@v1.2.0...v2.0.0)

---
updated-dependencies:
- dependency-name: json-patch
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
build(deps): bump schematic from 0.15.2 to 0.16.4

Bumps [schematic](https://github.com/moonrepo/schematic) from 0.15.2 to 0.16.4.
- [Changelog](https://github.com/moonrepo/schematic/blob/master/CHANGELOG.md)
- [Commits](moonrepo/schematic@schematic-v0.15.2...schematic-v0.16.4)

---
updated-dependencies:
- dependency-name: schematic
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@Reasonable-Solutions Reasonable-Solutions merged commit b1a2fc7 into main Jun 18, 2024
6 checks passed
@Reasonable-Solutions Reasonable-Solutions deleted the app-labels-redis branch June 18, 2024 12:02
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