Skip to content

Commit

Permalink
chore(deps): update pepr (#1095)
Browse files Browse the repository at this point in the history
This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence | Type |
Update |
|---|---|---|---|---|---|---|---|
| [lint-staged](https://redirect.github.com/lint-staged/lint-staged) |
[`15.2.10` ->
`15.2.11`](https://renovatebot.com/diffs/npm/lint-staged/15.2.10/15.2.11)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/lint-staged/15.2.11?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/lint-staged/15.2.11?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/lint-staged/15.2.10/15.2.11?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/lint-staged/15.2.10/15.2.11?slim=true)](https://docs.renovatebot.com/merge-confidence/)
| devDependencies | patch |
| [pepr](https://redirect.github.com/defenseunicorns/pepr) | [`0.40.1`
-> `0.42.0`](https://renovatebot.com/diffs/npm/pepr/0.40.1/0.42.0) |
[![age](https://developer.mend.io/api/mc/badges/age/npm/pepr/0.42.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/pepr/0.42.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/pepr/0.40.1/0.42.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/pepr/0.40.1/0.42.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
| dependencies | minor |
|
[registry1.dso.mil/ironbank/opensource/defenseunicorns/pepr/controller](https://redirect.github.com/defenseunicorns/pepr)
([source](https://repo1.dso.mil/dsop/opensource/defenseunicorns/pepr/controller))
| `v0.40.1` -> `v0.42.0` |
[![age](https://developer.mend.io/api/mc/badges/age/docker/registry1.dso.mil%2fironbank%2fopensource%2fdefenseunicorns%2fpepr%2fcontroller/v0.42.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/docker/registry1.dso.mil%2fironbank%2fopensource%2fdefenseunicorns%2fpepr%2fcontroller/v0.42.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/docker/registry1.dso.mil%2fironbank%2fopensource%2fdefenseunicorns%2fpepr%2fcontroller/v0.40.1/v0.42.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/docker/registry1.dso.mil%2fironbank%2fopensource%2fdefenseunicorns%2fpepr%2fcontroller/v0.40.1/v0.42.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
| | minor |

---

### Release Notes

<details>
<summary>lint-staged/lint-staged (lint-staged)</summary>

###
[`v15.2.11`](https://redirect.github.com/lint-staged/lint-staged/blob/HEAD/CHANGELOG.md#15211)

[Compare
Source](https://redirect.github.com/lint-staged/lint-staged/compare/v15.2.10...v15.2.11)

##### Patch Changes

-
[#&#8203;1484](https://redirect.github.com/lint-staged/lint-staged/pull/1484)
[`bcfe309`](https://redirect.github.com/lint-staged/lint-staged/commit/bcfe309fca88aedf42b6a321383de49eb361c5a0)
Thanks [@&#8203;wormsik](https://redirect.github.com/wormsik)! - Escape
paths containing spaces when using the "shell" option.

-
[#&#8203;1487](https://redirect.github.com/lint-staged/lint-staged/pull/1487)
[`7dd8caa`](https://redirect.github.com/lint-staged/lint-staged/commit/7dd8caa8f80fe1a6ce40939c1224b6774000775a)
Thanks [@&#8203;iiroj](https://redirect.github.com/iiroj)! - Do not
treat submodule root paths as "staged files". This caused *lint-staged*
to fail to a Git error when only updating the revision of a submodule.

</details>

<details>
<summary>defenseunicorns/pepr (pepr)</summary>

###
[`v0.42.0`](https://redirect.github.com/defenseunicorns/pepr/releases/tag/v0.42.0)

[Compare
Source](https://redirect.github.com/defenseunicorns/pepr/compare/v0.40.1...v0.42.0)

#### Note 🧾

This sprint, the Pepr team focused on enhancing our typing system to
improve consistency and address edge cases where types were less robust.
We also made significant improvements to our network posture through the
KFC, which may impact end users who are strongly typing fetch
configurations. These changes extend to all interactions with the
Kubernetes API server through CRUD operations that Pepr uses to
communicate with the kube-apiserver. While this release has been
thoroughly tested and soak, we recommend proceeding with caution, as
progress sometimes introduces unforeseen challenges. Check the slack
announcement to see metrics related to this release.

*oversight, accidentally released 0.42.0 and skipped 0.41.0 - next
releases will be pair programmed to avoid this.*

#### Breaking Changes ⚠️

Pepr's fetch is powered by Undici. If you are using a specific
`RequestInit` options on the fetch, you need to migrate to Undici's
[RequestInit](https://redirect.github.com/nodejs/undici/blob/cac18e12a794800c6405ed633006cff44ca6f664/types/fetch.d.ts#L121)
(It is very similar). *This probably won't affect you if you are not
strongly typing your `RequestInit` [example in
journey/pepr-dev.ts](https://redirect.github.com/defenseunicorns/pepr/pull/1496/files).*

Here is an example:

```ts
let { fetch } = require("pepr");
const { Agent } = require("undici");

const postOpts = {
  method: "POST",
  body: JSON.stringify({
    query: "query { joke {id joke permalink } }",
  }),
  headers: {
    "Content-Type": "application/json; charset=UTF-8",
  },
  dispatcher: new Agent({
    connect: {
      rejectUnauthorized: false,
    },
  }),
};
(async () => {
  let { data, ok } = await fetch(
    "https://icanhazdadjoke.com/graphql",
    postOpts,
  );
  if (ok) {
    console.log(data.data.joke.joke);
  } else {
    console.log("Failed to fetch joke");
  }
})();
```

This strengthens Pepr's ability to communicate with the Kubernetes
Control Plane and reduces transmit bandwidth.

#### Feat ⛰️

- feat: set prometheus cont type for Prometheus 3.0 by
[@&#8203;btlghrants](https://redirect.github.com/btlghrants) in
[https://github.com/defenseunicorns/pepr/pull/1501](https://redirect.github.com/defenseunicorns/pepr/pull/1501)

#### What's Changed ♻️

- chore: use consistent enum property names between related enums by
[@&#8203;samayer12](https://redirect.github.com/samayer12) in
[https://github.com/defenseunicorns/pepr/pull/1451](https://redirect.github.com/defenseunicorns/pepr/pull/1451)
- chore: adr for undici and status corrections by
[@&#8203;cmwylie19](https://redirect.github.com/cmwylie19) in
[https://github.com/defenseunicorns/pepr/pull/1461](https://redirect.github.com/defenseunicorns/pepr/pull/1461)
- chore: merge queues by
[@&#8203;cmwylie19](https://redirect.github.com/cmwylie19) in
[https://github.com/defenseunicorns/pepr/pull/1469](https://redirect.github.com/defenseunicorns/pepr/pull/1469)
- test: overlay requests/second onto load test graph by
[@&#8203;btlghrants](https://redirect.github.com/btlghrants) in
[https://github.com/defenseunicorns/pepr/pull/1470](https://redirect.github.com/defenseunicorns/pepr/pull/1470)
- chore: fix merge group by
[@&#8203;cmwylie19](https://redirect.github.com/cmwylie19) in
[https://github.com/defenseunicorns/pepr/pull/1471](https://redirect.github.com/defenseunicorns/pepr/pull/1471)
- chore: extract deployment check functions to new file for ease of
maintenance by
[@&#8203;samayer12](https://redirect.github.com/samayer12) in
[https://github.com/defenseunicorns/pepr/pull/1472](https://redirect.github.com/defenseunicorns/pepr/pull/1472)
- test: make load test err msg explicit by
[@&#8203;btlghrants](https://redirect.github.com/btlghrants) in
[https://github.com/defenseunicorns/pepr/pull/1478](https://redirect.github.com/defenseunicorns/pepr/pull/1478)
- chore: move filesystem operations to new file by
[@&#8203;samayer12](https://redirect.github.com/samayer12) in
[https://github.com/defenseunicorns/pepr/pull/1482](https://redirect.github.com/defenseunicorns/pepr/pull/1482)
- chore: 24 roadmap update by
[@&#8203;cmwylie19](https://redirect.github.com/cmwylie19) in
[https://github.com/defenseunicorns/pepr/pull/1479](https://redirect.github.com/defenseunicorns/pepr/pull/1479)
- chore: update contributor docs by
[@&#8203;soltysh](https://redirect.github.com/soltysh) in
[https://github.com/defenseunicorns/pepr/pull/1491](https://redirect.github.com/defenseunicorns/pepr/pull/1491)
- refactor: resolve eslint warnings (max-statements, complexity) -
`src/lib/controller/index.ts` by
[@&#8203;btlghrants](https://redirect.github.com/btlghrants) in
[https://github.com/defenseunicorns/pepr/pull/1486](https://redirect.github.com/defenseunicorns/pepr/pull/1486)
- chore: types in metrics by
[@&#8203;cmwylie19](https://redirect.github.com/cmwylie19) in
[https://github.com/defenseunicorns/pepr/pull/1492](https://redirect.github.com/defenseunicorns/pepr/pull/1492)
- chore: fix all actions links by
[@&#8203;soltysh](https://redirect.github.com/soltysh) in
[https://github.com/defenseunicorns/pepr/pull/1499](https://redirect.github.com/defenseunicorns/pepr/pull/1499)
- chore: updates for undici fetch by
[@&#8203;cmwylie19](https://redirect.github.com/cmwylie19) in
[https://github.com/defenseunicorns/pepr/pull/1496](https://redirect.github.com/defenseunicorns/pepr/pull/1496)
- chore: storage return types by
[@&#8203;cmwylie19](https://redirect.github.com/cmwylie19) in
[https://github.com/defenseunicorns/pepr/pull/1507](https://redirect.github.com/defenseunicorns/pepr/pull/1507)
- chore: update subscribers every second by
[@&#8203;cmwylie19](https://redirect.github.com/cmwylie19) in
[https://github.com/defenseunicorns/pepr/pull/1502](https://redirect.github.com/defenseunicorns/pepr/pull/1502)
- chore: return types on schedule by
[@&#8203;cmwylie19](https://redirect.github.com/cmwylie19) in
[https://github.com/defenseunicorns/pepr/pull/1505](https://redirect.github.com/defenseunicorns/pepr/pull/1505)
- refactor: resolve eslint warnings (max-statements, complexity) -
`src/lib/assets/index.ts` by
[@&#8203;btlghrants](https://redirect.github.com/btlghrants) in
[https://github.com/defenseunicorns/pepr/pull/1497](https://redirect.github.com/defenseunicorns/pepr/pull/1497)
- chore(ts): add typing to adjudicators used in validation and mutation
processing by [@&#8203;samayer12](https://redirect.github.com/samayer12)
in
[https://github.com/defenseunicorns/pepr/pull/1402](https://redirect.github.com/defenseunicorns/pepr/pull/1402)
- chore: return types on sdk by
[@&#8203;cmwylie19](https://redirect.github.com/cmwylie19) in
[https://github.com/defenseunicorns/pepr/pull/1512](https://redirect.github.com/defenseunicorns/pepr/pull/1512)
- chore: store adjudicator code in adjudicators/ by
[@&#8203;samayer12](https://redirect.github.com/samayer12) in
[https://github.com/defenseunicorns/pepr/pull/1517](https://redirect.github.com/defenseunicorns/pepr/pull/1517)
- chore: reduce verbosity of logs by eliminating for metric and health
by [@&#8203;cmwylie19](https://redirect.github.com/cmwylie19) in
[https://github.com/defenseunicorns/pepr/pull/1519](https://redirect.github.com/defenseunicorns/pepr/pull/1519)
- test: validate `pepr build` generates a `helm install`-able chart by
[@&#8203;btlghrants](https://redirect.github.com/btlghrants) in
[https://github.com/defenseunicorns/pepr/pull/1520](https://redirect.github.com/defenseunicorns/pepr/pull/1520)
- chore: move `lib/` code related to data collection to `lib/telemetry`
by [@&#8203;samayer12](https://redirect.github.com/samayer12) in
[https://github.com/defenseunicorns/pepr/pull/1522](https://redirect.github.com/defenseunicorns/pepr/pull/1522)
- chore: bump codecov/codecov-action from 5.0.7 to 5.1.1 by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/defenseunicorns/pepr/pull/1523](https://redirect.github.com/defenseunicorns/pepr/pull/1523)
- chore: bump trufflesecurity/trufflehog from 3.84.2 to 3.85.0 by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/defenseunicorns/pepr/pull/1524](https://redirect.github.com/defenseunicorns/pepr/pull/1524)
- chore: bump express from 4.21.1 to 4.21.2 in the
production-dependencies group by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/defenseunicorns/pepr/pull/1525](https://redirect.github.com/defenseunicorns/pepr/pull/1525)
- chore: bump actions/dependency-review-action from 4.4.0 to 4.5.0 by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/defenseunicorns/pepr/pull/1464](https://redirect.github.com/defenseunicorns/pepr/pull/1464)
- chore: bump github/codeql-action from 3.27.4 to 3.27.5 by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/defenseunicorns/pepr/pull/1463](https://redirect.github.com/defenseunicorns/pepr/pull/1463)
- chore: bump codecov/codecov-action from 5.0.3 to 5.0.6 by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/defenseunicorns/pepr/pull/1462](https://redirect.github.com/defenseunicorns/pepr/pull/1462)
- chore: bump anchore/scan-action from 5.2.1 to 5.3.0 by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/defenseunicorns/pepr/pull/1476](https://redirect.github.com/defenseunicorns/pepr/pull/1476)
- chore: bump anchore/sbom-action from 0.17.7 to 0.17.8 by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/defenseunicorns/pepr/pull/1475](https://redirect.github.com/defenseunicorns/pepr/pull/1475)
- chore: bump codecov/codecov-action from 5.0.6 to 5.0.7 by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/defenseunicorns/pepr/pull/1474](https://redirect.github.com/defenseunicorns/pepr/pull/1474)
- chore: bump trufflesecurity/trufflehog from 3.83.7 to 3.84.0 by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/defenseunicorns/pepr/pull/1473](https://redirect.github.com/defenseunicorns/pepr/pull/1473)
- chore: bump trufflesecurity/trufflehog from 3.84.0 to 3.84.1 by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/defenseunicorns/pepr/pull/1487](https://redirect.github.com/defenseunicorns/pepr/pull/1487)
- chore: bump
[@&#8203;types/node](https://redirect.github.com/types/node) from 22.9.1
to 22.9.4 in the development-dependencies group by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/defenseunicorns/pepr/pull/1488](https://redirect.github.com/defenseunicorns/pepr/pull/1488)
- chore: bump
[@&#8203;types/node](https://redirect.github.com/types/node) from 22.9.4
to 22.10.0 in the development-dependencies group by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/defenseunicorns/pepr/pull/1489](https://redirect.github.com/defenseunicorns/pepr/pull/1489)
- chore: bump
[@&#8203;types/node](https://redirect.github.com/types/node) from
22.10.0 to 22.10.1 in the development-dependencies group by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/defenseunicorns/pepr/pull/1490](https://redirect.github.com/defenseunicorns/pepr/pull/1490)
- chore: bump trufflesecurity/trufflehog from 3.84.1 to 3.84.2 by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/defenseunicorns/pepr/pull/1504](https://redirect.github.com/defenseunicorns/pepr/pull/1504)
- chore: bump github/codeql-action from 3.27.5 to 3.27.6 by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/defenseunicorns/pepr/pull/1503](https://redirect.github.com/defenseunicorns/pepr/pull/1503)
- chore: bump kubernetes-fluent-client from 3.3.6 to 3.3.7 in the
production-dependencies group by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/defenseunicorns/pepr/pull/1508](https://redirect.github.com/defenseunicorns/pepr/pull/1508)

**Full Changelog**:
defenseunicorns/pepr@v0.40.1...v0.42.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

👻 **Immortal**: This PR will be recreated if closed unmerged. Get
[config
help](https://redirect.github.com/renovatebot/renovate/discussions) if
that's undesired.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/defenseunicorns/uds-core).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS40Mi40IiwidXBkYXRlZEluVmVyIjoiMzkuNTguMSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Micah Nagel <micah.nagel@defenseunicorns.com>
  • Loading branch information
renovate[bot] and mjnagel authored Dec 11, 2024
1 parent bd8ee0e commit 3ebae7b
Show file tree
Hide file tree
Showing 4 changed files with 67 additions and 47 deletions.
104 changes: 62 additions & 42 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@
"k3d-setup": "k3d cluster delete pepr-dev && k3d cluster create pepr-dev --k3s-arg '--debug@server:0'"
},
"dependencies": {
"pepr": "0.40.1"
"pepr": "0.42.0"
},
"devDependencies": {
"@jest/globals": "29.7.0",
"husky": "9.1.7",
"jest": "29.7.0",
"lint-staged": "15.2.10",
"lint-staged": "15.2.11",
"ts-jest": "29.2.5"
},
"jest": {
Expand Down
4 changes: 2 additions & 2 deletions src/pepr/operator/controllers/keycloak/client-sync.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { fetch, K8s, kind } from "pepr";
import { Component, setupLogger } from "../../../logger";
import { Store } from "../../common";
import { Sso, UDSPackage } from "../../crd";
import { getOwnerRef, purgeOrphans, sanitizeResourceName } from "../utils";
import { getOwnerRef, purgeOrphans, retryWithDelay, sanitizeResourceName } from "../utils";
import { Client, clientKeys } from "./types";

let apiURL =
Expand Down Expand Up @@ -173,7 +173,7 @@ async function syncClient(

// Write the new token to the store
try {
await Store.setItemAndWait(name, client.registrationAccessToken!);
await retryWithDelay(() => Store.setItemAndWait(name, client.registrationAccessToken!), log);
} catch (err) {
throw Error(
`Failed to set token in store for client '${client.clientId}', package ` +
Expand Down
2 changes: 1 addition & 1 deletion tasks/create.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ variables:

- name: REGISTRY1_PEPR_IMAGE
# renovate: datasource=docker depName=registry1.dso.mil/ironbank/opensource/defenseunicorns/pepr/controller versioning=semver
default: registry1.dso.mil/ironbank/opensource/defenseunicorns/pepr/controller:v0.40.1
default: registry1.dso.mil/ironbank/opensource/defenseunicorns/pepr/controller:v0.42.0

- name: LAYER

Expand Down

0 comments on commit 3ebae7b

Please sign in to comment.